[2025-03-03 00:00:01] Production.INFO: ==22763== Lock acquired, processing the job... [2025-03-03 00:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:00:01] Production.INFO: neon service started [2025-03-03 00:00:01] Production.INFO: neon service started [2025-03-03 00:00:01] Production.INFO: ==22763== Releasing lock... [2025-03-03 00:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:00:02] Production.INFO: ==22767== Lock acquired, processing the job... [2025-03-03 00:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:00:02] Production.INFO: ==22767== Releasing lock... [2025-03-03 00:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:00:02] Production.INFO: ==22765== Lock acquired, processing the job... [2025-03-02 19:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:00:02] Production.INFO: ==22765== Releasing lock... [2025-03-02 19:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:00:03] Production.INFO: ==22776== Lock acquired, processing the job... [2025-03-02 19:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:00:04] Production.INFO: ==22770== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 19:00:04] Production.INFO: ==22778== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:00:04] Production.INFO: ==22780== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 19:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 19:00:04] Production.ERROR: CronJob PID - 22776 [2025-03-02 19:00:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-02 19:00:04] Production.ERROR: CronJob ID - 10 [2025-03-02 19:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 19:00:00 [2025-03-02 19:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 19:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 19:00:04] Production.INFO: ==22772== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 19:00:04] Production.INFO: ==22770== Releasing lock... [2025-03-02 19:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 19:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:00:04] Production.INFO: ==22774== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:00:04] Production.INFO: Account Balance Start. [2025-03-02 19:00:04] Production.INFO: CreateAllLog Start [2025-03-02 19:00:04] Production.INFO: 117 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:00:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:00:04] Production.INFO: ==22782== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: ==22784== Lock acquired, processing the job... [2025-03-02 19:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:00:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:00:04] Production.ERROR: done [2025-03-02 19:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:00:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:04] Production.INFO: count ==13 [2025-03-02 19:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:00:05] Production.INFO: count ==21 [2025-03-02 19:00:05] Production.INFO: ==22774== Releasing lock... [2025-03-02 19:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593117') start [2025-03-02 19:00:05] Production.ERROR: done [2025-03-02 19:00:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:00:05 [end_date_ymd] => 2025-03-02 19:00:05 [RateCDR] => 1 ) [2025-03-02 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:00:05' and `end` < '2025-03-02 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:00:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593117') end [2025-03-02 19:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:00:05] Production.INFO: 1 [2025-03-02 19:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:00:05] Production.ERROR: done [2025-03-02 19:00:05] Production.INFO: ==22784== Releasing lock... [2025-03-02 19:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 19:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593119', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 19:00:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:06] Production.INFO: Date 2025-03-02 [2025-03-02 19:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 19:00:06] Production.INFO: Total Charge 0 [2025-03-02 19:00:06] Production.INFO: CreateAllLog End [2025-03-02 19:00:06] Production.INFO: Account Balance End. [2025-03-02 19:00:06] Production.ERROR: CronJobId end 12 [2025-03-02 19:00:06] Production.INFO: ==22778== Releasing lock... [2025-03-02 19:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593119', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 19:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 19:00:09] Production.INFO: ProcessCDR(1,14593119,1,1,2) [2025-03-02 19:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593119,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593119,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-02 19:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-02 19:00:10] Production.INFO: ==22782== Releasing lock... [2025-03-02 19:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 19:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:00:14] Production.ERROR: CronJobId end10 [2025-03-02 19:00:14] Production.INFO: ==22776== Releasing lock... [2025-03-02 19:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:00:17] Production.INFO: call_cost start [2025-03-02 19:00:17] Production.INFO: call_cost end [2025-03-02 19:00:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:00:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:00:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:00:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:00:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:00:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:00:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:00:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:00:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:00:17] Production.INFO: ==22772== Releasing lock... [2025-03-02 19:00:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:00:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:00:17] Production.INFO: count ==1530 [2025-03-02 19:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:00:05 - End Time 2025-03-02 19:00:05 [2025-03-02 19:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593118', 'tblTempUsageDetail_20' ) start [2025-03-02 19:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593118', 'tblTempUsageDetail_20' ) end [2025-03-02 19:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593118', 'tblTempVendorCDR_20' ) start [2025-03-02 19:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593118', 'tblTempVendorCDR_20' ) end [2025-03-02 19:00:17] Production.INFO: ProcessCDR(1,14593118,1,1,2) [2025-03-02 19:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593118', 'tblTempUsageDetail_20' ) start [2025-03-02 19:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593118', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:00:25] Production.INFO: ==22780== Releasing lock... [2025-03-02 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:00:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:01:01] Production.INFO: ==22857== Lock acquired, processing the job... [2025-03-03 00:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:01:01] Production.INFO: neon service started [2025-03-03 00:01:01] Production.INFO: neon service started [2025-03-03 00:01:01] Production.INFO: ==22857== Releasing lock... [2025-03-03 00:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:01:01] Production.INFO: ==22870== Lock acquired, processing the job... [2025-03-02 19:01:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:01:02] Production.INFO: ==22870== Releasing lock... [2025-03-02 19:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:01:02] Production.INFO: ==22872== Lock acquired, processing the job... [2025-03-03 00:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:01:02] Production.INFO: ==22872== Releasing lock... [2025-03-03 00:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:01:02] Production.INFO: ==22878== Lock acquired, processing the job... [2025-03-02 19:01:02] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:01:02] Production.INFO: ==22880== Lock acquired, processing the job... [2025-03-02 19:01:02] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:01:02] Production.INFO: ==22876== Lock acquired, processing the job... [2025-03-02 19:01:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:01:02] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:01:02] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:01:02] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:01:02] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:01:02] Production.INFO: Account Balance Start. [2025-03-02 19:01:02] Production.INFO: CreateAllLog Start [2025-03-02 19:01:02] Production.INFO: 117 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: ==22876== Releasing lock... [2025-03-02 19:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:01:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:01:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-16 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-17 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: ==22874== Lock acquired, processing the job... [2025-03-02 19:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:01:03] Production.INFO: Date 2025-02-18 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:01:03] Production.INFO: Date 2025-02-19 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: ==22884== Lock acquired, processing the job... [2025-03-02 19:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:01:03] Production.INFO: ==22882== Lock acquired, processing the job... [2025-03-02 19:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:01:03] Production.INFO: Date 2025-02-20 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-21 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-22 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-23 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:01:03] Production.INFO: count ==13 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-24 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:01:03] Production.INFO: count ==21 [2025-03-02 19:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593123') start [2025-03-02 19:01:03] Production.INFO: Date 2025-02-25 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-26 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593123') end [2025-03-02 19:01:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:01:03] Production.INFO: 1 [2025-03-02 19:01:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:01:03] Production.INFO: Date 2025-02-27 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: Date 2025-02-28 [2025-03-02 19:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:03] Production.INFO: ==22884== Releasing lock... [2025-03-02 19:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:01:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:01:04] Production.ERROR: done [2025-03-02 19:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:01:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:01:04] Production.INFO: Total Charge 0 [2025-03-02 19:01:04] Production.INFO: CreateAllLog End [2025-03-02 19:01:04] Production.ERROR: done [2025-03-02 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:01:04 [end_date_ymd] => 2025-03-02 19:01:04 [RateCDR] => 1 ) [2025-03-02 19:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:01:04' and `end` < '2025-03-02 19:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:01:04] Production.INFO: Account Balance End. [2025-03-02 19:01:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:01:04] Production.INFO: ==22880== Releasing lock... [2025-03-02 19:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:01:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:01:13] Production.ERROR: CronJobId end10 [2025-03-02 19:01:13] Production.INFO: ==22878== Releasing lock... [2025-03-02 19:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:01:14] Production.INFO: call_cost start [2025-03-02 19:01:14] Production.INFO: call_cost end [2025-03-02 19:01:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:01:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:01:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:01:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:01:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:01:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:01:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:01:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:01:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:01:14] Production.INFO: ==22874== Releasing lock... [2025-03-02 19:01:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:01:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:01:16] Production.INFO: count ==1539 [2025-03-02 19:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:01:04 - End Time 2025-03-02 19:01:04 [2025-03-02 19:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593124', 'tblTempUsageDetail_20' ) start [2025-03-02 19:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593124', 'tblTempUsageDetail_20' ) end [2025-03-02 19:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593124', 'tblTempVendorCDR_20' ) start [2025-03-02 19:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593124', 'tblTempVendorCDR_20' ) end [2025-03-02 19:01:16] Production.INFO: ProcessCDR(1,14593124,1,1,2) [2025-03-02 19:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593124', 'tblTempUsageDetail_20' ) start [2025-03-02 19:01:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593124', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:01:24] Production.INFO: ==22882== Releasing lock... [2025-03-02 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:01:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:02:01] Production.INFO: ==23029== Lock acquired, processing the job... [2025-03-03 00:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:02:02] Production.INFO: neon service started [2025-03-03 00:02:02] Production.INFO: neon service started [2025-03-03 00:02:02] Production.INFO: ==23029== Releasing lock... [2025-03-03 00:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:02:02] Production.INFO: ==23033== Lock acquired, processing the job... [2025-03-03 00:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:02:02] Production.INFO: ==23033== Releasing lock... [2025-03-03 00:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:02:02] Production.INFO: ==23031== Lock acquired, processing the job... [2025-03-02 19:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:02:02] Production.INFO: ==23031== Releasing lock... [2025-03-02 19:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:02:03] Production.INFO: ==23040== Lock acquired, processing the job... [2025-03-02 19:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:02:03] Production.INFO: ==23038== Lock acquired, processing the job... [2025-03-02 19:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:02:03] Production.INFO: ==23046== Lock acquired, processing the job... [2025-03-02 19:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:02:03] Production.INFO: ==23036== Lock acquired, processing the job... [2025-03-02 19:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:02:04] Production.INFO: ==23042== Lock acquired, processing the job... [2025-03-02 19:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:02:04] Production.INFO: count ==13 [2025-03-02 19:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:02:04] Production.INFO: count ==21 [2025-03-02 19:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593125') start [2025-03-02 19:02:04] Production.INFO: ==23044== Lock acquired, processing the job... [2025-03-02 19:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593125') end [2025-03-02 19:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:02:04] Production.INFO: 1 [2025-03-02 19:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:02:04] Production.INFO: Account Balance Start. [2025-03-02 19:02:04] Production.INFO: CreateAllLog Start [2025-03-02 19:02:04] Production.INFO: ==23046== Releasing lock... [2025-03-02 19:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:02:04] Production.INFO: 117 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: ==23038== Releasing lock... [2025-03-02 19:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:02:04] Production.ERROR: done [2025-03-02 19:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.ERROR: done [2025-03-02 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:02:04 [end_date_ymd] => 2025-03-02 19:02:04 [RateCDR] => 1 ) [2025-03-02 19:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:02:04' and `end` < '2025-03-02 19:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:02:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:02:05] Production.INFO: Total Charge 0 [2025-03-02 19:02:05] Production.INFO: CreateAllLog End [2025-03-02 19:02:05] Production.INFO: Account Balance End. [2025-03-02 19:02:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:02:05] Production.INFO: ==23042== Releasing lock... [2025-03-02 19:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:02:12] Production.ERROR: CronJobId end10 [2025-03-02 19:02:12] Production.INFO: ==23040== Releasing lock... [2025-03-02 19:02:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:02:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:02:16] Production.INFO: call_cost start [2025-03-02 19:02:16] Production.INFO: call_cost end [2025-03-02 19:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:02:16] Production.INFO: ==23036== Releasing lock... [2025-03-02 19:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:02:16] Production.INFO: count ==1534 [2025-03-02 19:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:02:04 - End Time 2025-03-02 19:02:04 [2025-03-02 19:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593129', 'tblTempUsageDetail_20' ) start [2025-03-02 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593129', 'tblTempUsageDetail_20' ) end [2025-03-02 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593129', 'tblTempVendorCDR_20' ) start [2025-03-02 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593129', 'tblTempVendorCDR_20' ) end [2025-03-02 19:02:17] Production.INFO: ProcessCDR(1,14593129,1,1,2) [2025-03-02 19:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593129', 'tblTempUsageDetail_20' ) start [2025-03-02 19:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593129', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:02:25] Production.INFO: ==23044== Releasing lock... [2025-03-02 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:02:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:03:01] Production.INFO: ==23107== Lock acquired, processing the job... [2025-03-03 00:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:03:01] Production.INFO: neon service started [2025-03-03 00:03:01] Production.INFO: neon service started [2025-03-03 00:03:01] Production.INFO: ==23107== Releasing lock... [2025-03-03 00:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:03:02] Production.INFO: ==23109== Lock acquired, processing the job... [2025-03-02 19:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:03:02] Production.INFO: ==23111== Lock acquired, processing the job... [2025-03-03 00:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:03:02] Production.INFO: ==23111== Releasing lock... [2025-03-03 00:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:03:02] Production.INFO: ==23109== Releasing lock... [2025-03-02 19:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:03:03] Production.INFO: ==23114== Lock acquired, processing the job... [2025-03-02 19:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:03:03] Production.INFO: ==23116== Lock acquired, processing the job... [2025-03-02 19:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:03:03] Production.INFO: ==23122== Lock acquired, processing the job... [2025-03-02 19:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:03:04] Production.INFO: ==23116== Releasing lock... [2025-03-02 19:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:03:04] Production.INFO: ==23120== Lock acquired, processing the job... [2025-03-02 19:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:03:04] Production.INFO: ==23118== Lock acquired, processing the job... [2025-03-02 19:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:03:04] Production.INFO: ==23124== Lock acquired, processing the job... [2025-03-02 19:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:03:04] Production.INFO: Account Balance Start. [2025-03-02 19:03:04] Production.INFO: CreateAllLog Start [2025-03-02 19:03:04] Production.INFO: 117 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:03:04] Production.INFO: count ==13 [2025-03-02 19:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:03:04] Production.INFO: count ==21 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593132') start [2025-03-02 19:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:03:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.ERROR: done [2025-03-02 19:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593132') end [2025-03-02 19:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:03:04] Production.INFO: 1 [2025-03-02 19:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: ==23124== Releasing lock... [2025-03-02 19:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:03:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.ERROR: done [2025-03-02 19:03:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:03:04 [end_date_ymd] => 2025-03-02 19:03:04 [RateCDR] => 1 ) [2025-03-02 19:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:03:04' and `end` < '2025-03-02 19:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:03:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:03:05] Production.INFO: Total Charge 0 [2025-03-02 19:03:05] Production.INFO: CreateAllLog End [2025-03-02 19:03:05] Production.INFO: Account Balance End. [2025-03-02 19:03:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:03:05] Production.INFO: ==23120== Releasing lock... [2025-03-02 19:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:03:13] Production.ERROR: CronJobId end10 [2025-03-02 19:03:13] Production.INFO: ==23118== Releasing lock... [2025-03-02 19:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:03:15] Production.INFO: call_cost start [2025-03-02 19:03:15] Production.INFO: call_cost end [2025-03-02 19:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:03:15] Production.INFO: ==23114== Releasing lock... [2025-03-02 19:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:03:16] Production.INFO: count ==1530 [2025-03-02 19:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:03:04 - End Time 2025-03-02 19:03:04 [2025-03-02 19:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593134', 'tblTempUsageDetail_20' ) start [2025-03-02 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593134', 'tblTempUsageDetail_20' ) end [2025-03-02 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593134', 'tblTempVendorCDR_20' ) start [2025-03-02 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593134', 'tblTempVendorCDR_20' ) end [2025-03-02 19:03:17] Production.INFO: ProcessCDR(1,14593134,1,1,2) [2025-03-02 19:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593134', 'tblTempUsageDetail_20' ) start [2025-03-02 19:03:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593134', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:03:24] Production.INFO: ==23122== Releasing lock... [2025-03-02 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:03:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:04:02] Production.INFO: ==23198== Lock acquired, processing the job... [2025-03-03 00:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:04:02] Production.INFO: neon service started [2025-03-03 00:04:02] Production.INFO: neon service started [2025-03-03 00:04:02] Production.INFO: ==23198== Releasing lock... [2025-03-03 00:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:04:02] Production.INFO: ==23200== Lock acquired, processing the job... [2025-03-02 19:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:04:02] Production.INFO: ==23200== Releasing lock... [2025-03-02 19:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:04:02] Production.INFO: ==23202== Lock acquired, processing the job... [2025-03-03 00:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:04:03] Production.INFO: ==23202== Releasing lock... [2025-03-03 00:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:04:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:04:03] Production.INFO: ==23210== Lock acquired, processing the job... [2025-03-02 19:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:04:03] Production.INFO: ==23204== Lock acquired, processing the job... [2025-03-02 19:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:04:03] Production.INFO: Account Balance Start. [2025-03-02 19:04:04] Production.INFO: CreateAllLog Start [2025-03-02 19:04:04] Production.INFO: 117 [2025-03-02 19:04:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: ==23206== Lock acquired, processing the job... [2025-03-02 19:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:04:04] Production.INFO: ==23215== Lock acquired, processing the job... [2025-03-02 19:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:04:04] Production.INFO: ==23208== Lock acquired, processing the job... [2025-03-02 19:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:04:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:04:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:04:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: count ==13 [2025-03-02 19:04:04] Production.INFO: ==23212== Lock acquired, processing the job... [2025-03-02 19:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:04:04] Production.INFO: count ==21 [2025-03-02 19:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593137') start [2025-03-02 19:04:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593137') end [2025-03-02 19:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:04:04] Production.INFO: 1 [2025-03-02 19:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:04:04] Production.INFO: ==23206== Releasing lock... [2025-03-02 19:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:04:04] Production.INFO: ==23215== Releasing lock... [2025-03-02 19:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:04:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.ERROR: done [2025-03-02 19:04:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.ERROR: done [2025-03-02 19:04:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:04:05 [end_date_ymd] => 2025-03-02 19:04:05 [RateCDR] => 1 ) [2025-03-02 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:04:05' and `end` < '2025-03-02 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:04:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:04:05] Production.INFO: Total Charge 0 [2025-03-02 19:04:05] Production.INFO: CreateAllLog End [2025-03-02 19:04:05] Production.INFO: Account Balance End. [2025-03-02 19:04:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:04:05] Production.INFO: ==23210== Releasing lock... [2025-03-02 19:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:04:13] Production.ERROR: CronJobId end10 [2025-03-02 19:04:13] Production.INFO: ==23208== Releasing lock... [2025-03-02 19:04:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:04:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:04:15] Production.INFO: call_cost start [2025-03-02 19:04:15] Production.INFO: call_cost end [2025-03-02 19:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:04:15] Production.INFO: ==23204== Releasing lock... [2025-03-02 19:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:04:17] Production.INFO: count ==1525 [2025-03-02 19:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:04:05 - End Time 2025-03-02 19:04:05 [2025-03-02 19:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593139', 'tblTempUsageDetail_20' ) start [2025-03-02 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593139', 'tblTempUsageDetail_20' ) end [2025-03-02 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593139', 'tblTempVendorCDR_20' ) start [2025-03-02 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593139', 'tblTempVendorCDR_20' ) end [2025-03-02 19:04:17] Production.INFO: ProcessCDR(1,14593139,1,1,2) [2025-03-02 19:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593139', 'tblTempUsageDetail_20' ) start [2025-03-02 19:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593139', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:04:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:04:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:04:25] Production.INFO: ==23212== Releasing lock... [2025-03-02 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:04:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:05:01] Production.INFO: ==23364== Lock acquired, processing the job... [2025-03-03 00:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:05:01] Production.INFO: neon service started [2025-03-03 00:05:01] Production.INFO: neon service started [2025-03-03 00:05:01] Production.INFO: ==23364== Releasing lock... [2025-03-03 00:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:05:02] Production.INFO: ==23366== Lock acquired, processing the job... [2025-03-02 19:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:05:02] Production.INFO: ==23366== Releasing lock... [2025-03-02 19:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:05:02] Production.INFO: ==23368== Lock acquired, processing the job... [2025-03-03 00:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:05:02] Production.INFO: ==23368== Releasing lock... [2025-03-03 00:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:05:03] Production.INFO: ==23379== Lock acquired, processing the job... [2025-03-02 19:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:05:03] Production.INFO: ==23381== Lock acquired, processing the job... [2025-03-02 19:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:05:03] Production.INFO: ==23371== Lock acquired, processing the job... [2025-03-02 19:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:05:03] Production.INFO: count ==13 [2025-03-02 19:05:03] Production.INFO: ==23373== Lock acquired, processing the job... [2025-03-02 19:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:05:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:05:03] Production.INFO: count ==21 [2025-03-02 19:05:03] Production.INFO: ==23375== Lock acquired, processing the job... [2025-03-02 19:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593140') start [2025-03-02 19:05:03] Production.INFO: ==23377== Lock acquired, processing the job... [2025-03-02 19:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593140') end [2025-03-02 19:05:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:05:03] Production.INFO: 1 [2025-03-02 19:05:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:05:03] Production.INFO: Account Balance Start. [2025-03-02 19:05:03] Production.INFO: CreateAllLog Start [2025-03-02 19:05:03] Production.INFO: 117 [2025-03-02 19:05:04] Production.ERROR: done [2025-03-02 19:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:05:04] Production.INFO: ==23381== Releasing lock... [2025-03-02 19:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:05:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:05:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: ==23373== Releasing lock... [2025-03-02 19:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:05:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.ERROR: done [2025-03-02 19:05:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:05:04 [end_date_ymd] => 2025-03-02 19:05:04 [RateCDR] => 1 ) [2025-03-02 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-03-02 16:05:04' and `end` < '2025-03-02 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-03-02 19:05:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:05:05] Production.INFO: Total Charge 0 [2025-03-02 19:05:05] Production.INFO: CreateAllLog End [2025-03-02 19:05:05] Production.INFO: Account Balance End. [2025-03-02 19:05:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:05:05] Production.INFO: ==23377== Releasing lock... [2025-03-02 19:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:05:13] Production.ERROR: CronJobId end10 [2025-03-02 19:05:13] Production.INFO: ==23375== Releasing lock... [2025-03-02 19:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:05:16] Production.INFO: call_cost start [2025-03-02 19:05:16] Production.INFO: call_cost end [2025-03-02 19:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:05:16] Production.INFO: ==23371== Releasing lock... [2025-03-02 19:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:05:16] Production.INFO: count ==1525 [2025-03-02 19:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:05:04 - End Time 2025-03-02 19:05:04 [2025-03-02 19:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593144', 'tblTempUsageDetail_20' ) start [2025-03-02 19:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593144', 'tblTempUsageDetail_20' ) end [2025-03-02 19:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593144', 'tblTempVendorCDR_20' ) start [2025-03-02 19:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593144', 'tblTempVendorCDR_20' ) end [2025-03-02 19:05:16] Production.INFO: ProcessCDR(1,14593144,1,1,2) [2025-03-02 19:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593144', 'tblTempUsageDetail_20' ) start [2025-03-02 19:05:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593144', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:05:24] Production.INFO: ==23379== Releasing lock... [2025-03-02 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:05:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:06:02] Production.INFO: ==23458== Lock acquired, processing the job... [2025-03-03 00:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:06:02] Production.INFO: neon service started [2025-03-03 00:06:02] Production.INFO: neon service started [2025-03-03 00:06:02] Production.INFO: ==23458== Releasing lock... [2025-03-03 00:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:06:02] Production.INFO: ==23460== Lock acquired, processing the job... [2025-03-02 19:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:06:02] Production.INFO: ==23460== Releasing lock... [2025-03-02 19:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:06:02] Production.INFO: ==23462== Lock acquired, processing the job... [2025-03-03 00:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:06:02] Production.INFO: ==23462== Releasing lock... [2025-03-03 00:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:06:03] Production.INFO: ==23471== Lock acquired, processing the job... [2025-03-02 19:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:06:03] Production.INFO: Account Balance Start. [2025-03-02 19:06:03] Production.INFO: CreateAllLog Start [2025-03-02 19:06:03] Production.INFO: 117 [2025-03-02 19:06:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: ==23465== Lock acquired, processing the job... [2025-03-02 19:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:06:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: ==23467== Lock acquired, processing the job... [2025-03-02 19:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:06:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: ==23469== Lock acquired, processing the job... [2025-03-02 19:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:06:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: ==23475== Lock acquired, processing the job... [2025-03-02 19:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:06:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: ==23473== Lock acquired, processing the job... [2025-03-02 19:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:06:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: count ==13 [2025-03-02 19:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:06:04] Production.INFO: count ==21 [2025-03-02 19:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593148') start [2025-03-02 19:06:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.INFO: ==23467== Releasing lock... [2025-03-02 19:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:06:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593148') end [2025-03-02 19:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:06:04] Production.INFO: 1 [2025-03-02 19:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:06:04] Production.INFO: Total Charge 0 [2025-03-02 19:06:04] Production.INFO: CreateAllLog End [2025-03-02 19:06:05] Production.INFO: ==23475== Releasing lock... [2025-03-02 19:06:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:06:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:06:05] Production.ERROR: done [2025-03-02 19:06:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:06:05] Production.ERROR: done [2025-03-02 19:06:05] Production.INFO: Account Balance End. [2025-03-02 19:06:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:06:05] Production.INFO: ==23471== Releasing lock... [2025-03-02 19:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:06:05 [end_date_ymd] => 2025-03-02 19:06:05 [RateCDR] => 1 ) [2025-03-02 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:06:05' and `end` < '2025-03-02 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:06:13] Production.ERROR: CronJobId end10 [2025-03-02 19:06:13] Production.INFO: ==23469== Releasing lock... [2025-03-02 19:06:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:06:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:06:15] Production.INFO: call_cost start [2025-03-02 19:06:15] Production.INFO: call_cost end [2025-03-02 19:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:06:15] Production.INFO: ==23465== Releasing lock... [2025-03-02 19:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:06:17] Production.INFO: count ==1522 [2025-03-02 19:06:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:06:05 - End Time 2025-03-02 19:06:05 [2025-03-02 19:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593149', 'tblTempUsageDetail_20' ) start [2025-03-02 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593149', 'tblTempUsageDetail_20' ) end [2025-03-02 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593149', 'tblTempVendorCDR_20' ) start [2025-03-02 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593149', 'tblTempVendorCDR_20' ) end [2025-03-02 19:06:17] Production.INFO: ProcessCDR(1,14593149,1,1,2) [2025-03-02 19:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593149', 'tblTempUsageDetail_20' ) start [2025-03-02 19:06:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593149', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:06:26] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:06:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:06:26] Production.INFO: ==23473== Releasing lock... [2025-03-02 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:06:26] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:07:01] Production.INFO: ==23534== Lock acquired, processing the job... [2025-03-03 00:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:07:01] Production.INFO: neon service started [2025-03-03 00:07:01] Production.INFO: neon service started [2025-03-03 00:07:01] Production.INFO: ==23534== Releasing lock... [2025-03-03 00:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:07:01] Production.INFO: ==23538== Lock acquired, processing the job... [2025-03-03 00:07:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:07:01] Production.INFO: ==23538== Releasing lock... [2025-03-03 00:07:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:07:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:07:02] Production.INFO: ==23536== Lock acquired, processing the job... [2025-03-02 19:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:07:02] Production.INFO: ==23536== Releasing lock... [2025-03-02 19:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:07:03] Production.INFO: ==23543== Lock acquired, processing the job... [2025-03-02 19:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:07:03] Production.INFO: ==23551== Lock acquired, processing the job... [2025-03-02 19:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:07:03] Production.INFO: ==23541== Lock acquired, processing the job... [2025-03-02 19:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:07:03] Production.INFO: ==23543== Releasing lock... [2025-03-02 19:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:07:03] Production.INFO: count ==13 [2025-03-02 19:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:07:03] Production.INFO: count ==21 [2025-03-02 19:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:07:03] Production.INFO: ==23545== Lock acquired, processing the job... [2025-03-02 19:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593151') start [2025-03-02 19:07:03] Production.INFO: ==23547== Lock acquired, processing the job... [2025-03-02 19:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:07:03] Production.INFO: ==23549== Lock acquired, processing the job... [2025-03-02 19:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:07:03] Production.INFO: Account Balance Start. [2025-03-02 19:07:03] Production.INFO: CreateAllLog Start [2025-03-02 19:07:03] Production.INFO: 117 [2025-03-02 19:07:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593151') end [2025-03-02 19:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:07:04] Production.INFO: 1 [2025-03-02 19:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:07:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: ==23551== Releasing lock... [2025-03-02 19:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:07:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.ERROR: done [2025-03-02 19:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.ERROR: done [2025-03-02 19:07:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:07:04 [end_date_ymd] => 2025-03-02 19:07:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:07:04' and `end` < '2025-03-02 19: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-03-02 19:07:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:07:05] Production.INFO: Total Charge 0 [2025-03-02 19:07:05] Production.INFO: CreateAllLog End [2025-03-02 19:07:05] Production.INFO: Account Balance End. [2025-03-02 19:07:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:07:05] Production.INFO: ==23547== Releasing lock... [2025-03-02 19:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:07:12] Production.ERROR: CronJobId end10 [2025-03-02 19:07:12] Production.INFO: ==23545== Releasing lock... [2025-03-02 19:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:07:15] Production.INFO: call_cost start [2025-03-02 19:07:15] Production.INFO: call_cost end [2025-03-02 19:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:07:15] Production.INFO: ==23541== Releasing lock... [2025-03-02 19:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:07:17] Production.INFO: count ==1526 [2025-03-02 19:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:07:04 - End Time 2025-03-02 19:07:04 [2025-03-02 19:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593154', 'tblTempUsageDetail_20' ) start [2025-03-02 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593154', 'tblTempUsageDetail_20' ) end [2025-03-02 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593154', 'tblTempVendorCDR_20' ) start [2025-03-02 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593154', 'tblTempVendorCDR_20' ) end [2025-03-02 19:07:17] Production.INFO: ProcessCDR(1,14593154,1,1,2) [2025-03-02 19:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593154', 'tblTempUsageDetail_20' ) start [2025-03-02 19:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593154', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:07:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:07:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:07:25] Production.INFO: ==23549== Releasing lock... [2025-03-02 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:07:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:08:02] Production.INFO: ==23649== Lock acquired, processing the job... [2025-03-03 00:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:08:02] Production.INFO: neon service started [2025-03-03 00:08:02] Production.INFO: neon service started [2025-03-03 00:08:02] Production.INFO: ==23649== Releasing lock... [2025-03-03 00:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:08:02] Production.INFO: ==23651== Lock acquired, processing the job... [2025-03-02 19:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:08:02] Production.INFO: ==23651== Releasing lock... [2025-03-02 19:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:08:02] Production.INFO: ==23653== Lock acquired, processing the job... [2025-03-03 00:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:08:03] Production.INFO: ==23653== Releasing lock... [2025-03-03 00:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:08:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:08:04] Production.INFO: ==23672== Lock acquired, processing the job... [2025-03-02 19:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:08:04] Production.INFO: ==23670== Lock acquired, processing the job... [2025-03-02 19:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:08:04] Production.INFO: ==23659== Lock acquired, processing the job... [2025-03-02 19:08:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:08:04] Production.INFO: Account Balance Start. [2025-03-02 19:08:04] Production.INFO: CreateAllLog Start [2025-03-02 19:08:04] Production.INFO: 117 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:08:04] Production.INFO: ==23663== Lock acquired, processing the job... [2025-03-02 19:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: ==23666== Lock acquired, processing the job... [2025-03-02 19:08:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:08:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: ==23677== Lock acquired, processing the job... [2025-03-02 19:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:08:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:08:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.ERROR: done [2025-03-02 19:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: count ==13 [2025-03-02 19:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:08:04] Production.INFO: count ==21 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593158') start [2025-03-02 19:08:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.ERROR: done [2025-03-02 19:08:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:04] Production.INFO: ==23663== Releasing lock... [2025-03-02 19:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593158') end [2025-03-02 19:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:08:04] Production.INFO: 1 [2025-03-02 19:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:08:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:08:05 [end_date_ymd] => 2025-03-02 19:08:05 [RateCDR] => 1 ) [2025-03-02 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:08:05' and `end` < '2025-03-02 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:08:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: ==23677== Releasing lock... [2025-03-02 19:08:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:08:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:08:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:08:05] Production.INFO: Total Charge 0 [2025-03-02 19:08:05] Production.INFO: CreateAllLog End [2025-03-02 19:08:05] Production.INFO: Account Balance End. [2025-03-02 19:08:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:08:05] Production.INFO: ==23670== Releasing lock... [2025-03-02 19:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:08:14] Production.ERROR: CronJobId end10 [2025-03-02 19:08:14] Production.INFO: ==23666== Releasing lock... [2025-03-02 19:08:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:08:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:08:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:08:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:08:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:08:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:08:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:08:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:08:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:08:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:08:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:08:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:08:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:08:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:08:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:08:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:08:17] Production.INFO: count ==1529 [2025-03-02 19:08:17] Production.INFO: call_cost start [2025-03-02 19:08:17] Production.INFO: call_cost end [2025-03-02 19:08:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:08:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:08:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:08:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:08:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:08:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:08:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:08:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:08:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:08:17] Production.INFO: ==23659== Releasing lock... [2025-03-02 19:08:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:08:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:08:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:08:05 - End Time 2025-03-02 19:08:05 [2025-03-02 19:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593159', 'tblTempUsageDetail_20' ) start [2025-03-02 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593159', 'tblTempUsageDetail_20' ) end [2025-03-02 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593159', 'tblTempVendorCDR_20' ) start [2025-03-02 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593159', 'tblTempVendorCDR_20' ) end [2025-03-02 19:08:17] Production.INFO: ProcessCDR(1,14593159,1,1,2) [2025-03-02 19:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593159', 'tblTempUsageDetail_20' ) start [2025-03-02 19:08:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593159', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:08:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:08:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:08:25] Production.INFO: ==23672== Releasing lock... [2025-03-02 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:08:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:09:01] Production.INFO: ==23776== Lock acquired, processing the job... [2025-03-03 00:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:09:01] Production.INFO: neon service started [2025-03-03 00:09:01] Production.INFO: neon service started [2025-03-03 00:09:01] Production.INFO: ==23776== Releasing lock... [2025-03-03 00:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:09:01] Production.INFO: ==23778== Lock acquired, processing the job... [2025-03-02 19:09:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:09:02] Production.INFO: ==23780== Lock acquired, processing the job... [2025-03-03 00:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 19:09:02] Production.INFO: ==23778== Releasing lock... [2025-03-02 19:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:09:02] Production.INFO: ==23780== Releasing lock... [2025-03-03 00:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:09:03] Production.INFO: ==23788== Lock acquired, processing the job... [2025-03-02 19:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:09:03] Production.INFO: Account Balance Start. [2025-03-02 19:09:03] Production.INFO: CreateAllLog Start [2025-03-02 19:09:03] Production.INFO: 117 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: ==23792== Lock acquired, processing the job... [2025-03-02 19:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:09:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:09:03] Production.INFO: Date 2025-02-16 [2025-03-02 19:09:03] Production.INFO: count ==13 [2025-03-02 19:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:09:03] Production.INFO: count ==21 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593161') start [2025-03-02 19:09:03] Production.INFO: Date 2025-02-17 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-18 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-19 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593161') end [2025-03-02 19:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:09:03] Production.INFO: 1 [2025-03-02 19:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:09:03] Production.INFO: Date 2025-02-20 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: ==23782== Lock acquired, processing the job... [2025-03-02 19:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:09:03] Production.INFO: Date 2025-02-21 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: ==23792== Releasing lock... [2025-03-02 19:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:09:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:09:03] Production.INFO: ==23784== Lock acquired, processing the job... [2025-03-02 19:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:09:03] Production.INFO: Date 2025-02-22 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-23 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: ==23786== Lock acquired, processing the job... [2025-03-02 19:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:09:03] Production.INFO: Date 2025-02-24 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: ==23790== Lock acquired, processing the job... [2025-03-02 19:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-25 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:09:03] Production.INFO: Date 2025-02-26 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-27 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:03] Production.INFO: Date 2025-02-28 [2025-03-02 19:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:09:04] Production.INFO: Total Charge 0 [2025-03-02 19:09:04] Production.INFO: ==23784== Releasing lock... [2025-03-02 19:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:09:04] Production.INFO: CreateAllLog End [2025-03-02 19:09:04] Production.ERROR: done [2025-03-02 19:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:09:04] Production.ERROR: done [2025-03-02 19:09:04] Production.INFO: Account Balance End. [2025-03-02 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:09:04 [end_date_ymd] => 2025-03-02 19:09:04 [RateCDR] => 1 ) [2025-03-02 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:09:04' and `end` < '2025-03-02 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:09:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:09:04] Production.INFO: ==23788== Releasing lock... [2025-03-02 19:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:09:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:09:13] Production.ERROR: CronJobId end10 [2025-03-02 19:09:13] Production.INFO: ==23786== Releasing lock... [2025-03-02 19:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:09:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:09:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:09:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:09:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:09:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:09:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:09:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:09:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:09:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:09:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:09:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:09:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:09:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:09:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:09:16] Production.INFO: call_cost start [2025-03-02 19:09:16] Production.INFO: call_cost end [2025-03-02 19:09:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:09:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:09:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:09:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:09:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:09:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:09:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:09:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:09:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:09:16] Production.INFO: ==23782== Releasing lock... [2025-03-02 19:09:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:09:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:09:16] Production.INFO: count ==1526 [2025-03-02 19:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:09:04 - End Time 2025-03-02 19:09:04 [2025-03-02 19:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593164', 'tblTempUsageDetail_20' ) start [2025-03-02 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593164', 'tblTempUsageDetail_20' ) end [2025-03-02 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593164', 'tblTempVendorCDR_20' ) start [2025-03-02 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593164', 'tblTempVendorCDR_20' ) end [2025-03-02 19:09:17] Production.INFO: ProcessCDR(1,14593164,1,1,2) [2025-03-02 19:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593164', 'tblTempUsageDetail_20' ) start [2025-03-02 19:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593164', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:09:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:09:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:09:25] Production.INFO: ==23790== Releasing lock... [2025-03-02 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:09:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:10:01] Production.INFO: ==23870== Lock acquired, processing the job... [2025-03-03 00:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:10:02] Production.INFO: neon service started [2025-03-03 00:10:02] Production.INFO: neon service started [2025-03-03 00:10:02] Production.INFO: ==23870== Releasing lock... [2025-03-03 00:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:10:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:10:02] Production.INFO: ==23873== Lock acquired, processing the job... [2025-03-02 19:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:10:02] Production.INFO: ==23873== Releasing lock... [2025-03-02 19:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:10:02] Production.INFO: ==23876== Lock acquired, processing the job... [2025-03-03 00:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:10:03] Production.INFO: ==23876== Releasing lock... [2025-03-03 00:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:10:04] Production.INFO: ==23887== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:10:04] Production.INFO: ==23879== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 19:10:04] Production.INFO: ==23881== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:10:04] Production.INFO: ==23891== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 19:10:04] Production.INFO: ==23883== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:10:04] Production.INFO: Account Balance Start. [2025-03-02 19:10:04] Production.INFO: CreateAllLog Start [2025-03-02 19:10:04] Production.INFO: 117 [2025-03-02 19:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 19:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 19:10:04] Production.ERROR: CronJob PID - 23887 [2025-03-02 19:10:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-02 19:10:04] Production.ERROR: CronJob ID - 12 [2025-03-02 19:10:04] Production.ERROR: CronJob Last Run Time 2025-03-02 19:10:00 [2025-03-02 19:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 19:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 19:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 19:10:04] Production.ERROR: CronJob PID - 23891 [2025-03-02 19:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-02 19:10:04] Production.ERROR: CronJob ID - 17 [2025-03-02 19:10:04] Production.ERROR: CronJob Last Run Time 2025-03-02 19:10:00 [2025-03-02 19:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 19:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 19:10:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 19:10:04] Production.INFO: ==23879== Releasing lock... [2025-03-02 19:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 19:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:10:04] Production.INFO: ==23893== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:10:04] Production.INFO: ==23885== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:10:04] Production.INFO: ==23889== Lock acquired, processing the job... [2025-03-02 19:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:10:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:10:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:10:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: count ==13 [2025-03-02 19:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:10:04] Production.INFO: count ==21 [2025-03-02 19:10:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593168') start [2025-03-02 19:10:04] Production.ERROR: done [2025-03-02 19:10:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593168') end [2025-03-02 19:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:10:04] Production.INFO: 1 [2025-03-02 19:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 19:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593169', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 19:10:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: ==23893== Releasing lock... [2025-03-02 19:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:10:04] Production.ERROR: done [2025-03-02 19:10:04] Production.INFO: ==23883== Releasing lock... [2025-03-02 19:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:10:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.ERROR: done [2025-03-02 19:10:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:10:05 [end_date_ymd] => 2025-03-02 19:10:05 [RateCDR] => 1 ) [2025-03-02 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:10:05' and `end` < '2025-03-02 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:10:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:10:05] Production.INFO: Total Charge 0 [2025-03-02 19:10:05] Production.INFO: CreateAllLog End [2025-03-02 19:10:05] Production.INFO: Account Balance End. [2025-03-02 19:10:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:10:05] Production.INFO: ==23887== Releasing lock... [2025-03-02 19:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:10:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593169', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 19:10:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 19:10:08] Production.INFO: ProcessCDR(1,14593169,1,1,2) [2025-03-02 19:10:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593169,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:10:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593169,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:10:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 19:10:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 19:10:09] Production.INFO: ==23891== Releasing lock... [2025-03-02 19:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 19:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:10:14] Production.ERROR: CronJobId end10 [2025-03-02 19:10:14] Production.INFO: ==23885== Releasing lock... [2025-03-02 19:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:10:17] Production.INFO: call_cost start [2025-03-02 19:10:17] Production.INFO: call_cost end [2025-03-02 19:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:10:17] Production.INFO: ==23881== Releasing lock... [2025-03-02 19:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:10:17] Production.INFO: count ==1513 [2025-03-02 19:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:10:05 - End Time 2025-03-02 19:10:05 [2025-03-02 19:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593170', 'tblTempUsageDetail_20' ) start [2025-03-02 19:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593170', 'tblTempUsageDetail_20' ) end [2025-03-02 19:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593170', 'tblTempVendorCDR_20' ) start [2025-03-02 19:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593170', 'tblTempVendorCDR_20' ) end [2025-03-02 19:10:17] Production.INFO: ProcessCDR(1,14593170,1,1,2) [2025-03-02 19:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593170', 'tblTempUsageDetail_20' ) start [2025-03-02 19:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593170', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:10:25] Production.INFO: ==23889== Releasing lock... [2025-03-02 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:10:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:11:01] Production.INFO: ==23960== Lock acquired, processing the job... [2025-03-03 00:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:11:01] Production.INFO: neon service started [2025-03-03 00:11:01] Production.INFO: neon service started [2025-03-03 00:11:01] Production.INFO: ==23960== Releasing lock... [2025-03-03 00:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:11:01] Production.INFO: ==23964== Lock acquired, processing the job... [2025-03-03 00:11:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:11:01] Production.INFO: ==23964== Releasing lock... [2025-03-03 00:11:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:11:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:11:02] Production.INFO: ==23962== Lock acquired, processing the job... [2025-03-02 19:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:11:02] Production.INFO: ==23962== Releasing lock... [2025-03-02 19:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:11:03] Production.INFO: ==23969== Lock acquired, processing the job... [2025-03-02 19:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:11:03] Production.INFO: ==23971== Lock acquired, processing the job... [2025-03-02 19:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:11:03] Production.INFO: ==23973== Lock acquired, processing the job... [2025-03-02 19:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:11:03] Production.INFO: ==23971== Releasing lock... [2025-03-02 19:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:11:03] Production.INFO: ==23977== Lock acquired, processing the job... [2025-03-02 19:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:11:03] Production.INFO: ==23979== Lock acquired, processing the job... [2025-03-02 19:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:11:03] Production.INFO: ==23975== Lock acquired, processing the job... [2025-03-02 19:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:11:03] Production.INFO: Account Balance Start. [2025-03-02 19:11:03] Production.INFO: CreateAllLog Start [2025-03-02 19:11:03] Production.INFO: 117 [2025-03-02 19:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:11:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:03] Production.INFO: count ==13 [2025-03-02 19:11:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:03] Production.INFO: count ==21 [2025-03-02 19:11:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593173') start [2025-03-02 19:11:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593173') end [2025-03-02 19:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:11:04] Production.INFO: 1 [2025-03-02 19:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:11:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: ==23979== Releasing lock... [2025-03-02 19:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:11:04] Production.ERROR: done [2025-03-02 19:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.ERROR: done [2025-03-02 19:11:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:11:04 [end_date_ymd] => 2025-03-02 19:11:04 [RateCDR] => 1 ) [2025-03-02 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:11:04' and `end` < '2025-03-02 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:11:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:11:04] Production.INFO: Total Charge 0 [2025-03-02 19:11:04] Production.INFO: CreateAllLog End [2025-03-02 19:11:04] Production.INFO: Account Balance End. [2025-03-02 19:11:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:11:04] Production.INFO: ==23975== Releasing lock... [2025-03-02 19:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:11:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:11:11] Production.ERROR: CronJobId end10 [2025-03-02 19:11:11] Production.INFO: ==23973== Releasing lock... [2025-03-02 19:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:11:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:11:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:11:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:11:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:11:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:11:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:11:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:11:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:11:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:11:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:11:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:11:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:11:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:11:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:11:14] Production.INFO: call_cost start [2025-03-02 19:11:14] Production.INFO: call_cost end [2025-03-02 19:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:11:14] Production.INFO: ==23969== Releasing lock... [2025-03-02 19:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:11:16] Production.INFO: count ==1527 [2025-03-02 19:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:11:04 - End Time 2025-03-02 19:11:04 [2025-03-02 19:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593175', 'tblTempUsageDetail_20' ) start [2025-03-02 19:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593175', 'tblTempUsageDetail_20' ) end [2025-03-02 19:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593175', 'tblTempVendorCDR_20' ) start [2025-03-02 19:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593175', 'tblTempVendorCDR_20' ) end [2025-03-02 19:11:16] Production.INFO: ProcessCDR(1,14593175,1,1,2) [2025-03-02 19:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593175', 'tblTempUsageDetail_20' ) start [2025-03-02 19:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593175', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:11:24] Production.INFO: ==23977== Releasing lock... [2025-03-02 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:11:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:12:01] Production.INFO: ==24166== Lock acquired, processing the job... [2025-03-03 00:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:12:01] Production.INFO: neon service started [2025-03-03 00:12:01] Production.INFO: neon service started [2025-03-03 00:12:01] Production.INFO: ==24166== Releasing lock... [2025-03-03 00:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:12:02] Production.INFO: ==24168== Lock acquired, processing the job... [2025-03-02 19:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:12:02] Production.INFO: ==24168== Releasing lock... [2025-03-02 19:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:12:02] Production.INFO: ==24170== Lock acquired, processing the job... [2025-03-03 00:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:12:02] Production.INFO: ==24170== Releasing lock... [2025-03-03 00:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:12:03] Production.INFO: ==24178== Lock acquired, processing the job... [2025-03-02 19:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:12:03] Production.INFO: ==24174== Lock acquired, processing the job... [2025-03-02 19:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:12:03] Production.INFO: ==24183== Lock acquired, processing the job... [2025-03-02 19:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:12:03] Production.INFO: ==24176== Lock acquired, processing the job... [2025-03-02 19:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:12:03] Production.INFO: ==24180== Lock acquired, processing the job... [2025-03-02 19:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:12:03] Production.INFO: ==24185== Lock acquired, processing the job... [2025-03-02 19:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:12:04] Production.INFO: Account Balance Start. [2025-03-02 19:12:04] Production.INFO: CreateAllLog Start [2025-03-02 19:12:04] Production.INFO: 117 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:12:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.ERROR: done [2025-03-02 19:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:12:04] Production.INFO: count ==13 [2025-03-02 19:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:12:04] Production.INFO: count ==21 [2025-03-02 19:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593179') start [2025-03-02 19:12:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.ERROR: done [2025-03-02 19:12:04] Production.INFO: ==24176== Releasing lock... [2025-03-02 19:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593179') end [2025-03-02 19:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:12:04] Production.INFO: 1 [2025-03-02 19:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:12:04] Production.INFO: ==24185== Releasing lock... [2025-03-02 19:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:12:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:12:04 [end_date_ymd] => 2025-03-02 19:12:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:12:04' and `end` < '2025-03-02 19: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-03-02 19:12:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:12:05] Production.INFO: Total Charge 0 [2025-03-02 19:12:05] Production.INFO: CreateAllLog End [2025-03-02 19:12:05] Production.INFO: Account Balance End. [2025-03-02 19:12:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:12:05] Production.INFO: ==24180== Releasing lock... [2025-03-02 19:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:12:12] Production.ERROR: CronJobId end10 [2025-03-02 19:12:12] Production.INFO: ==24178== Releasing lock... [2025-03-02 19:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:12:15] Production.INFO: call_cost start [2025-03-02 19:12:15] Production.INFO: call_cost end [2025-03-02 19:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:12:15] Production.INFO: ==24174== Releasing lock... [2025-03-02 19:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:12:16] Production.INFO: count ==1532 [2025-03-02 19:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:12:04 - End Time 2025-03-02 19:12:04 [2025-03-02 19:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593180', 'tblTempUsageDetail_20' ) start [2025-03-02 19:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593180', 'tblTempUsageDetail_20' ) end [2025-03-02 19:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593180', 'tblTempVendorCDR_20' ) start [2025-03-02 19:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593180', 'tblTempVendorCDR_20' ) end [2025-03-02 19:12:16] Production.INFO: ProcessCDR(1,14593180,1,1,2) [2025-03-02 19:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593180', 'tblTempUsageDetail_20' ) start [2025-03-02 19:12:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593180', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:12:24] Production.INFO: ==24183== Releasing lock... [2025-03-02 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:12:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:13:02] Production.INFO: ==24252== Lock acquired, processing the job... [2025-03-03 00:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:13:02] Production.INFO: neon service started [2025-03-03 00:13:02] Production.INFO: neon service started [2025-03-03 00:13:02] Production.INFO: ==24252== Releasing lock... [2025-03-03 00:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:13:02] Production.INFO: ==24254== Lock acquired, processing the job... [2025-03-02 19:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:13:03] Production.INFO: ==24254== Releasing lock... [2025-03-02 19:13:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:13:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:13:03] Production.INFO: ==24256== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:13:03] Production.INFO: ==24256== Releasing lock... [2025-03-03 00:13:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:13:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:13:03] Production.INFO: ==24259== Lock acquired, processing the job... [2025-03-02 19:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:13:04] Production.INFO: ==24267== Lock acquired, processing the job... [2025-03-02 19:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:13:04] Production.INFO: ==24269== Lock acquired, processing the job... [2025-03-02 19:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:13:04] Production.INFO: ==24261== Lock acquired, processing the job... [2025-03-02 19:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:13:04] Production.INFO: ==24263== Lock acquired, processing the job... [2025-03-02 19:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:13:04] Production.INFO: ==24265== Lock acquired, processing the job... [2025-03-02 19:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:13:04] Production.INFO: count ==13 [2025-03-02 19:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:13:04] Production.INFO: count ==21 [2025-03-02 19:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593182') start [2025-03-02 19:13:04] Production.INFO: Account Balance Start. [2025-03-02 19:13:04] Production.INFO: CreateAllLog Start [2025-03-02 19:13:04] Production.INFO: 117 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:13:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.ERROR: done [2025-03-02 19:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593182') end [2025-03-02 19:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:13:04] Production.INFO: 1 [2025-03-02 19:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:13:04] Production.INFO: ==24261== Releasing lock... [2025-03-02 19:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:13:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:13:04] Production.INFO: ==24269== Releasing lock... [2025-03-02 19:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.ERROR: done [2025-03-02 19:13:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:13:04 [end_date_ymd] => 2025-03-02 19:13:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:13:04' and `end` < '2025-03-02 19: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-03-02 19:13:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:13:05] Production.INFO: Total Charge 0 [2025-03-02 19:13:05] Production.INFO: CreateAllLog End [2025-03-02 19:13:05] Production.INFO: Account Balance End. [2025-03-02 19:13:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:13:05] Production.INFO: ==24265== Releasing lock... [2025-03-02 19:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:13:13] Production.ERROR: CronJobId end10 [2025-03-02 19:13:13] Production.INFO: ==24263== Releasing lock... [2025-03-02 19:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:13:15] Production.INFO: call_cost start [2025-03-02 19:13:15] Production.INFO: call_cost end [2025-03-02 19:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:13:15] Production.INFO: ==24259== Releasing lock... [2025-03-02 19:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:13:16] Production.INFO: count ==1532 [2025-03-02 19:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:13:04 - End Time 2025-03-02 19:13:04 [2025-03-02 19:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593185', 'tblTempUsageDetail_20' ) start [2025-03-02 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593185', 'tblTempUsageDetail_20' ) end [2025-03-02 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593185', 'tblTempVendorCDR_20' ) start [2025-03-02 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593185', 'tblTempVendorCDR_20' ) end [2025-03-02 19:13:17] Production.INFO: ProcessCDR(1,14593185,1,1,2) [2025-03-02 19:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593185', 'tblTempUsageDetail_20' ) start [2025-03-02 19:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593185', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:13:24] Production.INFO: ==24267== Releasing lock... [2025-03-02 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:13:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:14:01] Production.INFO: ==24353== Lock acquired, processing the job... [2025-03-03 00:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:14:01] Production.INFO: neon service started [2025-03-03 00:14:01] Production.INFO: neon service started [2025-03-03 00:14:01] Production.INFO: ==24353== Releasing lock... [2025-03-03 00:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:14:02] Production.INFO: ==24357== Lock acquired, processing the job... [2025-03-03 00:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:14:02] Production.INFO: ==24357== Releasing lock... [2025-03-03 00:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:14:02] Production.INFO: ==24355== Lock acquired, processing the job... [2025-03-02 19:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:14:02] Production.INFO: ==24355== Releasing lock... [2025-03-02 19:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:14:03] Production.INFO: ==24364== Lock acquired, processing the job... [2025-03-02 19:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:14:03] Production.INFO: ==24370== Lock acquired, processing the job... [2025-03-02 19:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:14:03] Production.INFO: ==24362== Lock acquired, processing the job... [2025-03-02 19:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:14:03] Production.INFO: ==24360== Lock acquired, processing the job... [2025-03-02 19:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:14:04] Production.INFO: count ==13 [2025-03-02 19:14:04] Production.INFO: ==24368== Lock acquired, processing the job... [2025-03-02 19:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:14:04] Production.INFO: count ==21 [2025-03-02 19:14:04] Production.INFO: ==24366== Lock acquired, processing the job... [2025-03-02 19:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593186') start [2025-03-02 19:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:14:04] Production.INFO: Account Balance Start. [2025-03-02 19:14:04] Production.INFO: CreateAllLog Start [2025-03-02 19:14:04] Production.INFO: 117 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593186') end [2025-03-02 19:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:14:04] Production.INFO: 1 [2025-03-02 19:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: ==24370== Releasing lock... [2025-03-02 19:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:14:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: ==24362== Releasing lock... [2025-03-02 19:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:14:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.ERROR: done [2025-03-02 19:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.ERROR: done [2025-03-02 19:14:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:14:04 [end_date_ymd] => 2025-03-02 19:14:04 [RateCDR] => 1 ) [2025-03-02 19:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:14:04' and `end` < '2025-03-02 19:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:14:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:14:05] Production.INFO: Total Charge 0 [2025-03-02 19:14:05] Production.INFO: CreateAllLog End [2025-03-02 19:14:05] Production.INFO: Account Balance End. [2025-03-02 19:14:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:14:05] Production.INFO: ==24366== Releasing lock... [2025-03-02 19:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:14:13] Production.ERROR: CronJobId end10 [2025-03-02 19:14:13] Production.INFO: ==24364== Releasing lock... [2025-03-02 19:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:14:15] Production.INFO: call_cost start [2025-03-02 19:14:15] Production.INFO: call_cost end [2025-03-02 19:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:14:15] Production.INFO: ==24360== Releasing lock... [2025-03-02 19:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:14:17] Production.INFO: count ==1533 [2025-03-02 19:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:14:04 - End Time 2025-03-02 19:14:04 [2025-03-02 19:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593190', 'tblTempUsageDetail_20' ) start [2025-03-02 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593190', 'tblTempUsageDetail_20' ) end [2025-03-02 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593190', 'tblTempVendorCDR_20' ) start [2025-03-02 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593190', 'tblTempVendorCDR_20' ) end [2025-03-02 19:14:17] Production.INFO: ProcessCDR(1,14593190,1,1,2) [2025-03-02 19:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593190', 'tblTempUsageDetail_20' ) start [2025-03-02 19:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593190', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:14:24] Production.INFO: ==24368== Releasing lock... [2025-03-02 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:14:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:15:02] Production.INFO: ==24521== Lock acquired, processing the job... [2025-03-03 00:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:15:02] Production.INFO: neon service started [2025-03-03 00:15:02] Production.INFO: neon service started [2025-03-03 00:15:02] Production.INFO: ==24521== Releasing lock... [2025-03-03 00:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:15:02] Production.INFO: ==24523== Lock acquired, processing the job... [2025-03-02 19:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:15:02] Production.INFO: ==24523== Releasing lock... [2025-03-02 19:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:15:03] Production.INFO: ==24525== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:15:03] Production.INFO: ==24525== Releasing lock... [2025-03-03 00:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:15:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:15:03] Production.INFO: ==24532== Lock acquired, processing the job... [2025-03-02 19:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:15:03] Production.INFO: ==24538== Lock acquired, processing the job... [2025-03-02 19:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:15:03] Production.INFO: ==24528== Lock acquired, processing the job... [2025-03-02 19:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:15:04] Production.INFO: count ==13 [2025-03-02 19:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:15:04] Production.INFO: count ==21 [2025-03-02 19:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593191') start [2025-03-02 19:15:04] Production.INFO: ==24530== Lock acquired, processing the job... [2025-03-02 19:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593191') end [2025-03-02 19:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:15:04] Production.INFO: 1 [2025-03-02 19:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:15:04] Production.INFO: ==24536== Lock acquired, processing the job... [2025-03-02 19:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:15:04] Production.INFO: ==24534== Lock acquired, processing the job... [2025-03-02 19:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:15:04] Production.INFO: ==24538== Releasing lock... [2025-03-02 19:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:15:04] Production.INFO: Account Balance Start. [2025-03-02 19:15:04] Production.INFO: CreateAllLog Start [2025-03-02 19:15:04] Production.INFO: 117 [2025-03-02 19:15:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:04] Production.INFO: ==24530== Releasing lock... [2025-03-02 19:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:15:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:04] Production.ERROR: done [2025-03-02 19:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:15:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-13 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.ERROR: done [2025-03-02 19:15:05] Production.INFO: Date 2025-02-14 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-15 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-16 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-17 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:15:05 [end_date_ymd] => 2025-03-02 19:15:05 [RateCDR] => 1 ) [2025-03-02 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:15:05' and `end` < '2025-03-02 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:15:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:15:05] Production.INFO: Total Charge 0 [2025-03-02 19:15:05] Production.INFO: CreateAllLog End [2025-03-02 19:15:06] Production.INFO: Account Balance End. [2025-03-02 19:15:06] Production.ERROR: CronJobId end 12 [2025-03-02 19:15:06] Production.INFO: ==24534== Releasing lock... [2025-03-02 19:15:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:15:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:15:12] Production.ERROR: CronJobId end10 [2025-03-02 19:15:12] Production.INFO: ==24532== Releasing lock... [2025-03-02 19:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:15:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:15:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:15:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:15:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:15:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:15:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:15:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:15:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:15:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:15:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:15:15] Production.INFO: call_cost start [2025-03-02 19:15:15] Production.INFO: call_cost end [2025-03-02 19:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:15:15] Production.INFO: ==24528== Releasing lock... [2025-03-02 19:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:15:17] Production.INFO: count ==1534 [2025-03-02 19:15:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:15:05 - End Time 2025-03-02 19:15:05 [2025-03-02 19:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593195', 'tblTempUsageDetail_20' ) start [2025-03-02 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593195', 'tblTempUsageDetail_20' ) end [2025-03-02 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593195', 'tblTempVendorCDR_20' ) start [2025-03-02 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593195', 'tblTempVendorCDR_20' ) end [2025-03-02 19:15:17] Production.INFO: ProcessCDR(1,14593195,1,1,2) [2025-03-02 19:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593195', 'tblTempUsageDetail_20' ) start [2025-03-02 19:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593195', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:15:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:15:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:15:25] Production.INFO: ==24536== Releasing lock... [2025-03-02 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:15:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:16:01] Production.INFO: ==24612== Lock acquired, processing the job... [2025-03-03 00:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:16:01] Production.INFO: neon service started [2025-03-03 00:16:01] Production.INFO: neon service started [2025-03-03 00:16:01] Production.INFO: ==24612== Releasing lock... [2025-03-03 00:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:16:02] Production.INFO: ==24616== Lock acquired, processing the job... [2025-03-03 00:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:16:02] Production.INFO: ==24616== Releasing lock... [2025-03-03 00:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:16:02] Production.INFO: ==24614== Lock acquired, processing the job... [2025-03-02 19:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:16:02] Production.INFO: ==24614== Releasing lock... [2025-03-02 19:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:16:03] Production.INFO: ==24621== Lock acquired, processing the job... [2025-03-02 19:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:16:03] Production.INFO: ==24623== Lock acquired, processing the job... [2025-03-02 19:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:16:03] Production.INFO: ==24627== Lock acquired, processing the job... [2025-03-02 19:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:16:03] Production.INFO: ==24621== Releasing lock... [2025-03-02 19:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:16:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:16:03] Production.INFO: ==24619== Lock acquired, processing the job... [2025-03-02 19:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:16:03] Production.INFO: ==24625== Lock acquired, processing the job... [2025-03-02 19:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:16:03] Production.INFO: ==24629== Lock acquired, processing the job... [2025-03-02 19:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:16:03] Production.INFO: Account Balance Start. [2025-03-02 19:16:03] Production.INFO: CreateAllLog Start [2025-03-02 19:16:03] Production.INFO: 117 [2025-03-02 19:16:03] Production.ERROR: done [2025-03-02 19:16:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:16:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:16:04] Production.INFO: count ==13 [2025-03-02 19:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:16:04] Production.INFO: count ==21 [2025-03-02 19:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593199') start [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.ERROR: done [2025-03-02 19:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593199') end [2025-03-02 19:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:16:04] Production.INFO: 1 [2025-03-02 19:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:16:04] Production.INFO: ==24629== Releasing lock... [2025-03-02 19:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:16:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:16:04 [end_date_ymd] => 2025-03-02 19:16:04 [RateCDR] => 1 ) [2025-03-02 19:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:16:04' and `end` < '2025-03-02 19:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:16:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:16:05] Production.INFO: Total Charge 0 [2025-03-02 19:16:05] Production.INFO: CreateAllLog End [2025-03-02 19:16:05] Production.INFO: Account Balance End. [2025-03-02 19:16:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:16:05] Production.INFO: ==24625== Releasing lock... [2025-03-02 19:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:16:11] Production.ERROR: CronJobId end10 [2025-03-02 19:16:11] Production.INFO: ==24623== Releasing lock... [2025-03-02 19:16:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:16:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:16:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:16:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:16:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:16:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:16:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:16:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:16:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:16:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:16:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:16:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:16:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:16:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:16:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:16:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:16:13] Production.INFO: call_cost start [2025-03-02 19:16:13] Production.INFO: call_cost end [2025-03-02 19:16:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:16:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:16:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:16:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:16:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:16:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:16:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:16:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:16:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:16:13] Production.INFO: ==24619== Releasing lock... [2025-03-02 19:16:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:16:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:16:16] Production.INFO: count ==1535 [2025-03-02 19:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:16:04 - End Time 2025-03-02 19:16:04 [2025-03-02 19:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593200', 'tblTempUsageDetail_20' ) start [2025-03-02 19:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593200', 'tblTempUsageDetail_20' ) end [2025-03-02 19:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593200', 'tblTempVendorCDR_20' ) start [2025-03-02 19:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593200', 'tblTempVendorCDR_20' ) end [2025-03-02 19:16:16] Production.INFO: ProcessCDR(1,14593200,1,1,2) [2025-03-02 19:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593200', 'tblTempUsageDetail_20' ) start [2025-03-02 19:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593200', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:16:24] Production.INFO: ==24627== Releasing lock... [2025-03-02 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:16:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:17:02] Production.INFO: ==24711== Lock acquired, processing the job... [2025-03-03 00:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:17:02] Production.INFO: neon service started [2025-03-03 00:17:02] Production.INFO: neon service started [2025-03-03 00:17:02] Production.INFO: ==24711== Releasing lock... [2025-03-03 00:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:17:02] Production.INFO: ==24713== Lock acquired, processing the job... [2025-03-02 19:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:17:02] Production.INFO: ==24713== Releasing lock... [2025-03-02 19:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:17:03] Production.INFO: ==24715== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:17:03] Production.INFO: ==24715== Releasing lock... [2025-03-03 00:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:17:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:17:03] Production.INFO: ==24726== Lock acquired, processing the job... [2025-03-02 19:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:17:03] Production.INFO: ==24728== Lock acquired, processing the job... [2025-03-02 19:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:17:03] Production.INFO: ==24717== Lock acquired, processing the job... [2025-03-02 19:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:17:04] Production.INFO: ==24719== Lock acquired, processing the job... [2025-03-02 19:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:17:04] Production.INFO: ==24721== Lock acquired, processing the job... [2025-03-02 19:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:17:04] Production.INFO: ==24724== Lock acquired, processing the job... [2025-03-02 19:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:17:04] Production.INFO: count ==13 [2025-03-02 19:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:17:04] Production.INFO: count ==21 [2025-03-02 19:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593201') start [2025-03-02 19:17:04] Production.INFO: Account Balance Start. [2025-03-02 19:17:04] Production.INFO: CreateAllLog Start [2025-03-02 19:17:04] Production.INFO: 117 [2025-03-02 19:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:17:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.ERROR: done [2025-03-02 19:17:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:17:04] Production.INFO: ==24719== Releasing lock... [2025-03-02 19:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:17:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593201') end [2025-03-02 19:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:17:04] Production.INFO: 1 [2025-03-02 19:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:17:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.ERROR: done [2025-03-02 19:17:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: ==24728== Releasing lock... [2025-03-02 19:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:17:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:17:04 [end_date_ymd] => 2025-03-02 19:17:04 [RateCDR] => 1 ) [2025-03-02 19:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:17:04' and `end` < '2025-03-02 19:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:17:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:17:05] Production.INFO: Total Charge 0 [2025-03-02 19:17:05] Production.INFO: CreateAllLog End [2025-03-02 19:17:05] Production.INFO: Account Balance End. [2025-03-02 19:17:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:17:05] Production.INFO: ==24724== Releasing lock... [2025-03-02 19:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:17:13] Production.ERROR: CronJobId end10 [2025-03-02 19:17:13] Production.INFO: ==24721== Releasing lock... [2025-03-02 19:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:17:15] Production.INFO: call_cost start [2025-03-02 19:17:15] Production.INFO: call_cost end [2025-03-02 19:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:17:15] Production.INFO: ==24717== Releasing lock... [2025-03-02 19:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:17:16] Production.INFO: count ==1539 [2025-03-02 19:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:17:04 - End Time 2025-03-02 19:17:04 [2025-03-02 19:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593205', 'tblTempUsageDetail_20' ) start [2025-03-02 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593205', 'tblTempUsageDetail_20' ) end [2025-03-02 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593205', 'tblTempVendorCDR_20' ) start [2025-03-02 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593205', 'tblTempVendorCDR_20' ) end [2025-03-02 19:17:17] Production.INFO: ProcessCDR(1,14593205,1,1,2) [2025-03-02 19:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593205', 'tblTempUsageDetail_20' ) start [2025-03-02 19:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593205', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:17:24] Production.INFO: ==24726== Releasing lock... [2025-03-02 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:17:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:18:01] Production.INFO: ==24807== Lock acquired, processing the job... [2025-03-03 00:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:18:01] Production.INFO: neon service started [2025-03-03 00:18:01] Production.INFO: neon service started [2025-03-03 00:18:01] Production.INFO: ==24807== Releasing lock... [2025-03-03 00:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:18:02] Production.INFO: ==24811== Lock acquired, processing the job... [2025-03-03 00:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:18:02] Production.INFO: ==24811== Releasing lock... [2025-03-03 00:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:18:02] Production.INFO: ==24809== Lock acquired, processing the job... [2025-03-02 19:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:18:02] Production.INFO: ==24809== Releasing lock... [2025-03-02 19:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:18:03] Production.INFO: ==24816== Lock acquired, processing the job... [2025-03-02 19:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:18:03] Production.INFO: ==24818== Lock acquired, processing the job... [2025-03-02 19:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:18:03] Production.INFO: ==24820== Lock acquired, processing the job... [2025-03-02 19:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:18:03] Production.INFO: ==24814== Lock acquired, processing the job... [2025-03-02 19:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:18:03] Production.INFO: Account Balance Start. [2025-03-02 19:18:03] Production.INFO: CreateAllLog Start [2025-03-02 19:18:03] Production.INFO: 117 [2025-03-02 19:18:03] Production.INFO: ==24822== Lock acquired, processing the job... [2025-03-02 19:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:18:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:18:03] Production.INFO: ==24816== Releasing lock... [2025-03-02 19:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:18:03] Production.INFO: ==24824== Lock acquired, processing the job... [2025-03-02 19:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:18:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:18:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: count ==13 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:18:04] Production.INFO: count ==21 [2025-03-02 19:18:04] Production.ERROR: done [2025-03-02 19:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593209') start [2025-03-02 19:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593209') end [2025-03-02 19:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:18:04] Production.INFO: 1 [2025-03-02 19:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:18:04] Production.ERROR: done [2025-03-02 19:18:04] Production.INFO: ==24824== Releasing lock... [2025-03-02 19:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:18:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:18:04 [end_date_ymd] => 2025-03-02 19:18:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:18:04' and `end` < '2025-03-02 19: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-03-02 19:18:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:18:04] Production.INFO: Total Charge 0 [2025-03-02 19:18:04] Production.INFO: CreateAllLog End [2025-03-02 19:18:04] Production.INFO: Account Balance End. [2025-03-02 19:18:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:18:05] Production.INFO: ==24820== Releasing lock... [2025-03-02 19:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:18:12] Production.ERROR: CronJobId end10 [2025-03-02 19:18:12] Production.INFO: ==24818== Releasing lock... [2025-03-02 19:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:18:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:18:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:18:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:18:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:18:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:18:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:18:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:18:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:18:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:18:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:18:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:18:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:18:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:18:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:18:14] Production.INFO: call_cost start [2025-03-02 19:18:14] Production.INFO: call_cost end [2025-03-02 19:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:18:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:18:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:18:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:18:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:18:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:18:14] Production.INFO: ==24814== Releasing lock... [2025-03-02 19:18:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:18:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:18:16] Production.INFO: count ==1538 [2025-03-02 19:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:18:04 - End Time 2025-03-02 19:18:04 [2025-03-02 19:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593210', 'tblTempUsageDetail_20' ) start [2025-03-02 19:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593210', 'tblTempUsageDetail_20' ) end [2025-03-02 19:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593210', 'tblTempVendorCDR_20' ) start [2025-03-02 19:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593210', 'tblTempVendorCDR_20' ) end [2025-03-02 19:18:16] Production.INFO: ProcessCDR(1,14593210,1,1,2) [2025-03-02 19:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593210', 'tblTempUsageDetail_20' ) start [2025-03-02 19:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593210', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:18:24] Production.INFO: ==24822== Releasing lock... [2025-03-02 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:18:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:19:02] Production.INFO: ==24906== Lock acquired, processing the job... [2025-03-03 00:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:19:02] Production.INFO: neon service started [2025-03-03 00:19:02] Production.INFO: neon service started [2025-03-03 00:19:02] Production.INFO: ==24906== Releasing lock... [2025-03-03 00:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:19:02] Production.INFO: ==24908== Lock acquired, processing the job... [2025-03-02 19:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:19:02] Production.INFO: ==24908== Releasing lock... [2025-03-02 19:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:19:02] Production.INFO: ==24910== Lock acquired, processing the job... [2025-03-03 00:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:19:02] Production.INFO: ==24910== Releasing lock... [2025-03-03 00:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:19:03] Production.INFO: ==24920== Lock acquired, processing the job... [2025-03-02 19:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:19:03] Production.INFO: ==24918== Lock acquired, processing the job... [2025-03-02 19:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:19:03] Production.INFO: ==24912== Lock acquired, processing the job... [2025-03-02 19:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:19:03] Production.INFO: ==24914== Lock acquired, processing the job... [2025-03-02 19:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:19:03] Production.INFO: Account Balance Start. [2025-03-02 19:19:03] Production.INFO: CreateAllLog Start [2025-03-02 19:19:03] Production.INFO: 117 [2025-03-02 19:19:03] Production.INFO: ==24916== Lock acquired, processing the job... [2025-03-02 19:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:19:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: ==24922== Lock acquired, processing the job... [2025-03-02 19:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:19:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:19:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.ERROR: done [2025-03-02 19:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:19:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: count ==13 [2025-03-02 19:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:19:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: count ==21 [2025-03-02 19:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593214') start [2025-03-02 19:19:04] Production.ERROR: done [2025-03-02 19:19:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: ==24914== Releasing lock... [2025-03-02 19:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:19:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593214') end [2025-03-02 19:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:19:04] Production.INFO: 1 [2025-03-02 19:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:19:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:19:04 [end_date_ymd] => 2025-03-02 19:19:04 [RateCDR] => 1 ) [2025-03-02 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:19:04' and `end` < '2025-03-02 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:19:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: ==24922== Releasing lock... [2025-03-02 19:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:19:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:19:04] Production.INFO: Total Charge 0 [2025-03-02 19:19:04] Production.INFO: CreateAllLog End [2025-03-02 19:19:04] Production.INFO: Account Balance End. [2025-03-02 19:19:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:19:05] Production.INFO: ==24918== Releasing lock... [2025-03-02 19:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:19:12] Production.ERROR: CronJobId end10 [2025-03-02 19:19:12] Production.INFO: ==24916== Releasing lock... [2025-03-02 19:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:19:15] Production.INFO: call_cost start [2025-03-02 19:19:15] Production.INFO: call_cost end [2025-03-02 19:19:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:19:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:19:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:19:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:19:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:19:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:19:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:19:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:19:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:19:15] Production.INFO: ==24912== Releasing lock... [2025-03-02 19:19:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:19:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:19:16] Production.INFO: count ==1542 [2025-03-02 19:19:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:19:04 - End Time 2025-03-02 19:19:04 [2025-03-02 19:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593215', 'tblTempUsageDetail_20' ) start [2025-03-02 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593215', 'tblTempUsageDetail_20' ) end [2025-03-02 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593215', 'tblTempVendorCDR_20' ) start [2025-03-02 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593215', 'tblTempVendorCDR_20' ) end [2025-03-02 19:19:17] Production.INFO: ProcessCDR(1,14593215,1,1,2) [2025-03-02 19:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593215', 'tblTempUsageDetail_20' ) start [2025-03-02 19:19:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593215', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:19:24] Production.INFO: ==24920== Releasing lock... [2025-03-02 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:19:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:20:01] Production.INFO: ==25009== Lock acquired, processing the job... [2025-03-03 00:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:20:01] Production.INFO: neon service started [2025-03-03 00:20:01] Production.INFO: neon service started [2025-03-03 00:20:01] Production.INFO: ==25009== Releasing lock... [2025-03-03 00:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:20:02] Production.INFO: ==25012== Lock acquired, processing the job... [2025-03-02 19:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:20:02] Production.INFO: ==25014== Lock acquired, processing the job... [2025-03-03 00:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:20:02] Production.INFO: ==25014== Releasing lock... [2025-03-03 00:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:20:02] Production.INFO: ==25012== Releasing lock... [2025-03-02 19:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:20:03] Production.INFO: ==25016== Lock acquired, processing the job... [2025-03-02 19:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 19:20:03] Production.INFO: ==25020== Lock acquired, processing the job... [2025-03-02 19:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 19:20:03] Production.INFO: ==25022== Lock acquired, processing the job... [2025-03-02 19:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 19:20:03] Production.INFO: ==25016== Releasing lock... [2025-03-02 19:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 19:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:20:03] Production.INFO: ==25028== Lock acquired, processing the job... [2025-03-02 19:20:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 19:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:20:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:20:03] Production.INFO: ==25018== Lock acquired, processing the job... [2025-03-02 19:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:20:04] Production.INFO: ==25026== Lock acquired, processing the job... [2025-03-02 19:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:20:04] Production.INFO: ==25024== Lock acquired, processing the job... [2025-03-02 19:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:20:04] Production.INFO: ==25030== Lock acquired, processing the job... [2025-03-02 19:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:20:04] Production.INFO: ==25020== Releasing lock... [2025-03-02 19:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:20:04] Production.ERROR: done [2025-03-02 19:20:04] Production.INFO: Account Balance Start. [2025-03-02 19:20:04] Production.INFO: CreateAllLog Start [2025-03-02 19:20:04] Production.INFO: 117 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 19:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593220', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 19:20:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:20:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: count ==13 [2025-03-02 19:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:20:04] Production.INFO: count ==21 [2025-03-02 19:20:04] Production.ERROR: done [2025-03-02 19:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593219') start [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.ERROR: done [2025-03-02 19:20:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593219') end [2025-03-02 19:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:20:04] Production.INFO: 1 [2025-03-02 19:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:20:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:20:05] Production.INFO: ==25030== Releasing lock... [2025-03-02 19:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:20:05 [end_date_ymd] => 2025-03-02 19:20:05 [RateCDR] => 1 ) [2025-03-02 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:20:05' and `end` < '2025-03-02 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:20:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:20:05] Production.INFO: Total Charge 0 [2025-03-02 19:20:05] Production.INFO: CreateAllLog End [2025-03-02 19:20:05] Production.INFO: Account Balance End. [2025-03-02 19:20:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:20:05] Production.INFO: ==25024== Releasing lock... [2025-03-02 19:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:20:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593220', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 19:20:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 19:20:08] Production.INFO: ProcessCDR(1,14593220,1,1,2) [2025-03-02 19:20:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593220,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593220,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 19:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 19:20:09] Production.INFO: ==25028== Releasing lock... [2025-03-02 19:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 19:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:20:14] Production.ERROR: CronJobId end10 [2025-03-02 19:20:14] Production.INFO: ==25022== Releasing lock... [2025-03-02 19:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:20:17] Production.INFO: call_cost start [2025-03-02 19:20:17] Production.INFO: call_cost end [2025-03-02 19:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:20:17] Production.INFO: ==25018== Releasing lock... [2025-03-02 19:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:20:17] Production.INFO: count ==1541 [2025-03-02 19:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:20:05 - End Time 2025-03-02 19:20:05 [2025-03-02 19:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593221', 'tblTempUsageDetail_20' ) start [2025-03-02 19:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593221', 'tblTempUsageDetail_20' ) end [2025-03-02 19:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593221', 'tblTempVendorCDR_20' ) start [2025-03-02 19:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593221', 'tblTempVendorCDR_20' ) end [2025-03-02 19:20:17] Production.INFO: ProcessCDR(1,14593221,1,1,2) [2025-03-02 19:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593221', 'tblTempUsageDetail_20' ) start [2025-03-02 19:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593221', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:20:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:20:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:20:24] Production.INFO: ==25026== Releasing lock... [2025-03-02 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:20:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-03 00:21:01] Production.INFO: ==25112== Lock acquired, processing the job... [2025-03-03 00:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:21:02] Production.INFO: neon service started [2025-03-03 00:21:02] Production.INFO: neon service started [2025-03-03 00:21:02] Production.INFO: ==25112== Releasing lock... [2025-03-03 00:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:21:02] Production.INFO: ==25116== Lock acquired, processing the job... [2025-03-03 00:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:21:02] Production.INFO: ==25116== Releasing lock... [2025-03-03 00:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:21:02] Production.INFO: ==25114== Lock acquired, processing the job... [2025-03-02 19:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:21:02] Production.INFO: ==25114== Releasing lock... [2025-03-02 19:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:21:03] Production.INFO: ==25120== Lock acquired, processing the job... [2025-03-02 19:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:21:03] Production.INFO: ==25122== Lock acquired, processing the job... [2025-03-02 19:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:21:03] Production.INFO: ==25118== Lock acquired, processing the job... [2025-03-02 19:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:21:03] Production.INFO: ==25129== Lock acquired, processing the job... [2025-03-02 19:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:21:03] Production.INFO: ==25120== Releasing lock... [2025-03-02 19:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:21:03] Production.INFO: ==25124== Lock acquired, processing the job... [2025-03-02 19:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:21:03] Production.INFO: ==25126== Lock acquired, processing the job... [2025-03-02 19:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:21:03] Production.INFO: Account Balance Start. [2025-03-02 19:21:03] Production.INFO: CreateAllLog Start [2025-03-02 19:21:03] Production.INFO: 117 [2025-03-02 19:21:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:21:03] Production.INFO: count ==13 [2025-03-02 19:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:21:04] Production.INFO: count ==21 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593223') start [2025-03-02 19:21:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593223') end [2025-03-02 19:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:21:04] Production.INFO: 1 [2025-03-02 19:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:21:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: ==25129== Releasing lock... [2025-03-02 19:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:21:04] Production.ERROR: done [2025-03-02 19:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.ERROR: done [2025-03-02 19:21:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:21:04 [end_date_ymd] => 2025-03-02 19:21:04 [RateCDR] => 1 ) [2025-03-02 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-03-02 16:21:04' and `end` < '2025-03-02 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-03-02 19:21:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:21:05] Production.INFO: Total Charge 0 [2025-03-02 19:21:05] Production.INFO: CreateAllLog End [2025-03-02 19:21:05] Production.INFO: Account Balance End. [2025-03-02 19:21:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:21:05] Production.INFO: ==25124== Releasing lock... [2025-03-02 19:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:21:12] Production.ERROR: CronJobId end10 [2025-03-02 19:21:12] Production.INFO: ==25122== Releasing lock... [2025-03-02 19:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:21:15] Production.INFO: call_cost start [2025-03-02 19:21:15] Production.INFO: call_cost end [2025-03-02 19:21:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:21:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:21:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:21:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:21:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:21:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:21:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:21:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:21:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:21:15] Production.INFO: ==25118== Releasing lock... [2025-03-02 19:21:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:21:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:21:16] Production.INFO: count ==1518 [2025-03-02 19:21:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:21:04 - End Time 2025-03-02 19:21:04 [2025-03-02 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593226', 'tblTempUsageDetail_20' ) start [2025-03-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593226', 'tblTempUsageDetail_20' ) end [2025-03-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593226', 'tblTempVendorCDR_20' ) start [2025-03-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593226', 'tblTempVendorCDR_20' ) end [2025-03-02 19:21:17] Production.INFO: ProcessCDR(1,14593226,1,1,2) [2025-03-02 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593226', 'tblTempUsageDetail_20' ) start [2025-03-02 19:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593226', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:21:24] Production.INFO: ==25126== Releasing lock... [2025-03-02 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:21:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:22:01] Production.INFO: ==25211== Lock acquired, processing the job... [2025-03-03 00:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:22:01] Production.INFO: neon service started [2025-03-03 00:22:01] Production.INFO: neon service started [2025-03-03 00:22:01] Production.INFO: ==25211== Releasing lock... [2025-03-03 00:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:22:01] Production.INFO: ==25213== Lock acquired, processing the job... [2025-03-02 19:22:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:22:02] Production.INFO: ==25213== Releasing lock... [2025-03-02 19:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:22:02] Production.INFO: ==25215== Lock acquired, processing the job... [2025-03-03 00:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:22:02] Production.INFO: ==25215== Releasing lock... [2025-03-03 00:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:22:02] Production.INFO: ==25220== Lock acquired, processing the job... [2025-03-02 19:22:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:22:03] Production.INFO: ==25224== Lock acquired, processing the job... [2025-03-02 19:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:22:03] Production.INFO: ==25222== Lock acquired, processing the job... [2025-03-02 19:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:22:03] Production.INFO: ==25226== Lock acquired, processing the job... [2025-03-02 19:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:22:03] Production.INFO: ==25230== Lock acquired, processing the job... [2025-03-02 19:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:22:03] Production.INFO: ==25228== Lock acquired, processing the job... [2025-03-02 19:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:22:03] Production.INFO: Account Balance Start. [2025-03-02 19:22:03] Production.INFO: CreateAllLog Start [2025-03-02 19:22:03] Production.INFO: 117 [2025-03-02 19:22:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:03] Production.INFO: count ==13 [2025-03-02 19:22:03] Production.INFO: ==25222== Releasing lock... [2025-03-02 19:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:22:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:22:03] Production.INFO: count ==21 [2025-03-02 19:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593230') start [2025-03-02 19:22:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593230') end [2025-03-02 19:22:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:22:03] Production.INFO: 1 [2025-03-02 19:22:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:22:03] Production.ERROR: done [2025-03-02 19:22:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:22:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: ==25230== Releasing lock... [2025-03-02 19:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:22:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.ERROR: done [2025-03-02 19:22:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:22:04 [end_date_ymd] => 2025-03-02 19:22:04 [RateCDR] => 1 ) [2025-03-02 19:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:22:04' and `end` < '2025-03-02 19:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:22:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:22:04] Production.INFO: Total Charge 0 [2025-03-02 19:22:04] Production.INFO: CreateAllLog End [2025-03-02 19:22:05] Production.INFO: Account Balance End. [2025-03-02 19:22:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:22:05] Production.INFO: ==25226== Releasing lock... [2025-03-02 19:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:22:12] Production.ERROR: CronJobId end10 [2025-03-02 19:22:12] Production.INFO: ==25224== Releasing lock... [2025-03-02 19:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:22:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:22:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:22:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:22:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:22:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:22:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:22:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:22:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:22:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:22:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:22:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:22:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:22:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:22:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:22:14] Production.INFO: call_cost start [2025-03-02 19:22:14] Production.INFO: call_cost end [2025-03-02 19:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:22:14] Production.INFO: ==25220== Releasing lock... [2025-03-02 19:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:22:16] Production.INFO: count ==1523 [2025-03-02 19:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:22:04 - End Time 2025-03-02 19:22:04 [2025-03-02 19:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593231', 'tblTempUsageDetail_20' ) start [2025-03-02 19:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593231', 'tblTempUsageDetail_20' ) end [2025-03-02 19:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593231', 'tblTempVendorCDR_20' ) start [2025-03-02 19:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593231', 'tblTempVendorCDR_20' ) end [2025-03-02 19:22:16] Production.INFO: ProcessCDR(1,14593231,1,1,2) [2025-03-02 19:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593231', 'tblTempUsageDetail_20' ) start [2025-03-02 19:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593231', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:22:24] Production.INFO: ==25228== Releasing lock... [2025-03-02 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:22:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:23:01] Production.INFO: ==25320== Lock acquired, processing the job... [2025-03-03 00:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:23:01] Production.INFO: neon service started [2025-03-03 00:23:01] Production.INFO: neon service started [2025-03-03 00:23:01] Production.INFO: ==25320== Releasing lock... [2025-03-03 00:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:23:02] Production.INFO: ==25324== Lock acquired, processing the job... [2025-03-03 00:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 19:23:02] Production.INFO: ==25322== Lock acquired, processing the job... [2025-03-02 19:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:23:02] Production.INFO: ==25324== Releasing lock... [2025-03-03 00:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:23:03] Production.INFO: ==25322== Releasing lock... [2025-03-02 19:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:23:03] Production.INFO: ==25329== Lock acquired, processing the job... [2025-03-02 19:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:23:03] Production.INFO: ==25331== Lock acquired, processing the job... [2025-03-02 19:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:23:03] Production.INFO: ==25335== Lock acquired, processing the job... [2025-03-02 19:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:23:03] Production.INFO: Account Balance Start. [2025-03-02 19:23:03] Production.INFO: CreateAllLog Start [2025-03-02 19:23:03] Production.INFO: 117 [2025-03-02 19:23:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:23:04] Production.INFO: ==25333== Lock acquired, processing the job... [2025-03-02 19:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: ==25331== Releasing lock... [2025-03-02 19:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:23:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:23:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:23:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: ==25339== Lock acquired, processing the job... [2025-03-02 19:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:23:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: ==25337== Lock acquired, processing the job... [2025-03-02 19:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:23:04] Production.INFO: count ==13 [2025-03-02 19:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:23:04] Production.INFO: count ==21 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593235') start [2025-03-02 19:23:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593235') end [2025-03-02 19:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:23:04] Production.INFO: 1 [2025-03-02 19:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:23:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: ==25339== Releasing lock... [2025-03-02 19:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:23:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.ERROR: done [2025-03-02 19:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:05] Production.ERROR: done [2025-03-02 19:23:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:23:05 [end_date_ymd] => 2025-03-02 19:23:05 [RateCDR] => 1 ) [2025-03-02 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:23:05' and `end` < '2025-03-02 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:23:05] Production.INFO: Total Charge 0 [2025-03-02 19:23:05] Production.INFO: CreateAllLog End [2025-03-02 19:23:05] Production.INFO: Account Balance End. [2025-03-02 19:23:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:23:05] Production.INFO: ==25335== Releasing lock... [2025-03-02 19:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:23:12] Production.ERROR: CronJobId end10 [2025-03-02 19:23:12] Production.INFO: ==25333== Releasing lock... [2025-03-02 19:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:23:14] Production.INFO: call_cost start [2025-03-02 19:23:14] Production.INFO: call_cost end [2025-03-02 19:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:23:15] Production.INFO: ==25329== Releasing lock... [2025-03-02 19:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:23:17] Production.INFO: count ==1526 [2025-03-02 19:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:23:05 - End Time 2025-03-02 19:23:05 [2025-03-02 19:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593236', 'tblTempUsageDetail_20' ) start [2025-03-02 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593236', 'tblTempUsageDetail_20' ) end [2025-03-02 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593236', 'tblTempVendorCDR_20' ) start [2025-03-02 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593236', 'tblTempVendorCDR_20' ) end [2025-03-02 19:23:17] Production.INFO: ProcessCDR(1,14593236,1,1,2) [2025-03-02 19:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593236', 'tblTempUsageDetail_20' ) start [2025-03-02 19:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593236', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:23:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:23:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:23:25] Production.INFO: ==25337== Releasing lock... [2025-03-02 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:23:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:24:01] Production.INFO: ==25418== Lock acquired, processing the job... [2025-03-03 00:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:24:01] Production.INFO: neon service started [2025-03-03 00:24:01] Production.INFO: neon service started [2025-03-03 00:24:01] Production.INFO: ==25418== Releasing lock... [2025-03-03 00:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:24:01] Production.INFO: ==25420== Lock acquired, processing the job... [2025-03-02 19:24:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:24:02] Production.INFO: ==25420== Releasing lock... [2025-03-02 19:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:24:02] Production.INFO: ==25422== Lock acquired, processing the job... [2025-03-03 00:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:24:02] Production.INFO: ==25422== Releasing lock... [2025-03-03 00:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:24:03] Production.INFO: ==25431== Lock acquired, processing the job... [2025-03-02 19:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:24:03] Production.INFO: ==25435== Lock acquired, processing the job... [2025-03-02 19:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:24:03] Production.INFO: Account Balance Start. [2025-03-02 19:24:03] Production.INFO: CreateAllLog Start [2025-03-02 19:24:03] Production.INFO: 117 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: ==25425== Lock acquired, processing the job... [2025-03-02 19:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:24:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:24:03] Production.INFO: ==25427== Lock acquired, processing the job... [2025-03-02 19:24:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: ==25429== Lock acquired, processing the job... [2025-03-02 19:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:24:03] Production.INFO: count ==13 [2025-03-02 19:24:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:24:03] Production.INFO: count ==21 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593238') start [2025-03-02 19:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:24:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:24:03] Production.INFO: ==25433== Lock acquired, processing the job... [2025-03-02 19:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:24:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593238') end [2025-03-02 19:24:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:24:03] Production.INFO: 1 [2025-03-02 19:24:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:24:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: ==25435== Releasing lock... [2025-03-02 19:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:24:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-16 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-17 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: Date 2025-02-18 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:03] Production.INFO: ==25427== Releasing lock... [2025-03-02 19:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:24:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:24:03] Production.INFO: Date 2025-02-19 [2025-03-02 19:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.ERROR: done [2025-03-02 19:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.ERROR: done [2025-03-02 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:24:04 [end_date_ymd] => 2025-03-02 19:24:04 [RateCDR] => 1 ) [2025-03-02 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:24:04' and `end` < '2025-03-02 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:24:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:24:04] Production.INFO: Total Charge 0 [2025-03-02 19:24:04] Production.INFO: CreateAllLog End [2025-03-02 19:24:04] Production.INFO: Account Balance End. [2025-03-02 19:24:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:24:04] Production.INFO: ==25431== Releasing lock... [2025-03-02 19:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:24:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:24:12] Production.ERROR: CronJobId end10 [2025-03-02 19:24:12] Production.INFO: ==25429== Releasing lock... [2025-03-02 19:24:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:24:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:24:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:24:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:24:14] Production.INFO: call_cost start [2025-03-02 19:24:14] Production.INFO: call_cost end [2025-03-02 19:24:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:24:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:24:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:24:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:24:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:24:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:24:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:24:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:24:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:24:14] Production.INFO: ==25425== Releasing lock... [2025-03-02 19:24:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:24:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:24:16] Production.INFO: count ==1523 [2025-03-02 19:24:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:24:04 - End Time 2025-03-02 19:24:04 [2025-03-02 19:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593241', 'tblTempUsageDetail_20' ) start [2025-03-02 19:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593241', 'tblTempUsageDetail_20' ) end [2025-03-02 19:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593241', 'tblTempVendorCDR_20' ) start [2025-03-02 19:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593241', 'tblTempVendorCDR_20' ) end [2025-03-02 19:24:16] Production.INFO: ProcessCDR(1,14593241,1,1,2) [2025-03-02 19:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593241', 'tblTempUsageDetail_20' ) start [2025-03-02 19:24:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593241', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:24:24] Production.INFO: ==25433== Releasing lock... [2025-03-02 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:24:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:25:01] Production.INFO: ==25532== Lock acquired, processing the job... [2025-03-03 00:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:25:01] Production.INFO: neon service started [2025-03-03 00:25:01] Production.INFO: neon service started [2025-03-03 00:25:01] Production.INFO: ==25532== Releasing lock... [2025-03-03 00:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:25:02] Production.INFO: ==25534== Lock acquired, processing the job... [2025-03-02 19:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:25:02] Production.INFO: ==25536== Lock acquired, processing the job... [2025-03-03 00:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:25:02] Production.INFO: ==25536== Releasing lock... [2025-03-03 00:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:25:02] Production.INFO: ==25534== Releasing lock... [2025-03-02 19:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:25:03] Production.INFO: ==25541== Lock acquired, processing the job... [2025-03-02 19:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:25:03] Production.INFO: ==25543== Lock acquired, processing the job... [2025-03-02 19:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:25:03] Production.INFO: ==25547== Lock acquired, processing the job... [2025-03-02 19:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:25:03] Production.INFO: ==25545== Lock acquired, processing the job... [2025-03-02 19:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:25:03] Production.INFO: ==25543== Releasing lock... [2025-03-02 19:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:25:03] Production.INFO: Account Balance Start. [2025-03-02 19:25:04] Production.INFO: CreateAllLog Start [2025-03-02 19:25:04] Production.INFO: 117 [2025-03-02 19:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:25:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:25:04] Production.INFO: ==25549== Lock acquired, processing the job... [2025-03-02 19:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: ==25551== Lock acquired, processing the job... [2025-03-02 19:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:25:04] Production.INFO: count ==13 [2025-03-02 19:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:25:04] Production.INFO: count ==21 [2025-03-02 19:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593245') start [2025-03-02 19:25:04] Production.ERROR: done [2025-03-02 19:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593245') end [2025-03-02 19:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:25:04] Production.INFO: 1 [2025-03-02 19:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:25:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:25:04] Production.INFO: ==25551== Releasing lock... [2025-03-02 19:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.ERROR: done [2025-03-02 19:25:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:25:05 [end_date_ymd] => 2025-03-02 19:25:05 [RateCDR] => 1 ) [2025-03-02 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:25:05' and `end` < '2025-03-02 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:25:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:25:05] Production.INFO: Total Charge 0 [2025-03-02 19:25:05] Production.INFO: CreateAllLog End [2025-03-02 19:25:05] Production.INFO: Account Balance End. [2025-03-02 19:25:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:25:05] Production.INFO: ==25547== Releasing lock... [2025-03-02 19:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:25:13] Production.ERROR: CronJobId end10 [2025-03-02 19:25:13] Production.INFO: ==25545== Releasing lock... [2025-03-02 19:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:25:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:25:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:25:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:25:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:25:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:25:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:25:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:25:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:25:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:25:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:25:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:25:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:25:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:25:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:25:15] Production.INFO: call_cost start [2025-03-02 19:25:15] Production.INFO: call_cost end [2025-03-02 19:25:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:25:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:25:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:25:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:25:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:25:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:25:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:25:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:25:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:25:15] Production.INFO: ==25541== Releasing lock... [2025-03-02 19:25:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:25:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:25:17] Production.INFO: count ==1523 [2025-03-02 19:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:25:05 - End Time 2025-03-02 19:25:05 [2025-03-02 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593246', 'tblTempUsageDetail_20' ) start [2025-03-02 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593246', 'tblTempUsageDetail_20' ) end [2025-03-02 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593246', 'tblTempVendorCDR_20' ) start [2025-03-02 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593246', 'tblTempVendorCDR_20' ) end [2025-03-02 19:25:17] Production.INFO: ProcessCDR(1,14593246,1,1,2) [2025-03-02 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593246', 'tblTempUsageDetail_20' ) start [2025-03-02 19:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593246', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:25:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:25:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:25:25] Production.INFO: ==25549== Releasing lock... [2025-03-02 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:25:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:26:02] Production.INFO: ==25625== Lock acquired, processing the job... [2025-03-03 00:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:26:02] Production.INFO: neon service started [2025-03-03 00:26:02] Production.INFO: neon service started [2025-03-03 00:26:02] Production.INFO: ==25625== Releasing lock... [2025-03-03 00:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:26:02] Production.INFO: ==25627== Lock acquired, processing the job... [2025-03-02 19:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:26:03] Production.INFO: ==25629== Lock acquired, processing the job... [2025-03-03 00:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:26:03] Production.INFO: ==25629== Releasing lock... [2025-03-03 00:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:26:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:26:03] Production.INFO: ==25627== Releasing lock... [2025-03-02 19:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:26:04] Production.INFO: ==25632== Lock acquired, processing the job... [2025-03-02 19:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:26:04] Production.INFO: ==25636== Lock acquired, processing the job... [2025-03-02 19:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:26:04] Production.INFO: ==25638== Lock acquired, processing the job... [2025-03-02 19:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:26:04] Production.INFO: ==25634== Lock acquired, processing the job... [2025-03-02 19:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:26:04] Production.INFO: Account Balance Start. [2025-03-02 19:26:04] Production.INFO: CreateAllLog Start [2025-03-02 19:26:04] Production.INFO: 117 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: ==25640== Lock acquired, processing the job... [2025-03-02 19:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:26:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: ==25643== Lock acquired, processing the job... [2025-03-02 19:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: ==25634== Releasing lock... [2025-03-02 19:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:26:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:26:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: count ==13 [2025-03-02 19:26:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:26:04] Production.INFO: count ==21 [2025-03-02 19:26:05] Production.ERROR: done [2025-03-02 19:26:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:26:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593250') start [2025-03-02 19:26:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593250') end [2025-03-02 19:26:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:26:05] Production.INFO: 1 [2025-03-02 19:26:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:26:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:05] Production.ERROR: done [2025-03-02 19:26:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:05] Production.INFO: ==25643== Releasing lock... [2025-03-02 19:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:26:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:26:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:26:05 [end_date_ymd] => 2025-03-02 19:26:05 [RateCDR] => 1 ) [2025-03-02 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:26:05' and `end` < '2025-03-02 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:26:05] Production.INFO: Total Charge 0 [2025-03-02 19:26:05] Production.INFO: CreateAllLog End [2025-03-02 19:26:05] Production.INFO: Account Balance End. [2025-03-02 19:26:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:26:05] Production.INFO: ==25638== Releasing lock... [2025-03-02 19:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:26:13] Production.ERROR: CronJobId end10 [2025-03-02 19:26:13] Production.INFO: ==25636== Releasing lock... [2025-03-02 19:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:26:16] Production.INFO: call_cost start [2025-03-02 19:26:16] Production.INFO: call_cost end [2025-03-02 19:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:26:16] Production.INFO: ==25632== Releasing lock... [2025-03-02 19:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:26:17] Production.INFO: count ==1526 [2025-03-02 19:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:26:05 - End Time 2025-03-02 19:26:05 [2025-03-02 19:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593251', 'tblTempUsageDetail_20' ) start [2025-03-02 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593251', 'tblTempUsageDetail_20' ) end [2025-03-02 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593251', 'tblTempVendorCDR_20' ) start [2025-03-02 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593251', 'tblTempVendorCDR_20' ) end [2025-03-02 19:26:17] Production.INFO: ProcessCDR(1,14593251,1,1,2) [2025-03-02 19:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593251', 'tblTempUsageDetail_20' ) start [2025-03-02 19:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593251', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:26:25] Production.INFO: ==25640== Releasing lock... [2025-03-02 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:26:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:27:01] Production.INFO: ==25758== Lock acquired, processing the job... [2025-03-03 00:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:27:01] Production.INFO: neon service started [2025-03-03 00:27:01] Production.INFO: neon service started [2025-03-03 00:27:01] Production.INFO: ==25758== Releasing lock... [2025-03-03 00:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:27:02] Production.INFO: ==25761== Lock acquired, processing the job... [2025-03-02 19:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:27:02] Production.INFO: ==25763== Lock acquired, processing the job... [2025-03-03 00:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:27:02] Production.INFO: ==25763== Releasing lock... [2025-03-03 00:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:27:02] Production.INFO: ==25761== Releasing lock... [2025-03-02 19:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:27:03] Production.INFO: ==25765== Lock acquired, processing the job... [2025-03-02 19:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:27:03] Production.INFO: ==25769== Lock acquired, processing the job... [2025-03-02 19:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:27:03] Production.INFO: ==25771== Lock acquired, processing the job... [2025-03-02 19:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:27:03] Production.INFO: ==25767== Lock acquired, processing the job... [2025-03-02 19:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:27:03] Production.INFO: Account Balance Start. [2025-03-02 19:27:03] Production.INFO: CreateAllLog Start [2025-03-02 19:27:03] Production.INFO: 117 [2025-03-02 19:27:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: ==25773== Lock acquired, processing the job... [2025-03-02 19:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:27:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: ==25775== Lock acquired, processing the job... [2025-03-02 19:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:27:04] Production.INFO: ==25767== Releasing lock... [2025-03-02 19:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:27:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:27:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:27:04] Production.INFO: count ==13 [2025-03-02 19:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: count ==21 [2025-03-02 19:27:04] Production.ERROR: done [2025-03-02 19:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593255') start [2025-03-02 19:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593255') end [2025-03-02 19:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:27:04] Production.INFO: 1 [2025-03-02 19:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:27:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: ==25775== Releasing lock... [2025-03-02 19:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:27:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.ERROR: done [2025-03-02 19:27:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:27:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:27:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:27:05 [end_date_ymd] => 2025-03-02 19:27:05 [RateCDR] => 1 ) [2025-03-02 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:27:05' and `end` < '2025-03-02 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:27:05] Production.INFO: Total Charge 0 [2025-03-02 19:27:05] Production.INFO: CreateAllLog End [2025-03-02 19:27:05] Production.INFO: Account Balance End. [2025-03-02 19:27:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:27:05] Production.INFO: ==25771== Releasing lock... [2025-03-02 19:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:27:12] Production.ERROR: CronJobId end10 [2025-03-02 19:27:12] Production.INFO: ==25769== Releasing lock... [2025-03-02 19:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:27:13] Production.INFO: call_cost start [2025-03-02 19:27:13] Production.INFO: call_cost end [2025-03-02 19:27:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:27:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:27:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:27:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:27:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:27:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:27:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:27:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:27:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:27:14] Production.INFO: ==25765== Releasing lock... [2025-03-02 19:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:27:17] Production.INFO: count ==1525 [2025-03-02 19:27:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:27:05 - End Time 2025-03-02 19:27:05 [2025-03-02 19:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593256', 'tblTempUsageDetail_20' ) start [2025-03-02 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593256', 'tblTempUsageDetail_20' ) end [2025-03-02 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593256', 'tblTempVendorCDR_20' ) start [2025-03-02 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593256', 'tblTempVendorCDR_20' ) end [2025-03-02 19:27:17] Production.INFO: ProcessCDR(1,14593256,1,1,2) [2025-03-02 19:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593256', 'tblTempUsageDetail_20' ) start [2025-03-02 19:27:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593256', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:27:24] Production.INFO: ==25773== Releasing lock... [2025-03-02 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:27:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:28:02] Production.INFO: ==25848== Lock acquired, processing the job... [2025-03-03 00:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:28:02] Production.INFO: neon service started [2025-03-03 00:28:02] Production.INFO: neon service started [2025-03-03 00:28:02] Production.INFO: ==25848== Releasing lock... [2025-03-03 00:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:28:02] Production.INFO: ==25850== Lock acquired, processing the job... [2025-03-02 19:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:28:02] Production.INFO: ==25850== Releasing lock... [2025-03-02 19:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:28:03] Production.INFO: ==25852== Lock acquired, processing the job... [2025-03-03 00:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:28:03] Production.INFO: ==25852== Releasing lock... [2025-03-03 00:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:28:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:28:03] Production.INFO: ==25863== Lock acquired, processing the job... [2025-03-02 19:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:28:04] Production.INFO: ==25867== Lock acquired, processing the job... [2025-03-02 19:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:28:04] Production.INFO: Account Balance Start. [2025-03-02 19:28:04] Production.INFO: CreateAllLog Start [2025-03-02 19:28:04] Production.INFO: 117 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: ==25857== Lock acquired, processing the job... [2025-03-02 19:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:28:04] Production.INFO: ==25859== Lock acquired, processing the job... [2025-03-02 19:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:28:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: ==25861== Lock acquired, processing the job... [2025-03-02 19:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:28:04] Production.INFO: count ==13 [2025-03-02 19:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:28:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: count ==21 [2025-03-02 19:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593258') start [2025-03-02 19:28:04] Production.INFO: ==25865== Lock acquired, processing the job... [2025-03-02 19:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:28:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:28:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593258') end [2025-03-02 19:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:28:04] Production.INFO: 1 [2025-03-02 19:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:28:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: ==25867== Releasing lock... [2025-03-02 19:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:28:04] Production.INFO: ==25859== Releasing lock... [2025-03-02 19:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:28:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.ERROR: done [2025-03-02 19:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.ERROR: done [2025-03-02 19:28:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:28:04] Production.INFO: Total Charge 0 [2025-03-02 19:28:04] Production.INFO: CreateAllLog End [2025-03-02 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:28:05 [end_date_ymd] => 2025-03-02 19:28:05 [RateCDR] => 1 ) [2025-03-02 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:28:05' and `end` < '2025-03-02 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:28:05] Production.INFO: Account Balance End. [2025-03-02 19:28:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:28:05] Production.INFO: ==25863== Releasing lock... [2025-03-02 19:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:28:13] Production.ERROR: CronJobId end10 [2025-03-02 19:28:13] Production.INFO: ==25861== Releasing lock... [2025-03-02 19:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:28:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:28:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:28:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:28:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:28:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:28:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:28:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:28:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:28:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:28:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:28:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:28:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:28:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:28:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:28:15] Production.INFO: call_cost start [2025-03-02 19:28:15] Production.INFO: call_cost end [2025-03-02 19:28:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:28:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:28:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:28:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:28:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:28:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:28:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:28:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:28:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:28:15] Production.INFO: ==25857== Releasing lock... [2025-03-02 19:28:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:28:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:28:17] Production.INFO: count ==1527 [2025-03-02 19:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:28:05 - End Time 2025-03-02 19:28:05 [2025-03-02 19:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593261', 'tblTempUsageDetail_20' ) start [2025-03-02 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593261', 'tblTempUsageDetail_20' ) end [2025-03-02 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593261', 'tblTempVendorCDR_20' ) start [2025-03-02 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593261', 'tblTempVendorCDR_20' ) end [2025-03-02 19:28:17] Production.INFO: ProcessCDR(1,14593261,1,1,2) [2025-03-02 19:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593261', 'tblTempUsageDetail_20' ) start [2025-03-02 19:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593261', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:28:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:28:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:28:25] Production.INFO: ==25865== Releasing lock... [2025-03-02 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:28:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:29:01] Production.INFO: ==25939== Lock acquired, processing the job... [2025-03-03 00:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:29:01] Production.INFO: neon service started [2025-03-03 00:29:01] Production.INFO: neon service started [2025-03-03 00:29:01] Production.INFO: ==25939== Releasing lock... [2025-03-03 00:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:29:02] Production.INFO: ==25942== Lock acquired, processing the job... [2025-03-02 19:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:29:02] Production.INFO: ==25942== Releasing lock... [2025-03-02 19:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:29:02] Production.INFO: ==25944== Lock acquired, processing the job... [2025-03-03 00:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:29:02] Production.INFO: ==25944== Releasing lock... [2025-03-03 00:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:29:03] Production.INFO: ==25956== Lock acquired, processing the job... [2025-03-02 19:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:29:03] Production.INFO: ==25948== Lock acquired, processing the job... [2025-03-02 19:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:29:03] Production.INFO: count ==13 [2025-03-02 19:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:29:03] Production.INFO: count ==21 [2025-03-02 19:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593262') start [2025-03-02 19:29:03] Production.INFO: ==25946== Lock acquired, processing the job... [2025-03-02 19:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593262') end [2025-03-02 19:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:29:03] Production.INFO: 1 [2025-03-02 19:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:29:03] Production.INFO: ==25950== Lock acquired, processing the job... [2025-03-02 19:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:29:03] Production.INFO: ==25952== Lock acquired, processing the job... [2025-03-02 19:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:29:03] Production.INFO: ==25956== Releasing lock... [2025-03-02 19:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:29:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:29:03] Production.INFO: Account Balance Start. [2025-03-02 19:29:03] Production.INFO: CreateAllLog Start [2025-03-02 19:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:29:03] Production.INFO: ==25954== Lock acquired, processing the job... [2025-03-02 19:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:29:03] Production.INFO: 117 [2025-03-02 19:29:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:03] Production.INFO: ==25948== Releasing lock... [2025-03-02 19:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:29:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.ERROR: done [2025-03-02 19:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.ERROR: done [2025-03-02 19:29:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:29:04 [end_date_ymd] => 2025-03-02 19:29:04 [RateCDR] => 1 ) [2025-03-02 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:29:04' and `end` < '2025-03-02 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:29:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:29:05] Production.INFO: Total Charge 0 [2025-03-02 19:29:05] Production.INFO: CreateAllLog End [2025-03-02 19:29:05] Production.INFO: Account Balance End. [2025-03-02 19:29:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:29:05] Production.INFO: ==25952== Releasing lock... [2025-03-02 19:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:29:12] Production.ERROR: CronJobId end10 [2025-03-02 19:29:12] Production.INFO: ==25950== Releasing lock... [2025-03-02 19:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:29:14] Production.INFO: call_cost start [2025-03-02 19:29:14] Production.INFO: call_cost end [2025-03-02 19:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:29:14] Production.INFO: ==25946== Releasing lock... [2025-03-02 19:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:29:16] Production.INFO: count ==1532 [2025-03-02 19:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:29:04 - End Time 2025-03-02 19:29:04 [2025-03-02 19:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593266', 'tblTempUsageDetail_20' ) start [2025-03-02 19:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593266', 'tblTempUsageDetail_20' ) end [2025-03-02 19:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593266', 'tblTempVendorCDR_20' ) start [2025-03-02 19:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593266', 'tblTempVendorCDR_20' ) end [2025-03-02 19:29:16] Production.INFO: ProcessCDR(1,14593266,1,1,2) [2025-03-02 19:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593266', 'tblTempUsageDetail_20' ) start [2025-03-02 19:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593266', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:29:24] Production.INFO: ==25954== Releasing lock... [2025-03-02 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:29:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:30:02] Production.INFO: ==26030== Lock acquired, processing the job... [2025-03-03 00:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:30:02] Production.INFO: neon service started [2025-03-03 00:30:02] Production.INFO: neon service started [2025-03-03 00:30:02] Production.INFO: ==26030== Releasing lock... [2025-03-03 00:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:30:03] Production.INFO: ==26032== Lock acquired, processing the job... [2025-03-02 19:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:30:03] Production.INFO: ==26034== Lock acquired, processing the job... [2025-03-03 00:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:30:03] Production.INFO: ==26034== Releasing lock... [2025-03-03 00:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:30:03] Production.INFO: ==26032== Releasing lock... [2025-03-02 19:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:30:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:30:04] Production.INFO: ==26041== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:30:04] Production.INFO: ==26037== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 19:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 19:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 19:30:04] Production.ERROR: CronJob PID - 26041 [2025-03-02 19:30:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 19:30:04] Production.ERROR: CronJob ID - 7 [2025-03-02 19:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 19:30:00 [2025-03-02 19:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 19:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 19:30:04] Production.INFO: ==26039== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 19:30:04] Production.INFO: ==26037== Releasing lock... [2025-03-02 19:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 19:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:30:04] Production.INFO: ==26049== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 19:30:04] Production.INFO: ==26047== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:30:04] Production.INFO: ==26043== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:30:04] Production.INFO: ==26045== Lock acquired, processing the job... [2025-03-02 19:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:30:05] Production.INFO: Account Balance Start. [2025-03-02 19:30:05] Production.INFO: CreateAllLog Start [2025-03-02 19:30:05] Production.INFO: ==26052== Lock acquired, processing the job... [2025-03-02 19:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:30:05] Production.INFO: 117 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-08 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: ==26041== Releasing lock... [2025-03-02 19:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:30:05] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:30:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:30:05] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:30:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:30:05] Production.INFO: Date 2025-02-09 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:30:05] Production.INFO: count ==13 [2025-03-02 19:30:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:30:05] Production.INFO: count ==21 [2025-03-02 19:30:05] Production.ERROR: done [2025-03-02 19:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593270') start [2025-03-02 19:30:05] Production.ERROR: done [2025-03-02 19:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-10 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-11 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-12 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-13 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-14 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 19:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593271', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 19:30:05] Production.ERROR: done [2025-03-02 19:30:05] Production.INFO: Date 2025-02-15 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593270') end [2025-03-02 19:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:30:05] Production.INFO: 1 [2025-03-02 19:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:30:05] Production.INFO: ==26052== Releasing lock... [2025-03-02 19:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:30:05] Production.INFO: Date 2025-02-16 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:30:05 [end_date_ymd] => 2025-03-02 19:30:05 [RateCDR] => 1 ) [2025-03-02 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:30:05' and `end` < '2025-03-02 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:30:05] Production.INFO: Date 2025-02-17 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:06] Production.INFO: Date 2025-03-02 [2025-03-02 19:30:06] Production.INFO: Reseller ==> 0 [2025-03-02 19:30:06] Production.INFO: Total Charge 0 [2025-03-02 19:30:06] Production.INFO: CreateAllLog End [2025-03-02 19:30:06] Production.INFO: Account Balance End. [2025-03-02 19:30:06] Production.ERROR: CronJobId end 12 [2025-03-02 19:30:06] Production.INFO: ==26045== Releasing lock... [2025-03-02 19:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593271', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 19:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 19:30:09] Production.INFO: ProcessCDR(1,14593271,1,1,2) [2025-03-02 19:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593271,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593271,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 19:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 19:30:09] Production.INFO: ==26049== Releasing lock... [2025-03-02 19:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 19:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:30:14] Production.ERROR: CronJobId end10 [2025-03-02 19:30:14] Production.INFO: ==26043== Releasing lock... [2025-03-02 19:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:30:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:30:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:30:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:30:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:30:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:30:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:30:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:30:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:30:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:30:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:30:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:30:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:30:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:30:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:30:17] Production.INFO: call_cost start [2025-03-02 19:30:17] Production.INFO: call_cost end [2025-03-02 19:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:30:17] Production.INFO: ==26039== Releasing lock... [2025-03-02 19:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:30:17] Production.INFO: count ==1526 [2025-03-02 19:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:30:05 - End Time 2025-03-02 19:30:05 [2025-03-02 19:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593272', 'tblTempUsageDetail_20' ) start [2025-03-02 19:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593272', 'tblTempUsageDetail_20' ) end [2025-03-02 19:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593272', 'tblTempVendorCDR_20' ) start [2025-03-02 19:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593272', 'tblTempVendorCDR_20' ) end [2025-03-02 19:30:17] Production.INFO: ProcessCDR(1,14593272,1,1,2) [2025-03-02 19:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593272', 'tblTempUsageDetail_20' ) start [2025-03-02 19:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593272', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:30:25] Production.INFO: ==26047== Releasing lock... [2025-03-02 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:30:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-03 00:31:01] Production.INFO: ==26141== Lock acquired, processing the job... [2025-03-03 00:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:31:01] Production.INFO: neon service started [2025-03-03 00:31:01] Production.INFO: neon service started [2025-03-03 00:31:01] Production.INFO: ==26141== Releasing lock... [2025-03-03 00:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:31:02] Production.INFO: ==26145== Lock acquired, processing the job... [2025-03-03 00:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:31:02] Production.INFO: ==26145== Releasing lock... [2025-03-03 00:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:31:02] Production.INFO: ==26143== Lock acquired, processing the job... [2025-03-02 19:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:31:02] Production.INFO: ==26143== Releasing lock... [2025-03-02 19:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:31:03] Production.INFO: ==26148== Lock acquired, processing the job... [2025-03-02 19:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:31:03] Production.INFO: ==26152== Lock acquired, processing the job... [2025-03-02 19:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:31:03] Production.INFO: ==26156== Lock acquired, processing the job... [2025-03-02 19:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:31:03] Production.INFO: ==26150== Lock acquired, processing the job... [2025-03-02 19:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:31:03] Production.INFO: ==26154== Lock acquired, processing the job... [2025-03-02 19:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:31:03] Production.INFO: ==26158== Lock acquired, processing the job... [2025-03-02 19:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:31:03] Production.INFO: count ==13 [2025-03-02 19:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:31:03] Production.INFO: count ==21 [2025-03-02 19:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593274') start [2025-03-02 19:31:03] Production.INFO: Account Balance Start. [2025-03-02 19:31:03] Production.INFO: CreateAllLog Start [2025-03-02 19:31:03] Production.INFO: 117 [2025-03-02 19:31:04] Production.ERROR: done [2025-03-02 19:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593274') end [2025-03-02 19:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:31:04] Production.INFO: 1 [2025-03-02 19:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: ==26158== Releasing lock... [2025-03-02 19:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:31:04] Production.ERROR: done [2025-03-02 19:31:04] Production.INFO: ==26150== Releasing lock... [2025-03-02 19:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:31:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:31:04 [end_date_ymd] => 2025-03-02 19:31:04 [RateCDR] => 1 ) [2025-03-02 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:31:04' and `end` < '2025-03-02 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:31:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:31:04] Production.INFO: Total Charge 0 [2025-03-02 19:31:05] Production.INFO: CreateAllLog End [2025-03-02 19:31:05] Production.INFO: Account Balance End. [2025-03-02 19:31:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:31:05] Production.INFO: ==26154== Releasing lock... [2025-03-02 19:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:31:13] Production.ERROR: CronJobId end10 [2025-03-02 19:31:13] Production.INFO: ==26152== Releasing lock... [2025-03-02 19:31:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:31:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:31:15] Production.INFO: call_cost start [2025-03-02 19:31:15] Production.INFO: call_cost end [2025-03-02 19:31:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:31:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:31:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:31:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:31:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:31:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:31:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:31:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:31:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:31:15] Production.INFO: ==26148== Releasing lock... [2025-03-02 19:31:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:31:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:31:16] Production.INFO: count ==1525 [2025-03-02 19:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:31:04 - End Time 2025-03-02 19:31:04 [2025-03-02 19:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593277', 'tblTempUsageDetail_20' ) start [2025-03-02 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593277', 'tblTempUsageDetail_20' ) end [2025-03-02 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593277', 'tblTempVendorCDR_20' ) start [2025-03-02 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593277', 'tblTempVendorCDR_20' ) end [2025-03-02 19:31:17] Production.INFO: ProcessCDR(1,14593277,1,1,2) [2025-03-02 19:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593277', 'tblTempUsageDetail_20' ) start [2025-03-02 19:31:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593277', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:31:24] Production.INFO: ==26156== Releasing lock... [2025-03-02 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:31:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:32:02] Production.INFO: ==26236== Lock acquired, processing the job... [2025-03-03 00:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:32:02] Production.INFO: neon service started [2025-03-03 00:32:02] Production.INFO: neon service started [2025-03-03 00:32:02] Production.INFO: ==26236== Releasing lock... [2025-03-03 00:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:32:02] Production.INFO: ==26238== Lock acquired, processing the job... [2025-03-02 19:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:32:02] Production.INFO: ==26240== Lock acquired, processing the job... [2025-03-03 00:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:32:02] Production.INFO: ==26240== Releasing lock... [2025-03-03 00:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:32:02] Production.INFO: ==26238== Releasing lock... [2025-03-02 19:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:32:03] Production.INFO: ==26243== Lock acquired, processing the job... [2025-03-02 19:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:32:03] Production.INFO: ==26247== Lock acquired, processing the job... [2025-03-02 19:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:32:03] Production.INFO: ==26253== Lock acquired, processing the job... [2025-03-02 19:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:32:04] Production.INFO: ==26245== Lock acquired, processing the job... [2025-03-02 19:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:32:04] Production.INFO: count ==13 [2025-03-02 19:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:32:04] Production.INFO: count ==21 [2025-03-02 19:32:04] Production.INFO: ==26249== Lock acquired, processing the job... [2025-03-02 19:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593279') start [2025-03-02 19:32:04] Production.INFO: ==26251== Lock acquired, processing the job... [2025-03-02 19:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593279') end [2025-03-02 19:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:32:04] Production.INFO: 1 [2025-03-02 19:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:32:04] Production.INFO: Account Balance Start. [2025-03-02 19:32:04] Production.INFO: CreateAllLog Start [2025-03-02 19:32:04] Production.INFO: 117 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: ==26253== Releasing lock... [2025-03-02 19:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:32:04] Production.INFO: ==26245== Releasing lock... [2025-03-02 19:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:32:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.ERROR: done [2025-03-02 19:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.ERROR: done [2025-03-02 19:32:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:32:05 [end_date_ymd] => 2025-03-02 19:32:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 16:32:05' and `end` < '2025-03-02 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-03-02 19:32:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:32:05] Production.INFO: Total Charge 0 [2025-03-02 19:32:05] Production.INFO: CreateAllLog End [2025-03-02 19:32:05] Production.INFO: Account Balance End. [2025-03-02 19:32:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:32:05] Production.INFO: ==26249== Releasing lock... [2025-03-02 19:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:32:13] Production.ERROR: CronJobId end10 [2025-03-02 19:32:13] Production.INFO: ==26247== Releasing lock... [2025-03-02 19:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:32:15] Production.INFO: call_cost start [2025-03-02 19:32:15] Production.INFO: call_cost end [2025-03-02 19:32:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:32:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:32:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:32:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:32:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:32:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:32:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:32:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:32:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:32:15] Production.INFO: ==26243== Releasing lock... [2025-03-02 19:32:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:32:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:32:17] Production.INFO: count ==1522 [2025-03-02 19:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:32:05 - End Time 2025-03-02 19:32:05 [2025-03-02 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593282', 'tblTempUsageDetail_20' ) start [2025-03-02 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593282', 'tblTempUsageDetail_20' ) end [2025-03-02 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593282', 'tblTempVendorCDR_20' ) start [2025-03-02 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593282', 'tblTempVendorCDR_20' ) end [2025-03-02 19:32:17] Production.INFO: ProcessCDR(1,14593282,1,1,2) [2025-03-02 19:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593282', 'tblTempUsageDetail_20' ) start [2025-03-02 19:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593282', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:32:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:32:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:32:25] Production.INFO: ==26251== Releasing lock... [2025-03-02 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:32:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:33:01] Production.INFO: ==26329== Lock acquired, processing the job... [2025-03-03 00:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:33:01] Production.INFO: neon service started [2025-03-03 00:33:01] Production.INFO: neon service started [2025-03-03 00:33:01] Production.INFO: ==26329== Releasing lock... [2025-03-03 00:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:33:02] Production.INFO: ==26331== Lock acquired, processing the job... [2025-03-02 19:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:33:02] Production.INFO: ==26331== Releasing lock... [2025-03-02 19:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:33:02] Production.INFO: ==26333== Lock acquired, processing the job... [2025-03-03 00:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:33:02] Production.INFO: ==26333== Releasing lock... [2025-03-03 00:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:33:03] Production.INFO: ==26339== Lock acquired, processing the job... [2025-03-02 19:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:33:03] Production.INFO: ==26345== Lock acquired, processing the job... [2025-03-02 19:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:33:03] Production.INFO: ==26337== Lock acquired, processing the job... [2025-03-02 19:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:33:03] Production.INFO: ==26335== Lock acquired, processing the job... [2025-03-02 19:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:33:03] Production.INFO: count ==13 [2025-03-02 19:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:33:03] Production.INFO: count ==21 [2025-03-02 19:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593283') start [2025-03-02 19:33:03] Production.INFO: ==26341== Lock acquired, processing the job... [2025-03-02 19:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:33:03] Production.INFO: ==26343== Lock acquired, processing the job... [2025-03-02 19:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593283') end [2025-03-02 19:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:33:03] Production.INFO: 1 [2025-03-02 19:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:33:03] Production.INFO: Account Balance Start. [2025-03-02 19:33:03] Production.INFO: CreateAllLog Start [2025-03-02 19:33:03] Production.INFO: 117 [2025-03-02 19:33:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:33:03] Production.INFO: ==26345== Releasing lock... [2025-03-02 19:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:33:04] Production.INFO: ==26337== Releasing lock... [2025-03-02 19:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.ERROR: done [2025-03-02 19:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.ERROR: done [2025-03-02 19:33:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:33:04 [end_date_ymd] => 2025-03-02 19:33:04 [RateCDR] => 1 ) [2025-03-02 19:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:33:04' and `end` < '2025-03-02 19:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:33:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:33:05] Production.INFO: Total Charge 0 [2025-03-02 19:33:05] Production.INFO: CreateAllLog End [2025-03-02 19:33:05] Production.INFO: Account Balance End. [2025-03-02 19:33:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:33:05] Production.INFO: ==26341== Releasing lock... [2025-03-02 19:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:33:12] Production.ERROR: CronJobId end10 [2025-03-02 19:33:12] Production.INFO: ==26339== Releasing lock... [2025-03-02 19:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:33:15] Production.INFO: call_cost start [2025-03-02 19:33:15] Production.INFO: call_cost end [2025-03-02 19:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:33:15] Production.INFO: ==26335== Releasing lock... [2025-03-02 19:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:33:16] Production.INFO: count ==1522 [2025-03-02 19:33:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:33:04 - End Time 2025-03-02 19:33:04 [2025-03-02 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593287', 'tblTempUsageDetail_20' ) start [2025-03-02 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593287', 'tblTempUsageDetail_20' ) end [2025-03-02 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593287', 'tblTempVendorCDR_20' ) start [2025-03-02 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593287', 'tblTempVendorCDR_20' ) end [2025-03-02 19:33:17] Production.INFO: ProcessCDR(1,14593287,1,1,2) [2025-03-02 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593287', 'tblTempUsageDetail_20' ) start [2025-03-02 19:33:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593287', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:33:24] Production.INFO: ==26343== Releasing lock... [2025-03-02 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:33:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:34:02] Production.INFO: ==26427== Lock acquired, processing the job... [2025-03-03 00:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:34:02] Production.INFO: neon service started [2025-03-03 00:34:02] Production.INFO: neon service started [2025-03-03 00:34:02] Production.INFO: ==26427== Releasing lock... [2025-03-03 00:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:34:02] Production.INFO: ==26431== Lock acquired, processing the job... [2025-03-03 00:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:34:02] Production.INFO: ==26431== Releasing lock... [2025-03-03 00:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:34:02] Production.INFO: ==26429== Lock acquired, processing the job... [2025-03-02 19:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:34:03] Production.INFO: ==26429== Releasing lock... [2025-03-02 19:34:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:34:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:34:03] Production.INFO: ==26436== Lock acquired, processing the job... [2025-03-02 19:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:34:04] Production.INFO: ==26442== Lock acquired, processing the job... [2025-03-02 19:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:34:04] Production.INFO: Account Balance Start. [2025-03-02 19:34:04] Production.INFO: CreateAllLog Start [2025-03-02 19:34:04] Production.INFO: 117 [2025-03-02 19:34:04] Production.INFO: ==26433== Lock acquired, processing the job... [2025-03-02 19:34:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:34:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: ==26436== Releasing lock... [2025-03-02 19:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:34:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:34:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: ==26440== Lock acquired, processing the job... [2025-03-02 19:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:34:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: ==26444== Lock acquired, processing the job... [2025-03-02 19:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:34:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:34:04] Production.INFO: ==26446== Lock acquired, processing the job... [2025-03-02 19:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:34:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:34:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: count ==13 [2025-03-02 19:34:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:34:05] Production.INFO: count ==21 [2025-03-02 19:34:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593291') start [2025-03-02 19:34:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.ERROR: done [2025-03-02 19:34:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:34:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593291') end [2025-03-02 19:34:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:34:05] Production.INFO: 1 [2025-03-02 19:34:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:34:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:34:05] Production.INFO: Total Charge 0 [2025-03-02 19:34:05] Production.INFO: CreateAllLog End [2025-03-02 19:34:05] Production.INFO: ==26446== Releasing lock... [2025-03-02 19:34:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:34:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:34:05] Production.ERROR: done [2025-03-02 19:34:05] Production.INFO: Account Balance End. [2025-03-02 19:34:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:34:05] Production.INFO: ==26442== Releasing lock... [2025-03-02 19:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:34:05 [end_date_ymd] => 2025-03-02 19:34:05 [RateCDR] => 1 ) [2025-03-02 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:34:05' and `end` < '2025-03-02 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:34:13] Production.ERROR: CronJobId end10 [2025-03-02 19:34:13] Production.INFO: ==26440== Releasing lock... [2025-03-02 19:34:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:34:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:34:15] Production.INFO: call_cost start [2025-03-02 19:34:15] Production.INFO: call_cost end [2025-03-02 19:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:34:15] Production.INFO: ==26433== Releasing lock... [2025-03-02 19:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:34:17] Production.INFO: count ==1521 [2025-03-02 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-02 16:34:05 - End Time 2025-03-02 19:34:05 [2025-03-02 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593292', 'tblTempUsageDetail_20' ) start [2025-03-02 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593292', 'tblTempUsageDetail_20' ) end [2025-03-02 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593292', 'tblTempVendorCDR_20' ) start [2025-03-02 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593292', 'tblTempVendorCDR_20' ) end [2025-03-02 19:34:18] Production.INFO: ProcessCDR(1,14593292,1,1,2) [2025-03-02 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593292', 'tblTempUsageDetail_20' ) start [2025-03-02 19:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593292', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:34:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:34:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:34:25] Production.INFO: ==26444== Releasing lock... [2025-03-02 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:34:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:35:01] Production.INFO: ==26527== Lock acquired, processing the job... [2025-03-03 00:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:35:01] Production.INFO: neon service started [2025-03-03 00:35:01] Production.INFO: neon service started [2025-03-03 00:35:01] Production.INFO: ==26527== Releasing lock... [2025-03-03 00:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:35:02] Production.INFO: ==26529== Lock acquired, processing the job... [2025-03-02 19:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:35:02] Production.INFO: ==26531== Lock acquired, processing the job... [2025-03-03 00:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:35:02] Production.INFO: ==26531== Releasing lock... [2025-03-03 00:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:35:02] Production.INFO: ==26529== Releasing lock... [2025-03-02 19:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:35:03] Production.INFO: ==26538== Lock acquired, processing the job... [2025-03-02 19:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:35:03] Production.INFO: ==26534== Lock acquired, processing the job... [2025-03-02 19:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:35:03] Production.INFO: ==26544== Lock acquired, processing the job... [2025-03-02 19:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:35:03] Production.INFO: ==26536== Lock acquired, processing the job... [2025-03-02 19:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:35:03] Production.INFO: ==26540== Lock acquired, processing the job... [2025-03-02 19:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:35:03] Production.INFO: Account Balance Start. [2025-03-02 19:35:03] Production.INFO: CreateAllLog Start [2025-03-02 19:35:03] Production.INFO: count ==13 [2025-03-02 19:35:03] Production.INFO: ==26542== Lock acquired, processing the job... [2025-03-02 19:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:35:03] Production.INFO: 117 [2025-03-02 19:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:35:03] Production.INFO: count ==21 [2025-03-02 19:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593294') start [2025-03-02 19:35:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593294') end [2025-03-02 19:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:35:03] Production.INFO: 1 [2025-03-02 19:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:35:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:03] Production.INFO: ==26544== Releasing lock... [2025-03-02 19:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:35:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:35:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.ERROR: done [2025-03-02 19:35:04] Production.INFO: ==26536== Releasing lock... [2025-03-02 19:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.ERROR: done [2025-03-02 19:35:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:35:04 [end_date_ymd] => 2025-03-02 19:35:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:35:04' and `end` < '2025-03-02 19: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-03-02 19:35:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:35:04] Production.INFO: Total Charge 0 [2025-03-02 19:35:04] Production.INFO: CreateAllLog End [2025-03-02 19:35:04] Production.INFO: Account Balance End. [2025-03-02 19:35:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:35:04] Production.INFO: ==26540== Releasing lock... [2025-03-02 19:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:35:12] Production.ERROR: CronJobId end10 [2025-03-02 19:35:12] Production.INFO: ==26538== Releasing lock... [2025-03-02 19:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:35:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:35:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:35:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:35:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:35:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:35:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:35:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:35:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:35:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:35:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:35:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:35:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:35:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:35:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:35:15] Production.INFO: call_cost start [2025-03-02 19:35:15] Production.INFO: call_cost end [2025-03-02 19:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:35:15] Production.INFO: ==26534== Releasing lock... [2025-03-02 19:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:35:16] Production.INFO: count ==1517 [2025-03-02 19:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:35:04 - End Time 2025-03-02 19:35:04 [2025-03-02 19:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593297', 'tblTempUsageDetail_20' ) start [2025-03-02 19:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593297', 'tblTempUsageDetail_20' ) end [2025-03-02 19:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593297', 'tblTempVendorCDR_20' ) start [2025-03-02 19:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593297', 'tblTempVendorCDR_20' ) end [2025-03-02 19:35:16] Production.INFO: ProcessCDR(1,14593297,1,1,2) [2025-03-02 19:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593297', 'tblTempUsageDetail_20' ) start [2025-03-02 19:35:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593297', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:35:24] Production.INFO: ==26542== Releasing lock... [2025-03-02 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:35:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:36:02] Production.INFO: ==26635== Lock acquired, processing the job... [2025-03-03 00:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:36:02] Production.INFO: neon service started [2025-03-03 00:36:02] Production.INFO: neon service started [2025-03-03 00:36:02] Production.INFO: ==26635== Releasing lock... [2025-03-03 00:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:36:02] Production.INFO: ==26639== Lock acquired, processing the job... [2025-03-03 00:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:36:02] Production.INFO: ==26639== Releasing lock... [2025-03-03 00:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:36:02] Production.INFO: ==26637== Lock acquired, processing the job... [2025-03-02 19:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:36:03] Production.INFO: ==26637== Releasing lock... [2025-03-02 19:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:36:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:36:03] Production.INFO: ==26650== Lock acquired, processing the job... [2025-03-02 19:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:36:04] Production.INFO: ==26652== Lock acquired, processing the job... [2025-03-02 19:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:36:04] Production.INFO: ==26642== Lock acquired, processing the job... [2025-03-02 19:36:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:36:04] Production.INFO: ==26644== Lock acquired, processing the job... [2025-03-02 19:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:36:04] Production.INFO: ==26646== Lock acquired, processing the job... [2025-03-02 19:36:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:36:04] Production.INFO: ==26648== Lock acquired, processing the job... [2025-03-02 19:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:36:04] Production.INFO: count ==13 [2025-03-02 19:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:36:04] Production.INFO: count ==21 [2025-03-02 19:36:04] Production.INFO: Account Balance Start. [2025-03-02 19:36:04] Production.INFO: CreateAllLog Start [2025-03-02 19:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593298') start [2025-03-02 19:36:04] Production.INFO: 117 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.ERROR: done [2025-03-02 19:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593298') end [2025-03-02 19:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:36:04] Production.INFO: 1 [2025-03-02 19:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:36:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: ==26652== Releasing lock... [2025-03-02 19:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:36:04] Production.INFO: ==26644== Releasing lock... [2025-03-02 19:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:36:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.ERROR: done [2025-03-02 19:36:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:36:04 [end_date_ymd] => 2025-03-02 19:36:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:36:04' and `end` < '2025-03-02 19: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-03-02 19:36:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:36:05] Production.INFO: Total Charge 0 [2025-03-02 19:36:05] Production.INFO: CreateAllLog End [2025-03-02 19:36:05] Production.INFO: Account Balance End. [2025-03-02 19:36:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:36:05] Production.INFO: ==26648== Releasing lock... [2025-03-02 19:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:36:13] Production.ERROR: CronJobId end10 [2025-03-02 19:36:13] Production.INFO: ==26646== Releasing lock... [2025-03-02 19:36:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:36:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:36:15] Production.INFO: call_cost start [2025-03-02 19:36:15] Production.INFO: call_cost end [2025-03-02 19:36:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:36:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:36:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:36:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:36:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:36:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:36:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:36:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:36:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:36:15] Production.INFO: ==26642== Releasing lock... [2025-03-02 19:36:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:36:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:36:17] Production.INFO: count ==1517 [2025-03-02 19:36:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:36:04 - End Time 2025-03-02 19:36:04 [2025-03-02 19:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593302', 'tblTempUsageDetail_20' ) start [2025-03-02 19:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593302', 'tblTempUsageDetail_20' ) end [2025-03-02 19:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593302', 'tblTempVendorCDR_20' ) start [2025-03-02 19:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593302', 'tblTempVendorCDR_20' ) end [2025-03-02 19:36:17] Production.INFO: ProcessCDR(1,14593302,1,1,2) [2025-03-02 19:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593302', 'tblTempUsageDetail_20' ) start [2025-03-02 19:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593302', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:36:24] Production.INFO: ==26650== Releasing lock... [2025-03-02 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:36:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:37:01] Production.INFO: ==26720== Lock acquired, processing the job... [2025-03-03 00:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:37:01] Production.INFO: neon service started [2025-03-03 00:37:01] Production.INFO: neon service started [2025-03-03 00:37:01] Production.INFO: ==26720== Releasing lock... [2025-03-03 00:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:37:02] Production.INFO: ==26723== Lock acquired, processing the job... [2025-03-02 19:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:37:02] Production.INFO: ==26725== Lock acquired, processing the job... [2025-03-03 00:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:37:02] Production.INFO: ==26725== Releasing lock... [2025-03-03 00:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:37:02] Production.INFO: ==26723== Releasing lock... [2025-03-02 19:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:37:03] Production.INFO: ==26727== Lock acquired, processing the job... [2025-03-02 19:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:37:03] Production.INFO: ==26737== Lock acquired, processing the job... [2025-03-02 19:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:37:03] Production.INFO: ==26729== Lock acquired, processing the job... [2025-03-02 19:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:37:03] Production.INFO: ==26731== Lock acquired, processing the job... [2025-03-02 19:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:37:03] Production.INFO: ==26733== Lock acquired, processing the job... [2025-03-02 19:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:37:03] Production.INFO: count ==13 [2025-03-02 19:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:37:03] Production.INFO: count ==21 [2025-03-02 19:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:37:03] Production.INFO: ==26735== Lock acquired, processing the job... [2025-03-02 19:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593304') start [2025-03-02 19:37:03] Production.INFO: Account Balance Start. [2025-03-02 19:37:03] Production.INFO: CreateAllLog Start [2025-03-02 19:37:03] Production.INFO: 117 [2025-03-02 19:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593304') end [2025-03-02 19:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:37:04] Production.INFO: 1 [2025-03-02 19:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: ==26737== Releasing lock... [2025-03-02 19:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:37:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.ERROR: done [2025-03-02 19:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:37:04] Production.INFO: ==26729== Releasing lock... [2025-03-02 19:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:37:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.ERROR: done [2025-03-02 19:37:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:37:04 [end_date_ymd] => 2025-03-02 19:37:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:37:04' and `end` < '2025-03-02 19: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-03-02 19:37:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:37:04] Production.INFO: Total Charge 0 [2025-03-02 19:37:05] Production.INFO: CreateAllLog End [2025-03-02 19:37:05] Production.INFO: Account Balance End. [2025-03-02 19:37:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:37:05] Production.INFO: ==26733== Releasing lock... [2025-03-02 19:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:37:11] Production.ERROR: CronJobId end10 [2025-03-02 19:37:11] Production.INFO: ==26731== Releasing lock... [2025-03-02 19:37:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:37:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:37:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:37:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:37:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:37:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:37:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:37:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:37:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:37:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:37:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:37:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:37:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:37:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:37:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:37:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:37:13] Production.INFO: call_cost start [2025-03-02 19:37:13] Production.INFO: call_cost end [2025-03-02 19:37:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:37:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:37:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:37:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:37:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:37:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:37:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:37:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:37:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:37:13] Production.INFO: ==26727== Releasing lock... [2025-03-02 19:37:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:37:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:37:16] Production.INFO: count ==1512 [2025-03-02 19:37:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:37:04 - End Time 2025-03-02 19:37:04 [2025-03-02 19:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593307', 'tblTempUsageDetail_20' ) start [2025-03-02 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593307', 'tblTempUsageDetail_20' ) end [2025-03-02 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593307', 'tblTempVendorCDR_20' ) start [2025-03-02 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593307', 'tblTempVendorCDR_20' ) end [2025-03-02 19:37:16] Production.INFO: ProcessCDR(1,14593307,1,1,2) [2025-03-02 19:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593307', 'tblTempUsageDetail_20' ) start [2025-03-02 19:37:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593307', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:37:24] Production.INFO: ==26735== Releasing lock... [2025-03-02 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:37:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:38:02] Production.INFO: ==26814== Lock acquired, processing the job... [2025-03-03 00:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:38:02] Production.INFO: neon service started [2025-03-03 00:38:02] Production.INFO: neon service started [2025-03-03 00:38:02] Production.INFO: ==26814== Releasing lock... [2025-03-03 00:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:38:02] Production.INFO: ==26816== Lock acquired, processing the job... [2025-03-02 19:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:38:02] Production.INFO: ==26816== Releasing lock... [2025-03-02 19:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:38:02] Production.INFO: ==26818== Lock acquired, processing the job... [2025-03-03 00:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:38:02] Production.INFO: ==26818== Releasing lock... [2025-03-03 00:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:38:03] Production.INFO: ==26822== Lock acquired, processing the job... [2025-03-02 19:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:38:03] Production.INFO: ==26824== Lock acquired, processing the job... [2025-03-02 19:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:38:03] Production.INFO: ==26820== Lock acquired, processing the job... [2025-03-02 19:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:38:03] Production.INFO: ==26828== Lock acquired, processing the job... [2025-03-02 19:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:38:03] Production.INFO: ==26826== Lock acquired, processing the job... [2025-03-02 19:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:38:03] Production.INFO: ==26830== Lock acquired, processing the job... [2025-03-02 19:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:38:03] Production.INFO: Account Balance Start. [2025-03-02 19:38:03] Production.INFO: CreateAllLog Start [2025-03-02 19:38:03] Production.INFO: 117 [2025-03-02 19:38:03] Production.INFO: ==26822== Releasing lock... [2025-03-02 19:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:38:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:38:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:38:04] Production.INFO: count ==13 [2025-03-02 19:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:38:04] Production.INFO: count ==21 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593311') start [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.ERROR: done [2025-03-02 19:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593311') end [2025-03-02 19:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:38:04] Production.INFO: 1 [2025-03-02 19:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:38:04] Production.INFO: ==26830== Releasing lock... [2025-03-02 19:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:38:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.ERROR: done [2025-03-02 19:38:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:38:04 [end_date_ymd] => 2025-03-02 19:38:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:38:04' and `end` < '2025-03-02 19: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-03-02 19:38:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:38:04] Production.INFO: Total Charge 0 [2025-03-02 19:38:05] Production.INFO: CreateAllLog End [2025-03-02 19:38:05] Production.INFO: Account Balance End. [2025-03-02 19:38:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:38:05] Production.INFO: ==26826== Releasing lock... [2025-03-02 19:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:38:10] Production.ERROR: CronJobId end10 [2025-03-02 19:38:10] Production.INFO: ==26824== Releasing lock... [2025-03-02 19:38:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:38:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:38:13] Production.INFO: call_cost start [2025-03-02 19:38:13] Production.INFO: call_cost end [2025-03-02 19:38:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:38:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:38:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:38:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:38:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:38:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:38:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:38:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:38:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:38:14] Production.INFO: ==26820== Releasing lock... [2025-03-02 19:38:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:38:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:38:16] Production.INFO: count ==1512 [2025-03-02 19:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:38:04 - End Time 2025-03-02 19:38:04 [2025-03-02 19:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593312', 'tblTempUsageDetail_20' ) start [2025-03-02 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593312', 'tblTempUsageDetail_20' ) end [2025-03-02 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593312', 'tblTempVendorCDR_20' ) start [2025-03-02 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593312', 'tblTempVendorCDR_20' ) end [2025-03-02 19:38:17] Production.INFO: ProcessCDR(1,14593312,1,1,2) [2025-03-02 19:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593312', 'tblTempUsageDetail_20' ) start [2025-03-02 19:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593312', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:38:24] Production.INFO: ==26828== Releasing lock... [2025-03-02 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:38:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:39:01] Production.INFO: ==26904== Lock acquired, processing the job... [2025-03-03 00:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:39:01] Production.INFO: neon service started [2025-03-03 00:39:01] Production.INFO: neon service started [2025-03-03 00:39:01] Production.INFO: ==26904== Releasing lock... [2025-03-03 00:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:39:02] Production.INFO: ==26906== Lock acquired, processing the job... [2025-03-02 19:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:39:02] Production.INFO: ==26908== Lock acquired, processing the job... [2025-03-03 00:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:39:02] Production.INFO: ==26908== Releasing lock... [2025-03-03 00:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:39:02] Production.INFO: ==26906== Releasing lock... [2025-03-02 19:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:39:03] Production.INFO: ==26917== Lock acquired, processing the job... [2025-03-02 19:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:39:03] Production.INFO: ==26921== Lock acquired, processing the job... [2025-03-02 19:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:39:03] Production.INFO: Account Balance Start. [2025-03-02 19:39:03] Production.INFO: CreateAllLog Start [2025-03-02 19:39:03] Production.INFO: 117 [2025-03-02 19:39:03] Production.INFO: ==26913== Lock acquired, processing the job... [2025-03-02 19:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:39:03] Production.INFO: ==26911== Lock acquired, processing the job... [2025-03-02 19:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:39:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.INFO: ==26915== Lock acquired, processing the job... [2025-03-02 19:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:39:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:39:03] Production.INFO: ==26919== Lock acquired, processing the job... [2025-03-02 19:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:39:03] Production.INFO: count ==13 [2025-03-02 19:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:39:03] Production.INFO: count ==21 [2025-03-02 19:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593314') start [2025-03-02 19:39:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:39:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593314') end [2025-03-02 19:39:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:39:03] Production.INFO: 1 [2025-03-02 19:39:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:39:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:03] Production.INFO: ==26921== Releasing lock... [2025-03-02 19:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:39:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:39:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: ==26913== Releasing lock... [2025-03-02 19:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:39:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.ERROR: done [2025-03-02 19:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:39:04] Production.ERROR: done [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:39:04 [end_date_ymd] => 2025-03-02 19:39:04 [RateCDR] => 1 ) [2025-03-02 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:39:04' and `end` < '2025-03-02 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:39:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:39:04] Production.INFO: Total Charge 0 [2025-03-02 19:39:04] Production.INFO: CreateAllLog End [2025-03-02 19:39:04] Production.INFO: Account Balance End. [2025-03-02 19:39:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:39:04] Production.INFO: ==26917== Releasing lock... [2025-03-02 19:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:39:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:39:12] Production.ERROR: CronJobId end10 [2025-03-02 19:39:12] Production.INFO: ==26915== Releasing lock... [2025-03-02 19:39:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:39:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:39:14] Production.INFO: call_cost start [2025-03-02 19:39:14] Production.INFO: call_cost end [2025-03-02 19:39:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:39:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:39:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:39:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:39:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:39:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:39:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:39:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:39:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:39:14] Production.INFO: ==26911== Releasing lock... [2025-03-02 19:39:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:39:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:39:16] Production.INFO: count ==1511 [2025-03-02 19:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:39:04 - End Time 2025-03-02 19:39:04 [2025-03-02 19:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593317', 'tblTempUsageDetail_20' ) start [2025-03-02 19:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593317', 'tblTempUsageDetail_20' ) end [2025-03-02 19:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593317', 'tblTempVendorCDR_20' ) start [2025-03-02 19:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593317', 'tblTempVendorCDR_20' ) end [2025-03-02 19:39:16] Production.INFO: ProcessCDR(1,14593317,1,1,2) [2025-03-02 19:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593317', 'tblTempUsageDetail_20' ) start [2025-03-02 19:39:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593317', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:39:24] Production.INFO: ==26919== Releasing lock... [2025-03-02 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:39:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:40:01] Production.INFO: ==26996== Lock acquired, processing the job... [2025-03-03 00:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:40:01] Production.INFO: neon service started [2025-03-03 00:40:01] Production.INFO: neon service started [2025-03-03 00:40:01] Production.INFO: ==26996== Releasing lock... [2025-03-03 00:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:40:02] Production.INFO: ==27000== Lock acquired, processing the job... [2025-03-03 00:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:40:02] Production.INFO: ==27000== Releasing lock... [2025-03-03 00:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:40:02] Production.INFO: ==26998== Lock acquired, processing the job... [2025-03-02 19:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:40:02] Production.INFO: ==26998== Releasing lock... [2025-03-02 19:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:40:03] Production.INFO: ==27003== Lock acquired, processing the job... [2025-03-02 19:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 19:40:03] Production.INFO: ==27007== Lock acquired, processing the job... [2025-03-02 19:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:40:03] Production.INFO: ==27005== Lock acquired, processing the job... [2025-03-02 19:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 19:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 19:40:04] Production.INFO: ==27003== Releasing lock... [2025-03-02 19:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 19:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:40:04] Production.INFO: ==27009== Lock acquired, processing the job... [2025-03-02 19:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:40:04] Production.INFO: ==27017== Lock acquired, processing the job... [2025-03-02 19:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:40:04] Production.INFO: ==27011== Lock acquired, processing the job... [2025-03-02 19:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:40:04] Production.INFO: ==27015== Lock acquired, processing the job... [2025-03-02 19:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 19:40:04] Production.INFO: ==27013== Lock acquired, processing the job... [2025-03-02 19:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:40:04] Production.INFO: Account Balance Start. [2025-03-02 19:40:04] Production.INFO: CreateAllLog Start [2025-03-02 19:40:04] Production.INFO: 117 [2025-03-02 19:40:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:40:04] Production.INFO: count ==13 [2025-03-02 19:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:40:04] Production.INFO: count ==21 [2025-03-02 19:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593320') start [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593320') end [2025-03-02 19:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:40:04] Production.INFO: 1 [2025-03-02 19:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:40:04] Production.INFO: ==27017== Releasing lock... [2025-03-02 19:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:40:04] Production.INFO: ==27007== Releasing lock... [2025-03-02 19:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:40:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:40:04] Production.ERROR: done [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.ERROR: done [2025-03-02 19:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:40:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 19:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593322', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 19:40:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.ERROR: done [2025-03-02 19:40:05] Production.INFO: Date 2025-02-16 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-17 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:40:05 [end_date_ymd] => 2025-03-02 19:40:05 [RateCDR] => 1 ) [2025-03-02 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:40:05' and `end` < '2025-03-02 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:40:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:40:05] Production.INFO: Total Charge 0 [2025-03-02 19:40:05] Production.INFO: CreateAllLog End [2025-03-02 19:40:05] Production.INFO: Account Balance End. [2025-03-02 19:40:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:40:05] Production.INFO: ==27011== Releasing lock... [2025-03-02 19:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593322', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 19:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 19:40:09] Production.INFO: ProcessCDR(1,14593322,1,1,2) [2025-03-02 19:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593322,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593322,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 19:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 19:40:09] Production.INFO: ==27015== Releasing lock... [2025-03-02 19:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 19:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:40:14] Production.ERROR: CronJobId end10 [2025-03-02 19:40:14] Production.INFO: ==27009== Releasing lock... [2025-03-02 19:40:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:40:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:40:16] Production.INFO: call_cost start [2025-03-02 19:40:16] Production.INFO: call_cost end [2025-03-02 19:40:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:40:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:40:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:40:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:40:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:40:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:40:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:40:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:40:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:40:16] Production.INFO: ==27005== Releasing lock... [2025-03-02 19:40:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:40:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:40:17] Production.INFO: count ==1501 [2025-03-02 19:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:40:05 - End Time 2025-03-02 19:40:05 [2025-03-02 19:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593323', 'tblTempUsageDetail_20' ) start [2025-03-02 19:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593323', 'tblTempUsageDetail_20' ) end [2025-03-02 19:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593323', 'tblTempVendorCDR_20' ) start [2025-03-02 19:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593323', 'tblTempVendorCDR_20' ) end [2025-03-02 19:40:17] Production.INFO: ProcessCDR(1,14593323,1,1,2) [2025-03-02 19:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593323', 'tblTempUsageDetail_20' ) start [2025-03-02 19:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593323', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:40:25] Production.INFO: ==27013== Releasing lock... [2025-03-02 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:40:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:41:01] Production.INFO: ==27110== Lock acquired, processing the job... [2025-03-03 00:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:41:01] Production.INFO: neon service started [2025-03-03 00:41:01] Production.INFO: neon service started [2025-03-03 00:41:01] Production.INFO: ==27110== Releasing lock... [2025-03-03 00:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:41:01] Production.INFO: ==27116== Lock acquired, processing the job... [2025-03-03 00:41:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:41:01] Production.INFO: ==27116== Releasing lock... [2025-03-03 00:41:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:41:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:41:02] Production.INFO: ==27114== Lock acquired, processing the job... [2025-03-02 19:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:41:02] Production.INFO: ==27114== Releasing lock... [2025-03-02 19:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:41:02] Production.INFO: ==27120== Lock acquired, processing the job... [2025-03-02 19:41:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:41:03] Production.INFO: ==27124== Lock acquired, processing the job... [2025-03-02 19:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:41:03] Production.INFO: ==27122== Lock acquired, processing the job... [2025-03-02 19:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:41:03] Production.INFO: ==27131== Lock acquired, processing the job... [2025-03-02 19:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:41:03] Production.INFO: ==27127== Lock acquired, processing the job... [2025-03-02 19:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:41:03] Production.INFO: ==27129== Lock acquired, processing the job... [2025-03-02 19:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:41:03] Production.INFO: count ==13 [2025-03-02 19:41:03] Production.INFO: Account Balance Start. [2025-03-02 19:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:41:03] Production.INFO: CreateAllLog Start [2025-03-02 19:41:03] Production.INFO: count ==21 [2025-03-02 19:41:03] Production.INFO: 117 [2025-03-02 19:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593326') start [2025-03-02 19:41:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593326') end [2025-03-02 19:41:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:41:03] Production.INFO: 1 [2025-03-02 19:41:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:41:03] Production.INFO: ==27131== Releasing lock... [2025-03-02 19:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:41:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:41:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:03] Production.INFO: ==27122== Releasing lock... [2025-03-02 19:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:41:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.ERROR: done [2025-03-02 19:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.ERROR: done [2025-03-02 19:41:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:41:04 [end_date_ymd] => 2025-03-02 19:41:04 [RateCDR] => 1 ) [2025-03-02 19:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:41:04' and `end` < '2025-03-02 19:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:41:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:41:05] Production.INFO: Total Charge 0 [2025-03-02 19:41:05] Production.INFO: CreateAllLog End [2025-03-02 19:41:05] Production.INFO: Account Balance End. [2025-03-02 19:41:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:41:05] Production.INFO: ==27127== Releasing lock... [2025-03-02 19:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:41:11] Production.ERROR: CronJobId end10 [2025-03-02 19:41:11] Production.INFO: ==27124== Releasing lock... [2025-03-02 19:41:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:41:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:41:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:41:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:41:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:41:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:41:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:41:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:41:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:41:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:41:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:41:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:41:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:41:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:41:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:41:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:41:14] Production.INFO: call_cost start [2025-03-02 19:41:14] Production.INFO: call_cost end [2025-03-02 19:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:41:14] Production.INFO: ==27120== Releasing lock... [2025-03-02 19:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:41:16] Production.INFO: count ==1499 [2025-03-02 19:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:41:04 - End Time 2025-03-02 19:41:04 [2025-03-02 19:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593328', 'tblTempUsageDetail_20' ) start [2025-03-02 19:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593328', 'tblTempUsageDetail_20' ) end [2025-03-02 19:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593328', 'tblTempVendorCDR_20' ) start [2025-03-02 19:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593328', 'tblTempVendorCDR_20' ) end [2025-03-02 19:41:16] Production.INFO: ProcessCDR(1,14593328,1,1,2) [2025-03-02 19:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593328', 'tblTempUsageDetail_20' ) start [2025-03-02 19:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593328', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:41:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:41:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:41:23] Production.INFO: ==27129== Releasing lock... [2025-03-02 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:41:23] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:42:01] Production.INFO: ==27204== Lock acquired, processing the job... [2025-03-03 00:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:42:01] Production.INFO: neon service started [2025-03-03 00:42:01] Production.INFO: neon service started [2025-03-03 00:42:01] Production.INFO: ==27204== Releasing lock... [2025-03-03 00:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:42:02] Production.INFO: ==27206== Lock acquired, processing the job... [2025-03-02 19:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:42:02] Production.INFO: ==27208== Lock acquired, processing the job... [2025-03-03 00:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:42:02] Production.INFO: ==27208== Releasing lock... [2025-03-03 00:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:42:02] Production.INFO: ==27206== Releasing lock... [2025-03-02 19:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:42:03] Production.INFO: ==27210== Lock acquired, processing the job... [2025-03-02 19:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:42:03] Production.INFO: ==27212== Lock acquired, processing the job... [2025-03-02 19:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:42:03] Production.INFO: ==27221== Lock acquired, processing the job... [2025-03-02 19:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:42:03] Production.INFO: ==27214== Lock acquired, processing the job... [2025-03-02 19:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:42:03] Production.INFO: ==27216== Lock acquired, processing the job... [2025-03-02 19:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:42:03] Production.INFO: ==27218== Lock acquired, processing the job... [2025-03-02 19:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:42:03] Production.INFO: count ==13 [2025-03-02 19:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:42:03] Production.INFO: count ==21 [2025-03-02 19:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593331') start [2025-03-02 19:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:42:03] Production.INFO: ==27212== Releasing lock... [2025-03-02 19:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:42:03] Production.INFO: Account Balance Start. [2025-03-02 19:42:03] Production.INFO: CreateAllLog Start [2025-03-02 19:42:03] Production.INFO: 117 [2025-03-02 19:42:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593331') end [2025-03-02 19:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:42:03] Production.INFO: 1 [2025-03-02 19:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:42:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: ==27221== Releasing lock... [2025-03-02 19:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:42:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.ERROR: done [2025-03-02 19:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.ERROR: done [2025-03-02 19:42:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:42:04 [end_date_ymd] => 2025-03-02 19:42:04 [RateCDR] => 1 ) [2025-03-02 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:42:04' and `end` < '2025-03-02 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:42:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:42:05] Production.INFO: Total Charge 0 [2025-03-02 19:42:05] Production.INFO: CreateAllLog End [2025-03-02 19:42:05] Production.INFO: Account Balance End. [2025-03-02 19:42:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:42:05] Production.INFO: ==27216== Releasing lock... [2025-03-02 19:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:42:12] Production.ERROR: CronJobId end10 [2025-03-02 19:42:12] Production.INFO: ==27214== Releasing lock... [2025-03-02 19:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:42:15] Production.INFO: call_cost start [2025-03-02 19:42:15] Production.INFO: call_cost end [2025-03-02 19:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:42:15] Production.INFO: ==27210== Releasing lock... [2025-03-02 19:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:42:16] Production.INFO: count ==1498 [2025-03-02 19:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:42:04 - End Time 2025-03-02 19:42:04 [2025-03-02 19:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593333', 'tblTempUsageDetail_20' ) start [2025-03-02 19:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593333', 'tblTempUsageDetail_20' ) end [2025-03-02 19:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593333', 'tblTempVendorCDR_20' ) start [2025-03-02 19:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593333', 'tblTempVendorCDR_20' ) end [2025-03-02 19:42:16] Production.INFO: ProcessCDR(1,14593333,1,1,2) [2025-03-02 19:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593333', 'tblTempUsageDetail_20' ) start [2025-03-02 19:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593333', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:42:24] Production.INFO: ==27218== Releasing lock... [2025-03-02 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:42:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:43:01] Production.INFO: ==27336== Lock acquired, processing the job... [2025-03-03 00:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:43:01] Production.INFO: neon service started [2025-03-03 00:43:01] Production.INFO: neon service started [2025-03-03 00:43:01] Production.INFO: ==27336== Releasing lock... [2025-03-03 00:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:43:01] Production.INFO: ==27338== Lock acquired, processing the job... [2025-03-02 19:43:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:43:02] Production.INFO: ==27338== Releasing lock... [2025-03-02 19:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:43:02] Production.INFO: ==27340== Lock acquired, processing the job... [2025-03-03 00:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:43:02] Production.INFO: ==27340== Releasing lock... [2025-03-03 00:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:43:03] Production.INFO: ==27343== Lock acquired, processing the job... [2025-03-02 19:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:43:03] Production.INFO: ==27347== Lock acquired, processing the job... [2025-03-02 19:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:43:03] Production.INFO: ==27349== Lock acquired, processing the job... [2025-03-02 19:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:43:03] Production.INFO: ==27345== Lock acquired, processing the job... [2025-03-02 19:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:43:03] Production.INFO: Account Balance Start. [2025-03-02 19:43:03] Production.INFO: CreateAllLog Start [2025-03-02 19:43:03] Production.INFO: 117 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:43:03] Production.INFO: ==27351== Lock acquired, processing the job... [2025-03-02 19:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:43:03] Production.INFO: ==27353== Lock acquired, processing the job... [2025-03-02 19:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: count ==13 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:43:03] Production.INFO: count ==21 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593337') start [2025-03-02 19:43:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.INFO: ==27345== Releasing lock... [2025-03-02 19:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:43:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:43:03] Production.INFO: Date 2025-02-16 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.ERROR: done [2025-03-02 19:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593337') end [2025-03-02 19:43:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:43:03] Production.INFO: 1 [2025-03-02 19:43:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:43:03] Production.INFO: Date 2025-02-17 [2025-03-02 19:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:43:04] Production.INFO: ==27353== Releasing lock... [2025-03-02 19:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.ERROR: done [2025-03-02 19:43:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:43:04 [end_date_ymd] => 2025-03-02 19:43:04 [RateCDR] => 1 ) [2025-03-02 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:43:04' and `end` < '2025-03-02 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:43:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:43:04] Production.INFO: Total Charge 0 [2025-03-02 19:43:04] Production.INFO: CreateAllLog End [2025-03-02 19:43:04] Production.INFO: Account Balance End. [2025-03-02 19:43:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:43:04] Production.INFO: ==27349== Releasing lock... [2025-03-02 19:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:43:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:43:12] Production.ERROR: CronJobId end10 [2025-03-02 19:43:12] Production.INFO: ==27347== Releasing lock... [2025-03-02 19:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:43:14] Production.INFO: call_cost start [2025-03-02 19:43:14] Production.INFO: call_cost end [2025-03-02 19:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:43:14] Production.INFO: ==27343== Releasing lock... [2025-03-02 19:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:43:16] Production.INFO: count ==1495 [2025-03-02 19:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:43:04 - End Time 2025-03-02 19:43:04 [2025-03-02 19:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593338', 'tblTempUsageDetail_20' ) start [2025-03-02 19:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593338', 'tblTempUsageDetail_20' ) end [2025-03-02 19:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593338', 'tblTempVendorCDR_20' ) start [2025-03-02 19:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593338', 'tblTempVendorCDR_20' ) end [2025-03-02 19:43:16] Production.INFO: ProcessCDR(1,14593338,1,1,2) [2025-03-02 19:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593338', 'tblTempUsageDetail_20' ) start [2025-03-02 19:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593338', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:43:24] Production.INFO: ==27351== Releasing lock... [2025-03-02 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:43:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:44:01] Production.INFO: ==27431== Lock acquired, processing the job... [2025-03-03 00:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:44:01] Production.INFO: neon service started [2025-03-03 00:44:01] Production.INFO: neon service started [2025-03-03 00:44:01] Production.INFO: ==27431== Releasing lock... [2025-03-03 00:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:44:02] Production.INFO: ==27433== Lock acquired, processing the job... [2025-03-02 19:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:44:02] Production.INFO: ==27435== Lock acquired, processing the job... [2025-03-03 00:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:44:02] Production.INFO: ==27435== Releasing lock... [2025-03-03 00:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:44:02] Production.INFO: ==27433== Releasing lock... [2025-03-02 19:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:44:03] Production.INFO: ==27446== Lock acquired, processing the job... [2025-03-02 19:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:44:03] Production.INFO: ==27450== Lock acquired, processing the job... [2025-03-02 19:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:44:04] Production.INFO: Account Balance Start. [2025-03-02 19:44:04] Production.INFO: CreateAllLog Start [2025-03-02 19:44:04] Production.INFO: 117 [2025-03-02 19:44:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:44:04] Production.INFO: ==27440== Lock acquired, processing the job... [2025-03-02 19:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:44:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.INFO: count ==13 [2025-03-02 19:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:44:04] Production.INFO: count ==21 [2025-03-02 19:44:04] Production.INFO: ==27444== Lock acquired, processing the job... [2025-03-02 19:44:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:44:04] Production.INFO: ==27442== Lock acquired, processing the job... [2025-03-02 19:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593340') start [2025-03-02 19:44:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.INFO: ==27448== Lock acquired, processing the job... [2025-03-02 19:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:44:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593340') end [2025-03-02 19:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:44:04] Production.INFO: 1 [2025-03-02 19:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:44:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.INFO: ==27450== Releasing lock... [2025-03-02 19:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:44:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.INFO: ==27442== Releasing lock... [2025-03-02 19:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:44:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:04] Production.ERROR: done [2025-03-02 19:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:44:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.ERROR: done [2025-03-02 19:44:05] Production.INFO: Date 2025-02-16 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-17 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:44:05 [end_date_ymd] => 2025-03-02 19:44:05 [RateCDR] => 1 ) [2025-03-02 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:44:05' and `end` < '2025-03-02 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:44:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:44:05] Production.INFO: Total Charge 0 [2025-03-02 19:44:05] Production.INFO: CreateAllLog End [2025-03-02 19:44:05] Production.INFO: Account Balance End. [2025-03-02 19:44:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:44:05] Production.INFO: ==27446== Releasing lock... [2025-03-02 19:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:44:12] Production.ERROR: CronJobId end10 [2025-03-02 19:44:12] Production.INFO: ==27444== Releasing lock... [2025-03-02 19:44:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:44:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:44:14] Production.INFO: call_cost start [2025-03-02 19:44:15] Production.INFO: call_cost end [2025-03-02 19:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:44:15] Production.INFO: ==27440== Releasing lock... [2025-03-02 19:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:44:17] Production.INFO: count ==1498 [2025-03-02 19:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:44:05 - End Time 2025-03-02 19:44:05 [2025-03-02 19:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593343', 'tblTempUsageDetail_20' ) start [2025-03-02 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593343', 'tblTempUsageDetail_20' ) end [2025-03-02 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593343', 'tblTempVendorCDR_20' ) start [2025-03-02 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593343', 'tblTempVendorCDR_20' ) end [2025-03-02 19:44:17] Production.INFO: ProcessCDR(1,14593343,1,1,2) [2025-03-02 19:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593343', 'tblTempUsageDetail_20' ) start [2025-03-02 19:44:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593343', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:44:25] Production.INFO: ==27448== Releasing lock... [2025-03-02 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:44:25] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:45:01] Production.INFO: ==27526== Lock acquired, processing the job... [2025-03-03 00:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:45:01] Production.INFO: neon service started [2025-03-03 00:45:01] Production.INFO: neon service started [2025-03-03 00:45:01] Production.INFO: ==27526== Releasing lock... [2025-03-03 00:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:45:01] Production.INFO: ==27528== Lock acquired, processing the job... [2025-03-02 19:45:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:45:02] Production.INFO: ==27530== Lock acquired, processing the job... [2025-03-03 00:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:45:02] Production.INFO: ==27530== Releasing lock... [2025-03-03 00:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:45:02] Production.INFO: ==27528== Releasing lock... [2025-03-02 19:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:45:03] Production.INFO: ==27533== Lock acquired, processing the job... [2025-03-02 19:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:45:03] Production.INFO: ==27543== Lock acquired, processing the job... [2025-03-02 19:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:45:03] Production.INFO: ==27535== Lock acquired, processing the job... [2025-03-02 19:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:45:03] Production.INFO: ==27537== Lock acquired, processing the job... [2025-03-02 19:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:45:03] Production.INFO: ==27539== Lock acquired, processing the job... [2025-03-02 19:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:45:03] Production.INFO: count ==13 [2025-03-02 19:45:03] Production.INFO: ==27541== Lock acquired, processing the job... [2025-03-02 19:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:45:03] Production.INFO: count ==21 [2025-03-02 19:45:03] Production.INFO: Account Balance Start. [2025-03-02 19:45:03] Production.INFO: CreateAllLog Start [2025-03-02 19:45:03] Production.INFO: 117 [2025-03-02 19:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593345') start [2025-03-02 19:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:45:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593345') end [2025-03-02 19:45:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:45:03] Production.INFO: 1 [2025-03-02 19:45:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:45:03] Production.INFO: ==27535== Releasing lock... [2025-03-02 19:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:45:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:03] Production.INFO: ==27543== Releasing lock... [2025-03-02 19:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:45:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:45:04] Production.ERROR: done [2025-03-02 19:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.ERROR: done [2025-03-02 19:45:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:45:04 [end_date_ymd] => 2025-03-02 19:45:04 [RateCDR] => 1 ) [2025-03-02 19:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:45:04' and `end` < '2025-03-02 19:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:45:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:45:04] Production.INFO: Total Charge 0 [2025-03-02 19:45:04] Production.INFO: CreateAllLog End [2025-03-02 19:45:04] Production.INFO: Account Balance End. [2025-03-02 19:45:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:45:04] Production.INFO: ==27539== Releasing lock... [2025-03-02 19:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:45:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:45:12] Production.ERROR: CronJobId end10 [2025-03-02 19:45:12] Production.INFO: ==27537== Releasing lock... [2025-03-02 19:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:45:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:45:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:45:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:45:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:45:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:45:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:45:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:45:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:45:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:45:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:45:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:45:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:45:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:45:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:45:14] Production.INFO: call_cost start [2025-03-02 19:45:14] Production.INFO: call_cost end [2025-03-02 19:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:45:14] Production.INFO: ==27533== Releasing lock... [2025-03-02 19:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:45:16] Production.INFO: count ==1496 [2025-03-02 19:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:45:04 - End Time 2025-03-02 19:45:04 [2025-03-02 19:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593348', 'tblTempUsageDetail_20' ) start [2025-03-02 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593348', 'tblTempUsageDetail_20' ) end [2025-03-02 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593348', 'tblTempVendorCDR_20' ) start [2025-03-02 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593348', 'tblTempVendorCDR_20' ) end [2025-03-02 19:45:16] Production.INFO: ProcessCDR(1,14593348,1,1,2) [2025-03-02 19:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593348', 'tblTempUsageDetail_20' ) start [2025-03-02 19:45:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593348', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:45:24] Production.INFO: ==27541== Releasing lock... [2025-03-02 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:45:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:46:01] Production.INFO: ==27614== Lock acquired, processing the job... [2025-03-03 00:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:46:01] Production.INFO: neon service started [2025-03-03 00:46:01] Production.INFO: neon service started [2025-03-03 00:46:01] Production.INFO: ==27614== Releasing lock... [2025-03-03 00:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:46:02] Production.INFO: ==27618== Lock acquired, processing the job... [2025-03-03 00:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:46:02] Production.INFO: ==27618== Releasing lock... [2025-03-03 00:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:46:02] Production.INFO: ==27616== Lock acquired, processing the job... [2025-03-02 19:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:46:02] Production.INFO: ==27616== Releasing lock... [2025-03-02 19:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:46:03] Production.INFO: ==27625== Lock acquired, processing the job... [2025-03-02 19:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:46:03] Production.INFO: ==27631== Lock acquired, processing the job... [2025-03-02 19:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:46:03] Production.INFO: ==27621== Lock acquired, processing the job... [2025-03-02 19:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:46:04] Production.INFO: ==27623== Lock acquired, processing the job... [2025-03-02 19:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:46:04] Production.INFO: ==27627== Lock acquired, processing the job... [2025-03-02 19:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:46:04] Production.INFO: ==27629== Lock acquired, processing the job... [2025-03-02 19:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:46:04] Production.INFO: count ==13 [2025-03-02 19:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:46:04] Production.INFO: count ==21 [2025-03-02 19:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593349') start [2025-03-02 19:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593349') end [2025-03-02 19:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:46:04] Production.INFO: 1 [2025-03-02 19:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:46:04] Production.INFO: Account Balance Start. [2025-03-02 19:46:04] Production.INFO: CreateAllLog Start [2025-03-02 19:46:04] Production.INFO: 117 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: ==27631== Releasing lock... [2025-03-02 19:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:46:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: ==27623== Releasing lock... [2025-03-02 19:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:46:04] Production.ERROR: done [2025-03-02 19:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.ERROR: done [2025-03-02 19:46:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:46:04 [end_date_ymd] => 2025-03-02 19:46:04 [RateCDR] => 1 ) [2025-03-02 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:46:04' and `end` < '2025-03-02 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-03-02 19:46:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:46:05] Production.INFO: Total Charge 0 [2025-03-02 19:46:05] Production.INFO: CreateAllLog End [2025-03-02 19:46:05] Production.INFO: Account Balance End. [2025-03-02 19:46:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:46:05] Production.INFO: ==27627== Releasing lock... [2025-03-02 19:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:46:12] Production.ERROR: CronJobId end10 [2025-03-02 19:46:12] Production.INFO: ==27625== Releasing lock... [2025-03-02 19:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:46:15] Production.INFO: call_cost start [2025-03-02 19:46:15] Production.INFO: call_cost end [2025-03-02 19:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:46:15] Production.INFO: ==27621== Releasing lock... [2025-03-02 19:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:46:17] Production.INFO: count ==1492 [2025-03-02 19:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:46:04 - End Time 2025-03-02 19:46:04 [2025-03-02 19:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593353', 'tblTempUsageDetail_20' ) start [2025-03-02 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593353', 'tblTempUsageDetail_20' ) end [2025-03-02 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593353', 'tblTempVendorCDR_20' ) start [2025-03-02 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593353', 'tblTempVendorCDR_20' ) end [2025-03-02 19:46:17] Production.INFO: ProcessCDR(1,14593353,1,1,2) [2025-03-02 19:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593353', 'tblTempUsageDetail_20' ) start [2025-03-02 19:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593353', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:46:24] Production.INFO: ==27629== Releasing lock... [2025-03-02 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:46:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:47:02] Production.INFO: ==27712== Lock acquired, processing the job... [2025-03-03 00:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:47:02] Production.INFO: neon service started [2025-03-03 00:47:02] Production.INFO: neon service started [2025-03-03 00:47:02] Production.INFO: ==27712== Releasing lock... [2025-03-03 00:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:47:03] Production.INFO: ==27714== Lock acquired, processing the job... [2025-03-02 19:47:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:47:03] Production.INFO: ==27716== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:47:03] Production.INFO: ==27716== Releasing lock... [2025-03-03 00:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:47:03] Production.INFO: ==27714== Releasing lock... [2025-03-02 19:47:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:47:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:47:04] Production.INFO: ==27719== Lock acquired, processing the job... [2025-03-02 19:47:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:47:04] Production.INFO: ==27721== Lock acquired, processing the job... [2025-03-02 19:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:47:04] Production.INFO: ==27727== Lock acquired, processing the job... [2025-03-02 19:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:47:04] Production.INFO: ==27723== Lock acquired, processing the job... [2025-03-02 19:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:47:04] Production.INFO: ==27725== Lock acquired, processing the job... [2025-03-02 19:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:47:04] Production.INFO: ==27729== Lock acquired, processing the job... [2025-03-02 19:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:47:04] Production.INFO: ==27721== Releasing lock... [2025-03-02 19:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:47:04] Production.INFO: Account Balance Start. [2025-03-02 19:47:04] Production.INFO: CreateAllLog Start [2025-03-02 19:47:04] Production.INFO: 117 [2025-03-02 19:47:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:47:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:47:04] Production.INFO: count ==13 [2025-03-02 19:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:47:04] Production.INFO: count ==21 [2025-03-02 19:47:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593357') start [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.ERROR: done [2025-03-02 19:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:47:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593357') end [2025-03-02 19:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:47:04] Production.INFO: 1 [2025-03-02 19:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:47:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:04] Production.INFO: ==27729== Releasing lock... [2025-03-02 19:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:47:05] Production.INFO: Date 2025-02-16 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.ERROR: done [2025-03-02 19:47:05] Production.INFO: Date 2025-02-17 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:47:05 [end_date_ymd] => 2025-03-02 19:47:05 [RateCDR] => 1 ) [2025-03-02 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:47:05' and `end` < '2025-03-02 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:47:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:47:05] Production.INFO: Total Charge 0 [2025-03-02 19:47:05] Production.INFO: CreateAllLog End [2025-03-02 19:47:05] Production.INFO: Account Balance End. [2025-03-02 19:47:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:47:05] Production.INFO: ==27725== Releasing lock... [2025-03-02 19:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:47:12] Production.ERROR: CronJobId end10 [2025-03-02 19:47:12] Production.INFO: ==27723== Releasing lock... [2025-03-02 19:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:47:15] Production.INFO: call_cost start [2025-03-02 19:47:15] Production.INFO: call_cost end [2025-03-02 19:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:47:15] Production.INFO: ==27719== Releasing lock... [2025-03-02 19:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:47:17] Production.INFO: count ==1484 [2025-03-02 19:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:47:05 - End Time 2025-03-02 19:47:05 [2025-03-02 19:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593358', 'tblTempUsageDetail_20' ) start [2025-03-02 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593358', 'tblTempUsageDetail_20' ) end [2025-03-02 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593358', 'tblTempVendorCDR_20' ) start [2025-03-02 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593358', 'tblTempVendorCDR_20' ) end [2025-03-02 19:47:17] Production.INFO: ProcessCDR(1,14593358,1,1,2) [2025-03-02 19:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593358', 'tblTempUsageDetail_20' ) start [2025-03-02 19:47:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593358', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:47:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:47:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:47:25] Production.INFO: ==27727== Releasing lock... [2025-03-02 19:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:47:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:48:01] Production.INFO: ==27840== Lock acquired, processing the job... [2025-03-03 00:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:48:01] Production.INFO: neon service started [2025-03-03 00:48:01] Production.INFO: neon service started [2025-03-03 00:48:01] Production.INFO: ==27840== Releasing lock... [2025-03-03 00:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:48:02] Production.INFO: ==27844== Lock acquired, processing the job... [2025-03-03 00:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:48:02] Production.INFO: ==27844== Releasing lock... [2025-03-03 00:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:48:02] Production.INFO: ==27842== Lock acquired, processing the job... [2025-03-02 19:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:48:02] Production.INFO: ==27842== Releasing lock... [2025-03-02 19:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:48:03] Production.INFO: ==27847== Lock acquired, processing the job... [2025-03-02 19:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:48:03] Production.INFO: ==27849== Lock acquired, processing the job... [2025-03-02 19:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:48:03] Production.INFO: ==27853== Lock acquired, processing the job... [2025-03-02 19:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:48:03] Production.INFO: Account Balance Start. [2025-03-02 19:48:03] Production.INFO: CreateAllLog Start [2025-03-02 19:48:03] Production.INFO: 117 [2025-03-02 19:48:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:48:03] Production.INFO: ==27855== Lock acquired, processing the job... [2025-03-02 19:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:48:04] Production.INFO: ==27851== Lock acquired, processing the job... [2025-03-02 19:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:48:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: ==27857== Lock acquired, processing the job... [2025-03-02 19:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:48:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: ==27849== Releasing lock... [2025-03-02 19:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:48:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: count ==13 [2025-03-02 19:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:48:04] Production.INFO: count ==21 [2025-03-02 19:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593362') start [2025-03-02 19:48:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.ERROR: done [2025-03-02 19:48:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593362') end [2025-03-02 19:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:48:04] Production.INFO: 1 [2025-03-02 19:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:48:04] Production.INFO: ==27857== Releasing lock... [2025-03-02 19:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:48:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.ERROR: done [2025-03-02 19:48:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:48:04 [end_date_ymd] => 2025-03-02 19:48:04 [RateCDR] => 1 ) [2025-03-02 19:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:48:04' and `end` < '2025-03-02 19:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:48:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:48:05] Production.INFO: Total Charge 0 [2025-03-02 19:48:05] Production.INFO: CreateAllLog End [2025-03-02 19:48:05] Production.INFO: Account Balance End. [2025-03-02 19:48:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:48:05] Production.INFO: ==27853== Releasing lock... [2025-03-02 19:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:48:13] Production.ERROR: CronJobId end10 [2025-03-02 19:48:13] Production.INFO: ==27851== Releasing lock... [2025-03-02 19:48:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:48:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:48:14] Production.INFO: call_cost start [2025-03-02 19:48:14] Production.INFO: call_cost end [2025-03-02 19:48:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:48:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:48:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:48:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:48:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:48:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:48:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:48:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:48:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:48:14] Production.INFO: ==27847== Releasing lock... [2025-03-02 19:48:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:48:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:48:16] Production.INFO: count ==1480 [2025-03-02 19:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:48:04 - End Time 2025-03-02 19:48:04 [2025-03-02 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593363', 'tblTempUsageDetail_20' ) start [2025-03-02 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593363', 'tblTempUsageDetail_20' ) end [2025-03-02 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593363', 'tblTempVendorCDR_20' ) start [2025-03-02 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593363', 'tblTempVendorCDR_20' ) end [2025-03-02 19:48:17] Production.INFO: ProcessCDR(1,14593363,1,1,2) [2025-03-02 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593363', 'tblTempUsageDetail_20' ) start [2025-03-02 19:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593363', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:48:24] Production.INFO: ==27855== Releasing lock... [2025-03-02 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:48:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:49:01] Production.INFO: ==27944== Lock acquired, processing the job... [2025-03-03 00:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:49:01] Production.INFO: neon service started [2025-03-03 00:49:01] Production.INFO: neon service started [2025-03-03 00:49:01] Production.INFO: ==27944== Releasing lock... [2025-03-03 00:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:49:01] Production.INFO: ==27946== Lock acquired, processing the job... [2025-03-02 19:49:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:49:02] Production.INFO: ==27946== Releasing lock... [2025-03-02 19:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:49:02] Production.INFO: ==27948== Lock acquired, processing the job... [2025-03-03 00:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:49:02] Production.INFO: ==27948== Releasing lock... [2025-03-03 00:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:49:02] Production.INFO: ==27950== Lock acquired, processing the job... [2025-03-02 19:49:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:49:03] Production.INFO: ==27960== Lock acquired, processing the job... [2025-03-02 19:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:49:03] Production.INFO: ==27952== Lock acquired, processing the job... [2025-03-02 19:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:49:03] Production.INFO: count ==13 [2025-03-02 19:49:03] Production.INFO: ==27954== Lock acquired, processing the job... [2025-03-02 19:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:49:03] Production.INFO: count ==21 [2025-03-02 19:49:03] Production.INFO: ==27956== Lock acquired, processing the job... [2025-03-02 19:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593365') start [2025-03-02 19:49:03] Production.INFO: ==27958== Lock acquired, processing the job... [2025-03-02 19:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:49:03] Production.INFO: Account Balance Start. [2025-03-02 19:49:03] Production.INFO: CreateAllLog Start [2025-03-02 19:49:03] Production.INFO: 117 [2025-03-02 19:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:49:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593365') end [2025-03-02 19:49:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:49:03] Production.INFO: 1 [2025-03-02 19:49:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:49:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.INFO: ==27960== Releasing lock... [2025-03-02 19:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:49:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:49:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.INFO: ==27952== Releasing lock... [2025-03-02 19:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:49:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:49:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.ERROR: done [2025-03-02 19:49:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:49:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.ERROR: done [2025-03-02 19:49:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:49:04 [end_date_ymd] => 2025-03-02 19:49:04 [RateCDR] => 1 ) [2025-03-02 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:49:04' and `end` < '2025-03-02 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:49:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:49:04] Production.INFO: Total Charge 0 [2025-03-02 19:49:04] Production.INFO: CreateAllLog End [2025-03-02 19:49:04] Production.INFO: Account Balance End. [2025-03-02 19:49:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:49:04] Production.INFO: ==27956== Releasing lock... [2025-03-02 19:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:49:12] Production.ERROR: CronJobId end10 [2025-03-02 19:49:12] Production.INFO: ==27954== Releasing lock... [2025-03-02 19:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:49:14] Production.INFO: call_cost start [2025-03-02 19:49:14] Production.INFO: call_cost end [2025-03-02 19:49:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:49:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:49:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:49:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:49:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:49:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:49:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:49:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:49:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:49:14] Production.INFO: ==27950== Releasing lock... [2025-03-02 19:49:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:49:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:49:16] Production.INFO: count ==1478 [2025-03-02 19:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:49:04 - End Time 2025-03-02 19:49:04 [2025-03-02 19:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593368', 'tblTempUsageDetail_20' ) start [2025-03-02 19:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593368', 'tblTempUsageDetail_20' ) end [2025-03-02 19:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593368', 'tblTempVendorCDR_20' ) start [2025-03-02 19:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593368', 'tblTempVendorCDR_20' ) end [2025-03-02 19:49:16] Production.INFO: ProcessCDR(1,14593368,1,1,2) [2025-03-02 19:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593368', 'tblTempUsageDetail_20' ) start [2025-03-02 19:49:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593368', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:49:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:49:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:49:24] Production.INFO: ==27958== Releasing lock... [2025-03-02 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:49:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:50:01] Production.INFO: ==28030== Lock acquired, processing the job... [2025-03-03 00:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:50:01] Production.INFO: neon service started [2025-03-03 00:50:01] Production.INFO: neon service started [2025-03-03 00:50:01] Production.INFO: ==28030== Releasing lock... [2025-03-03 00:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:50:02] Production.INFO: ==28033== Lock acquired, processing the job... [2025-03-02 19:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:50:02] Production.INFO: ==28033== Releasing lock... [2025-03-02 19:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:50:02] Production.INFO: ==28035== Lock acquired, processing the job... [2025-03-03 00:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:50:02] Production.INFO: ==28035== Releasing lock... [2025-03-03 00:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:50:03] Production.INFO: ==28040== Lock acquired, processing the job... [2025-03-02 19:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:50:03] Production.INFO: ==28048== Lock acquired, processing the job... [2025-03-02 19:50:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:50:03] Production.INFO: ==28038== Lock acquired, processing the job... [2025-03-02 19:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 19:50:03] Production.INFO: ==28044== Lock acquired, processing the job... [2025-03-02 19:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:50:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 19:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 19:50:04] Production.ERROR: CronJob PID - 28040 [2025-03-02 19:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 19:50:04] Production.ERROR: CronJob ID - 5 [2025-03-02 19:50:04] Production.ERROR: CronJob Last Run Time 2025-03-02 19:50:00 [2025-03-02 19:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 19:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 19:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 19:50:04] Production.ERROR: CronJob PID - 28048 [2025-03-02 19:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-02 19:50:04] Production.ERROR: CronJob ID - 16 [2025-03-02 19:50:04] Production.ERROR: CronJob Last Run Time 2025-03-02 19:50:00 [2025-03-02 19:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 19:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 19:50:04] Production.INFO: ==28042== Lock acquired, processing the job... [2025-03-02 19:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:50:04] Production.INFO: ==28052== Lock acquired, processing the job... [2025-03-02 19:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 19:50:04] Production.INFO: ==28038== Releasing lock... [2025-03-02 19:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 19:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 19:50:04] Production.INFO: ==28046== Lock acquired, processing the job... [2025-03-02 19:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:50:04] Production.INFO: ==28050== Lock acquired, processing the job... [2025-03-02 19:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 19:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:50:04] Production.INFO: Account Balance Start. [2025-03-02 19:50:04] Production.INFO: CreateAllLog Start [2025-03-02 19:50:04] Production.INFO: 117 [2025-03-02 19:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:50:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: count ==13 [2025-03-02 19:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:50:04] Production.INFO: count ==21 [2025-03-02 19:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593370') start [2025-03-02 19:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:50:04] Production.ERROR: done [2025-03-02 19:50:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593370') end [2025-03-02 19:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:50:04] Production.INFO: 1 [2025-03-02 19:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:50:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: ==28052== Releasing lock... [2025-03-02 19:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:50:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:50:04] Production.ERROR: done [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: ==28042== Releasing lock... [2025-03-02 19:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:50:04 [end_date_ymd] => 2025-03-02 19:50:04 [RateCDR] => 1 ) [2025-03-02 19:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:50:04' and `end` < '2025-03-02 19:50:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:50:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.ERROR: done [2025-03-02 19:50:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 19:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593374', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 19:50:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:50:05] Production.INFO: Total Charge 0 [2025-03-02 19:50:05] Production.INFO: CreateAllLog End [2025-03-02 19:50:05] Production.INFO: Account Balance End. [2025-03-02 19:50:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:50:05] Production.INFO: ==28046== Releasing lock... [2025-03-02 19:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593374', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 19:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 19:50:09] Production.INFO: ProcessCDR(1,14593374,1,1,2) [2025-03-02 19:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593374,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593374,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 19:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 19:50:09] Production.INFO: ==28050== Releasing lock... [2025-03-02 19:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 19:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:50:15] Production.ERROR: CronJobId end10 [2025-03-02 19:50:15] Production.INFO: ==28044== Releasing lock... [2025-03-02 19:50:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:50:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:50:17] Production.INFO: count ==1486 [2025-03-02 19:50:17] Production.INFO: call_cost start [2025-03-02 19:50:17] Production.INFO: call_cost end [2025-03-02 19:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:50:17] Production.INFO: ==28040== Releasing lock... [2025-03-02 19:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:50:04 - End Time 2025-03-02 19:50:04 [2025-03-02 19:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593373', 'tblTempUsageDetail_20' ) start [2025-03-02 19:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593373', 'tblTempUsageDetail_20' ) end [2025-03-02 19:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593373', 'tblTempVendorCDR_20' ) start [2025-03-02 19:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593373', 'tblTempVendorCDR_20' ) end [2025-03-02 19:50:17] Production.INFO: ProcessCDR(1,14593373,1,1,2) [2025-03-02 19:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593373', 'tblTempUsageDetail_20' ) start [2025-03-02 19:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593373', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:50:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:50:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:50:24] Production.INFO: ==28048== Releasing lock... [2025-03-02 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:51:02] Production.INFO: ==28126== Lock acquired, processing the job... [2025-03-03 00:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:51:02] Production.INFO: neon service started [2025-03-03 00:51:02] Production.INFO: neon service started [2025-03-03 00:51:02] Production.INFO: ==28126== Releasing lock... [2025-03-03 00:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:51:02] Production.INFO: ==28128== Lock acquired, processing the job... [2025-03-02 19:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:51:02] Production.INFO: ==28128== Releasing lock... [2025-03-02 19:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:51:03] Production.INFO: ==28130== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:51:03] Production.INFO: ==28130== Releasing lock... [2025-03-03 00:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:51:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:51:03] Production.INFO: ==28139== Lock acquired, processing the job... [2025-03-02 19:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:51:03] Production.INFO: ==28141== Lock acquired, processing the job... [2025-03-02 19:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:51:04] Production.INFO: ==28133== Lock acquired, processing the job... [2025-03-02 19:51:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:51:04] Production.INFO: ==28135== Lock acquired, processing the job... [2025-03-02 19:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:51:04] Production.INFO: ==28137== Lock acquired, processing the job... [2025-03-02 19:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:51:04] Production.INFO: ==28143== Lock acquired, processing the job... [2025-03-02 19:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:51:04] Production.INFO: Account Balance Start. [2025-03-02 19:51:04] Production.INFO: CreateAllLog Start [2025-03-02 19:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:51:04] Production.INFO: 117 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:51:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: count ==13 [2025-03-02 19:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:51:04] Production.INFO: count ==21 [2025-03-02 19:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593378') start [2025-03-02 19:51:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593378') end [2025-03-02 19:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:51:04] Production.INFO: 1 [2025-03-02 19:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:51:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: ==28143== Releasing lock... [2025-03-02 19:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:51:04] Production.INFO: ==28135== Releasing lock... [2025-03-02 19:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:51:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.ERROR: done [2025-03-02 19:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.ERROR: done [2025-03-02 19:51:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:51:04 [end_date_ymd] => 2025-03-02 19:51:04 [RateCDR] => 1 ) [2025-03-02 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:51:04' and `end` < '2025-03-02 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:51:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:51:05] Production.INFO: Total Charge 0 [2025-03-02 19:51:05] Production.INFO: CreateAllLog End [2025-03-02 19:51:05] Production.INFO: Account Balance End. [2025-03-02 19:51:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:51:05] Production.INFO: ==28139== Releasing lock... [2025-03-02 19:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:51:12] Production.ERROR: CronJobId end10 [2025-03-02 19:51:12] Production.INFO: ==28137== Releasing lock... [2025-03-02 19:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:51:14] Production.INFO: call_cost start [2025-03-02 19:51:14] Production.INFO: call_cost end [2025-03-02 19:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:51:14] Production.INFO: ==28133== Releasing lock... [2025-03-02 19:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:51:17] Production.INFO: count ==1479 [2025-03-02 19:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:51:04 - End Time 2025-03-02 19:51:04 [2025-03-02 19:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593379', 'tblTempUsageDetail_20' ) start [2025-03-02 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593379', 'tblTempUsageDetail_20' ) end [2025-03-02 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593379', 'tblTempVendorCDR_20' ) start [2025-03-02 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593379', 'tblTempVendorCDR_20' ) end [2025-03-02 19:51:17] Production.INFO: ProcessCDR(1,14593379,1,1,2) [2025-03-02 19:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593379', 'tblTempUsageDetail_20' ) start [2025-03-02 19:51:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593379', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:51:24] Production.INFO: ==28141== Releasing lock... [2025-03-02 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:51:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:52:01] Production.INFO: ==28205== Lock acquired, processing the job... [2025-03-03 00:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:52:01] Production.INFO: neon service started [2025-03-03 00:52:01] Production.INFO: neon service started [2025-03-03 00:52:01] Production.INFO: ==28205== Releasing lock... [2025-03-03 00:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:52:02] Production.INFO: ==28209== Lock acquired, processing the job... [2025-03-03 00:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 19:52:02] Production.INFO: ==28207== Lock acquired, processing the job... [2025-03-02 19:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:52:02] Production.INFO: ==28209== Releasing lock... [2025-03-03 00:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:52:02] Production.INFO: ==28207== Releasing lock... [2025-03-02 19:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:52:03] Production.INFO: ==28212== Lock acquired, processing the job... [2025-03-02 19:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:52:03] Production.INFO: ==28214== Lock acquired, processing the job... [2025-03-02 19:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:52:03] Production.INFO: ==28216== Lock acquired, processing the job... [2025-03-02 19:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:52:03] Production.INFO: ==28218== Lock acquired, processing the job... [2025-03-02 19:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:52:03] Production.INFO: ==28220== Lock acquired, processing the job... [2025-03-02 19:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:52:03] Production.INFO: Account Balance Start. [2025-03-02 19:52:03] Production.INFO: CreateAllLog Start [2025-03-02 19:52:03] Production.INFO: 117 [2025-03-02 19:52:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:52:03] Production.INFO: ==28222== Lock acquired, processing the job... [2025-03-02 19:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: ==28214== Releasing lock... [2025-03-02 19:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:52:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:52:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: count ==13 [2025-03-02 19:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:52:04] Production.INFO: count ==21 [2025-03-02 19:52:04] Production.ERROR: done [2025-03-02 19:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593383') start [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.ERROR: done [2025-03-02 19:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593383') end [2025-03-02 19:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:52:04] Production.INFO: 1 [2025-03-02 19:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:52:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: ==28222== Releasing lock... [2025-03-02 19:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:52:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:52:04 [end_date_ymd] => 2025-03-02 19:52:04 [RateCDR] => 1 ) [2025-03-02 19:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:52:04' and `end` < '2025-03-02 19: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-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:52:05] Production.INFO: Total Charge 0 [2025-03-02 19:52:05] Production.INFO: CreateAllLog End [2025-03-02 19:52:05] Production.INFO: Account Balance End. [2025-03-02 19:52:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:52:05] Production.INFO: ==28218== Releasing lock... [2025-03-02 19:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:52:11] Production.ERROR: CronJobId end10 [2025-03-02 19:52:11] Production.INFO: ==28216== Releasing lock... [2025-03-02 19:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:52:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:52:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:52:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:52:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:52:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:52:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:52:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:52:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:52:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:52:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:52:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:52:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:52:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:52:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:52:14] Production.INFO: call_cost start [2025-03-02 19:52:14] Production.INFO: call_cost end [2025-03-02 19:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:52:14] Production.INFO: ==28212== Releasing lock... [2025-03-02 19:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:52:16] Production.INFO: count ==1474 [2025-03-02 19:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:52:04 - End Time 2025-03-02 19:52:04 [2025-03-02 19:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593384', 'tblTempUsageDetail_20' ) start [2025-03-02 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593384', 'tblTempUsageDetail_20' ) end [2025-03-02 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593384', 'tblTempVendorCDR_20' ) start [2025-03-02 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593384', 'tblTempVendorCDR_20' ) end [2025-03-02 19:52:17] Production.INFO: ProcessCDR(1,14593384,1,1,2) [2025-03-02 19:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593384', 'tblTempUsageDetail_20' ) start [2025-03-02 19:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593384', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:52:24] Production.INFO: ==28220== Releasing lock... [2025-03-02 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:52:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:53:02] Production.INFO: ==28303== Lock acquired, processing the job... [2025-03-03 00:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:53:02] Production.INFO: neon service started [2025-03-03 00:53:02] Production.INFO: neon service started [2025-03-03 00:53:02] Production.INFO: ==28303== Releasing lock... [2025-03-03 00:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:53:02] Production.INFO: ==28307== Lock acquired, processing the job... [2025-03-03 00:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:53:02] Production.INFO: ==28307== Releasing lock... [2025-03-03 00:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:53:02] Production.INFO: ==28305== Lock acquired, processing the job... [2025-03-02 19:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:53:02] Production.INFO: ==28305== Releasing lock... [2025-03-02 19:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:53:03] Production.INFO: ==28310== Lock acquired, processing the job... [2025-03-02 19:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:53:03] Production.INFO: ==28312== Lock acquired, processing the job... [2025-03-02 19:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:53:03] Production.INFO: ==28314== Lock acquired, processing the job... [2025-03-02 19:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:53:04] Production.INFO: ==28318== Lock acquired, processing the job... [2025-03-02 19:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:53:04] Production.INFO: ==28316== Lock acquired, processing the job... [2025-03-02 19:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:53:04] Production.INFO: ==28312== Releasing lock... [2025-03-02 19:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:53:04] Production.INFO: Account Balance Start. [2025-03-02 19:53:04] Production.INFO: CreateAllLog Start [2025-03-02 19:53:04] Production.INFO: 117 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:53:04] Production.INFO: ==28320== Lock acquired, processing the job... [2025-03-02 19:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:53:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: count ==13 [2025-03-02 19:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:53:04] Production.INFO: count ==21 [2025-03-02 19:53:04] Production.ERROR: done [2025-03-02 19:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593388') start [2025-03-02 19:53:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.ERROR: done [2025-03-02 19:53:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593388') end [2025-03-02 19:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:53:04] Production.INFO: 1 [2025-03-02 19:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:53:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:53:04 [end_date_ymd] => 2025-03-02 19:53:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:53:04' and `end` < '2025-03-02 19: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-03-02 19:53:04] Production.INFO: ==28320== Releasing lock... [2025-03-02 19:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:53:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:53:05] Production.INFO: Total Charge 0 [2025-03-02 19:53:05] Production.INFO: CreateAllLog End [2025-03-02 19:53:05] Production.INFO: Account Balance End. [2025-03-02 19:53:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:53:05] Production.INFO: ==28316== Releasing lock... [2025-03-02 19:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:53:12] Production.ERROR: CronJobId end10 [2025-03-02 19:53:12] Production.INFO: ==28314== Releasing lock... [2025-03-02 19:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:53:15] Production.INFO: call_cost start [2025-03-02 19:53:15] Production.INFO: call_cost end [2025-03-02 19:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:53:15] Production.INFO: ==28310== Releasing lock... [2025-03-02 19:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:53:16] Production.INFO: count ==1475 [2025-03-02 19:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:53:04 - End Time 2025-03-02 19:53:04 [2025-03-02 19:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593389', 'tblTempUsageDetail_20' ) start [2025-03-02 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593389', 'tblTempUsageDetail_20' ) end [2025-03-02 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593389', 'tblTempVendorCDR_20' ) start [2025-03-02 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593389', 'tblTempVendorCDR_20' ) end [2025-03-02 19:53:17] Production.INFO: ProcessCDR(1,14593389,1,1,2) [2025-03-02 19:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593389', 'tblTempUsageDetail_20' ) start [2025-03-02 19:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593389', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:53:24] Production.INFO: ==28318== Releasing lock... [2025-03-02 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:53:24] Production.INFO: 40 MB #Memory Used# [2025-03-03 00:54:01] Production.INFO: ==28399== Lock acquired, processing the job... [2025-03-03 00:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:54:01] Production.INFO: neon service started [2025-03-03 00:54:01] Production.INFO: neon service started [2025-03-03 00:54:01] Production.INFO: ==28399== Releasing lock... [2025-03-03 00:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:54:01] Production.INFO: ==28401== Lock acquired, processing the job... [2025-03-02 19:54:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:54:02] Production.INFO: ==28401== Releasing lock... [2025-03-02 19:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:54:02] Production.INFO: ==28403== Lock acquired, processing the job... [2025-03-03 00:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:54:02] Production.INFO: ==28403== Releasing lock... [2025-03-03 00:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:54:03] Production.INFO: ==28406== Lock acquired, processing the job... [2025-03-02 19:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:54:03] Production.INFO: ==28408== Lock acquired, processing the job... [2025-03-02 19:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:54:03] Production.INFO: ==28410== Lock acquired, processing the job... [2025-03-02 19:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:54:03] Production.INFO: ==28416== Lock acquired, processing the job... [2025-03-02 19:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:54:03] Production.INFO: ==28412== Lock acquired, processing the job... [2025-03-02 19:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:54:03] Production.INFO: ==28414== Lock acquired, processing the job... [2025-03-02 19:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:54:03] Production.INFO: Account Balance Start. [2025-03-02 19:54:03] Production.INFO: CreateAllLog Start [2025-03-02 19:54:03] Production.INFO: 117 [2025-03-02 19:54:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:54:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.INFO: count ==13 [2025-03-02 19:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:54:03] Production.INFO: count ==21 [2025-03-02 19:54:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593393') start [2025-03-02 19:54:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.INFO: ==28408== Releasing lock... [2025-03-02 19:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:54:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:54:03] Production.INFO: Date 2025-02-12 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593393') end [2025-03-02 19:54:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:54:03] Production.INFO: 1 [2025-03-02 19:54:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:54:03] Production.INFO: Date 2025-02-13 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.INFO: Date 2025-02-14 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.INFO: Date 2025-02-15 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.INFO: ==28416== Releasing lock... [2025-03-02 19:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:54:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:54:03] Production.INFO: Date 2025-02-16 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:03] Production.ERROR: done [2025-03-02 19:54:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:54:03] Production.INFO: Date 2025-02-17 [2025-03-02 19:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.ERROR: done [2025-03-02 19:54:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:54:04 [end_date_ymd] => 2025-03-02 19:54:04 [RateCDR] => 1 ) [2025-03-02 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:54:04' and `end` < '2025-03-02 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:54:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:54:04] Production.INFO: Total Charge 0 [2025-03-02 19:54:04] Production.INFO: CreateAllLog End [2025-03-02 19:54:04] Production.INFO: Account Balance End. [2025-03-02 19:54:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:54:04] Production.INFO: ==28412== Releasing lock... [2025-03-02 19:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:54:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:54:13] Production.ERROR: CronJobId end10 [2025-03-02 19:54:13] Production.INFO: ==28410== Releasing lock... [2025-03-02 19:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:54:14] Production.INFO: call_cost start [2025-03-02 19:54:14] Production.INFO: call_cost end [2025-03-02 19:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:54:14] Production.INFO: ==28406== Releasing lock... [2025-03-02 19:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:54:16] Production.INFO: count ==1476 [2025-03-02 19:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:54:04 - End Time 2025-03-02 19:54:04 [2025-03-02 19:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593394', 'tblTempUsageDetail_20' ) start [2025-03-02 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593394', 'tblTempUsageDetail_20' ) end [2025-03-02 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593394', 'tblTempVendorCDR_20' ) start [2025-03-02 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593394', 'tblTempVendorCDR_20' ) end [2025-03-02 19:54:16] Production.INFO: ProcessCDR(1,14593394,1,1,2) [2025-03-02 19:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593394', 'tblTempUsageDetail_20' ) start [2025-03-02 19:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593394', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:54:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:54:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:54:23] Production.INFO: ==28414== Releasing lock... [2025-03-02 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:54:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:55:02] Production.INFO: ==28484== Lock acquired, processing the job... [2025-03-03 00:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:55:02] Production.INFO: neon service started [2025-03-03 00:55:02] Production.INFO: neon service started [2025-03-03 00:55:02] Production.INFO: ==28484== Releasing lock... [2025-03-03 00:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:55:02] Production.INFO: ==28486== Lock acquired, processing the job... [2025-03-02 19:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:55:02] Production.INFO: ==28486== Releasing lock... [2025-03-02 19:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:55:02] Production.INFO: ==28488== Lock acquired, processing the job... [2025-03-03 00:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:55:02] Production.INFO: ==28488== Releasing lock... [2025-03-03 00:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:55:03] Production.INFO: ==28494== Lock acquired, processing the job... [2025-03-02 19:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:55:03] Production.INFO: ==28500== Lock acquired, processing the job... [2025-03-02 19:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:55:03] Production.INFO: ==28490== Lock acquired, processing the job... [2025-03-02 19:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:55:03] Production.INFO: ==28492== Lock acquired, processing the job... [2025-03-02 19:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:55:03] Production.INFO: count ==13 [2025-03-02 19:55:03] Production.INFO: ==28498== Lock acquired, processing the job... [2025-03-02 19:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:55:03] Production.INFO: count ==21 [2025-03-02 19:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593395') start [2025-03-02 19:55:03] Production.INFO: ==28496== Lock acquired, processing the job... [2025-03-02 19:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593395') end [2025-03-02 19:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:55:04] Production.INFO: 1 [2025-03-02 19:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:55:04] Production.INFO: ==28500== Releasing lock... [2025-03-02 19:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:55:04] Production.INFO: ==28492== Releasing lock... [2025-03-02 19:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:55:04] Production.INFO: Account Balance Start. [2025-03-02 19:55:04] Production.INFO: CreateAllLog Start [2025-03-02 19:55:04] Production.INFO: 117 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.ERROR: done [2025-03-02 19:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.ERROR: done [2025-03-02 19:55:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:55:04 [end_date_ymd] => 2025-03-02 19:55:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:55:04' and `end` < '2025-03-02 19: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-03-02 19:55:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-18 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-19 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-20 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-21 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-22 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-23 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-24 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-25 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-26 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-27 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:55:05] Production.INFO: Total Charge 0 [2025-03-02 19:55:05] Production.INFO: CreateAllLog End [2025-03-02 19:55:05] Production.INFO: Account Balance End. [2025-03-02 19:55:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:55:05] Production.INFO: ==28496== Releasing lock... [2025-03-02 19:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:55:11] Production.ERROR: CronJobId end10 [2025-03-02 19:55:11] Production.INFO: ==28494== Releasing lock... [2025-03-02 19:55:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:55:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:55:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:55:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:55:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:55:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:55:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:55:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:55:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:55:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:55:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:55:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:55:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:55:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:55:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:55:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:55:13] Production.INFO: call_cost start [2025-03-02 19:55:13] Production.INFO: call_cost end [2025-03-02 19:55:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:55:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:55:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:55:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:55:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:55:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:55:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:55:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:55:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:55:13] Production.INFO: ==28490== Releasing lock... [2025-03-02 19:55:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:55:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:55:16] Production.INFO: count ==1473 [2025-03-02 19:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:55:04 - End Time 2025-03-02 19:55:04 [2025-03-02 19:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593399', 'tblTempUsageDetail_20' ) start [2025-03-02 19:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593399', 'tblTempUsageDetail_20' ) end [2025-03-02 19:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593399', 'tblTempVendorCDR_20' ) start [2025-03-02 19:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593399', 'tblTempVendorCDR_20' ) end [2025-03-02 19:55:16] Production.INFO: ProcessCDR(1,14593399,1,1,2) [2025-03-02 19:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593399', 'tblTempUsageDetail_20' ) start [2025-03-02 19:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593399', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:55:24] Production.INFO: ==28498== Releasing lock... [2025-03-02 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:55:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:56:01] Production.INFO: ==28571== Lock acquired, processing the job... [2025-03-03 00:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:56:01] Production.INFO: neon service started [2025-03-03 00:56:01] Production.INFO: neon service started [2025-03-03 00:56:01] Production.INFO: ==28571== Releasing lock... [2025-03-03 00:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:56:01] Production.INFO: ==28573== Lock acquired, processing the job... [2025-03-02 19:56:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:56:02] Production.INFO: ==28575== Lock acquired, processing the job... [2025-03-03 00:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:56:02] Production.INFO: ==28575== Releasing lock... [2025-03-03 00:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-02 19:56:02] Production.INFO: ==28573== Releasing lock... [2025-03-02 19:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 19:56:03] Production.INFO: ==28580== Lock acquired, processing the job... [2025-03-02 19:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:56:03] Production.INFO: ==28582== Lock acquired, processing the job... [2025-03-02 19:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:56:03] Production.INFO: ==28588== Lock acquired, processing the job... [2025-03-02 19:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:56:03] Production.INFO: ==28586== Lock acquired, processing the job... [2025-03-02 19:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:56:03] Production.INFO: ==28590== Lock acquired, processing the job... [2025-03-02 19:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:56:03] Production.INFO: ==28582== Releasing lock... [2025-03-02 19:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:56:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:56:03] Production.INFO: ==28584== Lock acquired, processing the job... [2025-03-02 19:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:56:03] Production.INFO: Account Balance Start. [2025-03-02 19:56:03] Production.INFO: CreateAllLog Start [2025-03-02 19:56:03] Production.INFO: 117 [2025-03-02 19:56:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:56:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:03] Production.INFO: count ==13 [2025-03-02 19:56:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:56:03] Production.INFO: count ==21 [2025-03-02 19:56:03] Production.ERROR: done [2025-03-02 19:56:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593402') start [2025-03-02 19:56:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:56:03] Production.ERROR: done [2025-03-02 19:56:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593402') end [2025-03-02 19:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:56:04] Production.INFO: 1 [2025-03-02 19:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:56:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:56:04 [end_date_ymd] => 2025-03-02 19:56:04 [RateCDR] => 1 ) [2025-03-02 19: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-03-02 16:56:04' and `end` < '2025-03-02 19: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-03-02 19:56:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: ==28590== Releasing lock... [2025-03-02 19:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:56:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:56:04] Production.INFO: Total Charge 0 [2025-03-02 19:56:04] Production.INFO: CreateAllLog End [2025-03-02 19:56:04] Production.INFO: Account Balance End. [2025-03-02 19:56:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:56:04] Production.INFO: ==28586== Releasing lock... [2025-03-02 19:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:56:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:56:13] Production.ERROR: CronJobId end10 [2025-03-02 19:56:13] Production.INFO: ==28584== Releasing lock... [2025-03-02 19:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:56:15] Production.INFO: call_cost start [2025-03-02 19:56:15] Production.INFO: call_cost end [2025-03-02 19:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:56:15] Production.INFO: ==28580== Releasing lock... [2025-03-02 19:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:56:16] Production.INFO: count ==1466 [2025-03-02 19:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:56:04 - End Time 2025-03-02 19:56:04 [2025-03-02 19:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593404', 'tblTempUsageDetail_20' ) start [2025-03-02 19:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593404', 'tblTempUsageDetail_20' ) end [2025-03-02 19:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593404', 'tblTempVendorCDR_20' ) start [2025-03-02 19:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593404', 'tblTempVendorCDR_20' ) end [2025-03-02 19:56:16] Production.INFO: ProcessCDR(1,14593404,1,1,2) [2025-03-02 19:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593404', 'tblTempUsageDetail_20' ) start [2025-03-02 19:56:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593404', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:56:24] Production.INFO: ==28588== Releasing lock... [2025-03-02 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:56:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:57:02] Production.INFO: ==28679== Lock acquired, processing the job... [2025-03-03 00:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:57:02] Production.INFO: neon service started [2025-03-03 00:57:02] Production.INFO: neon service started [2025-03-03 00:57:02] Production.INFO: ==28679== Releasing lock... [2025-03-03 00:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:57:02] Production.INFO: ==28682== Lock acquired, processing the job... [2025-03-02 19:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:57:02] Production.INFO: ==28684== Lock acquired, processing the job... [2025-03-03 00:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 19:57:02] Production.INFO: ==28682== Releasing lock... [2025-03-02 19:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:57:02] Production.INFO: ==28684== Releasing lock... [2025-03-03 00:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:57:03] Production.INFO: ==28686== Lock acquired, processing the job... [2025-03-02 19:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:57:03] Production.INFO: ==28688== Lock acquired, processing the job... [2025-03-02 19:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:57:03] Production.INFO: ==28690== Lock acquired, processing the job... [2025-03-02 19:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:57:04] Production.INFO: ==28688== Releasing lock... [2025-03-02 19:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:57:04] Production.INFO: ==28695== Lock acquired, processing the job... [2025-03-02 19:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:57:04] Production.INFO: ==28693== Lock acquired, processing the job... [2025-03-02 19:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:57:04] Production.INFO: ==28697== Lock acquired, processing the job... [2025-03-02 19:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:57:04] Production.INFO: Account Balance Start. [2025-03-02 19:57:04] Production.INFO: CreateAllLog Start [2025-03-02 19:57:04] Production.INFO: 117 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:57:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: count ==13 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:57:04] Production.INFO: count ==21 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593408') start [2025-03-02 19:57:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.ERROR: done [2025-03-02 19:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593408') end [2025-03-02 19:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:57:04] Production.INFO: 1 [2025-03-02 19:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:57:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: ==28697== Releasing lock... [2025-03-02 19:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:57:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.ERROR: done [2025-03-02 19:57:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:57:04 [end_date_ymd] => 2025-03-02 19:57:04 [RateCDR] => 1 ) [2025-03-02 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:57:04' and `end` < '2025-03-02 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:57:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:05] Production.INFO: Date 2025-02-28 [2025-03-02 19:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:05] Production.INFO: Date 2025-03-01 [2025-03-02 19:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:57:05] Production.INFO: Total Charge 0 [2025-03-02 19:57:05] Production.INFO: CreateAllLog End [2025-03-02 19:57:05] Production.INFO: Account Balance End. [2025-03-02 19:57:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:57:05] Production.INFO: ==28693== Releasing lock... [2025-03-02 19:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:57:13] Production.ERROR: CronJobId end10 [2025-03-02 19:57:13] Production.INFO: ==28690== Releasing lock... [2025-03-02 19:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:57:15] Production.INFO: call_cost start [2025-03-02 19:57:15] Production.INFO: call_cost end [2025-03-02 19:57:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:57:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:57:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:57:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:57:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:57:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:57:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:57:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:57:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:57:15] Production.INFO: ==28686== Releasing lock... [2025-03-02 19:57:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:57:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:57:16] Production.INFO: count ==1467 [2025-03-02 19:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 16:57:04 - End Time 2025-03-02 19:57:04 [2025-03-02 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593409', 'tblTempUsageDetail_20' ) start [2025-03-02 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593409', 'tblTempUsageDetail_20' ) end [2025-03-02 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593409', 'tblTempVendorCDR_20' ) start [2025-03-02 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593409', 'tblTempVendorCDR_20' ) end [2025-03-02 19:57:17] Production.INFO: ProcessCDR(1,14593409,1,1,2) [2025-03-02 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593409', 'tblTempUsageDetail_20' ) start [2025-03-02 19:57:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593409', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:57:24] Production.INFO: ==28695== Releasing lock... [2025-03-02 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:57:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:58:01] Production.INFO: ==28811== Lock acquired, processing the job... [2025-03-03 00:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:58:01] Production.INFO: neon service started [2025-03-03 00:58:01] Production.INFO: neon service started [2025-03-03 00:58:01] Production.INFO: ==28811== Releasing lock... [2025-03-03 00:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:58:01] Production.INFO: ==28813== Lock acquired, processing the job... [2025-03-02 19:58:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 19:58:02] Production.INFO: ==28813== Releasing lock... [2025-03-02 19:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:58:02] Production.INFO: ==28815== Lock acquired, processing the job... [2025-03-03 00:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:58:02] Production.INFO: ==28815== Releasing lock... [2025-03-03 00:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:58:03] Production.INFO: ==28821== Lock acquired, processing the job... [2025-03-02 19:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:58:03] Production.INFO: ==28819== Lock acquired, processing the job... [2025-03-02 19:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:58:03] Production.INFO: ==28817== Lock acquired, processing the job... [2025-03-02 19:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:58:03] Production.INFO: ==28827== Lock acquired, processing the job... [2025-03-02 19:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:58:03] Production.INFO: ==28823== Lock acquired, processing the job... [2025-03-02 19:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:58:03] Production.INFO: ==28825== Lock acquired, processing the job... [2025-03-02 19:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:58:03] Production.INFO: Account Balance Start. [2025-03-02 19:58:03] Production.INFO: CreateAllLog Start [2025-03-02 19:58:03] Production.INFO: count ==13 [2025-03-02 19:58:03] Production.INFO: 117 [2025-03-02 19:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:58:03] Production.INFO: count ==21 [2025-03-02 19:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593413') start [2025-03-02 19:58:03] Production.INFO: ==28819== Releasing lock... [2025-03-02 19:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:58:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:58:03] Production.INFO: Date 2025-02-08 [2025-03-02 19:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593413') end [2025-03-02 19:58:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:58:03] Production.INFO: 1 [2025-03-02 19:58:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:03] Production.INFO: Date 2025-02-09 [2025-03-02 19:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:03] Production.INFO: Date 2025-02-10 [2025-03-02 19:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:03] Production.INFO: ==28827== Releasing lock... [2025-03-02 19:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:58:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:58:03] Production.ERROR: done [2025-03-02 19:58:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:58:03] Production.INFO: Date 2025-02-11 [2025-03-02 19:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.ERROR: done [2025-03-02 19:58:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:58:04 [end_date_ymd] => 2025-03-02 19:58:04 [RateCDR] => 1 ) [2025-03-02 19:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:58:04' and `end` < '2025-03-02 19:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:58:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Date 2025-03-02 [2025-03-02 19:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:58:04] Production.INFO: Total Charge 0 [2025-03-02 19:58:04] Production.INFO: CreateAllLog End [2025-03-02 19:58:04] Production.INFO: Account Balance End. [2025-03-02 19:58:04] Production.ERROR: CronJobId end 12 [2025-03-02 19:58:04] Production.INFO: ==28823== Releasing lock... [2025-03-02 19:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:58:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:58:11] Production.ERROR: CronJobId end10 [2025-03-02 19:58:11] Production.INFO: ==28821== Releasing lock... [2025-03-02 19:58:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:58:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:58:14] Production.INFO: call_cost start [2025-03-02 19:58:14] Production.INFO: call_cost end [2025-03-02 19:58:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:58:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:58:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:58:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:58:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:58:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:58:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:58:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:58:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:58:14] Production.INFO: ==28817== Releasing lock... [2025-03-02 19:58:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:58:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:58:16] Production.INFO: count ==1466 [2025-03-02 19:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:58:04 - End Time 2025-03-02 19:58:04 [2025-03-02 19:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593414', 'tblTempUsageDetail_20' ) start [2025-03-02 19:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593414', 'tblTempUsageDetail_20' ) end [2025-03-02 19:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593414', 'tblTempVendorCDR_20' ) start [2025-03-02 19:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593414', 'tblTempVendorCDR_20' ) end [2025-03-02 19:58:16] Production.INFO: ProcessCDR(1,14593414,1,1,2) [2025-03-02 19:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593414', 'tblTempUsageDetail_20' ) start [2025-03-02 19:58:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593414', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:58:24] Production.INFO: ==28825== Releasing lock... [2025-03-02 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:58:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 00:59:01] Production.INFO: ==28906== Lock acquired, processing the job... [2025-03-03 00:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 00:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 00:59:01] Production.INFO: neon service started [2025-03-03 00:59:01] Production.INFO: neon service started [2025-03-03 00:59:01] Production.INFO: ==28906== Releasing lock... [2025-03-03 00:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 00:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 19:59:02] Production.INFO: ==28908== Lock acquired, processing the job... [2025-03-02 19:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:59:02] Production.INFO: ==28910== Lock acquired, processing the job... [2025-03-03 00:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 19:59:02] Production.INFO: ==28908== Releasing lock... [2025-03-02 19:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 19:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:59:02] Production.INFO: ==28910== Releasing lock... [2025-03-03 00:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 00:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 19:59:03] Production.INFO: ==28916== Lock acquired, processing the job... [2025-03-02 19:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 19:59:03] Production.INFO: ==28912== Lock acquired, processing the job... [2025-03-02 19:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 19:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 19:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 19:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 19:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 19:59:03] Production.INFO: ==28921== Lock acquired, processing the job... [2025-03-02 19:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 19:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 19:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 19:59:03] Production.INFO: ==28914== Lock acquired, processing the job... [2025-03-02 19:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 19:59:03] Production.INFO: ==28919== Lock acquired, processing the job... [2025-03-02 19:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 19:59:03] Production.INFO: ==28923== Lock acquired, processing the job... [2025-03-02 19:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 19:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:59:04] Production.ERROR: done [2025-03-02 19:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 19:59:04] Production.INFO: Account Balance Start. [2025-03-02 19:59:04] Production.INFO: CreateAllLog Start [2025-03-02 19:59:04] Production.INFO: 117 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-08 [2025-03-02 19:59:04] Production.INFO: count ==13 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 19:59:04] Production.INFO: count ==21 [2025-03-02 19:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593417') start [2025-03-02 19:59:04] Production.INFO: Date 2025-02-09 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.ERROR: done [2025-03-02 19:59:04] Production.INFO: ==28914== Releasing lock... [2025-03-02 19:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 19:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 19:59:04] Production.INFO: Date 2025-02-10 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 16:59:04 [end_date_ymd] => 2025-03-02 19:59:04 [RateCDR] => 1 ) [2025-03-02 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 16:59:04' and `end` < '2025-03-02 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 19:59:04] Production.INFO: Date 2025-02-11 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-12 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593417') end [2025-03-02 19:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 19:59:04] Production.INFO: 1 [2025-03-02 19:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 19:59:04] Production.INFO: Date 2025-02-13 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: ==28923== Releasing lock... [2025-03-02 19:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 19:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 19:59:04] Production.INFO: Date 2025-02-14 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-15 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-16 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-17 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-18 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-19 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-20 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-21 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-22 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-23 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-24 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-25 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-26 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-27 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-02-28 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:04] Production.INFO: Date 2025-03-01 [2025-03-02 19:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:05] Production.INFO: Date 2025-03-02 [2025-03-02 19:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 19:59:05] Production.INFO: Total Charge 0 [2025-03-02 19:59:05] Production.INFO: CreateAllLog End [2025-03-02 19:59:05] Production.INFO: Account Balance End. [2025-03-02 19:59:05] Production.ERROR: CronJobId end 12 [2025-03-02 19:59:05] Production.INFO: ==28919== Releasing lock... [2025-03-02 19:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 19:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 19:59:12] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,11))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-02 19:59:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 19:59:12] Production.INFO: ============== Balance Warning START=========== [2025-03-02 19:59:12] Production.INFO: ============== Balance Warning END=========== [2025-03-02 19:59:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 19:59:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 19:59:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 19:59:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 19:59:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 19:59:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 19:59:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 19:59:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 19:59:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 19:59:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 19:59:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 19:59:12] Production.ERROR: CronJobId end10 [2025-03-02 19:59:12] Production.INFO: ==28916== Releasing lock... [2025-03-02 19:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 19:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 19:59:12] Production.INFO: call_cost start [2025-03-02 19:59:12] Production.INFO: call_cost end [2025-03-02 19:59:12] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 19:59:12] Production.INFO: ============== Report Schedule START=========== [2025-03-02 19:59:12] Production.INFO: ============== Report Schedule END=========== [2025-03-02 19:59:12] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 19:59:12] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 19:59:12] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 19:59:12] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 19:59:12] Production.INFO: ============== Deal alert START=========== [2025-03-02 19:59:12] Production.INFO: ============== Deal alert END=========== [2025-03-02 19:59:12] Production.INFO: ==28912== Releasing lock... [2025-03-02 19:59:12] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 19:59:12] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 19:59:16] Production.INFO: count ==1465 [2025-03-02 19:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 16:59:04 - End Time 2025-03-02 19:59:04 [2025-03-02 19:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 19:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593419', 'tblTempUsageDetail_20' ) start [2025-03-02 19:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593419', 'tblTempUsageDetail_20' ) end [2025-03-02 19:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593419', 'tblTempVendorCDR_20' ) start [2025-03-02 19:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593419', 'tblTempVendorCDR_20' ) end [2025-03-02 19:59:16] Production.INFO: ProcessCDR(1,14593419,1,1,2) [2025-03-02 19:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593419', 'tblTempUsageDetail_20' ) start [2025-03-02 19:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593419', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 19:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 19:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 19:59:24] Production.INFO: ==28921== Releasing lock... [2025-03-02 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 19:59:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 01:00:02] Production.INFO: ==28999== Lock acquired, processing the job... [2025-03-03 01:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:00:02] Production.INFO: neon service started [2025-03-03 01:00:02] Production.INFO: neon service started [2025-03-03 01:00:02] Production.INFO: ==28999== Releasing lock... [2025-03-03 01:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:00:03] Production.INFO: ==29001== Lock acquired, processing the job... [2025-03-02 20:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:00:03] Production.INFO: ==29003== Lock acquired, processing the job... [2025-03-03 01:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:00:03] Production.INFO: ==29003== Releasing lock... [2025-03-03 01:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:00:03] Production.INFO: ==29001== Releasing lock... [2025-03-02 20:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:00:04] Production.INFO: ==29010== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:00:04] Production.INFO: ==29006== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 20:00:04] Production.INFO: ==29016== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:00:04] Production.INFO: ==29008== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 20:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 20:00:04] Production.ERROR: CronJob PID - 29010 [2025-03-02 20:00:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 20:00:04] Production.ERROR: CronJob ID - 7 [2025-03-02 20:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 20:00:00 [2025-03-02 20:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 20:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 20:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 20:00:04] Production.ERROR: CronJob PID - 29016 [2025-03-02 20:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-02 20:00:04] Production.ERROR: CronJob ID - 16 [2025-03-02 20:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 20:00:00 [2025-03-02 20:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 20:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 20:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:00:04] Production.INFO: ==29020== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 20:00:04] Production.INFO: ==29006== Releasing lock... [2025-03-02 20:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 20:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:00:04] Production.INFO: ==29012== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:00:04] Production.INFO: ==29010== Releasing lock... [2025-03-02 20:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:00:04] Production.INFO: ==29014== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:00:04] Production.INFO: ==29018== Lock acquired, processing the job... [2025-03-02 20:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 20:00:04] Production.INFO: Account Balance Start. [2025-03-02 20:00:04] Production.INFO: CreateAllLog Start [2025-03-02 20:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:00:04] Production.INFO: 117 [2025-03-02 20:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:00:05] Production.INFO: Date 2025-02-08 [2025-03-02 20:00:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-09 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-10 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:00:05] Production.INFO: count ==13 [2025-03-02 20:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:00:05] Production.ERROR: done [2025-03-02 20:00:05] Production.INFO: count ==21 [2025-03-02 20:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-11 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593423') start [2025-03-02 20:00:05] Production.INFO: Date 2025-02-12 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-13 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.ERROR: done [2025-03-02 20:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593423') end [2025-03-02 20:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:00:05] Production.INFO: 1 [2025-03-02 20:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:00:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:00:05] Production.ERROR: done [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: ==29020== Releasing lock... [2025-03-02 20:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:00:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 20:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593425', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 20:00:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:00:05 [end_date_ymd] => 2025-03-02 20:00:05 [RateCDR] => 1 ) [2025-03-02 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:00:05' and `end` < '2025-03-02 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:00:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-02-24 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-02-25 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-02-26 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-02-27 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-02-28 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-03-01 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Date 2025-03-02 [2025-03-02 20:00:06] Production.INFO: Reseller ==> 0 [2025-03-02 20:00:06] Production.INFO: Total Charge 0 [2025-03-02 20:00:06] Production.INFO: CreateAllLog End [2025-03-02 20:00:06] Production.INFO: Account Balance End. [2025-03-02 20:00:06] Production.ERROR: CronJobId end 12 [2025-03-02 20:00:06] Production.INFO: ==29014== Releasing lock... [2025-03-02 20:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593425', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 20:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 20:00:10] Production.INFO: ProcessCDR(1,14593425,1,1,2) [2025-03-02 20:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593425,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593425,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-02 20:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-02 20:00:10] Production.INFO: ==29018== Releasing lock... [2025-03-02 20:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 20:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-02 20:00:14] Production.ERROR: CronJobId end10 [2025-03-02 20:00:14] Production.INFO: ==29012== Releasing lock... [2025-03-02 20:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:00:16] Production.INFO: call_cost start [2025-03-02 20:00:16] Production.INFO: call_cost end [2025-03-02 20:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:00:16] Production.INFO: ==29008== Releasing lock... [2025-03-02 20:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:00:17] Production.INFO: count ==1462 [2025-03-02 20:00:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:00:05 - End Time 2025-03-02 20:00:05 [2025-03-02 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593424', 'tblTempUsageDetail_20' ) start [2025-03-02 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593424', 'tblTempUsageDetail_20' ) end [2025-03-02 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593424', 'tblTempVendorCDR_20' ) start [2025-03-02 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593424', 'tblTempVendorCDR_20' ) end [2025-03-02 20:00:18] Production.INFO: ProcessCDR(1,14593424,1,1,2) [2025-03-02 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593424', 'tblTempUsageDetail_20' ) start [2025-03-02 20:00:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593424', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:00:25] Production.INFO: ==29016== Releasing lock... [2025-03-02 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:00:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-03 01:01:01] Production.INFO: ==29138== Lock acquired, processing the job... [2025-03-03 01:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:01:01] Production.INFO: neon service started [2025-03-03 01:01:01] Production.INFO: neon service started [2025-03-03 01:01:01] Production.INFO: ==29138== Releasing lock... [2025-03-03 01:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:01:02] Production.INFO: ==29145== Lock acquired, processing the job... [2025-03-02 20:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:01:02] Production.INFO: ==29145== Releasing lock... [2025-03-02 20:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:01:02] Production.INFO: ==29147== Lock acquired, processing the job... [2025-03-03 01:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:01:02] Production.INFO: ==29147== Releasing lock... [2025-03-03 01:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:01:03] Production.INFO: ==29159== Lock acquired, processing the job... [2025-03-02 20:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:01:03] Production.INFO: ==29157== Lock acquired, processing the job... [2025-03-02 20:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:01:03] Production.INFO: count ==13 [2025-03-02 20:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:01:03] Production.INFO: count ==21 [2025-03-02 20:01:03] Production.INFO: ==29149== Lock acquired, processing the job... [2025-03-02 20:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:01:03] Production.INFO: ==29151== Lock acquired, processing the job... [2025-03-02 20:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593426') start [2025-03-02 20:01:03] Production.INFO: ==29153== Lock acquired, processing the job... [2025-03-02 20:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:01:03] Production.INFO: ==29155== Lock acquired, processing the job... [2025-03-02 20:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593426') end [2025-03-02 20:01:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:01:03] Production.INFO: 1 [2025-03-02 20:01:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:01:04] Production.INFO: ==29159== Releasing lock... [2025-03-02 20:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:01:04] Production.ERROR: done [2025-03-02 20:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:01:04] Production.INFO: Account Balance Start. [2025-03-02 20:01:04] Production.INFO: CreateAllLog Start [2025-03-02 20:01:04] Production.INFO: 117 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.ERROR: done [2025-03-02 20:01:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: ==29151== Releasing lock... [2025-03-02 20:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:01:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:01:04 [end_date_ymd] => 2025-03-02 20:01:04 [RateCDR] => 1 ) [2025-03-02 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:01:04' and `end` < '2025-03-02 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:01:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:01:05] Production.INFO: Total Charge 0 [2025-03-02 20:01:05] Production.INFO: CreateAllLog End [2025-03-02 20:01:05] Production.INFO: Account Balance End. [2025-03-02 20:01:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:01:05] Production.INFO: ==29155== Releasing lock... [2025-03-02 20:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:01:12] Production.ERROR: CronJobId end10 [2025-03-02 20:01:12] Production.INFO: ==29153== Releasing lock... [2025-03-02 20:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:01:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:01:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:01:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:01:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:01:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:01:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:01:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:01:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:01:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:01:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:01:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:01:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:01:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:01:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:01:14] Production.INFO: call_cost start [2025-03-02 20:01:14] Production.INFO: call_cost end [2025-03-02 20:01:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:01:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:01:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:01:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:01:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:01:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:01:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:01:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:01:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:01:14] Production.INFO: ==29149== Releasing lock... [2025-03-02 20:01:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:01:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:01:16] Production.INFO: count ==1443 [2025-03-02 20:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:01:04 - End Time 2025-03-02 20:01:04 [2025-03-02 20:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593430', 'tblTempUsageDetail_20' ) start [2025-03-02 20:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593430', 'tblTempUsageDetail_20' ) end [2025-03-02 20:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593430', 'tblTempVendorCDR_20' ) start [2025-03-02 20:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593430', 'tblTempVendorCDR_20' ) end [2025-03-02 20:01:16] Production.INFO: ProcessCDR(1,14593430,1,1,2) [2025-03-02 20:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593430', 'tblTempUsageDetail_20' ) start [2025-03-02 20:01:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593430', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:01:24] Production.INFO: ==29157== Releasing lock... [2025-03-02 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:01:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:02:02] Production.INFO: ==29216== Lock acquired, processing the job... [2025-03-03 01:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:02:02] Production.INFO: neon service started [2025-03-03 01:02:02] Production.INFO: neon service started [2025-03-03 01:02:02] Production.INFO: ==29216== Releasing lock... [2025-03-03 01:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:02:02] Production.INFO: ==29219== Lock acquired, processing the job... [2025-03-02 20:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:02:03] Production.INFO: ==29221== Lock acquired, processing the job... [2025-03-03 01:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 20:02:03] Production.INFO: ==29219== Releasing lock... [2025-03-02 20:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:02:03] Production.INFO: ==29221== Releasing lock... [2025-03-03 01:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:02:03] Production.INFO: ==29223== Lock acquired, processing the job... [2025-03-02 20:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:02:03] Production.INFO: ==29225== Lock acquired, processing the job... [2025-03-02 20:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:02:03] Production.INFO: ==29231== Lock acquired, processing the job... [2025-03-02 20:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:02:04] Production.INFO: ==29227== Lock acquired, processing the job... [2025-03-02 20:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:02:04] Production.INFO: ==29229== Lock acquired, processing the job... [2025-03-02 20:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:02:04] Production.ERROR: done [2025-03-02 20:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:02:04] Production.INFO: ==29225== Releasing lock... [2025-03-02 20:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:02:04] Production.INFO: ==29233== Lock acquired, processing the job... [2025-03-02 20:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:02:04] Production.INFO: Account Balance Start. [2025-03-02 20:02:04] Production.INFO: CreateAllLog Start [2025-03-02 20:02:04] Production.INFO: 117 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.ERROR: done [2025-03-02 20:02:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:02:04] Production.INFO: count ==13 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:02:04 [end_date_ymd] => 2025-03-02 20:02:04 [RateCDR] => 1 ) [2025-03-02 20:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:02:04' and `end` < '2025-03-02 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:02:04] Production.INFO: count ==21 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593434') start [2025-03-02 20:02:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593434') end [2025-03-02 20:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:02:04] Production.INFO: 1 [2025-03-02 20:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:02:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: ==29233== Releasing lock... [2025-03-02 20:02:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:02:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:02:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:02:05] Production.INFO: Total Charge 0 [2025-03-02 20:02:05] Production.INFO: CreateAllLog End [2025-03-02 20:02:05] Production.INFO: Account Balance End. [2025-03-02 20:02:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:02:05] Production.INFO: ==29229== Releasing lock... [2025-03-02 20:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:02:12] Production.ERROR: CronJobId end10 [2025-03-02 20:02:12] Production.INFO: ==29227== Releasing lock... [2025-03-02 20:02:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:02:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:02:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:02:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:02:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:02:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:02:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:02:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:02:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:02:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:02:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:02:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:02:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:02:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:02:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:02:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:02:14] Production.INFO: call_cost start [2025-03-02 20:02:14] Production.INFO: call_cost end [2025-03-02 20:02:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:02:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:02:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:02:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:02:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:02:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:02:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:02:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:02:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:02:14] Production.INFO: ==29223== Releasing lock... [2025-03-02 20:02:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:02:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:02:16] Production.INFO: count ==1446 [2025-03-02 20:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:02:04 - End Time 2025-03-02 20:02:04 [2025-03-02 20:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593435', 'tblTempUsageDetail_20' ) start [2025-03-02 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593435', 'tblTempUsageDetail_20' ) end [2025-03-02 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593435', 'tblTempVendorCDR_20' ) start [2025-03-02 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593435', 'tblTempVendorCDR_20' ) end [2025-03-02 20:02:17] Production.INFO: ProcessCDR(1,14593435,1,1,2) [2025-03-02 20:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593435', 'tblTempUsageDetail_20' ) start [2025-03-02 20:02:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593435', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:02:24] Production.INFO: ==29231== Releasing lock... [2025-03-02 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:02:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:03:01] Production.INFO: ==29294== Lock acquired, processing the job... [2025-03-03 01:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:03:01] Production.INFO: neon service started [2025-03-03 01:03:01] Production.INFO: neon service started [2025-03-03 01:03:01] Production.INFO: ==29294== Releasing lock... [2025-03-03 01:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:03:02] Production.INFO: ==29301== Lock acquired, processing the job... [2025-03-03 01:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:03:02] Production.INFO: ==29301== Releasing lock... [2025-03-03 01:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:03:02] Production.INFO: ==29299== Lock acquired, processing the job... [2025-03-02 20:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:03:02] Production.INFO: ==29299== Releasing lock... [2025-03-02 20:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:03:03] Production.INFO: ==29309== Lock acquired, processing the job... [2025-03-02 20:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:03:03] Production.INFO: ==29303== Lock acquired, processing the job... [2025-03-02 20:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:03:03] Production.INFO: Account Balance Start. [2025-03-02 20:03:03] Production.INFO: CreateAllLog Start [2025-03-02 20:03:03] Production.INFO: 117 [2025-03-02 20:03:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:03:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: ==29305== Lock acquired, processing the job... [2025-03-02 20:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:03:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: ==29307== Lock acquired, processing the job... [2025-03-02 20:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:03:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:03:04] Production.INFO: ==29311== Lock acquired, processing the job... [2025-03-02 20:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:03:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: ==29313== Lock acquired, processing the job... [2025-03-02 20:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:03:04] Production.INFO: count ==13 [2025-03-02 20:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:03:04] Production.INFO: count ==21 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593439') start [2025-03-02 20:03:04] Production.INFO: ==29305== Releasing lock... [2025-03-02 20:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:03:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593439') end [2025-03-02 20:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:03:04] Production.INFO: 1 [2025-03-02 20:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:03:04] Production.ERROR: done [2025-03-02 20:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: ==29313== Releasing lock... [2025-03-02 20:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:03:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:03:04] Production.ERROR: done [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:03:04] Production.INFO: Total Charge 0 [2025-03-02 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:03:04 [end_date_ymd] => 2025-03-02 20:03:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:03:04' and `end` < '2025-03-02 20: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-03-02 20:03:04] Production.INFO: CreateAllLog End [2025-03-02 20:03:05] Production.INFO: Account Balance End. [2025-03-02 20:03:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:03:05] Production.INFO: ==29309== Releasing lock... [2025-03-02 20:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:03:13] Production.ERROR: CronJobId end10 [2025-03-02 20:03:13] Production.INFO: ==29307== Releasing lock... [2025-03-02 20:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:03:15] Production.INFO: call_cost start [2025-03-02 20:03:15] Production.INFO: call_cost end [2025-03-02 20:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:03:15] Production.INFO: ==29303== Releasing lock... [2025-03-02 20:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:03:17] Production.INFO: count ==1447 [2025-03-02 20:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:03:04 - End Time 2025-03-02 20:03:04 [2025-03-02 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593440', 'tblTempUsageDetail_20' ) start [2025-03-02 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593440', 'tblTempUsageDetail_20' ) end [2025-03-02 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593440', 'tblTempVendorCDR_20' ) start [2025-03-02 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593440', 'tblTempVendorCDR_20' ) end [2025-03-02 20:03:17] Production.INFO: ProcessCDR(1,14593440,1,1,2) [2025-03-02 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593440', 'tblTempUsageDetail_20' ) start [2025-03-02 20:03:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593440', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:03:24] Production.INFO: ==29311== Releasing lock... [2025-03-02 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:03:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:04:02] Production.INFO: ==29386== Lock acquired, processing the job... [2025-03-03 01:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:04:02] Production.INFO: neon service started [2025-03-03 01:04:02] Production.INFO: neon service started [2025-03-03 01:04:02] Production.INFO: ==29386== Releasing lock... [2025-03-03 01:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:04:02] Production.INFO: ==29388== Lock acquired, processing the job... [2025-03-02 20:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:04:02] Production.INFO: ==29388== Releasing lock... [2025-03-02 20:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:04:02] Production.INFO: ==29390== Lock acquired, processing the job... [2025-03-03 01:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:04:03] Production.INFO: ==29390== Releasing lock... [2025-03-03 01:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:04:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:04:03] Production.INFO: ==29399== Lock acquired, processing the job... [2025-03-02 20:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:04:03] Production.INFO: Account Balance Start. [2025-03-02 20:04:03] Production.INFO: CreateAllLog Start [2025-03-02 20:04:03] Production.INFO: 117 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: ==29393== Lock acquired, processing the job... [2025-03-02 20:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:04:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:04:04] Production.INFO: ==29395== Lock acquired, processing the job... [2025-03-02 20:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: ==29397== Lock acquired, processing the job... [2025-03-02 20:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:04:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: ==29401== Lock acquired, processing the job... [2025-03-02 20:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:04:04] Production.INFO: ==29403== Lock acquired, processing the job... [2025-03-02 20:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:04:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:04:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:04:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:04:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: count ==13 [2025-03-02 20:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:04:04] Production.INFO: count ==21 [2025-03-02 20:04:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593444') start [2025-03-02 20:04:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: ==29395== Releasing lock... [2025-03-02 20:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:04:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593444') end [2025-03-02 20:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:04:04] Production.INFO: 1 [2025-03-02 20:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:04:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: ==29403== Releasing lock... [2025-03-02 20:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:04:04] Production.ERROR: done [2025-03-02 20:04:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:04:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:04:04] Production.ERROR: done [2025-03-02 20:04:04] Production.INFO: Total Charge 0 [2025-03-02 20:04:05] Production.INFO: CreateAllLog End [2025-03-02 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:04:05 [end_date_ymd] => 2025-03-02 20:04:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:04:05' and `end` < '2025-03-02 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-03-02 20:04:05] Production.INFO: Account Balance End. [2025-03-02 20:04:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:04:05] Production.INFO: ==29399== Releasing lock... [2025-03-02 20:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:04:13] Production.ERROR: CronJobId end10 [2025-03-02 20:04:13] Production.INFO: ==29397== Releasing lock... [2025-03-02 20:04:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:04:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:04:15] Production.INFO: call_cost start [2025-03-02 20:04:15] Production.INFO: call_cost end [2025-03-02 20:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:04:15] Production.INFO: ==29393== Releasing lock... [2025-03-02 20:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:04:17] Production.INFO: count ==1444 [2025-03-02 20:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:04:05 - End Time 2025-03-02 20:04:05 [2025-03-02 20:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593445', 'tblTempUsageDetail_20' ) start [2025-03-02 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593445', 'tblTempUsageDetail_20' ) end [2025-03-02 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593445', 'tblTempVendorCDR_20' ) start [2025-03-02 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593445', 'tblTempVendorCDR_20' ) end [2025-03-02 20:04:17] Production.INFO: ProcessCDR(1,14593445,1,1,2) [2025-03-02 20:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593445', 'tblTempUsageDetail_20' ) start [2025-03-02 20:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593445', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:04:24] Production.INFO: ==29401== Releasing lock... [2025-03-02 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:04:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:05:01] Production.INFO: ==29478== Lock acquired, processing the job... [2025-03-03 01:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:05:01] Production.INFO: neon service started [2025-03-03 01:05:01] Production.INFO: neon service started [2025-03-03 01:05:01] Production.INFO: ==29478== Releasing lock... [2025-03-03 01:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:05:02] Production.INFO: ==29482== Lock acquired, processing the job... [2025-03-03 01:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:05:02] Production.INFO: ==29482== Releasing lock... [2025-03-03 01:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:05:02] Production.INFO: ==29480== Lock acquired, processing the job... [2025-03-02 20:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:05:02] Production.INFO: ==29480== Releasing lock... [2025-03-02 20:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:05:03] Production.INFO: ==29490== Lock acquired, processing the job... [2025-03-02 20:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:05:03] Production.INFO: ==29494== Lock acquired, processing the job... [2025-03-02 20:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:05:03] Production.INFO: ==29486== Lock acquired, processing the job... [2025-03-02 20:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:05:03] Production.INFO: Account Balance Start. [2025-03-02 20:05:03] Production.INFO: CreateAllLog Start [2025-03-02 20:05:03] Production.INFO: 117 [2025-03-02 20:05:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:05:03] Production.INFO: ==29484== Lock acquired, processing the job... [2025-03-02 20:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:05:03] Production.INFO: ==29488== Lock acquired, processing the job... [2025-03-02 20:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:05:03] Production.INFO: count ==13 [2025-03-02 20:05:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:05:03] Production.INFO: ==29492== Lock acquired, processing the job... [2025-03-02 20:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:05:03] Production.INFO: count ==21 [2025-03-02 20:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593447') start [2025-03-02 20:05:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593447') end [2025-03-02 20:05:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:05:03] Production.INFO: 1 [2025-03-02 20:05:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:05:03] Production.INFO: ==29494== Releasing lock... [2025-03-02 20:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:05:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:05:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:05:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:03] Production.INFO: ==29486== Releasing lock... [2025-03-02 20:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:05:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.ERROR: done [2025-03-02 20:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.ERROR: done [2025-03-02 20:05:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:05:04 [end_date_ymd] => 2025-03-02 20:05:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:05:04' and `end` < '2025-03-02 20: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-03-02 20:05:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:05:05] Production.INFO: Total Charge 0 [2025-03-02 20:05:05] Production.INFO: CreateAllLog End [2025-03-02 20:05:05] Production.INFO: Account Balance End. [2025-03-02 20:05:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:05:05] Production.INFO: ==29490== Releasing lock... [2025-03-02 20:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:05:12] Production.ERROR: CronJobId end10 [2025-03-02 20:05:12] Production.INFO: ==29488== Releasing lock... [2025-03-02 20:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:05:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:05:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:05:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:05:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:05:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:05:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:05:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:05:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:05:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:05:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:05:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:05:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:05:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:05:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:05:14] Production.INFO: call_cost start [2025-03-02 20:05:14] Production.INFO: call_cost end [2025-03-02 20:05:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:05:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:05:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:05:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:05:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:05:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:05:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:05:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:05:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:05:14] Production.INFO: ==29484== Releasing lock... [2025-03-02 20:05:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:05:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:05:16] Production.INFO: count ==1444 [2025-03-02 20:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:05:04 - End Time 2025-03-02 20:05:04 [2025-03-02 20:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593450', 'tblTempUsageDetail_20' ) start [2025-03-02 20:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593450', 'tblTempUsageDetail_20' ) end [2025-03-02 20:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593450', 'tblTempVendorCDR_20' ) start [2025-03-02 20:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593450', 'tblTempVendorCDR_20' ) end [2025-03-02 20:05:16] Production.INFO: ProcessCDR(1,14593450,1,1,2) [2025-03-02 20:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593450', 'tblTempUsageDetail_20' ) start [2025-03-02 20:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593450', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:05:24] Production.INFO: ==29492== Releasing lock... [2025-03-02 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:05:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:06:02] Production.INFO: ==29576== Lock acquired, processing the job... [2025-03-03 01:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:06:02] Production.INFO: neon service started [2025-03-03 01:06:02] Production.INFO: neon service started [2025-03-03 01:06:02] Production.INFO: ==29576== Releasing lock... [2025-03-03 01:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:06:02] Production.INFO: ==29580== Lock acquired, processing the job... [2025-03-03 01:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:06:02] Production.INFO: ==29580== Releasing lock... [2025-03-03 01:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:06:02] Production.INFO: ==29578== Lock acquired, processing the job... [2025-03-02 20:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:06:02] Production.INFO: ==29578== Releasing lock... [2025-03-02 20:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:06:03] Production.INFO: ==29589== Lock acquired, processing the job... [2025-03-02 20:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:06:03] Production.INFO: ==29591== Lock acquired, processing the job... [2025-03-02 20:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:06:03] Production.INFO: Account Balance Start. [2025-03-02 20:06:03] Production.INFO: CreateAllLog Start [2025-03-02 20:06:03] Production.INFO: 117 [2025-03-02 20:06:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:06:04] Production.INFO: ==29583== Lock acquired, processing the job... [2025-03-02 20:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: ==29585== Lock acquired, processing the job... [2025-03-02 20:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:06:04] Production.INFO: ==29587== Lock acquired, processing the job... [2025-03-02 20:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:06:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:06:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: ==29593== Lock acquired, processing the job... [2025-03-02 20:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:06:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.ERROR: done [2025-03-02 20:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:06:04] Production.INFO: count ==13 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:06:04] Production.INFO: count ==21 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593454') start [2025-03-02 20:06:04] Production.ERROR: done [2025-03-02 20:06:04] Production.INFO: ==29585== Releasing lock... [2025-03-02 20:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:06:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593454') end [2025-03-02 20:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:06:04] Production.INFO: 1 [2025-03-02 20:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:06:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:06:04 [end_date_ymd] => 2025-03-02 20:06:04 [RateCDR] => 1 ) [2025-03-02 20:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:06:04' and `end` < '2025-03-02 20:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:06:04] Production.INFO: ==29593== Releasing lock... [2025-03-02 20:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:06:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:06:05] Production.INFO: Total Charge 0 [2025-03-02 20:06:05] Production.INFO: CreateAllLog End [2025-03-02 20:06:05] Production.INFO: Account Balance End. [2025-03-02 20:06:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:06:05] Production.INFO: ==29589== Releasing lock... [2025-03-02 20:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:06:11] Production.ERROR: CronJobId end10 [2025-03-02 20:06:11] Production.INFO: ==29587== Releasing lock... [2025-03-02 20:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:06:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:06:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:06:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:06:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:06:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:06:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:06:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:06:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:06:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:06:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:06:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:06:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:06:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:06:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:06:14] Production.INFO: call_cost start [2025-03-02 20:06:14] Production.INFO: call_cost end [2025-03-02 20:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:06:14] Production.INFO: ==29583== Releasing lock... [2025-03-02 20:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:06:16] Production.INFO: count ==1443 [2025-03-02 20:06:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:06:04 - End Time 2025-03-02 20:06:04 [2025-03-02 20:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593455', 'tblTempUsageDetail_20' ) start [2025-03-02 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593455', 'tblTempUsageDetail_20' ) end [2025-03-02 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593455', 'tblTempVendorCDR_20' ) start [2025-03-02 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593455', 'tblTempVendorCDR_20' ) end [2025-03-02 20:06:17] Production.INFO: ProcessCDR(1,14593455,1,1,2) [2025-03-02 20:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593455', 'tblTempUsageDetail_20' ) start [2025-03-02 20:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593455', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:06:24] Production.INFO: ==29591== Releasing lock... [2025-03-02 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:06:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:07:01] Production.INFO: ==29666== Lock acquired, processing the job... [2025-03-03 01:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:07:01] Production.INFO: neon service started [2025-03-03 01:07:01] Production.INFO: neon service started [2025-03-03 01:07:01] Production.INFO: ==29666== Releasing lock... [2025-03-03 01:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:07:01] Production.INFO: ==29668== Lock acquired, processing the job... [2025-03-02 20:07:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:07:02] Production.INFO: ==29668== Releasing lock... [2025-03-02 20:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:07:02] Production.INFO: ==29670== Lock acquired, processing the job... [2025-03-03 01:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:07:02] Production.INFO: ==29670== Releasing lock... [2025-03-03 01:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:07:02] Production.INFO: ==29672== Lock acquired, processing the job... [2025-03-02 20:07:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:07:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:07:03] Production.INFO: ==29676== Lock acquired, processing the job... [2025-03-02 20:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:07:03] Production.INFO: ==29678== Lock acquired, processing the job... [2025-03-02 20:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:07:03] Production.INFO: Account Balance Start. [2025-03-02 20:07:03] Production.INFO: CreateAllLog Start [2025-03-02 20:07:03] Production.INFO: 117 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: ==29674== Lock acquired, processing the job... [2025-03-02 20:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:07:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: ==29680== Lock acquired, processing the job... [2025-03-02 20:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:07:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:07:03] Production.INFO: ==29682== Lock acquired, processing the job... [2025-03-02 20:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:07:03] Production.INFO: Date 2025-02-17 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-18 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-19 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-20 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-21 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: ==29674== Releasing lock... [2025-03-02 20:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:07:03] Production.INFO: Date 2025-02-22 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:07:03] Production.INFO: count ==13 [2025-03-02 20:07:03] Production.INFO: Date 2025-02-23 [2025-03-02 20:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:07:03] Production.INFO: count ==21 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593459') start [2025-03-02 20:07:03] Production.INFO: Date 2025-02-24 [2025-03-02 20:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:03] Production.ERROR: done [2025-03-02 20:07:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593459') end [2025-03-02 20:07:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:07:03] Production.INFO: 1 [2025-03-02 20:07:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:07:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:04] Production.INFO: ==29682== Releasing lock... [2025-03-02 20:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:07:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:04] Production.ERROR: done [2025-03-02 20:07:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:07:04] Production.INFO: Total Charge 0 [2025-03-02 20:07:04] Production.INFO: CreateAllLog End [2025-03-02 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:07:04 [end_date_ymd] => 2025-03-02 20:07:04 [RateCDR] => 1 ) [2025-03-02 20:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:07:04' and `end` < '2025-03-02 20:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:07:04] Production.INFO: Account Balance End. [2025-03-02 20:07:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:07:04] Production.INFO: ==29678== Releasing lock... [2025-03-02 20:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:07:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:07:13] Production.ERROR: CronJobId end10 [2025-03-02 20:07:13] Production.INFO: ==29676== Releasing lock... [2025-03-02 20:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:07:15] Production.INFO: call_cost start [2025-03-02 20:07:15] Production.INFO: call_cost end [2025-03-02 20:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:07:15] Production.INFO: ==29672== Releasing lock... [2025-03-02 20:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:07:16] Production.INFO: count ==1444 [2025-03-02 20:07:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:07:04 - End Time 2025-03-02 20:07:04 [2025-03-02 20:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593460', 'tblTempUsageDetail_20' ) start [2025-03-02 20:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593460', 'tblTempUsageDetail_20' ) end [2025-03-02 20:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593460', 'tblTempVendorCDR_20' ) start [2025-03-02 20:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593460', 'tblTempVendorCDR_20' ) end [2025-03-02 20:07:16] Production.INFO: ProcessCDR(1,14593460,1,1,2) [2025-03-02 20:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593460', 'tblTempUsageDetail_20' ) start [2025-03-02 20:07:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593460', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:07:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:07:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:07:23] Production.INFO: ==29680== Releasing lock... [2025-03-02 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:08:02] Production.INFO: ==29757== Lock acquired, processing the job... [2025-03-03 01:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:08:02] Production.INFO: neon service started [2025-03-03 01:08:02] Production.INFO: neon service started [2025-03-03 01:08:02] Production.INFO: ==29757== Releasing lock... [2025-03-03 01:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:08:02] Production.INFO: ==29759== Lock acquired, processing the job... [2025-03-02 20:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:08:02] Production.INFO: ==29759== Releasing lock... [2025-03-02 20:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:08:02] Production.INFO: ==29761== Lock acquired, processing the job... [2025-03-03 01:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:08:02] Production.INFO: ==29761== Releasing lock... [2025-03-03 01:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:08:03] Production.INFO: ==29768== Lock acquired, processing the job... [2025-03-02 20:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:08:03] Production.INFO: ==29774== Lock acquired, processing the job... [2025-03-02 20:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:08:03] Production.INFO: ==29764== Lock acquired, processing the job... [2025-03-02 20:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:08:03] Production.INFO: ==29766== Lock acquired, processing the job... [2025-03-02 20:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:08:04] Production.INFO: count ==13 [2025-03-02 20:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:08:04] Production.INFO: count ==21 [2025-03-02 20:08:04] Production.INFO: ==29770== Lock acquired, processing the job... [2025-03-02 20:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:08:04] Production.INFO: ==29772== Lock acquired, processing the job... [2025-03-02 20:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593461') start [2025-03-02 20:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593461') end [2025-03-02 20:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:08:04] Production.INFO: 1 [2025-03-02 20:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:08:04] Production.INFO: Account Balance Start. [2025-03-02 20:08:04] Production.INFO: CreateAllLog Start [2025-03-02 20:08:04] Production.INFO: 117 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: ==29774== Releasing lock... [2025-03-02 20:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:08:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: ==29766== Releasing lock... [2025-03-02 20:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:08:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.ERROR: done [2025-03-02 20:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.ERROR: done [2025-03-02 20:08:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:08:04 [end_date_ymd] => 2025-03-02 20:08:04 [RateCDR] => 1 ) [2025-03-02 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:08:04' and `end` < '2025-03-02 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:08:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:08:05] Production.INFO: Total Charge 0 [2025-03-02 20:08:05] Production.INFO: CreateAllLog End [2025-03-02 20:08:05] Production.INFO: Account Balance End. [2025-03-02 20:08:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:08:05] Production.INFO: ==29770== Releasing lock... [2025-03-02 20:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:08:12] Production.ERROR: CronJobId end10 [2025-03-02 20:08:12] Production.INFO: ==29768== Releasing lock... [2025-03-02 20:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:08:15] Production.INFO: call_cost start [2025-03-02 20:08:15] Production.INFO: call_cost end [2025-03-02 20:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:08:15] Production.INFO: ==29764== Releasing lock... [2025-03-02 20:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:08:16] Production.INFO: count ==1448 [2025-03-02 20:08:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:08:04 - End Time 2025-03-02 20:08:04 [2025-03-02 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593465', 'tblTempUsageDetail_20' ) start [2025-03-02 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593465', 'tblTempUsageDetail_20' ) end [2025-03-02 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593465', 'tblTempVendorCDR_20' ) start [2025-03-02 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593465', 'tblTempVendorCDR_20' ) end [2025-03-02 20:08:17] Production.INFO: ProcessCDR(1,14593465,1,1,2) [2025-03-02 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593465', 'tblTempUsageDetail_20' ) start [2025-03-02 20:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593465', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:08:24] Production.INFO: ==29772== Releasing lock... [2025-03-02 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:08:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:09:01] Production.INFO: ==29842== Lock acquired, processing the job... [2025-03-03 01:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:09:01] Production.INFO: neon service started [2025-03-03 01:09:01] Production.INFO: neon service started [2025-03-03 01:09:01] Production.INFO: ==29842== Releasing lock... [2025-03-03 01:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:09:01] Production.INFO: ==29844== Lock acquired, processing the job... [2025-03-02 20:09:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:09:02] Production.INFO: ==29844== Releasing lock... [2025-03-02 20:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:09:02] Production.INFO: ==29846== Lock acquired, processing the job... [2025-03-03 01:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:09:02] Production.INFO: ==29846== Releasing lock... [2025-03-03 01:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:09:03] Production.INFO: ==29849== Lock acquired, processing the job... [2025-03-02 20:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:09:03] Production.INFO: ==29851== Lock acquired, processing the job... [2025-03-02 20:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:09:03] Production.INFO: ==29853== Lock acquired, processing the job... [2025-03-02 20:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:09:03] Production.INFO: ==29857== Lock acquired, processing the job... [2025-03-02 20:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:09:03] Production.INFO: ==29859== Lock acquired, processing the job... [2025-03-02 20:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:09:03] Production.INFO: ==29855== Lock acquired, processing the job... [2025-03-02 20:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:09:03] Production.INFO: Account Balance Start. [2025-03-02 20:09:03] Production.INFO: CreateAllLog Start [2025-03-02 20:09:03] Production.INFO: 117 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:09:03] Production.INFO: count ==13 [2025-03-02 20:09:03] Production.ERROR: done [2025-03-02 20:09:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:09:03] Production.INFO: count ==21 [2025-03-02 20:09:03] Production.INFO: ==29851== Releasing lock... [2025-03-02 20:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:09:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:09:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593468') start [2025-03-02 20:09:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.ERROR: done [2025-03-02 20:09:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593468') end [2025-03-02 20:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:09:03] Production.INFO: 1 [2025-03-02 20:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:09:03] Production.INFO: Date 2025-02-17 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: Date 2025-02-18 [2025-03-02 20:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:03] Production.INFO: ==29859== Releasing lock... [2025-03-02 20:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:09:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:09:04 [end_date_ymd] => 2025-03-02 20:09:04 [RateCDR] => 1 ) [2025-03-02 20:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:09:04' and `end` < '2025-03-02 20:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:09:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:09:04] Production.INFO: Total Charge 0 [2025-03-02 20:09:04] Production.INFO: CreateAllLog End [2025-03-02 20:09:04] Production.INFO: Account Balance End. [2025-03-02 20:09:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:09:04] Production.INFO: ==29855== Releasing lock... [2025-03-02 20:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:09:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:09:11] Production.ERROR: CronJobId end10 [2025-03-02 20:09:11] Production.INFO: ==29853== Releasing lock... [2025-03-02 20:09:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:09:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:09:14] Production.INFO: call_cost start [2025-03-02 20:09:14] Production.INFO: call_cost end [2025-03-02 20:09:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:09:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:09:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:09:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:09:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:09:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:09:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:09:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:09:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:09:14] Production.INFO: ==29849== Releasing lock... [2025-03-02 20:09:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:09:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:09:16] Production.INFO: count ==1446 [2025-03-02 20:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:09:04 - End Time 2025-03-02 20:09:04 [2025-03-02 20:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593470', 'tblTempUsageDetail_20' ) start [2025-03-02 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593470', 'tblTempUsageDetail_20' ) end [2025-03-02 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593470', 'tblTempVendorCDR_20' ) start [2025-03-02 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593470', 'tblTempVendorCDR_20' ) end [2025-03-02 20:09:16] Production.INFO: ProcessCDR(1,14593470,1,1,2) [2025-03-02 20:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593470', 'tblTempUsageDetail_20' ) start [2025-03-02 20:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593470', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:09:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:09:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:09:23] Production.INFO: ==29857== Releasing lock... [2025-03-02 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:09:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:10:01] Production.INFO: ==29931== Lock acquired, processing the job... [2025-03-03 01:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:10:01] Production.INFO: neon service started [2025-03-03 01:10:01] Production.INFO: neon service started [2025-03-03 01:10:01] Production.INFO: ==29931== Releasing lock... [2025-03-03 01:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:10:02] Production.INFO: ==29935== Lock acquired, processing the job... [2025-03-03 01:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:10:02] Production.INFO: ==29935== Releasing lock... [2025-03-03 01:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:10:02] Production.INFO: ==29933== Lock acquired, processing the job... [2025-03-02 20:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:10:03] Production.INFO: ==29933== Releasing lock... [2025-03-02 20:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:10:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:10:04] Production.INFO: ==29938== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 20:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 20:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 20:10:04] Production.INFO: ==29938== Releasing lock... [2025-03-02 20:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 20:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:10:04] Production.INFO: ==29940== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: ==29944== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:10:04] Production.INFO: ==29942== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:10:04] Production.INFO: ==29952== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:10:04] Production.INFO: ==29946== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:10:04] Production.INFO: ==29950== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 20:10:04] Production.INFO: ==29948== Lock acquired, processing the job... [2025-03-02 20:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:10:04] Production.INFO: count ==13 [2025-03-02 20:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:10:04] Production.INFO: count ==21 [2025-03-02 20:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593473') start [2025-03-02 20:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:10:04] Production.INFO: Account Balance Start. [2025-03-02 20:10:04] Production.INFO: CreateAllLog Start [2025-03-02 20:10:04] Production.INFO: 117 [2025-03-02 20:10:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593473') end [2025-03-02 20:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:10:04] Production.INFO: 1 [2025-03-02 20:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:04] Production.INFO: ==29952== Releasing lock... [2025-03-02 20:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:10:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.ERROR: done [2025-03-02 20:10:05] Production.INFO: ==29942== Releasing lock... [2025-03-02 20:10:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:10:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:10:05] Production.ERROR: done [2025-03-02 20:10:05] Production.INFO: Date 2025-02-12 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-13 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.ERROR: done [2025-03-02 20:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 20:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593475', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 20:10:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:10:05 [end_date_ymd] => 2025-03-02 20:10:05 [RateCDR] => 1 ) [2025-03-02 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:10:05' and `end` < '2025-03-02 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:10:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:10:05] Production.INFO: Total Charge 0 [2025-03-02 20:10:05] Production.INFO: CreateAllLog End [2025-03-02 20:10:06] Production.INFO: Account Balance End. [2025-03-02 20:10:06] Production.ERROR: CronJobId end 12 [2025-03-02 20:10:06] Production.INFO: ==29946== Releasing lock... [2025-03-02 20:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593475', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 20:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 20:10:09] Production.INFO: ProcessCDR(1,14593475,1,1,2) [2025-03-02 20:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593475,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593475,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 20:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 20:10:09] Production.INFO: ==29950== Releasing lock... [2025-03-02 20:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 20:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 20:10:14] Production.ERROR: CronJobId end10 [2025-03-02 20:10:14] Production.INFO: ==29944== Releasing lock... [2025-03-02 20:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:10:16] Production.INFO: call_cost start [2025-03-02 20:10:16] Production.INFO: call_cost end [2025-03-02 20:10:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:10:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:10:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:10:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:10:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:10:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:10:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:10:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:10:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:10:16] Production.INFO: ==29940== Releasing lock... [2025-03-02 20:10:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:10:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:10:17] Production.INFO: count ==1444 [2025-03-02 20:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:10:05 - End Time 2025-03-02 20:10:05 [2025-03-02 20:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593476', 'tblTempUsageDetail_20' ) start [2025-03-02 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593476', 'tblTempUsageDetail_20' ) end [2025-03-02 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593476', 'tblTempVendorCDR_20' ) start [2025-03-02 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593476', 'tblTempVendorCDR_20' ) end [2025-03-02 20:10:17] Production.INFO: ProcessCDR(1,14593476,1,1,2) [2025-03-02 20:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593476', 'tblTempUsageDetail_20' ) start [2025-03-02 20:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593476', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:10:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:10:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:10:24] Production.INFO: ==29948== Releasing lock... [2025-03-02 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:10:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:11:01] Production.INFO: ==30029== Lock acquired, processing the job... [2025-03-03 01:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:11:01] Production.INFO: neon service started [2025-03-03 01:11:01] Production.INFO: neon service started [2025-03-03 01:11:01] Production.INFO: ==30029== Releasing lock... [2025-03-03 01:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:11:02] Production.INFO: ==30031== Lock acquired, processing the job... [2025-03-02 20:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:11:02] Production.INFO: ==30033== Lock acquired, processing the job... [2025-03-03 01:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:11:02] Production.INFO: ==30033== Releasing lock... [2025-03-03 01:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:11:02] Production.INFO: ==30031== Releasing lock... [2025-03-02 20:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:11:03] Production.INFO: ==30040== Lock acquired, processing the job... [2025-03-02 20:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:11:03] Production.INFO: ==30044== Lock acquired, processing the job... [2025-03-02 20:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:11:03] Production.INFO: ==30042== Lock acquired, processing the job... [2025-03-02 20:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:11:03] Production.INFO: Account Balance Start. [2025-03-02 20:11:03] Production.INFO: CreateAllLog Start [2025-03-02 20:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:11:03] Production.INFO: 117 [2025-03-02 20:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:11:03] Production.INFO: ==30038== Lock acquired, processing the job... [2025-03-02 20:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:11:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: ==30048== Lock acquired, processing the job... [2025-03-02 20:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:11:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: ==30040== Releasing lock... [2025-03-02 20:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:11:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:11:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: ==30046== Lock acquired, processing the job... [2025-03-02 20:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:11:03] Production.INFO: count ==13 [2025-03-02 20:11:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:11:03] Production.INFO: count ==21 [2025-03-02 20:11:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593480') start [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:03] Production.INFO: Date 2025-02-17 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593480') end [2025-03-02 20:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:11:04] Production.INFO: 1 [2025-03-02 20:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:11:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:11:04] Production.INFO: ==30048== Releasing lock... [2025-03-02 20:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.ERROR: done [2025-03-02 20:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.ERROR: done [2025-03-02 20:11:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:11:04 [end_date_ymd] => 2025-03-02 20:11:04 [RateCDR] => 1 ) [2025-03-02 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:11:04' and `end` < '2025-03-02 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:11:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:11:04] Production.INFO: Total Charge 0 [2025-03-02 20:11:04] Production.INFO: CreateAllLog End [2025-03-02 20:11:04] Production.INFO: Account Balance End. [2025-03-02 20:11:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:11:05] Production.INFO: ==30044== Releasing lock... [2025-03-02 20:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:11:11] Production.ERROR: CronJobId end10 [2025-03-02 20:11:11] Production.INFO: ==30042== Releasing lock... [2025-03-02 20:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:11:14] Production.INFO: call_cost start [2025-03-02 20:11:14] Production.INFO: call_cost end [2025-03-02 20:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:11:14] Production.INFO: ==30038== Releasing lock... [2025-03-02 20:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:11:16] Production.INFO: count ==1419 [2025-03-02 20:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:11:04 - End Time 2025-03-02 20:11:04 [2025-03-02 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593481', 'tblTempUsageDetail_20' ) start [2025-03-02 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593481', 'tblTempUsageDetail_20' ) end [2025-03-02 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593481', 'tblTempVendorCDR_20' ) start [2025-03-02 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593481', 'tblTempVendorCDR_20' ) end [2025-03-02 20:11:17] Production.INFO: ProcessCDR(1,14593481,1,1,2) [2025-03-02 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593481', 'tblTempUsageDetail_20' ) start [2025-03-02 20:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593481', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:11:24] Production.INFO: ==30046== Releasing lock... [2025-03-02 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:11:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:12:01] Production.INFO: ==30122== Lock acquired, processing the job... [2025-03-03 01:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:12:01] Production.INFO: neon service started [2025-03-03 01:12:01] Production.INFO: neon service started [2025-03-03 01:12:01] Production.INFO: ==30122== Releasing lock... [2025-03-03 01:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:12:02] Production.INFO: ==30124== Lock acquired, processing the job... [2025-03-02 20:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:12:02] Production.INFO: ==30124== Releasing lock... [2025-03-02 20:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:12:02] Production.INFO: ==30126== Lock acquired, processing the job... [2025-03-03 01:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:12:02] Production.INFO: ==30126== Releasing lock... [2025-03-03 01:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:12:03] Production.INFO: ==30130== Lock acquired, processing the job... [2025-03-02 20:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:12:03] Production.INFO: ==30128== Lock acquired, processing the job... [2025-03-02 20:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:12:03] Production.INFO: ==30132== Lock acquired, processing the job... [2025-03-02 20:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:12:03] Production.INFO: ==30134== Lock acquired, processing the job... [2025-03-02 20:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:12:03] Production.INFO: ==30136== Lock acquired, processing the job... [2025-03-02 20:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:12:03] Production.INFO: ==30138== Lock acquired, processing the job... [2025-03-02 20:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:12:03] Production.INFO: Account Balance Start. [2025-03-02 20:12:03] Production.INFO: CreateAllLog Start [2025-03-02 20:12:03] Production.INFO: 117 [2025-03-02 20:12:03] Production.INFO: ==30130== Releasing lock... [2025-03-02 20:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:12:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:12:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:12:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: count ==13 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:12:04] Production.INFO: count ==21 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593485') start [2025-03-02 20:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593485') end [2025-03-02 20:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:12:04] Production.INFO: 1 [2025-03-02 20:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:12:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.ERROR: done [2025-03-02 20:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:12:04] Production.INFO: ==30138== Releasing lock... [2025-03-02 20:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:12:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.ERROR: done [2025-03-02 20:12:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:12:04 [end_date_ymd] => 2025-03-02 20:12:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:12:04' and `end` < '2025-03-02 20: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-03-02 20:12:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:12:05] Production.INFO: Total Charge 0 [2025-03-02 20:12:05] Production.INFO: CreateAllLog End [2025-03-02 20:12:05] Production.INFO: Account Balance End. [2025-03-02 20:12:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:12:05] Production.INFO: ==30134== Releasing lock... [2025-03-02 20:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:12:14] Production.ERROR: CronJobId end10 [2025-03-02 20:12:14] Production.INFO: ==30132== Releasing lock... [2025-03-02 20:12:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:12:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:12:15] Production.INFO: call_cost start [2025-03-02 20:12:15] Production.INFO: call_cost end [2025-03-02 20:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:12:15] Production.INFO: ==30128== Releasing lock... [2025-03-02 20:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:12:16] Production.INFO: count ==1415 [2025-03-02 20:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:12:04 - End Time 2025-03-02 20:12:04 [2025-03-02 20:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593486', 'tblTempUsageDetail_20' ) start [2025-03-02 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593486', 'tblTempUsageDetail_20' ) end [2025-03-02 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593486', 'tblTempVendorCDR_20' ) start [2025-03-02 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593486', 'tblTempVendorCDR_20' ) end [2025-03-02 20:12:17] Production.INFO: ProcessCDR(1,14593486,1,1,2) [2025-03-02 20:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593486', 'tblTempUsageDetail_20' ) start [2025-03-02 20:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593486', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:12:24] Production.INFO: ==30136== Releasing lock... [2025-03-02 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:12:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:13:02] Production.INFO: ==30219== Lock acquired, processing the job... [2025-03-03 01:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:13:02] Production.INFO: neon service started [2025-03-03 01:13:02] Production.INFO: neon service started [2025-03-03 01:13:02] Production.INFO: ==30219== Releasing lock... [2025-03-03 01:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:13:02] Production.INFO: ==30221== Lock acquired, processing the job... [2025-03-02 20:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:13:02] Production.INFO: ==30221== Releasing lock... [2025-03-02 20:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:13:03] Production.INFO: ==30223== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:13:03] Production.INFO: ==30223== Releasing lock... [2025-03-03 01:13:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:13:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:13:03] Production.INFO: ==30225== Lock acquired, processing the job... [2025-03-02 20:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:13:03] Production.INFO: ==30227== Lock acquired, processing the job... [2025-03-02 20:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:13:03] Production.INFO: ==30229== Lock acquired, processing the job... [2025-03-02 20:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:13:04] Production.INFO: ==30231== Lock acquired, processing the job... [2025-03-02 20:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:13:04] Production.INFO: ==30233== Lock acquired, processing the job... [2025-03-02 20:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:13:04] Production.INFO: ==30235== Lock acquired, processing the job... [2025-03-02 20:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:13:04] Production.INFO: Account Balance Start. [2025-03-02 20:13:04] Production.INFO: CreateAllLog Start [2025-03-02 20:13:04] Production.INFO: ==30227== Releasing lock... [2025-03-02 20:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:13:04] Production.INFO: 117 [2025-03-02 20:13:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:13:04] Production.INFO: count ==13 [2025-03-02 20:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:13:04] Production.INFO: count ==21 [2025-03-02 20:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593490') start [2025-03-02 20:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593490') end [2025-03-02 20:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:13:04] Production.INFO: 1 [2025-03-02 20:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:13:04] Production.ERROR: done [2025-03-02 20:13:04] Production.INFO: ==30235== Releasing lock... [2025-03-02 20:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-09 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-10 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-11 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-12 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-13 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.ERROR: done [2025-03-02 20:13:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:13:05 [end_date_ymd] => 2025-03-02 20:13:05 [RateCDR] => 1 ) [2025-03-02 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:13:05' and `end` < '2025-03-02 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:13:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:13:05] Production.INFO: Total Charge 0 [2025-03-02 20:13:05] Production.INFO: CreateAllLog End [2025-03-02 20:13:05] Production.INFO: Account Balance End. [2025-03-02 20:13:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:13:05] Production.INFO: ==30231== Releasing lock... [2025-03-02 20:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:13:13] Production.ERROR: CronJobId end10 [2025-03-02 20:13:13] Production.INFO: ==30229== Releasing lock... [2025-03-02 20:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:13:15] Production.INFO: call_cost start [2025-03-02 20:13:15] Production.INFO: call_cost end [2025-03-02 20:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:13:15] Production.INFO: ==30225== Releasing lock... [2025-03-02 20:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:13:17] Production.INFO: count ==1410 [2025-03-02 20:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:13:05 - End Time 2025-03-02 20:13:05 [2025-03-02 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593491', 'tblTempUsageDetail_20' ) start [2025-03-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593491', 'tblTempUsageDetail_20' ) end [2025-03-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593491', 'tblTempVendorCDR_20' ) start [2025-03-02 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593491', 'tblTempVendorCDR_20' ) end [2025-03-02 20:13:17] Production.INFO: ProcessCDR(1,14593491,1,1,2) [2025-03-02 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593491', 'tblTempUsageDetail_20' ) start [2025-03-02 20:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593491', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:13:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:13:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:13:25] Production.INFO: ==30233== Releasing lock... [2025-03-02 20:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:13:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:14:01] Production.INFO: ==30358== Lock acquired, processing the job... [2025-03-03 01:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:14:01] Production.INFO: neon service started [2025-03-03 01:14:01] Production.INFO: neon service started [2025-03-03 01:14:01] Production.INFO: ==30358== Releasing lock... [2025-03-03 01:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:14:02] Production.INFO: ==30362== Lock acquired, processing the job... [2025-03-03 01:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:14:02] Production.INFO: ==30362== Releasing lock... [2025-03-03 01:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:14:02] Production.INFO: ==30360== Lock acquired, processing the job... [2025-03-02 20:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:14:02] Production.INFO: ==30360== Releasing lock... [2025-03-02 20:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:14:03] Production.INFO: ==30365== Lock acquired, processing the job... [2025-03-02 20:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:14:03] Production.INFO: ==30371== Lock acquired, processing the job... [2025-03-02 20:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:14:03] Production.INFO: ==30373== Lock acquired, processing the job... [2025-03-02 20:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:14:03] Production.INFO: Account Balance Start. [2025-03-02 20:14:03] Production.INFO: CreateAllLog Start [2025-03-02 20:14:03] Production.INFO: 117 [2025-03-02 20:14:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:03] Production.INFO: ==30367== Lock acquired, processing the job... [2025-03-02 20:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:14:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:03] Production.INFO: ==30369== Lock acquired, processing the job... [2025-03-02 20:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:14:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:03] Production.INFO: ==30375== Lock acquired, processing the job... [2025-03-02 20:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:14:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:14:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:14:04] Production.INFO: count ==13 [2025-03-02 20:14:04] Production.ERROR: done [2025-03-02 20:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:14:04] Production.INFO: count ==21 [2025-03-02 20:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593495') start [2025-03-02 20:14:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: ==30367== Releasing lock... [2025-03-02 20:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:14:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593495') end [2025-03-02 20:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:14:04] Production.INFO: 1 [2025-03-02 20:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:14:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: ==30375== Releasing lock... [2025-03-02 20:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:14:04] Production.ERROR: done [2025-03-02 20:14:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:14:04 [end_date_ymd] => 2025-03-02 20:14:04 [RateCDR] => 1 ) [2025-03-02 20:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:14:04' and `end` < '2025-03-02 20:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:14:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:14:04] Production.INFO: Total Charge 0 [2025-03-02 20:14:04] Production.INFO: CreateAllLog End [2025-03-02 20:14:05] Production.INFO: Account Balance End. [2025-03-02 20:14:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:14:05] Production.INFO: ==30371== Releasing lock... [2025-03-02 20:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:14:13] Production.ERROR: CronJobId end10 [2025-03-02 20:14:13] Production.INFO: ==30369== Releasing lock... [2025-03-02 20:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:14:15] Production.INFO: call_cost start [2025-03-02 20:14:15] Production.INFO: call_cost end [2025-03-02 20:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:14:15] Production.INFO: ==30365== Releasing lock... [2025-03-02 20:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:14:16] Production.INFO: count ==1410 [2025-03-02 20:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:14:04 - End Time 2025-03-02 20:14:04 [2025-03-02 20:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593496', 'tblTempUsageDetail_20' ) start [2025-03-02 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593496', 'tblTempUsageDetail_20' ) end [2025-03-02 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593496', 'tblTempVendorCDR_20' ) start [2025-03-02 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593496', 'tblTempVendorCDR_20' ) end [2025-03-02 20:14:17] Production.INFO: ProcessCDR(1,14593496,1,1,2) [2025-03-02 20:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593496', 'tblTempUsageDetail_20' ) start [2025-03-02 20:14:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593496', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:14:24] Production.INFO: ==30373== Releasing lock... [2025-03-02 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:14:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:15:02] Production.INFO: ==30465== Lock acquired, processing the job... [2025-03-03 01:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:15:02] Production.INFO: neon service started [2025-03-03 01:15:02] Production.INFO: neon service started [2025-03-03 01:15:02] Production.INFO: ==30465== Releasing lock... [2025-03-03 01:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:15:02] Production.INFO: ==30467== Lock acquired, processing the job... [2025-03-02 20:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:15:02] Production.INFO: ==30467== Releasing lock... [2025-03-02 20:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:15:03] Production.INFO: ==30469== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:15:03] Production.INFO: ==30469== Releasing lock... [2025-03-03 01:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:15:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:15:03] Production.INFO: ==30473== Lock acquired, processing the job... [2025-03-02 20:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:15:03] Production.INFO: ==30477== Lock acquired, processing the job... [2025-03-02 20:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:15:03] Production.INFO: ==30481== Lock acquired, processing the job... [2025-03-02 20:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:15:04] Production.INFO: ==30475== Lock acquired, processing the job... [2025-03-02 20:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:15:04] Production.INFO: ==30483== Lock acquired, processing the job... [2025-03-02 20:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:15:04] Production.INFO: ==30479== Lock acquired, processing the job... [2025-03-02 20:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:15:04] Production.INFO: Account Balance Start. [2025-03-02 20:15:04] Production.INFO: CreateAllLog Start [2025-03-02 20:15:04] Production.INFO: 117 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:15:04] Production.INFO: count ==13 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.ERROR: done [2025-03-02 20:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:15:04] Production.INFO: count ==21 [2025-03-02 20:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593499') start [2025-03-02 20:15:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.ERROR: done [2025-03-02 20:15:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593499') end [2025-03-02 20:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:15:04] Production.INFO: 1 [2025-03-02 20:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:15:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: ==30475== Releasing lock... [2025-03-02 20:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:15:04] Production.INFO: ==30483== Releasing lock... [2025-03-02 20:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:15:04 [end_date_ymd] => 2025-03-02 20:15:04 [RateCDR] => 1 ) [2025-03-02 20:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:15:04' and `end` < '2025-03-02 20:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:15:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:15:05] Production.INFO: Total Charge 0 [2025-03-02 20:15:05] Production.INFO: CreateAllLog End [2025-03-02 20:15:05] Production.INFO: Account Balance End. [2025-03-02 20:15:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:15:05] Production.INFO: ==30479== Releasing lock... [2025-03-02 20:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:15:12] Production.ERROR: CronJobId end10 [2025-03-02 20:15:12] Production.INFO: ==30477== Releasing lock... [2025-03-02 20:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:15:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:15:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:15:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:15:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:15:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:15:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:15:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:15:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:15:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:15:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:15:14] Production.INFO: call_cost start [2025-03-02 20:15:14] Production.INFO: call_cost end [2025-03-02 20:15:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:15:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:15:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:15:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:15:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:15:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:15:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:15:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:15:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:15:14] Production.INFO: ==30473== Releasing lock... [2025-03-02 20:15:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:15:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:15:16] Production.INFO: count ==1406 [2025-03-02 20:15:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:15:04 - End Time 2025-03-02 20:15:04 [2025-03-02 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593501', 'tblTempUsageDetail_20' ) start [2025-03-02 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593501', 'tblTempUsageDetail_20' ) end [2025-03-02 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593501', 'tblTempVendorCDR_20' ) start [2025-03-02 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593501', 'tblTempVendorCDR_20' ) end [2025-03-02 20:15:17] Production.INFO: ProcessCDR(1,14593501,1,1,2) [2025-03-02 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593501', 'tblTempUsageDetail_20' ) start [2025-03-02 20:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593501', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:15:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:15:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:15:25] Production.INFO: ==30481== Releasing lock... [2025-03-02 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:15:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:16:01] Production.INFO: ==30565== Lock acquired, processing the job... [2025-03-03 01:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:16:01] Production.INFO: neon service started [2025-03-03 01:16:01] Production.INFO: neon service started [2025-03-03 01:16:01] Production.INFO: ==30565== Releasing lock... [2025-03-03 01:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:16:02] Production.INFO: ==30567== Lock acquired, processing the job... [2025-03-02 20:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:16:02] Production.INFO: ==30567== Releasing lock... [2025-03-02 20:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:16:02] Production.INFO: ==30569== Lock acquired, processing the job... [2025-03-03 01:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:16:02] Production.INFO: ==30569== Releasing lock... [2025-03-03 01:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:16:03] Production.INFO: ==30574== Lock acquired, processing the job... [2025-03-02 20:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:16:03] Production.INFO: ==30576== Lock acquired, processing the job... [2025-03-02 20:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:16:03] Production.INFO: ==30578== Lock acquired, processing the job... [2025-03-02 20:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:16:03] Production.INFO: ==30576== Releasing lock... [2025-03-02 20:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:16:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:16:03] Production.INFO: ==30584== Lock acquired, processing the job... [2025-03-02 20:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:16:03] Production.INFO: ==30580== Lock acquired, processing the job... [2025-03-02 20:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:16:03] Production.INFO: ==30582== Lock acquired, processing the job... [2025-03-02 20:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:16:03] Production.INFO: Account Balance Start. [2025-03-02 20:16:03] Production.INFO: CreateAllLog Start [2025-03-02 20:16:03] Production.INFO: 117 [2025-03-02 20:16:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:03] Production.INFO: count ==13 [2025-03-02 20:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:16:03] Production.INFO: count ==21 [2025-03-02 20:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593504') start [2025-03-02 20:16:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593504') end [2025-03-02 20:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:16:04] Production.INFO: 1 [2025-03-02 20:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:16:04] Production.INFO: ==30584== Releasing lock... [2025-03-02 20:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:16:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.ERROR: done [2025-03-02 20:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.ERROR: done [2025-03-02 20:16:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:16:04 [end_date_ymd] => 2025-03-02 20:16:04 [RateCDR] => 1 ) [2025-03-02 20:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:16:04' and `end` < '2025-03-02 20:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:16:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:16:05] Production.INFO: Total Charge 0 [2025-03-02 20:16:05] Production.INFO: CreateAllLog End [2025-03-02 20:16:05] Production.INFO: Account Balance End. [2025-03-02 20:16:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:16:05] Production.INFO: ==30580== Releasing lock... [2025-03-02 20:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:16:13] Production.ERROR: CronJobId end10 [2025-03-02 20:16:13] Production.INFO: ==30578== Releasing lock... [2025-03-02 20:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:16:15] Production.INFO: call_cost start [2025-03-02 20:16:15] Production.INFO: call_cost end [2025-03-02 20:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:16:15] Production.INFO: ==30574== Releasing lock... [2025-03-02 20:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:16:16] Production.INFO: count ==1405 [2025-03-02 20:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:16:04 - End Time 2025-03-02 20:16:04 [2025-03-02 20:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593506', 'tblTempUsageDetail_20' ) start [2025-03-02 20:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593506', 'tblTempUsageDetail_20' ) end [2025-03-02 20:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593506', 'tblTempVendorCDR_20' ) start [2025-03-02 20:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593506', 'tblTempVendorCDR_20' ) end [2025-03-02 20:16:16] Production.INFO: ProcessCDR(1,14593506,1,1,2) [2025-03-02 20:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593506', 'tblTempUsageDetail_20' ) start [2025-03-02 20:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593506', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:16:24] Production.INFO: ==30582== Releasing lock... [2025-03-02 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:16:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-03 01:17:02] Production.INFO: ==30652== Lock acquired, processing the job... [2025-03-03 01:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:17:02] Production.INFO: neon service started [2025-03-03 01:17:02] Production.INFO: neon service started [2025-03-03 01:17:02] Production.INFO: ==30652== Releasing lock... [2025-03-03 01:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:17:02] Production.INFO: ==30654== Lock acquired, processing the job... [2025-03-02 20:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:17:02] Production.INFO: ==30654== Releasing lock... [2025-03-02 20:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:17:03] Production.INFO: ==30656== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:17:03] Production.INFO: ==30656== Releasing lock... [2025-03-03 01:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:17:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:17:03] Production.INFO: ==30659== Lock acquired, processing the job... [2025-03-02 20:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:17:03] Production.INFO: ==30661== Lock acquired, processing the job... [2025-03-02 20:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:17:03] Production.INFO: ==30663== Lock acquired, processing the job... [2025-03-02 20:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:17:04] Production.INFO: ==30665== Lock acquired, processing the job... [2025-03-02 20:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:17:04] Production.INFO: Account Balance Start. [2025-03-02 20:17:04] Production.INFO: CreateAllLog Start [2025-03-02 20:17:04] Production.INFO: 117 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:17:04] Production.INFO: ==30667== Lock acquired, processing the job... [2025-03-02 20:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: ==30669== Lock acquired, processing the job... [2025-03-02 20:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:17:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: ==30661== Releasing lock... [2025-03-02 20:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:17:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:17:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: count ==13 [2025-03-02 20:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:17:04] Production.INFO: count ==21 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593510') start [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.ERROR: done [2025-03-02 20:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593510') end [2025-03-02 20:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:17:04] Production.INFO: 1 [2025-03-02 20:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:17:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.INFO: ==30669== Releasing lock... [2025-03-02 20:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:17:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:04] Production.ERROR: done [2025-03-02 20:17:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:17:05 [end_date_ymd] => 2025-03-02 20:17:05 [RateCDR] => 1 ) [2025-03-02 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:17:05' and `end` < '2025-03-02 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:17:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:17:05] Production.INFO: Total Charge 0 [2025-03-02 20:17:05] Production.INFO: CreateAllLog End [2025-03-02 20:17:05] Production.INFO: Account Balance End. [2025-03-02 20:17:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:17:05] Production.INFO: ==30665== Releasing lock... [2025-03-02 20:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:17:13] Production.ERROR: CronJobId end10 [2025-03-02 20:17:13] Production.INFO: ==30663== Releasing lock... [2025-03-02 20:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:17:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:17:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:17:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:17:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:17:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:17:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:17:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:17:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:17:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:17:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:17:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:17:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:17:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:17:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:17:15] Production.INFO: call_cost start [2025-03-02 20:17:15] Production.INFO: call_cost end [2025-03-02 20:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:17:15] Production.INFO: ==30659== Releasing lock... [2025-03-02 20:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:17:17] Production.INFO: count ==1400 [2025-03-02 20:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:17:05 - End Time 2025-03-02 20:17:05 [2025-03-02 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593511', 'tblTempUsageDetail_20' ) start [2025-03-02 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593511', 'tblTempUsageDetail_20' ) end [2025-03-02 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593511', 'tblTempVendorCDR_20' ) start [2025-03-02 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593511', 'tblTempVendorCDR_20' ) end [2025-03-02 20:17:17] Production.INFO: ProcessCDR(1,14593511,1,1,2) [2025-03-02 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593511', 'tblTempUsageDetail_20' ) start [2025-03-02 20:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593511', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:17:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:17:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:17:25] Production.INFO: ==30667== Releasing lock... [2025-03-02 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:17:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:18:01] Production.INFO: ==30753== Lock acquired, processing the job... [2025-03-03 01:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:18:01] Production.INFO: neon service started [2025-03-03 01:18:01] Production.INFO: neon service started [2025-03-03 01:18:01] Production.INFO: ==30753== Releasing lock... [2025-03-03 01:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:18:02] Production.INFO: ==30757== Lock acquired, processing the job... [2025-03-03 01:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:18:02] Production.INFO: ==30757== Releasing lock... [2025-03-03 01:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:18:02] Production.INFO: ==30755== Lock acquired, processing the job... [2025-03-02 20:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:18:02] Production.INFO: ==30755== Releasing lock... [2025-03-02 20:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:18:03] Production.INFO: ==30760== Lock acquired, processing the job... [2025-03-02 20:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:18:03] Production.INFO: ==30762== Lock acquired, processing the job... [2025-03-02 20:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:18:03] Production.INFO: ==30766== Lock acquired, processing the job... [2025-03-02 20:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:18:03] Production.INFO: ==30764== Lock acquired, processing the job... [2025-03-02 20:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:18:03] Production.INFO: Account Balance Start. [2025-03-02 20:18:03] Production.INFO: CreateAllLog Start [2025-03-02 20:18:03] Production.INFO: 117 [2025-03-02 20:18:03] Production.INFO: ==30762== Releasing lock... [2025-03-02 20:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:18:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:03] Production.INFO: ==30768== Lock acquired, processing the job... [2025-03-02 20:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:18:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:18:03] Production.INFO: ==30770== Lock acquired, processing the job... [2025-03-02 20:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:18:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:18:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: count ==13 [2025-03-02 20:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:18:04] Production.INFO: count ==21 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593515') start [2025-03-02 20:18:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593515') end [2025-03-02 20:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:18:04] Production.INFO: 1 [2025-03-02 20:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:18:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: ==30770== Releasing lock... [2025-03-02 20:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:18:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.ERROR: done [2025-03-02 20:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.ERROR: done [2025-03-02 20:18:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:18:04 [end_date_ymd] => 2025-03-02 20:18:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:18:04' and `end` < '2025-03-02 20: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-03-02 20:18:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:18:05] Production.INFO: Total Charge 0 [2025-03-02 20:18:05] Production.INFO: CreateAllLog End [2025-03-02 20:18:05] Production.INFO: Account Balance End. [2025-03-02 20:18:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:18:05] Production.INFO: ==30766== Releasing lock... [2025-03-02 20:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:18:12] Production.ERROR: CronJobId end10 [2025-03-02 20:18:12] Production.INFO: ==30764== Releasing lock... [2025-03-02 20:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:18:14] Production.INFO: call_cost start [2025-03-02 20:18:14] Production.INFO: call_cost end [2025-03-02 20:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:18:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:18:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:18:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:18:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:18:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:18:15] Production.INFO: ==30760== Releasing lock... [2025-03-02 20:18:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:18:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:18:17] Production.INFO: count ==1394 [2025-03-02 20:18:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:18:04 - End Time 2025-03-02 20:18:04 [2025-03-02 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593516', 'tblTempUsageDetail_20' ) start [2025-03-02 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593516', 'tblTempUsageDetail_20' ) end [2025-03-02 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593516', 'tblTempVendorCDR_20' ) start [2025-03-02 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593516', 'tblTempVendorCDR_20' ) end [2025-03-02 20:18:17] Production.INFO: ProcessCDR(1,14593516,1,1,2) [2025-03-02 20:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593516', 'tblTempUsageDetail_20' ) start [2025-03-02 20:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593516', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:18:24] Production.INFO: ==30768== Releasing lock... [2025-03-02 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:18:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:19:02] Production.INFO: ==30872== Lock acquired, processing the job... [2025-03-03 01:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:19:02] Production.INFO: neon service started [2025-03-03 01:19:02] Production.INFO: neon service started [2025-03-03 01:19:02] Production.INFO: ==30872== Releasing lock... [2025-03-03 01:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:19:02] Production.INFO: ==30874== Lock acquired, processing the job... [2025-03-02 20:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:19:02] Production.INFO: ==30876== Lock acquired, processing the job... [2025-03-03 01:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 20:19:02] Production.INFO: ==30874== Releasing lock... [2025-03-02 20:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:19:02] Production.INFO: ==30876== Releasing lock... [2025-03-03 01:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:19:03] Production.INFO: ==30886== Lock acquired, processing the job... [2025-03-02 20:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:19:03] Production.INFO: ==30888== Lock acquired, processing the job... [2025-03-02 20:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:19:03] Production.INFO: ==30878== Lock acquired, processing the job... [2025-03-02 20:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:19:03] Production.INFO: ==30880== Lock acquired, processing the job... [2025-03-02 20:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:19:03] Production.INFO: count ==13 [2025-03-02 20:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:19:03] Production.INFO: count ==21 [2025-03-02 20:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593517') start [2025-03-02 20:19:03] Production.INFO: ==30882== Lock acquired, processing the job... [2025-03-02 20:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:19:03] Production.INFO: ==30884== Lock acquired, processing the job... [2025-03-02 20:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:19:04] Production.ERROR: done [2025-03-02 20:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:19:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593517') end [2025-03-02 20:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:19:04] Production.INFO: 1 [2025-03-02 20:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:19:04] Production.INFO: Account Balance Start. [2025-03-02 20:19:04] Production.INFO: CreateAllLog Start [2025-03-02 20:19:04] Production.INFO: 117 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:19:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: ==30888== Releasing lock... [2025-03-02 20:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:19:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.ERROR: done [2025-03-02 20:19:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:19:04 [end_date_ymd] => 2025-03-02 20:19:04 [RateCDR] => 1 ) [2025-03-02 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:19:04' and `end` < '2025-03-02 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:19:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: ==30880== Releasing lock... [2025-03-02 20:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:19:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:19:04] Production.INFO: Total Charge 0 [2025-03-02 20:19:04] Production.INFO: CreateAllLog End [2025-03-02 20:19:04] Production.INFO: Account Balance End. [2025-03-02 20:19:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:19:04] Production.INFO: ==30884== Releasing lock... [2025-03-02 20:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:19:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:19:11] Production.ERROR: CronJobId end10 [2025-03-02 20:19:11] Production.INFO: ==30882== Releasing lock... [2025-03-02 20:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:19:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:19:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:19:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:19:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:19:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:19:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:19:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:19:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:19:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:19:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:19:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:19:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:19:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:19:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:19:13] Production.INFO: call_cost start [2025-03-02 20:19:13] Production.INFO: call_cost end [2025-03-02 20:19:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:19:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:19:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:19:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:19:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:19:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:19:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:19:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:19:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:19:13] Production.INFO: ==30878== Releasing lock... [2025-03-02 20:19:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:19:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:19:16] Production.INFO: count ==1394 [2025-03-02 20:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:19:04 - End Time 2025-03-02 20:19:04 [2025-03-02 20:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593521', 'tblTempUsageDetail_20' ) start [2025-03-02 20:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593521', 'tblTempUsageDetail_20' ) end [2025-03-02 20:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593521', 'tblTempVendorCDR_20' ) start [2025-03-02 20:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593521', 'tblTempVendorCDR_20' ) end [2025-03-02 20:19:16] Production.INFO: ProcessCDR(1,14593521,1,1,2) [2025-03-02 20:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593521', 'tblTempUsageDetail_20' ) start [2025-03-02 20:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593521', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:19:24] Production.INFO: ==30886== Releasing lock... [2025-03-02 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:19:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-03 01:20:01] Production.INFO: ==30955== Lock acquired, processing the job... [2025-03-03 01:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:20:01] Production.INFO: neon service started [2025-03-03 01:20:01] Production.INFO: neon service started [2025-03-03 01:20:01] Production.INFO: ==30955== Releasing lock... [2025-03-03 01:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:20:01] Production.INFO: ==30957== Lock acquired, processing the job... [2025-03-02 20:20:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:20:02] Production.INFO: ==30957== Releasing lock... [2025-03-02 20:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:20:02] Production.INFO: ==30959== Lock acquired, processing the job... [2025-03-03 01:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:20:02] Production.INFO: ==30959== Releasing lock... [2025-03-03 01:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:20:03] Production.INFO: ==30961== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 20:20:03] Production.INFO: ==30963== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 20:20:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 20:20:03] Production.ERROR: CronJob PID - 30963 [2025-03-02 20:20:03] Production.ERROR: CronJob Title - System Alerts [2025-03-02 20:20:03] Production.ERROR: CronJob ID - 5 [2025-03-02 20:20:03] Production.ERROR: CronJob Last Run Time 2025-03-02 20:20:00 [2025-03-02 20:20:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 20:20:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 20:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 20:20:03] Production.INFO: ==30961== Releasing lock... [2025-03-02 20:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 20:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:20:03] Production.INFO: ==30965== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:20:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:20:03] Production.INFO: ==30967== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:20:03] Production.INFO: ==30969== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:20:03] Production.INFO: ==30971== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:20:03] Production.INFO: ==30974== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 20:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:20:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:20:03] Production.INFO: ==30976== Lock acquired, processing the job... [2025-03-02 20:20:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:20:03] Production.INFO: Account Balance Start. [2025-03-02 20:20:03] Production.INFO: CreateAllLog Start [2025-03-02 20:20:03] Production.INFO: 117 [2025-03-02 20:20:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:20:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: count ==13 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:20:04] Production.ERROR: done [2025-03-02 20:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:20:04] Production.INFO: count ==21 [2025-03-02 20:20:04] Production.INFO: ==30965== Releasing lock... [2025-03-02 20:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593525') start [2025-03-02 20:20:04] Production.ERROR: done [2025-03-02 20:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 20:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593526', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 20:20:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.ERROR: done [2025-03-02 20:20:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:20:04 [end_date_ymd] => 2025-03-02 20:20:04 [RateCDR] => 1 ) [2025-03-02 20:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:20:04' and `end` < '2025-03-02 20:20:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:20:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593525') end [2025-03-02 20:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:20:04] Production.INFO: 1 [2025-03-02 20:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:20:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: ==30976== Releasing lock... [2025-03-02 20:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:20:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:20:04] Production.INFO: Total Charge 0 [2025-03-02 20:20:04] Production.INFO: CreateAllLog End [2025-03-02 20:20:05] Production.INFO: Account Balance End. [2025-03-02 20:20:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:20:05] Production.INFO: ==30969== Releasing lock... [2025-03-02 20:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:20:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593526', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 20:20:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 20:20:08] Production.INFO: ProcessCDR(1,14593526,1,1,2) [2025-03-02 20:20:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593526,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:20:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593526,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:20:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 20:20:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 20:20:08] Production.INFO: ==30974== Releasing lock... [2025-03-02 20:20:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 20:20:08] Production.INFO: 26 MB #Memory Used# [2025-03-02 20:20:14] Production.ERROR: CronJobId end10 [2025-03-02 20:20:14] Production.INFO: ==30967== Releasing lock... [2025-03-02 20:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:20:16] Production.INFO: call_cost start [2025-03-02 20:20:16] Production.INFO: call_cost end [2025-03-02 20:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:20:16] Production.INFO: ==30963== Releasing lock... [2025-03-02 20:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:20:16] Production.INFO: count ==1388 [2025-03-02 20:20:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:20:04 - End Time 2025-03-02 20:20:04 [2025-03-02 20:20:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593527', 'tblTempUsageDetail_20' ) start [2025-03-02 20:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593527', 'tblTempUsageDetail_20' ) end [2025-03-02 20:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593527', 'tblTempVendorCDR_20' ) start [2025-03-02 20:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593527', 'tblTempVendorCDR_20' ) end [2025-03-02 20:20:16] Production.INFO: ProcessCDR(1,14593527,1,1,2) [2025-03-02 20:20:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593527', 'tblTempUsageDetail_20' ) start [2025-03-02 20:20:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593527', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:20:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:20:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:20:24] Production.INFO: ==30971== Releasing lock... [2025-03-02 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:20:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:21:01] Production.INFO: ==31056== Lock acquired, processing the job... [2025-03-03 01:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:21:02] Production.INFO: neon service started [2025-03-03 01:21:02] Production.INFO: neon service started [2025-03-03 01:21:02] Production.INFO: ==31056== Releasing lock... [2025-03-03 01:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:21:02] Production.INFO: ==31058== Lock acquired, processing the job... [2025-03-02 20:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:21:02] Production.INFO: ==31060== Lock acquired, processing the job... [2025-03-03 01:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:21:02] Production.INFO: ==31060== Releasing lock... [2025-03-03 01:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:21:02] Production.INFO: ==31058== Releasing lock... [2025-03-02 20:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:21:03] Production.INFO: ==31067== Lock acquired, processing the job... [2025-03-02 20:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:21:03] Production.INFO: ==31071== Lock acquired, processing the job... [2025-03-02 20:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:21:03] Production.INFO: ==31075== Lock acquired, processing the job... [2025-03-02 20:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:21:03] Production.INFO: Account Balance Start. [2025-03-02 20:21:03] Production.INFO: CreateAllLog Start [2025-03-02 20:21:03] Production.INFO: 117 [2025-03-02 20:21:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:21:03] Production.INFO: ==31065== Lock acquired, processing the job... [2025-03-02 20:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: ==31067== Releasing lock... [2025-03-02 20:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:21:04] Production.INFO: count ==13 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:21:04] Production.INFO: count ==21 [2025-03-02 20:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593530') start [2025-03-02 20:21:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: ==31069== Lock acquired, processing the job... [2025-03-02 20:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:21:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:21:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: ==31073== Lock acquired, processing the job... [2025-03-02 20:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:21:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593530') end [2025-03-02 20:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:21:04] Production.INFO: 1 [2025-03-02 20:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: ==31075== Releasing lock... [2025-03-02 20:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:21:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:21:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.ERROR: done [2025-03-02 20:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.ERROR: done [2025-03-02 20:21:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:21:04] Production.INFO: Total Charge 0 [2025-03-02 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:21:04 [end_date_ymd] => 2025-03-02 20:21:04 [RateCDR] => 1 ) [2025-03-02 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:21:04' and `end` < '2025-03-02 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:21:04] Production.INFO: CreateAllLog End [2025-03-02 20:21:05] Production.INFO: Account Balance End. [2025-03-02 20:21:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:21:05] Production.INFO: ==31071== Releasing lock... [2025-03-02 20:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:21:12] Production.ERROR: CronJobId end10 [2025-03-02 20:21:12] Production.INFO: ==31069== Releasing lock... [2025-03-02 20:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:21:14] Production.INFO: call_cost start [2025-03-02 20:21:14] Production.INFO: call_cost end [2025-03-02 20:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:21:14] Production.INFO: ==31065== Releasing lock... [2025-03-02 20:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:21:17] Production.INFO: count ==1391 [2025-03-02 20:21:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:21:04 - End Time 2025-03-02 20:21:04 [2025-03-02 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593532', 'tblTempUsageDetail_20' ) start [2025-03-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593532', 'tblTempUsageDetail_20' ) end [2025-03-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593532', 'tblTempVendorCDR_20' ) start [2025-03-02 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593532', 'tblTempVendorCDR_20' ) end [2025-03-02 20:21:17] Production.INFO: ProcessCDR(1,14593532,1,1,2) [2025-03-02 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593532', 'tblTempUsageDetail_20' ) start [2025-03-02 20:21:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593532', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:21:24] Production.INFO: ==31073== Releasing lock... [2025-03-02 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:21:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:22:01] Production.INFO: ==31149== Lock acquired, processing the job... [2025-03-03 01:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:22:01] Production.INFO: neon service started [2025-03-03 01:22:01] Production.INFO: neon service started [2025-03-03 01:22:01] Production.INFO: ==31149== Releasing lock... [2025-03-03 01:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:22:01] Production.INFO: ==31153== Lock acquired, processing the job... [2025-03-03 01:22:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:22:01] Production.INFO: ==31153== Releasing lock... [2025-03-03 01:22:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:22:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:22:02] Production.INFO: ==31151== Lock acquired, processing the job... [2025-03-02 20:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:22:02] Production.INFO: ==31151== Releasing lock... [2025-03-02 20:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:22:03] Production.INFO: ==31155== Lock acquired, processing the job... [2025-03-02 20:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:22:03] Production.INFO: ==31157== Lock acquired, processing the job... [2025-03-02 20:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:22:03] Production.INFO: ==31161== Lock acquired, processing the job... [2025-03-02 20:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:22:03] Production.INFO: ==31159== Lock acquired, processing the job... [2025-03-02 20:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:22:03] Production.INFO: ==31166== Lock acquired, processing the job... [2025-03-02 20:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:22:03] Production.INFO: Account Balance Start. [2025-03-02 20:22:03] Production.INFO: CreateAllLog Start [2025-03-02 20:22:03] Production.INFO: ==31163== Lock acquired, processing the job... [2025-03-02 20:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:22:03] Production.INFO: 117 [2025-03-02 20:22:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:22:03] Production.INFO: count ==13 [2025-03-02 20:22:03] Production.INFO: ==31157== Releasing lock... [2025-03-02 20:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:22:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:22:03] Production.INFO: count ==21 [2025-03-02 20:22:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593536') start [2025-03-02 20:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593536') end [2025-03-02 20:22:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:22:03] Production.INFO: 1 [2025-03-02 20:22:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:22:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:03] Production.ERROR: done [2025-03-02 20:22:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:22:03] Production.INFO: ==31166== Releasing lock... [2025-03-02 20:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:22:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:22:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.ERROR: done [2025-03-02 20:22:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:22:04 [end_date_ymd] => 2025-03-02 20:22:04 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:22:04' and `end` < '2025-03-02 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-03-02 20:22:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:22:04] Production.INFO: Total Charge 0 [2025-03-02 20:22:04] Production.INFO: CreateAllLog End [2025-03-02 20:22:04] Production.INFO: Account Balance End. [2025-03-02 20:22:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:22:04] Production.INFO: ==31161== Releasing lock... [2025-03-02 20:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:22:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:22:13] Production.ERROR: CronJobId end10 [2025-03-02 20:22:13] Production.INFO: ==31159== Releasing lock... [2025-03-02 20:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:22:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:22:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:22:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:22:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:22:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:22:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:22:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:22:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:22:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:22:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:22:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:22:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:22:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:22:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:22:14] Production.INFO: call_cost start [2025-03-02 20:22:14] Production.INFO: call_cost end [2025-03-02 20:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:22:14] Production.INFO: ==31155== Releasing lock... [2025-03-02 20:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:22:16] Production.INFO: count ==1392 [2025-03-02 20:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:22:04 - End Time 2025-03-02 20:22:04 [2025-03-02 20:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593537', 'tblTempUsageDetail_20' ) start [2025-03-02 20:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593537', 'tblTempUsageDetail_20' ) end [2025-03-02 20:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593537', 'tblTempVendorCDR_20' ) start [2025-03-02 20:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593537', 'tblTempVendorCDR_20' ) end [2025-03-02 20:22:16] Production.INFO: ProcessCDR(1,14593537,1,1,2) [2025-03-02 20:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593537', 'tblTempUsageDetail_20' ) start [2025-03-02 20:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593537', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:22:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:22:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:22:23] Production.INFO: ==31163== Releasing lock... [2025-03-02 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:22:23] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:23:01] Production.INFO: ==31249== Lock acquired, processing the job... [2025-03-03 01:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:23:01] Production.INFO: neon service started [2025-03-03 01:23:02] Production.INFO: neon service started [2025-03-03 01:23:02] Production.INFO: ==31249== Releasing lock... [2025-03-03 01:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:23:02] Production.INFO: ==31251== Lock acquired, processing the job... [2025-03-02 20:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:23:02] Production.INFO: ==31253== Lock acquired, processing the job... [2025-03-03 01:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:23:02] Production.INFO: ==31253== Releasing lock... [2025-03-03 01:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:23:03] Production.INFO: ==31251== Releasing lock... [2025-03-02 20:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:23:03] Production.INFO: ==31262== Lock acquired, processing the job... [2025-03-02 20:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:23:03] Production.INFO: ==31264== Lock acquired, processing the job... [2025-03-02 20:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:23:04] Production.INFO: Account Balance Start. [2025-03-02 20:23:04] Production.INFO: CreateAllLog Start [2025-03-02 20:23:04] Production.INFO: 117 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:23:04] Production.INFO: ==31258== Lock acquired, processing the job... [2025-03-02 20:23:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: ==31260== Lock acquired, processing the job... [2025-03-02 20:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:23:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:23:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: ==31266== Lock acquired, processing the job... [2025-03-02 20:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:23:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: ==31268== Lock acquired, processing the job... [2025-03-02 20:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:23:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:23:04] Production.INFO: count ==13 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:23:04] Production.INFO: count ==21 [2025-03-02 20:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593541') start [2025-03-02 20:23:04] Production.INFO: ==31260== Releasing lock... [2025-03-02 20:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:23:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593541') end [2025-03-02 20:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:23:04] Production.INFO: 1 [2025-03-02 20:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:23:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.ERROR: done [2025-03-02 20:23:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:23:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: ==31268== Releasing lock... [2025-03-02 20:23:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:23:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:23:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.ERROR: done [2025-03-02 20:23:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:23:05 [end_date_ymd] => 2025-03-02 20:23:05 [RateCDR] => 1 ) [2025-03-02 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:23:05' and `end` < '2025-03-02 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:23:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:23:05] Production.INFO: Total Charge 0 [2025-03-02 20:23:05] Production.INFO: CreateAllLog End [2025-03-02 20:23:05] Production.INFO: Account Balance End. [2025-03-02 20:23:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:23:05] Production.INFO: ==31264== Releasing lock... [2025-03-02 20:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:23:12] Production.ERROR: CronJobId end10 [2025-03-02 20:23:12] Production.INFO: ==31262== Releasing lock... [2025-03-02 20:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:23:14] Production.INFO: call_cost start [2025-03-02 20:23:14] Production.INFO: call_cost end [2025-03-02 20:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:23:14] Production.INFO: ==31258== Releasing lock... [2025-03-02 20:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:23:17] Production.INFO: count ==1390 [2025-03-02 20:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:23:05 - End Time 2025-03-02 20:23:05 [2025-03-02 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593542', 'tblTempUsageDetail_20' ) start [2025-03-02 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593542', 'tblTempUsageDetail_20' ) end [2025-03-02 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593542', 'tblTempVendorCDR_20' ) start [2025-03-02 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593542', 'tblTempVendorCDR_20' ) end [2025-03-02 20:23:17] Production.INFO: ProcessCDR(1,14593542,1,1,2) [2025-03-02 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593542', 'tblTempUsageDetail_20' ) start [2025-03-02 20:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593542', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:23:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:23:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:23:25] Production.INFO: ==31266== Releasing lock... [2025-03-02 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:23:25] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:24:01] Production.INFO: ==31337== Lock acquired, processing the job... [2025-03-03 01:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:24:01] Production.INFO: neon service started [2025-03-03 01:24:01] Production.INFO: neon service started [2025-03-03 01:24:01] Production.INFO: ==31337== Releasing lock... [2025-03-03 01:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:24:01] Production.INFO: ==31339== Lock acquired, processing the job... [2025-03-02 20:24:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:24:02] Production.INFO: ==31339== Releasing lock... [2025-03-02 20:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:24:02] Production.INFO: ==31341== Lock acquired, processing the job... [2025-03-03 01:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:24:02] Production.INFO: ==31341== Releasing lock... [2025-03-03 01:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:24:03] Production.INFO: ==31352== Lock acquired, processing the job... [2025-03-02 20:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:24:03] Production.INFO: ==31354== Lock acquired, processing the job... [2025-03-02 20:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:24:03] Production.INFO: ==31344== Lock acquired, processing the job... [2025-03-02 20:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:24:03] Production.INFO: ==31348== Lock acquired, processing the job... [2025-03-02 20:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:24:03] Production.INFO: ==31346== Lock acquired, processing the job... [2025-03-02 20:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:24:03] Production.INFO: ==31350== Lock acquired, processing the job... [2025-03-02 20:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:24:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:24:03] Production.INFO: count ==13 [2025-03-02 20:24:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:24:03] Production.INFO: count ==21 [2025-03-02 20:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593543') start [2025-03-02 20:24:03] Production.INFO: Account Balance Start. [2025-03-02 20:24:03] Production.INFO: CreateAllLog Start [2025-03-02 20:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:24:03] Production.INFO: 117 [2025-03-02 20:24:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593543') end [2025-03-02 20:24:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:24:03] Production.INFO: 1 [2025-03-02 20:24:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:24:03] Production.INFO: ==31354== Releasing lock... [2025-03-02 20:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:24:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:24:03] Production.ERROR: done [2025-03-02 20:24:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:24:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:03] Production.INFO: ==31346== Releasing lock... [2025-03-02 20:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:24:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:24:03] Production.ERROR: done [2025-03-02 20:24:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:24:04 [end_date_ymd] => 2025-03-02 20:24:04 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:24:04' and `end` < '2025-03-02 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-03-02 20:24:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:24:04] Production.INFO: Total Charge 0 [2025-03-02 20:24:04] Production.INFO: CreateAllLog End [2025-03-02 20:24:05] Production.INFO: Account Balance End. [2025-03-02 20:24:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:24:05] Production.INFO: ==31350== Releasing lock... [2025-03-02 20:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:24:11] Production.ERROR: CronJobId end10 [2025-03-02 20:24:11] Production.INFO: ==31348== Releasing lock... [2025-03-02 20:24:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:24:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:24:14] Production.INFO: call_cost start [2025-03-02 20:24:14] Production.INFO: call_cost end [2025-03-02 20:24:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:24:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:24:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:24:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:24:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:24:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:24:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:24:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:24:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:24:14] Production.INFO: ==31344== Releasing lock... [2025-03-02 20:24:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:24:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:24:16] Production.INFO: count ==1388 [2025-03-02 20:24:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:24:04 - End Time 2025-03-02 20:24:04 [2025-03-02 20:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593547', 'tblTempUsageDetail_20' ) start [2025-03-02 20:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593547', 'tblTempUsageDetail_20' ) end [2025-03-02 20:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593547', 'tblTempVendorCDR_20' ) start [2025-03-02 20:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593547', 'tblTempVendorCDR_20' ) end [2025-03-02 20:24:16] Production.INFO: ProcessCDR(1,14593547,1,1,2) [2025-03-02 20:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593547', 'tblTempUsageDetail_20' ) start [2025-03-02 20:24:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593547', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:24:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:24:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:24:23] Production.INFO: ==31352== Releasing lock... [2025-03-02 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:24:23] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:25:01] Production.INFO: ==31430== Lock acquired, processing the job... [2025-03-03 01:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:25:01] Production.INFO: neon service started [2025-03-03 01:25:01] Production.INFO: neon service started [2025-03-03 01:25:01] Production.INFO: ==31430== Releasing lock... [2025-03-03 01:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:25:02] Production.INFO: ==31432== Lock acquired, processing the job... [2025-03-02 20:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:25:02] Production.INFO: ==31432== Releasing lock... [2025-03-02 20:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:25:02] Production.INFO: ==31434== Lock acquired, processing the job... [2025-03-03 01:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:25:02] Production.INFO: ==31434== Releasing lock... [2025-03-03 01:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:25:03] Production.INFO: ==31443== Lock acquired, processing the job... [2025-03-02 20:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:25:03] Production.INFO: ==31447== Lock acquired, processing the job... [2025-03-02 20:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:25:03] Production.INFO: Account Balance Start. [2025-03-02 20:25:03] Production.INFO: CreateAllLog Start [2025-03-02 20:25:03] Production.INFO: 117 [2025-03-02 20:25:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: ==31439== Lock acquired, processing the job... [2025-03-02 20:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:25:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: ==31437== Lock acquired, processing the job... [2025-03-02 20:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:25:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: ==31441== Lock acquired, processing the job... [2025-03-02 20:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:25:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:25:03] Production.INFO: count ==13 [2025-03-02 20:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:25:03] Production.INFO: count ==21 [2025-03-02 20:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593549') start [2025-03-02 20:25:03] Production.INFO: ==31445== Lock acquired, processing the job... [2025-03-02 20:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:25:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593549') end [2025-03-02 20:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:25:04] Production.INFO: 1 [2025-03-02 20:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:25:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: ==31447== Releasing lock... [2025-03-02 20:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:25:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:25:04] Production.INFO: ==31439== Releasing lock... [2025-03-02 20:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:25:04] Production.ERROR: done [2025-03-02 20:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.ERROR: done [2025-03-02 20:25:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:25:04 [end_date_ymd] => 2025-03-02 20:25:04 [RateCDR] => 1 ) [2025-03-02 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:25:04' and `end` < '2025-03-02 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:25:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:25:04] Production.INFO: Total Charge 0 [2025-03-02 20:25:04] Production.INFO: CreateAllLog End [2025-03-02 20:25:04] Production.INFO: Account Balance End. [2025-03-02 20:25:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:25:04] Production.INFO: ==31443== Releasing lock... [2025-03-02 20:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:25:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:25:13] Production.ERROR: CronJobId end10 [2025-03-02 20:25:13] Production.INFO: ==31441== Releasing lock... [2025-03-02 20:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:25:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:25:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:25:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:25:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:25:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:25:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:25:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:25:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:25:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:25:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:25:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:25:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:25:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:25:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:25:15] Production.INFO: call_cost start [2025-03-02 20:25:15] Production.INFO: call_cost end [2025-03-02 20:25:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:25:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:25:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:25:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:25:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:25:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:25:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:25:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:25:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:25:15] Production.INFO: ==31437== Releasing lock... [2025-03-02 20:25:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:25:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:25:16] Production.INFO: count ==1387 [2025-03-02 20:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:25:04 - End Time 2025-03-02 20:25:04 [2025-03-02 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593552', 'tblTempUsageDetail_20' ) start [2025-03-02 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593552', 'tblTempUsageDetail_20' ) end [2025-03-02 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593552', 'tblTempVendorCDR_20' ) start [2025-03-02 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593552', 'tblTempVendorCDR_20' ) end [2025-03-02 20:25:17] Production.INFO: ProcessCDR(1,14593552,1,1,2) [2025-03-02 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593552', 'tblTempUsageDetail_20' ) start [2025-03-02 20:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593552', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:25:24] Production.INFO: ==31445== Releasing lock... [2025-03-02 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:25:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:26:02] Production.INFO: ==31527== Lock acquired, processing the job... [2025-03-03 01:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:26:02] Production.INFO: neon service started [2025-03-03 01:26:02] Production.INFO: neon service started [2025-03-03 01:26:02] Production.INFO: ==31527== Releasing lock... [2025-03-03 01:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:26:02] Production.INFO: ==31529== Lock acquired, processing the job... [2025-03-02 20:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:26:03] Production.INFO: ==31529== Releasing lock... [2025-03-02 20:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:26:03] Production.INFO: ==31531== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:26:03] Production.INFO: ==31531== Releasing lock... [2025-03-03 01:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:26:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:26:04] Production.INFO: ==31533== Lock acquired, processing the job... [2025-03-02 20:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:26:04] Production.INFO: ==31535== Lock acquired, processing the job... [2025-03-02 20:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:26:04] Production.INFO: ==31541== Lock acquired, processing the job... [2025-03-02 20:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:26:04] Production.INFO: ==31537== Lock acquired, processing the job... [2025-03-02 20:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:26:04] Production.INFO: ==31539== Lock acquired, processing the job... [2025-03-02 20:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:26:04] Production.INFO: ==31544== Lock acquired, processing the job... [2025-03-02 20:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:26:04] Production.INFO: Account Balance Start. [2025-03-02 20:26:04] Production.INFO: CreateAllLog Start [2025-03-02 20:26:04] Production.INFO: ==31535== Releasing lock... [2025-03-02 20:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:26:04] Production.INFO: 117 [2025-03-02 20:26:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:04] Production.ERROR: done [2025-03-02 20:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:26:04] Production.INFO: count ==13 [2025-03-02 20:26:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:26:04] Production.INFO: count ==21 [2025-03-02 20:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593556') start [2025-03-02 20:26:04] Production.ERROR: done [2025-03-02 20:26:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593556') end [2025-03-02 20:26:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:26:05] Production.INFO: 1 [2025-03-02 20:26:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:26:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: ==31544== Releasing lock... [2025-03-02 20:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:26:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:26:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:26:05 [end_date_ymd] => 2025-03-02 20:26:05 [RateCDR] => 1 ) [2025-03-02 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:26:05' and `end` < '2025-03-02 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:26:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:26:05] Production.INFO: Total Charge 0 [2025-03-02 20:26:05] Production.INFO: CreateAllLog End [2025-03-02 20:26:05] Production.INFO: Account Balance End. [2025-03-02 20:26:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:26:05] Production.INFO: ==31539== Releasing lock... [2025-03-02 20:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:26:13] Production.ERROR: CronJobId end10 [2025-03-02 20:26:13] Production.INFO: ==31537== Releasing lock... [2025-03-02 20:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:26:15] Production.INFO: call_cost start [2025-03-02 20:26:15] Production.INFO: call_cost end [2025-03-02 20:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:26:15] Production.INFO: ==31533== Releasing lock... [2025-03-02 20:26:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:26:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:26:17] Production.INFO: count ==1388 [2025-03-02 20:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:26:05 - End Time 2025-03-02 20:26:05 [2025-03-02 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593557', 'tblTempUsageDetail_20' ) start [2025-03-02 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593557', 'tblTempUsageDetail_20' ) end [2025-03-02 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593557', 'tblTempVendorCDR_20' ) start [2025-03-02 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593557', 'tblTempVendorCDR_20' ) end [2025-03-02 20:26:17] Production.INFO: ProcessCDR(1,14593557,1,1,2) [2025-03-02 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593557', 'tblTempUsageDetail_20' ) start [2025-03-02 20:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593557', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:26:25] Production.INFO: ==31541== Releasing lock... [2025-03-02 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:26:25] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:27:01] Production.INFO: ==31621== Lock acquired, processing the job... [2025-03-03 01:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:27:01] Production.INFO: neon service started [2025-03-03 01:27:01] Production.INFO: neon service started [2025-03-03 01:27:01] Production.INFO: ==31621== Releasing lock... [2025-03-03 01:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:27:02] Production.INFO: ==31623== Lock acquired, processing the job... [2025-03-02 20:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:27:02] Production.INFO: ==31625== Lock acquired, processing the job... [2025-03-03 01:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 20:27:02] Production.INFO: ==31623== Releasing lock... [2025-03-02 20:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:27:02] Production.INFO: ==31625== Releasing lock... [2025-03-03 01:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:27:03] Production.INFO: ==31627== Lock acquired, processing the job... [2025-03-02 20:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:27:03] Production.INFO: ==31629== Lock acquired, processing the job... [2025-03-02 20:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:27:03] Production.INFO: ==31631== Lock acquired, processing the job... [2025-03-02 20:27:03] Production.INFO: ==31633== Lock acquired, processing the job... [2025-03-02 20:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:27:03] Production.INFO: ==31635== Lock acquired, processing the job... [2025-03-02 20:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:27:03] Production.INFO: Account Balance Start. [2025-03-02 20:27:03] Production.INFO: CreateAllLog Start [2025-03-02 20:27:03] Production.INFO: 117 [2025-03-02 20:27:03] Production.INFO: ==31638== Lock acquired, processing the job... [2025-03-02 20:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:27:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:03] Production.INFO: ==31629== Releasing lock... [2025-03-02 20:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:27:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:27:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: count ==13 [2025-03-02 20:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:27:04] Production.INFO: count ==21 [2025-03-02 20:27:04] Production.ERROR: done [2025-03-02 20:27:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593561') start [2025-03-02 20:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.ERROR: done [2025-03-02 20:27:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593561') end [2025-03-02 20:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:27:04] Production.INFO: 1 [2025-03-02 20:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:27:04 [end_date_ymd] => 2025-03-02 20:27:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:27:04' and `end` < '2025-03-02 20: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-03-02 20:27:04] Production.INFO: ==31638== Releasing lock... [2025-03-02 20:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:27:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:27:04] Production.INFO: Total Charge 0 [2025-03-02 20:27:05] Production.INFO: CreateAllLog End [2025-03-02 20:27:05] Production.INFO: Account Balance End. [2025-03-02 20:27:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:27:05] Production.INFO: ==31633== Releasing lock... [2025-03-02 20:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:27:11] Production.ERROR: CronJobId end10 [2025-03-02 20:27:11] Production.INFO: ==31631== Releasing lock... [2025-03-02 20:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:27:14] Production.INFO: call_cost start [2025-03-02 20:27:14] Production.INFO: call_cost end [2025-03-02 20:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:27:14] Production.INFO: ==31627== Releasing lock... [2025-03-02 20:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:27:16] Production.INFO: count ==1387 [2025-03-02 20:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:27:04 - End Time 2025-03-02 20:27:04 [2025-03-02 20:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593562', 'tblTempUsageDetail_20' ) start [2025-03-02 20:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593562', 'tblTempUsageDetail_20' ) end [2025-03-02 20:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593562', 'tblTempVendorCDR_20' ) start [2025-03-02 20:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593562', 'tblTempVendorCDR_20' ) end [2025-03-02 20:27:16] Production.INFO: ProcessCDR(1,14593562,1,1,2) [2025-03-02 20:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593562', 'tblTempUsageDetail_20' ) start [2025-03-02 20:27:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593562', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:27:24] Production.INFO: ==31635== Releasing lock... [2025-03-02 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:27:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:28:02] Production.INFO: ==31709== Lock acquired, processing the job... [2025-03-03 01:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:28:02] Production.INFO: neon service started [2025-03-03 01:28:02] Production.INFO: neon service started [2025-03-03 01:28:02] Production.INFO: ==31709== Releasing lock... [2025-03-03 01:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:28:02] Production.INFO: ==31711== Lock acquired, processing the job... [2025-03-02 20:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:28:02] Production.INFO: ==31711== Releasing lock... [2025-03-02 20:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:28:03] Production.INFO: ==31713== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:28:03] Production.INFO: ==31713== Releasing lock... [2025-03-03 01:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:28:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:28:03] Production.INFO: ==31723== Lock acquired, processing the job... [2025-03-02 20:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:28:03] Production.INFO: ==31725== Lock acquired, processing the job... [2025-03-02 20:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:28:04] Production.INFO: ==31715== Lock acquired, processing the job... [2025-03-02 20:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:28:04] Production.INFO: ==31717== Lock acquired, processing the job... [2025-03-02 20:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:28:04] Production.INFO: ==31719== Lock acquired, processing the job... [2025-03-02 20:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:28:04] Production.INFO: count ==13 [2025-03-02 20:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:28:04] Production.INFO: count ==21 [2025-03-02 20:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593563') start [2025-03-02 20:28:04] Production.INFO: ==31721== Lock acquired, processing the job... [2025-03-02 20:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:28:04] Production.INFO: ==31717== Releasing lock... [2025-03-02 20:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:28:04] Production.INFO: Account Balance Start. [2025-03-02 20:28:04] Production.INFO: CreateAllLog Start [2025-03-02 20:28:04] Production.ERROR: done [2025-03-02 20:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:28:04] Production.INFO: 117 [2025-03-02 20:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593563') end [2025-03-02 20:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:28:04] Production.INFO: 1 [2025-03-02 20:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:28:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: ==31725== Releasing lock... [2025-03-02 20:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:28:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.ERROR: done [2025-03-02 20:28:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:28:04 [end_date_ymd] => 2025-03-02 20:28:04 [RateCDR] => 1 ) [2025-03-02 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:28:04' and `end` < '2025-03-02 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:28:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:28:05] Production.INFO: Total Charge 0 [2025-03-02 20:28:05] Production.INFO: CreateAllLog End [2025-03-02 20:28:05] Production.INFO: Account Balance End. [2025-03-02 20:28:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:28:05] Production.INFO: ==31721== Releasing lock... [2025-03-02 20:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:28:11] Production.ERROR: CronJobId end10 [2025-03-02 20:28:11] Production.INFO: ==31719== Releasing lock... [2025-03-02 20:28:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:28:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:28:14] Production.INFO: call_cost start [2025-03-02 20:28:14] Production.INFO: call_cost end [2025-03-02 20:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:28:14] Production.INFO: ==31715== Releasing lock... [2025-03-02 20:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:28:16] Production.INFO: count ==1385 [2025-03-02 20:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:28:04 - End Time 2025-03-02 20:28:04 [2025-03-02 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593567', 'tblTempUsageDetail_20' ) start [2025-03-02 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593567', 'tblTempUsageDetail_20' ) end [2025-03-02 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593567', 'tblTempVendorCDR_20' ) start [2025-03-02 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593567', 'tblTempVendorCDR_20' ) end [2025-03-02 20:28:17] Production.INFO: ProcessCDR(1,14593567,1,1,2) [2025-03-02 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593567', 'tblTempUsageDetail_20' ) start [2025-03-02 20:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593567', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:28:24] Production.INFO: ==31723== Releasing lock... [2025-03-02 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:28:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:29:01] Production.INFO: ==31842== Lock acquired, processing the job... [2025-03-03 01:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:29:01] Production.INFO: neon service started [2025-03-03 01:29:01] Production.INFO: neon service started [2025-03-03 01:29:01] Production.INFO: ==31842== Releasing lock... [2025-03-03 01:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:29:02] Production.INFO: ==31844== Lock acquired, processing the job... [2025-03-02 20:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:29:02] Production.INFO: ==31846== Lock acquired, processing the job... [2025-03-03 01:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:29:02] Production.INFO: ==31846== Releasing lock... [2025-03-03 01:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:29:02] Production.INFO: ==31844== Releasing lock... [2025-03-02 20:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:29:03] Production.INFO: ==31849== Lock acquired, processing the job... [2025-03-02 20:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:29:03] Production.INFO: ==31859== Lock acquired, processing the job... [2025-03-02 20:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:29:03] Production.INFO: ==31857== Lock acquired, processing the job... [2025-03-02 20:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:29:03] Production.INFO: ==31851== Lock acquired, processing the job... [2025-03-02 20:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:29:03] Production.INFO: ==31853== Lock acquired, processing the job... [2025-03-02 20:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:29:03] Production.INFO: ==31855== Lock acquired, processing the job... [2025-03-02 20:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:29:03] Production.INFO: count ==13 [2025-03-02 20:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:29:03] Production.INFO: count ==21 [2025-03-02 20:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593569') start [2025-03-02 20:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593569') end [2025-03-02 20:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:29:03] Production.INFO: 1 [2025-03-02 20:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:29:03] Production.INFO: Account Balance Start. [2025-03-02 20:29:03] Production.INFO: CreateAllLog Start [2025-03-02 20:29:03] Production.INFO: 117 [2025-03-02 20:29:03] Production.INFO: ==31859== Releasing lock... [2025-03-02 20:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:29:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:29:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:03] Production.ERROR: done [2025-03-02 20:29:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:29:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:03] Production.INFO: ==31851== Releasing lock... [2025-03-02 20:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:29:03] Production.ERROR: done [2025-03-02 20:29:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:29:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:29:04 [end_date_ymd] => 2025-03-02 20:29:04 [RateCDR] => 1 ) [2025-03-02 20:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:29:04' and `end` < '2025-03-02 20:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:29:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:29:04] Production.INFO: Total Charge 0 [2025-03-02 20:29:04] Production.INFO: CreateAllLog End [2025-03-02 20:29:04] Production.INFO: Account Balance End. [2025-03-02 20:29:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:29:04] Production.INFO: ==31855== Releasing lock... [2025-03-02 20:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:29:12] Production.ERROR: CronJobId end10 [2025-03-02 20:29:12] Production.INFO: ==31853== Releasing lock... [2025-03-02 20:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:29:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:29:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:29:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:29:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:29:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:29:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:29:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:29:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:29:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:29:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:29:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:29:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:29:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:29:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:29:13] Production.INFO: call_cost start [2025-03-02 20:29:13] Production.INFO: call_cost end [2025-03-02 20:29:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:29:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:29:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:29:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:29:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:29:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:29:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:29:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:29:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:29:13] Production.INFO: ==31849== Releasing lock... [2025-03-02 20:29:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:29:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:29:16] Production.INFO: count ==1385 [2025-03-02 20:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:29:04 - End Time 2025-03-02 20:29:04 [2025-03-02 20:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593572', 'tblTempUsageDetail_20' ) start [2025-03-02 20:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593572', 'tblTempUsageDetail_20' ) end [2025-03-02 20:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593572', 'tblTempVendorCDR_20' ) start [2025-03-02 20:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593572', 'tblTempVendorCDR_20' ) end [2025-03-02 20:29:16] Production.INFO: ProcessCDR(1,14593572,1,1,2) [2025-03-02 20:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593572', 'tblTempUsageDetail_20' ) start [2025-03-02 20:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593572', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:29:24] Production.INFO: ==31857== Releasing lock... [2025-03-02 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:29:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:30:02] Production.INFO: ==31940== Lock acquired, processing the job... [2025-03-03 01:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:30:02] Production.INFO: neon service started [2025-03-03 01:30:02] Production.INFO: neon service started [2025-03-03 01:30:02] Production.INFO: ==31940== Releasing lock... [2025-03-03 01:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:30:02] Production.INFO: ==31942== Lock acquired, processing the job... [2025-03-02 20:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:30:02] Production.INFO: ==31942== Releasing lock... [2025-03-02 20:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:30:03] Production.INFO: ==31944== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:30:03] Production.INFO: ==31944== Releasing lock... [2025-03-03 01:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:30:04] Production.INFO: ==31946== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 20:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 20:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 20:30:04] Production.INFO: ==31946== Releasing lock... [2025-03-02 20:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 20:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:30:04] Production.INFO: ==31948== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:30:04] Production.INFO: ==31950== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:30:04] Production.INFO: ==31952== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:30:04] Production.INFO: ==31954== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:30:04] Production.INFO: ==31956== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:30:04] Production.INFO: ==31958== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 20:30:04] Production.INFO: ==31960== Lock acquired, processing the job... [2025-03-02 20:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:30:04] Production.INFO: Account Balance Start. [2025-03-02 20:30:04] Production.INFO: CreateAllLog Start [2025-03-02 20:30:04] Production.INFO: 117 [2025-03-02 20:30:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:30:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:04] Production.INFO: count ==13 [2025-03-02 20:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:30:04] Production.INFO: count ==21 [2025-03-02 20:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593576') start [2025-03-02 20:30:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593576') end [2025-03-02 20:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:30:04] Production.INFO: 1 [2025-03-02 20:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:04] Production.INFO: ==31950== Releasing lock... [2025-03-02 20:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:30:05] Production.INFO: Date 2025-02-11 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.ERROR: done [2025-03-02 20:30:05] Production.INFO: Date 2025-02-12 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-13 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: ==31960== Releasing lock... [2025-03-02 20:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:30:05] Production.ERROR: done [2025-03-02 20:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 20:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593577', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 20:30:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.ERROR: done [2025-03-02 20:30:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:30:05 [end_date_ymd] => 2025-03-02 20:30:05 [RateCDR] => 1 ) [2025-03-02 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:30:05' and `end` < '2025-03-02 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:30:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:30:05] Production.INFO: Total Charge 0 [2025-03-02 20:30:05] Production.INFO: CreateAllLog End [2025-03-02 20:30:06] Production.INFO: Account Balance End. [2025-03-02 20:30:06] Production.ERROR: CronJobId end 12 [2025-03-02 20:30:06] Production.INFO: ==31954== Releasing lock... [2025-03-02 20:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593577', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 20:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 20:30:09] Production.INFO: ProcessCDR(1,14593577,1,1,2) [2025-03-02 20:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593577,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593577,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 20:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 20:30:09] Production.INFO: ==31958== Releasing lock... [2025-03-02 20:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 20:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 20:30:15] Production.ERROR: CronJobId end10 [2025-03-02 20:30:15] Production.INFO: ==31952== Releasing lock... [2025-03-02 20:30:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:30:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:30:17] Production.INFO: count ==1380 [2025-03-02 20:30:17] Production.INFO: call_cost start [2025-03-02 20:30:17] Production.INFO: call_cost end [2025-03-02 20:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:30:17] Production.INFO: ==31948== Releasing lock... [2025-03-02 20:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:30:05 - End Time 2025-03-02 20:30:05 [2025-03-02 20:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593578', 'tblTempUsageDetail_20' ) start [2025-03-02 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593578', 'tblTempUsageDetail_20' ) end [2025-03-02 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593578', 'tblTempVendorCDR_20' ) start [2025-03-02 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593578', 'tblTempVendorCDR_20' ) end [2025-03-02 20:30:17] Production.INFO: ProcessCDR(1,14593578,1,1,2) [2025-03-02 20:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593578', 'tblTempUsageDetail_20' ) start [2025-03-02 20:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593578', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:30:25] Production.INFO: ==31956== Releasing lock... [2025-03-02 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:30:25] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:31:01] Production.INFO: ==32037== Lock acquired, processing the job... [2025-03-03 01:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:31:01] Production.INFO: neon service started [2025-03-03 01:31:01] Production.INFO: neon service started [2025-03-03 01:31:01] Production.INFO: ==32037== Releasing lock... [2025-03-03 01:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:31:01] Production.INFO: ==32040== Lock acquired, processing the job... [2025-03-02 20:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:31:02] Production.INFO: ==32040== Releasing lock... [2025-03-02 20:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:31:02] Production.INFO: ==32042== Lock acquired, processing the job... [2025-03-03 01:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:31:02] Production.INFO: ==32042== Releasing lock... [2025-03-03 01:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:31:03] Production.INFO: ==32050== Lock acquired, processing the job... [2025-03-02 20:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:31:03] Production.INFO: ==32057== Lock acquired, processing the job... [2025-03-02 20:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:31:03] Production.INFO: count ==13 [2025-03-02 20:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:31:03] Production.INFO: count ==21 [2025-03-02 20:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593579') start [2025-03-02 20:31:03] Production.INFO: ==32046== Lock acquired, processing the job... [2025-03-02 20:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:31:03] Production.INFO: ==32048== Lock acquired, processing the job... [2025-03-02 20:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593579') end [2025-03-02 20:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:31:03] Production.INFO: 1 [2025-03-02 20:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:31:03] Production.INFO: ==32052== Lock acquired, processing the job... [2025-03-02 20:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:31:03] Production.INFO: ==32054== Lock acquired, processing the job... [2025-03-02 20:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:31:03] Production.INFO: ==32057== Releasing lock... [2025-03-02 20:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:31:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:31:03] Production.INFO: Account Balance Start. [2025-03-02 20:31:03] Production.INFO: CreateAllLog Start [2025-03-02 20:31:03] Production.INFO: 117 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: ==32048== Releasing lock... [2025-03-02 20:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:31:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.ERROR: done [2025-03-02 20:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.ERROR: done [2025-03-02 20:31:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:31:04 [end_date_ymd] => 2025-03-02 20:31:04 [RateCDR] => 1 ) [2025-03-02 20:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:31:04' and `end` < '2025-03-02 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:31:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:31:04] Production.INFO: Total Charge 0 [2025-03-02 20:31:04] Production.INFO: CreateAllLog End [2025-03-02 20:31:04] Production.INFO: Account Balance End. [2025-03-02 20:31:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:31:04] Production.INFO: ==32052== Releasing lock... [2025-03-02 20:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:31:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:31:13] Production.ERROR: CronJobId end10 [2025-03-02 20:31:13] Production.INFO: ==32050== Releasing lock... [2025-03-02 20:31:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:31:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:31:14] Production.INFO: call_cost start [2025-03-02 20:31:14] Production.INFO: call_cost end [2025-03-02 20:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:31:14] Production.INFO: ==32046== Releasing lock... [2025-03-02 20:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:31:16] Production.INFO: count ==1340 [2025-03-02 20:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:31:04 - End Time 2025-03-02 20:31:04 [2025-03-02 20:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593583', 'tblTempUsageDetail_20' ) start [2025-03-02 20:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593583', 'tblTempUsageDetail_20' ) end [2025-03-02 20:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593583', 'tblTempVendorCDR_20' ) start [2025-03-02 20:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593583', 'tblTempVendorCDR_20' ) end [2025-03-02 20:31:16] Production.INFO: ProcessCDR(1,14593583,1,1,2) [2025-03-02 20:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593583', 'tblTempUsageDetail_20' ) start [2025-03-02 20:31:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593583', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:31:24] Production.INFO: ==32054== Releasing lock... [2025-03-02 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:31:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:32:02] Production.INFO: ==32141== Lock acquired, processing the job... [2025-03-03 01:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:32:02] Production.INFO: neon service started [2025-03-03 01:32:02] Production.INFO: neon service started [2025-03-03 01:32:02] Production.INFO: ==32141== Releasing lock... [2025-03-03 01:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:32:02] Production.INFO: ==32145== Lock acquired, processing the job... [2025-03-03 01:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 20:32:02] Production.INFO: ==32143== Lock acquired, processing the job... [2025-03-02 20:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:32:02] Production.INFO: ==32145== Releasing lock... [2025-03-03 01:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:32:03] Production.INFO: ==32143== Releasing lock... [2025-03-02 20:32:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:32:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:32:04] Production.INFO: ==32154== Lock acquired, processing the job... [2025-03-02 20:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:32:04] Production.INFO: ==32148== Lock acquired, processing the job... [2025-03-02 20:32:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:32:04] Production.INFO: ==32156== Lock acquired, processing the job... [2025-03-02 20:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:32:04] Production.INFO: ==32150== Lock acquired, processing the job... [2025-03-02 20:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:32:04] Production.INFO: ==32152== Lock acquired, processing the job... [2025-03-02 20:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:32:04] Production.INFO: Account Balance Start. [2025-03-02 20:32:04] Production.INFO: CreateAllLog Start [2025-03-02 20:32:04] Production.INFO: 117 [2025-03-02 20:32:04] Production.INFO: ==32158== Lock acquired, processing the job... [2025-03-02 20:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:32:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:32:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:32:04] Production.INFO: count ==13 [2025-03-02 20:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:32:04] Production.INFO: count ==21 [2025-03-02 20:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593586') start [2025-03-02 20:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:32:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.ERROR: done [2025-03-02 20:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593586') end [2025-03-02 20:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:32:04] Production.INFO: 1 [2025-03-02 20:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:32:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: ==32158== Releasing lock... [2025-03-02 20:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:32:04] Production.INFO: ==32150== Releasing lock... [2025-03-02 20:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:32:04] Production.ERROR: done [2025-03-02 20:32:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:32:04 [end_date_ymd] => 2025-03-02 20:32:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:32:04' and `end` < '2025-03-02 20: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-03-02 20:32:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:32:05] Production.INFO: Total Charge 0 [2025-03-02 20:32:05] Production.INFO: CreateAllLog End [2025-03-02 20:32:05] Production.INFO: Account Balance End. [2025-03-02 20:32:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:32:05] Production.INFO: ==32154== Releasing lock... [2025-03-02 20:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:32:13] Production.ERROR: CronJobId end10 [2025-03-02 20:32:13] Production.INFO: ==32152== Releasing lock... [2025-03-02 20:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:32:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:32:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:32:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:32:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:32:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:32:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:32:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:32:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:32:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:32:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:32:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:32:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:32:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:32:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:32:15] Production.INFO: call_cost start [2025-03-02 20:32:15] Production.INFO: call_cost end [2025-03-02 20:32:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:32:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:32:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:32:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:32:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:32:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:32:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:32:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:32:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:32:15] Production.INFO: ==32148== Releasing lock... [2025-03-02 20:32:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:32:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:32:16] Production.INFO: count ==1337 [2025-03-02 20:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:32:04 - End Time 2025-03-02 20:32:04 [2025-03-02 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593588', 'tblTempUsageDetail_20' ) start [2025-03-02 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593588', 'tblTempUsageDetail_20' ) end [2025-03-02 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593588', 'tblTempVendorCDR_20' ) start [2025-03-02 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593588', 'tblTempVendorCDR_20' ) end [2025-03-02 20:32:17] Production.INFO: ProcessCDR(1,14593588,1,1,2) [2025-03-02 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593588', 'tblTempUsageDetail_20' ) start [2025-03-02 20:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593588', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:32:24] Production.INFO: ==32156== Releasing lock... [2025-03-02 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:32:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:33:01] Production.INFO: ==32236== Lock acquired, processing the job... [2025-03-03 01:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:33:01] Production.INFO: neon service started [2025-03-03 01:33:01] Production.INFO: neon service started [2025-03-03 01:33:01] Production.INFO: ==32236== Releasing lock... [2025-03-03 01:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:33:01] Production.INFO: ==32238== Lock acquired, processing the job... [2025-03-02 20:33:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:33:02] Production.INFO: ==32238== Releasing lock... [2025-03-02 20:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:33:02] Production.INFO: ==32240== Lock acquired, processing the job... [2025-03-03 01:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:33:02] Production.INFO: ==32240== Releasing lock... [2025-03-03 01:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:33:03] Production.INFO: ==32243== Lock acquired, processing the job... [2025-03-02 20:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:33:03] Production.INFO: ==32245== Lock acquired, processing the job... [2025-03-02 20:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:33:03] Production.INFO: ==32249== Lock acquired, processing the job... [2025-03-02 20:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:33:03] Production.INFO: ==32247== Lock acquired, processing the job... [2025-03-02 20:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:33:03] Production.INFO: ==32251== Lock acquired, processing the job... [2025-03-02 20:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:33:03] Production.INFO: Account Balance Start. [2025-03-02 20:33:03] Production.INFO: CreateAllLog Start [2025-03-02 20:33:03] Production.INFO: ==32253== Lock acquired, processing the job... [2025-03-02 20:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:33:03] Production.INFO: 117 [2025-03-02 20:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:33:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:33:03] Production.INFO: count ==13 [2025-03-02 20:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:33:03] Production.INFO: count ==21 [2025-03-02 20:33:03] Production.ERROR: done [2025-03-02 20:33:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:33:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593592') start [2025-03-02 20:33:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: ==32245== Releasing lock... [2025-03-02 20:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:33:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:33:03] Production.ERROR: done [2025-03-02 20:33:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:33:03 [end_date_ymd] => 2025-03-02 20:33:03 [RateCDR] => 1 ) [2025-03-02 20:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593592') end [2025-03-02 20:33:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:33:03' and `end` < '2025-03-02 20:33:03' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:33:03] Production.INFO: 1 [2025-03-02 20:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:33:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: ==32253== Releasing lock... [2025-03-02 20:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:33:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:03] Production.INFO: Date 2025-02-17 [2025-03-02 20:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:33:04] Production.INFO: Total Charge 0 [2025-03-02 20:33:04] Production.INFO: CreateAllLog End [2025-03-02 20:33:04] Production.INFO: Account Balance End. [2025-03-02 20:33:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:33:04] Production.INFO: ==32249== Releasing lock... [2025-03-02 20:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:33:13] Production.ERROR: CronJobId end10 [2025-03-02 20:33:13] Production.INFO: ==32247== Releasing lock... [2025-03-02 20:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:33:15] Production.INFO: call_cost start [2025-03-02 20:33:15] Production.INFO: call_cost end [2025-03-02 20:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:33:15] Production.INFO: ==32243== Releasing lock... [2025-03-02 20:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:33:15] Production.INFO: count ==1340 [2025-03-02 20:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:33:03 - End Time 2025-03-02 20:33:03 [2025-03-02 20:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593593', 'tblTempUsageDetail_20' ) start [2025-03-02 20:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593593', 'tblTempUsageDetail_20' ) end [2025-03-02 20:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593593', 'tblTempVendorCDR_20' ) start [2025-03-02 20:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593593', 'tblTempVendorCDR_20' ) end [2025-03-02 20:33:16] Production.INFO: ProcessCDR(1,14593593,1,1,2) [2025-03-02 20:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593593', 'tblTempUsageDetail_20' ) start [2025-03-02 20:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593593', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:33:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:33:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:33:23] Production.INFO: ==32251== Releasing lock... [2025-03-02 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:33:23] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:34:01] Production.INFO: ==32325== Lock acquired, processing the job... [2025-03-03 01:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:34:01] Production.INFO: neon service started [2025-03-03 01:34:01] Production.INFO: neon service started [2025-03-03 01:34:01] Production.INFO: ==32325== Releasing lock... [2025-03-03 01:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:34:02] Production.INFO: ==32327== Lock acquired, processing the job... [2025-03-02 20:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:34:02] Production.INFO: ==32329== Lock acquired, processing the job... [2025-03-03 01:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:34:02] Production.INFO: ==32329== Releasing lock... [2025-03-03 01:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:34:02] Production.INFO: ==32327== Releasing lock... [2025-03-02 20:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:34:03] Production.INFO: ==32332== Lock acquired, processing the job... [2025-03-02 20:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:34:03] Production.INFO: ==32334== Lock acquired, processing the job... [2025-03-02 20:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:34:03] Production.INFO: ==32336== Lock acquired, processing the job... [2025-03-02 20:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:34:03] Production.INFO: ==32338== Lock acquired, processing the job... [2025-03-02 20:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:34:03] Production.INFO: Account Balance Start. [2025-03-02 20:34:03] Production.INFO: CreateAllLog Start [2025-03-02 20:34:03] Production.INFO: 117 [2025-03-02 20:34:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:34:03] Production.INFO: ==32340== Lock acquired, processing the job... [2025-03-02 20:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:34:03] Production.INFO: ==32342== Lock acquired, processing the job... [2025-03-02 20:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:03] Production.INFO: ==32334== Releasing lock... [2025-03-02 20:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:34:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:34:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:34:04] Production.INFO: count ==13 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:34:04] Production.INFO: count ==21 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593597') start [2025-03-02 20:34:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593597') end [2025-03-02 20:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:34:04] Production.INFO: 1 [2025-03-02 20:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:34:04] Production.ERROR: done [2025-03-02 20:34:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: ==32342== Releasing lock... [2025-03-02 20:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.ERROR: done [2025-03-02 20:34:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:34:04 [end_date_ymd] => 2025-03-02 20:34:04 [RateCDR] => 1 ) [2025-03-02 20:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:34:04' and `end` < '2025-03-02 20:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:34:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:34:05] Production.INFO: Total Charge 0 [2025-03-02 20:34:05] Production.INFO: CreateAllLog End [2025-03-02 20:34:05] Production.INFO: Account Balance End. [2025-03-02 20:34:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:34:05] Production.INFO: ==32338== Releasing lock... [2025-03-02 20:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:34:11] Production.ERROR: CronJobId end10 [2025-03-02 20:34:11] Production.INFO: ==32336== Releasing lock... [2025-03-02 20:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:34:14] Production.INFO: call_cost start [2025-03-02 20:34:14] Production.INFO: call_cost end [2025-03-02 20:34:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:34:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:34:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:34:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:34:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:34:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:34:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:34:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:34:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:34:14] Production.INFO: ==32332== Releasing lock... [2025-03-02 20:34:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:34:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:34:17] Production.INFO: count ==1343 [2025-03-02 20:34:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:34:04 - End Time 2025-03-02 20:34:04 [2025-03-02 20:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593598', 'tblTempUsageDetail_20' ) start [2025-03-02 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593598', 'tblTempUsageDetail_20' ) end [2025-03-02 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593598', 'tblTempVendorCDR_20' ) start [2025-03-02 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593598', 'tblTempVendorCDR_20' ) end [2025-03-02 20:34:17] Production.INFO: ProcessCDR(1,14593598,1,1,2) [2025-03-02 20:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593598', 'tblTempUsageDetail_20' ) start [2025-03-02 20:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593598', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:34:24] Production.INFO: ==32340== Releasing lock... [2025-03-02 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:34:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:35:02] Production.INFO: ==32416== Lock acquired, processing the job... [2025-03-03 01:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:35:02] Production.INFO: neon service started [2025-03-03 01:35:02] Production.INFO: neon service started [2025-03-03 01:35:02] Production.INFO: ==32416== Releasing lock... [2025-03-03 01:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:35:02] Production.INFO: ==32420== Lock acquired, processing the job... [2025-03-03 01:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:35:02] Production.INFO: ==32420== Releasing lock... [2025-03-03 01:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:35:02] Production.INFO: ==32418== Lock acquired, processing the job... [2025-03-02 20:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:35:03] Production.INFO: ==32418== Releasing lock... [2025-03-02 20:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:35:03] Production.INFO: ==32423== Lock acquired, processing the job... [2025-03-02 20:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:35:04] Production.INFO: ==32425== Lock acquired, processing the job... [2025-03-02 20:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:35:04] Production.INFO: ==32427== Lock acquired, processing the job... [2025-03-02 20:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:35:04] Production.INFO: ==32431== Lock acquired, processing the job... [2025-03-02 20:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:35:04] Production.INFO: ==32429== Lock acquired, processing the job... [2025-03-02 20:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:35:04] Production.INFO: ==32433== Lock acquired, processing the job... [2025-03-02 20:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:35:04] Production.INFO: Account Balance Start. [2025-03-02 20:35:04] Production.INFO: CreateAllLog Start [2025-03-02 20:35:04] Production.INFO: 117 [2025-03-02 20:35:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:35:04] Production.INFO: count ==13 [2025-03-02 20:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:35:04] Production.INFO: count ==21 [2025-03-02 20:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593602') start [2025-03-02 20:35:04] Production.INFO: ==32425== Releasing lock... [2025-03-02 20:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:35:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593602') end [2025-03-02 20:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:35:04] Production.INFO: 1 [2025-03-02 20:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:35:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.INFO: ==32433== Releasing lock... [2025-03-02 20:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:35:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.ERROR: done [2025-03-02 20:35:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:35:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.ERROR: done [2025-03-02 20:35:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:35:05 [end_date_ymd] => 2025-03-02 20:35:05 [RateCDR] => 1 ) [2025-03-02 20:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:35:05' and `end` < '2025-03-02 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:35:05] Production.INFO: Total Charge 0 [2025-03-02 20:35:05] Production.INFO: CreateAllLog End [2025-03-02 20:35:05] Production.INFO: Account Balance End. [2025-03-02 20:35:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:35:05] Production.INFO: ==32429== Releasing lock... [2025-03-02 20:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:35:13] Production.ERROR: CronJobId end10 [2025-03-02 20:35:13] Production.INFO: ==32427== Releasing lock... [2025-03-02 20:35:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:35:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:35:15] Production.INFO: call_cost start [2025-03-02 20:35:15] Production.INFO: call_cost end [2025-03-02 20:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:35:15] Production.INFO: ==32423== Releasing lock... [2025-03-02 20:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:35:17] Production.INFO: count ==1339 [2025-03-02 20:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:35:05 - End Time 2025-03-02 20:35:05 [2025-03-02 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593603', 'tblTempUsageDetail_20' ) start [2025-03-02 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593603', 'tblTempUsageDetail_20' ) end [2025-03-02 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593603', 'tblTempVendorCDR_20' ) start [2025-03-02 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593603', 'tblTempVendorCDR_20' ) end [2025-03-02 20:35:17] Production.INFO: ProcessCDR(1,14593603,1,1,2) [2025-03-02 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593603', 'tblTempUsageDetail_20' ) start [2025-03-02 20:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593603', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:35:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:35:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:35:25] Production.INFO: ==32431== Releasing lock... [2025-03-02 20:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:35:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:36:01] Production.INFO: ==32498== Lock acquired, processing the job... [2025-03-03 01:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:36:01] Production.INFO: neon service started [2025-03-03 01:36:01] Production.INFO: neon service started [2025-03-03 01:36:01] Production.INFO: ==32498== Releasing lock... [2025-03-03 01:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:36:02] Production.INFO: ==32501== Lock acquired, processing the job... [2025-03-02 20:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:36:02] Production.INFO: ==32501== Releasing lock... [2025-03-02 20:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:36:02] Production.INFO: ==32503== Lock acquired, processing the job... [2025-03-03 01:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:36:02] Production.INFO: ==32503== Releasing lock... [2025-03-03 01:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:36:03] Production.INFO: ==32505== Lock acquired, processing the job... [2025-03-02 20:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:36:03] Production.INFO: ==32507== Lock acquired, processing the job... [2025-03-02 20:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:36:03] Production.INFO: ==32511== Lock acquired, processing the job... [2025-03-02 20:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:36:03] Production.INFO: Account Balance Start. [2025-03-02 20:36:03] Production.INFO: CreateAllLog Start [2025-03-02 20:36:03] Production.INFO: 117 [2025-03-02 20:36:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.INFO: ==32509== Lock acquired, processing the job... [2025-03-02 20:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:36:03] Production.INFO: ==32507== Releasing lock... [2025-03-02 20:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:36:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:36:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.INFO: ==32513== Lock acquired, processing the job... [2025-03-02 20:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:36:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:36:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.INFO: ==32515== Lock acquired, processing the job... [2025-03-02 20:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:36:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:36:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: count ==13 [2025-03-02 20:36:04] Production.ERROR: done [2025-03-02 20:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:36:04] Production.INFO: count ==21 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593607') start [2025-03-02 20:36:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593607') end [2025-03-02 20:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:36:04] Production.INFO: 1 [2025-03-02 20:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:36:04] Production.ERROR: done [2025-03-02 20:36:04] Production.INFO: ==32515== Releasing lock... [2025-03-02 20:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:36:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:36:04 [end_date_ymd] => 2025-03-02 20:36:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:36:04' and `end` < '2025-03-02 20: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-03-02 20:36:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:36:04] Production.INFO: Total Charge 0 [2025-03-02 20:36:04] Production.INFO: CreateAllLog End [2025-03-02 20:36:04] Production.INFO: Account Balance End. [2025-03-02 20:36:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:36:04] Production.INFO: ==32511== Releasing lock... [2025-03-02 20:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:36:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:36:12] Production.ERROR: CronJobId end10 [2025-03-02 20:36:12] Production.INFO: ==32509== Releasing lock... [2025-03-02 20:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:36:14] Production.INFO: call_cost start [2025-03-02 20:36:14] Production.INFO: call_cost end [2025-03-02 20:36:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:36:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:36:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:36:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:36:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:36:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:36:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:36:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:36:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:36:14] Production.INFO: ==32505== Releasing lock... [2025-03-02 20:36:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:36:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:36:16] Production.INFO: count ==1338 [2025-03-02 20:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:36:04 - End Time 2025-03-02 20:36:04 [2025-03-02 20:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593608', 'tblTempUsageDetail_20' ) start [2025-03-02 20:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593608', 'tblTempUsageDetail_20' ) end [2025-03-02 20:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593608', 'tblTempVendorCDR_20' ) start [2025-03-02 20:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593608', 'tblTempVendorCDR_20' ) end [2025-03-02 20:36:16] Production.INFO: ProcessCDR(1,14593608,1,1,2) [2025-03-02 20:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593608', 'tblTempUsageDetail_20' ) start [2025-03-02 20:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593608', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:36:24] Production.INFO: ==32513== Releasing lock... [2025-03-02 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:36:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:37:02] Production.INFO: ==32588== Lock acquired, processing the job... [2025-03-03 01:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:37:02] Production.INFO: neon service started [2025-03-03 01:37:02] Production.INFO: neon service started [2025-03-03 01:37:02] Production.INFO: ==32588== Releasing lock... [2025-03-03 01:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:37:02] Production.INFO: ==32592== Lock acquired, processing the job... [2025-03-02 20:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:37:02] Production.INFO: ==32592== Releasing lock... [2025-03-02 20:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:37:03] Production.INFO: ==32594== Lock acquired, processing the job... [2025-03-03 01:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:37:03] Production.INFO: ==32594== Releasing lock... [2025-03-03 01:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:37:03] Production.INFO: ==32596== Lock acquired, processing the job... [2025-03-02 20:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:37:03] Production.INFO: ==32598== Lock acquired, processing the job... [2025-03-02 20:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:37:03] Production.INFO: ==32600== Lock acquired, processing the job... [2025-03-02 20:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:37:03] Production.INFO: ==32602== Lock acquired, processing the job... [2025-03-02 20:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:37:04] Production.INFO: ==32604== Lock acquired, processing the job... [2025-03-02 20:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:37:04] Production.INFO: Account Balance Start. [2025-03-02 20:37:04] Production.INFO: CreateAllLog Start [2025-03-02 20:37:04] Production.INFO: ==32606== Lock acquired, processing the job... [2025-03-02 20:37:04] Production.INFO: 117 [2025-03-02 20:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:37:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:37:04] Production.INFO: count ==13 [2025-03-02 20:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:37:04] Production.INFO: count ==21 [2025-03-02 20:37:04] Production.INFO: ==32598== Releasing lock... [2025-03-02 20:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593612') start [2025-03-02 20:37:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.ERROR: done [2025-03-02 20:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:37:04] Production.ERROR: done [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593612') end [2025-03-02 20:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:37:04] Production.INFO: 1 [2025-03-02 20:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:37:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:04] Production.INFO: ==32606== Releasing lock... [2025-03-02 20:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:37:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:37:05 [end_date_ymd] => 2025-03-02 20:37:05 [RateCDR] => 1 ) [2025-03-02 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:37:05' and `end` < '2025-03-02 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:37:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:37:05] Production.INFO: Total Charge 0 [2025-03-02 20:37:05] Production.INFO: CreateAllLog End [2025-03-02 20:37:05] Production.INFO: Account Balance End. [2025-03-02 20:37:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:37:05] Production.INFO: ==32602== Releasing lock... [2025-03-02 20:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:37:13] Production.ERROR: CronJobId end10 [2025-03-02 20:37:13] Production.INFO: ==32600== Releasing lock... [2025-03-02 20:37:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:37:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:37:14] Production.INFO: call_cost start [2025-03-02 20:37:14] Production.INFO: call_cost end [2025-03-02 20:37:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:37:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:37:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:37:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:37:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:37:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:37:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:37:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:37:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:37:14] Production.INFO: ==32596== Releasing lock... [2025-03-02 20:37:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:37:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:37:17] Production.INFO: count ==1340 [2025-03-02 20:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:37:05 - End Time 2025-03-02 20:37:05 [2025-03-02 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593613', 'tblTempUsageDetail_20' ) start [2025-03-02 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593613', 'tblTempUsageDetail_20' ) end [2025-03-02 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593613', 'tblTempVendorCDR_20' ) start [2025-03-02 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593613', 'tblTempVendorCDR_20' ) end [2025-03-02 20:37:17] Production.INFO: ProcessCDR(1,14593613,1,1,2) [2025-03-02 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593613', 'tblTempUsageDetail_20' ) start [2025-03-02 20:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593613', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:37:24] Production.INFO: ==32604== Releasing lock... [2025-03-02 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:37:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:38:01] Production.INFO: ==32676== Lock acquired, processing the job... [2025-03-03 01:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:38:01] Production.INFO: neon service started [2025-03-03 01:38:01] Production.INFO: neon service started [2025-03-03 01:38:01] Production.INFO: ==32676== Releasing lock... [2025-03-03 01:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:38:02] Production.INFO: ==32678== Lock acquired, processing the job... [2025-03-02 20:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:38:02] Production.INFO: ==32680== Lock acquired, processing the job... [2025-03-03 01:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:38:02] Production.INFO: ==32680== Releasing lock... [2025-03-03 01:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:38:02] Production.INFO: ==32678== Releasing lock... [2025-03-02 20:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:38:03] Production.INFO: ==32683== Lock acquired, processing the job... [2025-03-02 20:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:38:03] Production.INFO: ==32685== Lock acquired, processing the job... [2025-03-02 20:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:38:03] Production.INFO: ==32689== Lock acquired, processing the job... [2025-03-02 20:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:38:03] Production.INFO: ==32687== Lock acquired, processing the job... [2025-03-02 20:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:38:03] Production.INFO: Account Balance Start. [2025-03-02 20:38:03] Production.INFO: CreateAllLog Start [2025-03-02 20:38:03] Production.INFO: 117 [2025-03-02 20:38:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:03] Production.INFO: ==32691== Lock acquired, processing the job... [2025-03-02 20:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:38:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:38:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: ==32693== Lock acquired, processing the job... [2025-03-02 20:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:38:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:38:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: ==32685== Releasing lock... [2025-03-02 20:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:38:04] Production.INFO: count ==13 [2025-03-02 20:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:38:04] Production.INFO: count ==21 [2025-03-02 20:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593617') start [2025-03-02 20:38:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593617') end [2025-03-02 20:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:38:04] Production.INFO: 1 [2025-03-02 20:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:38:04] Production.INFO: ==32693== Releasing lock... [2025-03-02 20:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:38:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.ERROR: done [2025-03-02 20:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:38:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:04] Production.ERROR: done [2025-03-02 20:38:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:38:05 [end_date_ymd] => 2025-03-02 20:38:05 [RateCDR] => 1 ) [2025-03-02 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:38:05' and `end` < '2025-03-02 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:38:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:38:05] Production.INFO: Total Charge 0 [2025-03-02 20:38:05] Production.INFO: CreateAllLog End [2025-03-02 20:38:05] Production.INFO: Account Balance End. [2025-03-02 20:38:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:38:05] Production.INFO: ==32689== Releasing lock... [2025-03-02 20:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:38:12] Production.ERROR: CronJobId end10 [2025-03-02 20:38:12] Production.INFO: ==32687== Releasing lock... [2025-03-02 20:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:38:14] Production.INFO: call_cost start [2025-03-02 20:38:14] Production.INFO: call_cost end [2025-03-02 20:38:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:38:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:38:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:38:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:38:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:38:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:38:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:38:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:38:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:38:14] Production.INFO: ==32683== Releasing lock... [2025-03-02 20:38:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:38:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:38:17] Production.INFO: count ==1336 [2025-03-02 20:38:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:38:05 - End Time 2025-03-02 20:38:05 [2025-03-02 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593618', 'tblTempUsageDetail_20' ) start [2025-03-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593618', 'tblTempUsageDetail_20' ) end [2025-03-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593618', 'tblTempVendorCDR_20' ) start [2025-03-02 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593618', 'tblTempVendorCDR_20' ) end [2025-03-02 20:38:17] Production.INFO: ProcessCDR(1,14593618,1,1,2) [2025-03-02 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593618', 'tblTempUsageDetail_20' ) start [2025-03-02 20:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593618', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:38:24] Production.INFO: ==32691== Releasing lock... [2025-03-02 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:38:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:39:02] Production.INFO: ==32755== Lock acquired, processing the job... [2025-03-03 01:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:39:02] Production.INFO: neon service started [2025-03-03 01:39:02] Production.INFO: neon service started [2025-03-03 01:39:02] Production.INFO: ==32755== Releasing lock... [2025-03-03 01:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:39:02] Production.INFO: ==32757== Lock acquired, processing the job... [2025-03-02 20:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:39:02] Production.INFO: ==32759== Lock acquired, processing the job... [2025-03-03 01:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:39:02] Production.INFO: ==32759== Releasing lock... [2025-03-03 01:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:39:03] Production.INFO: ==32757== Releasing lock... [2025-03-02 20:39:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:39:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:39:03] Production.INFO: ==32764== Lock acquired, processing the job... [2025-03-02 20:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:39:04] Production.INFO: ==32766== Lock acquired, processing the job... [2025-03-02 20:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:39:04] Production.INFO: ==302== Lock acquired, processing the job... [2025-03-02 20:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:39:04] Production.INFO: ==300== Lock acquired, processing the job... [2025-03-02 20:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:39:04] Production.INFO: ==304== Lock acquired, processing the job... [2025-03-02 20:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:39:04] Production.INFO: Account Balance Start. [2025-03-02 20:39:04] Production.INFO: CreateAllLog Start [2025-03-02 20:39:04] Production.INFO: 117 [2025-03-02 20:39:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.INFO: ==307== Lock acquired, processing the job... [2025-03-02 20:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:39:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.INFO: ==32766== Releasing lock... [2025-03-02 20:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:39:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:39:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.INFO: count ==13 [2025-03-02 20:39:04] Production.ERROR: done [2025-03-02 20:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:39:04] Production.INFO: count ==21 [2025-03-02 20:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593622') start [2025-03-02 20:39:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593622') end [2025-03-02 20:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:39:04] Production.INFO: 1 [2025-03-02 20:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:39:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.ERROR: done [2025-03-02 20:39:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: ==307== Releasing lock... [2025-03-02 20:39:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:39:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:39:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:39:05 [end_date_ymd] => 2025-03-02 20:39:05 [RateCDR] => 1 ) [2025-03-02 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:39:05' and `end` < '2025-03-02 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:39:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:39:05] Production.INFO: Total Charge 0 [2025-03-02 20:39:05] Production.INFO: CreateAllLog End [2025-03-02 20:39:05] Production.INFO: Account Balance End. [2025-03-02 20:39:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:39:05] Production.INFO: ==302== Releasing lock... [2025-03-02 20:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:39:13] Production.ERROR: CronJobId end10 [2025-03-02 20:39:13] Production.INFO: ==300== Releasing lock... [2025-03-02 20:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:39:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:39:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:39:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:39:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:39:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:39:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:39:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:39:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:39:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:39:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:39:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:39:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:39:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:39:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:39:14] Production.INFO: call_cost start [2025-03-02 20:39:14] Production.INFO: call_cost end [2025-03-02 20:39:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:39:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:39:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:39:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:39:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:39:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:39:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:39:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:39:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:39:14] Production.INFO: ==32764== Releasing lock... [2025-03-02 20:39:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:39:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:39:17] Production.INFO: count ==1334 [2025-03-02 20:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:39:05 - End Time 2025-03-02 20:39:05 [2025-03-02 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593623', 'tblTempUsageDetail_20' ) start [2025-03-02 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593623', 'tblTempUsageDetail_20' ) end [2025-03-02 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593623', 'tblTempVendorCDR_20' ) start [2025-03-02 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593623', 'tblTempVendorCDR_20' ) end [2025-03-02 20:39:17] Production.INFO: ProcessCDR(1,14593623,1,1,2) [2025-03-02 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593623', 'tblTempUsageDetail_20' ) start [2025-03-02 20:39:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593623', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:39:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:39:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:39:25] Production.INFO: ==304== Releasing lock... [2025-03-02 20:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:39:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:40:01] Production.INFO: ==408== Lock acquired, processing the job... [2025-03-03 01:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:40:01] Production.INFO: neon service started [2025-03-03 01:40:01] Production.INFO: neon service started [2025-03-03 01:40:01] Production.INFO: ==408== Releasing lock... [2025-03-03 01:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:40:02] Production.INFO: ==412== Lock acquired, processing the job... [2025-03-03 01:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:40:02] Production.INFO: ==412== Releasing lock... [2025-03-03 01:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:40:02] Production.INFO: ==410== Lock acquired, processing the job... [2025-03-02 20:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:40:02] Production.INFO: ==410== Releasing lock... [2025-03-02 20:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:40:03] Production.INFO: ==419== Lock acquired, processing the job... [2025-03-02 20:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:40:03] Production.INFO: ==415== Lock acquired, processing the job... [2025-03-02 20:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 20:40:03] Production.INFO: ==417== Lock acquired, processing the job... [2025-03-02 20:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:40:03] Production.INFO: ==423== Lock acquired, processing the job... [2025-03-02 20:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 20:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 20:40:03] Production.ERROR: CronJob PID - 417 [2025-03-02 20:40:03] Production.ERROR: CronJob Title - System Alerts [2025-03-02 20:40:03] Production.ERROR: CronJob ID - 5 [2025-03-02 20:40:03] Production.ERROR: CronJob Last Run Time 2025-03-02 20:40:00 [2025-03-02 20:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 20:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 20:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 20:40:03] Production.ERROR: CronJob PID - 419 [2025-03-02 20:40:03] Production.ERROR: CronJob Title - Account Block [2025-03-02 20:40:03] Production.ERROR: CronJob ID - 7 [2025-03-02 20:40:03] Production.ERROR: CronJob Last Run Time 2025-03-02 20:40:00 [2025-03-02 20:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 20:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 20:40:03] Production.INFO: ==421== Lock acquired, processing the job... [2025-03-02 20:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:40:04] Production.INFO: ==425== Lock acquired, processing the job... [2025-03-02 20:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 20:40:04] Production.INFO: ==415== Releasing lock... [2025-03-02 20:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 20:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:40:04] Production.INFO: Account Balance Start. [2025-03-02 20:40:04] Production.INFO: CreateAllLog Start [2025-03-02 20:40:04] Production.INFO: 117 [2025-03-02 20:40:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:40:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.INFO: ==427== Lock acquired, processing the job... [2025-03-02 20:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 20:40:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.INFO: ==429== Lock acquired, processing the job... [2025-03-02 20:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:40:04] Production.INFO: ==419== Releasing lock... [2025-03-02 20:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:40:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.ERROR: done [2025-03-02 20:40:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:40:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.INFO: count ==13 [2025-03-02 20:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:40:04] Production.INFO: count ==21 [2025-03-02 20:40:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593627') start [2025-03-02 20:40:04] Production.ERROR: done [2025-03-02 20:40:04] Production.ERROR: done [2025-03-02 20:40:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 20:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593628', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 20:40:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:40:04 [end_date_ymd] => 2025-03-02 20:40:04 [RateCDR] => 1 ) [2025-03-02 20:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:40:04' and `end` < '2025-03-02 20:40:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593627') end [2025-03-02 20:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:40:04] Production.INFO: 1 [2025-03-02 20:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:40:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: ==429== Releasing lock... [2025-03-02 20:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:40:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:40:05] Production.INFO: Total Charge 0 [2025-03-02 20:40:05] Production.INFO: CreateAllLog End [2025-03-02 20:40:05] Production.INFO: Account Balance End. [2025-03-02 20:40:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:40:05] Production.INFO: ==423== Releasing lock... [2025-03-02 20:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593628', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 20:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 20:40:09] Production.INFO: ProcessCDR(1,14593628,1,1,2) [2025-03-02 20:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593628,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593628,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 20:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 20:40:09] Production.INFO: ==427== Releasing lock... [2025-03-02 20:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 20:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 20:40:16] Production.ERROR: CronJobId end10 [2025-03-02 20:40:16] Production.INFO: ==421== Releasing lock... [2025-03-02 20:40:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:40:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:40:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:40:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:40:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:40:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:40:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:40:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:40:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:40:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:40:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:40:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:40:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:40:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:40:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:40:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:40:17] Production.INFO: call_cost start [2025-03-02 20:40:17] Production.INFO: call_cost end [2025-03-02 20:40:17] Production.INFO: count ==1332 [2025-03-02 20:40:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:40:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:40:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:40:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:40:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:40:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:40:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:40:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:40:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:40:17] Production.INFO: ==417== Releasing lock... [2025-03-02 20:40:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:40:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:40:04 - End Time 2025-03-02 20:40:04 [2025-03-02 20:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593629', 'tblTempUsageDetail_20' ) start [2025-03-02 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593629', 'tblTempUsageDetail_20' ) end [2025-03-02 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593629', 'tblTempVendorCDR_20' ) start [2025-03-02 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593629', 'tblTempVendorCDR_20' ) end [2025-03-02 20:40:17] Production.INFO: ProcessCDR(1,14593629,1,1,2) [2025-03-02 20:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593629', 'tblTempUsageDetail_20' ) start [2025-03-02 20:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593629', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:40:25] Production.INFO: ==425== Releasing lock... [2025-03-02 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:40:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:41:02] Production.INFO: ==546== Lock acquired, processing the job... [2025-03-03 01:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:41:02] Production.INFO: neon service started [2025-03-03 01:41:02] Production.INFO: neon service started [2025-03-03 01:41:02] Production.INFO: ==546== Releasing lock... [2025-03-03 01:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:41:02] Production.INFO: ==549== Lock acquired, processing the job... [2025-03-02 20:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:41:02] Production.INFO: ==549== Releasing lock... [2025-03-02 20:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:41:02] Production.INFO: ==551== Lock acquired, processing the job... [2025-03-03 01:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:41:02] Production.INFO: ==551== Releasing lock... [2025-03-03 01:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:41:03] Production.INFO: ==559== Lock acquired, processing the job... [2025-03-02 20:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:41:03] Production.INFO: ==561== Lock acquired, processing the job... [2025-03-02 20:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:41:03] Production.INFO: Account Balance Start. [2025-03-02 20:41:03] Production.INFO: CreateAllLog Start [2025-03-02 20:41:03] Production.INFO: 117 [2025-03-02 20:41:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:03] Production.INFO: ==553== Lock acquired, processing the job... [2025-03-02 20:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:41:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:03] Production.INFO: ==555== Lock acquired, processing the job... [2025-03-02 20:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:41:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:03] Production.INFO: ==557== Lock acquired, processing the job... [2025-03-02 20:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:41:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:41:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: ==563== Lock acquired, processing the job... [2025-03-02 20:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:41:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.ERROR: done [2025-03-02 20:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:41:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: count ==13 [2025-03-02 20:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:41:04] Production.INFO: count ==21 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593633') start [2025-03-02 20:41:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: ==555== Releasing lock... [2025-03-02 20:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:41:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.ERROR: done [2025-03-02 20:41:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593633') end [2025-03-02 20:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:41:04] Production.INFO: 1 [2025-03-02 20:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: ==563== Releasing lock... [2025-03-02 20:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:41:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:41:04 [end_date_ymd] => 2025-03-02 20:41:04 [RateCDR] => 1 ) [2025-03-02 20:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:41:04' and `end` < '2025-03-02 20:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:41:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:41:04] Production.INFO: Total Charge 0 [2025-03-02 20:41:04] Production.INFO: CreateAllLog End [2025-03-02 20:41:05] Production.INFO: Account Balance End. [2025-03-02 20:41:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:41:05] Production.INFO: ==559== Releasing lock... [2025-03-02 20:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:41:13] Production.ERROR: CronJobId end10 [2025-03-02 20:41:13] Production.INFO: ==557== Releasing lock... [2025-03-02 20:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:41:15] Production.INFO: call_cost start [2025-03-02 20:41:15] Production.INFO: call_cost end [2025-03-02 20:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:41:15] Production.INFO: ==553== Releasing lock... [2025-03-02 20:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:41:16] Production.INFO: count ==1338 [2025-03-02 20:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:41:04 - End Time 2025-03-02 20:41:04 [2025-03-02 20:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593634', 'tblTempUsageDetail_20' ) start [2025-03-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593634', 'tblTempUsageDetail_20' ) end [2025-03-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593634', 'tblTempVendorCDR_20' ) start [2025-03-02 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593634', 'tblTempVendorCDR_20' ) end [2025-03-02 20:41:17] Production.INFO: ProcessCDR(1,14593634,1,1,2) [2025-03-02 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593634', 'tblTempUsageDetail_20' ) start [2025-03-02 20:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593634', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:41:24] Production.INFO: ==561== Releasing lock... [2025-03-02 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:41:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:42:01] Production.INFO: ==681== Lock acquired, processing the job... [2025-03-03 01:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:42:01] Production.INFO: neon service started [2025-03-03 01:42:01] Production.INFO: neon service started [2025-03-03 01:42:01] Production.INFO: ==681== Releasing lock... [2025-03-03 01:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:42:02] Production.INFO: ==690== Lock acquired, processing the job... [2025-03-02 20:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:42:02] Production.INFO: ==690== Releasing lock... [2025-03-02 20:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:42:02] Production.INFO: ==693== Lock acquired, processing the job... [2025-03-03 01:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:42:02] Production.INFO: ==693== Releasing lock... [2025-03-03 01:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:42:03] Production.INFO: ==700== Lock acquired, processing the job... [2025-03-02 20:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:42:03] Production.INFO: ==711== Lock acquired, processing the job... [2025-03-02 20:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:42:03] Production.INFO: ==698== Lock acquired, processing the job... [2025-03-02 20:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:42:03] Production.INFO: count ==13 [2025-03-02 20:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:42:03] Production.INFO: ==704== Lock acquired, processing the job... [2025-03-02 20:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:42:03] Production.INFO: ==706== Lock acquired, processing the job... [2025-03-02 20:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:42:03] Production.INFO: count ==21 [2025-03-02 20:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593635') start [2025-03-02 20:42:03] Production.INFO: ==709== Lock acquired, processing the job... [2025-03-02 20:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593635') end [2025-03-02 20:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:42:03] Production.INFO: 1 [2025-03-02 20:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:42:03] Production.INFO: Account Balance Start. [2025-03-02 20:42:03] Production.INFO: CreateAllLog Start [2025-03-02 20:42:03] Production.INFO: 117 [2025-03-02 20:42:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:42:03] Production.INFO: ==711== Releasing lock... [2025-03-02 20:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:42:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: ==700== Releasing lock... [2025-03-02 20:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:42:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:42:04] Production.ERROR: done [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.ERROR: done [2025-03-02 20:42:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:42:04 [end_date_ymd] => 2025-03-02 20:42:04 [RateCDR] => 1 ) [2025-03-02 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:42:04' and `end` < '2025-03-02 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:42:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:42:04] Production.INFO: Total Charge 0 [2025-03-02 20:42:04] Production.INFO: CreateAllLog End [2025-03-02 20:42:04] Production.INFO: Account Balance End. [2025-03-02 20:42:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:42:05] Production.INFO: ==706== Releasing lock... [2025-03-02 20:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:42:13] Production.ERROR: CronJobId end10 [2025-03-02 20:42:13] Production.INFO: ==704== Releasing lock... [2025-03-02 20:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:42:14] Production.INFO: call_cost start [2025-03-02 20:42:14] Production.INFO: call_cost end [2025-03-02 20:42:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:42:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:42:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:42:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:42:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:42:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:42:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:42:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:42:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:42:14] Production.INFO: ==698== Releasing lock... [2025-03-02 20:42:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:42:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:42:16] Production.INFO: count ==1338 [2025-03-02 20:42:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:42:04 - End Time 2025-03-02 20:42:04 [2025-03-02 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593639', 'tblTempUsageDetail_20' ) start [2025-03-02 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593639', 'tblTempUsageDetail_20' ) end [2025-03-02 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593639', 'tblTempVendorCDR_20' ) start [2025-03-02 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593639', 'tblTempVendorCDR_20' ) end [2025-03-02 20:42:17] Production.INFO: ProcessCDR(1,14593639,1,1,2) [2025-03-02 20:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593639', 'tblTempUsageDetail_20' ) start [2025-03-02 20:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593639', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:42:24] Production.INFO: ==709== Releasing lock... [2025-03-02 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:42:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:43:02] Production.INFO: ==790== Lock acquired, processing the job... [2025-03-03 01:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:43:02] Production.INFO: neon service started [2025-03-03 01:43:02] Production.INFO: neon service started [2025-03-03 01:43:02] Production.INFO: ==790== Releasing lock... [2025-03-03 01:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:43:02] Production.INFO: ==792== Lock acquired, processing the job... [2025-03-02 20:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:43:02] Production.INFO: ==794== Lock acquired, processing the job... [2025-03-03 01:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:43:02] Production.INFO: ==794== Releasing lock... [2025-03-03 01:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:43:03] Production.INFO: ==792== Releasing lock... [2025-03-02 20:43:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:43:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:43:04] Production.INFO: ==799== Lock acquired, processing the job... [2025-03-02 20:43:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:43:04] Production.INFO: ==805== Lock acquired, processing the job... [2025-03-02 20:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:43:04] Production.INFO: ==801== Lock acquired, processing the job... [2025-03-02 20:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:43:04] Production.INFO: ==803== Lock acquired, processing the job... [2025-03-02 20:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:43:04] Production.INFO: ==807== Lock acquired, processing the job... [2025-03-02 20:43:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:43:04] Production.INFO: Account Balance Start. [2025-03-02 20:43:04] Production.INFO: CreateAllLog Start [2025-03-02 20:43:04] Production.INFO: 117 [2025-03-02 20:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:43:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:04] Production.INFO: ==809== Lock acquired, processing the job... [2025-03-02 20:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:43:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:43:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:04] Production.INFO: count ==13 [2025-03-02 20:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:43:04] Production.INFO: count ==21 [2025-03-02 20:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593643') start [2025-03-02 20:43:04] Production.INFO: ==801== Releasing lock... [2025-03-02 20:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:43:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593643') end [2025-03-02 20:43:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:43:05] Production.INFO: 1 [2025-03-02 20:43:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:43:05] Production.ERROR: done [2025-03-02 20:43:05] Production.INFO: Date 2025-02-13 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:43:05] Production.INFO: ==809== Releasing lock... [2025-03-02 20:43:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:43:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:43:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.ERROR: done [2025-03-02 20:43:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:43:05 [end_date_ymd] => 2025-03-02 20:43:05 [RateCDR] => 1 ) [2025-03-02 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:43:05' and `end` < '2025-03-02 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:43:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:43:05] Production.INFO: Total Charge 0 [2025-03-02 20:43:05] Production.INFO: CreateAllLog End [2025-03-02 20:43:06] Production.INFO: Account Balance End. [2025-03-02 20:43:06] Production.ERROR: CronJobId end 12 [2025-03-02 20:43:06] Production.INFO: ==805== Releasing lock... [2025-03-02 20:43:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:43:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:43:13] Production.ERROR: CronJobId end10 [2025-03-02 20:43:13] Production.INFO: ==803== Releasing lock... [2025-03-02 20:43:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:43:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:43:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:43:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:43:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:43:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:43:15] Production.INFO: call_cost start [2025-03-02 20:43:15] Production.INFO: call_cost end [2025-03-02 20:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:43:15] Production.INFO: ==799== Releasing lock... [2025-03-02 20:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:43:17] Production.INFO: count ==1338 [2025-03-02 20:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:43:05 - End Time 2025-03-02 20:43:05 [2025-03-02 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593644', 'tblTempUsageDetail_20' ) start [2025-03-02 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593644', 'tblTempUsageDetail_20' ) end [2025-03-02 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593644', 'tblTempVendorCDR_20' ) start [2025-03-02 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593644', 'tblTempVendorCDR_20' ) end [2025-03-02 20:43:17] Production.INFO: ProcessCDR(1,14593644,1,1,2) [2025-03-02 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593644', 'tblTempUsageDetail_20' ) start [2025-03-02 20:43:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593644', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:43:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:43:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:43:25] Production.INFO: ==807== Releasing lock... [2025-03-02 20:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:43:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:44:01] Production.INFO: ==911== Lock acquired, processing the job... [2025-03-03 01:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:44:01] Production.INFO: neon service started [2025-03-03 01:44:01] Production.INFO: neon service started [2025-03-03 01:44:01] Production.INFO: ==911== Releasing lock... [2025-03-03 01:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:44:02] Production.INFO: ==914== Lock acquired, processing the job... [2025-03-02 20:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:44:02] Production.INFO: ==916== Lock acquired, processing the job... [2025-03-03 01:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:44:02] Production.INFO: ==916== Releasing lock... [2025-03-03 01:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:44:02] Production.INFO: ==914== Releasing lock... [2025-03-02 20:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:44:03] Production.INFO: ==927== Lock acquired, processing the job... [2025-03-02 20:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:44:03] Production.INFO: ==929== Lock acquired, processing the job... [2025-03-02 20:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:44:03] Production.INFO: Account Balance Start. [2025-03-02 20:44:03] Production.INFO: CreateAllLog Start [2025-03-02 20:44:03] Production.INFO: 117 [2025-03-02 20:44:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:44:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:03] Production.INFO: ==923== Lock acquired, processing the job... [2025-03-02 20:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:44:03] Production.INFO: ==921== Lock acquired, processing the job... [2025-03-02 20:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:44:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:03] Production.INFO: ==925== Lock acquired, processing the job... [2025-03-02 20:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:44:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: ==931== Lock acquired, processing the job... [2025-03-02 20:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:44:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:44:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:44:04] Production.INFO: count ==13 [2025-03-02 20:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:44:04] Production.INFO: count ==21 [2025-03-02 20:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593648') start [2025-03-02 20:44:04] Production.ERROR: done [2025-03-02 20:44:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: ==923== Releasing lock... [2025-03-02 20:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593648') end [2025-03-02 20:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:44:04] Production.INFO: 1 [2025-03-02 20:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:44:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: ==931== Releasing lock... [2025-03-02 20:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:44:04] Production.ERROR: done [2025-03-02 20:44:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:44:04 [end_date_ymd] => 2025-03-02 20:44:04 [RateCDR] => 1 ) [2025-03-02 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:44:04' and `end` < '2025-03-02 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:44:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:44:04] Production.INFO: Total Charge 0 [2025-03-02 20:44:04] Production.INFO: CreateAllLog End [2025-03-02 20:44:04] Production.INFO: Account Balance End. [2025-03-02 20:44:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:44:05] Production.INFO: ==927== Releasing lock... [2025-03-02 20:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:44:13] Production.ERROR: CronJobId end10 [2025-03-02 20:44:13] Production.INFO: ==925== Releasing lock... [2025-03-02 20:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:44:14] Production.INFO: call_cost start [2025-03-02 20:44:14] Production.INFO: call_cost end [2025-03-02 20:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:44:14] Production.INFO: ==921== Releasing lock... [2025-03-02 20:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:44:16] Production.INFO: count ==1341 [2025-03-02 20:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:44:04 - End Time 2025-03-02 20:44:04 [2025-03-02 20:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593649', 'tblTempUsageDetail_20' ) start [2025-03-02 20:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593649', 'tblTempUsageDetail_20' ) end [2025-03-02 20:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593649', 'tblTempVendorCDR_20' ) start [2025-03-02 20:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593649', 'tblTempVendorCDR_20' ) end [2025-03-02 20:44:16] Production.INFO: ProcessCDR(1,14593649,1,1,2) [2025-03-02 20:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593649', 'tblTempUsageDetail_20' ) start [2025-03-02 20:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593649', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:44:24] Production.INFO: ==929== Releasing lock... [2025-03-02 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:44:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:45:02] Production.INFO: ==1007== Lock acquired, processing the job... [2025-03-03 01:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:45:02] Production.INFO: neon service started [2025-03-03 01:45:02] Production.INFO: neon service started [2025-03-03 01:45:02] Production.INFO: ==1007== Releasing lock... [2025-03-03 01:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:45:02] Production.INFO: ==1009== Lock acquired, processing the job... [2025-03-02 20:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:45:02] Production.INFO: ==1011== Lock acquired, processing the job... [2025-03-03 01:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:45:02] Production.INFO: ==1011== Releasing lock... [2025-03-03 01:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:45:03] Production.INFO: ==1009== Releasing lock... [2025-03-02 20:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:45:04] Production.INFO: ==1014== Lock acquired, processing the job... [2025-03-02 20:45:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:45:04] Production.INFO: ==1016== Lock acquired, processing the job... [2025-03-02 20:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:45:04] Production.INFO: ==1018== Lock acquired, processing the job... [2025-03-02 20:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:45:04] Production.INFO: ==1020== Lock acquired, processing the job... [2025-03-02 20:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:45:04] Production.INFO: Account Balance Start. [2025-03-02 20:45:04] Production.INFO: CreateAllLog Start [2025-03-02 20:45:04] Production.INFO: 117 [2025-03-02 20:45:04] Production.INFO: ==1022== Lock acquired, processing the job... [2025-03-02 20:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:45:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:45:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: ==1024== Lock acquired, processing the job... [2025-03-02 20:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:45:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: ==1016== Releasing lock... [2025-03-02 20:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:45:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:45:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: count ==13 [2025-03-02 20:45:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:45:05] Production.INFO: count ==21 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:45:05] Production.ERROR: done [2025-03-02 20:45:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593653') start [2025-03-02 20:45:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593653') end [2025-03-02 20:45:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:45:05] Production.INFO: 1 [2025-03-02 20:45:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:45:05] Production.ERROR: done [2025-03-02 20:45:05] Production.INFO: ==1024== Releasing lock... [2025-03-02 20:45:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:45:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:45:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:45:05 [end_date_ymd] => 2025-03-02 20:45:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:45:05' and `end` < '2025-03-02 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-03-02 20:45:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:45:05] Production.INFO: Total Charge 0 [2025-03-02 20:45:05] Production.INFO: CreateAllLog End [2025-03-02 20:45:05] Production.INFO: Account Balance End. [2025-03-02 20:45:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:45:05] Production.INFO: ==1020== Releasing lock... [2025-03-02 20:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:45:13] Production.ERROR: CronJobId end10 [2025-03-02 20:45:13] Production.INFO: ==1018== Releasing lock... [2025-03-02 20:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:45:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:45:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:45:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:45:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:45:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:45:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:45:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:45:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:45:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:45:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:45:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:45:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:45:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:45:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:45:16] Production.INFO: call_cost start [2025-03-02 20:45:16] Production.INFO: call_cost end [2025-03-02 20:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:45:16] Production.INFO: ==1014== Releasing lock... [2025-03-02 20:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:45:17] Production.INFO: count ==1340 [2025-03-02 20:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:45:05 - End Time 2025-03-02 20:45:05 [2025-03-02 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593654', 'tblTempUsageDetail_20' ) start [2025-03-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593654', 'tblTempUsageDetail_20' ) end [2025-03-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593654', 'tblTempVendorCDR_20' ) start [2025-03-02 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593654', 'tblTempVendorCDR_20' ) end [2025-03-02 20:45:17] Production.INFO: ProcessCDR(1,14593654,1,1,2) [2025-03-02 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593654', 'tblTempUsageDetail_20' ) start [2025-03-02 20:45:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593654', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:45:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:45:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:45:25] Production.INFO: ==1022== Releasing lock... [2025-03-02 20:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:45:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:46:01] Production.INFO: ==1098== Lock acquired, processing the job... [2025-03-03 01:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:46:01] Production.INFO: neon service started [2025-03-03 01:46:01] Production.INFO: neon service started [2025-03-03 01:46:01] Production.INFO: ==1098== Releasing lock... [2025-03-03 01:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:46:02] Production.INFO: ==1102== Lock acquired, processing the job... [2025-03-03 01:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:46:02] Production.INFO: ==1102== Releasing lock... [2025-03-03 01:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:46:02] Production.INFO: ==1100== Lock acquired, processing the job... [2025-03-02 20:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:46:02] Production.INFO: ==1100== Releasing lock... [2025-03-02 20:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:46:03] Production.INFO: ==1111== Lock acquired, processing the job... [2025-03-02 20:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:46:03] Production.INFO: ==1115== Lock acquired, processing the job... [2025-03-02 20:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:46:03] Production.INFO: Account Balance Start. [2025-03-02 20:46:03] Production.INFO: CreateAllLog Start [2025-03-02 20:46:03] Production.INFO: 117 [2025-03-02 20:46:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: ==1105== Lock acquired, processing the job... [2025-03-02 20:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:46:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: ==1107== Lock acquired, processing the job... [2025-03-02 20:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:46:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:46:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: count ==13 [2025-03-02 20:46:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:46:03] Production.INFO: count ==21 [2025-03-02 20:46:03] Production.INFO: ==1109== Lock acquired, processing the job... [2025-03-02 20:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:46:03] Production.INFO: ==1113== Lock acquired, processing the job... [2025-03-02 20:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:46:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593656') start [2025-03-02 20:46:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593656') end [2025-03-02 20:46:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:46:03] Production.INFO: 1 [2025-03-02 20:46:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:46:03] Production.INFO: Date 2025-02-17 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:03] Production.INFO: Date 2025-02-18 [2025-03-02 20:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: ==1115== Releasing lock... [2025-03-02 20:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:46:04] Production.INFO: ==1107== Releasing lock... [2025-03-02 20:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:46:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.ERROR: done [2025-03-02 20:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.ERROR: done [2025-03-02 20:46:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:46:04 [end_date_ymd] => 2025-03-02 20:46:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:46:04' and `end` < '2025-03-02 20: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-03-02 20:46:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:46:04] Production.INFO: Total Charge 0 [2025-03-02 20:46:04] Production.INFO: CreateAllLog End [2025-03-02 20:46:04] Production.INFO: Account Balance End. [2025-03-02 20:46:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:46:05] Production.INFO: ==1111== Releasing lock... [2025-03-02 20:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:46:13] Production.ERROR: CronJobId end10 [2025-03-02 20:46:13] Production.INFO: ==1109== Releasing lock... [2025-03-02 20:46:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:46:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:46:15] Production.INFO: call_cost start [2025-03-02 20:46:15] Production.INFO: call_cost end [2025-03-02 20:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:46:15] Production.INFO: ==1105== Releasing lock... [2025-03-02 20:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:46:16] Production.INFO: count ==1344 [2025-03-02 20:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:46:04 - End Time 2025-03-02 20:46:04 [2025-03-02 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593659', 'tblTempUsageDetail_20' ) start [2025-03-02 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593659', 'tblTempUsageDetail_20' ) end [2025-03-02 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593659', 'tblTempVendorCDR_20' ) start [2025-03-02 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593659', 'tblTempVendorCDR_20' ) end [2025-03-02 20:46:17] Production.INFO: ProcessCDR(1,14593659,1,1,2) [2025-03-02 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593659', 'tblTempUsageDetail_20' ) start [2025-03-02 20:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593659', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:46:24] Production.INFO: ==1113== Releasing lock... [2025-03-02 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:47:02] Production.INFO: ==1209== Lock acquired, processing the job... [2025-03-03 01:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:47:02] Production.INFO: neon service started [2025-03-03 01:47:02] Production.INFO: neon service started [2025-03-03 01:47:02] Production.INFO: ==1209== Releasing lock... [2025-03-03 01:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:47:02] Production.INFO: ==1213== Lock acquired, processing the job... [2025-03-03 01:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:47:02] Production.INFO: ==1213== Releasing lock... [2025-03-03 01:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:47:02] Production.INFO: ==1211== Lock acquired, processing the job... [2025-03-02 20:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:47:02] Production.INFO: ==1211== Releasing lock... [2025-03-02 20:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:47:03] Production.INFO: ==1219== Lock acquired, processing the job... [2025-03-02 20:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:47:03] Production.INFO: ==1217== Lock acquired, processing the job... [2025-03-02 20:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:47:03] Production.INFO: ==1221== Lock acquired, processing the job... [2025-03-02 20:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:47:03] Production.INFO: Account Balance Start. [2025-03-02 20:47:03] Production.INFO: CreateAllLog Start [2025-03-02 20:47:03] Production.INFO: 117 [2025-03-02 20:47:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:03] Production.INFO: ==1215== Lock acquired, processing the job... [2025-03-02 20:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:47:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:03] Production.INFO: ==1224== Lock acquired, processing the job... [2025-03-02 20:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:47:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: ==1227== Lock acquired, processing the job... [2025-03-02 20:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:47:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: ==1217== Releasing lock... [2025-03-02 20:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:47:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:47:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: count ==13 [2025-03-02 20:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:47:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: count ==21 [2025-03-02 20:47:04] Production.ERROR: done [2025-03-02 20:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:47:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593663') start [2025-03-02 20:47:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.ERROR: done [2025-03-02 20:47:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593663') end [2025-03-02 20:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:47:04] Production.INFO: 1 [2025-03-02 20:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:47:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: ==1227== Releasing lock... [2025-03-02 20:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:47:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:47:04] Production.INFO: Total Charge 0 [2025-03-02 20:47:04] Production.INFO: CreateAllLog End [2025-03-02 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:47:04 [end_date_ymd] => 2025-03-02 20:47:04 [RateCDR] => 1 ) [2025-03-02 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:47:04' and `end` < '2025-03-02 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:47:04] Production.INFO: Account Balance End. [2025-03-02 20:47:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:47:05] Production.INFO: ==1221== Releasing lock... [2025-03-02 20:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:47:12] Production.ERROR: CronJobId end10 [2025-03-02 20:47:12] Production.INFO: ==1219== Releasing lock... [2025-03-02 20:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:47:14] Production.INFO: call_cost start [2025-03-02 20:47:14] Production.INFO: call_cost end [2025-03-02 20:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:47:14] Production.INFO: ==1215== Releasing lock... [2025-03-02 20:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:47:16] Production.INFO: count ==1341 [2025-03-02 20:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:47:04 - End Time 2025-03-02 20:47:04 [2025-03-02 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593664', 'tblTempUsageDetail_20' ) start [2025-03-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593664', 'tblTempUsageDetail_20' ) end [2025-03-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593664', 'tblTempVendorCDR_20' ) start [2025-03-02 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593664', 'tblTempVendorCDR_20' ) end [2025-03-02 20:47:17] Production.INFO: ProcessCDR(1,14593664,1,1,2) [2025-03-02 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593664', 'tblTempUsageDetail_20' ) start [2025-03-02 20:47:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593664', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:47:24] Production.INFO: ==1224== Releasing lock... [2025-03-02 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:47:24] Production.INFO: 39 MB #Memory Used# [2025-03-03 01:48:01] Production.INFO: ==1318== Lock acquired, processing the job... [2025-03-03 01:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:48:01] Production.INFO: neon service started [2025-03-03 01:48:01] Production.INFO: neon service started [2025-03-03 01:48:01] Production.INFO: ==1318== Releasing lock... [2025-03-03 01:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:48:02] Production.INFO: ==1320== Lock acquired, processing the job... [2025-03-02 20:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:48:02] Production.INFO: ==1322== Lock acquired, processing the job... [2025-03-03 01:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:48:02] Production.INFO: ==1322== Releasing lock... [2025-03-03 01:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:48:02] Production.INFO: ==1320== Releasing lock... [2025-03-02 20:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:48:03] Production.INFO: ==1337== Lock acquired, processing the job... [2025-03-02 20:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:48:03] Production.INFO: ==1333== Lock acquired, processing the job... [2025-03-02 20:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:48:03] Production.INFO: Account Balance Start. [2025-03-02 20:48:03] Production.INFO: CreateAllLog Start [2025-03-02 20:48:03] Production.INFO: 117 [2025-03-02 20:48:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:48:03] Production.INFO: count ==13 [2025-03-02 20:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:48:03] Production.INFO: count ==21 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593665') start [2025-03-02 20:48:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.INFO: ==1327== Lock acquired, processing the job... [2025-03-02 20:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:48:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.INFO: ==1329== Lock acquired, processing the job... [2025-03-02 20:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593665') end [2025-03-02 20:48:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:48:03] Production.INFO: 1 [2025-03-02 20:48:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:48:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.INFO: ==1337== Releasing lock... [2025-03-02 20:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:48:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:48:03] Production.INFO: ==1331== Lock acquired, processing the job... [2025-03-02 20:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:48:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.INFO: ==1335== Lock acquired, processing the job... [2025-03-02 20:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:48:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:48:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: ==1329== Releasing lock... [2025-03-02 20:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:48:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.ERROR: done [2025-03-02 20:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:48:04] Production.INFO: Total Charge 0 [2025-03-02 20:48:04] Production.INFO: CreateAllLog End [2025-03-02 20:48:04] Production.ERROR: done [2025-03-02 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:48:04 [end_date_ymd] => 2025-03-02 20:48:04 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:48:04' and `end` < '2025-03-02 20: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-03-02 20:48:04] Production.INFO: Account Balance End. [2025-03-02 20:48:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:48:04] Production.INFO: ==1333== Releasing lock... [2025-03-02 20:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:48:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:48:12] Production.ERROR: CronJobId end10 [2025-03-02 20:48:12] Production.INFO: ==1331== Releasing lock... [2025-03-02 20:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:48:15] Production.INFO: call_cost start [2025-03-02 20:48:15] Production.INFO: call_cost end [2025-03-02 20:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:48:15] Production.INFO: ==1327== Releasing lock... [2025-03-02 20:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:48:16] Production.INFO: count ==1339 [2025-03-02 20:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:48:04 - End Time 2025-03-02 20:48:04 [2025-03-02 20:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593669', 'tblTempUsageDetail_20' ) start [2025-03-02 20:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593669', 'tblTempUsageDetail_20' ) end [2025-03-02 20:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593669', 'tblTempVendorCDR_20' ) start [2025-03-02 20:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593669', 'tblTempVendorCDR_20' ) end [2025-03-02 20:48:16] Production.INFO: ProcessCDR(1,14593669,1,1,2) [2025-03-02 20:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593669', 'tblTempUsageDetail_20' ) start [2025-03-02 20:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593669', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:48:24] Production.INFO: ==1335== Releasing lock... [2025-03-02 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:48:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:49:01] Production.INFO: ==1423== Lock acquired, processing the job... [2025-03-03 01:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:49:01] Production.INFO: neon service started [2025-03-03 01:49:01] Production.INFO: neon service started [2025-03-03 01:49:01] Production.INFO: ==1423== Releasing lock... [2025-03-03 01:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:49:02] Production.INFO: ==1427== Lock acquired, processing the job... [2025-03-03 01:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:49:02] Production.INFO: ==1427== Releasing lock... [2025-03-03 01:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:49:02] Production.INFO: ==1425== Lock acquired, processing the job... [2025-03-02 20:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:49:02] Production.INFO: ==1425== Releasing lock... [2025-03-02 20:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:49:03] Production.INFO: ==1436== Lock acquired, processing the job... [2025-03-02 20:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:49:03] Production.INFO: ==1432== Lock acquired, processing the job... [2025-03-02 20:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:49:03] Production.INFO: ==1434== Lock acquired, processing the job... [2025-03-02 20:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:49:03] Production.INFO: Account Balance Start. [2025-03-02 20:49:03] Production.INFO: CreateAllLog Start [2025-03-02 20:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:49:03] Production.INFO: 117 [2025-03-02 20:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:49:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: ==1430== Lock acquired, processing the job... [2025-03-02 20:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:49:03] Production.INFO: ==1432== Releasing lock... [2025-03-02 20:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:49:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:49:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: ==1438== Lock acquired, processing the job... [2025-03-02 20:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:49:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.INFO: ==1440== Lock acquired, processing the job... [2025-03-02 20:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:49:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:49:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:49:04] Production.INFO: count ==13 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:49:04] Production.INFO: count ==21 [2025-03-02 20:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593673') start [2025-03-02 20:49:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593673') end [2025-03-02 20:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:49:04] Production.INFO: 1 [2025-03-02 20:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:49:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: ==1440== Releasing lock... [2025-03-02 20:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:49:04] Production.ERROR: done [2025-03-02 20:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:49:04] Production.INFO: Total Charge 0 [2025-03-02 20:49:04] Production.INFO: CreateAllLog End [2025-03-02 20:49:04] Production.ERROR: done [2025-03-02 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:04 [end_date_ymd] => 2025-03-02 20:49:04 [RateCDR] => 1 ) [2025-03-02 20:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:04' and `end` < '2025-03-02 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:49:04] Production.INFO: Account Balance End. [2025-03-02 20:49:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:49:04] Production.INFO: ==1436== Releasing lock... [2025-03-02 20:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:49:11] Production.ERROR: CronJobId end10 [2025-03-02 20:49:11] Production.INFO: ==1434== Releasing lock... [2025-03-02 20:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:49:15] Production.INFO: call_cost start [2025-03-02 20:49:15] Production.INFO: call_cost end [2025-03-02 20:49:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:49:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:49:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:49:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:49:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:49:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:49:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:49:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:49:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:49:15] Production.INFO: ==1430== Releasing lock... [2025-03-02 20:49:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:49:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:49:16] Production.INFO: count ==1334 [2025-03-02 20:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:04 - End Time 2025-03-02 20:49:04 [2025-03-02 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593674', 'tblTempUsageDetail_20' ) start [2025-03-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593674', 'tblTempUsageDetail_20' ) end [2025-03-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593674', 'tblTempVendorCDR_20' ) start [2025-03-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593674', 'tblTempVendorCDR_20' ) end [2025-03-02 20:49:17] Production.INFO: ProcessCDR(1,14593674,1,1,2) [2025-03-02 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593674', 'tblTempUsageDetail_20' ) start [2025-03-02 20:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593674', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:49:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:49:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:49:24] Production.INFO: ==1438== Releasing lock... [2025-03-02 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:49:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:50:02] Production.INFO: ==1545== Lock acquired, processing the job... [2025-03-03 01:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:50:02] Production.INFO: neon service started [2025-03-03 01:50:02] Production.INFO: neon service started [2025-03-03 01:50:02] Production.INFO: ==1545== Releasing lock... [2025-03-03 01:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:50:02] Production.INFO: ==1547== Lock acquired, processing the job... [2025-03-02 20:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:50:02] Production.INFO: ==1549== Lock acquired, processing the job... [2025-03-03 01:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:50:02] Production.INFO: ==1549== Releasing lock... [2025-03-03 01:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:50:03] Production.INFO: ==1547== Releasing lock... [2025-03-02 20:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:50:04] Production.INFO: ==1551== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 20:50:04] Production.INFO: ==1561== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 20:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 20:50:04] Production.INFO: ==1551== Releasing lock... [2025-03-02 20:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 20:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:50:04] Production.INFO: ==1556== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:50:04] Production.INFO: ==1566== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:50:04] Production.INFO: ==1559== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:50:04] Production.INFO: ==1574== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:50:04] Production.INFO: ==1564== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:50:04] Production.INFO: ==1572== Lock acquired, processing the job... [2025-03-02 20:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 20:50:04] Production.INFO: Account Balance Start. [2025-03-02 20:50:04] Production.INFO: CreateAllLog Start [2025-03-02 20:50:04] Production.INFO: 117 [2025-03-02 20:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:50:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:04] Production.INFO: count ==13 [2025-03-02 20:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:50:04] Production.INFO: count ==21 [2025-03-02 20:50:04] Production.INFO: ==1559== Releasing lock... [2025-03-02 20:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:50:04] Production.ERROR: done [2025-03-02 20:50:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593678') start [2025-03-02 20:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-10 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.ERROR: done [2025-03-02 20:50:05] Production.INFO: Date 2025-02-11 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593678') end [2025-03-02 20:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:50:05] Production.INFO: 1 [2025-03-02 20:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:50:05] Production.INFO: Date 2025-02-12 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:50:05] Production.INFO: ==1574== Releasing lock... [2025-03-02 20:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:50:05] Production.INFO: Date 2025-02-13 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.ERROR: done [2025-03-02 20:50:05] Production.INFO: Date 2025-02-14 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-15 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 20:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593680', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 20:50:05] Production.INFO: Date 2025-02-16 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-17 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-18 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-19 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-20 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-21 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-22 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-23 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:50:05] Production.INFO: Total Charge 0 [2025-03-02 20:50:05] Production.INFO: CreateAllLog End [2025-03-02 20:50:05] Production.INFO: Account Balance End. [2025-03-02 20:50:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:50:05] Production.INFO: ==1564== Releasing lock... [2025-03-02 20:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593680', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 20:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 20:50:09] Production.INFO: ProcessCDR(1,14593680,1,1,2) [2025-03-02 20:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593680,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593680,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 20:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 20:50:09] Production.INFO: ==1572== Releasing lock... [2025-03-02 20:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 20:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 20:50:14] Production.ERROR: CronJobId end10 [2025-03-02 20:50:14] Production.INFO: ==1561== Releasing lock... [2025-03-02 20:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:50:16] Production.INFO: call_cost start [2025-03-02 20:50:16] Production.INFO: call_cost end [2025-03-02 20:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:50:16] Production.INFO: ==1556== Releasing lock... [2025-03-02 20:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:50:17] Production.INFO: count ==1334 [2025-03-02 20:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593679', 'tblTempUsageDetail_20' ) start [2025-03-02 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593679', 'tblTempUsageDetail_20' ) end [2025-03-02 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593679', 'tblTempVendorCDR_20' ) start [2025-03-02 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593679', 'tblTempVendorCDR_20' ) end [2025-03-02 20:50:17] Production.INFO: ProcessCDR(1,14593679,1,1,2) [2025-03-02 20:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593679', 'tblTempUsageDetail_20' ) start [2025-03-02 20:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593679', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:50:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:50:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:50:24] Production.INFO: ==1566== Releasing lock... [2025-03-02 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:50:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:51:01] Production.INFO: ==1651== Lock acquired, processing the job... [2025-03-03 01:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:51:01] Production.INFO: neon service started [2025-03-03 01:51:01] Production.INFO: neon service started [2025-03-03 01:51:01] Production.INFO: ==1651== Releasing lock... [2025-03-03 01:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:51:02] Production.INFO: ==1656== Lock acquired, processing the job... [2025-03-03 01:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:51:02] Production.INFO: ==1656== Releasing lock... [2025-03-03 01:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:51:02] Production.INFO: ==1654== Lock acquired, processing the job... [2025-03-02 20:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:51:02] Production.INFO: ==1654== Releasing lock... [2025-03-02 20:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:51:03] Production.INFO: ==1666== Lock acquired, processing the job... [2025-03-02 20:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:51:03] Production.INFO: ==1668== Lock acquired, processing the job... [2025-03-02 20:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:51:03] Production.INFO: ==1658== Lock acquired, processing the job... [2025-03-02 20:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:51:03] Production.INFO: ==1662== Lock acquired, processing the job... [2025-03-02 20:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:51:03] Production.INFO: ==1660== Lock acquired, processing the job... [2025-03-02 20:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:51:03] Production.INFO: count ==13 [2025-03-02 20:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:51:03] Production.INFO: count ==21 [2025-03-02 20:51:03] Production.INFO: ==1664== Lock acquired, processing the job... [2025-03-02 20:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593681') start [2025-03-02 20:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:51:03] Production.ERROR: done [2025-03-02 20:51:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:51:04] Production.INFO: Account Balance Start. [2025-03-02 20:51:04] Production.INFO: CreateAllLog Start [2025-03-02 20:51:04] Production.INFO: 117 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.ERROR: done [2025-03-02 20:51:04] Production.INFO: ==1660== Releasing lock... [2025-03-02 20:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:51:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593681') end [2025-03-02 20:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:51:04] Production.INFO: 1 [2025-03-02 20:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:51:04] Production.INFO: ==1668== Releasing lock... [2025-03-02 20:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:51:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-02-24 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-02-25 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-02-26 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-02-27 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:51:05] Production.INFO: Total Charge 0 [2025-03-02 20:51:05] Production.INFO: CreateAllLog End [2025-03-02 20:51:05] Production.INFO: Account Balance End. [2025-03-02 20:51:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:51:05] Production.INFO: ==1664== Releasing lock... [2025-03-02 20:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:51:13] Production.ERROR: CronJobId end10 [2025-03-02 20:51:13] Production.INFO: ==1662== Releasing lock... [2025-03-02 20:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:51:14] Production.INFO: call_cost start [2025-03-02 20:51:14] Production.INFO: call_cost end [2025-03-02 20:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:51:14] Production.INFO: ==1658== Releasing lock... [2025-03-02 20:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:51:16] Production.INFO: count ==1334 [2025-03-02 20:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593685', 'tblTempUsageDetail_20' ) start [2025-03-02 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593685', 'tblTempUsageDetail_20' ) end [2025-03-02 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593685', 'tblTempVendorCDR_20' ) start [2025-03-02 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593685', 'tblTempVendorCDR_20' ) end [2025-03-02 20:51:16] Production.INFO: ProcessCDR(1,14593685,1,1,2) [2025-03-02 20:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593685', 'tblTempUsageDetail_20' ) start [2025-03-02 20:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593685', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:51:24] Production.INFO: ==1666== Releasing lock... [2025-03-02 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:51:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:52:02] Production.INFO: ==1738== Lock acquired, processing the job... [2025-03-03 01:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:52:02] Production.INFO: neon service started [2025-03-03 01:52:02] Production.INFO: neon service started [2025-03-03 01:52:02] Production.INFO: ==1738== Releasing lock... [2025-03-03 01:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:52:02] Production.INFO: ==1742== Lock acquired, processing the job... [2025-03-03 01:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:52:02] Production.INFO: ==1742== Releasing lock... [2025-03-03 01:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:52:02] Production.INFO: ==1740== Lock acquired, processing the job... [2025-03-02 20:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:52:03] Production.INFO: ==1740== Releasing lock... [2025-03-02 20:52:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:52:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:52:03] Production.INFO: ==1753== Lock acquired, processing the job... [2025-03-02 20:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:52:03] Production.INFO: ==1751== Lock acquired, processing the job... [2025-03-02 20:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:52:04] Production.INFO: ==1745== Lock acquired, processing the job... [2025-03-02 20:52:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:52:04] Production.INFO: Account Balance Start. [2025-03-02 20:52:04] Production.INFO: CreateAllLog Start [2025-03-02 20:52:04] Production.INFO: 117 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:52:04] Production.INFO: ==1747== Lock acquired, processing the job... [2025-03-02 20:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: ==1749== Lock acquired, processing the job... [2025-03-02 20:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:52:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: ==1755== Lock acquired, processing the job... [2025-03-02 20:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:52:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:52:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:52:04] Production.INFO: count ==13 [2025-03-02 20:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:52:04] Production.INFO: count ==21 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593689') start [2025-03-02 20:52:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: ==1747== Releasing lock... [2025-03-02 20:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:52:04] Production.ERROR: done [2025-03-02 20:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593689') end [2025-03-02 20:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:52:04] Production.INFO: 1 [2025-03-02 20:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:52:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:52:04] Production.INFO: ==1755== Releasing lock... [2025-03-02 20:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.ERROR: done [2025-03-02 20:52:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:52:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:52:05] Production.INFO: Total Charge 0 [2025-03-02 20:52:05] Production.INFO: CreateAllLog End [2025-03-02 20:52:05] Production.INFO: Account Balance End. [2025-03-02 20:52:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:52:05] Production.INFO: ==1751== Releasing lock... [2025-03-02 20:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:52:12] Production.ERROR: CronJobId end10 [2025-03-02 20:52:12] Production.INFO: ==1749== Releasing lock... [2025-03-02 20:52:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:52:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:52:15] Production.INFO: call_cost start [2025-03-02 20:52:15] Production.INFO: call_cost end [2025-03-02 20:52:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:52:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:52:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:52:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:52:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:52:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:52:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:52:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:52:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:52:15] Production.INFO: ==1745== Releasing lock... [2025-03-02 20:52:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:52:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:52:17] Production.INFO: count ==1334 [2025-03-02 20:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593690', 'tblTempUsageDetail_20' ) start [2025-03-02 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593690', 'tblTempUsageDetail_20' ) end [2025-03-02 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593690', 'tblTempVendorCDR_20' ) start [2025-03-02 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593690', 'tblTempVendorCDR_20' ) end [2025-03-02 20:52:17] Production.INFO: ProcessCDR(1,14593690,1,1,2) [2025-03-02 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593690', 'tblTempUsageDetail_20' ) start [2025-03-02 20:52:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593690', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:52:24] Production.INFO: ==1753== Releasing lock... [2025-03-02 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:52:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:53:01] Production.INFO: ==1856== Lock acquired, processing the job... [2025-03-03 01:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:53:01] Production.INFO: neon service started [2025-03-03 01:53:01] Production.INFO: neon service started [2025-03-03 01:53:01] Production.INFO: ==1856== Releasing lock... [2025-03-03 01:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:53:01] Production.INFO: ==1858== Lock acquired, processing the job... [2025-03-02 20:53:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:53:02] Production.INFO: ==1858== Releasing lock... [2025-03-02 20:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:53:02] Production.INFO: ==1860== Lock acquired, processing the job... [2025-03-03 01:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:53:02] Production.INFO: ==1860== Releasing lock... [2025-03-03 01:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:53:03] Production.INFO: ==1862== Lock acquired, processing the job... [2025-03-02 20:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:53:03] Production.INFO: ==1868== Lock acquired, processing the job... [2025-03-02 20:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:53:03] Production.INFO: ==1864== Lock acquired, processing the job... [2025-03-02 20:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:53:03] Production.INFO: ==1873== Lock acquired, processing the job... [2025-03-02 20:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:53:03] Production.INFO: ==1866== Lock acquired, processing the job... [2025-03-02 20:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:53:03] Production.INFO: Account Balance Start. [2025-03-02 20:53:03] Production.INFO: CreateAllLog Start [2025-03-02 20:53:03] Production.INFO: 117 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:53:03] Production.INFO: count ==13 [2025-03-02 20:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:53:03] Production.INFO: count ==21 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593693') start [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:53:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593693') end [2025-03-02 20:53:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:53:03] Production.INFO: 1 [2025-03-02 20:53:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:53:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: ==1873== Releasing lock... [2025-03-02 20:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:53:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:53:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: ==1871== Lock acquired, processing the job... [2025-03-02 20:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:53:03] Production.INFO: Date 2025-02-15 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: ==1864== Releasing lock... [2025-03-02 20:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-16 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-17 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-18 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-19 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-20 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:03] Production.INFO: Date 2025-02-21 [2025-03-02 20:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.ERROR: done [2025-03-02 20:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:53:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.ERROR: done [2025-03-02 20:53:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:53:04] Production.INFO: Total Charge 0 [2025-03-02 20:53:04] Production.INFO: CreateAllLog End [2025-03-02 20:53:04] Production.INFO: Account Balance End. [2025-03-02 20:53:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:53:04] Production.INFO: ==1868== Releasing lock... [2025-03-02 20:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:53:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:53:12] Production.ERROR: CronJobId end10 [2025-03-02 20:53:12] Production.INFO: ==1866== Releasing lock... [2025-03-02 20:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:53:14] Production.INFO: call_cost start [2025-03-02 20:53:14] Production.INFO: call_cost end [2025-03-02 20:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:53:14] Production.INFO: ==1862== Releasing lock... [2025-03-02 20:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:53:16] Production.INFO: count ==1334 [2025-03-02 20:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593695', 'tblTempUsageDetail_20' ) start [2025-03-02 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593695', 'tblTempUsageDetail_20' ) end [2025-03-02 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593695', 'tblTempVendorCDR_20' ) start [2025-03-02 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593695', 'tblTempVendorCDR_20' ) end [2025-03-02 20:53:16] Production.INFO: ProcessCDR(1,14593695,1,1,2) [2025-03-02 20:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593695', 'tblTempUsageDetail_20' ) start [2025-03-02 20:53:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593695', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:53:24] Production.INFO: ==1871== Releasing lock... [2025-03-02 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:53:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:54:02] Production.INFO: ==1939== Lock acquired, processing the job... [2025-03-03 01:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:54:02] Production.INFO: neon service started [2025-03-03 01:54:02] Production.INFO: neon service started [2025-03-03 01:54:02] Production.INFO: ==1939== Releasing lock... [2025-03-03 01:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:54:02] Production.INFO: ==1943== Lock acquired, processing the job... [2025-03-03 01:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:54:02] Production.INFO: ==1943== Releasing lock... [2025-03-03 01:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:54:02] Production.INFO: ==1941== Lock acquired, processing the job... [2025-03-02 20:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:54:02] Production.INFO: ==1941== Releasing lock... [2025-03-02 20:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:54:03] Production.INFO: ==1948== Lock acquired, processing the job... [2025-03-02 20:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:54:03] Production.INFO: ==1950== Lock acquired, processing the job... [2025-03-02 20:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:54:03] Production.INFO: ==1952== Lock acquired, processing the job... [2025-03-02 20:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:54:03] Production.INFO: ==1954== Lock acquired, processing the job... [2025-03-02 20:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:54:04] Production.INFO: ==1956== Lock acquired, processing the job... [2025-03-02 20:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:54:04] Production.INFO: Account Balance Start. [2025-03-02 20:54:04] Production.INFO: CreateAllLog Start [2025-03-02 20:54:04] Production.INFO: 117 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: ==1958== Lock acquired, processing the job... [2025-03-02 20:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:54:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: ==1950== Releasing lock... [2025-03-02 20:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:54:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:54:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: count ==13 [2025-03-02 20:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:54:04] Production.INFO: count ==21 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593699') start [2025-03-02 20:54:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593699') end [2025-03-02 20:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:54:04] Production.INFO: 1 [2025-03-02 20:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:54:04] Production.ERROR: done [2025-03-02 20:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: ==1958== Releasing lock... [2025-03-02 20:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:54:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.ERROR: done [2025-03-02 20:54:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:05] Production.INFO: Date 2025-02-28 [2025-03-02 20:54:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:05] Production.INFO: Date 2025-03-01 [2025-03-02 20:54:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:05] Production.INFO: Date 2025-03-02 [2025-03-02 20:54:05] Production.INFO: Reseller ==> 0 [2025-03-02 20:54:05] Production.INFO: Total Charge 0 [2025-03-02 20:54:05] Production.INFO: CreateAllLog End [2025-03-02 20:54:05] Production.INFO: Account Balance End. [2025-03-02 20:54:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:54:05] Production.INFO: ==1954== Releasing lock... [2025-03-02 20:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:54:13] Production.ERROR: CronJobId end10 [2025-03-02 20:54:13] Production.INFO: ==1952== Releasing lock... [2025-03-02 20:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:54:15] Production.INFO: call_cost start [2025-03-02 20:54:15] Production.INFO: call_cost end [2025-03-02 20:54:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:54:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:54:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:54:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:54:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:54:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:54:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:54:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:54:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:54:15] Production.INFO: ==1948== Releasing lock... [2025-03-02 20:54:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:54:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:54:16] Production.INFO: count ==1334 [2025-03-02 20:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593700', 'tblTempUsageDetail_20' ) start [2025-03-02 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593700', 'tblTempUsageDetail_20' ) end [2025-03-02 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593700', 'tblTempVendorCDR_20' ) start [2025-03-02 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593700', 'tblTempVendorCDR_20' ) end [2025-03-02 20:54:17] Production.INFO: ProcessCDR(1,14593700,1,1,2) [2025-03-02 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593700', 'tblTempUsageDetail_20' ) start [2025-03-02 20:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593700', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:54:24] Production.INFO: ==1956== Releasing lock... [2025-03-02 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:54:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:55:01] Production.INFO: ==2031== Lock acquired, processing the job... [2025-03-03 01:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:55:01] Production.INFO: neon service started [2025-03-03 01:55:01] Production.INFO: neon service started [2025-03-03 01:55:01] Production.INFO: ==2031== Releasing lock... [2025-03-03 01:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:55:01] Production.INFO: ==2033== Lock acquired, processing the job... [2025-03-02 20:55:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:55:02] Production.INFO: ==2033== Releasing lock... [2025-03-02 20:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:55:02] Production.INFO: ==2035== Lock acquired, processing the job... [2025-03-03 01:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:55:02] Production.INFO: ==2035== Releasing lock... [2025-03-03 01:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:55:03] Production.INFO: ==2037== Lock acquired, processing the job... [2025-03-02 20:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:55:03] Production.INFO: ==2041== Lock acquired, processing the job... [2025-03-02 20:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:55:03] Production.INFO: ==2039== Lock acquired, processing the job... [2025-03-02 20:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:55:03] Production.INFO: ==2047== Lock acquired, processing the job... [2025-03-02 20:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:55:03] Production.INFO: ==2043== Lock acquired, processing the job... [2025-03-02 20:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:55:03] Production.INFO: ==2045== Lock acquired, processing the job... [2025-03-02 20:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:55:03] Production.INFO: count ==13 [2025-03-02 20:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:55:03] Production.INFO: Account Balance Start. [2025-03-02 20:55:03] Production.INFO: CreateAllLog Start [2025-03-02 20:55:03] Production.INFO: 117 [2025-03-02 20:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:55:03] Production.INFO: count ==21 [2025-03-02 20:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593703') start [2025-03-02 20:55:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:03] Production.INFO: ==2039== Releasing lock... [2025-03-02 20:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:55:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:55:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593703') end [2025-03-02 20:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:55:04] Production.INFO: 1 [2025-03-02 20:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:55:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: ==2047== Releasing lock... [2025-03-02 20:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:55:04] Production.ERROR: done [2025-03-02 20:55:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.ERROR: done [2025-03-02 20:55:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:55:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:55:04] Production.INFO: Total Charge 0 [2025-03-02 20:55:04] Production.INFO: CreateAllLog End [2025-03-02 20:55:04] Production.INFO: Account Balance End. [2025-03-02 20:55:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:55:05] Production.INFO: ==2043== Releasing lock... [2025-03-02 20:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:55:12] Production.ERROR: CronJobId end10 [2025-03-02 20:55:12] Production.INFO: ==2041== Releasing lock... [2025-03-02 20:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:55:14] Production.INFO: call_cost start [2025-03-02 20:55:14] Production.INFO: call_cost end [2025-03-02 20:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:55:14] Production.INFO: ==2037== Releasing lock... [2025-03-02 20:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:55:16] Production.INFO: count ==1334 [2025-03-02 20:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593705', 'tblTempUsageDetail_20' ) start [2025-03-02 20:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593705', 'tblTempUsageDetail_20' ) end [2025-03-02 20:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593705', 'tblTempVendorCDR_20' ) start [2025-03-02 20:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593705', 'tblTempVendorCDR_20' ) end [2025-03-02 20:55:16] Production.INFO: ProcessCDR(1,14593705,1,1,2) [2025-03-02 20:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593705', 'tblTempUsageDetail_20' ) start [2025-03-02 20:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593705', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:55:24] Production.INFO: ==2045== Releasing lock... [2025-03-02 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:55:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:56:02] Production.INFO: ==2127== Lock acquired, processing the job... [2025-03-03 01:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:56:02] Production.INFO: neon service started [2025-03-03 01:56:02] Production.INFO: neon service started [2025-03-03 01:56:02] Production.INFO: ==2127== Releasing lock... [2025-03-03 01:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 20:56:02] Production.INFO: ==2130== Lock acquired, processing the job... [2025-03-02 20:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:56:02] Production.INFO: ==2130== Releasing lock... [2025-03-02 20:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:56:02] Production.INFO: ==2132== Lock acquired, processing the job... [2025-03-03 01:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:56:02] Production.INFO: ==2132== Releasing lock... [2025-03-03 01:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:56:03] Production.INFO: ==2138== Lock acquired, processing the job... [2025-03-02 20:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:56:03] Production.INFO: ==2142== Lock acquired, processing the job... [2025-03-02 20:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:56:03] Production.INFO: ==2136== Lock acquired, processing the job... [2025-03-02 20:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:56:03] Production.INFO: ==2134== Lock acquired, processing the job... [2025-03-02 20:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:56:03] Production.INFO: ==2140== Lock acquired, processing the job... [2025-03-02 20:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:56:04] Production.INFO: ==2144== Lock acquired, processing the job... [2025-03-02 20:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:56:04] Production.INFO: Account Balance Start. [2025-03-02 20:56:04] Production.INFO: CreateAllLog Start [2025-03-02 20:56:04] Production.INFO: 117 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-08 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:56:04] Production.ERROR: done [2025-03-02 20:56:04] Production.INFO: Date 2025-02-09 [2025-03-02 20:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:56:04] Production.INFO: count ==13 [2025-03-02 20:56:04] Production.INFO: ==2136== Releasing lock... [2025-03-02 20:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:56:04] Production.ERROR: done [2025-03-02 20:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:56:04] Production.INFO: count ==21 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593709') start [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593709') end [2025-03-02 20:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:56:04] Production.INFO: 1 [2025-03-02 20:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:56:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:56:04] Production.INFO: ==2144== Releasing lock... [2025-03-02 20:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:56:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:56:04] Production.INFO: Total Charge 0 [2025-03-02 20:56:04] Production.INFO: CreateAllLog End [2025-03-02 20:56:05] Production.INFO: Account Balance End. [2025-03-02 20:56:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:56:05] Production.INFO: ==2140== Releasing lock... [2025-03-02 20:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:56:11] Production.ERROR: CronJobId end10 [2025-03-02 20:56:11] Production.INFO: ==2138== Releasing lock... [2025-03-02 20:56:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:56:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:56:14] Production.INFO: call_cost start [2025-03-02 20:56:14] Production.INFO: call_cost end [2025-03-02 20:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:56:14] Production.INFO: ==2134== Releasing lock... [2025-03-02 20:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:56:16] Production.INFO: count ==1334 [2025-03-02 20:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593710', 'tblTempUsageDetail_20' ) start [2025-03-02 20:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593710', 'tblTempUsageDetail_20' ) end [2025-03-02 20:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593710', 'tblTempVendorCDR_20' ) start [2025-03-02 20:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593710', 'tblTempVendorCDR_20' ) end [2025-03-02 20:56:16] Production.INFO: ProcessCDR(1,14593710,1,1,2) [2025-03-02 20:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593710', 'tblTempUsageDetail_20' ) start [2025-03-02 20:56:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593710', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:56:24] Production.INFO: ==2142== Releasing lock... [2025-03-02 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:56:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:57:01] Production.INFO: ==2228== Lock acquired, processing the job... [2025-03-03 01:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:57:01] Production.INFO: neon service started [2025-03-03 01:57:01] Production.INFO: neon service started [2025-03-03 01:57:01] Production.INFO: ==2228== Releasing lock... [2025-03-03 01:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:57:02] Production.INFO: ==2231== Lock acquired, processing the job... [2025-03-02 20:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:57:02] Production.INFO: ==2233== Lock acquired, processing the job... [2025-03-03 01:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:57:02] Production.INFO: ==2233== Releasing lock... [2025-03-03 01:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:57:02] Production.INFO: ==2231== Releasing lock... [2025-03-02 20:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 20:57:03] Production.INFO: ==2235== Lock acquired, processing the job... [2025-03-02 20:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:57:03] Production.INFO: ==2237== Lock acquired, processing the job... [2025-03-02 20:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:57:03] Production.INFO: ==2243== Lock acquired, processing the job... [2025-03-02 20:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:57:03] Production.INFO: ==2239== Lock acquired, processing the job... [2025-03-02 20:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:57:03] Production.INFO: ==2241== Lock acquired, processing the job... [2025-03-02 20:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:57:03] Production.INFO: ==2237== Releasing lock... [2025-03-02 20:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:57:03] Production.INFO: ==2245== Lock acquired, processing the job... [2025-03-02 20:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:57:03] Production.ERROR: done [2025-03-02 20:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:57:03] Production.INFO: Account Balance Start. [2025-03-02 20:57:03] Production.INFO: CreateAllLog Start [2025-03-02 20:57:03] Production.INFO: 117 [2025-03-02 20:57:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:57:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:57:03] Production.INFO: count ==13 [2025-03-02 20:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:57:03] Production.INFO: count ==21 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:57:04] Production.ERROR: done [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593714') start [2025-03-02 20:57:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593714') end [2025-03-02 20:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:57:04] Production.INFO: 1 [2025-03-02 20:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:57:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:57:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: ==2245== Releasing lock... [2025-03-02 20:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:57:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:57:04] Production.INFO: Total Charge 0 [2025-03-02 20:57:04] Production.INFO: CreateAllLog End [2025-03-02 20:57:04] Production.INFO: Account Balance End. [2025-03-02 20:57:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:57:04] Production.INFO: ==2241== Releasing lock... [2025-03-02 20:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:57:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:57:12] Production.ERROR: CronJobId end10 [2025-03-02 20:57:12] Production.INFO: ==2239== Releasing lock... [2025-03-02 20:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:57:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:57:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:57:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:57:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:57:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:57:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:57:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:57:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:57:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:57:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:57:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:57:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:57:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:57:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:57:14] Production.INFO: call_cost start [2025-03-02 20:57:14] Production.INFO: call_cost end [2025-03-02 20:57:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:57:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:57:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:57:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:57:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:57:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:57:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:57:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:57:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:57:14] Production.INFO: ==2235== Releasing lock... [2025-03-02 20:57:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:57:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:57:16] Production.INFO: count ==1334 [2025-03-02 20:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593715', 'tblTempUsageDetail_20' ) start [2025-03-02 20:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593715', 'tblTempUsageDetail_20' ) end [2025-03-02 20:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593715', 'tblTempVendorCDR_20' ) start [2025-03-02 20:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593715', 'tblTempVendorCDR_20' ) end [2025-03-02 20:57:16] Production.INFO: ProcessCDR(1,14593715,1,1,2) [2025-03-02 20:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593715', 'tblTempUsageDetail_20' ) start [2025-03-02 20:57:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593715', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:57:24] Production.INFO: ==2243== Releasing lock... [2025-03-02 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:57:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:58:01] Production.INFO: ==2332== Lock acquired, processing the job... [2025-03-03 01:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:58:02] Production.INFO: neon service started [2025-03-03 01:58:02] Production.INFO: neon service started [2025-03-03 01:58:02] Production.INFO: ==2332== Releasing lock... [2025-03-03 01:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:58:02] Production.INFO: ==2334== Lock acquired, processing the job... [2025-03-02 20:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:58:02] Production.INFO: ==2334== Releasing lock... [2025-03-02 20:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:58:02] Production.INFO: ==2337== Lock acquired, processing the job... [2025-03-03 01:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:58:03] Production.INFO: ==2337== Releasing lock... [2025-03-03 01:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:58:03] Production.INFO: ==2341== Lock acquired, processing the job... [2025-03-02 20:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:58:03] Production.INFO: ==2339== Lock acquired, processing the job... [2025-03-02 20:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:58:03] Production.INFO: ==2343== Lock acquired, processing the job... [2025-03-02 20:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:58:03] Production.INFO: ==2345== Lock acquired, processing the job... [2025-03-02 20:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:58:03] Production.INFO: ==2349== Lock acquired, processing the job... [2025-03-02 20:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:58:03] Production.INFO: Account Balance Start. [2025-03-02 20:58:03] Production.INFO: CreateAllLog Start [2025-03-02 20:58:03] Production.INFO: 117 [2025-03-02 20:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:58:03] Production.INFO: ==2347== Lock acquired, processing the job... [2025-03-02 20:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:58:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:03] Production.INFO: count ==13 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-10 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:58:04] Production.INFO: count ==21 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-11 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593719') start [2025-03-02 20:58:04] Production.INFO: Date 2025-02-12 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593719') end [2025-03-02 20:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:58:04] Production.INFO: 1 [2025-03-02 20:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:58:04] Production.INFO: Date 2025-02-13 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-14 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: ==2349== Releasing lock... [2025-03-02 20:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:58:04] Production.INFO: ==2341== Releasing lock... [2025-03-02 20:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:58:04] Production.ERROR: done [2025-03-02 20:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.ERROR: done [2025-03-02 20:58:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:58:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:58:04] Production.INFO: Total Charge 0 [2025-03-02 20:58:04] Production.INFO: CreateAllLog End [2025-03-02 20:58:05] Production.INFO: Account Balance End. [2025-03-02 20:58:05] Production.ERROR: CronJobId end 12 [2025-03-02 20:58:05] Production.INFO: ==2345== Releasing lock... [2025-03-02 20:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:58:12] Production.ERROR: CronJobId end10 [2025-03-02 20:58:12] Production.INFO: ==2343== Releasing lock... [2025-03-02 20:58:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:58:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:58:14] Production.INFO: call_cost start [2025-03-02 20:58:14] Production.INFO: call_cost end [2025-03-02 20:58:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:58:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:58:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:58:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:58:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:58:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:58:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:58:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:58:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:58:14] Production.INFO: ==2339== Releasing lock... [2025-03-02 20:58:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:58:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:58:16] Production.INFO: count ==1334 [2025-03-02 20:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593720', 'tblTempUsageDetail_20' ) start [2025-03-02 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593720', 'tblTempUsageDetail_20' ) end [2025-03-02 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593720', 'tblTempVendorCDR_20' ) start [2025-03-02 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593720', 'tblTempVendorCDR_20' ) end [2025-03-02 20:58:16] Production.INFO: ProcessCDR(1,14593720,1,1,2) [2025-03-02 20:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593720', 'tblTempUsageDetail_20' ) start [2025-03-02 20:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593720', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:58:24] Production.INFO: ==2347== Releasing lock... [2025-03-02 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:58:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 01:59:01] Production.INFO: ==2442== Lock acquired, processing the job... [2025-03-03 01:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 01:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 01:59:01] Production.INFO: neon service started [2025-03-03 01:59:01] Production.INFO: neon service started [2025-03-03 01:59:01] Production.INFO: ==2442== Releasing lock... [2025-03-03 01:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 01:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 20:59:01] Production.INFO: ==2444== Lock acquired, processing the job... [2025-03-02 20:59:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 20:59:02] Production.INFO: ==2444== Releasing lock... [2025-03-02 20:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 20:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:59:02] Production.INFO: ==2446== Lock acquired, processing the job... [2025-03-03 01:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:59:02] Production.INFO: ==2446== Releasing lock... [2025-03-03 01:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 01:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 20:59:03] Production.INFO: ==2457== Lock acquired, processing the job... [2025-03-02 20:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 20:59:03] Production.INFO: ==2454== Lock acquired, processing the job... [2025-03-02 20:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 20:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 20:59:03] Production.INFO: ==2448== Lock acquired, processing the job... [2025-03-02 20:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 20:59:03] Production.INFO: ==2450== Lock acquired, processing the job... [2025-03-02 20:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 20:59:03] Production.INFO: Account Balance Start. [2025-03-02 20:59:03] Production.INFO: CreateAllLog Start [2025-03-02 20:59:03] Production.INFO: 117 [2025-03-02 20:59:03] Production.INFO: ==2452== Lock acquired, processing the job... [2025-03-02 20:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 20:59:03] Production.INFO: Date 2025-02-08 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 20:59:03] Production.INFO: ==2459== Lock acquired, processing the job... [2025-03-02 20:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 20:59:03] Production.INFO: Date 2025-02-09 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 20:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 20:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 20:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 20:59:03] Production.INFO: Date 2025-02-10 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.INFO: Date 2025-02-11 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.ERROR: done [2025-03-02 20:59:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 20:59:03] Production.INFO: Date 2025-02-12 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:59:03] Production.INFO: Date 2025-02-13 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.INFO: count ==13 [2025-03-02 20:59:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 20:59:03] Production.INFO: count ==21 [2025-03-02 20:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593724') start [2025-03-02 20:59:03] Production.INFO: Date 2025-02-14 [2025-03-02 20:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:03] Production.INFO: ==2450== Releasing lock... [2025-03-02 20:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 20:59:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 20:59:04] Production.ERROR: done [2025-03-02 20:59:04] Production.INFO: Date 2025-02-15 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 20:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 20:59:04] Production.INFO: Date 2025-02-16 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593724') end [2025-03-02 20:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 20:59:04] Production.INFO: 1 [2025-03-02 20:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 20:59:04] Production.INFO: ==2459== Releasing lock... [2025-03-02 20:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 20:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 20:59:04] Production.INFO: Date 2025-02-17 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-18 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-19 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-20 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-21 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-22 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-23 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-24 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-25 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-26 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-27 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-02-28 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-03-01 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Date 2025-03-02 [2025-03-02 20:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 20:59:04] Production.INFO: Total Charge 0 [2025-03-02 20:59:04] Production.INFO: CreateAllLog End [2025-03-02 20:59:04] Production.INFO: Account Balance End. [2025-03-02 20:59:04] Production.ERROR: CronJobId end 12 [2025-03-02 20:59:04] Production.INFO: ==2454== Releasing lock... [2025-03-02 20:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 20:59:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 20:59:12] Production.ERROR: CronJobId end10 [2025-03-02 20:59:12] Production.INFO: ==2452== Releasing lock... [2025-03-02 20:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 20:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 20:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 20:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 20:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 20:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 20:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 20:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 20:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 20:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 20:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 20:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 20:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 20:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 20:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 20:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 20:59:14] Production.INFO: call_cost start [2025-03-02 20:59:14] Production.INFO: call_cost end [2025-03-02 20:59:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 20:59:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 20:59:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 20:59:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 20:59:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 20:59:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 20:59:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 20:59:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 20:59:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 20:59:14] Production.INFO: ==2448== Releasing lock... [2025-03-02 20:59:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 20:59:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 20:59:16] Production.INFO: count ==1334 [2025-03-02 20:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 20:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 20:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593725', 'tblTempUsageDetail_20' ) start [2025-03-02 20:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593725', 'tblTempUsageDetail_20' ) end [2025-03-02 20:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593725', 'tblTempVendorCDR_20' ) start [2025-03-02 20:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593725', 'tblTempVendorCDR_20' ) end [2025-03-02 20:59:16] Production.INFO: ProcessCDR(1,14593725,1,1,2) [2025-03-02 20:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593725', 'tblTempUsageDetail_20' ) start [2025-03-02 20:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593725', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 20:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 20:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 20:59:24] Production.INFO: ==2457== Releasing lock... [2025-03-02 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 20:59:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:00:02] Production.INFO: ==2573== Lock acquired, processing the job... [2025-03-03 02:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:00:02] Production.INFO: neon service started [2025-03-03 02:00:02] Production.INFO: neon service started [2025-03-03 02:00:02] Production.INFO: ==2573== Releasing lock... [2025-03-03 02:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:00:02] Production.INFO: ==2575== Lock acquired, processing the job... [2025-03-02 21:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:00:02] Production.INFO: ==2577== Lock acquired, processing the job... [2025-03-03 02:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 21:00:03] Production.INFO: ==2575== Releasing lock... [2025-03-02 21:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:00:03] Production.INFO: ==2577== Releasing lock... [2025-03-03 02:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:00:04] Production.INFO: ==2580== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 21:00:04] Production.INFO: ==2582== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:00:04] Production.INFO: ==2586== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:00:04] Production.INFO: ==2588== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 21:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 21:00:04] Production.ERROR: CronJob PID - 2582 [2025-03-02 21:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 21:00:04] Production.ERROR: CronJob ID - 5 [2025-03-02 21:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 21:00:00 [2025-03-02 21:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 21:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 21:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 21:00:04] Production.ERROR: CronJob PID - 2586 [2025-03-02 21:00:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 21:00:04] Production.INFO: ==2590== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.ERROR: CronJob ID - 7 [2025-03-02 21:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 21:00:00 [2025-03-02 21:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 21:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 21:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 21:00:04] Production.INFO: ==2580== Releasing lock... [2025-03-02 21:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 21:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 21:00:04] Production.INFO: ==2592== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:00:04] Production.INFO: Account Balance Start. [2025-03-02 21:00:04] Production.INFO: CreateAllLog Start [2025-03-02 21:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:00:04] Production.INFO: 117 [2025-03-02 21:00:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.INFO: ==2596== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:00:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.INFO: ==2594== Lock acquired, processing the job... [2025-03-02 21:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 21:00:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:00:04] Production.INFO: ==2586== Releasing lock... [2025-03-02 21:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:00:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:00:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:04] Production.INFO: count ==13 [2025-03-02 21:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:00:04] Production.INFO: count ==21 [2025-03-02 21:00:05] Production.ERROR: done [2025-03-02 21:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593729') start [2025-03-02 21:00:05] Production.INFO: Date 2025-02-15 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-16 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.ERROR: done [2025-03-02 21:00:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14593729') end [2025-03-02 21:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:00:05] Production.INFO: 1 [2025-03-02 21:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:00:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.ERROR: done [2025-03-02 21:00:05] Production.INFO: ==2596== Releasing lock... [2025-03-02 21:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:00:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 21:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593730', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 21:00:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:00:05] Production.INFO: Total Charge 0 [2025-03-02 21:00:05] Production.INFO: CreateAllLog End [2025-03-02 21:00:05] Production.INFO: Account Balance End. [2025-03-02 21:00:06] Production.ERROR: CronJobId end 12 [2025-03-02 21:00:06] Production.INFO: ==2590== Releasing lock... [2025-03-02 21:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593730', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 21:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 21:00:09] Production.INFO: ProcessCDR(1,14593730,1,1,2) [2025-03-02 21:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593730,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593730,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 21:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 21:00:09] Production.INFO: ==2594== Releasing lock... [2025-03-02 21:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 21:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:00:15] Production.ERROR: CronJobId end10 [2025-03-02 21:00:15] Production.INFO: ==2588== Releasing lock... [2025-03-02 21:00:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:00:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:00:17] Production.INFO: call_cost start [2025-03-02 21:00:17] Production.INFO: call_cost end [2025-03-02 21:00:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:00:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:00:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:00:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:00:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:00:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:00:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:00:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:00:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:00:17] Production.INFO: ==2582== Releasing lock... [2025-03-02 21:00:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:00:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:00:17] Production.INFO: count ==1334 [2025-03-02 21:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593731', 'tblTempUsageDetail_20' ) start [2025-03-02 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593731', 'tblTempUsageDetail_20' ) end [2025-03-02 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593731', 'tblTempVendorCDR_20' ) start [2025-03-02 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593731', 'tblTempVendorCDR_20' ) end [2025-03-02 21:00:17] Production.INFO: ProcessCDR(1,14593731,1,1,2) [2025-03-02 21:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593731', 'tblTempUsageDetail_20' ) start [2025-03-02 21:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593731', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:00:25] Production.INFO: ==2592== Releasing lock... [2025-03-02 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:00:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:01:01] Production.INFO: ==2673== Lock acquired, processing the job... [2025-03-03 02:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:01:01] Production.INFO: neon service started [2025-03-03 02:01:01] Production.INFO: neon service started [2025-03-03 02:01:01] Production.INFO: ==2673== Releasing lock... [2025-03-03 02:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:01:01] Production.INFO: ==2687== Lock acquired, processing the job... [2025-03-03 02:01:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:01:02] Production.INFO: ==2687== Releasing lock... [2025-03-03 02:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:01:02] Production.INFO: ==2685== Lock acquired, processing the job... [2025-03-02 21:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:01:02] Production.INFO: ==2685== Releasing lock... [2025-03-02 21:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:01:03] Production.INFO: ==2696== Lock acquired, processing the job... [2025-03-02 21:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:01:03] Production.INFO: ==2698== Lock acquired, processing the job... [2025-03-02 21:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:01:03] Production.INFO: Account Balance Start. [2025-03-02 21:01:03] Production.INFO: CreateAllLog Start [2025-03-02 21:01:03] Production.INFO: 117 [2025-03-02 21:01:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.INFO: ==2690== Lock acquired, processing the job... [2025-03-02 21:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:01:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.INFO: ==2692== Lock acquired, processing the job... [2025-03-02 21:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:01:03] Production.INFO: ==2694== Lock acquired, processing the job... [2025-03-02 21:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:01:03] Production.INFO: ==2700== Lock acquired, processing the job... [2025-03-02 21:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:01:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.ERROR: done [2025-03-02 21:01:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:01:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:01:03] Production.ERROR: done [2025-03-02 21:01:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:01:03] Production.INFO: count ==13 [2025-03-02 21:01:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:01:04] Production.INFO: count ==21 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593733') start [2025-03-02 21:01:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593733') end [2025-03-02 21:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:01:04] Production.INFO: 1 [2025-03-02 21:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:01:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: ==2700== Releasing lock... [2025-03-02 21:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:01:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: ==2692== Releasing lock... [2025-03-02 21:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:01:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:01:04] Production.INFO: Total Charge 0 [2025-03-02 21:01:04] Production.INFO: CreateAllLog End [2025-03-02 21:01:05] Production.INFO: Account Balance End. [2025-03-02 21:01:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:01:05] Production.INFO: ==2696== Releasing lock... [2025-03-02 21:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:01:12] Production.ERROR: CronJobId end10 [2025-03-02 21:01:12] Production.INFO: ==2694== Releasing lock... [2025-03-02 21:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:01:15] Production.INFO: call_cost start [2025-03-02 21:01:15] Production.INFO: call_cost end [2025-03-02 21:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:01:15] Production.INFO: ==2690== Releasing lock... [2025-03-02 21:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:01:16] Production.INFO: count ==1334 [2025-03-02 21:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593736', 'tblTempUsageDetail_20' ) start [2025-03-02 21:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593736', 'tblTempUsageDetail_20' ) end [2025-03-02 21:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593736', 'tblTempVendorCDR_20' ) start [2025-03-02 21:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593736', 'tblTempVendorCDR_20' ) end [2025-03-02 21:01:16] Production.INFO: ProcessCDR(1,14593736,1,1,2) [2025-03-02 21:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593736', 'tblTempUsageDetail_20' ) start [2025-03-02 21:01:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593736', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:01:24] Production.INFO: ==2698== Releasing lock... [2025-03-02 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:01:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:02:02] Production.INFO: ==2783== Lock acquired, processing the job... [2025-03-03 02:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:02:02] Production.INFO: neon service started [2025-03-03 02:02:02] Production.INFO: neon service started [2025-03-03 02:02:02] Production.INFO: ==2783== Releasing lock... [2025-03-03 02:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:02:02] Production.INFO: ==2785== Lock acquired, processing the job... [2025-03-02 21:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:02:02] Production.INFO: ==2787== Lock acquired, processing the job... [2025-03-03 02:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 21:02:02] Production.INFO: ==2785== Releasing lock... [2025-03-02 21:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:02:02] Production.INFO: ==2787== Releasing lock... [2025-03-03 02:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:02:03] Production.INFO: ==2796== Lock acquired, processing the job... [2025-03-02 21:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:02:03] Production.INFO: ==2802== Lock acquired, processing the job... [2025-03-02 21:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:02:03] Production.INFO: ==2791== Lock acquired, processing the job... [2025-03-02 21:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:02:03] Production.INFO: count ==13 [2025-03-02 21:02:03] Production.INFO: ==2794== Lock acquired, processing the job... [2025-03-02 21:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:02:03] Production.INFO: count ==21 [2025-03-02 21:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593737') start [2025-03-02 21:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:02:04] Production.INFO: ==2798== Lock acquired, processing the job... [2025-03-02 21:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593737') end [2025-03-02 21:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:02:04] Production.INFO: 1 [2025-03-02 21:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:02:04] Production.INFO: ==2800== Lock acquired, processing the job... [2025-03-02 21:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:02:04] Production.INFO: ==2802== Releasing lock... [2025-03-02 21:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:02:04] Production.INFO: Account Balance Start. [2025-03-02 21:02:04] Production.INFO: CreateAllLog Start [2025-03-02 21:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:02:04] Production.INFO: 117 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:02:04] Production.INFO: ==2794== Releasing lock... [2025-03-02 21:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.ERROR: done [2025-03-02 21:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.ERROR: done [2025-03-02 21:02:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:02:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:02:05] Production.INFO: Total Charge 0 [2025-03-02 21:02:05] Production.INFO: CreateAllLog End [2025-03-02 21:02:05] Production.INFO: Account Balance End. [2025-03-02 21:02:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:02:05] Production.INFO: ==2798== Releasing lock... [2025-03-02 21:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:02:12] Production.ERROR: CronJobId end10 [2025-03-02 21:02:12] Production.INFO: ==2796== Releasing lock... [2025-03-02 21:02:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:02:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:02:15] Production.INFO: call_cost start [2025-03-02 21:02:15] Production.INFO: call_cost end [2025-03-02 21:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:02:15] Production.INFO: ==2791== Releasing lock... [2025-03-02 21:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:02:17] Production.INFO: count ==1334 [2025-03-02 21:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593741', 'tblTempUsageDetail_20' ) start [2025-03-02 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593741', 'tblTempUsageDetail_20' ) end [2025-03-02 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593741', 'tblTempVendorCDR_20' ) start [2025-03-02 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593741', 'tblTempVendorCDR_20' ) end [2025-03-02 21:02:17] Production.INFO: ProcessCDR(1,14593741,1,1,2) [2025-03-02 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593741', 'tblTempUsageDetail_20' ) start [2025-03-02 21:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593741', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:02:25] Production.INFO: ==2800== Releasing lock... [2025-03-02 21:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:02:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:03:01] Production.INFO: ==2884== Lock acquired, processing the job... [2025-03-03 02:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:03:01] Production.INFO: neon service started [2025-03-03 02:03:01] Production.INFO: neon service started [2025-03-03 02:03:01] Production.INFO: ==2884== Releasing lock... [2025-03-03 02:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:03:01] Production.INFO: ==2887== Lock acquired, processing the job... [2025-03-02 21:03:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:03:02] Production.INFO: ==2887== Releasing lock... [2025-03-02 21:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:03:02] Production.INFO: ==2889== Lock acquired, processing the job... [2025-03-03 02:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:03:02] Production.INFO: ==2889== Releasing lock... [2025-03-03 02:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:03:03] Production.INFO: ==2893== Lock acquired, processing the job... [2025-03-02 21:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:03:03] Production.INFO: ==2899== Lock acquired, processing the job... [2025-03-02 21:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:03:03] Production.INFO: ==2895== Lock acquired, processing the job... [2025-03-02 21:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:03:03] Production.INFO: ==2891== Lock acquired, processing the job... [2025-03-02 21:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:03:03] Production.INFO: ==2897== Lock acquired, processing the job... [2025-03-02 21:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:03:03] Production.INFO: ==2901== Lock acquired, processing the job... [2025-03-02 21:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:03:03] Production.INFO: Account Balance Start. [2025-03-02 21:03:03] Production.INFO: CreateAllLog Start [2025-03-02 21:03:03] Production.INFO: 117 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:03:03] Production.INFO: ==2893== Releasing lock... [2025-03-02 21:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:03:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:03:03] Production.ERROR: done [2025-03-02 21:03:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:03:03] Production.INFO: count ==13 [2025-03-02 21:03:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:03:03] Production.INFO: count ==21 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593745') start [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593745') end [2025-03-02 21:03:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:03:03] Production.INFO: 1 [2025-03-02 21:03:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:03:03] Production.ERROR: done [2025-03-02 21:03:03] Production.INFO: ==2901== Releasing lock... [2025-03-02 21:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:03:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:03:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:03:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:03:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:03:04] Production.INFO: Total Charge 0 [2025-03-02 21:03:04] Production.INFO: CreateAllLog End [2025-03-02 21:03:04] Production.INFO: Account Balance End. [2025-03-02 21:03:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:03:04] Production.INFO: ==2897== Releasing lock... [2025-03-02 21:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:03:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:03:11] Production.ERROR: CronJobId end10 [2025-03-02 21:03:11] Production.INFO: ==2895== Releasing lock... [2025-03-02 21:03:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:03:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:03:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:03:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:03:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:03:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:03:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:03:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:03:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:03:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:03:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:03:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:03:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:03:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:03:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:03:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:03:13] Production.INFO: call_cost start [2025-03-02 21:03:13] Production.INFO: call_cost end [2025-03-02 21:03:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:03:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:03:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:03:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:03:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:03:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:03:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:03:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:03:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:03:14] Production.INFO: ==2891== Releasing lock... [2025-03-02 21:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:03:15] Production.INFO: count ==1334 [2025-03-02 21:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593746', 'tblTempUsageDetail_20' ) start [2025-03-02 21:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593746', 'tblTempUsageDetail_20' ) end [2025-03-02 21:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593746', 'tblTempVendorCDR_20' ) start [2025-03-02 21:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593746', 'tblTempVendorCDR_20' ) end [2025-03-02 21:03:16] Production.INFO: ProcessCDR(1,14593746,1,1,2) [2025-03-02 21:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593746', 'tblTempUsageDetail_20' ) start [2025-03-02 21:03:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593746', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:03:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:03:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:03:23] Production.INFO: ==2899== Releasing lock... [2025-03-02 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:04:01] Production.INFO: ==2971== Lock acquired, processing the job... [2025-03-03 02:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:04:01] Production.INFO: neon service started [2025-03-03 02:04:02] Production.INFO: neon service started [2025-03-03 02:04:02] Production.INFO: ==2971== Releasing lock... [2025-03-03 02:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:04:02] Production.INFO: ==2973== Lock acquired, processing the job... [2025-03-02 21:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:04:02] Production.INFO: ==2975== Lock acquired, processing the job... [2025-03-03 02:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:04:02] Production.INFO: ==2975== Releasing lock... [2025-03-03 02:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:04:03] Production.INFO: ==2973== Releasing lock... [2025-03-02 21:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:04:03] Production.INFO: ==2980== Lock acquired, processing the job... [2025-03-02 21:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:04:03] Production.INFO: ==2978== Lock acquired, processing the job... [2025-03-02 21:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:04:04] Production.INFO: ==2980== Releasing lock... [2025-03-02 21:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:04:04] Production.INFO: ==2988== Lock acquired, processing the job... [2025-03-02 21:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:04:04] Production.INFO: ==2982== Lock acquired, processing the job... [2025-03-02 21:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:04:04] Production.INFO: count ==13 [2025-03-02 21:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:04:04] Production.INFO: count ==21 [2025-03-02 21:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593749') start [2025-03-02 21:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:04:04] Production.INFO: ==2984== Lock acquired, processing the job... [2025-03-02 21:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:04:04] Production.INFO: ==2986== Lock acquired, processing the job... [2025-03-02 21:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593749') end [2025-03-02 21:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:04:04] Production.INFO: 1 [2025-03-02 21:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:04:04] Production.INFO: ==2988== Releasing lock... [2025-03-02 21:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:04:04] Production.INFO: Account Balance Start. [2025-03-02 21:04:04] Production.INFO: CreateAllLog Start [2025-03-02 21:04:04] Production.INFO: 117 [2025-03-02 21:04:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-12 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.ERROR: done [2025-03-02 21:04:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-13 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.ERROR: done [2025-03-02 21:04:05] Production.INFO: Date 2025-02-14 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:04:05] Production.INFO: Date 2025-02-15 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-16 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:04:05] Production.INFO: Total Charge 0 [2025-03-02 21:04:05] Production.INFO: CreateAllLog End [2025-03-02 21:04:06] Production.INFO: Account Balance End. [2025-03-02 21:04:06] Production.ERROR: CronJobId end 12 [2025-03-02 21:04:06] Production.INFO: ==2984== Releasing lock... [2025-03-02 21:04:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:04:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:04:12] Production.ERROR: CronJobId end10 [2025-03-02 21:04:12] Production.INFO: ==2982== Releasing lock... [2025-03-02 21:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:04:15] Production.INFO: call_cost start [2025-03-02 21:04:15] Production.INFO: call_cost end [2025-03-02 21:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:04:15] Production.INFO: ==2978== Releasing lock... [2025-03-02 21:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:04:17] Production.INFO: count ==1334 [2025-03-02 21:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593751', 'tblTempUsageDetail_20' ) start [2025-03-02 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593751', 'tblTempUsageDetail_20' ) end [2025-03-02 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593751', 'tblTempVendorCDR_20' ) start [2025-03-02 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593751', 'tblTempVendorCDR_20' ) end [2025-03-02 21:04:17] Production.INFO: ProcessCDR(1,14593751,1,1,2) [2025-03-02 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593751', 'tblTempUsageDetail_20' ) start [2025-03-02 21:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593751', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:04:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:04:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:04:25] Production.INFO: ==2986== Releasing lock... [2025-03-02 21:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:04:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:05:01] Production.INFO: ==3063== Lock acquired, processing the job... [2025-03-03 02:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:05:01] Production.INFO: neon service started [2025-03-03 02:05:01] Production.INFO: neon service started [2025-03-03 02:05:01] Production.INFO: ==3063== Releasing lock... [2025-03-03 02:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:05:01] Production.INFO: ==3065== Lock acquired, processing the job... [2025-03-02 21:05:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:05:02] Production.INFO: ==3068== Lock acquired, processing the job... [2025-03-03 02:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 21:05:02] Production.INFO: ==3065== Releasing lock... [2025-03-02 21:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:05:02] Production.INFO: ==3068== Releasing lock... [2025-03-03 02:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:05:02] Production.INFO: ==3071== Lock acquired, processing the job... [2025-03-02 21:05:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:05:02] Production.INFO: ==3073== Lock acquired, processing the job... [2025-03-02 21:05:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:05:03] Production.INFO: ==3076== Lock acquired, processing the job... [2025-03-02 21:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:05:03] Production.INFO: ==3080== Lock acquired, processing the job... [2025-03-02 21:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:05:03] Production.INFO: ==3078== Lock acquired, processing the job... [2025-03-02 21:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:05:03] Production.INFO: Account Balance Start. [2025-03-02 21:05:03] Production.INFO: CreateAllLog Start [2025-03-02 21:05:03] Production.INFO: 117 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:05:03] Production.INFO: ==3082== Lock acquired, processing the job... [2025-03-02 21:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: ==3073== Releasing lock... [2025-03-02 21:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:05:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:05:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:05:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: count ==13 [2025-03-02 21:05:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:05:03] Production.INFO: count ==21 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593755') start [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.ERROR: done [2025-03-02 21:05:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593755') end [2025-03-02 21:05:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:05:03] Production.INFO: 1 [2025-03-02 21:05:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:05:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:03] Production.INFO: ==3082== Releasing lock... [2025-03-02 21:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:05:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:05:03] Production.ERROR: done [2025-03-02 21:05:03] Production.INFO: Date 2025-02-20 [2025-03-02 21:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:05:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:05:04] Production.INFO: Total Charge 0 [2025-03-02 21:05:04] Production.INFO: CreateAllLog End [2025-03-02 21:05:04] Production.INFO: Account Balance End. [2025-03-02 21:05:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:05:04] Production.INFO: ==3078== Releasing lock... [2025-03-02 21:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:05:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:05:12] Production.ERROR: CronJobId end10 [2025-03-02 21:05:12] Production.INFO: ==3076== Releasing lock... [2025-03-02 21:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:05:14] Production.INFO: call_cost start [2025-03-02 21:05:14] Production.INFO: call_cost end [2025-03-02 21:05:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:05:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:05:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:05:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:05:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:05:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:05:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:05:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:05:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:05:14] Production.INFO: ==3071== Releasing lock... [2025-03-02 21:05:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:05:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:05:16] Production.INFO: count ==1334 [2025-03-02 21:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593756', 'tblTempUsageDetail_20' ) start [2025-03-02 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593756', 'tblTempUsageDetail_20' ) end [2025-03-02 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593756', 'tblTempVendorCDR_20' ) start [2025-03-02 21:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593756', 'tblTempVendorCDR_20' ) end [2025-03-02 21:05:16] Production.INFO: ProcessCDR(1,14593756,1,1,2) [2025-03-02 21:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593756', 'tblTempUsageDetail_20' ) start [2025-03-02 21:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593756', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:05:24] Production.INFO: ==3080== Releasing lock... [2025-03-02 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:05:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:06:01] Production.INFO: ==3159== Lock acquired, processing the job... [2025-03-03 02:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:06:01] Production.INFO: neon service started [2025-03-03 02:06:01] Production.INFO: neon service started [2025-03-03 02:06:01] Production.INFO: ==3159== Releasing lock... [2025-03-03 02:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:06:02] Production.INFO: ==3163== Lock acquired, processing the job... [2025-03-03 02:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:06:02] Production.INFO: ==3163== Releasing lock... [2025-03-03 02:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:06:02] Production.INFO: ==3161== Lock acquired, processing the job... [2025-03-02 21:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:06:02] Production.INFO: ==3161== Releasing lock... [2025-03-02 21:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:06:03] Production.INFO: ==3172== Lock acquired, processing the job... [2025-03-02 21:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:06:03] Production.INFO: ==3176== Lock acquired, processing the job... [2025-03-02 21:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:06:03] Production.INFO: Account Balance Start. [2025-03-02 21:06:03] Production.INFO: CreateAllLog Start [2025-03-02 21:06:03] Production.INFO: 117 [2025-03-02 21:06:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:06:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: count ==13 [2025-03-02 21:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:06:04] Production.INFO: count ==21 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: ==3166== Lock acquired, processing the job... [2025-03-02 21:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593758') start [2025-03-02 21:06:04] Production.INFO: ==3168== Lock acquired, processing the job... [2025-03-02 21:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593758') end [2025-03-02 21:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:06:04] Production.INFO: 1 [2025-03-02 21:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:06:04] Production.INFO: ==3170== Lock acquired, processing the job... [2025-03-02 21:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:06:04] Production.INFO: ==3176== Releasing lock... [2025-03-02 21:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:06:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:06:04] Production.INFO: ==3174== Lock acquired, processing the job... [2025-03-02 21:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:06:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: ==3168== Releasing lock... [2025-03-02 21:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:06:04] Production.ERROR: done [2025-03-02 21:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.ERROR: done [2025-03-02 21:06:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:06:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:06:05] Production.INFO: Total Charge 0 [2025-03-02 21:06:05] Production.INFO: CreateAllLog End [2025-03-02 21:06:05] Production.INFO: Account Balance End. [2025-03-02 21:06:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:06:05] Production.INFO: ==3172== Releasing lock... [2025-03-02 21:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:06:12] Production.ERROR: CronJobId end10 [2025-03-02 21:06:12] Production.INFO: ==3170== Releasing lock... [2025-03-02 21:06:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:06:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:06:15] Production.INFO: call_cost start [2025-03-02 21:06:15] Production.INFO: call_cost end [2025-03-02 21:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:06:15] Production.INFO: ==3166== Releasing lock... [2025-03-02 21:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:06:17] Production.INFO: count ==1334 [2025-03-02 21:06:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593761', 'tblTempUsageDetail_20' ) start [2025-03-02 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593761', 'tblTempUsageDetail_20' ) end [2025-03-02 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593761', 'tblTempVendorCDR_20' ) start [2025-03-02 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593761', 'tblTempVendorCDR_20' ) end [2025-03-02 21:06:17] Production.INFO: ProcessCDR(1,14593761,1,1,2) [2025-03-02 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593761', 'tblTempUsageDetail_20' ) start [2025-03-02 21:06:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593761', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:06:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:06:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:06:25] Production.INFO: ==3174== Releasing lock... [2025-03-02 21:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:06:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:07:01] Production.INFO: ==3260== Lock acquired, processing the job... [2025-03-03 02:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:07:01] Production.INFO: neon service started [2025-03-03 02:07:01] Production.INFO: neon service started [2025-03-03 02:07:01] Production.INFO: ==3260== Releasing lock... [2025-03-03 02:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:07:01] Production.INFO: ==3262== Lock acquired, processing the job... [2025-03-02 21:07:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:07:01] Production.INFO: ==3264== Lock acquired, processing the job... [2025-03-03 02:07:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:07:02] Production.INFO: ==3264== Releasing lock... [2025-03-03 02:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:07:02] Production.INFO: ==3262== Releasing lock... [2025-03-02 21:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:07:03] Production.INFO: ==3269== Lock acquired, processing the job... [2025-03-02 21:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:07:03] Production.INFO: ==3273== Lock acquired, processing the job... [2025-03-02 21:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:07:03] Production.INFO: ==3275== Lock acquired, processing the job... [2025-03-02 21:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:07:03] Production.INFO: ==3271== Lock acquired, processing the job... [2025-03-02 21:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:07:03] Production.INFO: Account Balance Start. [2025-03-02 21:07:03] Production.INFO: CreateAllLog Start [2025-03-02 21:07:03] Production.INFO: 117 [2025-03-02 21:07:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: ==3277== Lock acquired, processing the job... [2025-03-02 21:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:07:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: ==3279== Lock acquired, processing the job... [2025-03-02 21:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:07:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:07:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: ==3271== Releasing lock... [2025-03-02 21:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:07:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: count ==13 [2025-03-02 21:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:07:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:07:03] Production.INFO: count ==21 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593765') start [2025-03-02 21:07:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:03] Production.ERROR: done [2025-03-02 21:07:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593765') end [2025-03-02 21:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:07:04] Production.INFO: 1 [2025-03-02 21:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:07:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.ERROR: done [2025-03-02 21:07:04] Production.INFO: ==3279== Releasing lock... [2025-03-02 21:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:07:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:07:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:07:04] Production.INFO: Total Charge 0 [2025-03-02 21:07:04] Production.INFO: CreateAllLog End [2025-03-02 21:07:04] Production.INFO: Account Balance End. [2025-03-02 21:07:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:07:04] Production.INFO: ==3275== Releasing lock... [2025-03-02 21:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:07:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:07:12] Production.ERROR: CronJobId end10 [2025-03-02 21:07:12] Production.INFO: ==3273== Releasing lock... [2025-03-02 21:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:07:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:07:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:07:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:07:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:07:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:07:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:07:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:07:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:07:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:07:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:07:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:07:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:07:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:07:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:07:14] Production.INFO: call_cost start [2025-03-02 21:07:14] Production.INFO: call_cost end [2025-03-02 21:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:07:14] Production.INFO: ==3269== Releasing lock... [2025-03-02 21:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:07:16] Production.INFO: count ==1334 [2025-03-02 21:07:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593766', 'tblTempUsageDetail_20' ) start [2025-03-02 21:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593766', 'tblTempUsageDetail_20' ) end [2025-03-02 21:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593766', 'tblTempVendorCDR_20' ) start [2025-03-02 21:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593766', 'tblTempVendorCDR_20' ) end [2025-03-02 21:07:16] Production.INFO: ProcessCDR(1,14593766,1,1,2) [2025-03-02 21:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593766', 'tblTempUsageDetail_20' ) start [2025-03-02 21:07:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593766', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:07:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:07:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:07:24] Production.INFO: ==3277== Releasing lock... [2025-03-02 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:07:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:08:01] Production.INFO: ==3351== Lock acquired, processing the job... [2025-03-03 02:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:08:01] Production.INFO: neon service started [2025-03-03 02:08:01] Production.INFO: neon service started [2025-03-03 02:08:01] Production.INFO: ==3351== Releasing lock... [2025-03-03 02:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:08:02] Production.INFO: ==3353== Lock acquired, processing the job... [2025-03-02 21:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:08:02] Production.INFO: ==3353== Releasing lock... [2025-03-02 21:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:08:02] Production.INFO: ==3355== Lock acquired, processing the job... [2025-03-03 02:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:08:02] Production.INFO: ==3355== Releasing lock... [2025-03-03 02:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:08:03] Production.INFO: ==3359== Lock acquired, processing the job... [2025-03-02 21:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:08:03] Production.INFO: ==3361== Lock acquired, processing the job... [2025-03-02 21:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:08:03] Production.INFO: ==3363== Lock acquired, processing the job... [2025-03-02 21:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:08:03] Production.INFO: Account Balance Start. [2025-03-02 21:08:03] Production.INFO: CreateAllLog Start [2025-03-02 21:08:03] Production.INFO: 117 [2025-03-02 21:08:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.INFO: ==3357== Lock acquired, processing the job... [2025-03-02 21:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:08:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.INFO: ==3365== Lock acquired, processing the job... [2025-03-02 21:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:08:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:08:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:08:03] Production.INFO: ==3359== Releasing lock... [2025-03-02 21:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:08:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:03] Production.INFO: ==3368== Lock acquired, processing the job... [2025-03-02 21:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:08:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:08:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:08:04] Production.INFO: count ==13 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.ERROR: done [2025-03-02 21:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:08:04] Production.INFO: count ==21 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593770') start [2025-03-02 21:08:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.ERROR: done [2025-03-02 21:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593770') end [2025-03-02 21:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:08:04] Production.INFO: 1 [2025-03-02 21:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:08:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: ==3368== Releasing lock... [2025-03-02 21:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:08:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:08:04] Production.INFO: Total Charge 0 [2025-03-02 21:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:08:04] Production.INFO: CreateAllLog End [2025-03-02 21:08:04] Production.INFO: Account Balance End. [2025-03-02 21:08:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:08:04] Production.INFO: ==3363== Releasing lock... [2025-03-02 21:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:08:12] Production.ERROR: CronJobId end10 [2025-03-02 21:08:12] Production.INFO: ==3361== Releasing lock... [2025-03-02 21:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:08:15] Production.INFO: call_cost start [2025-03-02 21:08:15] Production.INFO: call_cost end [2025-03-02 21:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:08:15] Production.INFO: ==3357== Releasing lock... [2025-03-02 21:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:08:16] Production.INFO: count ==1334 [2025-03-02 21:08:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593771', 'tblTempUsageDetail_20' ) start [2025-03-02 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593771', 'tblTempUsageDetail_20' ) end [2025-03-02 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593771', 'tblTempVendorCDR_20' ) start [2025-03-02 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593771', 'tblTempVendorCDR_20' ) end [2025-03-02 21:08:17] Production.INFO: ProcessCDR(1,14593771,1,1,2) [2025-03-02 21:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593771', 'tblTempUsageDetail_20' ) start [2025-03-02 21:08:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593771', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:08:24] Production.INFO: ==3365== Releasing lock... [2025-03-02 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:08:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:09:02] Production.INFO: ==3446== Lock acquired, processing the job... [2025-03-03 02:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:09:02] Production.INFO: neon service started [2025-03-03 02:09:02] Production.INFO: neon service started [2025-03-03 02:09:02] Production.INFO: ==3446== Releasing lock... [2025-03-03 02:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:09:02] Production.INFO: ==3450== Lock acquired, processing the job... [2025-03-03 02:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:09:02] Production.INFO: ==3450== Releasing lock... [2025-03-03 02:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:09:02] Production.INFO: ==3448== Lock acquired, processing the job... [2025-03-02 21:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:09:03] Production.INFO: ==3448== Releasing lock... [2025-03-02 21:09:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:09:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:09:04] Production.INFO: ==3453== Lock acquired, processing the job... [2025-03-02 21:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:09:04] Production.INFO: ==3463== Lock acquired, processing the job... [2025-03-02 21:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:09:04] Production.INFO: count ==13 [2025-03-02 21:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:09:04] Production.INFO: ==3455== Lock acquired, processing the job... [2025-03-02 21:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:09:04] Production.INFO: ==3457== Lock acquired, processing the job... [2025-03-02 21:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:09:04] Production.INFO: count ==21 [2025-03-02 21:09:04] Production.INFO: ==3459== Lock acquired, processing the job... [2025-03-02 21:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593773') start [2025-03-02 21:09:04] Production.INFO: ==3461== Lock acquired, processing the job... [2025-03-02 21:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593773') end [2025-03-02 21:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:09:04] Production.INFO: 1 [2025-03-02 21:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:09:04] Production.INFO: Account Balance Start. [2025-03-02 21:09:04] Production.INFO: CreateAllLog Start [2025-03-02 21:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:09:04] Production.INFO: ==3463== Releasing lock... [2025-03-02 21:09:04] Production.INFO: 117 [2025-03-02 21:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:09:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:09:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-16 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.ERROR: done [2025-03-02 21:09:05] Production.INFO: ==3455== Releasing lock... [2025-03-02 21:09:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:09:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:09:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.ERROR: done [2025-03-02 21:09:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:09:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:09:05] Production.INFO: Total Charge 0 [2025-03-02 21:09:05] Production.INFO: CreateAllLog End [2025-03-02 21:09:05] Production.INFO: Account Balance End. [2025-03-02 21:09:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:09:05] Production.INFO: ==3459== Releasing lock... [2025-03-02 21:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:09:13] Production.ERROR: CronJobId end10 [2025-03-02 21:09:13] Production.INFO: ==3457== Releasing lock... [2025-03-02 21:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:09:15] Production.INFO: call_cost start [2025-03-02 21:09:15] Production.INFO: call_cost end [2025-03-02 21:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:09:15] Production.INFO: ==3453== Releasing lock... [2025-03-02 21:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:09:17] Production.INFO: count ==1334 [2025-03-02 21:09:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593776', 'tblTempUsageDetail_20' ) start [2025-03-02 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593776', 'tblTempUsageDetail_20' ) end [2025-03-02 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593776', 'tblTempVendorCDR_20' ) start [2025-03-02 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593776', 'tblTempVendorCDR_20' ) end [2025-03-02 21:09:17] Production.INFO: ProcessCDR(1,14593776,1,1,2) [2025-03-02 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593776', 'tblTempUsageDetail_20' ) start [2025-03-02 21:09:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593776', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:09:26] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:09:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:09:26] Production.INFO: ==3461== Releasing lock... [2025-03-02 21:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:09:26] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:10:01] Production.INFO: ==3543== Lock acquired, processing the job... [2025-03-03 02:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:10:01] Production.INFO: neon service started [2025-03-03 02:10:01] Production.INFO: neon service started [2025-03-03 02:10:01] Production.INFO: ==3543== Releasing lock... [2025-03-03 02:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:10:02] Production.INFO: ==3547== Lock acquired, processing the job... [2025-03-03 02:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:10:02] Production.INFO: ==3547== Releasing lock... [2025-03-03 02:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:10:02] Production.INFO: ==3545== Lock acquired, processing the job... [2025-03-02 21:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:10:02] Production.INFO: ==3545== Releasing lock... [2025-03-02 21:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:10:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:10:03] Production.INFO: ==3550== Lock acquired, processing the job... [2025-03-02 21:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 21:10:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 21:10:03] Production.INFO: ==3552== Lock acquired, processing the job... [2025-03-02 21:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:10:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 21:10:03] Production.INFO: ==3550== Releasing lock... [2025-03-02 21:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 21:10:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 21:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:10:03] Production.INFO: ==3558== Lock acquired, processing the job... [2025-03-02 21:10:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:10:03] Production.INFO: ==3554== Lock acquired, processing the job... [2025-03-02 21:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:10:03] Production.INFO: ==3564== Lock acquired, processing the job... [2025-03-02 21:10:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:10:03] Production.INFO: Account Balance Start. [2025-03-02 21:10:03] Production.INFO: CreateAllLog Start [2025-03-02 21:10:03] Production.INFO: 117 [2025-03-02 21:10:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:10:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:03] Production.INFO: ==3556== Lock acquired, processing the job... [2025-03-02 21:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:10:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: ==3560== Lock acquired, processing the job... [2025-03-02 21:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:10:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:10:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: ==3562== Lock acquired, processing the job... [2025-03-02 21:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 21:10:04] Production.INFO: count ==13 [2025-03-02 21:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:10:04] Production.INFO: count ==21 [2025-03-02 21:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593780') start [2025-03-02 21:10:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593780') end [2025-03-02 21:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:10:04] Production.INFO: 1 [2025-03-02 21:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:10:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: ==3564== Releasing lock... [2025-03-02 21:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:10:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: ==3554== Releasing lock... [2025-03-02 21:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:10:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.ERROR: done [2025-03-02 21:10:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.ERROR: done [2025-03-02 21:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 21:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593781', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 21:10:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.ERROR: done [2025-03-02 21:10:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:10:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:10:05] Production.INFO: Total Charge 0 [2025-03-02 21:10:05] Production.INFO: CreateAllLog End [2025-03-02 21:10:05] Production.INFO: Account Balance End. [2025-03-02 21:10:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:10:05] Production.INFO: ==3558== Releasing lock... [2025-03-02 21:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593781', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 21:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 21:10:09] Production.INFO: ProcessCDR(1,14593781,1,1,2) [2025-03-02 21:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593781,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593781,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 21:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 21:10:09] Production.INFO: ==3562== Releasing lock... [2025-03-02 21:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 21:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:10:14] Production.ERROR: CronJobId end10 [2025-03-02 21:10:14] Production.INFO: ==3556== Releasing lock... [2025-03-02 21:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:10:16] Production.INFO: call_cost start [2025-03-02 21:10:16] Production.INFO: call_cost end [2025-03-02 21:10:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:10:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:10:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:10:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:10:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:10:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:10:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:10:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:10:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:10:16] Production.INFO: ==3552== Releasing lock... [2025-03-02 21:10:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:10:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:10:17] Production.INFO: count ==1334 [2025-03-02 21:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593782', 'tblTempUsageDetail_20' ) start [2025-03-02 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593782', 'tblTempUsageDetail_20' ) end [2025-03-02 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593782', 'tblTempVendorCDR_20' ) start [2025-03-02 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593782', 'tblTempVendorCDR_20' ) end [2025-03-02 21:10:17] Production.INFO: ProcessCDR(1,14593782,1,1,2) [2025-03-02 21:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593782', 'tblTempUsageDetail_20' ) start [2025-03-02 21:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593782', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:10:25] Production.INFO: ==3560== Releasing lock... [2025-03-02 21:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:10:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:11:02] Production.INFO: ==3637== Lock acquired, processing the job... [2025-03-03 02:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:11:02] Production.INFO: neon service started [2025-03-03 02:11:02] Production.INFO: neon service started [2025-03-03 02:11:02] Production.INFO: ==3637== Releasing lock... [2025-03-03 02:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:11:02] Production.INFO: ==3639== Lock acquired, processing the job... [2025-03-02 21:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:11:02] Production.INFO: ==3639== Releasing lock... [2025-03-02 21:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:11:03] Production.INFO: ==3641== Lock acquired, processing the job... [2025-03-03 02:11:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:11:03] Production.INFO: ==3641== Releasing lock... [2025-03-03 02:11:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:11:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:11:03] Production.INFO: ==3643== Lock acquired, processing the job... [2025-03-02 21:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:11:03] Production.INFO: ==3645== Lock acquired, processing the job... [2025-03-02 21:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:11:03] Production.INFO: ==3651== Lock acquired, processing the job... [2025-03-02 21:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:11:03] Production.INFO: ==3647== Lock acquired, processing the job... [2025-03-02 21:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:11:04] Production.INFO: ==3649== Lock acquired, processing the job... [2025-03-02 21:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:11:04] Production.INFO: ==3653== Lock acquired, processing the job... [2025-03-02 21:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:11:04] Production.INFO: ==3645== Releasing lock... [2025-03-02 21:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:11:04] Production.INFO: count ==13 [2025-03-02 21:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:11:04] Production.INFO: Account Balance Start. [2025-03-02 21:11:04] Production.INFO: CreateAllLog Start [2025-03-02 21:11:04] Production.INFO: 117 [2025-03-02 21:11:04] Production.INFO: count ==21 [2025-03-02 21:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593785') start [2025-03-02 21:11:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.ERROR: done [2025-03-02 21:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593785') end [2025-03-02 21:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:11:04] Production.INFO: 1 [2025-03-02 21:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:11:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: ==3653== Releasing lock... [2025-03-02 21:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:11:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.ERROR: done [2025-03-02 21:11:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:11:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:11:05] Production.INFO: Total Charge 0 [2025-03-02 21:11:05] Production.INFO: CreateAllLog End [2025-03-02 21:11:05] Production.INFO: Account Balance End. [2025-03-02 21:11:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:11:05] Production.INFO: ==3649== Releasing lock... [2025-03-02 21:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:11:13] Production.ERROR: CronJobId end10 [2025-03-02 21:11:13] Production.INFO: ==3647== Releasing lock... [2025-03-02 21:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:11:15] Production.INFO: call_cost start [2025-03-02 21:11:15] Production.INFO: call_cost end [2025-03-02 21:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:11:15] Production.INFO: ==3643== Releasing lock... [2025-03-02 21:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:11:16] Production.INFO: count ==1334 [2025-03-02 21:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593787', 'tblTempUsageDetail_20' ) start [2025-03-02 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593787', 'tblTempUsageDetail_20' ) end [2025-03-02 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593787', 'tblTempVendorCDR_20' ) start [2025-03-02 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593787', 'tblTempVendorCDR_20' ) end [2025-03-02 21:11:16] Production.INFO: ProcessCDR(1,14593787,1,1,2) [2025-03-02 21:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593787', 'tblTempUsageDetail_20' ) start [2025-03-02 21:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593787', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:11:24] Production.INFO: ==3651== Releasing lock... [2025-03-02 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:11:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:12:01] Production.INFO: ==3731== Lock acquired, processing the job... [2025-03-03 02:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:12:01] Production.INFO: neon service started [2025-03-03 02:12:01] Production.INFO: neon service started [2025-03-03 02:12:01] Production.INFO: ==3731== Releasing lock... [2025-03-03 02:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:12:02] Production.INFO: ==3733== Lock acquired, processing the job... [2025-03-02 21:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:12:02] Production.INFO: ==3733== Releasing lock... [2025-03-02 21:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:12:02] Production.INFO: ==3735== Lock acquired, processing the job... [2025-03-03 02:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:12:02] Production.INFO: ==3735== Releasing lock... [2025-03-03 02:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:12:03] Production.INFO: ==3739== Lock acquired, processing the job... [2025-03-02 21:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:12:03] Production.INFO: ==3737== Lock acquired, processing the job... [2025-03-02 21:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:12:03] Production.INFO: ==3746== Lock acquired, processing the job... [2025-03-02 21:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:12:03] Production.INFO: ==3741== Lock acquired, processing the job... [2025-03-02 21:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:12:03] Production.INFO: ==3743== Lock acquired, processing the job... [2025-03-02 21:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:12:03] Production.INFO: ==3748== Lock acquired, processing the job... [2025-03-02 21:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:12:03] Production.INFO: Account Balance Start. [2025-03-02 21:12:03] Production.INFO: CreateAllLog Start [2025-03-02 21:12:03] Production.INFO: 117 [2025-03-02 21:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:12:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:12:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:12:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:12:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:12:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:12:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:03] Production.INFO: count ==13 [2025-03-02 21:12:03] Production.INFO: ==3739== Releasing lock... [2025-03-02 21:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:12:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:12:03] Production.INFO: count ==21 [2025-03-02 21:12:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593791') start [2025-03-02 21:12:04] Production.ERROR: done [2025-03-02 21:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593791') end [2025-03-02 21:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:12:04] Production.INFO: 1 [2025-03-02 21:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:12:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: ==3748== Releasing lock... [2025-03-02 21:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:12:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.ERROR: done [2025-03-02 21:12:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:12:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:12:05] Production.INFO: Total Charge 0 [2025-03-02 21:12:05] Production.INFO: CreateAllLog End [2025-03-02 21:12:05] Production.INFO: Account Balance End. [2025-03-02 21:12:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:12:05] Production.INFO: ==3743== Releasing lock... [2025-03-02 21:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:12:12] Production.ERROR: CronJobId end10 [2025-03-02 21:12:12] Production.INFO: ==3741== Releasing lock... [2025-03-02 21:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:12:14] Production.INFO: call_cost start [2025-03-02 21:12:14] Production.INFO: call_cost end [2025-03-02 21:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:12:14] Production.INFO: ==3737== Releasing lock... [2025-03-02 21:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:12:16] Production.INFO: count ==1334 [2025-03-02 21:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593792', 'tblTempUsageDetail_20' ) start [2025-03-02 21:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593792', 'tblTempUsageDetail_20' ) end [2025-03-02 21:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593792', 'tblTempVendorCDR_20' ) start [2025-03-02 21:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593792', 'tblTempVendorCDR_20' ) end [2025-03-02 21:12:16] Production.INFO: ProcessCDR(1,14593792,1,1,2) [2025-03-02 21:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593792', 'tblTempUsageDetail_20' ) start [2025-03-02 21:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593792', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:12:24] Production.INFO: ==3746== Releasing lock... [2025-03-02 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:12:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:13:02] Production.INFO: ==3818== Lock acquired, processing the job... [2025-03-03 02:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:13:02] Production.INFO: neon service started [2025-03-03 02:13:02] Production.INFO: neon service started [2025-03-03 02:13:02] Production.INFO: ==3818== Releasing lock... [2025-03-03 02:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:13:02] Production.INFO: ==3822== Lock acquired, processing the job... [2025-03-03 02:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:13:02] Production.INFO: ==3822== Releasing lock... [2025-03-03 02:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:13:02] Production.INFO: ==3820== Lock acquired, processing the job... [2025-03-02 21:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:13:03] Production.INFO: ==3820== Releasing lock... [2025-03-02 21:13:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:13:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:13:03] Production.INFO: ==3829== Lock acquired, processing the job... [2025-03-02 21:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:13:03] Production.INFO: ==3835== Lock acquired, processing the job... [2025-03-02 21:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:13:04] Production.INFO: ==3825== Lock acquired, processing the job... [2025-03-02 21:13:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:13:04] Production.INFO: ==3827== Lock acquired, processing the job... [2025-03-02 21:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:13:04] Production.INFO: count ==13 [2025-03-02 21:13:04] Production.INFO: ==3831== Lock acquired, processing the job... [2025-03-02 21:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:13:04] Production.INFO: count ==21 [2025-03-02 21:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593793') start [2025-03-02 21:13:04] Production.INFO: ==3833== Lock acquired, processing the job... [2025-03-02 21:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:13:04] Production.INFO: Account Balance Start. [2025-03-02 21:13:04] Production.INFO: CreateAllLog Start [2025-03-02 21:13:04] Production.INFO: 117 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593793') end [2025-03-02 21:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:13:04] Production.INFO: 1 [2025-03-02 21:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:13:04] Production.INFO: ==3835== Releasing lock... [2025-03-02 21:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:13:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: ==3827== Releasing lock... [2025-03-02 21:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:13:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.ERROR: done [2025-03-02 21:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:04] Production.ERROR: done [2025-03-02 21:13:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:13:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:13:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:13:05] Production.INFO: Total Charge 0 [2025-03-02 21:13:05] Production.INFO: CreateAllLog End [2025-03-02 21:13:05] Production.INFO: Account Balance End. [2025-03-02 21:13:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:13:05] Production.INFO: ==3831== Releasing lock... [2025-03-02 21:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:13:12] Production.ERROR: CronJobId end10 [2025-03-02 21:13:12] Production.INFO: ==3829== Releasing lock... [2025-03-02 21:13:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:13:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:13:15] Production.INFO: call_cost start [2025-03-02 21:13:15] Production.INFO: call_cost end [2025-03-02 21:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:13:15] Production.INFO: ==3825== Releasing lock... [2025-03-02 21:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:13:17] Production.INFO: count ==1334 [2025-03-02 21:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593797', 'tblTempUsageDetail_20' ) start [2025-03-02 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593797', 'tblTempUsageDetail_20' ) end [2025-03-02 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593797', 'tblTempVendorCDR_20' ) start [2025-03-02 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593797', 'tblTempVendorCDR_20' ) end [2025-03-02 21:13:17] Production.INFO: ProcessCDR(1,14593797,1,1,2) [2025-03-02 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593797', 'tblTempUsageDetail_20' ) start [2025-03-02 21:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593797', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:13:24] Production.INFO: ==3833== Releasing lock... [2025-03-02 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:13:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:14:01] Production.INFO: ==3901== Lock acquired, processing the job... [2025-03-03 02:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:14:01] Production.INFO: neon service started [2025-03-03 02:14:01] Production.INFO: neon service started [2025-03-03 02:14:01] Production.INFO: ==3901== Releasing lock... [2025-03-03 02:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:14:02] Production.INFO: ==3905== Lock acquired, processing the job... [2025-03-02 21:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:14:02] Production.INFO: ==3905== Releasing lock... [2025-03-02 21:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:14:02] Production.INFO: ==3907== Lock acquired, processing the job... [2025-03-03 02:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:14:02] Production.INFO: ==3907== Releasing lock... [2025-03-03 02:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:14:03] Production.INFO: ==3915== Lock acquired, processing the job... [2025-03-02 21:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:14:03] Production.INFO: ==3920== Lock acquired, processing the job... [2025-03-02 21:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:14:03] Production.INFO: ==3910== Lock acquired, processing the job... [2025-03-02 21:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:14:03] Production.INFO: ==3912== Lock acquired, processing the job... [2025-03-02 21:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:14:03] Production.INFO: ==3918== Lock acquired, processing the job... [2025-03-02 21:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:14:03] Production.INFO: Account Balance Start. [2025-03-02 21:14:03] Production.INFO: CreateAllLog Start [2025-03-02 21:14:03] Production.INFO: ==3922== Lock acquired, processing the job... [2025-03-02 21:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:14:03] Production.INFO: 117 [2025-03-02 21:14:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:14:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:03] Production.ERROR: done [2025-03-02 21:14:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:14:04] Production.INFO: count ==13 [2025-03-02 21:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:14:04] Production.INFO: count ==21 [2025-03-02 21:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593801') start [2025-03-02 21:14:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.ERROR: done [2025-03-02 21:14:04] Production.INFO: ==3912== Releasing lock... [2025-03-02 21:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:14:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593801') end [2025-03-02 21:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:14:04] Production.INFO: 1 [2025-03-02 21:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:14:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:14:04] Production.INFO: ==3922== Releasing lock... [2025-03-02 21:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:14:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:14:04] Production.INFO: Total Charge 0 [2025-03-02 21:14:04] Production.INFO: CreateAllLog End [2025-03-02 21:14:05] Production.INFO: Account Balance End. [2025-03-02 21:14:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:14:05] Production.INFO: ==3918== Releasing lock... [2025-03-02 21:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:14:12] Production.ERROR: CronJobId end10 [2025-03-02 21:14:12] Production.INFO: ==3915== Releasing lock... [2025-03-02 21:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:14:15] Production.INFO: call_cost start [2025-03-02 21:14:15] Production.INFO: call_cost end [2025-03-02 21:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:14:15] Production.INFO: ==3910== Releasing lock... [2025-03-02 21:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:14:16] Production.INFO: count ==1334 [2025-03-02 21:14:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593802', 'tblTempUsageDetail_20' ) start [2025-03-02 21:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593802', 'tblTempUsageDetail_20' ) end [2025-03-02 21:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593802', 'tblTempVendorCDR_20' ) start [2025-03-02 21:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593802', 'tblTempVendorCDR_20' ) end [2025-03-02 21:14:16] Production.INFO: ProcessCDR(1,14593802,1,1,2) [2025-03-02 21:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593802', 'tblTempUsageDetail_20' ) start [2025-03-02 21:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593802', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:14:24] Production.INFO: ==3920== Releasing lock... [2025-03-02 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:14:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:15:02] Production.INFO: ==4039== Lock acquired, processing the job... [2025-03-03 02:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:15:02] Production.INFO: neon service started [2025-03-03 02:15:02] Production.INFO: neon service started [2025-03-03 02:15:02] Production.INFO: ==4039== Releasing lock... [2025-03-03 02:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:15:02] Production.INFO: ==4041== Lock acquired, processing the job... [2025-03-02 21:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:15:02] Production.INFO: ==4041== Releasing lock... [2025-03-02 21:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:15:03] Production.INFO: ==4043== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:15:03] Production.INFO: ==4043== Releasing lock... [2025-03-03 02:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:15:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:15:03] Production.INFO: ==4045== Lock acquired, processing the job... [2025-03-02 21:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:15:03] Production.INFO: ==4047== Lock acquired, processing the job... [2025-03-02 21:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:15:03] Production.INFO: ==4054== Lock acquired, processing the job... [2025-03-02 21:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:15:03] Production.INFO: ==4051== Lock acquired, processing the job... [2025-03-02 21:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:15:03] Production.INFO: ==4049== Lock acquired, processing the job... [2025-03-02 21:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:15:04] Production.INFO: ==4056== Lock acquired, processing the job... [2025-03-02 21:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:15:04] Production.INFO: ==4047== Releasing lock... [2025-03-02 21:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:15:04] Production.INFO: Account Balance Start. [2025-03-02 21:15:04] Production.INFO: CreateAllLog Start [2025-03-02 21:15:04] Production.INFO: 117 [2025-03-02 21:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:15:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:15:04] Production.ERROR: done [2025-03-02 21:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:15:04] Production.INFO: count ==13 [2025-03-02 21:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:15:04] Production.INFO: count ==21 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593806') start [2025-03-02 21:15:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593806') end [2025-03-02 21:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:15:04] Production.INFO: 1 [2025-03-02 21:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:15:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: ==4056== Releasing lock... [2025-03-02 21:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:15:04] Production.ERROR: done [2025-03-02 21:15:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:15:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:15:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:15:05] Production.INFO: Total Charge 0 [2025-03-02 21:15:05] Production.INFO: CreateAllLog End [2025-03-02 21:15:05] Production.INFO: Account Balance End. [2025-03-02 21:15:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:15:05] Production.INFO: ==4051== Releasing lock... [2025-03-02 21:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:15:13] Production.ERROR: CronJobId end10 [2025-03-02 21:15:13] Production.INFO: ==4049== Releasing lock... [2025-03-02 21:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:15:16] Production.INFO: call_cost start [2025-03-02 21:15:16] Production.INFO: call_cost end [2025-03-02 21:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:15:16] Production.INFO: ==4045== Releasing lock... [2025-03-02 21:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:15:16] Production.INFO: count ==1335 [2025-03-02 21:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593807', 'tblTempUsageDetail_20' ) start [2025-03-02 21:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593807', 'tblTempUsageDetail_20' ) end [2025-03-02 21:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593807', 'tblTempVendorCDR_20' ) start [2025-03-02 21:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593807', 'tblTempVendorCDR_20' ) end [2025-03-02 21:15:16] Production.INFO: ProcessCDR(1,14593807,1,1,2) [2025-03-02 21:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593807', 'tblTempUsageDetail_20' ) start [2025-03-02 21:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593807', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:15:24] Production.INFO: ==4054== Releasing lock... [2025-03-02 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:15:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:16:01] Production.INFO: ==4138== Lock acquired, processing the job... [2025-03-03 02:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:16:01] Production.INFO: neon service started [2025-03-03 02:16:01] Production.INFO: neon service started [2025-03-03 02:16:01] Production.INFO: ==4138== Releasing lock... [2025-03-03 02:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:16:01] Production.INFO: ==4140== Lock acquired, processing the job... [2025-03-02 21:16:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:16:02] Production.INFO: ==4140== Releasing lock... [2025-03-02 21:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:16:02] Production.INFO: ==4142== Lock acquired, processing the job... [2025-03-03 02:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:16:02] Production.INFO: ==4142== Releasing lock... [2025-03-03 02:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:16:03] Production.INFO: ==4147== Lock acquired, processing the job... [2025-03-02 21:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:16:03] Production.INFO: ==4153== Lock acquired, processing the job... [2025-03-02 21:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:16:03] Production.INFO: ==4157== Lock acquired, processing the job... [2025-03-02 21:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:16:03] Production.INFO: ==4149== Lock acquired, processing the job... [2025-03-02 21:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:16:03] Production.INFO: Account Balance Start. [2025-03-02 21:16:03] Production.INFO: CreateAllLog Start [2025-03-02 21:16:03] Production.INFO: 117 [2025-03-02 21:16:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:16:03] Production.INFO: ==4151== Lock acquired, processing the job... [2025-03-02 21:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:16:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.INFO: count ==13 [2025-03-02 21:16:03] Production.INFO: ==4155== Lock acquired, processing the job... [2025-03-02 21:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:16:03] Production.INFO: count ==21 [2025-03-02 21:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:16:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593810') start [2025-03-02 21:16:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:16:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593810') end [2025-03-02 21:16:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:16:03] Production.INFO: 1 [2025-03-02 21:16:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:16:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:16:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:16:04] Production.INFO: ==4157== Releasing lock... [2025-03-02 21:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:16:04] Production.INFO: ==4149== Releasing lock... [2025-03-02 21:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.ERROR: done [2025-03-02 21:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:16:04] Production.INFO: Total Charge 0 [2025-03-02 21:16:04] Production.INFO: CreateAllLog End [2025-03-02 21:16:04] Production.ERROR: done [2025-03-02 21:16:04] Production.INFO: Account Balance End. [2025-03-02 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:16:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:16:04] Production.INFO: ==4153== Releasing lock... [2025-03-02 21:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:16:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:16:11] Production.ERROR: CronJobId end10 [2025-03-02 21:16:11] Production.INFO: ==4151== Releasing lock... [2025-03-02 21:16:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:16:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:16:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:16:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:16:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:16:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:16:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:16:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:16:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:16:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:16:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:16:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:16:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:16:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:16:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:16:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:16:14] Production.INFO: call_cost start [2025-03-02 21:16:14] Production.INFO: call_cost end [2025-03-02 21:16:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:16:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:16:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:16:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:16:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:16:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:16:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:16:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:16:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:16:14] Production.INFO: ==4147== Releasing lock... [2025-03-02 21:16:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:16:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:16:16] Production.INFO: count ==1335 [2025-03-02 21:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593812', 'tblTempUsageDetail_20' ) start [2025-03-02 21:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593812', 'tblTempUsageDetail_20' ) end [2025-03-02 21:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593812', 'tblTempVendorCDR_20' ) start [2025-03-02 21:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593812', 'tblTempVendorCDR_20' ) end [2025-03-02 21:16:16] Production.INFO: ProcessCDR(1,14593812,1,1,2) [2025-03-02 21:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593812', 'tblTempUsageDetail_20' ) start [2025-03-02 21:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593812', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:16:24] Production.INFO: ==4155== Releasing lock... [2025-03-02 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:17:02] Production.INFO: ==4238== Lock acquired, processing the job... [2025-03-03 02:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:17:02] Production.INFO: neon service started [2025-03-03 02:17:02] Production.INFO: neon service started [2025-03-03 02:17:02] Production.INFO: ==4238== Releasing lock... [2025-03-03 02:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:17:02] Production.INFO: ==4240== Lock acquired, processing the job... [2025-03-02 21:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:17:02] Production.INFO: ==4242== Lock acquired, processing the job... [2025-03-03 02:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:17:02] Production.INFO: ==4242== Releasing lock... [2025-03-03 02:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:17:02] Production.INFO: ==4240== Releasing lock... [2025-03-02 21:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:17:03] Production.INFO: ==4245== Lock acquired, processing the job... [2025-03-02 21:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:17:03] Production.INFO: ==4253== Lock acquired, processing the job... [2025-03-02 21:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:17:04] Production.INFO: ==4247== Lock acquired, processing the job... [2025-03-02 21:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:17:04] Production.INFO: ==4249== Lock acquired, processing the job... [2025-03-02 21:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:17:04] Production.INFO: ==4251== Lock acquired, processing the job... [2025-03-02 21:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:17:04] Production.INFO: ==4255== Lock acquired, processing the job... [2025-03-02 21:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:17:04] Production.ERROR: done [2025-03-02 21:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:17:04] Production.INFO: Account Balance Start. [2025-03-02 21:17:04] Production.INFO: CreateAllLog Start [2025-03-02 21:17:04] Production.INFO: 117 [2025-03-02 21:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:17:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: count ==13 [2025-03-02 21:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:17:04] Production.INFO: count ==21 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593816') start [2025-03-02 21:17:04] Production.INFO: ==4247== Releasing lock... [2025-03-02 21:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.ERROR: done [2025-03-02 21:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593816') end [2025-03-02 21:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:17:04] Production.INFO: 1 [2025-03-02 21:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:17:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: ==4255== Releasing lock... [2025-03-02 21:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:17:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:17:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:17:05] Production.INFO: Total Charge 0 [2025-03-02 21:17:05] Production.INFO: CreateAllLog End [2025-03-02 21:17:05] Production.INFO: Account Balance End. [2025-03-02 21:17:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:17:05] Production.INFO: ==4251== Releasing lock... [2025-03-02 21:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:17:11] Production.ERROR: CronJobId end10 [2025-03-02 21:17:11] Production.INFO: ==4249== Releasing lock... [2025-03-02 21:17:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:17:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:17:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:17:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:17:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:17:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:17:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:17:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:17:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:17:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:17:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:17:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:17:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:17:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:17:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:17:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:17:14] Production.INFO: call_cost start [2025-03-02 21:17:14] Production.INFO: call_cost end [2025-03-02 21:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:17:14] Production.INFO: ==4245== Releasing lock... [2025-03-02 21:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:17:16] Production.INFO: count ==1335 [2025-03-02 21:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593817', 'tblTempUsageDetail_20' ) start [2025-03-02 21:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593817', 'tblTempUsageDetail_20' ) end [2025-03-02 21:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593817', 'tblTempVendorCDR_20' ) start [2025-03-02 21:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593817', 'tblTempVendorCDR_20' ) end [2025-03-02 21:17:16] Production.INFO: ProcessCDR(1,14593817,1,1,2) [2025-03-02 21:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593817', 'tblTempUsageDetail_20' ) start [2025-03-02 21:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593817', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:17:24] Production.INFO: ==4253== Releasing lock... [2025-03-02 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:17:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:18:01] Production.INFO: ==4318== Lock acquired, processing the job... [2025-03-03 02:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:18:01] Production.INFO: neon service started [2025-03-03 02:18:01] Production.INFO: neon service started [2025-03-03 02:18:01] Production.INFO: ==4318== Releasing lock... [2025-03-03 02:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:18:01] Production.INFO: ==4320== Lock acquired, processing the job... [2025-03-02 21:18:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:18:02] Production.INFO: ==4320== Releasing lock... [2025-03-02 21:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:18:02] Production.INFO: ==4322== Lock acquired, processing the job... [2025-03-03 02:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:18:02] Production.INFO: ==4322== Releasing lock... [2025-03-03 02:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:18:03] Production.INFO: ==4327== Lock acquired, processing the job... [2025-03-02 21:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:18:03] Production.INFO: ==4325== Lock acquired, processing the job... [2025-03-02 21:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:18:03] Production.INFO: ==4335== Lock acquired, processing the job... [2025-03-02 21:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:18:03] Production.INFO: count ==13 [2025-03-02 21:18:03] Production.INFO: ==4329== Lock acquired, processing the job... [2025-03-02 21:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:18:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:18:03] Production.INFO: count ==21 [2025-03-02 21:18:03] Production.INFO: ==4331== Lock acquired, processing the job... [2025-03-02 21:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:18:03] Production.INFO: ==4327== Releasing lock... [2025-03-02 21:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593819') start [2025-03-02 21:18:03] Production.INFO: ==4333== Lock acquired, processing the job... [2025-03-02 21:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:18:03] Production.INFO: Account Balance Start. [2025-03-02 21:18:03] Production.INFO: CreateAllLog Start [2025-03-02 21:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:18:03] Production.INFO: 117 [2025-03-02 21:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593819') end [2025-03-02 21:18:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:18:03] Production.INFO: 1 [2025-03-02 21:18:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:18:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:03] Production.INFO: ==4335== Releasing lock... [2025-03-02 21:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:18:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:18:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:18:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.ERROR: done [2025-03-02 21:18:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.ERROR: done [2025-03-02 21:18:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:18:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:18:04] Production.INFO: Total Charge 0 [2025-03-02 21:18:04] Production.INFO: CreateAllLog End [2025-03-02 21:18:04] Production.INFO: Account Balance End. [2025-03-02 21:18:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:18:04] Production.INFO: ==4331== Releasing lock... [2025-03-02 21:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:18:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:18:12] Production.ERROR: CronJobId end10 [2025-03-02 21:18:12] Production.INFO: ==4329== Releasing lock... [2025-03-02 21:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:18:14] Production.INFO: call_cost start [2025-03-02 21:18:14] Production.INFO: call_cost end [2025-03-02 21:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:18:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:18:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:18:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:18:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:18:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:18:14] Production.INFO: ==4325== Releasing lock... [2025-03-02 21:18:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:18:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:18:16] Production.INFO: count ==1335 [2025-03-02 21:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593822', 'tblTempUsageDetail_20' ) start [2025-03-02 21:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593822', 'tblTempUsageDetail_20' ) end [2025-03-02 21:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593822', 'tblTempVendorCDR_20' ) start [2025-03-02 21:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593822', 'tblTempVendorCDR_20' ) end [2025-03-02 21:18:16] Production.INFO: ProcessCDR(1,14593822,1,1,2) [2025-03-02 21:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593822', 'tblTempUsageDetail_20' ) start [2025-03-02 21:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593822', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:18:24] Production.INFO: ==4333== Releasing lock... [2025-03-02 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:18:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:19:01] Production.INFO: ==4413== Lock acquired, processing the job... [2025-03-03 02:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:19:01] Production.INFO: neon service started [2025-03-03 02:19:01] Production.INFO: neon service started [2025-03-03 02:19:01] Production.INFO: ==4413== Releasing lock... [2025-03-03 02:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:19:02] Production.INFO: ==4415== Lock acquired, processing the job... [2025-03-02 21:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:19:02] Production.INFO: ==4415== Releasing lock... [2025-03-02 21:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:19:02] Production.INFO: ==4417== Lock acquired, processing the job... [2025-03-03 02:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:19:02] Production.INFO: ==4417== Releasing lock... [2025-03-03 02:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:19:03] Production.INFO: ==4419== Lock acquired, processing the job... [2025-03-02 21:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:19:03] Production.INFO: ==4421== Lock acquired, processing the job... [2025-03-02 21:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:19:03] Production.INFO: ==4425== Lock acquired, processing the job... [2025-03-02 21:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:19:03] Production.INFO: Account Balance Start. [2025-03-02 21:19:03] Production.INFO: CreateAllLog Start [2025-03-02 21:19:03] Production.INFO: 117 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: ==4423== Lock acquired, processing the job... [2025-03-02 21:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:19:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: ==4427== Lock acquired, processing the job... [2025-03-02 21:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:19:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: ==4421== Releasing lock... [2025-03-02 21:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:19:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:03] Production.INFO: ==4429== Lock acquired, processing the job... [2025-03-02 21:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:19:03] Production.INFO: Date 2025-02-20 [2025-03-02 21:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:19:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: count ==13 [2025-03-02 21:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:19:04] Production.INFO: count ==21 [2025-03-02 21:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593826') start [2025-03-02 21:19:04] Production.ERROR: done [2025-03-02 21:19:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593826') end [2025-03-02 21:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:19:04] Production.INFO: 1 [2025-03-02 21:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:19:04] Production.INFO: ==4429== Releasing lock... [2025-03-02 21:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:19:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.ERROR: done [2025-03-02 21:19:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:19:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:19:04] Production.INFO: Total Charge 0 [2025-03-02 21:19:04] Production.INFO: CreateAllLog End [2025-03-02 21:19:04] Production.INFO: Account Balance End. [2025-03-02 21:19:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:19:04] Production.INFO: ==4425== Releasing lock... [2025-03-02 21:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:19:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:19:12] Production.ERROR: CronJobId end10 [2025-03-02 21:19:12] Production.INFO: ==4423== Releasing lock... [2025-03-02 21:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:19:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:19:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:19:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:19:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:19:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:19:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:19:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:19:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:19:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:19:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:19:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:19:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:19:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:19:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:19:14] Production.INFO: call_cost start [2025-03-02 21:19:14] Production.INFO: call_cost end [2025-03-02 21:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:19:14] Production.INFO: ==4419== Releasing lock... [2025-03-02 21:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:19:16] Production.INFO: count ==1335 [2025-03-02 21:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593827', 'tblTempUsageDetail_20' ) start [2025-03-02 21:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593827', 'tblTempUsageDetail_20' ) end [2025-03-02 21:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593827', 'tblTempVendorCDR_20' ) start [2025-03-02 21:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593827', 'tblTempVendorCDR_20' ) end [2025-03-02 21:19:16] Production.INFO: ProcessCDR(1,14593827,1,1,2) [2025-03-02 21:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593827', 'tblTempUsageDetail_20' ) start [2025-03-02 21:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593827', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:19:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:19:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:19:23] Production.INFO: ==4427== Releasing lock... [2025-03-02 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:19:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:20:01] Production.INFO: ==4506== Lock acquired, processing the job... [2025-03-03 02:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:20:01] Production.INFO: neon service started [2025-03-03 02:20:01] Production.INFO: neon service started [2025-03-03 02:20:01] Production.INFO: ==4506== Releasing lock... [2025-03-03 02:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:20:02] Production.INFO: ==4508== Lock acquired, processing the job... [2025-03-02 21:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:20:02] Production.INFO: ==4510== Lock acquired, processing the job... [2025-03-03 02:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:20:02] Production.INFO: ==4510== Releasing lock... [2025-03-03 02:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:20:02] Production.INFO: ==4508== Releasing lock... [2025-03-02 21:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:20:03] Production.INFO: ==4515== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 21:20:03] Production.INFO: ==4517== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 21:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 21:20:03] Production.INFO: ==4515== Releasing lock... [2025-03-02 21:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 21:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 21:20:03] Production.INFO: ==4519== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:20:03] Production.INFO: ==4521== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:20:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:20:03] Production.INFO: ==4523== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:20:03] Production.INFO: ==4525== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:20:03] Production.INFO: Account Balance Start. [2025-03-02 21:20:03] Production.INFO: CreateAllLog Start [2025-03-02 21:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:20:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:20:03] Production.INFO: 117 [2025-03-02 21:20:03] Production.INFO: ==4527== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 21:20:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:20:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:20:03] Production.INFO: ==4529== Lock acquired, processing the job... [2025-03-02 21:20:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:20:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:20:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:20:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:20:04] Production.INFO: count ==13 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:20:04] Production.INFO: ==4519== Releasing lock... [2025-03-02 21:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:20:04] Production.INFO: count ==21 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593831') start [2025-03-02 21:20:04] Production.ERROR: done [2025-03-02 21:20:04] Production.ERROR: done [2025-03-02 21:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 21:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593832', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 21:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593831') end [2025-03-02 21:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:20:04] Production.INFO: 1 [2025-03-02 21:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:20:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: ==4529== Releasing lock... [2025-03-02 21:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:20:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.ERROR: done [2025-03-02 21:20:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:20:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:20:05] Production.INFO: Total Charge 0 [2025-03-02 21:20:05] Production.INFO: CreateAllLog End [2025-03-02 21:20:05] Production.INFO: Account Balance End. [2025-03-02 21:20:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:20:05] Production.INFO: ==4523== Releasing lock... [2025-03-02 21:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593832', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 21:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 21:20:09] Production.INFO: ProcessCDR(1,14593832,1,1,2) [2025-03-02 21:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593832,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593832,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 21:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 21:20:09] Production.INFO: ==4527== Releasing lock... [2025-03-02 21:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 21:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:20:13] Production.ERROR: CronJobId end10 [2025-03-02 21:20:13] Production.INFO: ==4521== Releasing lock... [2025-03-02 21:20:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:20:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:20:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:20:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:20:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:20:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:20:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:20:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:20:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:20:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:20:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:20:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:20:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:20:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:20:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:20:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:20:16] Production.INFO: call_cost start [2025-03-02 21:20:16] Production.INFO: call_cost end [2025-03-02 21:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:20:16] Production.INFO: ==4517== Releasing lock... [2025-03-02 21:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:20:16] Production.INFO: count ==1335 [2025-03-02 21:20:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:20:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593833', 'tblTempUsageDetail_20' ) start [2025-03-02 21:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593833', 'tblTempUsageDetail_20' ) end [2025-03-02 21:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593833', 'tblTempVendorCDR_20' ) start [2025-03-02 21:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593833', 'tblTempVendorCDR_20' ) end [2025-03-02 21:20:16] Production.INFO: ProcessCDR(1,14593833,1,1,2) [2025-03-02 21:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593833', 'tblTempUsageDetail_20' ) start [2025-03-02 21:20:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593833', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:20:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:20:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:20:24] Production.INFO: ==4525== Releasing lock... [2025-03-02 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:21:01] Production.INFO: ==4613== Lock acquired, processing the job... [2025-03-03 02:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:21:01] Production.INFO: neon service started [2025-03-03 02:21:01] Production.INFO: neon service started [2025-03-03 02:21:01] Production.INFO: ==4613== Releasing lock... [2025-03-03 02:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:21:02] Production.INFO: ==4616== Lock acquired, processing the job... [2025-03-02 21:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:21:02] Production.INFO: ==4616== Releasing lock... [2025-03-02 21:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:21:02] Production.INFO: ==4618== Lock acquired, processing the job... [2025-03-03 02:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:21:02] Production.INFO: ==4618== Releasing lock... [2025-03-03 02:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:21:03] Production.INFO: ==4624== Lock acquired, processing the job... [2025-03-02 21:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:21:03] Production.INFO: ==4630== Lock acquired, processing the job... [2025-03-02 21:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:21:03] Production.INFO: ==4620== Lock acquired, processing the job... [2025-03-02 21:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:21:03] Production.INFO: ==4622== Lock acquired, processing the job... [2025-03-02 21:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:21:03] Production.INFO: ==4626== Lock acquired, processing the job... [2025-03-02 21:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:21:03] Production.INFO: count ==13 [2025-03-02 21:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:21:03] Production.INFO: count ==21 [2025-03-02 21:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593834') start [2025-03-02 21:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:21:03] Production.INFO: ==4628== Lock acquired, processing the job... [2025-03-02 21:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:21:03] Production.INFO: Account Balance Start. [2025-03-02 21:21:03] Production.INFO: CreateAllLog Start [2025-03-02 21:21:03] Production.INFO: 117 [2025-03-02 21:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593834') end [2025-03-02 21:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:21:03] Production.INFO: 1 [2025-03-02 21:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:21:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:03] Production.INFO: ==4630== Releasing lock... [2025-03-02 21:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:21:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: ==4622== Releasing lock... [2025-03-02 21:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:21:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.ERROR: done [2025-03-02 21:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.ERROR: done [2025-03-02 21:21:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:21:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:21:04] Production.INFO: Total Charge 0 [2025-03-02 21:21:04] Production.INFO: CreateAllLog End [2025-03-02 21:21:04] Production.INFO: Account Balance End. [2025-03-02 21:21:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:21:04] Production.INFO: ==4626== Releasing lock... [2025-03-02 21:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:21:11] Production.ERROR: CronJobId end10 [2025-03-02 21:21:11] Production.INFO: ==4624== Releasing lock... [2025-03-02 21:21:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:21:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:21:14] Production.INFO: call_cost start [2025-03-02 21:21:14] Production.INFO: call_cost end [2025-03-02 21:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:21:14] Production.INFO: ==4620== Releasing lock... [2025-03-02 21:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:21:16] Production.INFO: count ==1335 [2025-03-02 21:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593838', 'tblTempUsageDetail_20' ) start [2025-03-02 21:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593838', 'tblTempUsageDetail_20' ) end [2025-03-02 21:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593838', 'tblTempVendorCDR_20' ) start [2025-03-02 21:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593838', 'tblTempVendorCDR_20' ) end [2025-03-02 21:21:16] Production.INFO: ProcessCDR(1,14593838,1,1,2) [2025-03-02 21:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593838', 'tblTempUsageDetail_20' ) start [2025-03-02 21:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593838', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:21:24] Production.INFO: ==4628== Releasing lock... [2025-03-02 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:21:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:22:02] Production.INFO: ==4712== Lock acquired, processing the job... [2025-03-03 02:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:22:02] Production.INFO: neon service started [2025-03-03 02:22:02] Production.INFO: neon service started [2025-03-03 02:22:02] Production.INFO: ==4712== Releasing lock... [2025-03-03 02:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:22:02] Production.INFO: ==4717== Lock acquired, processing the job... [2025-03-03 02:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:22:02] Production.INFO: ==4717== Releasing lock... [2025-03-03 02:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:22:02] Production.INFO: ==4715== Lock acquired, processing the job... [2025-03-02 21:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:22:03] Production.INFO: ==4715== Releasing lock... [2025-03-02 21:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:22:03] Production.INFO: ==4722== Lock acquired, processing the job... [2025-03-02 21:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:22:03] Production.INFO: ==4724== Lock acquired, processing the job... [2025-03-02 21:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:22:03] Production.INFO: ==4728== Lock acquired, processing the job... [2025-03-02 21:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:22:04] Production.INFO: ==4720== Lock acquired, processing the job... [2025-03-02 21:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:22:04] Production.INFO: ==4730== Lock acquired, processing the job... [2025-03-02 21:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:22:04] Production.INFO: ==4726== Lock acquired, processing the job... [2025-03-02 21:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:22:04] Production.INFO: ==4722== Releasing lock... [2025-03-02 21:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:22:04] Production.INFO: Account Balance Start. [2025-03-02 21:22:04] Production.INFO: CreateAllLog Start [2025-03-02 21:22:04] Production.INFO: 117 [2025-03-02 21:22:04] Production.INFO: count ==13 [2025-03-02 21:22:04] Production.ERROR: done [2025-03-02 21:22:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:22:04] Production.INFO: count ==21 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593840') start [2025-03-02 21:22:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.ERROR: done [2025-03-02 21:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593840') end [2025-03-02 21:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:22:04] Production.INFO: 1 [2025-03-02 21:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:22:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:22:04] Production.INFO: ==4730== Releasing lock... [2025-03-02 21:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:22:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:22:05] Production.INFO: Total Charge 0 [2025-03-02 21:22:05] Production.INFO: CreateAllLog End [2025-03-02 21:22:05] Production.INFO: Account Balance End. [2025-03-02 21:22:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:22:05] Production.INFO: ==4726== Releasing lock... [2025-03-02 21:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:22:12] Production.ERROR: CronJobId end10 [2025-03-02 21:22:12] Production.INFO: ==4724== Releasing lock... [2025-03-02 21:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:22:15] Production.INFO: call_cost start [2025-03-02 21:22:15] Production.INFO: call_cost end [2025-03-02 21:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:22:15] Production.INFO: ==4720== Releasing lock... [2025-03-02 21:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:22:16] Production.INFO: count ==1335 [2025-03-02 21:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593843', 'tblTempUsageDetail_20' ) start [2025-03-02 21:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593843', 'tblTempUsageDetail_20' ) end [2025-03-02 21:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593843', 'tblTempVendorCDR_20' ) start [2025-03-02 21:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593843', 'tblTempVendorCDR_20' ) end [2025-03-02 21:22:16] Production.INFO: ProcessCDR(1,14593843,1,1,2) [2025-03-02 21:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593843', 'tblTempUsageDetail_20' ) start [2025-03-02 21:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593843', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:22:24] Production.INFO: ==4728== Releasing lock... [2025-03-02 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:22:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:23:01] Production.INFO: ==4812== Lock acquired, processing the job... [2025-03-03 02:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:23:01] Production.INFO: neon service started [2025-03-03 02:23:01] Production.INFO: neon service started [2025-03-03 02:23:01] Production.INFO: ==4812== Releasing lock... [2025-03-03 02:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:23:02] Production.INFO: ==4814== Lock acquired, processing the job... [2025-03-02 21:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:23:02] Production.INFO: ==4814== Releasing lock... [2025-03-02 21:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:23:02] Production.INFO: ==4816== Lock acquired, processing the job... [2025-03-03 02:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:23:02] Production.INFO: ==4816== Releasing lock... [2025-03-03 02:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:23:03] Production.INFO: ==4818== Lock acquired, processing the job... [2025-03-02 21:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:23:03] Production.INFO: ==4825== Lock acquired, processing the job... [2025-03-02 21:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:23:03] Production.INFO: ==4829== Lock acquired, processing the job... [2025-03-02 21:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:23:03] Production.INFO: Account Balance Start. [2025-03-02 21:23:03] Production.INFO: CreateAllLog Start [2025-03-02 21:23:03] Production.INFO: 117 [2025-03-02 21:23:03] Production.INFO: ==4820== Lock acquired, processing the job... [2025-03-02 21:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:23:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.INFO: ==4822== Lock acquired, processing the job... [2025-03-02 21:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:23:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:23:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:23:03] Production.INFO: count ==13 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:23:03] Production.INFO: count ==21 [2025-03-02 21:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593846') start [2025-03-02 21:23:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:23:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:23:03] Production.INFO: ==4827== Lock acquired, processing the job... [2025-03-02 21:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593846') end [2025-03-02 21:23:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:23:03] Production.INFO: 1 [2025-03-02 21:23:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:23:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.INFO: ==4829== Releasing lock... [2025-03-02 21:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:23:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:23:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:03] Production.INFO: ==4820== Releasing lock... [2025-03-02 21:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:23:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:23:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.ERROR: done [2025-03-02 21:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.ERROR: done [2025-03-02 21:23:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:23:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:23:05] Production.INFO: Total Charge 0 [2025-03-02 21:23:05] Production.INFO: CreateAllLog End [2025-03-02 21:23:05] Production.INFO: Account Balance End. [2025-03-02 21:23:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:23:05] Production.INFO: ==4825== Releasing lock... [2025-03-02 21:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:23:11] Production.ERROR: CronJobId end10 [2025-03-02 21:23:11] Production.INFO: ==4822== Releasing lock... [2025-03-02 21:23:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:23:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:23:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:23:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:23:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:23:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:23:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:23:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:23:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:23:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:23:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:23:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:23:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:23:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:23:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:23:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:23:13] Production.INFO: call_cost start [2025-03-02 21:23:13] Production.INFO: call_cost end [2025-03-02 21:23:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:23:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:23:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:23:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:23:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:23:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:23:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:23:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:23:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:23:14] Production.INFO: ==4818== Releasing lock... [2025-03-02 21:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:23:16] Production.INFO: count ==1335 [2025-03-02 21:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593848', 'tblTempUsageDetail_20' ) start [2025-03-02 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593848', 'tblTempUsageDetail_20' ) end [2025-03-02 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593848', 'tblTempVendorCDR_20' ) start [2025-03-02 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593848', 'tblTempVendorCDR_20' ) end [2025-03-02 21:23:16] Production.INFO: ProcessCDR(1,14593848,1,1,2) [2025-03-02 21:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593848', 'tblTempUsageDetail_20' ) start [2025-03-02 21:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593848', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:23:24] Production.INFO: ==4827== Releasing lock... [2025-03-02 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:23:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:24:02] Production.INFO: ==4910== Lock acquired, processing the job... [2025-03-03 02:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:24:02] Production.INFO: neon service started [2025-03-03 02:24:02] Production.INFO: neon service started [2025-03-03 02:24:02] Production.INFO: ==4910== Releasing lock... [2025-03-03 02:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:24:02] Production.INFO: ==4914== Lock acquired, processing the job... [2025-03-03 02:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:24:02] Production.INFO: ==4914== Releasing lock... [2025-03-03 02:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:24:02] Production.INFO: ==4912== Lock acquired, processing the job... [2025-03-02 21:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:24:03] Production.INFO: ==4912== Releasing lock... [2025-03-02 21:24:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:24:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:24:03] Production.INFO: ==4919== Lock acquired, processing the job... [2025-03-02 21:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:24:04] Production.INFO: ==4923== Lock acquired, processing the job... [2025-03-02 21:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:24:04] Production.INFO: ==4917== Lock acquired, processing the job... [2025-03-02 21:24:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:24:04] Production.INFO: ==4921== Lock acquired, processing the job... [2025-03-02 21:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:24:04] Production.INFO: Account Balance Start. [2025-03-02 21:24:04] Production.INFO: CreateAllLog Start [2025-03-02 21:24:04] Production.INFO: 117 [2025-03-02 21:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:24:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:24:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.INFO: ==4925== Lock acquired, processing the job... [2025-03-02 21:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:24:04] Production.INFO: ==4927== Lock acquired, processing the job... [2025-03-02 21:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:24:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.INFO: ==4919== Releasing lock... [2025-03-02 21:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:24:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:24:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:24:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.INFO: count ==13 [2025-03-02 21:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:24:04] Production.INFO: count ==21 [2025-03-02 21:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593852') start [2025-03-02 21:24:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:24:04] Production.ERROR: done [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:24:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593852') end [2025-03-02 21:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:24:04] Production.INFO: 1 [2025-03-02 21:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:24:04] Production.ERROR: done [2025-03-02 21:24:04] Production.INFO: ==4927== Releasing lock... [2025-03-02 21:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:24:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:24:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:06] Production.INFO: Date 2025-03-01 [2025-03-02 21:24:06] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:06] Production.INFO: Date 2025-03-02 [2025-03-02 21:24:06] Production.INFO: Reseller ==> 0 [2025-03-02 21:24:06] Production.INFO: Total Charge 0 [2025-03-02 21:24:06] Production.INFO: CreateAllLog End [2025-03-02 21:24:06] Production.INFO: Account Balance End. [2025-03-02 21:24:06] Production.ERROR: CronJobId end 12 [2025-03-02 21:24:06] Production.INFO: ==4923== Releasing lock... [2025-03-02 21:24:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:24:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:24:12] Production.ERROR: CronJobId end10 [2025-03-02 21:24:12] Production.INFO: ==4921== Releasing lock... [2025-03-02 21:24:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:24:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:24:15] Production.INFO: call_cost start [2025-03-02 21:24:15] Production.INFO: call_cost end [2025-03-02 21:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:24:15] Production.INFO: ==4917== Releasing lock... [2025-03-02 21:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:24:17] Production.INFO: count ==1335 [2025-03-02 21:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593853', 'tblTempUsageDetail_20' ) start [2025-03-02 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593853', 'tblTempUsageDetail_20' ) end [2025-03-02 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593853', 'tblTempVendorCDR_20' ) start [2025-03-02 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593853', 'tblTempVendorCDR_20' ) end [2025-03-02 21:24:17] Production.INFO: ProcessCDR(1,14593853,1,1,2) [2025-03-02 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593853', 'tblTempUsageDetail_20' ) start [2025-03-02 21:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593853', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:24:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:24:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:24:25] Production.INFO: ==4925== Releasing lock... [2025-03-02 21:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:24:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:25:01] Production.INFO: ==4988== Lock acquired, processing the job... [2025-03-03 02:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:25:01] Production.INFO: neon service started [2025-03-03 02:25:01] Production.INFO: neon service started [2025-03-03 02:25:01] Production.INFO: ==4988== Releasing lock... [2025-03-03 02:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:25:01] Production.INFO: ==4990== Lock acquired, processing the job... [2025-03-02 21:25:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:25:02] Production.INFO: ==4990== Releasing lock... [2025-03-02 21:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:25:02] Production.INFO: ==4992== Lock acquired, processing the job... [2025-03-03 02:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:25:02] Production.INFO: ==4992== Releasing lock... [2025-03-03 02:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:25:03] Production.INFO: ==4995== Lock acquired, processing the job... [2025-03-02 21:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:25:03] Production.INFO: ==5003== Lock acquired, processing the job... [2025-03-02 21:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:25:03] Production.INFO: ==5005== Lock acquired, processing the job... [2025-03-02 21:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:25:03] Production.INFO: ==4997== Lock acquired, processing the job... [2025-03-02 21:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:25:03] Production.INFO: ==4999== Lock acquired, processing the job... [2025-03-02 21:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:25:03] Production.INFO: ==5001== Lock acquired, processing the job... [2025-03-02 21:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:25:03] Production.INFO: count ==13 [2025-03-02 21:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:25:03] Production.INFO: count ==21 [2025-03-02 21:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593855') start [2025-03-02 21:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:25:03] Production.INFO: Account Balance Start. [2025-03-02 21:25:03] Production.INFO: CreateAllLog Start [2025-03-02 21:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:25:03] Production.INFO: 117 [2025-03-02 21:25:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593855') end [2025-03-02 21:25:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:25:03] Production.INFO: 1 [2025-03-02 21:25:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:25:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: ==5005== Releasing lock... [2025-03-02 21:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:25:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:25:03] Production.ERROR: done [2025-03-02 21:25:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:25:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.INFO: ==4997== Releasing lock... [2025-03-02 21:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:25:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:03] Production.ERROR: done [2025-03-02 21:25:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:25:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:25:04] Production.INFO: Total Charge 0 [2025-03-02 21:25:04] Production.INFO: CreateAllLog End [2025-03-02 21:25:04] Production.INFO: Account Balance End. [2025-03-02 21:25:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:25:04] Production.INFO: ==5001== Releasing lock... [2025-03-02 21:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:25:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:25:12] Production.ERROR: CronJobId end10 [2025-03-02 21:25:12] Production.INFO: ==4999== Releasing lock... [2025-03-02 21:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:25:14] Production.INFO: call_cost start [2025-03-02 21:25:14] Production.INFO: call_cost end [2025-03-02 21:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:25:14] Production.INFO: ==4995== Releasing lock... [2025-03-02 21:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:25:16] Production.INFO: count ==1335 [2025-03-02 21:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593858', 'tblTempUsageDetail_20' ) start [2025-03-02 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593858', 'tblTempUsageDetail_20' ) end [2025-03-02 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593858', 'tblTempVendorCDR_20' ) start [2025-03-02 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593858', 'tblTempVendorCDR_20' ) end [2025-03-02 21:25:16] Production.INFO: ProcessCDR(1,14593858,1,1,2) [2025-03-02 21:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593858', 'tblTempUsageDetail_20' ) start [2025-03-02 21:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593858', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:25:24] Production.INFO: ==5003== Releasing lock... [2025-03-02 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:25:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:26:01] Production.INFO: ==5078== Lock acquired, processing the job... [2025-03-03 02:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:26:01] Production.INFO: neon service started [2025-03-03 02:26:01] Production.INFO: neon service started [2025-03-03 02:26:01] Production.INFO: ==5078== Releasing lock... [2025-03-03 02:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:26:02] Production.INFO: ==5080== Lock acquired, processing the job... [2025-03-02 21:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:26:02] Production.INFO: ==5080== Releasing lock... [2025-03-02 21:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:26:02] Production.INFO: ==5082== Lock acquired, processing the job... [2025-03-03 02:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:26:03] Production.INFO: ==5082== Releasing lock... [2025-03-03 02:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:26:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:26:03] Production.INFO: ==5087== Lock acquired, processing the job... [2025-03-02 21:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:26:03] Production.INFO: ==5097== Lock acquired, processing the job... [2025-03-02 21:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:26:03] Production.INFO: ==5089== Lock acquired, processing the job... [2025-03-02 21:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:26:03] Production.INFO: ==5091== Lock acquired, processing the job... [2025-03-02 21:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:26:03] Production.INFO: count ==13 [2025-03-02 21:26:03] Production.INFO: ==5095== Lock acquired, processing the job... [2025-03-02 21:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:26:03] Production.INFO: count ==21 [2025-03-02 21:26:03] Production.INFO: ==5093== Lock acquired, processing the job... [2025-03-02 21:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593860') start [2025-03-02 21:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593860') end [2025-03-02 21:26:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:26:03] Production.INFO: 1 [2025-03-02 21:26:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:26:03] Production.INFO: Account Balance Start. [2025-03-02 21:26:03] Production.INFO: CreateAllLog Start [2025-03-02 21:26:03] Production.INFO: ==5097== Releasing lock... [2025-03-02 21:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:26:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:26:04] Production.INFO: 117 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: ==5089== Releasing lock... [2025-03-02 21:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:26:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.ERROR: done [2025-03-02 21:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.ERROR: done [2025-03-02 21:26:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:26:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:26:04] Production.INFO: Total Charge 0 [2025-03-02 21:26:04] Production.INFO: CreateAllLog End [2025-03-02 21:26:05] Production.INFO: Account Balance End. [2025-03-02 21:26:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:26:05] Production.INFO: ==5093== Releasing lock... [2025-03-02 21:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:26:13] Production.ERROR: CronJobId end10 [2025-03-02 21:26:13] Production.INFO: ==5091== Releasing lock... [2025-03-02 21:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:26:15] Production.INFO: call_cost start [2025-03-02 21:26:15] Production.INFO: call_cost end [2025-03-02 21:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:26:15] Production.INFO: ==5087== Releasing lock... [2025-03-02 21:26:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:26:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:26:16] Production.INFO: count ==1335 [2025-03-02 21:26:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593863', 'tblTempUsageDetail_20' ) start [2025-03-02 21:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593863', 'tblTempUsageDetail_20' ) end [2025-03-02 21:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593863', 'tblTempVendorCDR_20' ) start [2025-03-02 21:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593863', 'tblTempVendorCDR_20' ) end [2025-03-02 21:26:16] Production.INFO: ProcessCDR(1,14593863,1,1,2) [2025-03-02 21:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593863', 'tblTempUsageDetail_20' ) start [2025-03-02 21:26:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593863', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:26:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:26:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:26:24] Production.INFO: ==5095== Releasing lock... [2025-03-02 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:26:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:27:01] Production.INFO: ==5166== Lock acquired, processing the job... [2025-03-03 02:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:27:01] Production.INFO: neon service started [2025-03-03 02:27:01] Production.INFO: neon service started [2025-03-03 02:27:01] Production.INFO: ==5166== Releasing lock... [2025-03-03 02:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:27:01] Production.INFO: ==5168== Lock acquired, processing the job... [2025-03-02 21:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:27:02] Production.INFO: ==5168== Releasing lock... [2025-03-02 21:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:27:02] Production.INFO: ==5170== Lock acquired, processing the job... [2025-03-03 02:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:27:02] Production.INFO: ==5170== Releasing lock... [2025-03-03 02:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:27:02] Production.INFO: ==5177== Lock acquired, processing the job... [2025-03-02 21:27:02] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:27:03] Production.INFO: ==5173== Lock acquired, processing the job... [2025-03-02 21:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:27:03] Production.INFO: ==5175== Lock acquired, processing the job... [2025-03-02 21:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:27:03] Production.INFO: ==5181== Lock acquired, processing the job... [2025-03-02 21:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:27:03] Production.INFO: ==5183== Lock acquired, processing the job... [2025-03-02 21:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:27:03] Production.INFO: ==5179== Lock acquired, processing the job... [2025-03-02 21:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:27:03] Production.INFO: ==5175== Releasing lock... [2025-03-02 21:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:27:03] Production.INFO: Account Balance Start. [2025-03-02 21:27:03] Production.INFO: CreateAllLog Start [2025-03-02 21:27:03] Production.INFO: 117 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: count ==13 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:27:03] Production.INFO: count ==21 [2025-03-02 21:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593866') start [2025-03-02 21:27:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:27:03] Production.ERROR: done [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593866') end [2025-03-02 21:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:27:03] Production.INFO: 1 [2025-03-02 21:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:27:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:03] Production.INFO: ==5183== Releasing lock... [2025-03-02 21:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:27:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.ERROR: done [2025-03-02 21:27:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:27:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:27:04] Production.INFO: Total Charge 0 [2025-03-02 21:27:04] Production.INFO: CreateAllLog End [2025-03-02 21:27:04] Production.INFO: Account Balance End. [2025-03-02 21:27:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:27:04] Production.INFO: ==5179== Releasing lock... [2025-03-02 21:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:27:12] Production.ERROR: CronJobId end10 [2025-03-02 21:27:12] Production.INFO: ==5177== Releasing lock... [2025-03-02 21:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:27:14] Production.INFO: call_cost start [2025-03-02 21:27:14] Production.INFO: call_cost end [2025-03-02 21:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:27:14] Production.INFO: ==5173== Releasing lock... [2025-03-02 21:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:27:16] Production.INFO: count ==1335 [2025-03-02 21:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593868', 'tblTempUsageDetail_20' ) start [2025-03-02 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593868', 'tblTempUsageDetail_20' ) end [2025-03-02 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593868', 'tblTempVendorCDR_20' ) start [2025-03-02 21:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593868', 'tblTempVendorCDR_20' ) end [2025-03-02 21:27:16] Production.INFO: ProcessCDR(1,14593868,1,1,2) [2025-03-02 21:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593868', 'tblTempUsageDetail_20' ) start [2025-03-02 21:27:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593868', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:27:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:27:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:27:23] Production.INFO: ==5181== Releasing lock... [2025-03-02 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:27:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:28:01] Production.INFO: ==5250== Lock acquired, processing the job... [2025-03-03 02:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:28:01] Production.INFO: neon service started [2025-03-03 02:28:01] Production.INFO: neon service started [2025-03-03 02:28:01] Production.INFO: ==5250== Releasing lock... [2025-03-03 02:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:28:02] Production.INFO: ==5252== Lock acquired, processing the job... [2025-03-02 21:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:28:02] Production.INFO: ==5252== Releasing lock... [2025-03-02 21:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:28:02] Production.INFO: ==5254== Lock acquired, processing the job... [2025-03-03 02:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:28:02] Production.INFO: ==5254== Releasing lock... [2025-03-03 02:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:28:03] Production.INFO: ==5258== Lock acquired, processing the job... [2025-03-02 21:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:28:03] Production.INFO: ==5256== Lock acquired, processing the job... [2025-03-02 21:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:28:03] Production.INFO: ==5260== Lock acquired, processing the job... [2025-03-02 21:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:28:03] Production.INFO: ==5258== Releasing lock... [2025-03-02 21:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:28:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:28:03] Production.INFO: ==5262== Lock acquired, processing the job... [2025-03-02 21:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:28:03] Production.INFO: ==5264== Lock acquired, processing the job... [2025-03-02 21:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:28:03] Production.INFO: ==5267== Lock acquired, processing the job... [2025-03-02 21:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:28:03] Production.INFO: Account Balance Start. [2025-03-02 21:28:03] Production.INFO: CreateAllLog Start [2025-03-02 21:28:03] Production.INFO: 117 [2025-03-02 21:28:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:28:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:28:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:28:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:28:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:28:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:28:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:03] Production.INFO: count ==13 [2025-03-02 21:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:28:04] Production.INFO: count ==21 [2025-03-02 21:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593872') start [2025-03-02 21:28:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593872') end [2025-03-02 21:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:28:04] Production.INFO: 1 [2025-03-02 21:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:28:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: ==5267== Releasing lock... [2025-03-02 21:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:28:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.ERROR: done [2025-03-02 21:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.ERROR: done [2025-03-02 21:28:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:28:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:28:04] Production.INFO: Total Charge 0 [2025-03-02 21:28:04] Production.INFO: CreateAllLog End [2025-03-02 21:28:05] Production.INFO: Account Balance End. [2025-03-02 21:28:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:28:05] Production.INFO: ==5262== Releasing lock... [2025-03-02 21:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:28:10] Production.ERROR: CronJobId end10 [2025-03-02 21:28:10] Production.INFO: ==5260== Releasing lock... [2025-03-02 21:28:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:28:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:28:13] Production.INFO: call_cost start [2025-03-02 21:28:13] Production.INFO: call_cost end [2025-03-02 21:28:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:28:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:28:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:28:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:28:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:28:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:28:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:28:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:28:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:28:13] Production.INFO: ==5256== Releasing lock... [2025-03-02 21:28:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:28:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:28:16] Production.INFO: count ==1335 [2025-03-02 21:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593873', 'tblTempUsageDetail_20' ) start [2025-03-02 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593873', 'tblTempUsageDetail_20' ) end [2025-03-02 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593873', 'tblTempVendorCDR_20' ) start [2025-03-02 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593873', 'tblTempVendorCDR_20' ) end [2025-03-02 21:28:17] Production.INFO: ProcessCDR(1,14593873,1,1,2) [2025-03-02 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593873', 'tblTempUsageDetail_20' ) start [2025-03-02 21:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593873', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:28:24] Production.INFO: ==5264== Releasing lock... [2025-03-02 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:28:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:29:02] Production.INFO: ==5329== Lock acquired, processing the job... [2025-03-03 02:29:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:29:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:29:02] Production.INFO: neon service started [2025-03-03 02:29:02] Production.INFO: neon service started [2025-03-03 02:29:02] Production.INFO: ==5329== Releasing lock... [2025-03-03 02:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:29:02] Production.INFO: ==5331== Lock acquired, processing the job... [2025-03-02 21:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:29:03] Production.INFO: ==5331== Releasing lock... [2025-03-02 21:29:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:29:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:29:03] Production.INFO: ==5333== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:29:03] Production.INFO: ==5333== Releasing lock... [2025-03-03 02:29:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:29:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:29:04] Production.INFO: ==5339== Lock acquired, processing the job... [2025-03-02 21:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:29:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:29:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:29:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:29:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:29:04] Production.INFO: ==5348== Lock acquired, processing the job... [2025-03-02 21:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:29:04] Production.INFO: ==5335== Lock acquired, processing the job... [2025-03-02 21:29:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:29:04] Production.INFO: ==5337== Lock acquired, processing the job... [2025-03-02 21:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:29:04] Production.INFO: count ==13 [2025-03-02 21:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:29:04] Production.INFO: count ==21 [2025-03-02 21:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593874') start [2025-03-02 21:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593874') end [2025-03-02 21:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:29:04] Production.INFO: 1 [2025-03-02 21:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:29:04] Production.INFO: ==5342== Lock acquired, processing the job... [2025-03-02 21:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:29:04] Production.INFO: ==5344== Lock acquired, processing the job... [2025-03-02 21:29:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:29:04] Production.INFO: ==5348== Releasing lock... [2025-03-02 21:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:29:04] Production.INFO: Account Balance Start. [2025-03-02 21:29:04] Production.INFO: CreateAllLog Start [2025-03-02 21:29:04] Production.INFO: 117 [2025-03-02 21:29:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:04] Production.INFO: ==5337== Releasing lock... [2025-03-02 21:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:29:05] Production.ERROR: done [2025-03-02 21:29:05] Production.INFO: Date 2025-02-13 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:29:05] Production.ERROR: done [2025-03-02 21:29:05] Production.INFO: Date 2025-02-14 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-15 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-16 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:29:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:29:05] Production.INFO: Total Charge 0 [2025-03-02 21:29:05] Production.INFO: CreateAllLog End [2025-03-02 21:29:05] Production.INFO: Account Balance End. [2025-03-02 21:29:06] Production.ERROR: CronJobId end 12 [2025-03-02 21:29:06] Production.INFO: ==5342== Releasing lock... [2025-03-02 21:29:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:29:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:29:12] Production.ERROR: CronJobId end10 [2025-03-02 21:29:12] Production.INFO: ==5339== Releasing lock... [2025-03-02 21:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:29:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:29:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:29:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:29:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:29:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:29:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:29:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:29:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:29:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:29:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:29:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:29:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:29:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:29:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:29:15] Production.INFO: call_cost start [2025-03-02 21:29:15] Production.INFO: call_cost end [2025-03-02 21:29:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:29:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:29:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:29:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:29:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:29:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:29:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:29:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:29:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:29:15] Production.INFO: ==5335== Releasing lock... [2025-03-02 21:29:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:29:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:29:17] Production.INFO: count ==1335 [2025-03-02 21:29:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593878', 'tblTempUsageDetail_20' ) start [2025-03-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593878', 'tblTempUsageDetail_20' ) end [2025-03-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593878', 'tblTempVendorCDR_20' ) start [2025-03-02 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593878', 'tblTempVendorCDR_20' ) end [2025-03-02 21:29:17] Production.INFO: ProcessCDR(1,14593878,1,1,2) [2025-03-02 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593878', 'tblTempUsageDetail_20' ) start [2025-03-02 21:29:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593878', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:29:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:29:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:29:25] Production.INFO: ==5344== Releasing lock... [2025-03-02 21:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:29:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:30:01] Production.INFO: ==5417== Lock acquired, processing the job... [2025-03-03 02:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:30:01] Production.INFO: neon service started [2025-03-03 02:30:01] Production.INFO: neon service started [2025-03-03 02:30:01] Production.INFO: ==5417== Releasing lock... [2025-03-03 02:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:30:02] Production.INFO: ==5419== Lock acquired, processing the job... [2025-03-02 21:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:30:02] Production.INFO: ==5421== Lock acquired, processing the job... [2025-03-03 02:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 21:30:02] Production.INFO: ==5419== Releasing lock... [2025-03-02 21:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:30:02] Production.INFO: ==5421== Releasing lock... [2025-03-03 02:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:30:03] Production.INFO: ==5430== Lock acquired, processing the job... [2025-03-02 21:30:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:30:04] Production.INFO: ==5424== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 21:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:30:04] Production.INFO: ==5436== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 21:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:30:04] Production.INFO: ==5426== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:30:04] Production.INFO: ==5428== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:30:04] Production.INFO: ==5438== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 21:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 21:30:04] Production.ERROR: CronJob PID - 5430 [2025-03-02 21:30:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-02 21:30:04] Production.ERROR: CronJob ID - 10 [2025-03-02 21:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 21:30:00 [2025-03-02 21:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 21:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 21:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 21:30:04] Production.ERROR: CronJob PID - 5436 [2025-03-02 21:30:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-02 21:30:04] Production.ERROR: CronJob ID - 17 [2025-03-02 21:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 21:30:00 [2025-03-02 21:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 21:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 21:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 21:30:04] Production.INFO: ==5424== Releasing lock... [2025-03-02 21:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 21:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 21:30:04] Production.INFO: ==5432== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:30:04] Production.INFO: count ==13 [2025-03-02 21:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:30:04] Production.INFO: count ==21 [2025-03-02 21:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593879') start [2025-03-02 21:30:04] Production.INFO: ==5434== Lock acquired, processing the job... [2025-03-02 21:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:30:04] Production.INFO: Account Balance Start. [2025-03-02 21:30:04] Production.INFO: CreateAllLog Start [2025-03-02 21:30:04] Production.INFO: 117 [2025-03-02 21:30:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593879') end [2025-03-02 21:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:30:04] Production.INFO: 1 [2025-03-02 21:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:30:04] Production.ERROR: done [2025-03-02 21:30:04] Production.INFO: ==5438== Releasing lock... [2025-03-02 21:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 21:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593883', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 21:30:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:30:04] Production.INFO: ==5428== Releasing lock... [2025-03-02 21:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.ERROR: done [2025-03-02 21:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-12 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-13 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-14 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-15 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-16 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.ERROR: done [2025-03-02 21:30:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:30:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:30:05] Production.INFO: Total Charge 0 [2025-03-02 21:30:05] Production.INFO: CreateAllLog End [2025-03-02 21:30:05] Production.INFO: Account Balance End. [2025-03-02 21:30:06] Production.ERROR: CronJobId end 12 [2025-03-02 21:30:06] Production.INFO: ==5432== Releasing lock... [2025-03-02 21:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:30:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593883', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 21:30:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 21:30:08] Production.INFO: ProcessCDR(1,14593883,1,1,2) [2025-03-02 21:30:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593883,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:30:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593883,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:30:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 21:30:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 21:30:09] Production.INFO: ==5436== Releasing lock... [2025-03-02 21:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 21:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:30:14] Production.ERROR: CronJobId end10 [2025-03-02 21:30:14] Production.INFO: ==5430== Releasing lock... [2025-03-02 21:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:30:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:30:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:30:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:30:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:30:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:30:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:30:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:30:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:30:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:30:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:30:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:30:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:30:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:30:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:30:17] Production.INFO: call_cost start [2025-03-02 21:30:17] Production.INFO: call_cost end [2025-03-02 21:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:30:17] Production.INFO: ==5426== Releasing lock... [2025-03-02 21:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:30:17] Production.INFO: count ==1335 [2025-03-02 21:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593884', 'tblTempUsageDetail_20' ) start [2025-03-02 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593884', 'tblTempUsageDetail_20' ) end [2025-03-02 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593884', 'tblTempVendorCDR_20' ) start [2025-03-02 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593884', 'tblTempVendorCDR_20' ) end [2025-03-02 21:30:17] Production.INFO: ProcessCDR(1,14593884,1,1,2) [2025-03-02 21:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593884', 'tblTempUsageDetail_20' ) start [2025-03-02 21:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593884', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:30:25] Production.INFO: ==5434== Releasing lock... [2025-03-02 21:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:30:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:31:02] Production.INFO: ==5538== Lock acquired, processing the job... [2025-03-03 02:31:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:31:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:31:02] Production.INFO: neon service started [2025-03-03 02:31:02] Production.INFO: neon service started [2025-03-03 02:31:02] Production.INFO: ==5538== Releasing lock... [2025-03-03 02:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:31:02] Production.INFO: ==5540== Lock acquired, processing the job... [2025-03-02 21:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:31:03] Production.INFO: ==5540== Releasing lock... [2025-03-02 21:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:31:03] Production.INFO: ==5542== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:31:03] Production.INFO: ==5542== Releasing lock... [2025-03-03 02:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:31:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:31:04] Production.INFO: ==5545== Lock acquired, processing the job... [2025-03-02 21:31:04] Production.INFO: ==5547== Lock acquired, processing the job... [2025-03-02 21:31:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:31:04] Production.INFO: ==5553== Lock acquired, processing the job... [2025-03-02 21:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:31:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:31:04] Production.INFO: ==5549== Lock acquired, processing the job... [2025-03-02 21:31:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:31:04] Production.INFO: ==5551== Lock acquired, processing the job... [2025-03-02 21:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:31:04] Production.INFO: ==5555== Lock acquired, processing the job... [2025-03-02 21:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:31:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:31:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:31:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:31:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:31:04] Production.INFO: ==5547== Releasing lock... [2025-03-02 21:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:31:04] Production.INFO: Account Balance Start. [2025-03-02 21:31:04] Production.INFO: CreateAllLog Start [2025-03-02 21:31:04] Production.INFO: 117 [2025-03-02 21:31:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:04] Production.INFO: count ==13 [2025-03-02 21:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:31:04] Production.INFO: count ==21 [2025-03-02 21:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593887') start [2025-03-02 21:31:04] Production.ERROR: done [2025-03-02 21:31:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:31:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593887') end [2025-03-02 21:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:31:04] Production.INFO: 1 [2025-03-02 21:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:31:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:04] Production.INFO: ==5555== Releasing lock... [2025-03-02 21:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:31:05] Production.INFO: Date 2025-02-14 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.ERROR: done [2025-03-02 21:31:05] Production.INFO: Date 2025-02-15 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-16 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:31:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:31:05] Production.INFO: Total Charge 0 [2025-03-02 21:31:05] Production.INFO: CreateAllLog End [2025-03-02 21:31:05] Production.INFO: Account Balance End. [2025-03-02 21:31:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:31:05] Production.INFO: ==5551== Releasing lock... [2025-03-02 21:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:31:12] Production.ERROR: CronJobId end10 [2025-03-02 21:31:12] Production.INFO: ==5549== Releasing lock... [2025-03-02 21:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:31:14] Production.INFO: call_cost start [2025-03-02 21:31:14] Production.INFO: call_cost end [2025-03-02 21:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:31:14] Production.INFO: ==5545== Releasing lock... [2025-03-02 21:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:31:17] Production.INFO: count ==1335 [2025-03-02 21:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593889', 'tblTempUsageDetail_20' ) start [2025-03-02 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593889', 'tblTempUsageDetail_20' ) end [2025-03-02 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593889', 'tblTempVendorCDR_20' ) start [2025-03-02 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593889', 'tblTempVendorCDR_20' ) end [2025-03-02 21:31:17] Production.INFO: ProcessCDR(1,14593889,1,1,2) [2025-03-02 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593889', 'tblTempUsageDetail_20' ) start [2025-03-02 21:31:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593889', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:31:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:31:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:31:25] Production.INFO: ==5553== Releasing lock... [2025-03-02 21:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:31:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:32:01] Production.INFO: ==5613== Lock acquired, processing the job... [2025-03-03 02:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:32:01] Production.INFO: neon service started [2025-03-03 02:32:01] Production.INFO: neon service started [2025-03-03 02:32:01] Production.INFO: ==5613== Releasing lock... [2025-03-03 02:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:32:02] Production.INFO: ==5615== Lock acquired, processing the job... [2025-03-02 21:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:32:02] Production.INFO: ==5615== Releasing lock... [2025-03-02 21:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:32:02] Production.INFO: ==5617== Lock acquired, processing the job... [2025-03-03 02:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:32:02] Production.INFO: ==5617== Releasing lock... [2025-03-03 02:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:32:03] Production.INFO: ==5621== Lock acquired, processing the job... [2025-03-02 21:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:32:03] Production.INFO: ==5627== Lock acquired, processing the job... [2025-03-02 21:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:32:03] Production.INFO: ==5619== Lock acquired, processing the job... [2025-03-02 21:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:32:03] Production.INFO: ==5621== Releasing lock... [2025-03-02 21:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:32:03] Production.INFO: ==5625== Lock acquired, processing the job... [2025-03-02 21:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:32:03] Production.INFO: ==5623== Lock acquired, processing the job... [2025-03-02 21:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:32:03] Production.INFO: ==5629== Lock acquired, processing the job... [2025-03-02 21:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:32:03] Production.INFO: Account Balance Start. [2025-03-02 21:32:03] Production.INFO: CreateAllLog Start [2025-03-02 21:32:03] Production.INFO: 117 [2025-03-02 21:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:32:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.ERROR: done [2025-03-02 21:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:32:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: count ==13 [2025-03-02 21:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:32:04] Production.INFO: count ==21 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593893') start [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.ERROR: done [2025-03-02 21:32:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:32:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593893') end [2025-03-02 21:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:32:04] Production.INFO: 1 [2025-03-02 21:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:32:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: ==5629== Releasing lock... [2025-03-02 21:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:32:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:32:04] Production.INFO: Total Charge 0 [2025-03-02 21:32:04] Production.INFO: CreateAllLog End [2025-03-02 21:32:04] Production.INFO: Account Balance End. [2025-03-02 21:32:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:32:04] Production.INFO: ==5625== Releasing lock... [2025-03-02 21:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:32:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:32:11] Production.ERROR: CronJobId end10 [2025-03-02 21:32:11] Production.INFO: ==5623== Releasing lock... [2025-03-02 21:32:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:32:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:32:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:32:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:32:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:32:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:32:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:32:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:32:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:32:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:32:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:32:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:32:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:32:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:32:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:32:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:32:13] Production.INFO: call_cost start [2025-03-02 21:32:13] Production.INFO: call_cost end [2025-03-02 21:32:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:32:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:32:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:32:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:32:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:32:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:32:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:32:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:32:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:32:13] Production.INFO: ==5619== Releasing lock... [2025-03-02 21:32:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:32:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:32:16] Production.INFO: count ==1335 [2025-03-02 21:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593894', 'tblTempUsageDetail_20' ) start [2025-03-02 21:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593894', 'tblTempUsageDetail_20' ) end [2025-03-02 21:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593894', 'tblTempVendorCDR_20' ) start [2025-03-02 21:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593894', 'tblTempVendorCDR_20' ) end [2025-03-02 21:32:16] Production.INFO: ProcessCDR(1,14593894,1,1,2) [2025-03-02 21:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593894', 'tblTempUsageDetail_20' ) start [2025-03-02 21:32:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593894', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:32:24] Production.INFO: ==5627== Releasing lock... [2025-03-02 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:32:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:33:02] Production.INFO: ==5683== Lock acquired, processing the job... [2025-03-03 02:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:33:02] Production.INFO: neon service started [2025-03-03 02:33:02] Production.INFO: neon service started [2025-03-03 02:33:02] Production.INFO: ==5683== Releasing lock... [2025-03-03 02:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:33:02] Production.INFO: ==5685== Lock acquired, processing the job... [2025-03-02 21:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:33:02] Production.INFO: ==5687== Lock acquired, processing the job... [2025-03-03 02:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:33:02] Production.INFO: ==5687== Releasing lock... [2025-03-03 02:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:33:02] Production.INFO: ==5685== Releasing lock... [2025-03-02 21:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:33:03] Production.INFO: ==5696== Lock acquired, processing the job... [2025-03-02 21:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:33:03] Production.INFO: ==5698== Lock acquired, processing the job... [2025-03-02 21:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:33:03] Production.INFO: Account Balance Start. [2025-03-02 21:33:03] Production.INFO: CreateAllLog Start [2025-03-02 21:33:03] Production.INFO: 117 [2025-03-02 21:33:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:33:03] Production.INFO: ==5700== Lock acquired, processing the job... [2025-03-02 21:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:33:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:03] Production.INFO: ==5690== Lock acquired, processing the job... [2025-03-02 21:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:33:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:33:04] Production.INFO: ==5692== Lock acquired, processing the job... [2025-03-02 21:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: ==5694== Lock acquired, processing the job... [2025-03-02 21:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:33:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:33:04] Production.INFO: count ==13 [2025-03-02 21:33:04] Production.ERROR: done [2025-03-02 21:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: count ==21 [2025-03-02 21:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593896') start [2025-03-02 21:33:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:33:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593896') end [2025-03-02 21:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:33:04] Production.INFO: 1 [2025-03-02 21:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:33:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.ERROR: done [2025-03-02 21:33:04] Production.INFO: ==5700== Releasing lock... [2025-03-02 21:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:33:04] Production.INFO: ==5692== Releasing lock... [2025-03-02 21:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:33:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:33:04] Production.INFO: Total Charge 0 [2025-03-02 21:33:04] Production.INFO: CreateAllLog End [2025-03-02 21:33:04] Production.INFO: Account Balance End. [2025-03-02 21:33:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:33:04] Production.INFO: ==5696== Releasing lock... [2025-03-02 21:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:33:12] Production.ERROR: CronJobId end10 [2025-03-02 21:33:12] Production.INFO: ==5694== Releasing lock... [2025-03-02 21:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:33:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:33:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:33:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:33:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:33:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:33:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:33:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:33:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:33:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:33:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:33:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:33:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:33:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:33:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:33:14] Production.INFO: call_cost start [2025-03-02 21:33:14] Production.INFO: call_cost end [2025-03-02 21:33:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:33:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:33:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:33:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:33:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:33:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:33:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:33:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:33:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:33:14] Production.INFO: ==5690== Releasing lock... [2025-03-02 21:33:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:33:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:33:16] Production.INFO: count ==1335 [2025-03-02 21:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593899', 'tblTempUsageDetail_20' ) start [2025-03-02 21:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593899', 'tblTempUsageDetail_20' ) end [2025-03-02 21:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593899', 'tblTempVendorCDR_20' ) start [2025-03-02 21:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593899', 'tblTempVendorCDR_20' ) end [2025-03-02 21:33:16] Production.INFO: ProcessCDR(1,14593899,1,1,2) [2025-03-02 21:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593899', 'tblTempUsageDetail_20' ) start [2025-03-02 21:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593899', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:33:24] Production.INFO: ==5698== Releasing lock... [2025-03-02 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:34:01] Production.INFO: ==5765== Lock acquired, processing the job... [2025-03-03 02:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:34:01] Production.INFO: neon service started [2025-03-03 02:34:01] Production.INFO: neon service started [2025-03-03 02:34:01] Production.INFO: ==5765== Releasing lock... [2025-03-03 02:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:34:02] Production.INFO: ==5767== Lock acquired, processing the job... [2025-03-02 21:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:34:02] Production.INFO: ==5769== Lock acquired, processing the job... [2025-03-03 02:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:34:02] Production.INFO: ==5769== Releasing lock... [2025-03-03 02:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:34:02] Production.INFO: ==5767== Releasing lock... [2025-03-02 21:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:34:03] Production.INFO: ==5771== Lock acquired, processing the job... [2025-03-02 21:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:34:03] Production.INFO: ==5773== Lock acquired, processing the job... [2025-03-02 21:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:34:03] Production.INFO: ==5776== Lock acquired, processing the job... [2025-03-02 21:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:34:03] Production.INFO: ==5778== Lock acquired, processing the job... [2025-03-02 21:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:34:03] Production.INFO: Account Balance Start. [2025-03-02 21:34:03] Production.INFO: CreateAllLog Start [2025-03-02 21:34:03] Production.INFO: 117 [2025-03-02 21:34:03] Production.INFO: ==5780== Lock acquired, processing the job... [2025-03-02 21:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:34:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: ==5782== Lock acquired, processing the job... [2025-03-02 21:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:34:03] Production.INFO: ==5773== Releasing lock... [2025-03-02 21:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:34:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:34:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:34:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:03] Production.INFO: count ==13 [2025-03-02 21:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:34:03] Production.INFO: count ==21 [2025-03-02 21:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593903') start [2025-03-02 21:34:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.ERROR: done [2025-03-02 21:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593903') end [2025-03-02 21:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:34:04] Production.INFO: 1 [2025-03-02 21:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:34:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: ==5782== Releasing lock... [2025-03-02 21:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:34:04] Production.ERROR: done [2025-03-02 21:34:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:34:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:34:04] Production.INFO: Total Charge 0 [2025-03-02 21:34:04] Production.INFO: CreateAllLog End [2025-03-02 21:34:04] Production.INFO: Account Balance End. [2025-03-02 21:34:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:34:04] Production.INFO: ==5778== Releasing lock... [2025-03-02 21:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:34:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:34:11] Production.ERROR: CronJobId end10 [2025-03-02 21:34:11] Production.INFO: ==5776== Releasing lock... [2025-03-02 21:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:34:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:34:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:34:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:34:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:34:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:34:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:34:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:34:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:34:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:34:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:34:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:34:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:34:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:34:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:34:13] Production.INFO: call_cost start [2025-03-02 21:34:13] Production.INFO: call_cost end [2025-03-02 21:34:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:34:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:34:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:34:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:34:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:34:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:34:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:34:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:34:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:34:13] Production.INFO: ==5771== Releasing lock... [2025-03-02 21:34:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:34:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:34:16] Production.INFO: count ==1335 [2025-03-02 21:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593904', 'tblTempUsageDetail_20' ) start [2025-03-02 21:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593904', 'tblTempUsageDetail_20' ) end [2025-03-02 21:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593904', 'tblTempVendorCDR_20' ) start [2025-03-02 21:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593904', 'tblTempVendorCDR_20' ) end [2025-03-02 21:34:16] Production.INFO: ProcessCDR(1,14593904,1,1,2) [2025-03-02 21:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593904', 'tblTempUsageDetail_20' ) start [2025-03-02 21:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593904', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:34:24] Production.INFO: ==5780== Releasing lock... [2025-03-02 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:34:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:35:02] Production.INFO: ==5846== Lock acquired, processing the job... [2025-03-03 02:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:35:02] Production.INFO: neon service started [2025-03-03 02:35:02] Production.INFO: neon service started [2025-03-03 02:35:02] Production.INFO: ==5846== Releasing lock... [2025-03-03 02:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:35:02] Production.INFO: ==5848== Lock acquired, processing the job... [2025-03-02 21:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:35:02] Production.INFO: ==5851== Lock acquired, processing the job... [2025-03-03 02:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:35:02] Production.INFO: ==5851== Releasing lock... [2025-03-03 02:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:35:02] Production.INFO: ==5848== Releasing lock... [2025-03-02 21:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:35:03] Production.INFO: ==5860== Lock acquired, processing the job... [2025-03-02 21:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:35:03] Production.INFO: ==5856== Lock acquired, processing the job... [2025-03-02 21:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:35:03] Production.INFO: ==5865== Lock acquired, processing the job... [2025-03-02 21:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:35:03] Production.INFO: Account Balance Start. [2025-03-02 21:35:03] Production.INFO: CreateAllLog Start [2025-03-02 21:35:03] Production.INFO: 117 [2025-03-02 21:35:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:35:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: count ==13 [2025-03-02 21:35:03] Production.INFO: ==5854== Lock acquired, processing the job... [2025-03-02 21:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:35:03] Production.INFO: count ==21 [2025-03-02 21:35:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: ==5858== Lock acquired, processing the job... [2025-03-02 21:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593907') start [2025-03-02 21:35:03] Production.INFO: ==5856== Releasing lock... [2025-03-02 21:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:35:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:35:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.INFO: ==5863== Lock acquired, processing the job... [2025-03-02 21:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:35:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593907') end [2025-03-02 21:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:35:03] Production.INFO: 1 [2025-03-02 21:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:35:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:35:04] Production.INFO: ==5865== Releasing lock... [2025-03-02 21:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:35:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:35:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:35:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.ERROR: done [2025-03-02 21:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.ERROR: done [2025-03-02 21:35:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:35:04] Production.INFO: Total Charge 0 [2025-03-02 21:35:04] Production.INFO: CreateAllLog End [2025-03-02 21:35:04] Production.INFO: Account Balance End. [2025-03-02 21:35:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:35:04] Production.INFO: ==5860== Releasing lock... [2025-03-02 21:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:35:12] Production.ERROR: CronJobId end10 [2025-03-02 21:35:12] Production.INFO: ==5858== Releasing lock... [2025-03-02 21:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:35:15] Production.INFO: call_cost start [2025-03-02 21:35:15] Production.INFO: call_cost end [2025-03-02 21:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:35:15] Production.INFO: ==5854== Releasing lock... [2025-03-02 21:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:35:16] Production.INFO: count ==1335 [2025-03-02 21:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593909', 'tblTempUsageDetail_20' ) start [2025-03-02 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593909', 'tblTempUsageDetail_20' ) end [2025-03-02 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593909', 'tblTempVendorCDR_20' ) start [2025-03-02 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593909', 'tblTempVendorCDR_20' ) end [2025-03-02 21:35:17] Production.INFO: ProcessCDR(1,14593909,1,1,2) [2025-03-02 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593909', 'tblTempUsageDetail_20' ) start [2025-03-02 21:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593909', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:35:24] Production.INFO: ==5863== Releasing lock... [2025-03-02 21:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:35:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:36:01] Production.INFO: ==5928== Lock acquired, processing the job... [2025-03-03 02:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:36:01] Production.INFO: neon service started [2025-03-03 02:36:01] Production.INFO: neon service started [2025-03-03 02:36:01] Production.INFO: ==5928== Releasing lock... [2025-03-03 02:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:36:01] Production.INFO: ==5930== Lock acquired, processing the job... [2025-03-02 21:36:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:36:02] Production.INFO: ==5930== Releasing lock... [2025-03-02 21:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:36:02] Production.INFO: ==5932== Lock acquired, processing the job... [2025-03-03 02:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:36:02] Production.INFO: ==5932== Releasing lock... [2025-03-03 02:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:36:03] Production.INFO: ==5937== Lock acquired, processing the job... [2025-03-02 21:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:36:03] Production.INFO: ==5939== Lock acquired, processing the job... [2025-03-02 21:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:36:03] Production.INFO: ==5943== Lock acquired, processing the job... [2025-03-02 21:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:36:03] Production.INFO: ==5945== Lock acquired, processing the job... [2025-03-02 21:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:36:03] Production.INFO: ==5941== Lock acquired, processing the job... [2025-03-02 21:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:36:03] Production.INFO: ==5947== Lock acquired, processing the job... [2025-03-02 21:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:36:03] Production.INFO: Account Balance Start. [2025-03-02 21:36:03] Production.INFO: CreateAllLog Start [2025-03-02 21:36:03] Production.INFO: 117 [2025-03-02 21:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:36:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:36:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:03] Production.INFO: count ==13 [2025-03-02 21:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:36:03] Production.INFO: count ==21 [2025-03-02 21:36:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593913') start [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: ==5939== Releasing lock... [2025-03-02 21:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:36:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593913') end [2025-03-02 21:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:36:04] Production.INFO: 1 [2025-03-02 21:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:36:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: ==5947== Releasing lock... [2025-03-02 21:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:36:04] Production.ERROR: done [2025-03-02 21:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.ERROR: done [2025-03-02 21:36:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:36:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:36:05] Production.INFO: Total Charge 0 [2025-03-02 21:36:05] Production.INFO: CreateAllLog End [2025-03-02 21:36:05] Production.INFO: Account Balance End. [2025-03-02 21:36:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:36:05] Production.INFO: ==5943== Releasing lock... [2025-03-02 21:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:36:12] Production.ERROR: CronJobId end10 [2025-03-02 21:36:12] Production.INFO: ==5941== Releasing lock... [2025-03-02 21:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:36:14] Production.INFO: call_cost start [2025-03-02 21:36:14] Production.INFO: call_cost end [2025-03-02 21:36:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:36:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:36:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:36:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:36:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:36:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:36:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:36:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:36:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:36:14] Production.INFO: ==5937== Releasing lock... [2025-03-02 21:36:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:36:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:36:16] Production.INFO: count ==1335 [2025-03-02 21:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593914', 'tblTempUsageDetail_20' ) start [2025-03-02 21:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593914', 'tblTempUsageDetail_20' ) end [2025-03-02 21:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593914', 'tblTempVendorCDR_20' ) start [2025-03-02 21:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593914', 'tblTempVendorCDR_20' ) end [2025-03-02 21:36:16] Production.INFO: ProcessCDR(1,14593914,1,1,2) [2025-03-02 21:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593914', 'tblTempUsageDetail_20' ) start [2025-03-02 21:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593914', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:36:24] Production.INFO: ==5945== Releasing lock... [2025-03-02 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:36:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:37:02] Production.INFO: ==6017== Lock acquired, processing the job... [2025-03-03 02:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:37:02] Production.INFO: neon service started [2025-03-03 02:37:02] Production.INFO: neon service started [2025-03-03 02:37:02] Production.INFO: ==6017== Releasing lock... [2025-03-03 02:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:37:02] Production.INFO: ==6020== Lock acquired, processing the job... [2025-03-02 21:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:37:02] Production.INFO: ==6022== Lock acquired, processing the job... [2025-03-03 02:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:37:02] Production.INFO: ==6022== Releasing lock... [2025-03-03 02:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:37:02] Production.INFO: ==6020== Releasing lock... [2025-03-02 21:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:37:03] Production.INFO: ==6026== Lock acquired, processing the job... [2025-03-02 21:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:37:03] Production.INFO: ==6034== Lock acquired, processing the job... [2025-03-02 21:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:37:03] Production.INFO: ==6024== Lock acquired, processing the job... [2025-03-02 21:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:37:03] Production.INFO: count ==13 [2025-03-02 21:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:37:04] Production.INFO: count ==21 [2025-03-02 21:37:04] Production.INFO: ==6030== Lock acquired, processing the job... [2025-03-02 21:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593916') start [2025-03-02 21:37:04] Production.INFO: ==6032== Lock acquired, processing the job... [2025-03-02 21:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:37:04] Production.INFO: ==6028== Lock acquired, processing the job... [2025-03-02 21:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:37:04] Production.INFO: Account Balance Start. [2025-03-02 21:37:04] Production.INFO: CreateAllLog Start [2025-03-02 21:37:04] Production.INFO: 117 [2025-03-02 21:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593916') end [2025-03-02 21:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:37:04] Production.INFO: 1 [2025-03-02 21:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:37:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: ==6034== Releasing lock... [2025-03-02 21:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:37:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: ==6026== Releasing lock... [2025-03-02 21:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:37:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.ERROR: done [2025-03-02 21:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.ERROR: done [2025-03-02 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:37:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:37:05] Production.INFO: Total Charge 0 [2025-03-02 21:37:05] Production.INFO: CreateAllLog End [2025-03-02 21:37:05] Production.INFO: Account Balance End. [2025-03-02 21:37:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:37:05] Production.INFO: ==6030== Releasing lock... [2025-03-02 21:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:37:12] Production.ERROR: CronJobId end10 [2025-03-02 21:37:12] Production.INFO: ==6028== Releasing lock... [2025-03-02 21:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:37:15] Production.INFO: call_cost start [2025-03-02 21:37:15] Production.INFO: call_cost end [2025-03-02 21:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:37:15] Production.INFO: ==6024== Releasing lock... [2025-03-02 21:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:37:16] Production.INFO: count ==1335 [2025-03-02 21:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593919', 'tblTempUsageDetail_20' ) start [2025-03-02 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593919', 'tblTempUsageDetail_20' ) end [2025-03-02 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593919', 'tblTempVendorCDR_20' ) start [2025-03-02 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593919', 'tblTempVendorCDR_20' ) end [2025-03-02 21:37:17] Production.INFO: ProcessCDR(1,14593919,1,1,2) [2025-03-02 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593919', 'tblTempUsageDetail_20' ) start [2025-03-02 21:37:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593919', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:37:24] Production.INFO: ==6032== Releasing lock... [2025-03-02 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:37:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:38:01] Production.INFO: ==6092== Lock acquired, processing the job... [2025-03-03 02:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:38:01] Production.INFO: neon service started [2025-03-03 02:38:01] Production.INFO: neon service started [2025-03-03 02:38:01] Production.INFO: ==6092== Releasing lock... [2025-03-03 02:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:38:01] Production.INFO: ==6094== Lock acquired, processing the job... [2025-03-02 21:38:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:38:02] Production.INFO: ==6094== Releasing lock... [2025-03-02 21:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:38:02] Production.INFO: ==6096== Lock acquired, processing the job... [2025-03-03 02:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:38:02] Production.INFO: ==6096== Releasing lock... [2025-03-03 02:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:38:02] Production.INFO: ==6099== Lock acquired, processing the job... [2025-03-02 21:38:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:38:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:38:02] Production.INFO: ==6103== Lock acquired, processing the job... [2025-03-02 21:38:02] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:38:03] Production.INFO: ==6105== Lock acquired, processing the job... [2025-03-02 21:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:38:03] Production.INFO: Account Balance Start. [2025-03-02 21:38:03] Production.INFO: CreateAllLog Start [2025-03-02 21:38:03] Production.INFO: 117 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: ==6101== Lock acquired, processing the job... [2025-03-02 21:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:38:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: ==6107== Lock acquired, processing the job... [2025-03-02 21:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:38:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:38:03] Production.INFO: ==6109== Lock acquired, processing the job... [2025-03-02 21:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:38:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: ==6101== Releasing lock... [2025-03-02 21:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:38:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:38:03] Production.INFO: Date 2025-02-20 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:38:03] Production.INFO: Date 2025-02-21 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-22 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: Date 2025-02-23 [2025-03-02 21:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:03] Production.INFO: count ==13 [2025-03-02 21:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:38:03] Production.INFO: count ==21 [2025-03-02 21:38:04] Production.ERROR: done [2025-03-02 21:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593923') start [2025-03-02 21:38:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593923') end [2025-03-02 21:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:38:04] Production.INFO: 1 [2025-03-02 21:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:38:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.ERROR: done [2025-03-02 21:38:04] Production.INFO: ==6109== Releasing lock... [2025-03-02 21:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:38:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:38:04] Production.INFO: Total Charge 0 [2025-03-02 21:38:04] Production.INFO: CreateAllLog End [2025-03-02 21:38:04] Production.INFO: Account Balance End. [2025-03-02 21:38:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:38:04] Production.INFO: ==6105== Releasing lock... [2025-03-02 21:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:38:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:38:12] Production.ERROR: CronJobId end10 [2025-03-02 21:38:12] Production.INFO: ==6103== Releasing lock... [2025-03-02 21:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:38:13] Production.INFO: call_cost start [2025-03-02 21:38:13] Production.INFO: call_cost end [2025-03-02 21:38:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:38:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:38:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:38:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:38:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:38:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:38:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:38:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:38:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:38:13] Production.INFO: ==6099== Releasing lock... [2025-03-02 21:38:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:38:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:38:16] Production.INFO: count ==1335 [2025-03-02 21:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593924', 'tblTempUsageDetail_20' ) start [2025-03-02 21:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593924', 'tblTempUsageDetail_20' ) end [2025-03-02 21:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593924', 'tblTempVendorCDR_20' ) start [2025-03-02 21:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593924', 'tblTempVendorCDR_20' ) end [2025-03-02 21:38:16] Production.INFO: ProcessCDR(1,14593924,1,1,2) [2025-03-02 21:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593924', 'tblTempUsageDetail_20' ) start [2025-03-02 21:38:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593924', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:38:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:38:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:38:23] Production.INFO: ==6107== Releasing lock... [2025-03-02 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:38:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:39:01] Production.INFO: ==6168== Lock acquired, processing the job... [2025-03-03 02:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:39:01] Production.INFO: neon service started [2025-03-03 02:39:01] Production.INFO: neon service started [2025-03-03 02:39:01] Production.INFO: ==6168== Releasing lock... [2025-03-03 02:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:39:02] Production.INFO: ==6170== Lock acquired, processing the job... [2025-03-02 21:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:39:02] Production.INFO: ==6170== Releasing lock... [2025-03-02 21:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:39:02] Production.INFO: ==6172== Lock acquired, processing the job... [2025-03-03 02:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:39:02] Production.INFO: ==6172== Releasing lock... [2025-03-03 02:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:39:03] Production.INFO: ==6175== Lock acquired, processing the job... [2025-03-02 21:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:39:03] Production.INFO: ==6177== Lock acquired, processing the job... [2025-03-02 21:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:39:03] Production.INFO: ==6181== Lock acquired, processing the job... [2025-03-02 21:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:39:03] Production.INFO: Account Balance Start. [2025-03-02 21:39:03] Production.INFO: CreateAllLog Start [2025-03-02 21:39:03] Production.INFO: 117 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: ==6177== Releasing lock... [2025-03-02 21:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:39:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:39:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:39:03] Production.INFO: ==6179== Lock acquired, processing the job... [2025-03-02 21:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:39:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: ==6185== Lock acquired, processing the job... [2025-03-02 21:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:39:03] Production.INFO: ==6183== Lock acquired, processing the job... [2025-03-02 21:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:39:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:39:03] Production.INFO: Date 2025-02-20 [2025-03-02 21:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:39:04] Production.INFO: count ==13 [2025-03-02 21:39:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:39:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: count ==21 [2025-03-02 21:39:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593928') start [2025-03-02 21:39:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.ERROR: done [2025-03-02 21:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593928') end [2025-03-02 21:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:39:04] Production.INFO: 1 [2025-03-02 21:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:39:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:39:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:39:04] Production.INFO: Total Charge 0 [2025-03-02 21:39:04] Production.INFO: CreateAllLog End [2025-03-02 21:39:04] Production.INFO: ==6185== Releasing lock... [2025-03-02 21:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:39:04] Production.ERROR: done [2025-03-02 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:39:04] Production.INFO: Account Balance End. [2025-03-02 21:39:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:39:04] Production.INFO: ==6181== Releasing lock... [2025-03-02 21:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:39:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:39:11] Production.ERROR: CronJobId end10 [2025-03-02 21:39:11] Production.INFO: ==6179== Releasing lock... [2025-03-02 21:39:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:39:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:39:13] Production.INFO: call_cost start [2025-03-02 21:39:13] Production.INFO: call_cost end [2025-03-02 21:39:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:39:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:39:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:39:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:39:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:39:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:39:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:39:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:39:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:39:13] Production.INFO: ==6175== Releasing lock... [2025-03-02 21:39:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:39:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:39:16] Production.INFO: count ==1335 [2025-03-02 21:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593929', 'tblTempUsageDetail_20' ) start [2025-03-02 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593929', 'tblTempUsageDetail_20' ) end [2025-03-02 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593929', 'tblTempVendorCDR_20' ) start [2025-03-02 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593929', 'tblTempVendorCDR_20' ) end [2025-03-02 21:39:16] Production.INFO: ProcessCDR(1,14593929,1,1,2) [2025-03-02 21:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593929', 'tblTempUsageDetail_20' ) start [2025-03-02 21:39:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593929', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:39:24] Production.INFO: ==6183== Releasing lock... [2025-03-02 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:39:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:40:01] Production.INFO: ==6250== Lock acquired, processing the job... [2025-03-03 02:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:40:01] Production.INFO: neon service started [2025-03-03 02:40:01] Production.INFO: neon service started [2025-03-03 02:40:01] Production.INFO: ==6250== Releasing lock... [2025-03-03 02:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:40:01] Production.INFO: ==6252== Lock acquired, processing the job... [2025-03-02 21:40:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:40:02] Production.INFO: ==6254== Lock acquired, processing the job... [2025-03-03 02:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 21:40:02] Production.INFO: ==6252== Releasing lock... [2025-03-02 21:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:40:02] Production.INFO: ==6254== Releasing lock... [2025-03-03 02:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:40:03] Production.INFO: ==6256== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 21:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 21:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 21:40:03] Production.INFO: ==6256== Releasing lock... [2025-03-02 21:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 21:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 21:40:03] Production.INFO: ==6258== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:40:03] Production.INFO: ==6265== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:40:03] Production.INFO: ==6263== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:40:03] Production.INFO: ==6261== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:40:03] Production.INFO: ==6269== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 21:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:40:03] Production.INFO: Account Balance Start. [2025-03-02 21:40:03] Production.INFO: CreateAllLog Start [2025-03-02 21:40:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:40:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:40:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:40:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:40:03] Production.INFO: 117 [2025-03-02 21:40:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:03] Production.INFO: ==6267== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:40:03] Production.INFO: ==6271== Lock acquired, processing the job... [2025-03-02 21:40:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:40:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:40:04] Production.INFO: count ==13 [2025-03-02 21:40:04] Production.ERROR: done [2025-03-02 21:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:40:04] Production.INFO: count ==21 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593933') start [2025-03-02 21:40:04] Production.INFO: ==6261== Releasing lock... [2025-03-02 21:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 21:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593934', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 21:40:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593933') end [2025-03-02 21:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:40:04] Production.INFO: 1 [2025-03-02 21:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:40:04] Production.ERROR: done [2025-03-02 21:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:40:04] Production.INFO: ==6271== Releasing lock... [2025-03-02 21:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:40:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.ERROR: done [2025-03-02 21:40:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:40:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:40:05] Production.INFO: Total Charge 0 [2025-03-02 21:40:05] Production.INFO: CreateAllLog End [2025-03-02 21:40:05] Production.INFO: Account Balance End. [2025-03-02 21:40:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:40:05] Production.INFO: ==6265== Releasing lock... [2025-03-02 21:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:40:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593934', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 21:40:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 21:40:08] Production.INFO: ProcessCDR(1,14593934,1,1,2) [2025-03-02 21:40:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593934,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:40:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593934,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:40:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 21:40:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 21:40:08] Production.INFO: ==6269== Releasing lock... [2025-03-02 21:40:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 21:40:08] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:40:13] Production.ERROR: CronJobId end10 [2025-03-02 21:40:13] Production.INFO: ==6263== Releasing lock... [2025-03-02 21:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:40:16] Production.INFO: call_cost start [2025-03-02 21:40:16] Production.INFO: call_cost end [2025-03-02 21:40:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:40:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:40:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:40:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:40:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:40:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:40:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:40:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:40:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:40:16] Production.INFO: ==6258== Releasing lock... [2025-03-02 21:40:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:40:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:40:16] Production.INFO: count ==1335 [2025-03-02 21:40:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:40:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593935', 'tblTempUsageDetail_20' ) start [2025-03-02 21:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593935', 'tblTempUsageDetail_20' ) end [2025-03-02 21:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593935', 'tblTempVendorCDR_20' ) start [2025-03-02 21:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593935', 'tblTempVendorCDR_20' ) end [2025-03-02 21:40:16] Production.INFO: ProcessCDR(1,14593935,1,1,2) [2025-03-02 21:40:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593935', 'tblTempUsageDetail_20' ) start [2025-03-02 21:40:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593935', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:40:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:40:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:40:24] Production.INFO: ==6267== Releasing lock... [2025-03-02 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:41:01] Production.INFO: ==6337== Lock acquired, processing the job... [2025-03-03 02:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:41:01] Production.INFO: neon service started [2025-03-03 02:41:01] Production.INFO: neon service started [2025-03-03 02:41:01] Production.INFO: ==6337== Releasing lock... [2025-03-03 02:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:41:02] Production.INFO: ==6339== Lock acquired, processing the job... [2025-03-02 21:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:41:02] Production.INFO: ==6339== Releasing lock... [2025-03-02 21:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:41:02] Production.INFO: ==6341== Lock acquired, processing the job... [2025-03-03 02:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:41:02] Production.INFO: ==6341== Releasing lock... [2025-03-03 02:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:41:03] Production.INFO: ==6343== Lock acquired, processing the job... [2025-03-02 21:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:41:03] Production.INFO: ==6347== Lock acquired, processing the job... [2025-03-02 21:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:41:03] Production.INFO: ==6345== Lock acquired, processing the job... [2025-03-02 21:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:41:03] Production.INFO: ==6351== Lock acquired, processing the job... [2025-03-02 21:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:41:03] Production.INFO: ==6349== Lock acquired, processing the job... [2025-03-02 21:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:41:03] Production.INFO: ==6353== Lock acquired, processing the job... [2025-03-02 21:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:41:03] Production.INFO: Account Balance Start. [2025-03-02 21:41:03] Production.INFO: CreateAllLog Start [2025-03-02 21:41:03] Production.INFO: 117 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: ==6345== Releasing lock... [2025-03-02 21:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:41:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:41:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.INFO: count ==13 [2025-03-02 21:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:41:03] Production.INFO: count ==21 [2025-03-02 21:41:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593939') start [2025-03-02 21:41:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:41:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.ERROR: done [2025-03-02 21:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593939') end [2025-03-02 21:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:41:04] Production.INFO: 1 [2025-03-02 21:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:41:04] Production.INFO: ==6353== Releasing lock... [2025-03-02 21:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:41:04] Production.ERROR: done [2025-03-02 21:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:41:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:41:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:41:04] Production.INFO: Total Charge 0 [2025-03-02 21:41:04] Production.INFO: CreateAllLog End [2025-03-02 21:41:04] Production.INFO: Account Balance End. [2025-03-02 21:41:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:41:04] Production.INFO: ==6349== Releasing lock... [2025-03-02 21:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:41:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:41:12] Production.ERROR: CronJobId end10 [2025-03-02 21:41:12] Production.INFO: ==6347== Releasing lock... [2025-03-02 21:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:41:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:41:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:41:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:41:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:41:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:41:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:41:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:41:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:41:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:41:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:41:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:41:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:41:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:41:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:41:14] Production.INFO: call_cost start [2025-03-02 21:41:14] Production.INFO: call_cost end [2025-03-02 21:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:41:14] Production.INFO: ==6343== Releasing lock... [2025-03-02 21:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:41:16] Production.INFO: count ==1335 [2025-03-02 21:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593940', 'tblTempUsageDetail_20' ) start [2025-03-02 21:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593940', 'tblTempUsageDetail_20' ) end [2025-03-02 21:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593940', 'tblTempVendorCDR_20' ) start [2025-03-02 21:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593940', 'tblTempVendorCDR_20' ) end [2025-03-02 21:41:16] Production.INFO: ProcessCDR(1,14593940,1,1,2) [2025-03-02 21:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593940', 'tblTempUsageDetail_20' ) start [2025-03-02 21:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593940', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:41:24] Production.INFO: ==6351== Releasing lock... [2025-03-02 21:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:41:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:42:02] Production.INFO: ==6421== Lock acquired, processing the job... [2025-03-03 02:42:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:42:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:42:02] Production.INFO: neon service started [2025-03-03 02:42:02] Production.INFO: neon service started [2025-03-03 02:42:02] Production.INFO: ==6421== Releasing lock... [2025-03-03 02:42:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:42:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:42:02] Production.INFO: ==6425== Lock acquired, processing the job... [2025-03-03 02:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:42:02] Production.INFO: ==6425== Releasing lock... [2025-03-03 02:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:42:02] Production.INFO: ==6423== Lock acquired, processing the job... [2025-03-02 21:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:42:03] Production.INFO: ==6423== Releasing lock... [2025-03-02 21:42:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:42:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:42:03] Production.INFO: ==6434== Lock acquired, processing the job... [2025-03-02 21:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:42:03] Production.INFO: ==6436== Lock acquired, processing the job... [2025-03-02 21:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:42:04] Production.INFO: Account Balance Start. [2025-03-02 21:42:04] Production.INFO: CreateAllLog Start [2025-03-02 21:42:04] Production.INFO: 117 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:42:04] Production.INFO: ==6430== Lock acquired, processing the job... [2025-03-02 21:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: ==6432== Lock acquired, processing the job... [2025-03-02 21:42:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:42:04] Production.INFO: ==6428== Lock acquired, processing the job... [2025-03-02 21:42:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:42:04] Production.INFO: ==6438== Lock acquired, processing the job... [2025-03-02 21:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:42:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:42:04] Production.ERROR: done [2025-03-02 21:42:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:42:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: count ==13 [2025-03-02 21:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:42:04] Production.INFO: count ==21 [2025-03-02 21:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593944') start [2025-03-02 21:42:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: ==6430== Releasing lock... [2025-03-02 21:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:42:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:42:04] Production.ERROR: done [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593944') end [2025-03-02 21:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:42:04] Production.INFO: 1 [2025-03-02 21:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:42:04] Production.INFO: ==6438== Releasing lock... [2025-03-02 21:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:42:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:42:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:42:05] Production.INFO: Total Charge 0 [2025-03-02 21:42:05] Production.INFO: CreateAllLog End [2025-03-02 21:42:05] Production.INFO: Account Balance End. [2025-03-02 21:42:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:42:05] Production.INFO: ==6434== Releasing lock... [2025-03-02 21:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:42:13] Production.ERROR: CronJobId end10 [2025-03-02 21:42:13] Production.INFO: ==6432== Releasing lock... [2025-03-02 21:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:42:14] Production.INFO: call_cost start [2025-03-02 21:42:14] Production.INFO: call_cost end [2025-03-02 21:42:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:42:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:42:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:42:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:42:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:42:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:42:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:42:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:42:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:42:14] Production.INFO: ==6428== Releasing lock... [2025-03-02 21:42:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:42:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:42:16] Production.INFO: count ==1335 [2025-03-02 21:42:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593945', 'tblTempUsageDetail_20' ) start [2025-03-02 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593945', 'tblTempUsageDetail_20' ) end [2025-03-02 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593945', 'tblTempVendorCDR_20' ) start [2025-03-02 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593945', 'tblTempVendorCDR_20' ) end [2025-03-02 21:42:17] Production.INFO: ProcessCDR(1,14593945,1,1,2) [2025-03-02 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593945', 'tblTempUsageDetail_20' ) start [2025-03-02 21:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593945', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:42:24] Production.INFO: ==6436== Releasing lock... [2025-03-02 21:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:42:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:43:01] Production.INFO: ==6499== Lock acquired, processing the job... [2025-03-03 02:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:43:01] Production.INFO: neon service started [2025-03-03 02:43:01] Production.INFO: neon service started [2025-03-03 02:43:01] Production.INFO: ==6499== Releasing lock... [2025-03-03 02:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:43:01] Production.INFO: ==6501== Lock acquired, processing the job... [2025-03-02 21:43:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:43:02] Production.INFO: ==6501== Releasing lock... [2025-03-02 21:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:43:02] Production.INFO: ==6503== Lock acquired, processing the job... [2025-03-03 02:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:43:02] Production.INFO: ==6503== Releasing lock... [2025-03-03 02:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:43:03] Production.INFO: ==6505== Lock acquired, processing the job... [2025-03-02 21:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:43:03] Production.INFO: ==6507== Lock acquired, processing the job... [2025-03-02 21:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:43:03] Production.INFO: ==6513== Lock acquired, processing the job... [2025-03-02 21:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:43:03] Production.INFO: ==6515== Lock acquired, processing the job... [2025-03-02 21:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:43:03] Production.INFO: ==6509== Lock acquired, processing the job... [2025-03-02 21:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:43:03] Production.INFO: ==6511== Lock acquired, processing the job... [2025-03-02 21:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:43:03] Production.INFO: Account Balance Start. [2025-03-02 21:43:03] Production.INFO: CreateAllLog Start [2025-03-02 21:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:43:03] Production.INFO: 117 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.INFO: count ==13 [2025-03-02 21:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:43:03] Production.INFO: count ==21 [2025-03-02 21:43:03] Production.INFO: ==6507== Releasing lock... [2025-03-02 21:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:43:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593948') start [2025-03-02 21:43:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.ERROR: done [2025-03-02 21:43:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593948') end [2025-03-02 21:43:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:43:03] Production.INFO: 1 [2025-03-02 21:43:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:43:03] Production.INFO: ==6515== Releasing lock... [2025-03-02 21:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:43:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:43:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.ERROR: done [2025-03-02 21:43:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:43:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:43:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:43:04] Production.INFO: Total Charge 0 [2025-03-02 21:43:04] Production.INFO: CreateAllLog End [2025-03-02 21:43:04] Production.INFO: Account Balance End. [2025-03-02 21:43:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:43:04] Production.INFO: ==6511== Releasing lock... [2025-03-02 21:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:43:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:43:11] Production.ERROR: CronJobId end10 [2025-03-02 21:43:11] Production.INFO: ==6509== Releasing lock... [2025-03-02 21:43:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:43:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:43:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:43:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:43:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:43:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:43:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:43:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:43:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:43:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:43:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:43:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:43:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:43:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:43:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:43:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:43:14] Production.INFO: call_cost start [2025-03-02 21:43:14] Production.INFO: call_cost end [2025-03-02 21:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:43:14] Production.INFO: ==6505== Releasing lock... [2025-03-02 21:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:43:16] Production.INFO: count ==1335 [2025-03-02 21:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593950', 'tblTempUsageDetail_20' ) start [2025-03-02 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593950', 'tblTempUsageDetail_20' ) end [2025-03-02 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593950', 'tblTempVendorCDR_20' ) start [2025-03-02 21:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593950', 'tblTempVendorCDR_20' ) end [2025-03-02 21:43:16] Production.INFO: ProcessCDR(1,14593950,1,1,2) [2025-03-02 21:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593950', 'tblTempUsageDetail_20' ) start [2025-03-02 21:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593950', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:43:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:43:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:43:23] Production.INFO: ==6513== Releasing lock... [2025-03-02 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:43:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:44:02] Production.INFO: ==6577== Lock acquired, processing the job... [2025-03-03 02:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:44:02] Production.INFO: neon service started [2025-03-03 02:44:02] Production.INFO: neon service started [2025-03-03 02:44:02] Production.INFO: ==6577== Releasing lock... [2025-03-03 02:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:44:02] Production.INFO: ==6579== Lock acquired, processing the job... [2025-03-02 21:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:44:02] Production.INFO: ==6581== Lock acquired, processing the job... [2025-03-03 02:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:44:02] Production.INFO: ==6581== Releasing lock... [2025-03-03 02:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:44:03] Production.INFO: ==6579== Releasing lock... [2025-03-02 21:44:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:44:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:44:04] Production.INFO: ==6594== Lock acquired, processing the job... [2025-03-02 21:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:44:04] Production.INFO: ==6592== Lock acquired, processing the job... [2025-03-02 21:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:44:04] Production.INFO: count ==13 [2025-03-02 21:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:44:04] Production.INFO: count ==21 [2025-03-02 21:44:04] Production.INFO: ==6584== Lock acquired, processing the job... [2025-03-02 21:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593951') start [2025-03-02 21:44:04] Production.INFO: ==6586== Lock acquired, processing the job... [2025-03-02 21:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:44:04] Production.INFO: ==6588== Lock acquired, processing the job... [2025-03-02 21:44:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:44:04] Production.INFO: ==6590== Lock acquired, processing the job... [2025-03-02 21:44:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:44:04] Production.INFO: Account Balance Start. [2025-03-02 21:44:04] Production.INFO: CreateAllLog Start [2025-03-02 21:44:04] Production.INFO: 117 [2025-03-02 21:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593951') end [2025-03-02 21:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:44:04] Production.INFO: 1 [2025-03-02 21:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:44:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.INFO: ==6594== Releasing lock... [2025-03-02 21:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:44:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.ERROR: done [2025-03-02 21:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:44:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.INFO: ==6586== Releasing lock... [2025-03-02 21:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:44:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:04] Production.ERROR: done [2025-03-02 21:44:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:44:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:44:05] Production.INFO: Total Charge 0 [2025-03-02 21:44:05] Production.INFO: CreateAllLog End [2025-03-02 21:44:05] Production.INFO: Account Balance End. [2025-03-02 21:44:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:44:05] Production.INFO: ==6590== Releasing lock... [2025-03-02 21:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:44:12] Production.ERROR: CronJobId end10 [2025-03-02 21:44:12] Production.INFO: ==6588== Releasing lock... [2025-03-02 21:44:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:44:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:44:14] Production.INFO: call_cost start [2025-03-02 21:44:14] Production.INFO: call_cost end [2025-03-02 21:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:44:14] Production.INFO: ==6584== Releasing lock... [2025-03-02 21:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:44:17] Production.INFO: count ==1335 [2025-03-02 21:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593955', 'tblTempUsageDetail_20' ) start [2025-03-02 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593955', 'tblTempUsageDetail_20' ) end [2025-03-02 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593955', 'tblTempVendorCDR_20' ) start [2025-03-02 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593955', 'tblTempVendorCDR_20' ) end [2025-03-02 21:44:17] Production.INFO: ProcessCDR(1,14593955,1,1,2) [2025-03-02 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593955', 'tblTempUsageDetail_20' ) start [2025-03-02 21:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593955', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:44:24] Production.INFO: ==6592== Releasing lock... [2025-03-02 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:44:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:45:01] Production.INFO: ==6650== Lock acquired, processing the job... [2025-03-03 02:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:45:01] Production.INFO: neon service started [2025-03-03 02:45:01] Production.INFO: neon service started [2025-03-03 02:45:01] Production.INFO: ==6650== Releasing lock... [2025-03-03 02:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:45:01] Production.INFO: ==6652== Lock acquired, processing the job... [2025-03-02 21:45:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:45:02] Production.INFO: ==6652== Releasing lock... [2025-03-02 21:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:45:02] Production.INFO: ==6654== Lock acquired, processing the job... [2025-03-03 02:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:45:02] Production.INFO: ==6654== Releasing lock... [2025-03-03 02:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:45:03] Production.INFO: ==6667== Lock acquired, processing the job... [2025-03-02 21:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:45:03] Production.INFO: count ==13 [2025-03-02 21:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:45:03] Production.INFO: count ==21 [2025-03-02 21:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593956') start [2025-03-02 21:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593956') end [2025-03-02 21:45:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:45:03] Production.INFO: 1 [2025-03-02 21:45:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:45:03] Production.INFO: ==6659== Lock acquired, processing the job... [2025-03-02 21:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:45:03] Production.INFO: ==6657== Lock acquired, processing the job... [2025-03-02 21:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:45:03] Production.INFO: ==6667== Releasing lock... [2025-03-02 21:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:45:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:45:03] Production.INFO: ==6661== Lock acquired, processing the job... [2025-03-02 21:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:45:03] Production.INFO: ==6663== Lock acquired, processing the job... [2025-03-02 21:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:45:03] Production.INFO: ==6665== Lock acquired, processing the job... [2025-03-02 21:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:45:03] Production.INFO: Account Balance Start. [2025-03-02 21:45:03] Production.INFO: CreateAllLog Start [2025-03-02 21:45:03] Production.INFO: 117 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: ==6659== Releasing lock... [2025-03-02 21:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:45:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:45:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.ERROR: done [2025-03-02 21:45:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:45:04] Production.INFO: Total Charge 0 [2025-03-02 21:45:04] Production.INFO: CreateAllLog End [2025-03-02 21:45:04] Production.ERROR: done [2025-03-02 21:45:04] Production.INFO: Account Balance End. [2025-03-02 21:45:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:45:04] Production.INFO: ==6663== Releasing lock... [2025-03-02 21:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:45:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:45:11] Production.ERROR: CronJobId end10 [2025-03-02 21:45:11] Production.INFO: ==6661== Releasing lock... [2025-03-02 21:45:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:45:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:45:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:45:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:45:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:45:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:45:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:45:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:45:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:45:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:45:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:45:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:45:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:45:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:45:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:45:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:45:14] Production.INFO: call_cost start [2025-03-02 21:45:14] Production.INFO: call_cost end [2025-03-02 21:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:45:14] Production.INFO: ==6657== Releasing lock... [2025-03-02 21:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:45:16] Production.INFO: count ==1335 [2025-03-02 21:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593960', 'tblTempUsageDetail_20' ) start [2025-03-02 21:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593960', 'tblTempUsageDetail_20' ) end [2025-03-02 21:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593960', 'tblTempVendorCDR_20' ) start [2025-03-02 21:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593960', 'tblTempVendorCDR_20' ) end [2025-03-02 21:45:16] Production.INFO: ProcessCDR(1,14593960,1,1,2) [2025-03-02 21:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593960', 'tblTempUsageDetail_20' ) start [2025-03-02 21:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593960', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:45:24] Production.INFO: ==6665== Releasing lock... [2025-03-02 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:45:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:46:02] Production.INFO: ==6766== Lock acquired, processing the job... [2025-03-03 02:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:46:02] Production.INFO: neon service started [2025-03-03 02:46:02] Production.INFO: neon service started [2025-03-03 02:46:02] Production.INFO: ==6766== Releasing lock... [2025-03-03 02:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:46:02] Production.INFO: ==6770== Lock acquired, processing the job... [2025-03-03 02:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:46:02] Production.INFO: ==6770== Releasing lock... [2025-03-03 02:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:46:02] Production.INFO: ==6768== Lock acquired, processing the job... [2025-03-02 21:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:46:02] Production.INFO: ==6768== Releasing lock... [2025-03-02 21:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:46:03] Production.INFO: ==6775== Lock acquired, processing the job... [2025-03-02 21:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:46:03] Production.INFO: ==6777== Lock acquired, processing the job... [2025-03-02 21:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:46:03] Production.INFO: ==6779== Lock acquired, processing the job... [2025-03-02 21:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:46:03] Production.INFO: Account Balance Start. [2025-03-02 21:46:03] Production.INFO: CreateAllLog Start [2025-03-02 21:46:03] Production.INFO: 117 [2025-03-02 21:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:46:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: ==6773== Lock acquired, processing the job... [2025-03-02 21:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:46:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:46:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: ==6781== Lock acquired, processing the job... [2025-03-02 21:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:46:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: ==6775== Releasing lock... [2025-03-02 21:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: ==6783== Lock acquired, processing the job... [2025-03-02 21:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:46:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:46:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: count ==13 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: count ==21 [2025-03-02 21:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593964') start [2025-03-02 21:46:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.ERROR: done [2025-03-02 21:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593964') end [2025-03-02 21:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:46:04] Production.INFO: 1 [2025-03-02 21:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:46:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:04] Production.INFO: ==6783== Releasing lock... [2025-03-02 21:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:46:04] Production.ERROR: done [2025-03-02 21:46:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:46:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:46:05] Production.INFO: Total Charge 0 [2025-03-02 21:46:05] Production.INFO: CreateAllLog End [2025-03-02 21:46:05] Production.INFO: Account Balance End. [2025-03-02 21:46:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:46:05] Production.INFO: ==6779== Releasing lock... [2025-03-02 21:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:46:12] Production.ERROR: CronJobId end10 [2025-03-02 21:46:12] Production.INFO: ==6777== Releasing lock... [2025-03-02 21:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:46:15] Production.INFO: call_cost start [2025-03-02 21:46:15] Production.INFO: call_cost end [2025-03-02 21:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:46:15] Production.INFO: ==6773== Releasing lock... [2025-03-02 21:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:46:17] Production.INFO: count ==1335 [2025-03-02 21:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593965', 'tblTempUsageDetail_20' ) start [2025-03-02 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593965', 'tblTempUsageDetail_20' ) end [2025-03-02 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593965', 'tblTempVendorCDR_20' ) start [2025-03-02 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593965', 'tblTempVendorCDR_20' ) end [2025-03-02 21:46:17] Production.INFO: ProcessCDR(1,14593965,1,1,2) [2025-03-02 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593965', 'tblTempUsageDetail_20' ) start [2025-03-02 21:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593965', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:46:24] Production.INFO: ==6781== Releasing lock... [2025-03-02 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:47:01] Production.INFO: ==6841== Lock acquired, processing the job... [2025-03-03 02:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:47:01] Production.INFO: neon service started [2025-03-03 02:47:01] Production.INFO: neon service started [2025-03-03 02:47:01] Production.INFO: ==6841== Releasing lock... [2025-03-03 02:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:47:01] Production.INFO: ==6843== Lock acquired, processing the job... [2025-03-02 21:47:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:47:02] Production.INFO: ==6843== Releasing lock... [2025-03-02 21:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:47:02] Production.INFO: ==6845== Lock acquired, processing the job... [2025-03-03 02:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:47:02] Production.INFO: ==6845== Releasing lock... [2025-03-03 02:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:47:03] Production.INFO: ==6853== Lock acquired, processing the job... [2025-03-02 21:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:47:03] Production.INFO: ==6857== Lock acquired, processing the job... [2025-03-02 21:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:47:03] Production.INFO: Account Balance Start. [2025-03-02 21:47:03] Production.INFO: CreateAllLog Start [2025-03-02 21:47:03] Production.INFO: 117 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:47:03] Production.INFO: ==6847== Lock acquired, processing the job... [2025-03-02 21:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:47:03] Production.INFO: count ==13 [2025-03-02 21:47:03] Production.INFO: ==6849== Lock acquired, processing the job... [2025-03-02 21:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:47:03] Production.INFO: count ==21 [2025-03-02 21:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593967') start [2025-03-02 21:47:03] Production.INFO: ==6851== Lock acquired, processing the job... [2025-03-02 21:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:47:03] Production.INFO: ==6855== Lock acquired, processing the job... [2025-03-02 21:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:47:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593967') end [2025-03-02 21:47:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:47:03] Production.INFO: 1 [2025-03-02 21:47:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:47:03] Production.INFO: ==6857== Releasing lock... [2025-03-02 21:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:47:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:47:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: ==6849== Releasing lock... [2025-03-02 21:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:47:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:47:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.ERROR: done [2025-03-02 21:47:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:47:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:03] Production.INFO: Date 2025-02-20 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.ERROR: done [2025-03-02 21:47:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:47:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:47:04] Production.INFO: Total Charge 0 [2025-03-02 21:47:04] Production.INFO: CreateAllLog End [2025-03-02 21:47:04] Production.INFO: Account Balance End. [2025-03-02 21:47:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:47:04] Production.INFO: ==6853== Releasing lock... [2025-03-02 21:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:47:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:47:12] Production.ERROR: CronJobId end10 [2025-03-02 21:47:12] Production.INFO: ==6851== Releasing lock... [2025-03-02 21:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:47:14] Production.INFO: call_cost start [2025-03-02 21:47:14] Production.INFO: call_cost end [2025-03-02 21:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:47:14] Production.INFO: ==6847== Releasing lock... [2025-03-02 21:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:47:16] Production.INFO: count ==1335 [2025-03-02 21:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593970', 'tblTempUsageDetail_20' ) start [2025-03-02 21:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593970', 'tblTempUsageDetail_20' ) end [2025-03-02 21:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593970', 'tblTempVendorCDR_20' ) start [2025-03-02 21:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593970', 'tblTempVendorCDR_20' ) end [2025-03-02 21:47:16] Production.INFO: ProcessCDR(1,14593970,1,1,2) [2025-03-02 21:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593970', 'tblTempUsageDetail_20' ) start [2025-03-02 21:47:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593970', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:47:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:47:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:47:23] Production.INFO: ==6855== Releasing lock... [2025-03-02 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:47:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:48:01] Production.INFO: ==6935== Lock acquired, processing the job... [2025-03-03 02:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:48:01] Production.INFO: neon service started [2025-03-03 02:48:01] Production.INFO: neon service started [2025-03-03 02:48:01] Production.INFO: ==6935== Releasing lock... [2025-03-03 02:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:48:02] Production.INFO: ==6939== Lock acquired, processing the job... [2025-03-03 02:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:48:02] Production.INFO: ==6939== Releasing lock... [2025-03-03 02:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:48:02] Production.INFO: ==6937== Lock acquired, processing the job... [2025-03-02 21:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:48:02] Production.INFO: ==6937== Releasing lock... [2025-03-02 21:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:48:03] Production.INFO: ==6941== Lock acquired, processing the job... [2025-03-02 21:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:48:03] Production.INFO: ==6943== Lock acquired, processing the job... [2025-03-02 21:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:48:03] Production.INFO: ==6945== Lock acquired, processing the job... [2025-03-02 21:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:48:04] Production.INFO: ==6943== Releasing lock... [2025-03-02 21:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:48:04] Production.INFO: ==6947== Lock acquired, processing the job... [2025-03-02 21:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:48:04] Production.INFO: ==6952== Lock acquired, processing the job... [2025-03-02 21:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:48:04] Production.INFO: ==6949== Lock acquired, processing the job... [2025-03-02 21:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:48:04] Production.INFO: Account Balance Start. [2025-03-02 21:48:04] Production.INFO: CreateAllLog Start [2025-03-02 21:48:04] Production.INFO: 117 [2025-03-02 21:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:48:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.INFO: count ==13 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:48:04] Production.INFO: count ==21 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593974') start [2025-03-02 21:48:04] Production.ERROR: done [2025-03-02 21:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593974') end [2025-03-02 21:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:48:04] Production.INFO: 1 [2025-03-02 21:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.ERROR: done [2025-03-02 21:48:04] Production.INFO: ==6952== Releasing lock... [2025-03-02 21:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:48:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-17 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:48:05] Production.INFO: Date 2025-02-18 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:48:05] Production.INFO: Total Charge 0 [2025-03-02 21:48:05] Production.INFO: CreateAllLog End [2025-03-02 21:48:05] Production.INFO: Account Balance End. [2025-03-02 21:48:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:48:05] Production.INFO: ==6947== Releasing lock... [2025-03-02 21:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:48:14] Production.ERROR: CronJobId end10 [2025-03-02 21:48:14] Production.INFO: ==6945== Releasing lock... [2025-03-02 21:48:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:48:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:48:15] Production.INFO: call_cost start [2025-03-02 21:48:15] Production.INFO: call_cost end [2025-03-02 21:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:48:15] Production.INFO: ==6941== Releasing lock... [2025-03-02 21:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:48:17] Production.INFO: count ==1335 [2025-03-02 21:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593975', 'tblTempUsageDetail_20' ) start [2025-03-02 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593975', 'tblTempUsageDetail_20' ) end [2025-03-02 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593975', 'tblTempVendorCDR_20' ) start [2025-03-02 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593975', 'tblTempVendorCDR_20' ) end [2025-03-02 21:48:17] Production.INFO: ProcessCDR(1,14593975,1,1,2) [2025-03-02 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593975', 'tblTempUsageDetail_20' ) start [2025-03-02 21:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593975', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:48:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:48:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:48:25] Production.INFO: ==6949== Releasing lock... [2025-03-02 21:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:48:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:49:02] Production.INFO: ==7022== Lock acquired, processing the job... [2025-03-03 02:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:49:02] Production.INFO: neon service started [2025-03-03 02:49:02] Production.INFO: neon service started [2025-03-03 02:49:02] Production.INFO: ==7022== Releasing lock... [2025-03-03 02:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:49:02] Production.INFO: ==7025== Lock acquired, processing the job... [2025-03-02 21:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:49:02] Production.INFO: ==7025== Releasing lock... [2025-03-02 21:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:49:03] Production.INFO: ==7027== Lock acquired, processing the job... [2025-03-03 02:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:49:03] Production.INFO: ==7027== Releasing lock... [2025-03-03 02:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:49:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:49:04] Production.INFO: ==7039== Lock acquired, processing the job... [2025-03-02 21:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:49:04] Production.INFO: ==7035== Lock acquired, processing the job... [2025-03-02 21:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:49:04] Production.INFO: ==7029== Lock acquired, processing the job... [2025-03-02 21:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:49:04] Production.INFO: Account Balance Start. [2025-03-02 21:49:04] Production.INFO: CreateAllLog Start [2025-03-02 21:49:04] Production.INFO: 117 [2025-03-02 21:49:04] Production.INFO: ==7031== Lock acquired, processing the job... [2025-03-02 21:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:49:04] Production.INFO: ==7033== Lock acquired, processing the job... [2025-03-02 21:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:49:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: count ==13 [2025-03-02 21:49:04] Production.INFO: ==7037== Lock acquired, processing the job... [2025-03-02 21:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:49:04] Production.INFO: count ==21 [2025-03-02 21:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593977') start [2025-03-02 21:49:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593977') end [2025-03-02 21:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:49:04] Production.INFO: 1 [2025-03-02 21:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:49:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: ==7039== Releasing lock... [2025-03-02 21:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:49:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: ==7031== Releasing lock... [2025-03-02 21:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:49:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:49:04] Production.ERROR: done [2025-03-02 21:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:04] Production.ERROR: done [2025-03-02 21:49:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:49:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:49:05] Production.INFO: Total Charge 0 [2025-03-02 21:49:05] Production.INFO: CreateAllLog End [2025-03-02 21:49:05] Production.INFO: Account Balance End. [2025-03-02 21:49:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:49:05] Production.INFO: ==7035== Releasing lock... [2025-03-02 21:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:49:12] Production.ERROR: CronJobId end10 [2025-03-02 21:49:12] Production.INFO: ==7033== Releasing lock... [2025-03-02 21:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:49:15] Production.INFO: call_cost start [2025-03-02 21:49:15] Production.INFO: call_cost end [2025-03-02 21:49:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:49:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:49:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:49:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:49:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:49:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:49:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:49:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:49:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:49:15] Production.INFO: ==7029== Releasing lock... [2025-03-02 21:49:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:49:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:49:17] Production.INFO: count ==1335 [2025-03-02 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593980', 'tblTempUsageDetail_20' ) start [2025-03-02 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593980', 'tblTempUsageDetail_20' ) end [2025-03-02 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593980', 'tblTempVendorCDR_20' ) start [2025-03-02 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593980', 'tblTempVendorCDR_20' ) end [2025-03-02 21:49:17] Production.INFO: ProcessCDR(1,14593980,1,1,2) [2025-03-02 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593980', 'tblTempUsageDetail_20' ) start [2025-03-02 21:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593980', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:49:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:49:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:49:25] Production.INFO: ==7037== Releasing lock... [2025-03-02 21:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:49:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:50:01] Production.INFO: ==7101== Lock acquired, processing the job... [2025-03-03 02:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:50:01] Production.INFO: neon service started [2025-03-03 02:50:01] Production.INFO: neon service started [2025-03-03 02:50:01] Production.INFO: ==7101== Releasing lock... [2025-03-03 02:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:50:02] Production.INFO: ==7105== Lock acquired, processing the job... [2025-03-03 02:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:50:02] Production.INFO: ==7105== Releasing lock... [2025-03-03 02:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:50:02] Production.INFO: ==7103== Lock acquired, processing the job... [2025-03-02 21:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:50:02] Production.INFO: ==7103== Releasing lock... [2025-03-02 21:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:50:03] Production.INFO: ==7110== Lock acquired, processing the job... [2025-03-02 21:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 21:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 21:50:03] Production.INFO: ==7112== Lock acquired, processing the job... [2025-03-02 21:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:50:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 21:50:03] Production.INFO: ==7110== Releasing lock... [2025-03-02 21:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 21:50:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 21:50:03] Production.INFO: ==7120== Lock acquired, processing the job... [2025-03-02 21:50:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:50:04] Production.INFO: ==7124== Lock acquired, processing the job... [2025-03-02 21:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:50:04] Production.INFO: count ==13 [2025-03-02 21:50:04] Production.INFO: ==7114== Lock acquired, processing the job... [2025-03-02 21:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:50:04] Production.INFO: ==7116== Lock acquired, processing the job... [2025-03-02 21:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:50:04] Production.INFO: count ==21 [2025-03-02 21:50:04] Production.INFO: ==7118== Lock acquired, processing the job... [2025-03-02 21:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593982') start [2025-03-02 21:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593982') end [2025-03-02 21:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:50:04] Production.INFO: 1 [2025-03-02 21:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:50:04] Production.INFO: ==7122== Lock acquired, processing the job... [2025-03-02 21:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 21:50:04] Production.ERROR: done [2025-03-02 21:50:04] Production.INFO: ==7124== Releasing lock... [2025-03-02 21:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:50:04] Production.INFO: Account Balance Start. [2025-03-02 21:50:04] Production.INFO: CreateAllLog Start [2025-03-02 21:50:04] Production.INFO: 117 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:50:04] Production.ERROR: done [2025-03-02 21:50:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: ==7114== Releasing lock... [2025-03-02 21:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:50:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:50:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.ERROR: done [2025-03-02 21:50:05] Production.INFO: Date 2025-02-19 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 21:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593986', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 21:50:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:50:05] Production.INFO: Total Charge 0 [2025-03-02 21:50:05] Production.INFO: CreateAllLog End [2025-03-02 21:50:05] Production.INFO: Account Balance End. [2025-03-02 21:50:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:50:05] Production.INFO: ==7118== Releasing lock... [2025-03-02 21:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14593986', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 21:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 21:50:09] Production.INFO: ProcessCDR(1,14593986,1,1,2) [2025-03-02 21:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14593986,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14593986,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 21:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 21:50:09] Production.INFO: ==7122== Releasing lock... [2025-03-02 21:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 21:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:50:14] Production.ERROR: CronJobId end10 [2025-03-02 21:50:14] Production.INFO: ==7116== Releasing lock... [2025-03-02 21:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:50:16] Production.INFO: call_cost start [2025-03-02 21:50:16] Production.INFO: call_cost end [2025-03-02 21:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:50:16] Production.INFO: ==7112== Releasing lock... [2025-03-02 21:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:50:16] Production.INFO: count ==1335 [2025-03-02 21:50:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:50:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593985', 'tblTempUsageDetail_20' ) start [2025-03-02 21:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593985', 'tblTempUsageDetail_20' ) end [2025-03-02 21:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593985', 'tblTempVendorCDR_20' ) start [2025-03-02 21:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593985', 'tblTempVendorCDR_20' ) end [2025-03-02 21:50:16] Production.INFO: ProcessCDR(1,14593985,1,1,2) [2025-03-02 21:50:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593985', 'tblTempUsageDetail_20' ) start [2025-03-02 21:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593985', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:50:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:50:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:50:25] Production.INFO: ==7120== Releasing lock... [2025-03-02 21:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:50:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:51:02] Production.INFO: ==7189== Lock acquired, processing the job... [2025-03-03 02:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:51:02] Production.INFO: neon service started [2025-03-03 02:51:02] Production.INFO: neon service started [2025-03-03 02:51:02] Production.INFO: ==7189== Releasing lock... [2025-03-03 02:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:51:02] Production.INFO: ==7193== Lock acquired, processing the job... [2025-03-03 02:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:51:02] Production.INFO: ==7193== Releasing lock... [2025-03-03 02:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:51:02] Production.INFO: ==7191== Lock acquired, processing the job... [2025-03-02 21:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:51:03] Production.INFO: ==7191== Releasing lock... [2025-03-02 21:51:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:51:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:51:03] Production.INFO: ==7196== Lock acquired, processing the job... [2025-03-02 21:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:51:03] Production.INFO: ==7198== Lock acquired, processing the job... [2025-03-02 21:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:51:03] Production.INFO: ==7202== Lock acquired, processing the job... [2025-03-02 21:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:51:04] Production.INFO: ==7200== Lock acquired, processing the job... [2025-03-02 21:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:51:04] Production.INFO: Account Balance Start. [2025-03-02 21:51:04] Production.INFO: CreateAllLog Start [2025-03-02 21:51:04] Production.INFO: 117 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:51:04] Production.INFO: ==7198== Releasing lock... [2025-03-02 21:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:51:04] Production.INFO: ==7204== Lock acquired, processing the job... [2025-03-02 21:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:51:04] Production.INFO: ==7206== Lock acquired, processing the job... [2025-03-02 21:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:51:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:51:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.INFO: count ==13 [2025-03-02 21:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:51:04] Production.INFO: count ==21 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593990') start [2025-03-02 21:51:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.ERROR: done [2025-03-02 21:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:51:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593990') end [2025-03-02 21:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:51:04] Production.INFO: 1 [2025-03-02 21:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:51:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: ==7206== Releasing lock... [2025-03-02 21:51:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:51:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:51:05] Production.ERROR: done [2025-03-02 21:51:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:51:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:51:05] Production.INFO: Total Charge 0 [2025-03-02 21:51:05] Production.INFO: CreateAllLog End [2025-03-02 21:51:05] Production.INFO: Account Balance End. [2025-03-02 21:51:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:51:05] Production.INFO: ==7202== Releasing lock... [2025-03-02 21:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:51:13] Production.ERROR: CronJobId end10 [2025-03-02 21:51:13] Production.INFO: ==7200== Releasing lock... [2025-03-02 21:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:51:15] Production.INFO: call_cost start [2025-03-02 21:51:15] Production.INFO: call_cost end [2025-03-02 21:51:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:51:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:51:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:51:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:51:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:51:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:51:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:51:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:51:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:51:15] Production.INFO: ==7196== Releasing lock... [2025-03-02 21:51:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:51:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:51:17] Production.INFO: count ==1335 [2025-03-02 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593991', 'tblTempUsageDetail_20' ) start [2025-03-02 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593991', 'tblTempUsageDetail_20' ) end [2025-03-02 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593991', 'tblTempVendorCDR_20' ) start [2025-03-02 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593991', 'tblTempVendorCDR_20' ) end [2025-03-02 21:51:17] Production.INFO: ProcessCDR(1,14593991,1,1,2) [2025-03-02 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593991', 'tblTempUsageDetail_20' ) start [2025-03-02 21:51:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593991', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:51:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:51:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:51:25] Production.INFO: ==7204== Releasing lock... [2025-03-02 21:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:51:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:52:01] Production.INFO: ==7263== Lock acquired, processing the job... [2025-03-03 02:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:52:01] Production.INFO: neon service started [2025-03-03 02:52:01] Production.INFO: neon service started [2025-03-03 02:52:01] Production.INFO: ==7263== Releasing lock... [2025-03-03 02:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:52:02] Production.INFO: ==7267== Lock acquired, processing the job... [2025-03-03 02:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:52:02] Production.INFO: ==7267== Releasing lock... [2025-03-03 02:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:52:02] Production.INFO: ==7265== Lock acquired, processing the job... [2025-03-02 21:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:52:02] Production.INFO: ==7265== Releasing lock... [2025-03-02 21:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:52:03] Production.INFO: ==7274== Lock acquired, processing the job... [2025-03-02 21:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:52:03] Production.INFO: ==7278== Lock acquired, processing the job... [2025-03-02 21:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:52:03] Production.INFO: ==7270== Lock acquired, processing the job... [2025-03-02 21:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:52:03] Production.INFO: ==7272== Lock acquired, processing the job... [2025-03-02 21:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:52:03] Production.INFO: ==7276== Lock acquired, processing the job... [2025-03-02 21:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:52:03] Production.INFO: ==7280== Lock acquired, processing the job... [2025-03-02 21:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:52:03] Production.INFO: Account Balance Start. [2025-03-02 21:52:03] Production.INFO: CreateAllLog Start [2025-03-02 21:52:03] Production.INFO: 117 [2025-03-02 21:52:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:03] Production.INFO: count ==13 [2025-03-02 21:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:52:03] Production.INFO: count ==21 [2025-03-02 21:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14593995') start [2025-03-02 21:52:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:03] Production.INFO: ==7272== Releasing lock... [2025-03-02 21:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:52:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:52:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.ERROR: done [2025-03-02 21:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593995') end [2025-03-02 21:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:52:04] Production.INFO: 1 [2025-03-02 21:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:52:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: ==7280== Releasing lock... [2025-03-02 21:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:52:04] Production.ERROR: done [2025-03-02 21:52:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:52:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:52:04] Production.INFO: Total Charge 0 [2025-03-02 21:52:04] Production.INFO: CreateAllLog End [2025-03-02 21:52:04] Production.INFO: Account Balance End. [2025-03-02 21:52:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:52:04] Production.INFO: ==7276== Releasing lock... [2025-03-02 21:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:52:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:52:11] Production.ERROR: CronJobId end10 [2025-03-02 21:52:11] Production.INFO: ==7274== Releasing lock... [2025-03-02 21:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:52:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:52:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:52:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:52:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:52:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:52:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:52:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:52:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:52:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:52:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:52:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:52:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:52:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:52:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:52:14] Production.INFO: call_cost start [2025-03-02 21:52:14] Production.INFO: call_cost end [2025-03-02 21:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:52:14] Production.INFO: ==7270== Releasing lock... [2025-03-02 21:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:52:16] Production.INFO: count ==1335 [2025-03-02 21:52:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593996', 'tblTempUsageDetail_20' ) start [2025-03-02 21:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14593996', 'tblTempUsageDetail_20' ) end [2025-03-02 21:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593996', 'tblTempVendorCDR_20' ) start [2025-03-02 21:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14593996', 'tblTempVendorCDR_20' ) end [2025-03-02 21:52:16] Production.INFO: ProcessCDR(1,14593996,1,1,2) [2025-03-02 21:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14593996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14593996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14593996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14593996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14593996', 'tblTempUsageDetail_20' ) start [2025-03-02 21:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14593996', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:52:24] Production.INFO: ==7278== Releasing lock... [2025-03-02 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:52:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:53:02] Production.INFO: ==7340== Lock acquired, processing the job... [2025-03-03 02:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:53:02] Production.INFO: neon service started [2025-03-03 02:53:02] Production.INFO: neon service started [2025-03-03 02:53:02] Production.INFO: ==7340== Releasing lock... [2025-03-03 02:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:53:02] Production.INFO: ==7342== Lock acquired, processing the job... [2025-03-02 21:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:53:02] Production.INFO: ==7344== Lock acquired, processing the job... [2025-03-03 02:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:53:02] Production.INFO: ==7344== Releasing lock... [2025-03-03 02:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:53:03] Production.INFO: ==7342== Releasing lock... [2025-03-02 21:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:53:03] Production.INFO: ==7353== Lock acquired, processing the job... [2025-03-02 21:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:53:04] Production.INFO: ==7357== Lock acquired, processing the job... [2025-03-02 21:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:53:04] Production.INFO: Account Balance Start. [2025-03-02 21:53:04] Production.INFO: CreateAllLog Start [2025-03-02 21:53:04] Production.INFO: 117 [2025-03-02 21:53:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:53:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: ==7347== Lock acquired, processing the job... [2025-03-02 21:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:53:04] Production.INFO: ==7349== Lock acquired, processing the job... [2025-03-02 21:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:53:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: count ==13 [2025-03-02 21:53:04] Production.INFO: ==7351== Lock acquired, processing the job... [2025-03-02 21:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:53:04] Production.INFO: count ==21 [2025-03-02 21:53:04] Production.INFO: ==7355== Lock acquired, processing the job... [2025-03-02 21:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593998') start [2025-03-02 21:53:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:53:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14593998') end [2025-03-02 21:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:53:04] Production.INFO: 1 [2025-03-02 21:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:53:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: ==7357== Releasing lock... [2025-03-02 21:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:53:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:04] Production.ERROR: done [2025-03-02 21:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:53:04] Production.INFO: ==7349== Releasing lock... [2025-03-02 21:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:53:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.ERROR: done [2025-03-02 21:53:05] Production.INFO: Date 2025-02-20 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:53:05] Production.INFO: Date 2025-02-21 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-22 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-23 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-24 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:53:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:53:05] Production.INFO: Total Charge 0 [2025-03-02 21:53:05] Production.INFO: CreateAllLog End [2025-03-02 21:53:05] Production.INFO: Account Balance End. [2025-03-02 21:53:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:53:05] Production.INFO: ==7353== Releasing lock... [2025-03-02 21:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:53:12] Production.ERROR: CronJobId end10 [2025-03-02 21:53:12] Production.INFO: ==7351== Releasing lock... [2025-03-02 21:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:53:15] Production.INFO: call_cost start [2025-03-02 21:53:15] Production.INFO: call_cost end [2025-03-02 21:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:53:15] Production.INFO: ==7347== Releasing lock... [2025-03-02 21:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:53:17] Production.INFO: count ==1335 [2025-03-02 21:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594001', 'tblTempUsageDetail_20' ) start [2025-03-02 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594001', 'tblTempUsageDetail_20' ) end [2025-03-02 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594001', 'tblTempVendorCDR_20' ) start [2025-03-02 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594001', 'tblTempVendorCDR_20' ) end [2025-03-02 21:53:17] Production.INFO: ProcessCDR(1,14594001,1,1,2) [2025-03-02 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594001', 'tblTempUsageDetail_20' ) start [2025-03-02 21:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594001', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:53:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:53:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:53:25] Production.INFO: ==7355== Releasing lock... [2025-03-02 21:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:53:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:54:01] Production.INFO: ==7421== Lock acquired, processing the job... [2025-03-03 02:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:54:01] Production.INFO: neon service started [2025-03-03 02:54:01] Production.INFO: neon service started [2025-03-03 02:54:01] Production.INFO: ==7421== Releasing lock... [2025-03-03 02:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:54:01] Production.INFO: ==7423== Lock acquired, processing the job... [2025-03-02 21:54:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:54:02] Production.INFO: ==7423== Releasing lock... [2025-03-02 21:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:54:02] Production.INFO: ==7425== Lock acquired, processing the job... [2025-03-03 02:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:54:02] Production.INFO: ==7425== Releasing lock... [2025-03-03 02:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:54:03] Production.INFO: ==7428== Lock acquired, processing the job... [2025-03-02 21:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:54:03] Production.INFO: ==7430== Lock acquired, processing the job... [2025-03-02 21:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:54:03] Production.INFO: ==7432== Lock acquired, processing the job... [2025-03-02 21:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:54:03] Production.INFO: ==7434== Lock acquired, processing the job... [2025-03-02 21:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:54:03] Production.INFO: ==7438== Lock acquired, processing the job... [2025-03-02 21:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:54:03] Production.INFO: ==7436== Lock acquired, processing the job... [2025-03-02 21:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:54:03] Production.INFO: Account Balance Start. [2025-03-02 21:54:03] Production.INFO: CreateAllLog Start [2025-03-02 21:54:03] Production.INFO: 117 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:54:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: count ==13 [2025-03-02 21:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:54:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: count ==21 [2025-03-02 21:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594005') start [2025-03-02 21:54:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-13 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: ==7430== Releasing lock... [2025-03-02 21:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:54:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594005') end [2025-03-02 21:54:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:54:03] Production.INFO: 1 [2025-03-02 21:54:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:54:03] Production.INFO: Date 2025-02-14 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-15 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-16 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-17 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-18 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: ==7438== Releasing lock... [2025-03-02 21:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:54:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:54:03] Production.ERROR: done [2025-03-02 21:54:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-19 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-20 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:03] Production.INFO: Date 2025-02-21 [2025-03-02 21:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.ERROR: done [2025-03-02 21:54:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:54:04] Production.INFO: Total Charge 0 [2025-03-02 21:54:04] Production.INFO: CreateAllLog End [2025-03-02 21:54:04] Production.INFO: Account Balance End. [2025-03-02 21:54:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:54:04] Production.INFO: ==7434== Releasing lock... [2025-03-02 21:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:54:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:54:12] Production.ERROR: CronJobId end10 [2025-03-02 21:54:12] Production.INFO: ==7432== Releasing lock... [2025-03-02 21:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:54:14] Production.INFO: call_cost start [2025-03-02 21:54:14] Production.INFO: call_cost end [2025-03-02 21:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:54:14] Production.INFO: ==7428== Releasing lock... [2025-03-02 21:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:54:16] Production.INFO: count ==1335 [2025-03-02 21:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594006', 'tblTempUsageDetail_20' ) start [2025-03-02 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594006', 'tblTempUsageDetail_20' ) end [2025-03-02 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594006', 'tblTempVendorCDR_20' ) start [2025-03-02 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594006', 'tblTempVendorCDR_20' ) end [2025-03-02 21:54:16] Production.INFO: ProcessCDR(1,14594006,1,1,2) [2025-03-02 21:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594006', 'tblTempUsageDetail_20' ) start [2025-03-02 21:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594006', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:54:24] Production.INFO: ==7436== Releasing lock... [2025-03-02 21:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:54:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:55:01] Production.INFO: ==7506== Lock acquired, processing the job... [2025-03-03 02:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:55:02] Production.INFO: neon service started [2025-03-03 02:55:02] Production.INFO: neon service started [2025-03-03 02:55:02] Production.INFO: ==7506== Releasing lock... [2025-03-03 02:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:55:02] Production.INFO: ==7508== Lock acquired, processing the job... [2025-03-02 21:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:55:02] Production.INFO: ==7510== Lock acquired, processing the job... [2025-03-03 02:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:55:02] Production.INFO: ==7510== Releasing lock... [2025-03-03 02:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:55:03] Production.INFO: ==7508== Releasing lock... [2025-03-02 21:55:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:55:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:55:03] Production.INFO: ==7517== Lock acquired, processing the job... [2025-03-02 21:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:55:04] Production.INFO: ==7523== Lock acquired, processing the job... [2025-03-02 21:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:55:04] Production.INFO: ==7513== Lock acquired, processing the job... [2025-03-02 21:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:55:04] Production.INFO: ==7515== Lock acquired, processing the job... [2025-03-02 21:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:55:04] Production.INFO: ==7519== Lock acquired, processing the job... [2025-03-02 21:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:55:04] Production.INFO: ==7521== Lock acquired, processing the job... [2025-03-02 21:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:55:04] Production.INFO: count ==13 [2025-03-02 21:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:55:04] Production.INFO: count ==21 [2025-03-02 21:55:04] Production.INFO: Account Balance Start. [2025-03-02 21:55:04] Production.INFO: CreateAllLog Start [2025-03-02 21:55:04] Production.INFO: 117 [2025-03-02 21:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594007') start [2025-03-02 21:55:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: ==7515== Releasing lock... [2025-03-02 21:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:55:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594007') end [2025-03-02 21:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:55:04] Production.INFO: 1 [2025-03-02 21:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:55:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:55:04] Production.INFO: ==7523== Releasing lock... [2025-03-02 21:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.ERROR: done [2025-03-02 21:55:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:04] Production.ERROR: done [2025-03-02 21:55:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:55:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:55:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:55:05] Production.INFO: Total Charge 0 [2025-03-02 21:55:05] Production.INFO: CreateAllLog End [2025-03-02 21:55:05] Production.INFO: Account Balance End. [2025-03-02 21:55:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:55:05] Production.INFO: ==7519== Releasing lock... [2025-03-02 21:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:55:12] Production.ERROR: CronJobId end10 [2025-03-02 21:55:12] Production.INFO: ==7517== Releasing lock... [2025-03-02 21:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:55:15] Production.INFO: call_cost start [2025-03-02 21:55:15] Production.INFO: call_cost end [2025-03-02 21:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:55:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:55:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:55:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:55:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:55:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:55:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:55:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:55:15] Production.INFO: ==7513== Releasing lock... [2025-03-02 21:55:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:55:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:55:17] Production.INFO: count ==1335 [2025-03-02 21:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594011', 'tblTempUsageDetail_20' ) start [2025-03-02 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594011', 'tblTempUsageDetail_20' ) end [2025-03-02 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594011', 'tblTempVendorCDR_20' ) start [2025-03-02 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594011', 'tblTempVendorCDR_20' ) end [2025-03-02 21:55:17] Production.INFO: ProcessCDR(1,14594011,1,1,2) [2025-03-02 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594011', 'tblTempUsageDetail_20' ) start [2025-03-02 21:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594011', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:55:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:55:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:55:25] Production.INFO: ==7521== Releasing lock... [2025-03-02 21:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:55:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:56:01] Production.INFO: ==7595== Lock acquired, processing the job... [2025-03-03 02:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:56:01] Production.INFO: neon service started [2025-03-03 02:56:01] Production.INFO: neon service started [2025-03-03 02:56:01] Production.INFO: ==7595== Releasing lock... [2025-03-03 02:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:56:01] Production.INFO: ==7597== Lock acquired, processing the job... [2025-03-02 21:56:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:56:02] Production.INFO: ==7597== Releasing lock... [2025-03-02 21:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:56:02] Production.INFO: ==7599== Lock acquired, processing the job... [2025-03-03 02:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:56:02] Production.INFO: ==7599== Releasing lock... [2025-03-03 02:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-02 21:56:03] Production.INFO: ==7606== Lock acquired, processing the job... [2025-03-02 21:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:56:03] Production.INFO: ==7610== Lock acquired, processing the job... [2025-03-02 21:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:56:03] Production.INFO: ==7604== Lock acquired, processing the job... [2025-03-02 21:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:56:03] Production.INFO: ==7601== Lock acquired, processing the job... [2025-03-02 21:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:56:03] Production.INFO: ==7608== Lock acquired, processing the job... [2025-03-02 21:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:56:03] Production.INFO: ==7612== Lock acquired, processing the job... [2025-03-02 21:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:56:03] Production.INFO: Account Balance Start. [2025-03-02 21:56:03] Production.INFO: CreateAllLog Start [2025-03-02 21:56:03] Production.INFO: 117 [2025-03-02 21:56:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:56:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:03] Production.INFO: count ==13 [2025-03-02 21:56:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:56:03] Production.INFO: count ==21 [2025-03-02 21:56:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594015') start [2025-03-02 21:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:03] Production.INFO: ==7604== Releasing lock... [2025-03-02 21:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:56:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:56:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:03] Production.ERROR: done [2025-03-02 21:56:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594015') end [2025-03-02 21:56:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:56:03] Production.INFO: 1 [2025-03-02 21:56:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:56:03] Production.INFO: ==7612== Releasing lock... [2025-03-02 21:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:56:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:56:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.ERROR: done [2025-03-02 21:56:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:56:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:56:04] Production.INFO: Total Charge 0 [2025-03-02 21:56:04] Production.INFO: CreateAllLog End [2025-03-02 21:56:04] Production.INFO: Account Balance End. [2025-03-02 21:56:04] Production.ERROR: CronJobId end 12 [2025-03-02 21:56:04] Production.INFO: ==7608== Releasing lock... [2025-03-02 21:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:56:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:56:11] Production.ERROR: CronJobId end10 [2025-03-02 21:56:11] Production.INFO: ==7606== Releasing lock... [2025-03-02 21:56:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:56:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:56:14] Production.INFO: call_cost start [2025-03-02 21:56:14] Production.INFO: call_cost end [2025-03-02 21:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:56:14] Production.INFO: ==7601== Releasing lock... [2025-03-02 21:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:56:16] Production.INFO: count ==1335 [2025-03-02 21:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594016', 'tblTempUsageDetail_20' ) start [2025-03-02 21:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594016', 'tblTempUsageDetail_20' ) end [2025-03-02 21:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594016', 'tblTempVendorCDR_20' ) start [2025-03-02 21:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594016', 'tblTempVendorCDR_20' ) end [2025-03-02 21:56:16] Production.INFO: ProcessCDR(1,14594016,1,1,2) [2025-03-02 21:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594016', 'tblTempUsageDetail_20' ) start [2025-03-02 21:56:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594016', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:56:24] Production.INFO: ==7610== Releasing lock... [2025-03-02 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:56:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:57:01] Production.INFO: ==7678== Lock acquired, processing the job... [2025-03-03 02:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:57:01] Production.INFO: neon service started [2025-03-03 02:57:01] Production.INFO: neon service started [2025-03-03 02:57:01] Production.INFO: ==7678== Releasing lock... [2025-03-03 02:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:57:02] Production.INFO: ==7682== Lock acquired, processing the job... [2025-03-03 02:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:57:02] Production.INFO: ==7682== Releasing lock... [2025-03-03 02:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:57:02] Production.INFO: ==7680== Lock acquired, processing the job... [2025-03-02 21:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:57:02] Production.INFO: ==7680== Releasing lock... [2025-03-02 21:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:57:03] Production.INFO: ==7685== Lock acquired, processing the job... [2025-03-02 21:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:57:03] Production.INFO: ==7687== Lock acquired, processing the job... [2025-03-02 21:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:57:03] Production.INFO: ==7691== Lock acquired, processing the job... [2025-03-02 21:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:57:03] Production.INFO: ==7689== Lock acquired, processing the job... [2025-03-02 21:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:57:03] Production.INFO: Account Balance Start. [2025-03-02 21:57:03] Production.INFO: CreateAllLog Start [2025-03-02 21:57:03] Production.INFO: 117 [2025-03-02 21:57:03] Production.INFO: Date 2025-02-08 [2025-03-02 21:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:57:03] Production.INFO: ==7687== Releasing lock... [2025-03-02 21:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:57:03] Production.INFO: Date 2025-02-09 [2025-03-02 21:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:03] Production.INFO: ==7695== Lock acquired, processing the job... [2025-03-02 21:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:57:03] Production.INFO: Date 2025-02-10 [2025-03-02 21:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:03] Production.INFO: ==7693== Lock acquired, processing the job... [2025-03-02 21:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:57:03] Production.INFO: Date 2025-02-11 [2025-03-02 21:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:03] Production.INFO: Date 2025-02-12 [2025-03-02 21:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:57:04] Production.INFO: count ==13 [2025-03-02 21:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:57:04] Production.INFO: count ==21 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594020') start [2025-03-02 21:57:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594020') end [2025-03-02 21:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:57:04] Production.INFO: 1 [2025-03-02 21:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:57:04] Production.ERROR: done [2025-03-02 21:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: ==7695== Releasing lock... [2025-03-02 21:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:57:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.ERROR: done [2025-03-02 21:57:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-26 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-02-27 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:57:04] Production.INFO: Date 2025-02-28 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-03-01 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Date 2025-03-02 [2025-03-02 21:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:57:04] Production.INFO: Total Charge 0 [2025-03-02 21:57:04] Production.INFO: CreateAllLog End [2025-03-02 21:57:05] Production.INFO: Account Balance End. [2025-03-02 21:57:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:57:05] Production.INFO: ==7691== Releasing lock... [2025-03-02 21:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:57:11] Production.ERROR: CronJobId end10 [2025-03-02 21:57:11] Production.INFO: ==7689== Releasing lock... [2025-03-02 21:57:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:57:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:57:14] Production.INFO: call_cost start [2025-03-02 21:57:14] Production.INFO: call_cost end [2025-03-02 21:57:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:57:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:57:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:57:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:57:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:57:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:57:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:57:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:57:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:57:14] Production.INFO: ==7685== Releasing lock... [2025-03-02 21:57:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:57:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:57:16] Production.INFO: count ==1335 [2025-03-02 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594021', 'tblTempUsageDetail_20' ) start [2025-03-02 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594021', 'tblTempUsageDetail_20' ) end [2025-03-02 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594021', 'tblTempVendorCDR_20' ) start [2025-03-02 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594021', 'tblTempVendorCDR_20' ) end [2025-03-02 21:57:17] Production.INFO: ProcessCDR(1,14594021,1,1,2) [2025-03-02 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594021', 'tblTempUsageDetail_20' ) start [2025-03-02 21:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594021', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:57:24] Production.INFO: ==7693== Releasing lock... [2025-03-02 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:57:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:58:02] Production.INFO: ==7755== Lock acquired, processing the job... [2025-03-03 02:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:58:02] Production.INFO: neon service started [2025-03-03 02:58:02] Production.INFO: neon service started [2025-03-03 02:58:02] Production.INFO: ==7755== Releasing lock... [2025-03-03 02:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:58:02] Production.INFO: ==7757== Lock acquired, processing the job... [2025-03-02 21:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 21:58:03] Production.INFO: ==7757== Releasing lock... [2025-03-02 21:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:58:03] Production.INFO: ==7759== Lock acquired, processing the job... [2025-03-03 02:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:58:03] Production.INFO: ==7759== Releasing lock... [2025-03-03 02:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:58:03] Production.INFO: ==7761== Lock acquired, processing the job... [2025-03-02 21:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:58:04] Production.INFO: ==7767== Lock acquired, processing the job... [2025-03-02 21:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:58:04] Production.INFO: ==7769== Lock acquired, processing the job... [2025-03-02 21:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:58:04] Production.INFO: Account Balance Start. [2025-03-02 21:58:04] Production.INFO: CreateAllLog Start [2025-03-02 21:58:04] Production.INFO: 117 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: ==7764== Lock acquired, processing the job... [2025-03-02 21:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:58:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: ==7771== Lock acquired, processing the job... [2025-03-02 21:58:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: ==7773== Lock acquired, processing the job... [2025-03-02 21:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:58:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:58:04] Production.INFO: ==7764== Releasing lock... [2025-03-02 21:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:58:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: count ==13 [2025-03-02 21:58:04] Production.INFO: Date 2025-02-25 [2025-03-02 21:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:04] Production.INFO: count ==21 [2025-03-02 21:58:05] Production.ERROR: done [2025-03-02 21:58:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:58:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594025') start [2025-03-02 21:58:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:58:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:58:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:58:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:58:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:58:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:58:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594025') end [2025-03-02 21:58:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:58:05] Production.INFO: 1 [2025-03-02 21:58:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:58:05] Production.ERROR: done [2025-03-02 21:58:05] Production.INFO: Total Charge 0 [2025-03-02 21:58:05] Production.INFO: CreateAllLog End [2025-03-02 21:58:05] Production.INFO: ==7773== Releasing lock... [2025-03-02 21:58:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:58:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:58:05] Production.INFO: Account Balance End. [2025-03-02 21:58:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:58:05] Production.INFO: ==7769== Releasing lock... [2025-03-02 21:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:58:12] Production.ERROR: CronJobId end10 [2025-03-02 21:58:12] Production.INFO: ==7767== Releasing lock... [2025-03-02 21:58:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:58:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:58:15] Production.INFO: call_cost start [2025-03-02 21:58:15] Production.INFO: call_cost end [2025-03-02 21:58:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:58:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:58:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:58:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:58:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:58:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:58:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:58:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:58:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:58:15] Production.INFO: ==7761== Releasing lock... [2025-03-02 21:58:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:58:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:58:17] Production.INFO: count ==1335 [2025-03-02 21:58:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594026', 'tblTempUsageDetail_20' ) start [2025-03-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594026', 'tblTempUsageDetail_20' ) end [2025-03-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594026', 'tblTempVendorCDR_20' ) start [2025-03-02 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594026', 'tblTempVendorCDR_20' ) end [2025-03-02 21:58:17] Production.INFO: ProcessCDR(1,14594026,1,1,2) [2025-03-02 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594026', 'tblTempUsageDetail_20' ) start [2025-03-02 21:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594026', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:58:25] Production.INFO: ==7771== Releasing lock... [2025-03-02 21:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:58:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 02:59:01] Production.INFO: ==7837== Lock acquired, processing the job... [2025-03-03 02:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 02:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 02:59:01] Production.INFO: neon service started [2025-03-03 02:59:02] Production.INFO: neon service started [2025-03-03 02:59:02] Production.INFO: ==7837== Releasing lock... [2025-03-03 02:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 02:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 21:59:02] Production.INFO: ==7839== Lock acquired, processing the job... [2025-03-02 21:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:59:02] Production.INFO: ==7841== Lock acquired, processing the job... [2025-03-03 02:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:59:02] Production.INFO: ==7841== Releasing lock... [2025-03-03 02:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 02:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 21:59:03] Production.INFO: ==7839== Releasing lock... [2025-03-02 21:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 21:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 21:59:03] Production.INFO: ==7848== Lock acquired, processing the job... [2025-03-02 21:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 21:59:03] Production.INFO: ==7850== Lock acquired, processing the job... [2025-03-02 21:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 21:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 21:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 21:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 21:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 21:59:04] Production.INFO: ==7844== Lock acquired, processing the job... [2025-03-02 21:59:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 21:59:04] Production.INFO: ==7846== Lock acquired, processing the job... [2025-03-02 21:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 21:59:04] Production.INFO: Account Balance Start. [2025-03-02 21:59:04] Production.INFO: CreateAllLog Start [2025-03-02 21:59:04] Production.INFO: 117 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-08 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-09 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 21:59:04] Production.INFO: Date 2025-02-10 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-11 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: ==7852== Lock acquired, processing the job... [2025-03-02 21:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 21:59:04] Production.INFO: ==7854== Lock acquired, processing the job... [2025-03-02 21:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 21:59:04] Production.INFO: Date 2025-02-12 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: ==7846== Releasing lock... [2025-03-02 21:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 21:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 21:59:04] Production.INFO: Date 2025-02-13 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-14 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:59:04] Production.INFO: count ==13 [2025-03-02 21:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 21:59:04] Production.INFO: count ==21 [2025-03-02 21:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594030') start [2025-03-02 21:59:04] Production.INFO: Date 2025-02-15 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-16 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594030') end [2025-03-02 21:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 21:59:04] Production.INFO: 1 [2025-03-02 21:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 21:59:04] Production.INFO: Date 2025-02-17 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-18 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-19 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: ==7854== Releasing lock... [2025-03-02 21:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 21:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 21:59:04] Production.INFO: Date 2025-02-20 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.ERROR: done [2025-03-02 21:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-21 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-22 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-23 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:04] Production.INFO: Date 2025-02-24 [2025-03-02 21:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.INFO: Date 2025-02-25 [2025-03-02 21:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.INFO: Date 2025-02-26 [2025-03-02 21:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.ERROR: done [2025-03-02 21:59:05] Production.INFO: Date 2025-02-27 [2025-03-02 21:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.INFO: Date 2025-02-28 [2025-03-02 21:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 21:59:05] Production.INFO: Date 2025-03-01 [2025-03-02 21:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.INFO: Date 2025-03-02 [2025-03-02 21:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 21:59:05] Production.INFO: Total Charge 0 [2025-03-02 21:59:05] Production.INFO: CreateAllLog End [2025-03-02 21:59:05] Production.INFO: Account Balance End. [2025-03-02 21:59:05] Production.ERROR: CronJobId end 12 [2025-03-02 21:59:05] Production.INFO: ==7850== Releasing lock... [2025-03-02 21:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 21:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 21:59:12] Production.ERROR: CronJobId end10 [2025-03-02 21:59:12] Production.INFO: ==7848== Releasing lock... [2025-03-02 21:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 21:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 21:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 21:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 21:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 21:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 21:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 21:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 21:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 21:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 21:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 21:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 21:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 21:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 21:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 21:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 21:59:15] Production.INFO: call_cost start [2025-03-02 21:59:15] Production.INFO: call_cost end [2025-03-02 21:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 21:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 21:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 21:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 21:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 21:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 21:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 21:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 21:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 21:59:15] Production.INFO: ==7844== Releasing lock... [2025-03-02 21:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 21:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 21:59:17] Production.INFO: count ==1335 [2025-03-02 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594031', 'tblTempUsageDetail_20' ) start [2025-03-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594031', 'tblTempUsageDetail_20' ) end [2025-03-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594031', 'tblTempVendorCDR_20' ) start [2025-03-02 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594031', 'tblTempVendorCDR_20' ) end [2025-03-02 21:59:17] Production.INFO: ProcessCDR(1,14594031,1,1,2) [2025-03-02 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594031', 'tblTempUsageDetail_20' ) start [2025-03-02 21:59:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594031', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 21:59:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 21:59:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 21:59:25] Production.INFO: ==7852== Releasing lock... [2025-03-02 21:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 21:59:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:00:01] Production.INFO: ==7917== Lock acquired, processing the job... [2025-03-03 03:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:00:01] Production.INFO: neon service started [2025-03-03 03:00:01] Production.INFO: neon service started [2025-03-03 03:00:01] Production.INFO: ==7917== Releasing lock... [2025-03-03 03:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:00:01] Production.INFO: ==7919== Lock acquired, processing the job... [2025-03-02 22:00:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:00:02] Production.INFO: ==7921== Lock acquired, processing the job... [2025-03-03 03:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 22:00:02] Production.INFO: ==7919== Releasing lock... [2025-03-02 22:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:00:02] Production.INFO: ==7921== Releasing lock... [2025-03-03 03:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:00:03] Production.INFO: ==7927== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:00:03] Production.INFO: ==7923== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 22:00:03] Production.INFO: ==7925== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 22:00:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:00:03] Production.ERROR: CronJob PID - 7925 [2025-03-02 22:00:03] Production.ERROR: CronJob Title - System Alerts [2025-03-02 22:00:03] Production.ERROR: CronJob ID - 5 [2025-03-02 22:00:03] Production.ERROR: CronJob Last Run Time 2025-03-02 22:00:00 [2025-03-02 22:00:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:00:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:00:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:00:03] Production.ERROR: CronJob PID - 7927 [2025-03-02 22:00:03] Production.ERROR: CronJob Title - Account Block [2025-03-02 22:00:03] Production.ERROR: CronJob ID - 7 [2025-03-02 22:00:03] Production.ERROR: CronJob Last Run Time 2025-03-02 22:00:00 [2025-03-02 22:00:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:00:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 22:00:03] Production.INFO: ==7923== Releasing lock... [2025-03-02 22:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 22:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 22:00:03] Production.INFO: ==7929== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:00:03] Production.INFO: ==7935== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:00:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:00:03] Production.INFO: ==7938== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 22:00:03] Production.INFO: ==7931== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: bulkautopaymentcapture-command-bulkautopaymentcapture-companyid-1-cronjobid-11 #Starts# [2025-03-02 22:00:03] Production.INFO: ==7933== Lock acquired, processing the job... [2025-03-02 22:00:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:00:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:00:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:00:04] Production.INFO: ==7940== Lock acquired, processing the job... [2025-03-02 22:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '5', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '7', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '8', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '13', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '14', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '17', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '19', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '21', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '25', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '26', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '20', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '32', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '33', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '37', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '41', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '43', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '45', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '49', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '47', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '52', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '53', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '54', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '57', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Account Balance Start. [2025-03-02 22:00:04] Production.INFO: CreateAllLog Start [2025-03-02 22:00:04] Production.INFO: ==7927== Releasing lock... [2025-03-02 22:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:00:04] Production.INFO: 117 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '58', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '34', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '59', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '63', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '65', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '67', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '73', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '74', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '70', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '82', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '83', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '84', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: count ==13 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '85', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '93', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:00:04] Production.INFO: count ==21 [2025-03-02 22:00:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '95', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '92', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '86', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '78', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '87', '0', '1' ) [2025-03-02 22:00:04] Production.ERROR: done [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '88', '0', '1' ) [2025-03-02 22:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 5 [2025-03-02 22:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594035') start [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '90', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.ERROR: done [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '98', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '99', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '97', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '100', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '101', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594036', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '102', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '104', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '106', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '107', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '110', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '111', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '113', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '114', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '115', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '119', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '121', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '123', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '124', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '127', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '131', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '130', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 6 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '134', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '137', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '138', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '136', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '139', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '140', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '146', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '147', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '151', '0', '1' ) [2025-03-02 22:00:04] Production.ERROR: done [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '153', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '154', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '155', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '157', '0', '1' ) [2025-03-02 22:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594035') end [2025-03-02 22:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:00:04] Production.INFO: 1 [2025-03-02 22:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 0 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '149', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 1 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '160', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '152', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '161', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '165', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '166', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '183', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: ==7940== Releasing lock... [2025-03-02 22:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '184', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '185', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '187', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '195', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '190', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 1 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '192', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '193', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 4 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '205', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '208', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '206', '0', '1' ) [2025-03-02 22:00:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 18 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '182', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '211', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '188', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '218', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '226', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '227', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '189', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '229', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '230', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '232', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '236', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 0 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '239', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: PaymentMethod - 1 [2025-03-02 22:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '241', '0', '1' ) [2025-03-02 22:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-02 22:00:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:00:05] Production.INFO: Total Charge 0 [2025-03-02 22:00:05] Production.INFO: CreateAllLog End [2025-03-02 22:00:05] Production.INFO: Account Balance End. [2025-03-02 22:00:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:00:05] Production.INFO: ==7933== Releasing lock... [2025-03-02 22:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:00:05] Production.ERROR: CronJobId end11 [2025-03-02 22:00:05] Production.INFO: ==7931== Releasing lock... [2025-03-02 22:00:05] Production.INFO: bulkautopaymentcapture-command-bulkautopaymentcapture-companyid-1-cronjobid-11 #Stops# [2025-03-02 22:00:05] Production.INFO: 30.5 MB #Memory Used# [2025-03-02 22:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594036', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 22:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 22:00:09] Production.INFO: ProcessCDR(1,14594036,1,1,2) [2025-03-02 22:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594036,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594036,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 22:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 22:00:09] Production.INFO: ==7938== Releasing lock... [2025-03-02 22:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 22:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:00:14] Production.ERROR: CronJobId end10 [2025-03-02 22:00:14] Production.INFO: ==7929== Releasing lock... [2025-03-02 22:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:00:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:00:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:00:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:00:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:00:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:00:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:00:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:00:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:00:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:00:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:00:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:00:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:00:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:00:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:00:16] Production.INFO: call_cost start [2025-03-02 22:00:16] Production.INFO: call_cost end [2025-03-02 22:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:00:16] Production.INFO: ==7925== Releasing lock... [2025-03-02 22:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:00:16] Production.INFO: count ==1335 [2025-03-02 22:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594037', 'tblTempUsageDetail_20' ) start [2025-03-02 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594037', 'tblTempUsageDetail_20' ) end [2025-03-02 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594037', 'tblTempVendorCDR_20' ) start [2025-03-02 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594037', 'tblTempVendorCDR_20' ) end [2025-03-02 22:00:17] Production.INFO: ProcessCDR(1,14594037,1,1,2) [2025-03-02 22:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594037', 'tblTempUsageDetail_20' ) start [2025-03-02 22:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594037', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:00:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:00:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:00:24] Production.INFO: ==7935== Releasing lock... [2025-03-02 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:00:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:01:01] Production.INFO: ==7994== Lock acquired, processing the job... [2025-03-03 03:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:01:01] Production.INFO: neon service started [2025-03-03 03:01:02] Production.INFO: neon service started [2025-03-03 03:01:02] Production.INFO: ==7994== Releasing lock... [2025-03-03 03:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:01:02] Production.INFO: ==8007== Lock acquired, processing the job... [2025-03-02 22:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:01:02] Production.INFO: ==8009== Lock acquired, processing the job... [2025-03-03 03:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:01:02] Production.INFO: ==8009== Releasing lock... [2025-03-03 03:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:01:03] Production.INFO: ==8007== Releasing lock... [2025-03-02 22:01:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:01:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:01:03] Production.INFO: ==8016== Lock acquired, processing the job... [2025-03-02 22:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:01:04] Production.INFO: ==8022== Lock acquired, processing the job... [2025-03-02 22:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:01:04] Production.INFO: count ==13 [2025-03-02 22:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:01:04] Production.INFO: ==8014== Lock acquired, processing the job... [2025-03-02 22:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:01:04] Production.INFO: count ==21 [2025-03-02 22:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594038') start [2025-03-02 22:01:04] Production.INFO: ==8012== Lock acquired, processing the job... [2025-03-02 22:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:01:04] Production.INFO: ==8018== Lock acquired, processing the job... [2025-03-02 22:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:01:04] Production.INFO: ==8020== Lock acquired, processing the job... [2025-03-02 22:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594038') end [2025-03-02 22:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:01:04] Production.INFO: 1 [2025-03-02 22:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:01:04] Production.INFO: Account Balance Start. [2025-03-02 22:01:04] Production.INFO: CreateAllLog Start [2025-03-02 22:01:04] Production.INFO: 117 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: ==8022== Releasing lock... [2025-03-02 22:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:01:04] Production.ERROR: done [2025-03-02 22:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.ERROR: done [2025-03-02 22:01:04] Production.INFO: ==8014== Releasing lock... [2025-03-02 22:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:01:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:01:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:01:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:01:05] Production.INFO: Total Charge 0 [2025-03-02 22:01:05] Production.INFO: CreateAllLog End [2025-03-02 22:01:05] Production.INFO: Account Balance End. [2025-03-02 22:01:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:01:05] Production.INFO: ==8018== Releasing lock... [2025-03-02 22:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:01:12] Production.ERROR: CronJobId end10 [2025-03-02 22:01:12] Production.INFO: ==8016== Releasing lock... [2025-03-02 22:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:01:15] Production.INFO: call_cost start [2025-03-02 22:01:15] Production.INFO: call_cost end [2025-03-02 22:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:01:15] Production.INFO: ==8012== Releasing lock... [2025-03-02 22:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:01:16] Production.INFO: count ==1335 [2025-03-02 22:01:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594042', 'tblTempUsageDetail_20' ) start [2025-03-02 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594042', 'tblTempUsageDetail_20' ) end [2025-03-02 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594042', 'tblTempVendorCDR_20' ) start [2025-03-02 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594042', 'tblTempVendorCDR_20' ) end [2025-03-02 22:01:17] Production.INFO: ProcessCDR(1,14594042,1,1,2) [2025-03-02 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594042', 'tblTempUsageDetail_20' ) start [2025-03-02 22:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594042', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:01:25] Production.INFO: ==8020== Releasing lock... [2025-03-02 22:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:01:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:02:01] Production.INFO: ==8116== Lock acquired, processing the job... [2025-03-03 03:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:02:01] Production.INFO: neon service started [2025-03-03 03:02:01] Production.INFO: neon service started [2025-03-03 03:02:01] Production.INFO: ==8116== Releasing lock... [2025-03-03 03:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:02:01] Production.INFO: ==8118== Lock acquired, processing the job... [2025-03-02 22:02:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:02:02] Production.INFO: ==8120== Lock acquired, processing the job... [2025-03-03 03:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 22:02:02] Production.INFO: ==8118== Releasing lock... [2025-03-02 22:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:02:02] Production.INFO: ==8120== Releasing lock... [2025-03-03 03:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:02:03] Production.INFO: ==8122== Lock acquired, processing the job... [2025-03-02 22:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:02:03] Production.INFO: ==8133== Lock acquired, processing the job... [2025-03-02 22:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:02:03] Production.INFO: ==8130== Lock acquired, processing the job... [2025-03-02 22:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:02:03] Production.INFO: ==8124== Lock acquired, processing the job... [2025-03-02 22:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:02:03] Production.INFO: ==8126== Lock acquired, processing the job... [2025-03-02 22:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:02:03] Production.INFO: count ==13 [2025-03-02 22:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:02:03] Production.INFO: ==8128== Lock acquired, processing the job... [2025-03-02 22:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:02:03] Production.INFO: count ==21 [2025-03-02 22:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594044') start [2025-03-02 22:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:02:03] Production.ERROR: done [2025-03-02 22:02:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594044') end [2025-03-02 22:02:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:02:03] Production.INFO: 1 [2025-03-02 22:02:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:02:03] Production.INFO: Account Balance Start. [2025-03-02 22:02:03] Production.INFO: CreateAllLog Start [2025-03-02 22:02:03] Production.INFO: 117 [2025-03-02 22:02:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:02:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:03] Production.INFO: ==8133== Releasing lock... [2025-03-02 22:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:02:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:02:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:02:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:02:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:02:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:03] Production.ERROR: done [2025-03-02 22:02:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:02:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:02:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: ==8124== Releasing lock... [2025-03-02 22:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:02:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:02:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:02:04] Production.INFO: Total Charge 0 [2025-03-02 22:02:04] Production.INFO: CreateAllLog End [2025-03-02 22:02:04] Production.INFO: Account Balance End. [2025-03-02 22:02:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:02:04] Production.INFO: ==8128== Releasing lock... [2025-03-02 22:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:02:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:02:11] Production.ERROR: CronJobId end10 [2025-03-02 22:02:11] Production.INFO: ==8126== Releasing lock... [2025-03-02 22:02:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:02:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:02:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:02:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:02:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:02:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:02:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:02:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:02:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:02:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:02:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:02:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:02:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:02:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:02:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:02:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:02:14] Production.INFO: call_cost start [2025-03-02 22:02:14] Production.INFO: call_cost end [2025-03-02 22:02:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:02:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:02:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:02:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:02:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:02:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:02:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:02:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:02:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:02:14] Production.INFO: ==8122== Releasing lock... [2025-03-02 22:02:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:02:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:02:16] Production.INFO: count ==1335 [2025-03-02 22:02:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594047', 'tblTempUsageDetail_20' ) start [2025-03-02 22:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594047', 'tblTempUsageDetail_20' ) end [2025-03-02 22:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594047', 'tblTempVendorCDR_20' ) start [2025-03-02 22:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594047', 'tblTempVendorCDR_20' ) end [2025-03-02 22:02:16] Production.INFO: ProcessCDR(1,14594047,1,1,2) [2025-03-02 22:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594047', 'tblTempUsageDetail_20' ) start [2025-03-02 22:02:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594047', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:02:24] Production.INFO: ==8130== Releasing lock... [2025-03-02 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:02:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:03:02] Production.INFO: ==8198== Lock acquired, processing the job... [2025-03-03 03:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:03:02] Production.INFO: neon service started [2025-03-03 03:03:02] Production.INFO: neon service started [2025-03-03 03:03:02] Production.INFO: ==8198== Releasing lock... [2025-03-03 03:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:03:02] Production.INFO: ==8200== Lock acquired, processing the job... [2025-03-02 22:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:03:02] Production.INFO: ==8200== Releasing lock... [2025-03-02 22:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:03:02] Production.INFO: ==8202== Lock acquired, processing the job... [2025-03-03 03:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:03:02] Production.INFO: ==8202== Releasing lock... [2025-03-03 03:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:03:03] Production.INFO: ==8214== Lock acquired, processing the job... [2025-03-02 22:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:03:03] Production.INFO: ==8212== Lock acquired, processing the job... [2025-03-02 22:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:03:03] Production.INFO: ==8204== Lock acquired, processing the job... [2025-03-02 22:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:03:03] Production.INFO: ==8206== Lock acquired, processing the job... [2025-03-02 22:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:03:04] Production.INFO: ==8208== Lock acquired, processing the job... [2025-03-02 22:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:03:04] Production.INFO: count ==13 [2025-03-02 22:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:03:04] Production.INFO: count ==21 [2025-03-02 22:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594048') start [2025-03-02 22:03:04] Production.INFO: ==8210== Lock acquired, processing the job... [2025-03-02 22:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594048') end [2025-03-02 22:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:03:04] Production.INFO: 1 [2025-03-02 22:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:03:04] Production.INFO: Account Balance Start. [2025-03-02 22:03:04] Production.INFO: CreateAllLog Start [2025-03-02 22:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:03:04] Production.INFO: 117 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:03:04] Production.INFO: ==8214== Releasing lock... [2025-03-02 22:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.ERROR: done [2025-03-02 22:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: ==8206== Releasing lock... [2025-03-02 22:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:03:04] Production.ERROR: done [2025-03-02 22:03:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:03:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:03:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:03:05] Production.INFO: Total Charge 0 [2025-03-02 22:03:05] Production.INFO: CreateAllLog End [2025-03-02 22:03:05] Production.INFO: Account Balance End. [2025-03-02 22:03:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:03:05] Production.INFO: ==8210== Releasing lock... [2025-03-02 22:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:03:13] Production.ERROR: CronJobId end10 [2025-03-02 22:03:13] Production.INFO: ==8208== Releasing lock... [2025-03-02 22:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:03:16] Production.INFO: call_cost start [2025-03-02 22:03:16] Production.INFO: call_cost end [2025-03-02 22:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:03:16] Production.INFO: ==8204== Releasing lock... [2025-03-02 22:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:03:16] Production.INFO: count ==1335 [2025-03-02 22:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594052', 'tblTempUsageDetail_20' ) start [2025-03-02 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594052', 'tblTempUsageDetail_20' ) end [2025-03-02 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594052', 'tblTempVendorCDR_20' ) start [2025-03-02 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594052', 'tblTempVendorCDR_20' ) end [2025-03-02 22:03:16] Production.INFO: ProcessCDR(1,14594052,1,1,2) [2025-03-02 22:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594052', 'tblTempUsageDetail_20' ) start [2025-03-02 22:03:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594052', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:03:24] Production.INFO: ==8212== Releasing lock... [2025-03-02 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:03:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:04:01] Production.INFO: ==8275== Lock acquired, processing the job... [2025-03-03 03:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:04:01] Production.INFO: neon service started [2025-03-03 03:04:01] Production.INFO: neon service started [2025-03-03 03:04:01] Production.INFO: ==8275== Releasing lock... [2025-03-03 03:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:04:02] Production.INFO: ==8279== Lock acquired, processing the job... [2025-03-03 03:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:04:02] Production.INFO: ==8279== Releasing lock... [2025-03-03 03:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:04:02] Production.INFO: ==8277== Lock acquired, processing the job... [2025-03-02 22:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:04:02] Production.INFO: ==8277== Releasing lock... [2025-03-02 22:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:04:03] Production.INFO: ==8282== Lock acquired, processing the job... [2025-03-02 22:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:04:03] Production.INFO: ==8290== Lock acquired, processing the job... [2025-03-02 22:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:04:03] Production.INFO: ==8286== Lock acquired, processing the job... [2025-03-02 22:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:04:03] Production.INFO: ==8284== Lock acquired, processing the job... [2025-03-02 22:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:04:03] Production.INFO: ==8288== Lock acquired, processing the job... [2025-03-02 22:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:04:03] Production.INFO: ==8292== Lock acquired, processing the job... [2025-03-02 22:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:04:03] Production.INFO: Account Balance Start. [2025-03-02 22:04:03] Production.INFO: CreateAllLog Start [2025-03-02 22:04:03] Production.INFO: 117 [2025-03-02 22:04:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:03] Production.ERROR: done [2025-03-02 22:04:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:04:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:04:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:03] Production.INFO: count ==13 [2025-03-02 22:04:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:04:03] Production.INFO: count ==21 [2025-03-02 22:04:03] Production.ERROR: done [2025-03-02 22:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594056') start [2025-03-02 22:04:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594056') end [2025-03-02 22:04:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:04:03] Production.INFO: 1 [2025-03-02 22:04:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:04:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:04:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:04:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:04:03] Production.INFO: ==8292== Releasing lock... [2025-03-02 22:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:04:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:04:04] Production.INFO: ==8284== Releasing lock... [2025-03-02 22:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:04:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:04:04] Production.INFO: Total Charge 0 [2025-03-02 22:04:04] Production.INFO: CreateAllLog End [2025-03-02 22:04:04] Production.INFO: Account Balance End. [2025-03-02 22:04:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:04:04] Production.INFO: ==8288== Releasing lock... [2025-03-02 22:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:04:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:04:11] Production.ERROR: CronJobId end10 [2025-03-02 22:04:11] Production.INFO: ==8286== Releasing lock... [2025-03-02 22:04:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:04:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:04:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:04:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:04:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:04:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:04:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:04:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:04:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:04:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:04:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:04:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:04:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:04:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:04:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:04:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:04:14] Production.INFO: call_cost start [2025-03-02 22:04:14] Production.INFO: call_cost end [2025-03-02 22:04:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:04:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:04:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:04:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:04:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:04:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:04:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:04:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:04:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:04:14] Production.INFO: ==8282== Releasing lock... [2025-03-02 22:04:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:04:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:04:16] Production.INFO: count ==1335 [2025-03-02 22:04:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594057', 'tblTempUsageDetail_20' ) start [2025-03-02 22:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594057', 'tblTempUsageDetail_20' ) end [2025-03-02 22:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594057', 'tblTempVendorCDR_20' ) start [2025-03-02 22:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594057', 'tblTempVendorCDR_20' ) end [2025-03-02 22:04:16] Production.INFO: ProcessCDR(1,14594057,1,1,2) [2025-03-02 22:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594057', 'tblTempUsageDetail_20' ) start [2025-03-02 22:04:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594057', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:04:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:04:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:04:23] Production.INFO: ==8290== Releasing lock... [2025-03-02 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:04:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:05:01] Production.INFO: ==8348== Lock acquired, processing the job... [2025-03-03 03:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:05:02] Production.INFO: neon service started [2025-03-03 03:05:02] Production.INFO: neon service started [2025-03-03 03:05:02] Production.INFO: ==8348== Releasing lock... [2025-03-03 03:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:05:02] Production.INFO: ==8350== Lock acquired, processing the job... [2025-03-02 22:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:05:02] Production.INFO: ==8350== Releasing lock... [2025-03-02 22:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:05:02] Production.INFO: ==8352== Lock acquired, processing the job... [2025-03-03 03:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:05:02] Production.INFO: ==8352== Releasing lock... [2025-03-03 03:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:05:03] Production.INFO: ==8359== Lock acquired, processing the job... [2025-03-02 22:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:05:03] Production.INFO: ==8361== Lock acquired, processing the job... [2025-03-02 22:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:05:03] Production.INFO: ==8355== Lock acquired, processing the job... [2025-03-02 22:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:05:03] Production.INFO: ==8357== Lock acquired, processing the job... [2025-03-02 22:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:05:04] Production.INFO: ==8363== Lock acquired, processing the job... [2025-03-02 22:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:05:04] Production.INFO: Account Balance Start. [2025-03-02 22:05:04] Production.INFO: CreateAllLog Start [2025-03-02 22:05:04] Production.INFO: 117 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:05:04] Production.INFO: ==8365== Lock acquired, processing the job... [2025-03-02 22:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: ==8357== Releasing lock... [2025-03-02 22:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:05:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:05:04] Production.INFO: count ==13 [2025-03-02 22:05:04] Production.ERROR: done [2025-03-02 22:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:05:04] Production.INFO: count ==21 [2025-03-02 22:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594061') start [2025-03-02 22:05:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594061') end [2025-03-02 22:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:05:04] Production.INFO: 1 [2025-03-02 22:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:05:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: ==8365== Releasing lock... [2025-03-02 22:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:05:04] Production.ERROR: done [2025-03-02 22:05:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:05:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:05:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:05:05] Production.INFO: Total Charge 0 [2025-03-02 22:05:05] Production.INFO: CreateAllLog End [2025-03-02 22:05:05] Production.INFO: Account Balance End. [2025-03-02 22:05:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:05:05] Production.INFO: ==8361== Releasing lock... [2025-03-02 22:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:05:12] Production.ERROR: CronJobId end10 [2025-03-02 22:05:12] Production.INFO: ==8359== Releasing lock... [2025-03-02 22:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:05:15] Production.INFO: call_cost start [2025-03-02 22:05:15] Production.INFO: call_cost end [2025-03-02 22:05:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:05:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:05:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:05:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:05:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:05:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:05:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:05:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:05:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:05:15] Production.INFO: ==8355== Releasing lock... [2025-03-02 22:05:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:05:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:05:17] Production.INFO: count ==1335 [2025-03-02 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594062', 'tblTempUsageDetail_20' ) start [2025-03-02 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594062', 'tblTempUsageDetail_20' ) end [2025-03-02 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594062', 'tblTempVendorCDR_20' ) start [2025-03-02 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594062', 'tblTempVendorCDR_20' ) end [2025-03-02 22:05:17] Production.INFO: ProcessCDR(1,14594062,1,1,2) [2025-03-02 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594062', 'tblTempUsageDetail_20' ) start [2025-03-02 22:05:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594062', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:05:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:05:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:05:25] Production.INFO: ==8363== Releasing lock... [2025-03-02 22:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:05:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:06:01] Production.INFO: ==8434== Lock acquired, processing the job... [2025-03-03 03:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:06:01] Production.INFO: neon service started [2025-03-03 03:06:01] Production.INFO: neon service started [2025-03-03 03:06:01] Production.INFO: ==8434== Releasing lock... [2025-03-03 03:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:06:01] Production.INFO: ==8436== Lock acquired, processing the job... [2025-03-02 22:06:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:06:02] Production.INFO: ==8436== Releasing lock... [2025-03-02 22:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:06:02] Production.INFO: ==8438== Lock acquired, processing the job... [2025-03-03 03:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:06:02] Production.INFO: ==8438== Releasing lock... [2025-03-03 03:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:06:03] Production.INFO: ==8442== Lock acquired, processing the job... [2025-03-02 22:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:06:03] Production.INFO: ==8440== Lock acquired, processing the job... [2025-03-02 22:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:06:03] Production.INFO: ==8450== Lock acquired, processing the job... [2025-03-02 22:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:06:03] Production.INFO: count ==13 [2025-03-02 22:06:03] Production.INFO: ==8446== Lock acquired, processing the job... [2025-03-02 22:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:06:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:06:03] Production.INFO: count ==21 [2025-03-02 22:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594065') start [2025-03-02 22:06:03] Production.INFO: ==8444== Lock acquired, processing the job... [2025-03-02 22:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:06:03] Production.INFO: ==8442== Releasing lock... [2025-03-02 22:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:06:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:06:03] Production.INFO: ==8448== Lock acquired, processing the job... [2025-03-02 22:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:06:03] Production.INFO: Account Balance Start. [2025-03-02 22:06:03] Production.INFO: CreateAllLog Start [2025-03-02 22:06:03] Production.INFO: 117 [2025-03-02 22:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594065') end [2025-03-02 22:06:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:06:03] Production.INFO: 1 [2025-03-02 22:06:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:06:03] Production.INFO: ==8450== Releasing lock... [2025-03-02 22:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:06:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:06:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:06:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:03] Production.ERROR: done [2025-03-02 22:06:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:06:03] Production.INFO: Date 2025-02-17 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.ERROR: done [2025-03-02 22:06:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:06:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:06:04] Production.INFO: Total Charge 0 [2025-03-02 22:06:04] Production.INFO: CreateAllLog End [2025-03-02 22:06:04] Production.INFO: Account Balance End. [2025-03-02 22:06:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:06:04] Production.INFO: ==8446== Releasing lock... [2025-03-02 22:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:06:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:06:11] Production.ERROR: CronJobId end10 [2025-03-02 22:06:11] Production.INFO: ==8444== Releasing lock... [2025-03-02 22:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:06:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:06:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:06:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:06:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:06:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:06:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:06:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:06:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:06:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:06:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:06:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:06:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:06:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:06:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:06:13] Production.INFO: call_cost start [2025-03-02 22:06:13] Production.INFO: call_cost end [2025-03-02 22:06:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:06:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:06:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:06:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:06:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:06:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:06:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:06:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:06:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:06:13] Production.INFO: ==8440== Releasing lock... [2025-03-02 22:06:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:06:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:06:16] Production.INFO: count ==1335 [2025-03-02 22:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594067', 'tblTempUsageDetail_20' ) start [2025-03-02 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594067', 'tblTempUsageDetail_20' ) end [2025-03-02 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594067', 'tblTempVendorCDR_20' ) start [2025-03-02 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594067', 'tblTempVendorCDR_20' ) end [2025-03-02 22:06:16] Production.INFO: ProcessCDR(1,14594067,1,1,2) [2025-03-02 22:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594067', 'tblTempUsageDetail_20' ) start [2025-03-02 22:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594067', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:06:24] Production.INFO: ==8448== Releasing lock... [2025-03-02 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:06:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:07:01] Production.INFO: ==8509== Lock acquired, processing the job... [2025-03-03 03:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:07:01] Production.INFO: neon service started [2025-03-03 03:07:01] Production.INFO: neon service started [2025-03-03 03:07:01] Production.INFO: ==8509== Releasing lock... [2025-03-03 03:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:07:02] Production.INFO: ==8511== Lock acquired, processing the job... [2025-03-02 22:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:07:02] Production.INFO: ==8513== Lock acquired, processing the job... [2025-03-03 03:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:07:02] Production.INFO: ==8513== Releasing lock... [2025-03-03 03:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:07:03] Production.INFO: ==8511== Releasing lock... [2025-03-02 22:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:07:03] Production.INFO: ==8520== Lock acquired, processing the job... [2025-03-02 22:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:07:03] Production.INFO: ==8526== Lock acquired, processing the job... [2025-03-02 22:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:07:04] Production.INFO: ==8516== Lock acquired, processing the job... [2025-03-02 22:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:07:04] Production.INFO: count ==13 [2025-03-02 22:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:07:04] Production.INFO: ==8518== Lock acquired, processing the job... [2025-03-02 22:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:07:04] Production.INFO: count ==21 [2025-03-02 22:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594068') start [2025-03-02 22:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594068') end [2025-03-02 22:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:07:04] Production.INFO: 1 [2025-03-02 22:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:07:04] Production.INFO: ==8522== Lock acquired, processing the job... [2025-03-02 22:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:07:04] Production.INFO: ==8524== Lock acquired, processing the job... [2025-03-02 22:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:07:04] Production.INFO: ==8526== Releasing lock... [2025-03-02 22:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:07:04] Production.INFO: Account Balance Start. [2025-03-02 22:07:04] Production.INFO: CreateAllLog Start [2025-03-02 22:07:04] Production.INFO: 117 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: ==8518== Releasing lock... [2025-03-02 22:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:07:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.ERROR: done [2025-03-02 22:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.ERROR: done [2025-03-02 22:07:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:07:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:07:05] Production.INFO: Total Charge 0 [2025-03-02 22:07:05] Production.INFO: CreateAllLog End [2025-03-02 22:07:05] Production.INFO: Account Balance End. [2025-03-02 22:07:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:07:05] Production.INFO: ==8522== Releasing lock... [2025-03-02 22:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:07:11] Production.ERROR: CronJobId end10 [2025-03-02 22:07:11] Production.INFO: ==8520== Releasing lock... [2025-03-02 22:07:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:07:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:07:14] Production.INFO: call_cost start [2025-03-02 22:07:14] Production.INFO: call_cost end [2025-03-02 22:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:07:14] Production.INFO: ==8516== Releasing lock... [2025-03-02 22:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:07:17] Production.INFO: count ==1335 [2025-03-02 22:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594072', 'tblTempUsageDetail_20' ) start [2025-03-02 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594072', 'tblTempUsageDetail_20' ) end [2025-03-02 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594072', 'tblTempVendorCDR_20' ) start [2025-03-02 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594072', 'tblTempVendorCDR_20' ) end [2025-03-02 22:07:17] Production.INFO: ProcessCDR(1,14594072,1,1,2) [2025-03-02 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594072', 'tblTempUsageDetail_20' ) start [2025-03-02 22:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594072', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:07:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:07:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:07:25] Production.INFO: ==8524== Releasing lock... [2025-03-02 22:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:07:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:08:01] Production.INFO: ==8606== Lock acquired, processing the job... [2025-03-03 03:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:08:01] Production.INFO: neon service started [2025-03-03 03:08:01] Production.INFO: neon service started [2025-03-03 03:08:01] Production.INFO: ==8606== Releasing lock... [2025-03-03 03:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:08:01] Production.INFO: ==8610== Lock acquired, processing the job... [2025-03-03 03:08:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:08:01] Production.INFO: ==8610== Releasing lock... [2025-03-03 03:08:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:08:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:08:01] Production.INFO: ==8608== Lock acquired, processing the job... [2025-03-02 22:08:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:08:02] Production.INFO: ==8608== Releasing lock... [2025-03-02 22:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:08:02] Production.INFO: ==8613== Lock acquired, processing the job... [2025-03-02 22:08:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:08:02] Production.INFO: ==8615== Lock acquired, processing the job... [2025-03-02 22:08:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:08:03] Production.INFO: ==8623== Lock acquired, processing the job... [2025-03-02 22:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:08:03] Production.INFO: ==8615== Releasing lock... [2025-03-02 22:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:08:03] Production.INFO: count ==13 [2025-03-02 22:08:03] Production.INFO: ==8617== Lock acquired, processing the job... [2025-03-02 22:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:08:03] Production.INFO: ==8619== Lock acquired, processing the job... [2025-03-02 22:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:08:03] Production.INFO: count ==21 [2025-03-02 22:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594075') start [2025-03-02 22:08:03] Production.INFO: ==8621== Lock acquired, processing the job... [2025-03-02 22:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:08:03] Production.INFO: Account Balance Start. [2025-03-02 22:08:03] Production.INFO: CreateAllLog Start [2025-03-02 22:08:03] Production.INFO: 117 [2025-03-02 22:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:08:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594075') end [2025-03-02 22:08:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:08:03] Production.INFO: 1 [2025-03-02 22:08:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:08:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.INFO: ==8623== Releasing lock... [2025-03-02 22:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:08:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:08:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:08:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:08:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.ERROR: done [2025-03-02 22:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.ERROR: done [2025-03-02 22:08:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:08:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:08:04] Production.INFO: Total Charge 0 [2025-03-02 22:08:04] Production.INFO: CreateAllLog End [2025-03-02 22:08:04] Production.INFO: Account Balance End. [2025-03-02 22:08:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:08:04] Production.INFO: ==8619== Releasing lock... [2025-03-02 22:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:08:12] Production.ERROR: CronJobId end10 [2025-03-02 22:08:12] Production.INFO: ==8617== Releasing lock... [2025-03-02 22:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:08:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:08:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:08:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:08:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:08:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:08:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:08:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:08:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:08:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:08:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:08:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:08:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:08:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:08:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:08:14] Production.INFO: call_cost start [2025-03-02 22:08:14] Production.INFO: call_cost end [2025-03-02 22:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:08:14] Production.INFO: ==8613== Releasing lock... [2025-03-02 22:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:08:16] Production.INFO: count ==1335 [2025-03-02 22:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594077', 'tblTempUsageDetail_20' ) start [2025-03-02 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594077', 'tblTempUsageDetail_20' ) end [2025-03-02 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594077', 'tblTempVendorCDR_20' ) start [2025-03-02 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594077', 'tblTempVendorCDR_20' ) end [2025-03-02 22:08:16] Production.INFO: ProcessCDR(1,14594077,1,1,2) [2025-03-02 22:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594077', 'tblTempUsageDetail_20' ) start [2025-03-02 22:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594077', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:08:24] Production.INFO: ==8621== Releasing lock... [2025-03-02 22:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:08:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:09:01] Production.INFO: ==8687== Lock acquired, processing the job... [2025-03-03 03:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:09:01] Production.INFO: neon service started [2025-03-03 03:09:01] Production.INFO: neon service started [2025-03-03 03:09:01] Production.INFO: ==8687== Releasing lock... [2025-03-03 03:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:09:02] Production.INFO: ==8689== Lock acquired, processing the job... [2025-03-02 22:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:09:02] Production.INFO: ==8691== Lock acquired, processing the job... [2025-03-03 03:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 22:09:02] Production.INFO: ==8689== Releasing lock... [2025-03-02 22:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:09:02] Production.INFO: ==8691== Releasing lock... [2025-03-03 03:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:09:03] Production.INFO: ==8700== Lock acquired, processing the job... [2025-03-02 22:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:09:03] Production.INFO: ==8694== Lock acquired, processing the job... [2025-03-02 22:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:09:03] Production.INFO: ==8704== Lock acquired, processing the job... [2025-03-02 22:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:09:03] Production.INFO: Account Balance Start. [2025-03-02 22:09:03] Production.INFO: CreateAllLog Start [2025-03-02 22:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:09:03] Production.INFO: 117 [2025-03-02 22:09:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.INFO: ==8696== Lock acquired, processing the job... [2025-03-02 22:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:09:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:09:03] Production.INFO: ==8698== Lock acquired, processing the job... [2025-03-02 22:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:09:03] Production.INFO: count ==13 [2025-03-02 22:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:09:03] Production.INFO: count ==21 [2025-03-02 22:09:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594080') start [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:09:03] Production.INFO: ==8702== Lock acquired, processing the job... [2025-03-02 22:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:09:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594080') end [2025-03-02 22:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:09:03] Production.INFO: 1 [2025-03-02 22:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:09:03] Production.INFO: ==8704== Releasing lock... [2025-03-02 22:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:09:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:09:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: ==8696== Releasing lock... [2025-03-02 22:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:09:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.ERROR: done [2025-03-02 22:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:09:04] Production.ERROR: done [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:09:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:09:04] Production.INFO: Total Charge 0 [2025-03-02 22:09:04] Production.INFO: CreateAllLog End [2025-03-02 22:09:04] Production.INFO: Account Balance End. [2025-03-02 22:09:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:09:04] Production.INFO: ==8700== Releasing lock... [2025-03-02 22:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:09:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:09:11] Production.ERROR: CronJobId end10 [2025-03-02 22:09:11] Production.INFO: ==8698== Releasing lock... [2025-03-02 22:09:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:09:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:09:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:09:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:09:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:09:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:09:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:09:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:09:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:09:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:09:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:09:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:09:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:09:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:09:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:09:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:09:14] Production.INFO: call_cost start [2025-03-02 22:09:14] Production.INFO: call_cost end [2025-03-02 22:09:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:09:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:09:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:09:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:09:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:09:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:09:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:09:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:09:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:09:14] Production.INFO: ==8694== Releasing lock... [2025-03-02 22:09:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:09:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:09:16] Production.INFO: count ==1335 [2025-03-02 22:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594082', 'tblTempUsageDetail_20' ) start [2025-03-02 22:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594082', 'tblTempUsageDetail_20' ) end [2025-03-02 22:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594082', 'tblTempVendorCDR_20' ) start [2025-03-02 22:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594082', 'tblTempVendorCDR_20' ) end [2025-03-02 22:09:16] Production.INFO: ProcessCDR(1,14594082,1,1,2) [2025-03-02 22:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594082', 'tblTempUsageDetail_20' ) start [2025-03-02 22:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594082', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:09:24] Production.INFO: ==8702== Releasing lock... [2025-03-02 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:09:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:10:02] Production.INFO: ==8765== Lock acquired, processing the job... [2025-03-03 03:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:10:02] Production.INFO: neon service started [2025-03-03 03:10:02] Production.INFO: neon service started [2025-03-03 03:10:02] Production.INFO: ==8765== Releasing lock... [2025-03-03 03:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:10:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:10:02] Production.INFO: ==8770== Lock acquired, processing the job... [2025-03-03 03:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:10:02] Production.INFO: ==8770== Releasing lock... [2025-03-03 03:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:10:02] Production.INFO: ==8768== Lock acquired, processing the job... [2025-03-02 22:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:10:03] Production.INFO: ==8768== Releasing lock... [2025-03-02 22:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:10:04] Production.INFO: ==8774== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:10:04] Production.INFO: ==8778== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:10:04] Production.INFO: ==8780== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:10:04] Production.INFO: ==8784== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 22:10:04] Production.INFO: Account Balance Start. [2025-03-02 22:10:04] Production.INFO: CreateAllLog Start [2025-03-02 22:10:04] Production.INFO: 117 [2025-03-02 22:10:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:10:04] Production.INFO: ==8772== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 22:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:04] Production.INFO: ==8776== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:10:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:10:04] Production.ERROR: CronJob PID - 8774 [2025-03-02 22:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 22:10:04] Production.ERROR: CronJob ID - 5 [2025-03-02 22:10:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:10:00 [2025-03-02 22:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:10:04] Production.ERROR: CronJob PID - 8778 [2025-03-02 22:10:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-02 22:10:04] Production.ERROR: CronJob ID - 10 [2025-03-02 22:10:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:10:00 [2025-03-02 22:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:10:04] Production.ERROR: CronJob PID - 8780 [2025-03-02 22:10:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-02 22:10:04] Production.ERROR: CronJob ID - 12 [2025-03-02 22:10:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:10:00 [2025-03-02 22:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:10:04] Production.ERROR: CronJob PID - 8784 [2025-03-02 22:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-02 22:10:04] Production.ERROR: CronJob ID - 17 [2025-03-02 22:10:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:10:00 [2025-03-02 22:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:10:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:04] Production.INFO: ==8782== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:10:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 22:10:04] Production.INFO: ==8772== Releasing lock... [2025-03-02 22:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 22:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 22:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:10:04] Production.INFO: ==8786== Lock acquired, processing the job... [2025-03-02 22:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:10:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-14 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.ERROR: done [2025-03-02 22:10:05] Production.INFO: Date 2025-02-15 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 22:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594087', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 22:10:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:10:05] Production.INFO: count ==13 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:10:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: count ==21 [2025-03-02 22:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594086') start [2025-03-02 22:10:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.ERROR: done [2025-03-02 22:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594086') end [2025-03-02 22:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:10:05] Production.INFO: 1 [2025-03-02 22:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:10:05] Production.INFO: ==8786== Releasing lock... [2025-03-02 22:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:10:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: ==8776== Releasing lock... [2025-03-02 22:10:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:10:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:10:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.ERROR: done [2025-03-02 22:10:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:10:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:10:05] Production.INFO: Total Charge 0 [2025-03-02 22:10:05] Production.INFO: CreateAllLog End [2025-03-02 22:10:06] Production.INFO: Account Balance End. [2025-03-02 22:10:06] Production.ERROR: CronJobId end 12 [2025-03-02 22:10:06] Production.INFO: ==8780== Releasing lock... [2025-03-02 22:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594087', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 22:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 22:10:09] Production.INFO: ProcessCDR(1,14594087,1,1,2) [2025-03-02 22:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594087,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:10:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594087,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:10:10] Production.ERROR: pbx prc_insertCDR start [2025-03-02 22:10:10] Production.ERROR: pbx prc_insertCDR end [2025-03-02 22:10:10] Production.INFO: ==8784== Releasing lock... [2025-03-02 22:10:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 22:10:10] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:10:14] Production.ERROR: CronJobId end10 [2025-03-02 22:10:14] Production.INFO: ==8778== Releasing lock... [2025-03-02 22:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:10:17] Production.INFO: call_cost start [2025-03-02 22:10:17] Production.INFO: call_cost end [2025-03-02 22:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:10:17] Production.INFO: ==8774== Releasing lock... [2025-03-02 22:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:10:17] Production.INFO: count ==1335 [2025-03-02 22:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594088', 'tblTempUsageDetail_20' ) start [2025-03-02 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594088', 'tblTempUsageDetail_20' ) end [2025-03-02 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594088', 'tblTempVendorCDR_20' ) start [2025-03-02 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594088', 'tblTempVendorCDR_20' ) end [2025-03-02 22:10:17] Production.INFO: ProcessCDR(1,14594088,1,1,2) [2025-03-02 22:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594088', 'tblTempUsageDetail_20' ) start [2025-03-02 22:10:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594088', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:10:25] Production.INFO: ==8782== Releasing lock... [2025-03-02 22:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:10:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:11:01] Production.INFO: ==8847== Lock acquired, processing the job... [2025-03-03 03:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:11:01] Production.INFO: neon service started [2025-03-03 03:11:01] Production.INFO: neon service started [2025-03-03 03:11:01] Production.INFO: ==8847== Releasing lock... [2025-03-03 03:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:11:02] Production.INFO: ==8849== Lock acquired, processing the job... [2025-03-02 22:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:11:02] Production.INFO: ==8849== Releasing lock... [2025-03-02 22:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:11:02] Production.INFO: ==8851== Lock acquired, processing the job... [2025-03-03 03:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:11:02] Production.INFO: ==8851== Releasing lock... [2025-03-03 03:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:11:03] Production.INFO: ==8859== Lock acquired, processing the job... [2025-03-02 22:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:11:03] Production.INFO: ==8861== Lock acquired, processing the job... [2025-03-02 22:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:11:03] Production.INFO: Account Balance Start. [2025-03-02 22:11:03] Production.INFO: CreateAllLog Start [2025-03-02 22:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:11:03] Production.INFO: 117 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: ==8853== Lock acquired, processing the job... [2025-03-02 22:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:11:03] Production.INFO: ==8855== Lock acquired, processing the job... [2025-03-02 22:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:11:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: ==8857== Lock acquired, processing the job... [2025-03-02 22:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:11:03] Production.INFO: ==8863== Lock acquired, processing the job... [2025-03-02 22:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:11:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:11:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.ERROR: done [2025-03-02 22:11:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-17 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-18 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-19 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:11:03] Production.INFO: Date 2025-02-20 [2025-03-02 22:11:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:03] Production.INFO: count ==13 [2025-03-02 22:11:03] Production.INFO: Date 2025-02-21 [2025-03-02 22:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:11:03] Production.INFO: count ==21 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: ==8855== Releasing lock... [2025-03-02 22:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594092') start [2025-03-02 22:11:04] Production.ERROR: done [2025-03-02 22:11:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594092') end [2025-03-02 22:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:11:04] Production.INFO: 1 [2025-03-02 22:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:11:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:11:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: ==8863== Releasing lock... [2025-03-02 22:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:11:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:11:04] Production.INFO: Total Charge 0 [2025-03-02 22:11:04] Production.INFO: CreateAllLog End [2025-03-02 22:11:04] Production.INFO: Account Balance End. [2025-03-02 22:11:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:11:04] Production.INFO: ==8859== Releasing lock... [2025-03-02 22:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:11:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:11:11] Production.ERROR: CronJobId end10 [2025-03-02 22:11:11] Production.INFO: ==8857== Releasing lock... [2025-03-02 22:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:11:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:11:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:11:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:11:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:11:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:11:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:11:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:11:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:11:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:11:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:11:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:11:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:11:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:11:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:11:13] Production.INFO: call_cost start [2025-03-02 22:11:13] Production.INFO: call_cost end [2025-03-02 22:11:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:11:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:11:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:11:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:11:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:11:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:11:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:11:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:11:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:11:13] Production.INFO: ==8853== Releasing lock... [2025-03-02 22:11:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:11:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:11:16] Production.INFO: count ==1335 [2025-03-02 22:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594093', 'tblTempUsageDetail_20' ) start [2025-03-02 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594093', 'tblTempUsageDetail_20' ) end [2025-03-02 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594093', 'tblTempVendorCDR_20' ) start [2025-03-02 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594093', 'tblTempVendorCDR_20' ) end [2025-03-02 22:11:16] Production.INFO: ProcessCDR(1,14594093,1,1,2) [2025-03-02 22:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594093', 'tblTempUsageDetail_20' ) start [2025-03-02 22:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594093', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:11:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:11:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:11:23] Production.INFO: ==8861== Releasing lock... [2025-03-02 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:11:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:12:02] Production.INFO: ==8929== Lock acquired, processing the job... [2025-03-03 03:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:12:02] Production.INFO: neon service started [2025-03-03 03:12:02] Production.INFO: neon service started [2025-03-03 03:12:02] Production.INFO: ==8929== Releasing lock... [2025-03-03 03:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:12:02] Production.INFO: ==8931== Lock acquired, processing the job... [2025-03-02 22:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:12:02] Production.INFO: ==8931== Releasing lock... [2025-03-02 22:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:12:03] Production.INFO: ==8933== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:12:03] Production.INFO: ==8933== Releasing lock... [2025-03-03 03:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:12:03] Production.INFO: ==8935== Lock acquired, processing the job... [2025-03-02 22:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:12:03] Production.INFO: ==8937== Lock acquired, processing the job... [2025-03-02 22:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:12:03] Production.INFO: ==8943== Lock acquired, processing the job... [2025-03-02 22:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:12:03] Production.INFO: ==8941== Lock acquired, processing the job... [2025-03-02 22:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:12:03] Production.INFO: ==8939== Lock acquired, processing the job... [2025-03-02 22:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:12:03] Production.INFO: Account Balance Start. [2025-03-02 22:12:03] Production.INFO: CreateAllLog Start [2025-03-02 22:12:03] Production.INFO: 117 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: ==8945== Lock acquired, processing the job... [2025-03-02 22:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:12:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:12:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:12:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:12:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:12:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:12:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: count ==13 [2025-03-02 22:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:12:04] Production.INFO: count ==21 [2025-03-02 22:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594097') start [2025-03-02 22:12:04] Production.ERROR: done [2025-03-02 22:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594097') end [2025-03-02 22:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:12:04] Production.INFO: 1 [2025-03-02 22:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:12:04] Production.ERROR: done [2025-03-02 22:12:04] Production.INFO: ==8937== Releasing lock... [2025-03-02 22:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:12:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: ==8945== Releasing lock... [2025-03-02 22:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:12:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:12:05] Production.INFO: Total Charge 0 [2025-03-02 22:12:05] Production.INFO: CreateAllLog End [2025-03-02 22:12:05] Production.INFO: Account Balance End. [2025-03-02 22:12:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:12:05] Production.INFO: ==8941== Releasing lock... [2025-03-02 22:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:12:11] Production.ERROR: CronJobId end10 [2025-03-02 22:12:11] Production.INFO: ==8939== Releasing lock... [2025-03-02 22:12:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:12:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:12:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:12:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:12:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:12:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:12:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:12:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:12:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:12:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:12:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:12:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:12:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:12:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:12:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:12:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:12:14] Production.INFO: call_cost start [2025-03-02 22:12:14] Production.INFO: call_cost end [2025-03-02 22:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:12:14] Production.INFO: ==8935== Releasing lock... [2025-03-02 22:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:12:16] Production.INFO: count ==1335 [2025-03-02 22:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594098', 'tblTempUsageDetail_20' ) start [2025-03-02 22:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594098', 'tblTempUsageDetail_20' ) end [2025-03-02 22:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594098', 'tblTempVendorCDR_20' ) start [2025-03-02 22:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594098', 'tblTempVendorCDR_20' ) end [2025-03-02 22:12:16] Production.INFO: ProcessCDR(1,14594098,1,1,2) [2025-03-02 22:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594098', 'tblTempUsageDetail_20' ) start [2025-03-02 22:12:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594098', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:12:24] Production.INFO: ==8943== Releasing lock... [2025-03-02 22:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:12:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:13:01] Production.INFO: ==9007== Lock acquired, processing the job... [2025-03-03 03:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:13:01] Production.INFO: neon service started [2025-03-03 03:13:01] Production.INFO: neon service started [2025-03-03 03:13:01] Production.INFO: ==9007== Releasing lock... [2025-03-03 03:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:13:02] Production.INFO: ==9009== Lock acquired, processing the job... [2025-03-02 22:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:13:02] Production.INFO: ==9009== Releasing lock... [2025-03-02 22:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:13:02] Production.INFO: ==9011== Lock acquired, processing the job... [2025-03-03 03:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:13:02] Production.INFO: ==9011== Releasing lock... [2025-03-03 03:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:13:03] Production.INFO: ==9016== Lock acquired, processing the job... [2025-03-02 22:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:13:03] Production.INFO: ==9014== Lock acquired, processing the job... [2025-03-02 22:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:13:03] Production.INFO: ==9024== Lock acquired, processing the job... [2025-03-02 22:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:13:03] Production.INFO: ==9018== Lock acquired, processing the job... [2025-03-02 22:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:13:03] Production.INFO: ==9016== Releasing lock... [2025-03-02 22:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:13:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:13:03] Production.INFO: count ==13 [2025-03-02 22:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:13:03] Production.INFO: count ==21 [2025-03-02 22:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594100') start [2025-03-02 22:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:13:03] Production.INFO: ==9020== Lock acquired, processing the job... [2025-03-02 22:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594100') end [2025-03-02 22:13:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:13:03] Production.INFO: 1 [2025-03-02 22:13:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:13:03] Production.INFO: ==9022== Lock acquired, processing the job... [2025-03-02 22:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:13:03] Production.INFO: Account Balance Start. [2025-03-02 22:13:03] Production.INFO: CreateAllLog Start [2025-03-02 22:13:03] Production.INFO: 117 [2025-03-02 22:13:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:13:03] Production.INFO: ==9024== Releasing lock... [2025-03-02 22:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:13:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.ERROR: done [2025-03-02 22:13:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.ERROR: done [2025-03-02 22:13:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:13:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:13:04] Production.INFO: Total Charge 0 [2025-03-02 22:13:04] Production.INFO: CreateAllLog End [2025-03-02 22:13:04] Production.INFO: Account Balance End. [2025-03-02 22:13:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:13:05] Production.INFO: ==9020== Releasing lock... [2025-03-02 22:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:13:11] Production.ERROR: CronJobId end10 [2025-03-02 22:13:11] Production.INFO: ==9018== Releasing lock... [2025-03-02 22:13:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:13:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:13:14] Production.INFO: call_cost start [2025-03-02 22:13:14] Production.INFO: call_cost end [2025-03-02 22:13:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:13:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:13:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:13:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:13:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:13:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:13:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:13:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:13:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:13:14] Production.INFO: ==9014== Releasing lock... [2025-03-02 22:13:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:13:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:13:16] Production.INFO: count ==1335 [2025-03-02 22:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594103', 'tblTempUsageDetail_20' ) start [2025-03-02 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594103', 'tblTempUsageDetail_20' ) end [2025-03-02 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594103', 'tblTempVendorCDR_20' ) start [2025-03-02 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594103', 'tblTempVendorCDR_20' ) end [2025-03-02 22:13:16] Production.INFO: ProcessCDR(1,14594103,1,1,2) [2025-03-02 22:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594103', 'tblTempUsageDetail_20' ) start [2025-03-02 22:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594103', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:13:24] Production.INFO: ==9022== Releasing lock... [2025-03-02 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:13:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:14:02] Production.INFO: ==9102== Lock acquired, processing the job... [2025-03-03 03:14:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:14:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:14:02] Production.INFO: neon service started [2025-03-03 03:14:02] Production.INFO: neon service started [2025-03-03 03:14:02] Production.INFO: ==9102== Releasing lock... [2025-03-03 03:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:14:02] Production.INFO: ==9106== Lock acquired, processing the job... [2025-03-03 03:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:14:02] Production.INFO: ==9106== Releasing lock... [2025-03-03 03:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:14:02] Production.INFO: ==9104== Lock acquired, processing the job... [2025-03-02 22:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:14:02] Production.INFO: ==9104== Releasing lock... [2025-03-02 22:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:14:03] Production.INFO: ==9111== Lock acquired, processing the job... [2025-03-02 22:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:14:03] Production.INFO: ==9113== Lock acquired, processing the job... [2025-03-02 22:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:14:03] Production.INFO: ==9121== Lock acquired, processing the job... [2025-03-02 22:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:14:04] Production.INFO: ==9115== Lock acquired, processing the job... [2025-03-02 22:14:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:14:04] Production.INFO: ==9113== Releasing lock... [2025-03-02 22:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:14:04] Production.INFO: ==9117== Lock acquired, processing the job... [2025-03-02 22:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:14:04] Production.INFO: count ==13 [2025-03-02 22:14:04] Production.INFO: ==9119== Lock acquired, processing the job... [2025-03-02 22:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:14:04] Production.INFO: count ==21 [2025-03-02 22:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594106') start [2025-03-02 22:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:14:04] Production.INFO: Account Balance Start. [2025-03-02 22:14:04] Production.INFO: CreateAllLog Start [2025-03-02 22:14:04] Production.INFO: 117 [2025-03-02 22:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594106') end [2025-03-02 22:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:14:04] Production.INFO: 1 [2025-03-02 22:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:14:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.INFO: ==9121== Releasing lock... [2025-03-02 22:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:14:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.ERROR: done [2025-03-02 22:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:14:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.ERROR: done [2025-03-02 22:14:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:14:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:14:05] Production.INFO: Total Charge 0 [2025-03-02 22:14:05] Production.INFO: CreateAllLog End [2025-03-02 22:14:05] Production.INFO: Account Balance End. [2025-03-02 22:14:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:14:05] Production.INFO: ==9117== Releasing lock... [2025-03-02 22:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:14:12] Production.ERROR: CronJobId end10 [2025-03-02 22:14:12] Production.INFO: ==9115== Releasing lock... [2025-03-02 22:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:14:14] Production.INFO: call_cost start [2025-03-02 22:14:14] Production.INFO: call_cost end [2025-03-02 22:14:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:14:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:14:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:14:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:14:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:14:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:14:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:14:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:14:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:14:14] Production.INFO: ==9111== Releasing lock... [2025-03-02 22:14:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:14:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:14:17] Production.INFO: count ==1335 [2025-03-02 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594108', 'tblTempUsageDetail_20' ) start [2025-03-02 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594108', 'tblTempUsageDetail_20' ) end [2025-03-02 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594108', 'tblTempVendorCDR_20' ) start [2025-03-02 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594108', 'tblTempVendorCDR_20' ) end [2025-03-02 22:14:17] Production.INFO: ProcessCDR(1,14594108,1,1,2) [2025-03-02 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594108', 'tblTempUsageDetail_20' ) start [2025-03-02 22:14:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594108', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:14:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:14:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:14:25] Production.INFO: ==9119== Releasing lock... [2025-03-02 22:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:14:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:15:01] Production.INFO: ==9189== Lock acquired, processing the job... [2025-03-03 03:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:15:01] Production.INFO: neon service started [2025-03-03 03:15:01] Production.INFO: neon service started [2025-03-03 03:15:01] Production.INFO: ==9189== Releasing lock... [2025-03-03 03:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:15:02] Production.INFO: ==9191== Lock acquired, processing the job... [2025-03-02 22:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:15:02] Production.INFO: ==9193== Lock acquired, processing the job... [2025-03-03 03:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:15:02] Production.INFO: ==9193== Releasing lock... [2025-03-03 03:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:15:02] Production.INFO: ==9191== Releasing lock... [2025-03-02 22:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:15:03] Production.INFO: ==9200== Lock acquired, processing the job... [2025-03-02 22:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:15:03] Production.INFO: ==9196== Lock acquired, processing the job... [2025-03-02 22:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:15:03] Production.INFO: ==9198== Lock acquired, processing the job... [2025-03-02 22:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:15:03] Production.INFO: ==9204== Lock acquired, processing the job... [2025-03-02 22:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:15:03] Production.INFO: ==9202== Lock acquired, processing the job... [2025-03-02 22:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:15:03] Production.INFO: ==9206== Lock acquired, processing the job... [2025-03-02 22:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:15:03] Production.INFO: Account Balance Start. [2025-03-02 22:15:03] Production.INFO: CreateAllLog Start [2025-03-02 22:15:03] Production.INFO: 117 [2025-03-02 22:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:15:03] Production.INFO: count ==13 [2025-03-02 22:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:15:03] Production.INFO: count ==21 [2025-03-02 22:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594111') start [2025-03-02 22:15:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:15:03] Production.INFO: ==9198== Releasing lock... [2025-03-02 22:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594111') end [2025-03-02 22:15:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:15:03] Production.INFO: 1 [2025-03-02 22:15:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:15:03] Production.INFO: ==9206== Releasing lock... [2025-03-02 22:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:15:04] Production.ERROR: done [2025-03-02 22:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.ERROR: done [2025-03-02 22:15:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:15:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:15:04] Production.INFO: Total Charge 0 [2025-03-02 22:15:04] Production.INFO: CreateAllLog End [2025-03-02 22:15:05] Production.INFO: Account Balance End. [2025-03-02 22:15:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:15:05] Production.INFO: ==9202== Releasing lock... [2025-03-02 22:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:15:12] Production.ERROR: CronJobId end10 [2025-03-02 22:15:12] Production.INFO: ==9200== Releasing lock... [2025-03-02 22:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:15:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:15:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:15:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:15:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:15:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:15:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:15:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:15:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:15:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:15:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:15:14] Production.INFO: call_cost start [2025-03-02 22:15:14] Production.INFO: call_cost end [2025-03-02 22:15:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:15:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:15:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:15:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:15:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:15:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:15:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:15:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:15:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:15:14] Production.INFO: ==9196== Releasing lock... [2025-03-02 22:15:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:15:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:15:16] Production.INFO: count ==1335 [2025-03-02 22:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594113', 'tblTempUsageDetail_20' ) start [2025-03-02 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594113', 'tblTempUsageDetail_20' ) end [2025-03-02 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594113', 'tblTempVendorCDR_20' ) start [2025-03-02 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594113', 'tblTempVendorCDR_20' ) end [2025-03-02 22:15:16] Production.INFO: ProcessCDR(1,14594113,1,1,2) [2025-03-02 22:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594113', 'tblTempUsageDetail_20' ) start [2025-03-02 22:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594113', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:15:24] Production.INFO: ==9204== Releasing lock... [2025-03-02 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:15:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:16:01] Production.INFO: ==9268== Lock acquired, processing the job... [2025-03-03 03:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:16:02] Production.INFO: neon service started [2025-03-03 03:16:02] Production.INFO: neon service started [2025-03-03 03:16:02] Production.INFO: ==9268== Releasing lock... [2025-03-03 03:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:16:02] Production.INFO: ==9270== Lock acquired, processing the job... [2025-03-02 22:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:16:02] Production.INFO: ==9270== Releasing lock... [2025-03-02 22:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:16:02] Production.INFO: ==9272== Lock acquired, processing the job... [2025-03-03 03:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:16:02] Production.INFO: ==9272== Releasing lock... [2025-03-03 03:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:16:03] Production.INFO: ==9279== Lock acquired, processing the job... [2025-03-02 22:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:16:03] Production.INFO: ==9283== Lock acquired, processing the job... [2025-03-02 22:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:16:03] Production.INFO: ==9277== Lock acquired, processing the job... [2025-03-02 22:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:16:03] Production.INFO: ==9275== Lock acquired, processing the job... [2025-03-02 22:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:16:03] Production.INFO: ==9281== Lock acquired, processing the job... [2025-03-02 22:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:16:03] Production.INFO: ==9285== Lock acquired, processing the job... [2025-03-02 22:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:16:04] Production.INFO: Account Balance Start. [2025-03-02 22:16:04] Production.INFO: CreateAllLog Start [2025-03-02 22:16:04] Production.INFO: 117 [2025-03-02 22:16:04] Production.ERROR: done [2025-03-02 22:16:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:16:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: count ==13 [2025-03-02 22:16:04] Production.ERROR: done [2025-03-02 22:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:16:04] Production.INFO: count ==21 [2025-03-02 22:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594115') start [2025-03-02 22:16:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594115') end [2025-03-02 22:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:16:04] Production.INFO: 1 [2025-03-02 22:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:16:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: ==9285== Releasing lock... [2025-03-02 22:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:16:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: ==9277== Releasing lock... [2025-03-02 22:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:16:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:16:05] Production.INFO: Total Charge 0 [2025-03-02 22:16:05] Production.INFO: CreateAllLog End [2025-03-02 22:16:05] Production.INFO: Account Balance End. [2025-03-02 22:16:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:16:05] Production.INFO: ==9281== Releasing lock... [2025-03-02 22:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:16:12] Production.ERROR: CronJobId end10 [2025-03-02 22:16:12] Production.INFO: ==9279== Releasing lock... [2025-03-02 22:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:16:14] Production.INFO: call_cost start [2025-03-02 22:16:14] Production.INFO: call_cost end [2025-03-02 22:16:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:16:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:16:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:16:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:16:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:16:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:16:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:16:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:16:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:16:14] Production.INFO: ==9275== Releasing lock... [2025-03-02 22:16:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:16:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:16:16] Production.INFO: count ==1335 [2025-03-02 22:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594118', 'tblTempUsageDetail_20' ) start [2025-03-02 22:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594118', 'tblTempUsageDetail_20' ) end [2025-03-02 22:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594118', 'tblTempVendorCDR_20' ) start [2025-03-02 22:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594118', 'tblTempVendorCDR_20' ) end [2025-03-02 22:16:16] Production.INFO: ProcessCDR(1,14594118,1,1,2) [2025-03-02 22:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594118', 'tblTempUsageDetail_20' ) start [2025-03-02 22:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594118', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:16:24] Production.INFO: ==9283== Releasing lock... [2025-03-02 22:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:17:01] Production.INFO: ==9399== Lock acquired, processing the job... [2025-03-03 03:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:17:01] Production.INFO: neon service started [2025-03-03 03:17:01] Production.INFO: neon service started [2025-03-03 03:17:01] Production.INFO: ==9399== Releasing lock... [2025-03-03 03:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:17:02] Production.INFO: ==9403== Lock acquired, processing the job... [2025-03-02 22:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:17:02] Production.INFO: ==9405== Lock acquired, processing the job... [2025-03-03 03:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 22:17:02] Production.INFO: ==9403== Releasing lock... [2025-03-02 22:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:17:02] Production.INFO: ==9405== Releasing lock... [2025-03-03 03:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:17:03] Production.INFO: ==9411== Lock acquired, processing the job... [2025-03-02 22:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:17:03] Production.INFO: ==9413== Lock acquired, processing the job... [2025-03-02 22:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:17:03] Production.INFO: ==9419== Lock acquired, processing the job... [2025-03-02 22:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:17:03] Production.INFO: ==9415== Lock acquired, processing the job... [2025-03-02 22:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:17:04] Production.INFO: ==9417== Lock acquired, processing the job... [2025-03-02 22:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:17:04] Production.INFO: ==9421== Lock acquired, processing the job... [2025-03-02 22:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:17:04] Production.INFO: ==9413== Releasing lock... [2025-03-02 22:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:17:04] Production.INFO: Account Balance Start. [2025-03-02 22:17:04] Production.INFO: CreateAllLog Start [2025-03-02 22:17:04] Production.INFO: 117 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:17:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: count ==13 [2025-03-02 22:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:17:04] Production.INFO: count ==21 [2025-03-02 22:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594122') start [2025-03-02 22:17:04] Production.ERROR: done [2025-03-02 22:17:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594122') end [2025-03-02 22:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:17:04] Production.INFO: 1 [2025-03-02 22:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:17:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: ==9421== Releasing lock... [2025-03-02 22:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:17:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.ERROR: done [2025-03-02 22:17:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:17:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:17:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:17:05] Production.INFO: Total Charge 0 [2025-03-02 22:17:05] Production.INFO: CreateAllLog End [2025-03-02 22:17:05] Production.INFO: Account Balance End. [2025-03-02 22:17:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:17:05] Production.INFO: ==9417== Releasing lock... [2025-03-02 22:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:17:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:17:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:17:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:17:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:17:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:17:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:17:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:17:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:17:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:17:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:17:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:17:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:17:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:17:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:17:15] Production.ERROR: CronJobId end10 [2025-03-02 22:17:15] Production.INFO: ==9415== Releasing lock... [2025-03-02 22:17:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:17:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:17:15] Production.INFO: call_cost start [2025-03-02 22:17:15] Production.INFO: call_cost end [2025-03-02 22:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:17:15] Production.INFO: ==9411== Releasing lock... [2025-03-02 22:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:17:16] Production.INFO: count ==1335 [2025-03-02 22:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594123', 'tblTempUsageDetail_20' ) start [2025-03-02 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594123', 'tblTempUsageDetail_20' ) end [2025-03-02 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594123', 'tblTempVendorCDR_20' ) start [2025-03-02 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594123', 'tblTempVendorCDR_20' ) end [2025-03-02 22:17:17] Production.INFO: ProcessCDR(1,14594123,1,1,2) [2025-03-02 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594123', 'tblTempUsageDetail_20' ) start [2025-03-02 22:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594123', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:17:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:17:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:17:25] Production.INFO: ==9419== Releasing lock... [2025-03-02 22:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:17:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:18:02] Production.INFO: ==9493== Lock acquired, processing the job... [2025-03-03 03:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:18:02] Production.INFO: neon service started [2025-03-03 03:18:02] Production.INFO: neon service started [2025-03-03 03:18:02] Production.INFO: ==9493== Releasing lock... [2025-03-03 03:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:18:03] Production.INFO: ==9497== Lock acquired, processing the job... [2025-03-02 22:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:18:03] Production.INFO: ==9499== Lock acquired, processing the job... [2025-03-03 03:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:18:03] Production.INFO: ==9499== Releasing lock... [2025-03-03 03:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:18:03] Production.INFO: ==9497== Releasing lock... [2025-03-02 22:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:18:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:18:04] Production.INFO: ==9504== Lock acquired, processing the job... [2025-03-02 22:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:18:04] Production.INFO: ==9506== Lock acquired, processing the job... [2025-03-02 22:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:18:04] Production.INFO: ==9508== Lock acquired, processing the job... [2025-03-02 22:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:18:04] Production.INFO: ==9502== Lock acquired, processing the job... [2025-03-02 22:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:18:04] Production.INFO: Account Balance Start. [2025-03-02 22:18:04] Production.INFO: CreateAllLog Start [2025-03-02 22:18:04] Production.INFO: 117 [2025-03-02 22:18:04] Production.INFO: ==9504== Releasing lock... [2025-03-02 22:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:18:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:04] Production.INFO: ==9510== Lock acquired, processing the job... [2025-03-02 22:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:18:04] Production.INFO: ==9512== Lock acquired, processing the job... [2025-03-02 22:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:18:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:18:05] Production.ERROR: done [2025-03-02 22:18:05] Production.INFO: Date 2025-02-13 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:18:05] Production.INFO: count ==13 [2025-03-02 22:18:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:18:05] Production.INFO: Date 2025-02-14 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: count ==21 [2025-03-02 22:18:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594127') start [2025-03-02 22:18:05] Production.INFO: Date 2025-02-15 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.ERROR: done [2025-03-02 22:18:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594127') end [2025-03-02 22:18:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:18:05] Production.INFO: 1 [2025-03-02 22:18:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:18:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:18:05] Production.INFO: ==9512== Releasing lock... [2025-03-02 22:18:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:18:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:18:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:18:06] Production.INFO: Total Charge 0 [2025-03-02 22:18:06] Production.INFO: CreateAllLog End [2025-03-02 22:18:06] Production.INFO: Account Balance End. [2025-03-02 22:18:06] Production.ERROR: CronJobId end 12 [2025-03-02 22:18:06] Production.INFO: ==9508== Releasing lock... [2025-03-02 22:18:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:18:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:18:14] Production.ERROR: CronJobId end10 [2025-03-02 22:18:14] Production.INFO: ==9506== Releasing lock... [2025-03-02 22:18:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:18:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:18:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:18:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:18:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:18:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:18:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:18:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:18:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:18:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:18:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:18:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:18:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:18:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:18:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:18:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:18:16] Production.INFO: call_cost start [2025-03-02 22:18:16] Production.INFO: call_cost end [2025-03-02 22:18:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:18:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:18:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:18:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:18:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:18:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:18:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:18:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:18:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:18:16] Production.INFO: ==9502== Releasing lock... [2025-03-02 22:18:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:18:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:18:17] Production.INFO: count ==1335 [2025-03-02 22:18:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594128', 'tblTempUsageDetail_20' ) start [2025-03-02 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594128', 'tblTempUsageDetail_20' ) end [2025-03-02 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594128', 'tblTempVendorCDR_20' ) start [2025-03-02 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594128', 'tblTempVendorCDR_20' ) end [2025-03-02 22:18:17] Production.INFO: ProcessCDR(1,14594128,1,1,2) [2025-03-02 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594128', 'tblTempUsageDetail_20' ) start [2025-03-02 22:18:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594128', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:18:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:18:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:18:25] Production.INFO: ==9510== Releasing lock... [2025-03-02 22:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:18:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:19:01] Production.INFO: ==9572== Lock acquired, processing the job... [2025-03-03 03:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:19:02] Production.INFO: neon service started [2025-03-03 03:19:02] Production.INFO: neon service started [2025-03-03 03:19:02] Production.INFO: ==9572== Releasing lock... [2025-03-03 03:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:19:02] Production.INFO: ==9576== Lock acquired, processing the job... [2025-03-03 03:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:19:02] Production.INFO: ==9576== Releasing lock... [2025-03-03 03:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:19:02] Production.INFO: ==9574== Lock acquired, processing the job... [2025-03-02 22:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:19:02] Production.INFO: ==9574== Releasing lock... [2025-03-02 22:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:19:03] Production.INFO: ==9579== Lock acquired, processing the job... [2025-03-02 22:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:19:03] Production.INFO: ==9581== Lock acquired, processing the job... [2025-03-02 22:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:19:03] Production.INFO: ==9585== Lock acquired, processing the job... [2025-03-02 22:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:19:03] Production.INFO: ==9583== Lock acquired, processing the job... [2025-03-02 22:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:19:03] Production.INFO: ==9587== Lock acquired, processing the job... [2025-03-02 22:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:19:03] Production.INFO: Account Balance Start. [2025-03-02 22:19:03] Production.INFO: CreateAllLog Start [2025-03-02 22:19:03] Production.INFO: 117 [2025-03-02 22:19:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:03] Production.INFO: ==9581== Releasing lock... [2025-03-02 22:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:19:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:03] Production.INFO: ==9589== Lock acquired, processing the job... [2025-03-02 22:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:19:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:19:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: count ==13 [2025-03-02 22:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:19:04] Production.INFO: count ==21 [2025-03-02 22:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594132') start [2025-03-02 22:19:04] Production.ERROR: done [2025-03-02 22:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594132') end [2025-03-02 22:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:19:04] Production.INFO: 1 [2025-03-02 22:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:19:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: ==9589== Releasing lock... [2025-03-02 22:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:19:04] Production.ERROR: done [2025-03-02 22:19:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:19:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:19:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:19:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:19:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:19:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:19:05] Production.INFO: Total Charge 0 [2025-03-02 22:19:05] Production.INFO: CreateAllLog End [2025-03-02 22:19:05] Production.INFO: Account Balance End. [2025-03-02 22:19:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:19:05] Production.INFO: ==9585== Releasing lock... [2025-03-02 22:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:19:12] Production.ERROR: CronJobId end10 [2025-03-02 22:19:12] Production.INFO: ==9583== Releasing lock... [2025-03-02 22:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:19:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:19:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:19:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:19:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:19:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:19:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:19:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:19:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:19:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:19:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:19:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:19:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:19:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:19:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:19:13] Production.INFO: call_cost start [2025-03-02 22:19:13] Production.INFO: call_cost end [2025-03-02 22:19:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:19:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:19:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:19:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:19:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:19:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:19:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:19:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:19:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:19:13] Production.INFO: ==9579== Releasing lock... [2025-03-02 22:19:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:19:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:19:16] Production.INFO: count ==1335 [2025-03-02 22:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594133', 'tblTempUsageDetail_20' ) start [2025-03-02 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594133', 'tblTempUsageDetail_20' ) end [2025-03-02 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594133', 'tblTempVendorCDR_20' ) start [2025-03-02 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594133', 'tblTempVendorCDR_20' ) end [2025-03-02 22:19:16] Production.INFO: ProcessCDR(1,14594133,1,1,2) [2025-03-02 22:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594133', 'tblTempUsageDetail_20' ) start [2025-03-02 22:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594133', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:19:24] Production.INFO: ==9587== Releasing lock... [2025-03-02 22:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:19:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:20:01] Production.INFO: ==9644== Lock acquired, processing the job... [2025-03-03 03:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:20:01] Production.INFO: neon service started [2025-03-03 03:20:01] Production.INFO: neon service started [2025-03-03 03:20:01] Production.INFO: ==9644== Releasing lock... [2025-03-03 03:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:20:01] Production.INFO: ==9648== Lock acquired, processing the job... [2025-03-03 03:20:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:20:01] Production.INFO: ==9648== Releasing lock... [2025-03-03 03:20:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:20:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:20:01] Production.INFO: ==9646== Lock acquired, processing the job... [2025-03-02 22:20:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:20:02] Production.INFO: ==9646== Releasing lock... [2025-03-02 22:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:20:03] Production.INFO: ==9652== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:20:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:20:03] Production.INFO: ==9650== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 22:20:03] Production.INFO: ==9660== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:20:03] Production.INFO: ==9654== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:20:03] Production.INFO: ==9662== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 22:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 22:20:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:20:03] Production.ERROR: CronJob PID - 9652 [2025-03-02 22:20:03] Production.ERROR: CronJob Title - System Alerts [2025-03-02 22:20:03] Production.ERROR: CronJob ID - 5 [2025-03-02 22:20:03] Production.ERROR: CronJob Last Run Time 2025-03-02 22:20:00 [2025-03-02 22:20:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:20:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:20:03] Production.INFO: ==9656== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 22:20:03] Production.INFO: ==9650== Releasing lock... [2025-03-02 22:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 22:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 22:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:20:03] Production.INFO: ==9658== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:20:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:20:03] Production.INFO: ==9665== Lock acquired, processing the job... [2025-03-02 22:20:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:20:04] Production.INFO: ==9654== Releasing lock... [2025-03-02 22:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:20:04] Production.INFO: Account Balance Start. [2025-03-02 22:20:04] Production.INFO: CreateAllLog Start [2025-03-02 22:20:04] Production.INFO: 117 [2025-03-02 22:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:20:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: count ==13 [2025-03-02 22:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:20:04] Production.INFO: count ==21 [2025-03-02 22:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594137') start [2025-03-02 22:20:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.ERROR: done [2025-03-02 22:20:04] Production.ERROR: done [2025-03-02 22:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594137') end [2025-03-02 22:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:20:04] Production.INFO: 1 [2025-03-02 22:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:20:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 22:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594138', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 22:20:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: ==9665== Releasing lock... [2025-03-02 22:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:20:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.ERROR: done [2025-03-02 22:20:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:20:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:20:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:20:05] Production.INFO: Total Charge 0 [2025-03-02 22:20:05] Production.INFO: CreateAllLog End [2025-03-02 22:20:05] Production.INFO: Account Balance End. [2025-03-02 22:20:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:20:05] Production.INFO: ==9658== Releasing lock... [2025-03-02 22:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:20:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594138', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 22:20:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 22:20:08] Production.INFO: ProcessCDR(1,14594138,1,1,2) [2025-03-02 22:20:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594138,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:20:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594138,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:20:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 22:20:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 22:20:08] Production.INFO: ==9662== Releasing lock... [2025-03-02 22:20:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 22:20:08] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:20:12] Production.ERROR: CronJobId end10 [2025-03-02 22:20:12] Production.INFO: ==9656== Releasing lock... [2025-03-02 22:20:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:20:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:20:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:20:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:20:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:20:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:20:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:20:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:20:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:20:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:20:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:20:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:20:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:20:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:20:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:20:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:20:15] Production.INFO: call_cost start [2025-03-02 22:20:15] Production.INFO: call_cost end [2025-03-02 22:20:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:20:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:20:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:20:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:20:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:20:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:20:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:20:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:20:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:20:15] Production.INFO: ==9652== Releasing lock... [2025-03-02 22:20:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:20:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:20:16] Production.INFO: count ==1335 [2025-03-02 22:20:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:20:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594139', 'tblTempUsageDetail_20' ) start [2025-03-02 22:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594139', 'tblTempUsageDetail_20' ) end [2025-03-02 22:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594139', 'tblTempVendorCDR_20' ) start [2025-03-02 22:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594139', 'tblTempVendorCDR_20' ) end [2025-03-02 22:20:16] Production.INFO: ProcessCDR(1,14594139,1,1,2) [2025-03-02 22:20:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594139', 'tblTempUsageDetail_20' ) start [2025-03-02 22:20:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594139', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:20:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:20:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:20:24] Production.INFO: ==9660== Releasing lock... [2025-03-02 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:21:01] Production.INFO: ==9726== Lock acquired, processing the job... [2025-03-03 03:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:21:01] Production.INFO: neon service started [2025-03-03 03:21:01] Production.INFO: neon service started [2025-03-03 03:21:01] Production.INFO: ==9726== Releasing lock... [2025-03-03 03:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:21:02] Production.INFO: ==9728== Lock acquired, processing the job... [2025-03-02 22:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:21:02] Production.INFO: ==9730== Lock acquired, processing the job... [2025-03-03 03:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:21:02] Production.INFO: ==9730== Releasing lock... [2025-03-03 03:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:21:02] Production.INFO: ==9728== Releasing lock... [2025-03-02 22:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:21:03] Production.INFO: ==9733== Lock acquired, processing the job... [2025-03-02 22:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:21:03] Production.INFO: ==9737== Lock acquired, processing the job... [2025-03-02 22:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:21:04] Production.INFO: ==9743== Lock acquired, processing the job... [2025-03-02 22:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:21:04] Production.INFO: ==9735== Lock acquired, processing the job... [2025-03-02 22:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:21:04] Production.INFO: ==9741== Lock acquired, processing the job... [2025-03-02 22:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:21:04] Production.INFO: count ==13 [2025-03-02 22:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:21:04] Production.INFO: ==9739== Lock acquired, processing the job... [2025-03-02 22:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:21:04] Production.INFO: count ==21 [2025-03-02 22:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594141') start [2025-03-02 22:21:04] Production.INFO: Account Balance Start. [2025-03-02 22:21:04] Production.INFO: CreateAllLog Start [2025-03-02 22:21:04] Production.INFO: 117 [2025-03-02 22:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594141') end [2025-03-02 22:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:21:04] Production.INFO: 1 [2025-03-02 22:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:21:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:04] Production.INFO: ==9743== Releasing lock... [2025-03-02 22:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:21:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:04] Production.ERROR: done [2025-03-02 22:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:21:04] Production.INFO: ==9735== Releasing lock... [2025-03-02 22:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:21:05] Production.INFO: Date 2025-02-12 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.ERROR: done [2025-03-02 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:21:05] Production.INFO: Date 2025-02-13 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-14 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-15 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:21:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:21:05] Production.INFO: Total Charge 0 [2025-03-02 22:21:05] Production.INFO: CreateAllLog End [2025-03-02 22:21:05] Production.INFO: Account Balance End. [2025-03-02 22:21:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:21:05] Production.INFO: ==9739== Releasing lock... [2025-03-02 22:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:21:13] Production.ERROR: CronJobId end10 [2025-03-02 22:21:13] Production.INFO: ==9737== Releasing lock... [2025-03-02 22:21:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:21:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:21:15] Production.INFO: call_cost start [2025-03-02 22:21:15] Production.INFO: call_cost end [2025-03-02 22:21:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:21:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:21:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:21:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:21:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:21:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:21:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:21:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:21:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:21:15] Production.INFO: ==9733== Releasing lock... [2025-03-02 22:21:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:21:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:21:17] Production.INFO: count ==1335 [2025-03-02 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594144', 'tblTempUsageDetail_20' ) start [2025-03-02 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594144', 'tblTempUsageDetail_20' ) end [2025-03-02 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594144', 'tblTempVendorCDR_20' ) start [2025-03-02 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594144', 'tblTempVendorCDR_20' ) end [2025-03-02 22:21:17] Production.INFO: ProcessCDR(1,14594144,1,1,2) [2025-03-02 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594144', 'tblTempUsageDetail_20' ) start [2025-03-02 22:21:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594144', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:21:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:21:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:21:25] Production.INFO: ==9741== Releasing lock... [2025-03-02 22:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:21:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:22:02] Production.INFO: ==9831== Lock acquired, processing the job... [2025-03-03 03:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:22:02] Production.INFO: neon service started [2025-03-03 03:22:02] Production.INFO: neon service started [2025-03-03 03:22:02] Production.INFO: ==9831== Releasing lock... [2025-03-03 03:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:22:02] Production.INFO: ==9833== Lock acquired, processing the job... [2025-03-02 22:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:22:03] Production.INFO: ==9833== Releasing lock... [2025-03-02 22:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:22:03] Production.INFO: ==9835== Lock acquired, processing the job... [2025-03-03 03:22:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:22:03] Production.INFO: ==9835== Releasing lock... [2025-03-03 03:22:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:22:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:22:04] Production.INFO: ==9844== Lock acquired, processing the job... [2025-03-02 22:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:22:04] Production.INFO: ==9848== Lock acquired, processing the job... [2025-03-02 22:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:22:04] Production.INFO: ==9840== Lock acquired, processing the job... [2025-03-02 22:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:22:04] Production.INFO: ==9842== Lock acquired, processing the job... [2025-03-02 22:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:22:04] Production.INFO: ==9846== Lock acquired, processing the job... [2025-03-02 22:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:22:04] Production.INFO: ==9850== Lock acquired, processing the job... [2025-03-02 22:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:22:04] Production.INFO: Account Balance Start. [2025-03-02 22:22:04] Production.INFO: CreateAllLog Start [2025-03-02 22:22:04] Production.INFO: 117 [2025-03-02 22:22:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:22:04] Production.ERROR: done [2025-03-02 22:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:04] Production.INFO: count ==13 [2025-03-02 22:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:22:04] Production.INFO: count ==21 [2025-03-02 22:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594148') start [2025-03-02 22:22:04] Production.ERROR: done [2025-03-02 22:22:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:04] Production.INFO: ==9842== Releasing lock... [2025-03-02 22:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:22:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594148') end [2025-03-02 22:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:22:05] Production.INFO: 1 [2025-03-02 22:22:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:22:05] Production.INFO: Date 2025-02-12 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: ==9850== Releasing lock... [2025-03-02 22:22:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:22:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:22:05] Production.INFO: Date 2025-02-13 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-14 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-15 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:22:05] Production.INFO: Total Charge 0 [2025-03-02 22:22:05] Production.INFO: CreateAllLog End [2025-03-02 22:22:05] Production.INFO: Account Balance End. [2025-03-02 22:22:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:22:05] Production.INFO: ==9846== Releasing lock... [2025-03-02 22:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:22:13] Production.ERROR: CronJobId end10 [2025-03-02 22:22:13] Production.INFO: ==9844== Releasing lock... [2025-03-02 22:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:22:15] Production.INFO: call_cost start [2025-03-02 22:22:15] Production.INFO: call_cost end [2025-03-02 22:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:22:15] Production.INFO: ==9840== Releasing lock... [2025-03-02 22:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:22:17] Production.INFO: count ==1335 [2025-03-02 22:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594149', 'tblTempUsageDetail_20' ) start [2025-03-02 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594149', 'tblTempUsageDetail_20' ) end [2025-03-02 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594149', 'tblTempVendorCDR_20' ) start [2025-03-02 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594149', 'tblTempVendorCDR_20' ) end [2025-03-02 22:22:17] Production.INFO: ProcessCDR(1,14594149,1,1,2) [2025-03-02 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594149', 'tblTempUsageDetail_20' ) start [2025-03-02 22:22:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594149', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:22:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:22:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:22:25] Production.INFO: ==9848== Releasing lock... [2025-03-02 22:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:22:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:23:01] Production.INFO: ==9937== Lock acquired, processing the job... [2025-03-03 03:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:23:01] Production.INFO: neon service started [2025-03-03 03:23:01] Production.INFO: neon service started [2025-03-03 03:23:01] Production.INFO: ==9937== Releasing lock... [2025-03-03 03:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:23:02] Production.INFO: ==9939== Lock acquired, processing the job... [2025-03-02 22:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:23:02] Production.INFO: ==9941== Lock acquired, processing the job... [2025-03-03 03:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:23:02] Production.INFO: ==9941== Releasing lock... [2025-03-03 03:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:23:03] Production.INFO: ==9939== Releasing lock... [2025-03-02 22:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:23:03] Production.INFO: ==9944== Lock acquired, processing the job... [2025-03-02 22:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:23:04] Production.INFO: ==9954== Lock acquired, processing the job... [2025-03-02 22:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:23:04] Production.INFO: ==9946== Lock acquired, processing the job... [2025-03-02 22:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:23:04] Production.INFO: ==9948== Lock acquired, processing the job... [2025-03-02 22:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:23:04] Production.INFO: ==9952== Lock acquired, processing the job... [2025-03-02 22:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:23:04] Production.INFO: ==9950== Lock acquired, processing the job... [2025-03-02 22:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:23:04] Production.INFO: count ==13 [2025-03-02 22:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:23:04] Production.INFO: count ==21 [2025-03-02 22:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594151') start [2025-03-02 22:23:04] Production.INFO: Account Balance Start. [2025-03-02 22:23:04] Production.INFO: CreateAllLog Start [2025-03-02 22:23:04] Production.INFO: 117 [2025-03-02 22:23:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594151') end [2025-03-02 22:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:23:04] Production.INFO: 1 [2025-03-02 22:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.ERROR: done [2025-03-02 22:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:23:04] Production.INFO: ==9954== Releasing lock... [2025-03-02 22:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:23:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.INFO: ==9946== Releasing lock... [2025-03-02 22:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:23:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.ERROR: done [2025-03-02 22:23:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:23:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:23:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:23:05] Production.INFO: Total Charge 0 [2025-03-02 22:23:05] Production.INFO: CreateAllLog End [2025-03-02 22:23:05] Production.INFO: Account Balance End. [2025-03-02 22:23:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:23:05] Production.INFO: ==9950== Releasing lock... [2025-03-02 22:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:23:13] Production.ERROR: CronJobId end10 [2025-03-02 22:23:13] Production.INFO: ==9948== Releasing lock... [2025-03-02 22:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:23:15] Production.INFO: call_cost start [2025-03-02 22:23:15] Production.INFO: call_cost end [2025-03-02 22:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:23:15] Production.INFO: ==9944== Releasing lock... [2025-03-02 22:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:23:16] Production.INFO: count ==1335 [2025-03-02 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594154', 'tblTempUsageDetail_20' ) start [2025-03-02 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594154', 'tblTempUsageDetail_20' ) end [2025-03-02 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594154', 'tblTempVendorCDR_20' ) start [2025-03-02 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594154', 'tblTempVendorCDR_20' ) end [2025-03-02 22:23:17] Production.INFO: ProcessCDR(1,14594154,1,1,2) [2025-03-02 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594154', 'tblTempUsageDetail_20' ) start [2025-03-02 22:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594154', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:23:24] Production.INFO: ==9952== Releasing lock... [2025-03-02 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:23:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:24:01] Production.INFO: ==10017== Lock acquired, processing the job... [2025-03-03 03:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:24:01] Production.INFO: neon service started [2025-03-03 03:24:01] Production.INFO: neon service started [2025-03-03 03:24:01] Production.INFO: ==10017== Releasing lock... [2025-03-03 03:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:24:01] Production.INFO: ==10019== Lock acquired, processing the job... [2025-03-02 22:24:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:24:02] Production.INFO: ==10019== Releasing lock... [2025-03-02 22:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:24:02] Production.INFO: ==10021== Lock acquired, processing the job... [2025-03-03 03:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:24:02] Production.INFO: ==10021== Releasing lock... [2025-03-03 03:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:24:03] Production.INFO: ==10024== Lock acquired, processing the job... [2025-03-02 22:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:24:03] Production.INFO: ==10028== Lock acquired, processing the job... [2025-03-02 22:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:24:03] Production.INFO: ==10026== Lock acquired, processing the job... [2025-03-02 22:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:24:03] Production.INFO: ==10030== Lock acquired, processing the job... [2025-03-02 22:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:24:03] Production.INFO: ==10034== Lock acquired, processing the job... [2025-03-02 22:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:24:03] Production.INFO: ==10032== Lock acquired, processing the job... [2025-03-02 22:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:24:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:24:03] Production.INFO: Account Balance Start. [2025-03-02 22:24:03] Production.INFO: CreateAllLog Start [2025-03-02 22:24:03] Production.INFO: 117 [2025-03-02 22:24:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:24:03] Production.INFO: count ==13 [2025-03-02 22:24:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:24:03] Production.INFO: count ==21 [2025-03-02 22:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594158') start [2025-03-02 22:24:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:03] Production.INFO: ==10026== Releasing lock... [2025-03-02 22:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:24:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:24:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594158') end [2025-03-02 22:24:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:24:03] Production.INFO: 1 [2025-03-02 22:24:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:24:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:24:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.ERROR: done [2025-03-02 22:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:24:04] Production.INFO: ==10034== Releasing lock... [2025-03-02 22:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:24:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.ERROR: done [2025-03-02 22:24:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:24:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:24:04] Production.INFO: Total Charge 0 [2025-03-02 22:24:04] Production.INFO: CreateAllLog End [2025-03-02 22:24:05] Production.INFO: Account Balance End. [2025-03-02 22:24:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:24:05] Production.INFO: ==10030== Releasing lock... [2025-03-02 22:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:24:11] Production.ERROR: CronJobId end10 [2025-03-02 22:24:11] Production.INFO: ==10028== Releasing lock... [2025-03-02 22:24:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:24:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:24:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:24:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:24:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:24:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:24:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:24:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:24:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:24:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:24:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:24:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:24:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:24:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:24:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:24:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:24:13] Production.INFO: call_cost start [2025-03-02 22:24:13] Production.INFO: call_cost end [2025-03-02 22:24:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:24:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:24:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:24:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:24:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:24:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:24:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:24:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:24:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:24:13] Production.INFO: ==10024== Releasing lock... [2025-03-02 22:24:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:24:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:24:16] Production.INFO: count ==1335 [2025-03-02 22:24:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594159', 'tblTempUsageDetail_20' ) start [2025-03-02 22:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594159', 'tblTempUsageDetail_20' ) end [2025-03-02 22:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594159', 'tblTempVendorCDR_20' ) start [2025-03-02 22:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594159', 'tblTempVendorCDR_20' ) end [2025-03-02 22:24:16] Production.INFO: ProcessCDR(1,14594159,1,1,2) [2025-03-02 22:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594159', 'tblTempUsageDetail_20' ) start [2025-03-02 22:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594159', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:24:24] Production.INFO: ==10032== Releasing lock... [2025-03-02 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:25:01] Production.INFO: ==10089== Lock acquired, processing the job... [2025-03-03 03:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:25:01] Production.INFO: neon service started [2025-03-03 03:25:01] Production.INFO: neon service started [2025-03-03 03:25:01] Production.INFO: ==10089== Releasing lock... [2025-03-03 03:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:25:02] Production.INFO: ==10093== Lock acquired, processing the job... [2025-03-03 03:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:25:02] Production.INFO: ==10093== Releasing lock... [2025-03-03 03:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:25:02] Production.INFO: ==10091== Lock acquired, processing the job... [2025-03-02 22:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:25:02] Production.INFO: ==10091== Releasing lock... [2025-03-02 22:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:25:03] Production.INFO: ==10098== Lock acquired, processing the job... [2025-03-02 22:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:25:03] Production.INFO: ==10100== Lock acquired, processing the job... [2025-03-02 22:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:25:03] Production.INFO: ==10104== Lock acquired, processing the job... [2025-03-02 22:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:25:03] Production.INFO: ==10096== Lock acquired, processing the job... [2025-03-02 22:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:25:03] Production.INFO: ==10102== Lock acquired, processing the job... [2025-03-02 22:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:25:03] Production.INFO: ==10106== Lock acquired, processing the job... [2025-03-02 22:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:25:04] Production.INFO: ==10098== Releasing lock... [2025-03-02 22:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:25:04] Production.INFO: Account Balance Start. [2025-03-02 22:25:04] Production.INFO: CreateAllLog Start [2025-03-02 22:25:04] Production.INFO: 117 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: count ==13 [2025-03-02 22:25:04] Production.ERROR: done [2025-03-02 22:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:25:04] Production.INFO: count ==21 [2025-03-02 22:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594162') start [2025-03-02 22:25:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.ERROR: done [2025-03-02 22:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594162') end [2025-03-02 22:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:25:04] Production.INFO: 1 [2025-03-02 22:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:25:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:25:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: ==10106== Releasing lock... [2025-03-02 22:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:25:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:25:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:25:05] Production.INFO: Total Charge 0 [2025-03-02 22:25:05] Production.INFO: CreateAllLog End [2025-03-02 22:25:05] Production.INFO: Account Balance End. [2025-03-02 22:25:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:25:05] Production.INFO: ==10102== Releasing lock... [2025-03-02 22:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:25:11] Production.ERROR: CronJobId end10 [2025-03-02 22:25:11] Production.INFO: ==10100== Releasing lock... [2025-03-02 22:25:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:25:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:25:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:25:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:25:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:25:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:25:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:25:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:25:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:25:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:25:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:25:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:25:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:25:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:25:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:25:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:25:14] Production.INFO: call_cost start [2025-03-02 22:25:14] Production.INFO: call_cost end [2025-03-02 22:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:25:14] Production.INFO: ==10096== Releasing lock... [2025-03-02 22:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:25:16] Production.INFO: count ==1335 [2025-03-02 22:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594164', 'tblTempUsageDetail_20' ) start [2025-03-02 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594164', 'tblTempUsageDetail_20' ) end [2025-03-02 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594164', 'tblTempVendorCDR_20' ) start [2025-03-02 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594164', 'tblTempVendorCDR_20' ) end [2025-03-02 22:25:16] Production.INFO: ProcessCDR(1,14594164,1,1,2) [2025-03-02 22:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594164', 'tblTempUsageDetail_20' ) start [2025-03-02 22:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594164', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:25:24] Production.INFO: ==10104== Releasing lock... [2025-03-02 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:25:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:26:02] Production.INFO: ==10171== Lock acquired, processing the job... [2025-03-03 03:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:26:02] Production.INFO: neon service started [2025-03-03 03:26:02] Production.INFO: neon service started [2025-03-03 03:26:02] Production.INFO: ==10171== Releasing lock... [2025-03-03 03:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:26:02] Production.INFO: ==10175== Lock acquired, processing the job... [2025-03-03 03:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:26:02] Production.INFO: ==10175== Releasing lock... [2025-03-03 03:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:26:02] Production.INFO: ==10173== Lock acquired, processing the job... [2025-03-02 22:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:26:03] Production.INFO: ==10173== Releasing lock... [2025-03-02 22:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:26:04] Production.INFO: ==10178== Lock acquired, processing the job... [2025-03-02 22:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:26:04] Production.INFO: ==10180== Lock acquired, processing the job... [2025-03-02 22:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:26:04] Production.INFO: ==10186== Lock acquired, processing the job... [2025-03-02 22:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:26:04] Production.INFO: ==10182== Lock acquired, processing the job... [2025-03-02 22:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:26:04] Production.INFO: ==10184== Lock acquired, processing the job... [2025-03-02 22:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:26:04] Production.INFO: ==10188== Lock acquired, processing the job... [2025-03-02 22:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:26:04] Production.INFO: Account Balance Start. [2025-03-02 22:26:04] Production.INFO: CreateAllLog Start [2025-03-02 22:26:04] Production.INFO: 117 [2025-03-02 22:26:04] Production.INFO: ==10180== Releasing lock... [2025-03-02 22:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:26:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:26:04] Production.ERROR: done [2025-03-02 22:26:04] Production.INFO: count ==13 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:26:04] Production.INFO: count ==21 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594168') start [2025-03-02 22:26:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:04] Production.ERROR: done [2025-03-02 22:26:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:26:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594168') end [2025-03-02 22:26:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:26:05] Production.INFO: 1 [2025-03-02 22:26:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:26:05] Production.INFO: ==10188== Releasing lock... [2025-03-02 22:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:26:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:26:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:26:05] Production.INFO: Total Charge 0 [2025-03-02 22:26:05] Production.INFO: CreateAllLog End [2025-03-02 22:26:05] Production.INFO: Account Balance End. [2025-03-02 22:26:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:26:05] Production.INFO: ==10184== Releasing lock... [2025-03-02 22:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:26:12] Production.ERROR: CronJobId end10 [2025-03-02 22:26:12] Production.INFO: ==10182== Releasing lock... [2025-03-02 22:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:26:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:26:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:26:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:26:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:26:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:26:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:26:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:26:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:26:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:26:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:26:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:26:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:26:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:26:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:26:14] Production.INFO: call_cost start [2025-03-02 22:26:14] Production.INFO: call_cost end [2025-03-02 22:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:26:14] Production.INFO: ==10178== Releasing lock... [2025-03-02 22:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:26:17] Production.INFO: count ==1335 [2025-03-02 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594169', 'tblTempUsageDetail_20' ) start [2025-03-02 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594169', 'tblTempUsageDetail_20' ) end [2025-03-02 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594169', 'tblTempVendorCDR_20' ) start [2025-03-02 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594169', 'tblTempVendorCDR_20' ) end [2025-03-02 22:26:17] Production.INFO: ProcessCDR(1,14594169,1,1,2) [2025-03-02 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594169', 'tblTempUsageDetail_20' ) start [2025-03-02 22:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594169', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:26:25] Production.INFO: ==10186== Releasing lock... [2025-03-02 22:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:26:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:27:01] Production.INFO: ==10250== Lock acquired, processing the job... [2025-03-03 03:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:27:01] Production.INFO: neon service started [2025-03-03 03:27:01] Production.INFO: neon service started [2025-03-03 03:27:01] Production.INFO: ==10250== Releasing lock... [2025-03-03 03:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:27:02] Production.INFO: ==10252== Lock acquired, processing the job... [2025-03-02 22:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:27:02] Production.INFO: ==10252== Releasing lock... [2025-03-02 22:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:27:02] Production.INFO: ==10254== Lock acquired, processing the job... [2025-03-03 03:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:27:02] Production.INFO: ==10254== Releasing lock... [2025-03-03 03:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:27:03] Production.INFO: ==10257== Lock acquired, processing the job... [2025-03-02 22:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:27:03] Production.INFO: ==10261== Lock acquired, processing the job... [2025-03-02 22:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:27:03] Production.INFO: ==10263== Lock acquired, processing the job... [2025-03-02 22:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:27:03] Production.INFO: Account Balance Start. [2025-03-02 22:27:03] Production.INFO: CreateAllLog Start [2025-03-02 22:27:03] Production.INFO: 117 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:27:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: ==10259== Lock acquired, processing the job... [2025-03-02 22:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:27:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: ==10265== Lock acquired, processing the job... [2025-03-02 22:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:27:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:03] Production.INFO: ==10267== Lock acquired, processing the job... [2025-03-02 22:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:27:03] Production.INFO: Date 2025-02-17 [2025-03-02 22:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:27:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:27:04] Production.INFO: count ==13 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:27:04] Production.INFO: count ==21 [2025-03-02 22:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594173') start [2025-03-02 22:27:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: ==10259== Releasing lock... [2025-03-02 22:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:27:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594173') end [2025-03-02 22:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:27:04] Production.INFO: 1 [2025-03-02 22:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:27:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:27:04] Production.INFO: ==10267== Releasing lock... [2025-03-02 22:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.ERROR: done [2025-03-02 22:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:27:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.ERROR: done [2025-03-02 22:27:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:27:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:27:04] Production.INFO: Total Charge 0 [2025-03-02 22:27:04] Production.INFO: CreateAllLog End [2025-03-02 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:27:04] Production.INFO: Account Balance End. [2025-03-02 22:27:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:27:04] Production.INFO: ==10263== Releasing lock... [2025-03-02 22:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:27:12] Production.ERROR: CronJobId end10 [2025-03-02 22:27:12] Production.INFO: ==10261== Releasing lock... [2025-03-02 22:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:27:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:27:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:27:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:27:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:27:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:27:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:27:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:27:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:27:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:27:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:27:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:27:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:27:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:27:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:27:14] Production.INFO: call_cost start [2025-03-02 22:27:14] Production.INFO: call_cost end [2025-03-02 22:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:27:14] Production.INFO: ==10257== Releasing lock... [2025-03-02 22:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:27:16] Production.INFO: count ==1335 [2025-03-02 22:27:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594174', 'tblTempUsageDetail_20' ) start [2025-03-02 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594174', 'tblTempUsageDetail_20' ) end [2025-03-02 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594174', 'tblTempVendorCDR_20' ) start [2025-03-02 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594174', 'tblTempVendorCDR_20' ) end [2025-03-02 22:27:17] Production.INFO: ProcessCDR(1,14594174,1,1,2) [2025-03-02 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594174', 'tblTempUsageDetail_20' ) start [2025-03-02 22:27:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594174', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:27:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:27:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:27:25] Production.INFO: ==10265== Releasing lock... [2025-03-02 22:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:27:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:28:02] Production.INFO: ==10337== Lock acquired, processing the job... [2025-03-03 03:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:28:02] Production.INFO: neon service started [2025-03-03 03:28:02] Production.INFO: neon service started [2025-03-03 03:28:02] Production.INFO: ==10337== Releasing lock... [2025-03-03 03:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:28:02] Production.INFO: ==10339== Lock acquired, processing the job... [2025-03-02 22:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:28:02] Production.INFO: ==10341== Lock acquired, processing the job... [2025-03-03 03:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:28:02] Production.INFO: ==10341== Releasing lock... [2025-03-03 03:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:28:03] Production.INFO: ==10339== Releasing lock... [2025-03-02 22:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:28:03] Production.INFO: ==10344== Lock acquired, processing the job... [2025-03-02 22:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:28:04] Production.INFO: ==10346== Lock acquired, processing the job... [2025-03-02 22:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:28:04] Production.INFO: ==10350== Lock acquired, processing the job... [2025-03-02 22:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:28:04] Production.INFO: ==10348== Lock acquired, processing the job... [2025-03-02 22:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:28:04] Production.INFO: Account Balance Start. [2025-03-02 22:28:04] Production.INFO: CreateAllLog Start [2025-03-02 22:28:04] Production.INFO: 117 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: ==10352== Lock acquired, processing the job... [2025-03-02 22:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:28:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:28:04] Production.INFO: ==10354== Lock acquired, processing the job... [2025-03-02 22:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:28:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: ==10346== Releasing lock... [2025-03-02 22:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:28:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:28:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:28:04] Production.INFO: count ==13 [2025-03-02 22:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:28:04] Production.INFO: count ==21 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594178') start [2025-03-02 22:28:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594178') end [2025-03-02 22:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:28:04] Production.INFO: 1 [2025-03-02 22:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:28:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: ==10354== Releasing lock... [2025-03-02 22:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:28:04] Production.ERROR: done [2025-03-02 22:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:28:05] Production.ERROR: done [2025-03-02 22:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:28:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:28:05] Production.INFO: Total Charge 0 [2025-03-02 22:28:05] Production.INFO: CreateAllLog End [2025-03-02 22:28:05] Production.INFO: Account Balance End. [2025-03-02 22:28:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:28:05] Production.INFO: ==10350== Releasing lock... [2025-03-02 22:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:28:12] Production.ERROR: CronJobId end10 [2025-03-02 22:28:12] Production.INFO: ==10348== Releasing lock... [2025-03-02 22:28:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:28:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:28:14] Production.INFO: call_cost start [2025-03-02 22:28:14] Production.INFO: call_cost end [2025-03-02 22:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:28:14] Production.INFO: ==10344== Releasing lock... [2025-03-02 22:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:28:17] Production.INFO: count ==1335 [2025-03-02 22:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594179', 'tblTempUsageDetail_20' ) start [2025-03-02 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594179', 'tblTempUsageDetail_20' ) end [2025-03-02 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594179', 'tblTempVendorCDR_20' ) start [2025-03-02 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594179', 'tblTempVendorCDR_20' ) end [2025-03-02 22:28:17] Production.INFO: ProcessCDR(1,14594179,1,1,2) [2025-03-02 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594179', 'tblTempUsageDetail_20' ) start [2025-03-02 22:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594179', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:28:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:28:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:28:25] Production.INFO: ==10352== Releasing lock... [2025-03-02 22:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:28:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:29:01] Production.INFO: ==10429== Lock acquired, processing the job... [2025-03-03 03:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:29:01] Production.INFO: neon service started [2025-03-03 03:29:01] Production.INFO: neon service started [2025-03-03 03:29:01] Production.INFO: ==10429== Releasing lock... [2025-03-03 03:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:29:02] Production.INFO: ==10433== Lock acquired, processing the job... [2025-03-03 03:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:29:02] Production.INFO: ==10433== Releasing lock... [2025-03-03 03:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:29:02] Production.INFO: ==10431== Lock acquired, processing the job... [2025-03-02 22:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:29:02] Production.INFO: ==10431== Releasing lock... [2025-03-02 22:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:29:03] Production.INFO: ==10438== Lock acquired, processing the job... [2025-03-02 22:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:29:03] Production.INFO: ==10444== Lock acquired, processing the job... [2025-03-02 22:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:29:03] Production.INFO: ==10436== Lock acquired, processing the job... [2025-03-02 22:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:29:03] Production.INFO: ==10440== Lock acquired, processing the job... [2025-03-02 22:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:29:03] Production.INFO: ==10438== Releasing lock... [2025-03-02 22:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:29:03] Production.INFO: ==10442== Lock acquired, processing the job... [2025-03-02 22:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:29:03] Production.INFO: ==10446== Lock acquired, processing the job... [2025-03-02 22:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:29:03] Production.INFO: Account Balance Start. [2025-03-02 22:29:03] Production.INFO: CreateAllLog Start [2025-03-02 22:29:03] Production.ERROR: done [2025-03-02 22:29:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:29:03] Production.INFO: 117 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:29:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: count ==13 [2025-03-02 22:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:29:04] Production.INFO: count ==21 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594183') start [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.ERROR: done [2025-03-02 22:29:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594183') end [2025-03-02 22:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:29:04] Production.INFO: 1 [2025-03-02 22:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:29:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: ==10446== Releasing lock... [2025-03-02 22:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:29:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:29:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:29:04] Production.INFO: Total Charge 0 [2025-03-02 22:29:04] Production.INFO: CreateAllLog End [2025-03-02 22:29:04] Production.INFO: Account Balance End. [2025-03-02 22:29:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:29:04] Production.INFO: ==10442== Releasing lock... [2025-03-02 22:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:29:11] Production.ERROR: CronJobId end10 [2025-03-02 22:29:11] Production.INFO: ==10440== Releasing lock... [2025-03-02 22:29:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:29:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:29:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:29:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:29:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:29:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:29:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:29:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:29:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:29:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:29:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:29:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:29:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:29:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:29:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:29:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:29:14] Production.INFO: call_cost start [2025-03-02 22:29:14] Production.INFO: call_cost end [2025-03-02 22:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:29:14] Production.INFO: ==10436== Releasing lock... [2025-03-02 22:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:29:16] Production.INFO: count ==1335 [2025-03-02 22:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594184', 'tblTempUsageDetail_20' ) start [2025-03-02 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594184', 'tblTempUsageDetail_20' ) end [2025-03-02 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594184', 'tblTempVendorCDR_20' ) start [2025-03-02 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594184', 'tblTempVendorCDR_20' ) end [2025-03-02 22:29:16] Production.INFO: ProcessCDR(1,14594184,1,1,2) [2025-03-02 22:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594184', 'tblTempUsageDetail_20' ) start [2025-03-02 22:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594184', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:29:24] Production.INFO: ==10444== Releasing lock... [2025-03-02 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:30:02] Production.INFO: ==10515== Lock acquired, processing the job... [2025-03-03 03:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:30:02] Production.INFO: neon service started [2025-03-03 03:30:02] Production.INFO: neon service started [2025-03-03 03:30:02] Production.INFO: ==10515== Releasing lock... [2025-03-03 03:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:30:02] Production.INFO: ==10517== Lock acquired, processing the job... [2025-03-02 22:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:30:02] Production.INFO: ==10517== Releasing lock... [2025-03-02 22:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:30:03] Production.INFO: ==10519== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:30:03] Production.INFO: ==10519== Releasing lock... [2025-03-03 03:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:30:04] Production.INFO: ==10522== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 22:30:04] Production.INFO: ==10524== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 22:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:30:04] Production.ERROR: CronJob PID - 10524 [2025-03-02 22:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 22:30:04] Production.ERROR: CronJob ID - 5 [2025-03-02 22:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:30:00 [2025-03-02 22:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:30:04] Production.INFO: ==10532== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:30:04] Production.INFO: ==10526== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 22:30:04] Production.INFO: ==10522== Releasing lock... [2025-03-02 22:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 22:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 22:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:30:04] Production.INFO: ==10528== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:30:04] Production.INFO: ==10534== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 22:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:30:04] Production.INFO: ==10530== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:30:04] Production.INFO: ==10536== Lock acquired, processing the job... [2025-03-02 22:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:30:04] Production.INFO: Account Balance Start. [2025-03-02 22:30:04] Production.INFO: CreateAllLog Start [2025-03-02 22:30:04] Production.INFO: 117 [2025-03-02 22:30:04] Production.ERROR: done [2025-03-02 22:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:30:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:30:04] Production.INFO: count ==13 [2025-03-02 22:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:30:04] Production.INFO: count ==21 [2025-03-02 22:30:04] Production.ERROR: done [2025-03-02 22:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594188') start [2025-03-02 22:30:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594188') end [2025-03-02 22:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:30:05] Production.INFO: 1 [2025-03-02 22:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:30:05] Production.ERROR: done [2025-03-02 22:30:05] Production.INFO: ==10526== Releasing lock... [2025-03-02 22:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 22:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594190', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 22:30:05] Production.INFO: Date 2025-02-12 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: ==10536== Releasing lock... [2025-03-02 22:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:30:05] Production.INFO: Date 2025-02-13 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-14 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-15 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:30:05] Production.INFO: Total Charge 0 [2025-03-02 22:30:05] Production.INFO: CreateAllLog End [2025-03-02 22:30:06] Production.INFO: Account Balance End. [2025-03-02 22:30:06] Production.ERROR: CronJobId end 12 [2025-03-02 22:30:06] Production.INFO: ==10530== Releasing lock... [2025-03-02 22:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594190', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 22:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 22:30:09] Production.INFO: ProcessCDR(1,14594190,1,1,2) [2025-03-02 22:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594190,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594190,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 22:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 22:30:09] Production.INFO: ==10534== Releasing lock... [2025-03-02 22:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 22:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:30:14] Production.ERROR: CronJobId end10 [2025-03-02 22:30:14] Production.INFO: ==10528== Releasing lock... [2025-03-02 22:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:30:17] Production.INFO: count ==1335 [2025-03-02 22:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594189', 'tblTempUsageDetail_20' ) start [2025-03-02 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594189', 'tblTempUsageDetail_20' ) end [2025-03-02 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594189', 'tblTempVendorCDR_20' ) start [2025-03-02 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594189', 'tblTempVendorCDR_20' ) end [2025-03-02 22:30:17] Production.INFO: ProcessCDR(1,14594189,1,1,2) [2025-03-02 22:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:30:17] Production.INFO: call_cost start [2025-03-02 22:30:17] Production.INFO: call_cost end [2025-03-02 22:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:30:17] Production.INFO: ==10524== Releasing lock... [2025-03-02 22:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594189', 'tblTempUsageDetail_20' ) start [2025-03-02 22:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594189', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:30:25] Production.INFO: ==10532== Releasing lock... [2025-03-02 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:30:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:31:01] Production.INFO: ==10596== Lock acquired, processing the job... [2025-03-03 03:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:31:01] Production.INFO: neon service started [2025-03-03 03:31:01] Production.INFO: neon service started [2025-03-03 03:31:01] Production.INFO: ==10596== Releasing lock... [2025-03-03 03:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:31:01] Production.INFO: ==10599== Lock acquired, processing the job... [2025-03-02 22:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:31:02] Production.INFO: ==10599== Releasing lock... [2025-03-02 22:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:31:02] Production.INFO: ==10601== Lock acquired, processing the job... [2025-03-03 03:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:31:02] Production.INFO: ==10601== Releasing lock... [2025-03-03 03:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:31:03] Production.INFO: ==10611== Lock acquired, processing the job... [2025-03-02 22:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:31:03] Production.INFO: ==10609== Lock acquired, processing the job... [2025-03-02 22:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:31:03] Production.INFO: ==10603== Lock acquired, processing the job... [2025-03-02 22:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:31:03] Production.INFO: Account Balance Start. [2025-03-02 22:31:03] Production.INFO: CreateAllLog Start [2025-03-02 22:31:03] Production.INFO: 117 [2025-03-02 22:31:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.INFO: ==10605== Lock acquired, processing the job... [2025-03-02 22:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:31:03] Production.INFO: ==10607== Lock acquired, processing the job... [2025-03-02 22:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:31:03] Production.INFO: ==10613== Lock acquired, processing the job... [2025-03-02 22:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:31:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.ERROR: done [2025-03-02 22:31:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:31:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:31:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.INFO: count ==13 [2025-03-02 22:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:31:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.INFO: count ==21 [2025-03-02 22:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594194') start [2025-03-02 22:31:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:31:03] Production.INFO: ==10605== Releasing lock... [2025-03-02 22:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:31:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.ERROR: done [2025-03-02 22:31:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:31:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594194') end [2025-03-02 22:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:31:03] Production.INFO: 1 [2025-03-02 22:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:31:04] Production.INFO: ==10613== Releasing lock... [2025-03-02 22:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:31:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:31:04] Production.INFO: Total Charge 0 [2025-03-02 22:31:04] Production.INFO: CreateAllLog End [2025-03-02 22:31:04] Production.INFO: Account Balance End. [2025-03-02 22:31:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:31:04] Production.INFO: ==10609== Releasing lock... [2025-03-02 22:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:31:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:31:11] Production.ERROR: CronJobId end10 [2025-03-02 22:31:11] Production.INFO: ==10607== Releasing lock... [2025-03-02 22:31:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:31:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:31:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:31:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:31:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:31:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:31:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:31:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:31:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:31:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:31:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:31:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:31:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:31:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:31:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:31:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:31:14] Production.INFO: call_cost start [2025-03-02 22:31:14] Production.INFO: call_cost end [2025-03-02 22:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:31:14] Production.INFO: ==10603== Releasing lock... [2025-03-02 22:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:31:16] Production.INFO: count ==1335 [2025-03-02 22:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594195', 'tblTempUsageDetail_20' ) start [2025-03-02 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594195', 'tblTempUsageDetail_20' ) end [2025-03-02 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594195', 'tblTempVendorCDR_20' ) start [2025-03-02 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594195', 'tblTempVendorCDR_20' ) end [2025-03-02 22:31:16] Production.INFO: ProcessCDR(1,14594195,1,1,2) [2025-03-02 22:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594195', 'tblTempUsageDetail_20' ) start [2025-03-02 22:31:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594195', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:31:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:31:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:31:23] Production.INFO: ==10611== Releasing lock... [2025-03-02 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:31:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:32:01] Production.INFO: ==10716== Lock acquired, processing the job... [2025-03-03 03:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:32:02] Production.INFO: neon service started [2025-03-03 03:32:02] Production.INFO: neon service started [2025-03-03 03:32:02] Production.INFO: ==10716== Releasing lock... [2025-03-03 03:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:32:02] Production.INFO: ==10718== Lock acquired, processing the job... [2025-03-02 22:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:32:02] Production.INFO: ==10718== Releasing lock... [2025-03-02 22:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:32:03] Production.INFO: ==10720== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:32:03] Production.INFO: ==10720== Releasing lock... [2025-03-03 03:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:32:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:32:03] Production.INFO: ==10725== Lock acquired, processing the job... [2025-03-02 22:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:32:03] Production.INFO: ==10731== Lock acquired, processing the job... [2025-03-02 22:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:32:03] Production.INFO: ==10733== Lock acquired, processing the job... [2025-03-02 22:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:32:03] Production.INFO: ==10727== Lock acquired, processing the job... [2025-03-02 22:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:32:03] Production.INFO: Account Balance Start. [2025-03-02 22:32:03] Production.INFO: CreateAllLog Start [2025-03-02 22:32:03] Production.INFO: 117 [2025-03-02 22:32:03] Production.INFO: ==10729== Lock acquired, processing the job... [2025-03-02 22:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:32:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: ==10735== Lock acquired, processing the job... [2025-03-02 22:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:32:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:32:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:32:04] Production.INFO: count ==13 [2025-03-02 22:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:32:04] Production.INFO: count ==21 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594199') start [2025-03-02 22:32:04] Production.ERROR: done [2025-03-02 22:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:32:04] Production.INFO: ==10727== Releasing lock... [2025-03-02 22:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:32:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594199') end [2025-03-02 22:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:32:04] Production.INFO: 1 [2025-03-02 22:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:32:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: ==10735== Releasing lock... [2025-03-02 22:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:32:04] Production.ERROR: done [2025-03-02 22:32:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:32:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:32:05] Production.INFO: Total Charge 0 [2025-03-02 22:32:05] Production.INFO: CreateAllLog End [2025-03-02 22:32:05] Production.INFO: Account Balance End. [2025-03-02 22:32:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:32:05] Production.INFO: ==10731== Releasing lock... [2025-03-02 22:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:32:12] Production.ERROR: CronJobId end10 [2025-03-02 22:32:12] Production.INFO: ==10729== Releasing lock... [2025-03-02 22:32:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:32:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:32:16] Production.INFO: call_cost start [2025-03-02 22:32:16] Production.INFO: call_cost end [2025-03-02 22:32:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:32:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:32:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:32:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:32:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:32:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:32:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:32:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:32:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:32:16] Production.INFO: ==10725== Releasing lock... [2025-03-02 22:32:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:32:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:32:16] Production.INFO: count ==1335 [2025-03-02 22:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594200', 'tblTempUsageDetail_20' ) start [2025-03-02 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594200', 'tblTempUsageDetail_20' ) end [2025-03-02 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594200', 'tblTempVendorCDR_20' ) start [2025-03-02 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594200', 'tblTempVendorCDR_20' ) end [2025-03-02 22:32:17] Production.INFO: ProcessCDR(1,14594200,1,1,2) [2025-03-02 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594200', 'tblTempUsageDetail_20' ) start [2025-03-02 22:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594200', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:32:24] Production.INFO: ==10733== Releasing lock... [2025-03-02 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:32:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:33:01] Production.INFO: ==10816== Lock acquired, processing the job... [2025-03-03 03:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:33:01] Production.INFO: neon service started [2025-03-03 03:33:01] Production.INFO: neon service started [2025-03-03 03:33:01] Production.INFO: ==10816== Releasing lock... [2025-03-03 03:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:33:02] Production.INFO: ==10819== Lock acquired, processing the job... [2025-03-02 22:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:33:02] Production.INFO: ==10821== Lock acquired, processing the job... [2025-03-03 03:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:33:02] Production.INFO: ==10821== Releasing lock... [2025-03-03 03:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:33:02] Production.INFO: ==10819== Releasing lock... [2025-03-02 22:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:33:03] Production.INFO: ==10823== Lock acquired, processing the job... [2025-03-02 22:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:33:03] Production.INFO: ==10829== Lock acquired, processing the job... [2025-03-02 22:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:33:03] Production.INFO: ==10825== Lock acquired, processing the job... [2025-03-02 22:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:33:03] Production.INFO: ==10833== Lock acquired, processing the job... [2025-03-02 22:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:33:03] Production.INFO: ==10827== Lock acquired, processing the job... [2025-03-02 22:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:33:03] Production.INFO: Account Balance Start. [2025-03-02 22:33:03] Production.INFO: CreateAllLog Start [2025-03-02 22:33:03] Production.INFO: 117 [2025-03-02 22:33:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:33:03] Production.INFO: count ==13 [2025-03-02 22:33:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:33:03] Production.INFO: count ==21 [2025-03-02 22:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594204') start [2025-03-02 22:33:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:03] Production.INFO: ==10831== Lock acquired, processing the job... [2025-03-02 22:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:33:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:33:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594204') end [2025-03-02 22:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:33:04] Production.INFO: 1 [2025-03-02 22:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:33:04] Production.INFO: ==10833== Releasing lock... [2025-03-02 22:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:33:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: ==10825== Releasing lock... [2025-03-02 22:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.ERROR: done [2025-03-02 22:33:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.ERROR: done [2025-03-02 22:33:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:33:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:33:05] Production.INFO: Total Charge 0 [2025-03-02 22:33:05] Production.INFO: CreateAllLog End [2025-03-02 22:33:05] Production.INFO: Account Balance End. [2025-03-02 22:33:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:33:05] Production.INFO: ==10829== Releasing lock... [2025-03-02 22:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:33:11] Production.ERROR: CronJobId end10 [2025-03-02 22:33:11] Production.INFO: ==10827== Releasing lock... [2025-03-02 22:33:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:33:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:33:14] Production.INFO: call_cost start [2025-03-02 22:33:14] Production.INFO: call_cost end [2025-03-02 22:33:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:33:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:33:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:33:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:33:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:33:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:33:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:33:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:33:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:33:14] Production.INFO: ==10823== Releasing lock... [2025-03-02 22:33:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:33:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:33:16] Production.INFO: count ==1335 [2025-03-02 22:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594205', 'tblTempUsageDetail_20' ) start [2025-03-02 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594205', 'tblTempUsageDetail_20' ) end [2025-03-02 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594205', 'tblTempVendorCDR_20' ) start [2025-03-02 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594205', 'tblTempVendorCDR_20' ) end [2025-03-02 22:33:16] Production.INFO: ProcessCDR(1,14594205,1,1,2) [2025-03-02 22:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594205', 'tblTempUsageDetail_20' ) start [2025-03-02 22:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594205', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:33:24] Production.INFO: ==10831== Releasing lock... [2025-03-02 22:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:34:02] Production.INFO: ==10914== Lock acquired, processing the job... [2025-03-03 03:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:34:02] Production.INFO: neon service started [2025-03-03 03:34:02] Production.INFO: neon service started [2025-03-03 03:34:02] Production.INFO: ==10914== Releasing lock... [2025-03-03 03:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:34:02] Production.INFO: ==10916== Lock acquired, processing the job... [2025-03-02 22:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:34:02] Production.INFO: ==10916== Releasing lock... [2025-03-02 22:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:34:03] Production.INFO: ==10918== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:34:03] Production.INFO: ==10918== Releasing lock... [2025-03-03 03:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:34:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:34:03] Production.INFO: ==10926== Lock acquired, processing the job... [2025-03-02 22:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:34:03] Production.INFO: ==10928== Lock acquired, processing the job... [2025-03-02 22:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:34:03] Production.INFO: Account Balance Start. [2025-03-02 22:34:03] Production.INFO: CreateAllLog Start [2025-03-02 22:34:03] Production.INFO: 117 [2025-03-02 22:34:03] Production.INFO: ==10920== Lock acquired, processing the job... [2025-03-02 22:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:34:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:34:03] Production.INFO: ==10922== Lock acquired, processing the job... [2025-03-02 22:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: ==10924== Lock acquired, processing the job... [2025-03-02 22:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:34:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: ==10930== Lock acquired, processing the job... [2025-03-02 22:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:34:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:34:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:34:04] Production.ERROR: done [2025-03-02 22:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:34:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: count ==13 [2025-03-02 22:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:34:04] Production.INFO: count ==21 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594209') start [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.ERROR: done [2025-03-02 22:34:04] Production.INFO: ==10922== Releasing lock... [2025-03-02 22:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594209') end [2025-03-02 22:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:34:04] Production.INFO: 1 [2025-03-02 22:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:34:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: ==10930== Releasing lock... [2025-03-02 22:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:34:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:34:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:34:05] Production.INFO: Total Charge 0 [2025-03-02 22:34:05] Production.INFO: CreateAllLog End [2025-03-02 22:34:05] Production.INFO: Account Balance End. [2025-03-02 22:34:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:34:05] Production.INFO: ==10926== Releasing lock... [2025-03-02 22:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:34:12] Production.ERROR: CronJobId end10 [2025-03-02 22:34:12] Production.INFO: ==10924== Releasing lock... [2025-03-02 22:34:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:34:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:34:15] Production.INFO: call_cost start [2025-03-02 22:34:15] Production.INFO: call_cost end [2025-03-02 22:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:34:15] Production.INFO: ==10920== Releasing lock... [2025-03-02 22:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:34:16] Production.INFO: count ==1335 [2025-03-02 22:34:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594210', 'tblTempUsageDetail_20' ) start [2025-03-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594210', 'tblTempUsageDetail_20' ) end [2025-03-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594210', 'tblTempVendorCDR_20' ) start [2025-03-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594210', 'tblTempVendorCDR_20' ) end [2025-03-02 22:34:17] Production.INFO: ProcessCDR(1,14594210,1,1,2) [2025-03-02 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594210', 'tblTempUsageDetail_20' ) start [2025-03-02 22:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594210', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:34:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:34:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:34:25] Production.INFO: ==10928== Releasing lock... [2025-03-02 22:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:34:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:35:01] Production.INFO: ==10996== Lock acquired, processing the job... [2025-03-03 03:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:35:01] Production.INFO: neon service started [2025-03-03 03:35:01] Production.INFO: neon service started [2025-03-03 03:35:01] Production.INFO: ==10996== Releasing lock... [2025-03-03 03:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:35:01] Production.INFO: ==10998== Lock acquired, processing the job... [2025-03-02 22:35:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:35:02] Production.INFO: ==10998== Releasing lock... [2025-03-02 22:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:35:02] Production.INFO: ==11000== Lock acquired, processing the job... [2025-03-03 03:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:35:02] Production.INFO: ==11000== Releasing lock... [2025-03-03 03:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:35:03] Production.INFO: ==11008== Lock acquired, processing the job... [2025-03-02 22:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:35:03] Production.INFO: ==11010== Lock acquired, processing the job... [2025-03-02 22:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:35:03] Production.INFO: Account Balance Start. [2025-03-02 22:35:03] Production.INFO: CreateAllLog Start [2025-03-02 22:35:03] Production.INFO: 117 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:35:03] Production.INFO: ==11004== Lock acquired, processing the job... [2025-03-02 22:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:35:03] Production.INFO: ==11002== Lock acquired, processing the job... [2025-03-02 22:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: ==11006== Lock acquired, processing the job... [2025-03-02 22:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:35:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: ==11012== Lock acquired, processing the job... [2025-03-02 22:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:35:03] Production.ERROR: done [2025-03-02 22:35:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:35:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: count ==13 [2025-03-02 22:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:35:03] Production.INFO: count ==21 [2025-03-02 22:35:03] Production.ERROR: done [2025-03-02 22:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594214') start [2025-03-02 22:35:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:35:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:35:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594214') end [2025-03-02 22:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:35:03] Production.INFO: 1 [2025-03-02 22:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:35:03] Production.INFO: ==11004== Releasing lock... [2025-03-02 22:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:35:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:35:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-17 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: ==11012== Releasing lock... [2025-03-02 22:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:35:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:35:03] Production.INFO: Date 2025-02-18 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-19 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-20 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-21 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-22 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-23 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:03] Production.INFO: Date 2025-02-24 [2025-03-02 22:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:35:04] Production.INFO: Total Charge 0 [2025-03-02 22:35:04] Production.INFO: CreateAllLog End [2025-03-02 22:35:04] Production.INFO: Account Balance End. [2025-03-02 22:35:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:35:04] Production.INFO: ==11008== Releasing lock... [2025-03-02 22:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:35:11] Production.ERROR: CronJobId end10 [2025-03-02 22:35:11] Production.INFO: ==11006== Releasing lock... [2025-03-02 22:35:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:35:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:35:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:35:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:35:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:35:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:35:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:35:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:35:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:35:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:35:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:35:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:35:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:35:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:35:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:35:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:35:14] Production.INFO: call_cost start [2025-03-02 22:35:14] Production.INFO: call_cost end [2025-03-02 22:35:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:35:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:35:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:35:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:35:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:35:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:35:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:35:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:35:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:35:14] Production.INFO: ==11002== Releasing lock... [2025-03-02 22:35:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:35:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:35:15] Production.INFO: count ==1335 [2025-03-02 22:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594215', 'tblTempUsageDetail_20' ) start [2025-03-02 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594215', 'tblTempUsageDetail_20' ) end [2025-03-02 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594215', 'tblTempVendorCDR_20' ) start [2025-03-02 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594215', 'tblTempVendorCDR_20' ) end [2025-03-02 22:35:16] Production.INFO: ProcessCDR(1,14594215,1,1,2) [2025-03-02 22:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594215', 'tblTempUsageDetail_20' ) start [2025-03-02 22:35:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594215', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:35:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:35:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:35:23] Production.INFO: ==11010== Releasing lock... [2025-03-02 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:36:01] Production.INFO: ==11096== Lock acquired, processing the job... [2025-03-03 03:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:36:01] Production.INFO: neon service started [2025-03-03 03:36:01] Production.INFO: neon service started [2025-03-03 03:36:01] Production.INFO: ==11096== Releasing lock... [2025-03-03 03:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:36:02] Production.INFO: ==11098== Lock acquired, processing the job... [2025-03-02 22:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:36:02] Production.INFO: ==11098== Releasing lock... [2025-03-02 22:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:36:02] Production.INFO: ==11100== Lock acquired, processing the job... [2025-03-03 03:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:36:02] Production.INFO: ==11100== Releasing lock... [2025-03-03 03:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:36:03] Production.INFO: ==11103== Lock acquired, processing the job... [2025-03-02 22:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:36:03] Production.INFO: ==11107== Lock acquired, processing the job... [2025-03-02 22:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:36:03] Production.INFO: ==11105== Lock acquired, processing the job... [2025-03-02 22:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:36:03] Production.INFO: ==11111== Lock acquired, processing the job... [2025-03-02 22:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:36:03] Production.INFO: ==11109== Lock acquired, processing the job... [2025-03-02 22:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:36:03] Production.INFO: ==11113== Lock acquired, processing the job... [2025-03-02 22:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:36:03] Production.INFO: Account Balance Start. [2025-03-02 22:36:03] Production.INFO: CreateAllLog Start [2025-03-02 22:36:03] Production.INFO: 117 [2025-03-02 22:36:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: count ==13 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:36:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: count ==21 [2025-03-02 22:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594219') start [2025-03-02 22:36:04] Production.ERROR: done [2025-03-02 22:36:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594219') end [2025-03-02 22:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:36:04] Production.INFO: 1 [2025-03-02 22:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:36:04] Production.INFO: ==11105== Releasing lock... [2025-03-02 22:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:36:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: ==11113== Releasing lock... [2025-03-02 22:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:36:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.ERROR: done [2025-03-02 22:36:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:36:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:36:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:36:05] Production.INFO: Total Charge 0 [2025-03-02 22:36:05] Production.INFO: CreateAllLog End [2025-03-02 22:36:05] Production.INFO: Account Balance End. [2025-03-02 22:36:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:36:05] Production.INFO: ==11109== Releasing lock... [2025-03-02 22:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:36:13] Production.ERROR: CronJobId end10 [2025-03-02 22:36:13] Production.INFO: ==11107== Releasing lock... [2025-03-02 22:36:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:36:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:36:15] Production.INFO: call_cost start [2025-03-02 22:36:15] Production.INFO: call_cost end [2025-03-02 22:36:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:36:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:36:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:36:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:36:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:36:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:36:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:36:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:36:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:36:15] Production.INFO: ==11103== Releasing lock... [2025-03-02 22:36:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:36:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:36:16] Production.INFO: count ==1335 [2025-03-02 22:36:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594220', 'tblTempUsageDetail_20' ) start [2025-03-02 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594220', 'tblTempUsageDetail_20' ) end [2025-03-02 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594220', 'tblTempVendorCDR_20' ) start [2025-03-02 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594220', 'tblTempVendorCDR_20' ) end [2025-03-02 22:36:17] Production.INFO: ProcessCDR(1,14594220,1,1,2) [2025-03-02 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594220', 'tblTempUsageDetail_20' ) start [2025-03-02 22:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594220', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:36:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:36:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:36:25] Production.INFO: ==11111== Releasing lock... [2025-03-02 22:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:36:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:37:02] Production.INFO: ==11184== Lock acquired, processing the job... [2025-03-03 03:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:37:02] Production.INFO: neon service started [2025-03-03 03:37:02] Production.INFO: neon service started [2025-03-03 03:37:02] Production.INFO: ==11184== Releasing lock... [2025-03-03 03:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:37:02] Production.INFO: ==11186== Lock acquired, processing the job... [2025-03-02 22:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:37:03] Production.INFO: ==11186== Releasing lock... [2025-03-02 22:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:37:03] Production.INFO: ==11188== Lock acquired, processing the job... [2025-03-03 03:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:37:03] Production.INFO: ==11188== Releasing lock... [2025-03-03 03:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:37:04] Production.INFO: ==11201== Lock acquired, processing the job... [2025-03-02 22:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:37:04] Production.INFO: ==11197== Lock acquired, processing the job... [2025-03-02 22:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:37:04] Production.INFO: ==11191== Lock acquired, processing the job... [2025-03-02 22:37:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:37:04] Production.INFO: Account Balance Start. [2025-03-02 22:37:04] Production.INFO: CreateAllLog Start [2025-03-02 22:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:37:04] Production.INFO: 117 [2025-03-02 22:37:04] Production.INFO: ==11193== Lock acquired, processing the job... [2025-03-02 22:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:37:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.INFO: count ==13 [2025-03-02 22:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:37:04] Production.INFO: ==11195== Lock acquired, processing the job... [2025-03-02 22:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:37:04] Production.INFO: count ==21 [2025-03-02 22:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594222') start [2025-03-02 22:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:37:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.INFO: ==11199== Lock acquired, processing the job... [2025-03-02 22:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:37:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594222') end [2025-03-02 22:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:37:04] Production.INFO: 1 [2025-03-02 22:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:37:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.INFO: ==11201== Releasing lock... [2025-03-02 22:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:37:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.INFO: ==11193== Releasing lock... [2025-03-02 22:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:37:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.ERROR: done [2025-03-02 22:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:37:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:04] Production.ERROR: done [2025-03-02 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:37:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:37:05] Production.INFO: Total Charge 0 [2025-03-02 22:37:05] Production.INFO: CreateAllLog End [2025-03-02 22:37:05] Production.INFO: Account Balance End. [2025-03-02 22:37:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:37:05] Production.INFO: ==11197== Releasing lock... [2025-03-02 22:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:37:13] Production.ERROR: CronJobId end10 [2025-03-02 22:37:13] Production.INFO: ==11195== Releasing lock... [2025-03-02 22:37:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:37:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:37:15] Production.INFO: call_cost start [2025-03-02 22:37:15] Production.INFO: call_cost end [2025-03-02 22:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:37:15] Production.INFO: ==11191== Releasing lock... [2025-03-02 22:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:37:17] Production.INFO: count ==1335 [2025-03-02 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594225', 'tblTempUsageDetail_20' ) start [2025-03-02 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594225', 'tblTempUsageDetail_20' ) end [2025-03-02 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594225', 'tblTempVendorCDR_20' ) start [2025-03-02 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594225', 'tblTempVendorCDR_20' ) end [2025-03-02 22:37:17] Production.INFO: ProcessCDR(1,14594225,1,1,2) [2025-03-02 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594225', 'tblTempUsageDetail_20' ) start [2025-03-02 22:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594225', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:37:24] Production.INFO: ==11199== Releasing lock... [2025-03-02 22:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:37:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:38:01] Production.INFO: ==11278== Lock acquired, processing the job... [2025-03-03 03:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:38:01] Production.INFO: neon service started [2025-03-03 03:38:01] Production.INFO: neon service started [2025-03-03 03:38:02] Production.INFO: ==11278== Releasing lock... [2025-03-03 03:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:38:02] Production.INFO: ==11283== Lock acquired, processing the job... [2025-03-03 03:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 22:38:02] Production.INFO: ==11281== Lock acquired, processing the job... [2025-03-02 22:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:38:02] Production.INFO: ==11283== Releasing lock... [2025-03-03 03:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:38:03] Production.INFO: ==11281== Releasing lock... [2025-03-02 22:38:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:38:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:38:03] Production.INFO: ==11289== Lock acquired, processing the job... [2025-03-02 22:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:38:03] Production.INFO: ==11285== Lock acquired, processing the job... [2025-03-02 22:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:38:03] Production.INFO: ==11293== Lock acquired, processing the job... [2025-03-02 22:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:38:04] Production.INFO: ==11287== Lock acquired, processing the job... [2025-03-02 22:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:38:04] Production.INFO: ==11291== Lock acquired, processing the job... [2025-03-02 22:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:38:04] Production.INFO: ==11296== Lock acquired, processing the job... [2025-03-02 22:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:38:04] Production.INFO: Account Balance Start. [2025-03-02 22:38:04] Production.INFO: CreateAllLog Start [2025-03-02 22:38:04] Production.INFO: 117 [2025-03-02 22:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:38:04] Production.INFO: count ==13 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:38:04] Production.ERROR: done [2025-03-02 22:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:38:04] Production.INFO: count ==21 [2025-03-02 22:38:04] Production.INFO: ==11287== Releasing lock... [2025-03-02 22:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594229') start [2025-03-02 22:38:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.ERROR: done [2025-03-02 22:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594229') end [2025-03-02 22:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:38:04] Production.INFO: 1 [2025-03-02 22:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:38:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:38:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: ==11296== Releasing lock... [2025-03-02 22:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:38:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:38:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:38:05] Production.INFO: Total Charge 0 [2025-03-02 22:38:05] Production.INFO: CreateAllLog End [2025-03-02 22:38:05] Production.INFO: Account Balance End. [2025-03-02 22:38:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:38:05] Production.INFO: ==11291== Releasing lock... [2025-03-02 22:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:38:12] Production.ERROR: CronJobId end10 [2025-03-02 22:38:12] Production.INFO: ==11289== Releasing lock... [2025-03-02 22:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:38:15] Production.INFO: call_cost start [2025-03-02 22:38:15] Production.INFO: call_cost end [2025-03-02 22:38:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:38:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:38:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:38:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:38:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:38:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:38:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:38:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:38:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:38:15] Production.INFO: ==11285== Releasing lock... [2025-03-02 22:38:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:38:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:38:16] Production.INFO: count ==1335 [2025-03-02 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594230', 'tblTempUsageDetail_20' ) start [2025-03-02 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594230', 'tblTempUsageDetail_20' ) end [2025-03-02 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594230', 'tblTempVendorCDR_20' ) start [2025-03-02 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594230', 'tblTempVendorCDR_20' ) end [2025-03-02 22:38:17] Production.INFO: ProcessCDR(1,14594230,1,1,2) [2025-03-02 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594230', 'tblTempUsageDetail_20' ) start [2025-03-02 22:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594230', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:38:24] Production.INFO: ==11293== Releasing lock... [2025-03-02 22:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:38:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:39:01] Production.INFO: ==11354== Lock acquired, processing the job... [2025-03-03 03:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:39:01] Production.INFO: neon service started [2025-03-03 03:39:01] Production.INFO: neon service started [2025-03-03 03:39:01] Production.INFO: ==11354== Releasing lock... [2025-03-03 03:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:39:01] Production.INFO: ==11356== Lock acquired, processing the job... [2025-03-02 22:39:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:39:01] Production.INFO: ==11358== Lock acquired, processing the job... [2025-03-03 03:39:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:39:01] Production.INFO: ==11358== Releasing lock... [2025-03-03 03:39:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:39:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:39:02] Production.INFO: ==11356== Releasing lock... [2025-03-02 22:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:39:02] Production.INFO: ==11361== Lock acquired, processing the job... [2025-03-02 22:39:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:39:02] Production.INFO: ==11363== Lock acquired, processing the job... [2025-03-02 22:39:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:39:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:39:02] Production.INFO: ==11367== Lock acquired, processing the job... [2025-03-02 22:39:02] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:39:03] Production.INFO: ==11371== Lock acquired, processing the job... [2025-03-02 22:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:39:03] Production.INFO: Account Balance Start. [2025-03-02 22:39:03] Production.INFO: CreateAllLog Start [2025-03-02 22:39:03] Production.INFO: 117 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:39:03] Production.INFO: ==11365== Lock acquired, processing the job... [2025-03-02 22:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:39:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: count ==13 [2025-03-02 22:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:39:03] Production.INFO: count ==21 [2025-03-02 22:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594234') start [2025-03-02 22:39:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594234') end [2025-03-02 22:39:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:39:03] Production.INFO: 1 [2025-03-02 22:39:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:39:03] Production.INFO: ==11363== Releasing lock... [2025-03-02 22:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:39:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:39:03] Production.INFO: ==11369== Lock acquired, processing the job... [2025-03-02 22:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:39:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: ==11371== Releasing lock... [2025-03-02 22:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:39:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:39:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-17 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-18 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-19 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-20 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-21 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-22 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-23 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-24 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-25 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.ERROR: done [2025-03-02 22:39:03] Production.INFO: Date 2025-02-26 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:39:03] Production.INFO: Date 2025-02-27 [2025-03-02 22:39:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:39:04] Production.INFO: Total Charge 0 [2025-03-02 22:39:04] Production.INFO: CreateAllLog End [2025-03-02 22:39:04] Production.ERROR: done [2025-03-02 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:39:04] Production.INFO: Account Balance End. [2025-03-02 22:39:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:39:04] Production.INFO: ==11367== Releasing lock... [2025-03-02 22:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:39:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:39:12] Production.ERROR: CronJobId end10 [2025-03-02 22:39:12] Production.INFO: ==11365== Releasing lock... [2025-03-02 22:39:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:39:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:39:14] Production.INFO: call_cost start [2025-03-02 22:39:14] Production.INFO: call_cost end [2025-03-02 22:39:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:39:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:39:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:39:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:39:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:39:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:39:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:39:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:39:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:39:14] Production.INFO: ==11361== Releasing lock... [2025-03-02 22:39:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:39:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:39:16] Production.INFO: count ==1335 [2025-03-02 22:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594235', 'tblTempUsageDetail_20' ) start [2025-03-02 22:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594235', 'tblTempUsageDetail_20' ) end [2025-03-02 22:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594235', 'tblTempVendorCDR_20' ) start [2025-03-02 22:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594235', 'tblTempVendorCDR_20' ) end [2025-03-02 22:39:16] Production.INFO: ProcessCDR(1,14594235,1,1,2) [2025-03-02 22:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594235', 'tblTempUsageDetail_20' ) start [2025-03-02 22:39:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594235', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:39:24] Production.INFO: ==11369== Releasing lock... [2025-03-02 22:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:39:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:40:01] Production.INFO: ==11438== Lock acquired, processing the job... [2025-03-03 03:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:40:01] Production.INFO: neon service started [2025-03-03 03:40:01] Production.INFO: neon service started [2025-03-03 03:40:01] Production.INFO: ==11438== Releasing lock... [2025-03-03 03:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:40:02] Production.INFO: ==11440== Lock acquired, processing the job... [2025-03-02 22:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:40:02] Production.INFO: ==11442== Lock acquired, processing the job... [2025-03-03 03:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:40:02] Production.INFO: ==11442== Releasing lock... [2025-03-03 03:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:40:02] Production.INFO: ==11440== Releasing lock... [2025-03-02 22:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:40:03] Production.INFO: ==11447== Lock acquired, processing the job... [2025-03-02 22:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:40:04] Production.INFO: ==11451== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:40:04] Production.INFO: ==11457== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 22:40:04] Production.INFO: ==11445== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 22:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:40:04] Production.INFO: ==11449== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:40:04] Production.INFO: ==11453== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:40:04] Production.INFO: ==11455== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:40:04] Production.INFO: ==11459== Lock acquired, processing the job... [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:40:04] Production.ERROR: CronJob PID - 11447 [2025-03-02 22:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 22:40:04] Production.ERROR: CronJob ID - 5 [2025-03-02 22:40:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:40:00 [2025-03-02 22:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:40:04] Production.ERROR: CronJob PID - 11449 [2025-03-02 22:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 22:40:04] Production.ERROR: CronJob ID - 7 [2025-03-02 22:40:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:40:00 [2025-03-02 22:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:40:04] Production.ERROR: CronJob PID - 11451 [2025-03-02 22:40:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-02 22:40:04] Production.ERROR: CronJob ID - 10 [2025-03-02 22:40:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:40:00 [2025-03-02 22:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:40:04] Production.ERROR: CronJob PID - 11457 [2025-03-02 22:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-02 22:40:04] Production.ERROR: CronJob ID - 17 [2025-03-02 22:40:04] Production.ERROR: CronJob Last Run Time 2025-03-02 22:40:00 [2025-03-02 22:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 22:40:04] Production.INFO: ==11445== Releasing lock... [2025-03-02 22:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 22:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 22:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:40:04] Production.ERROR: done [2025-03-02 22:40:04] Production.INFO: Account Balance Start. [2025-03-02 22:40:04] Production.INFO: CreateAllLog Start [2025-03-02 22:40:04] Production.INFO: 117 [2025-03-02 22:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 22:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594240', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 22:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:40:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:04] Production.INFO: count ==13 [2025-03-02 22:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:40:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:04] Production.INFO: count ==21 [2025-03-02 22:40:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594239') start [2025-03-02 22:40:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:04] Production.INFO: ==11449== Releasing lock... [2025-03-02 22:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:40:05] Production.ERROR: done [2025-03-02 22:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594239') end [2025-03-02 22:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:40:05] Production.INFO: 1 [2025-03-02 22:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-12 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-13 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-14 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: ==11459== Releasing lock... [2025-03-02 22:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:40:05] Production.INFO: Date 2025-02-15 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.ERROR: done [2025-03-02 22:40:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:40:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:40:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:06] Production.INFO: Date 2025-03-01 [2025-03-02 22:40:06] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:06] Production.INFO: Date 2025-03-02 [2025-03-02 22:40:06] Production.INFO: Reseller ==> 0 [2025-03-02 22:40:06] Production.INFO: Total Charge 0 [2025-03-02 22:40:06] Production.INFO: CreateAllLog End [2025-03-02 22:40:06] Production.INFO: Account Balance End. [2025-03-02 22:40:06] Production.ERROR: CronJobId end 12 [2025-03-02 22:40:06] Production.INFO: ==11453== Releasing lock... [2025-03-02 22:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:40:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594240', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 22:40:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 22:40:08] Production.INFO: ProcessCDR(1,14594240,1,1,2) [2025-03-02 22:40:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594240,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:40:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594240,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:40:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 22:40:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 22:40:08] Production.INFO: ==11457== Releasing lock... [2025-03-02 22:40:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 22:40:08] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:40:13] Production.ERROR: CronJobId end10 [2025-03-02 22:40:13] Production.INFO: ==11451== Releasing lock... [2025-03-02 22:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:40:16] Production.INFO: call_cost start [2025-03-02 22:40:16] Production.INFO: call_cost end [2025-03-02 22:40:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:40:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:40:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:40:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:40:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:40:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:40:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:40:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:40:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:40:16] Production.INFO: ==11447== Releasing lock... [2025-03-02 22:40:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:40:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:40:17] Production.INFO: count ==1335 [2025-03-02 22:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594241', 'tblTempUsageDetail_20' ) start [2025-03-02 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594241', 'tblTempUsageDetail_20' ) end [2025-03-02 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594241', 'tblTempVendorCDR_20' ) start [2025-03-02 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594241', 'tblTempVendorCDR_20' ) end [2025-03-02 22:40:17] Production.INFO: ProcessCDR(1,14594241,1,1,2) [2025-03-02 22:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594241', 'tblTempUsageDetail_20' ) start [2025-03-02 22:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594241', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:40:25] Production.INFO: ==11455== Releasing lock... [2025-03-02 22:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:40:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:41:02] Production.INFO: ==11538== Lock acquired, processing the job... [2025-03-03 03:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:41:02] Production.INFO: neon service started [2025-03-03 03:41:02] Production.INFO: neon service started [2025-03-03 03:41:02] Production.INFO: ==11538== Releasing lock... [2025-03-03 03:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:41:02] Production.INFO: ==11542== Lock acquired, processing the job... [2025-03-03 03:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:41:02] Production.INFO: ==11542== Releasing lock... [2025-03-03 03:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:41:02] Production.INFO: ==11540== Lock acquired, processing the job... [2025-03-02 22:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:41:03] Production.INFO: ==11540== Releasing lock... [2025-03-02 22:41:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:41:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:41:03] Production.INFO: ==11547== Lock acquired, processing the job... [2025-03-02 22:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:41:04] Production.INFO: ==11555== Lock acquired, processing the job... [2025-03-02 22:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:41:04] Production.INFO: ==11545== Lock acquired, processing the job... [2025-03-02 22:41:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:41:04] Production.INFO: ==11547== Releasing lock... [2025-03-02 22:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:41:04] Production.INFO: count ==13 [2025-03-02 22:41:04] Production.INFO: ==11549== Lock acquired, processing the job... [2025-03-02 22:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:41:04] Production.INFO: count ==21 [2025-03-02 22:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594243') start [2025-03-02 22:41:04] Production.INFO: ==11551== Lock acquired, processing the job... [2025-03-02 22:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594243') end [2025-03-02 22:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:41:04] Production.INFO: 1 [2025-03-02 22:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:41:04] Production.INFO: ==11553== Lock acquired, processing the job... [2025-03-02 22:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:41:04] Production.INFO: ==11555== Releasing lock... [2025-03-02 22:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:41:04] Production.INFO: Account Balance Start. [2025-03-02 22:41:04] Production.INFO: CreateAllLog Start [2025-03-02 22:41:04] Production.INFO: 117 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.ERROR: done [2025-03-02 22:41:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.ERROR: done [2025-03-02 22:41:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:41:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:41:05] Production.INFO: Total Charge 0 [2025-03-02 22:41:05] Production.INFO: CreateAllLog End [2025-03-02 22:41:05] Production.INFO: Account Balance End. [2025-03-02 22:41:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:41:05] Production.INFO: ==11551== Releasing lock... [2025-03-02 22:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:41:13] Production.ERROR: CronJobId end10 [2025-03-02 22:41:13] Production.INFO: ==11549== Releasing lock... [2025-03-02 22:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:41:15] Production.INFO: call_cost start [2025-03-02 22:41:15] Production.INFO: call_cost end [2025-03-02 22:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:41:15] Production.INFO: ==11545== Releasing lock... [2025-03-02 22:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:41:17] Production.INFO: count ==1335 [2025-03-02 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594246', 'tblTempUsageDetail_20' ) start [2025-03-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594246', 'tblTempUsageDetail_20' ) end [2025-03-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594246', 'tblTempVendorCDR_20' ) start [2025-03-02 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594246', 'tblTempVendorCDR_20' ) end [2025-03-02 22:41:17] Production.INFO: ProcessCDR(1,14594246,1,1,2) [2025-03-02 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594246', 'tblTempUsageDetail_20' ) start [2025-03-02 22:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594246', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:41:24] Production.INFO: ==11553== Releasing lock... [2025-03-02 22:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:41:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:42:01] Production.INFO: ==11624== Lock acquired, processing the job... [2025-03-03 03:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:42:01] Production.INFO: neon service started [2025-03-03 03:42:01] Production.INFO: neon service started [2025-03-03 03:42:01] Production.INFO: ==11624== Releasing lock... [2025-03-03 03:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:42:02] Production.INFO: ==11628== Lock acquired, processing the job... [2025-03-03 03:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:42:02] Production.INFO: ==11628== Releasing lock... [2025-03-03 03:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:42:02] Production.INFO: ==11626== Lock acquired, processing the job... [2025-03-02 22:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:42:02] Production.INFO: ==11626== Releasing lock... [2025-03-02 22:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:42:03] Production.INFO: ==11631== Lock acquired, processing the job... [2025-03-02 22:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:42:03] Production.INFO: ==11633== Lock acquired, processing the job... [2025-03-02 22:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:42:03] Production.INFO: ==11635== Lock acquired, processing the job... [2025-03-02 22:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:42:03] Production.INFO: ==11637== Lock acquired, processing the job... [2025-03-02 22:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:42:03] Production.INFO: ==11639== Lock acquired, processing the job... [2025-03-02 22:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:42:03] Production.INFO: ==11641== Lock acquired, processing the job... [2025-03-02 22:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:42:03] Production.INFO: ==11633== Releasing lock... [2025-03-02 22:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:42:03] Production.INFO: Account Balance Start. [2025-03-02 22:42:03] Production.INFO: CreateAllLog Start [2025-03-02 22:42:03] Production.INFO: 117 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:42:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: count ==13 [2025-03-02 22:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:42:04] Production.INFO: count ==21 [2025-03-02 22:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594250') start [2025-03-02 22:42:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.ERROR: done [2025-03-02 22:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594250') end [2025-03-02 22:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:42:04] Production.INFO: 1 [2025-03-02 22:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:42:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:42:04] Production.INFO: ==11641== Releasing lock... [2025-03-02 22:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.ERROR: done [2025-03-02 22:42:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:42:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:42:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:42:05] Production.INFO: Total Charge 0 [2025-03-02 22:42:05] Production.INFO: CreateAllLog End [2025-03-02 22:42:05] Production.INFO: Account Balance End. [2025-03-02 22:42:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:42:05] Production.INFO: ==11637== Releasing lock... [2025-03-02 22:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:42:13] Production.ERROR: CronJobId end10 [2025-03-02 22:42:13] Production.INFO: ==11635== Releasing lock... [2025-03-02 22:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:42:15] Production.INFO: call_cost start [2025-03-02 22:42:15] Production.INFO: call_cost end [2025-03-02 22:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:42:15] Production.INFO: ==11631== Releasing lock... [2025-03-02 22:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:42:16] Production.INFO: count ==1335 [2025-03-02 22:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594251', 'tblTempUsageDetail_20' ) start [2025-03-02 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594251', 'tblTempUsageDetail_20' ) end [2025-03-02 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594251', 'tblTempVendorCDR_20' ) start [2025-03-02 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594251', 'tblTempVendorCDR_20' ) end [2025-03-02 22:42:16] Production.INFO: ProcessCDR(1,14594251,1,1,2) [2025-03-02 22:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594251', 'tblTempUsageDetail_20' ) start [2025-03-02 22:42:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594251', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:42:24] Production.INFO: ==11639== Releasing lock... [2025-03-02 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:42:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:43:02] Production.INFO: ==11708== Lock acquired, processing the job... [2025-03-03 03:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:43:02] Production.INFO: neon service started [2025-03-03 03:43:02] Production.INFO: neon service started [2025-03-03 03:43:02] Production.INFO: ==11708== Releasing lock... [2025-03-03 03:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:43:02] Production.INFO: ==11712== Lock acquired, processing the job... [2025-03-03 03:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:43:02] Production.INFO: ==11712== Releasing lock... [2025-03-03 03:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:43:02] Production.INFO: ==11710== Lock acquired, processing the job... [2025-03-02 22:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:43:03] Production.INFO: ==11710== Releasing lock... [2025-03-02 22:43:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:43:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:43:03] Production.INFO: ==11717== Lock acquired, processing the job... [2025-03-02 22:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:43:03] Production.INFO: ==11719== Lock acquired, processing the job... [2025-03-02 22:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:43:03] Production.INFO: ==11725== Lock acquired, processing the job... [2025-03-02 22:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:43:04] Production.INFO: ==11721== Lock acquired, processing the job... [2025-03-02 22:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:43:04] Production.INFO: ==11723== Lock acquired, processing the job... [2025-03-02 22:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:43:04] Production.INFO: ==11719== Releasing lock... [2025-03-02 22:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:43:04] Production.INFO: ==11727== Lock acquired, processing the job... [2025-03-02 22:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:43:04] Production.INFO: Account Balance Start. [2025-03-02 22:43:04] Production.INFO: CreateAllLog Start [2025-03-02 22:43:04] Production.INFO: 117 [2025-03-02 22:43:04] Production.ERROR: done [2025-03-02 22:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:43:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:43:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:43:04] Production.INFO: count ==13 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:43:04] Production.INFO: count ==21 [2025-03-02 22:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594255') start [2025-03-02 22:43:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.ERROR: done [2025-03-02 22:43:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594255') end [2025-03-02 22:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:43:04] Production.INFO: 1 [2025-03-02 22:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:43:04] Production.INFO: ==11727== Releasing lock... [2025-03-02 22:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:43:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:43:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:43:05] Production.INFO: Total Charge 0 [2025-03-02 22:43:05] Production.INFO: CreateAllLog End [2025-03-02 22:43:05] Production.INFO: Account Balance End. [2025-03-02 22:43:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:43:05] Production.INFO: ==11723== Releasing lock... [2025-03-02 22:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:43:13] Production.ERROR: CronJobId end10 [2025-03-02 22:43:13] Production.INFO: ==11721== Releasing lock... [2025-03-02 22:43:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:43:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:43:15] Production.INFO: call_cost start [2025-03-02 22:43:15] Production.INFO: call_cost end [2025-03-02 22:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:43:15] Production.INFO: ==11717== Releasing lock... [2025-03-02 22:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:43:16] Production.INFO: count ==1335 [2025-03-02 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594256', 'tblTempUsageDetail_20' ) start [2025-03-02 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594256', 'tblTempUsageDetail_20' ) end [2025-03-02 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594256', 'tblTempVendorCDR_20' ) start [2025-03-02 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594256', 'tblTempVendorCDR_20' ) end [2025-03-02 22:43:17] Production.INFO: ProcessCDR(1,14594256,1,1,2) [2025-03-02 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594256', 'tblTempUsageDetail_20' ) start [2025-03-02 22:43:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594256', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:43:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:43:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:43:25] Production.INFO: ==11725== Releasing lock... [2025-03-02 22:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:43:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:44:01] Production.INFO: ==11791== Lock acquired, processing the job... [2025-03-03 03:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:44:01] Production.INFO: neon service started [2025-03-03 03:44:01] Production.INFO: neon service started [2025-03-03 03:44:01] Production.INFO: ==11791== Releasing lock... [2025-03-03 03:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:44:01] Production.INFO: ==11793== Lock acquired, processing the job... [2025-03-02 22:44:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:44:02] Production.INFO: ==11793== Releasing lock... [2025-03-02 22:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:44:02] Production.INFO: ==11795== Lock acquired, processing the job... [2025-03-03 03:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:44:02] Production.INFO: ==11795== Releasing lock... [2025-03-03 03:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:44:03] Production.INFO: ==11808== Lock acquired, processing the job... [2025-03-02 22:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:44:03] Production.INFO: ==11806== Lock acquired, processing the job... [2025-03-02 22:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:44:03] Production.INFO: ==11800== Lock acquired, processing the job... [2025-03-02 22:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:44:03] Production.INFO: ==11798== Lock acquired, processing the job... [2025-03-02 22:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:44:03] Production.INFO: ==11802== Lock acquired, processing the job... [2025-03-02 22:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:44:03] Production.INFO: ==11804== Lock acquired, processing the job... [2025-03-02 22:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:44:03] Production.INFO: count ==13 [2025-03-02 22:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:44:03] Production.INFO: count ==21 [2025-03-02 22:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594257') start [2025-03-02 22:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:44:03] Production.INFO: Account Balance Start. [2025-03-02 22:44:03] Production.INFO: CreateAllLog Start [2025-03-02 22:44:03] Production.INFO: 117 [2025-03-02 22:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594257') end [2025-03-02 22:44:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:44:03] Production.INFO: 1 [2025-03-02 22:44:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:44:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:44:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:03] Production.INFO: ==11808== Releasing lock... [2025-03-02 22:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:44:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:44:03] Production.INFO: ==11800== Releasing lock... [2025-03-02 22:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:44:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.ERROR: done [2025-03-02 22:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.ERROR: done [2025-03-02 22:44:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:44:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:44:04] Production.INFO: Total Charge 0 [2025-03-02 22:44:05] Production.INFO: CreateAllLog End [2025-03-02 22:44:05] Production.INFO: Account Balance End. [2025-03-02 22:44:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:44:05] Production.INFO: ==11804== Releasing lock... [2025-03-02 22:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:44:11] Production.ERROR: CronJobId end10 [2025-03-02 22:44:11] Production.INFO: ==11802== Releasing lock... [2025-03-02 22:44:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:44:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:44:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:44:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:44:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:44:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:44:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:44:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:44:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:44:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:44:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:44:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:44:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:44:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:44:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:44:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:44:14] Production.INFO: call_cost start [2025-03-02 22:44:14] Production.INFO: call_cost end [2025-03-02 22:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:44:14] Production.INFO: ==11798== Releasing lock... [2025-03-02 22:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:44:16] Production.INFO: count ==1335 [2025-03-02 22:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594261', 'tblTempUsageDetail_20' ) start [2025-03-02 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594261', 'tblTempUsageDetail_20' ) end [2025-03-02 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594261', 'tblTempVendorCDR_20' ) start [2025-03-02 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594261', 'tblTempVendorCDR_20' ) end [2025-03-02 22:44:16] Production.INFO: ProcessCDR(1,14594261,1,1,2) [2025-03-02 22:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594261', 'tblTempUsageDetail_20' ) start [2025-03-02 22:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594261', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:44:24] Production.INFO: ==11806== Releasing lock... [2025-03-02 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:44:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:45:02] Production.INFO: ==11870== Lock acquired, processing the job... [2025-03-03 03:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:45:02] Production.INFO: neon service started [2025-03-03 03:45:02] Production.INFO: neon service started [2025-03-03 03:45:02] Production.INFO: ==11870== Releasing lock... [2025-03-03 03:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:45:02] Production.INFO: ==11872== Lock acquired, processing the job... [2025-03-02 22:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:45:02] Production.INFO: ==11874== Lock acquired, processing the job... [2025-03-03 03:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:45:02] Production.INFO: ==11874== Releasing lock... [2025-03-03 03:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:45:03] Production.INFO: ==11872== Releasing lock... [2025-03-02 22:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:45:03] Production.INFO: ==11881== Lock acquired, processing the job... [2025-03-02 22:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:45:04] Production.INFO: ==11885== Lock acquired, processing the job... [2025-03-02 22:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:45:04] Production.INFO: ==11877== Lock acquired, processing the job... [2025-03-02 22:45:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:45:04] Production.INFO: ==11879== Lock acquired, processing the job... [2025-03-02 22:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:45:04] Production.INFO: ==11883== Lock acquired, processing the job... [2025-03-02 22:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:45:04] Production.INFO: ==11887== Lock acquired, processing the job... [2025-03-02 22:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:45:04] Production.INFO: Account Balance Start. [2025-03-02 22:45:04] Production.INFO: CreateAllLog Start [2025-03-02 22:45:04] Production.INFO: 117 [2025-03-02 22:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:45:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:45:04] Production.INFO: count ==13 [2025-03-02 22:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:45:04] Production.INFO: count ==21 [2025-03-02 22:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594263') start [2025-03-02 22:45:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.ERROR: done [2025-03-02 22:45:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594263') end [2025-03-02 22:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:45:04] Production.INFO: 1 [2025-03-02 22:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:45:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: ==11887== Releasing lock... [2025-03-02 22:45:04] Production.INFO: ==11879== Releasing lock... [2025-03-02 22:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:45:04] Production.ERROR: done [2025-03-02 22:45:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:45:05] Production.INFO: Total Charge 0 [2025-03-02 22:45:05] Production.INFO: CreateAllLog End [2025-03-02 22:45:05] Production.INFO: Account Balance End. [2025-03-02 22:45:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:45:05] Production.INFO: ==11883== Releasing lock... [2025-03-02 22:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:45:11] Production.ERROR: CronJobId end10 [2025-03-02 22:45:11] Production.INFO: ==11881== Releasing lock... [2025-03-02 22:45:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:45:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:45:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:45:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:45:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:45:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:45:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:45:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:45:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:45:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:45:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:45:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:45:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:45:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:45:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:45:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:45:14] Production.INFO: call_cost start [2025-03-02 22:45:14] Production.INFO: call_cost end [2025-03-02 22:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:45:14] Production.INFO: ==11877== Releasing lock... [2025-03-02 22:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:45:17] Production.INFO: count ==1335 [2025-03-02 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594266', 'tblTempUsageDetail_20' ) start [2025-03-02 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594266', 'tblTempUsageDetail_20' ) end [2025-03-02 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594266', 'tblTempVendorCDR_20' ) start [2025-03-02 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594266', 'tblTempVendorCDR_20' ) end [2025-03-02 22:45:17] Production.INFO: ProcessCDR(1,14594266,1,1,2) [2025-03-02 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594266', 'tblTempUsageDetail_20' ) start [2025-03-02 22:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594266', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:45:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:45:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:45:25] Production.INFO: ==11885== Releasing lock... [2025-03-02 22:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:45:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:46:01] Production.INFO: ==11949== Lock acquired, processing the job... [2025-03-03 03:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:46:01] Production.INFO: neon service started [2025-03-03 03:46:01] Production.INFO: neon service started [2025-03-03 03:46:01] Production.INFO: ==11949== Releasing lock... [2025-03-03 03:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:46:01] Production.INFO: ==11951== Lock acquired, processing the job... [2025-03-02 22:46:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:46:02] Production.INFO: ==11953== Lock acquired, processing the job... [2025-03-03 03:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:46:02] Production.INFO: ==11953== Releasing lock... [2025-03-03 03:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:46:02] Production.INFO: ==11951== Releasing lock... [2025-03-02 22:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:46:03] Production.INFO: ==11956== Lock acquired, processing the job... [2025-03-02 22:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:46:03] Production.INFO: ==11958== Lock acquired, processing the job... [2025-03-02 22:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:46:03] Production.INFO: ==11964== Lock acquired, processing the job... [2025-03-02 22:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:46:03] Production.INFO: ==11960== Lock acquired, processing the job... [2025-03-02 22:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:46:03] Production.INFO: ==11962== Lock acquired, processing the job... [2025-03-02 22:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:46:03] Production.INFO: ==11966== Lock acquired, processing the job... [2025-03-02 22:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:46:03] Production.INFO: Account Balance Start. [2025-03-02 22:46:03] Production.INFO: CreateAllLog Start [2025-03-02 22:46:03] Production.INFO: 117 [2025-03-02 22:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:46:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:46:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:03] Production.INFO: count ==13 [2025-03-02 22:46:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:46:03] Production.INFO: count ==21 [2025-03-02 22:46:03] Production.ERROR: done [2025-03-02 22:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594270') start [2025-03-02 22:46:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:46:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:46:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: ==11958== Releasing lock... [2025-03-02 22:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594270') end [2025-03-02 22:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:46:04] Production.INFO: 1 [2025-03-02 22:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:46:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.ERROR: done [2025-03-02 22:46:04] Production.INFO: ==11966== Releasing lock... [2025-03-02 22:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:46:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:46:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:46:04] Production.INFO: Total Charge 0 [2025-03-02 22:46:04] Production.INFO: CreateAllLog End [2025-03-02 22:46:04] Production.INFO: Account Balance End. [2025-03-02 22:46:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:46:04] Production.INFO: ==11962== Releasing lock... [2025-03-02 22:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:46:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:46:12] Production.ERROR: CronJobId end10 [2025-03-02 22:46:12] Production.INFO: ==11960== Releasing lock... [2025-03-02 22:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:46:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:46:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:46:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:46:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:46:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:46:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:46:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:46:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:46:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:46:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:46:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:46:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:46:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:46:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:46:14] Production.INFO: call_cost start [2025-03-02 22:46:14] Production.INFO: call_cost end [2025-03-02 22:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:46:14] Production.INFO: ==11956== Releasing lock... [2025-03-02 22:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:46:16] Production.INFO: count ==1335 [2025-03-02 22:46:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594271', 'tblTempUsageDetail_20' ) start [2025-03-02 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594271', 'tblTempUsageDetail_20' ) end [2025-03-02 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594271', 'tblTempVendorCDR_20' ) start [2025-03-02 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594271', 'tblTempVendorCDR_20' ) end [2025-03-02 22:46:16] Production.INFO: ProcessCDR(1,14594271,1,1,2) [2025-03-02 22:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594271', 'tblTempUsageDetail_20' ) start [2025-03-02 22:46:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594271', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:46:24] Production.INFO: ==11964== Releasing lock... [2025-03-02 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:47:02] Production.INFO: ==12042== Lock acquired, processing the job... [2025-03-03 03:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:47:02] Production.INFO: neon service started [2025-03-03 03:47:02] Production.INFO: neon service started [2025-03-03 03:47:02] Production.INFO: ==12042== Releasing lock... [2025-03-03 03:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:47:02] Production.INFO: ==12044== Lock acquired, processing the job... [2025-03-02 22:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:47:02] Production.INFO: ==12044== Releasing lock... [2025-03-02 22:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:47:02] Production.INFO: ==12046== Lock acquired, processing the job... [2025-03-03 03:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:47:03] Production.INFO: ==12046== Releasing lock... [2025-03-03 03:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:47:03] Production.INFO: ==12050== Lock acquired, processing the job... [2025-03-02 22:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:47:03] Production.INFO: ==12050== Releasing lock... [2025-03-02 22:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:47:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:47:04] Production.INFO: ==12048== Lock acquired, processing the job... [2025-03-02 22:47:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:47:04] Production.INFO: ==12059== Lock acquired, processing the job... [2025-03-02 22:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:47:04] Production.INFO: ==12052== Lock acquired, processing the job... [2025-03-02 22:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:47:04] Production.INFO: ==12055== Lock acquired, processing the job... [2025-03-02 22:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:47:04] Production.INFO: ==12057== Lock acquired, processing the job... [2025-03-02 22:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:47:04] Production.INFO: count ==13 [2025-03-02 22:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:47:04] Production.INFO: count ==21 [2025-03-02 22:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594274') start [2025-03-02 22:47:04] Production.INFO: Account Balance Start. [2025-03-02 22:47:04] Production.INFO: CreateAllLog Start [2025-03-02 22:47:04] Production.INFO: 117 [2025-03-02 22:47:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594274') end [2025-03-02 22:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:47:04] Production.INFO: 1 [2025-03-02 22:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:47:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.INFO: ==12059== Releasing lock... [2025-03-02 22:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:47:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:47:05] Production.ERROR: done [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.ERROR: done [2025-03-02 22:47:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:47:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:47:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:47:05] Production.INFO: Total Charge 0 [2025-03-02 22:47:05] Production.INFO: CreateAllLog End [2025-03-02 22:47:05] Production.INFO: Account Balance End. [2025-03-02 22:47:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:47:05] Production.INFO: ==12055== Releasing lock... [2025-03-02 22:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:47:13] Production.ERROR: CronJobId end10 [2025-03-02 22:47:13] Production.INFO: ==12052== Releasing lock... [2025-03-02 22:47:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:47:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:47:16] Production.INFO: call_cost start [2025-03-02 22:47:16] Production.INFO: call_cost end [2025-03-02 22:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:47:16] Production.INFO: ==12048== Releasing lock... [2025-03-02 22:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:47:17] Production.INFO: count ==1335 [2025-03-02 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594276', 'tblTempUsageDetail_20' ) start [2025-03-02 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594276', 'tblTempUsageDetail_20' ) end [2025-03-02 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594276', 'tblTempVendorCDR_20' ) start [2025-03-02 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594276', 'tblTempVendorCDR_20' ) end [2025-03-02 22:47:17] Production.INFO: ProcessCDR(1,14594276,1,1,2) [2025-03-02 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594276', 'tblTempUsageDetail_20' ) start [2025-03-02 22:47:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594276', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:47:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:47:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:47:25] Production.INFO: ==12057== Releasing lock... [2025-03-02 22:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:47:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:48:01] Production.INFO: ==12165== Lock acquired, processing the job... [2025-03-03 03:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:48:01] Production.INFO: neon service started [2025-03-03 03:48:01] Production.INFO: neon service started [2025-03-03 03:48:01] Production.INFO: ==12165== Releasing lock... [2025-03-03 03:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:48:01] Production.INFO: ==12167== Lock acquired, processing the job... [2025-03-02 22:48:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:48:02] Production.INFO: ==12167== Releasing lock... [2025-03-02 22:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:48:02] Production.INFO: ==12169== Lock acquired, processing the job... [2025-03-03 03:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:48:02] Production.INFO: ==12169== Releasing lock... [2025-03-03 03:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:48:03] Production.INFO: ==12175== Lock acquired, processing the job... [2025-03-02 22:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:48:03] Production.INFO: ==12179== Lock acquired, processing the job... [2025-03-02 22:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:48:03] Production.INFO: ==12171== Lock acquired, processing the job... [2025-03-02 22:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:48:03] Production.INFO: ==12173== Lock acquired, processing the job... [2025-03-02 22:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:48:03] Production.INFO: ==12177== Lock acquired, processing the job... [2025-03-02 22:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:48:03] Production.INFO: ==12181== Lock acquired, processing the job... [2025-03-02 22:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:48:03] Production.INFO: Account Balance Start. [2025-03-02 22:48:03] Production.INFO: CreateAllLog Start [2025-03-02 22:48:03] Production.INFO: 117 [2025-03-02 22:48:03] Production.ERROR: done [2025-03-02 22:48:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:48:03] Production.INFO: ==12173== Releasing lock... [2025-03-02 22:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:48:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:48:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:48:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:03] Production.INFO: count ==13 [2025-03-02 22:48:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:48:03] Production.INFO: count ==21 [2025-03-02 22:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594280') start [2025-03-02 22:48:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.ERROR: done [2025-03-02 22:48:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594280') end [2025-03-02 22:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:48:04] Production.INFO: 1 [2025-03-02 22:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:48:04] Production.INFO: ==12181== Releasing lock... [2025-03-02 22:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:48:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:48:04] Production.INFO: Total Charge 0 [2025-03-02 22:48:04] Production.INFO: CreateAllLog End [2025-03-02 22:48:04] Production.INFO: Account Balance End. [2025-03-02 22:48:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:48:04] Production.INFO: ==12177== Releasing lock... [2025-03-02 22:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:48:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:48:11] Production.ERROR: CronJobId end10 [2025-03-02 22:48:11] Production.INFO: ==12175== Releasing lock... [2025-03-02 22:48:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:48:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:48:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:48:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:48:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:48:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:48:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:48:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:48:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:48:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:48:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:48:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:48:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:48:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:48:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:48:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:48:13] Production.INFO: call_cost start [2025-03-02 22:48:13] Production.INFO: call_cost end [2025-03-02 22:48:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:48:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:48:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:48:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:48:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:48:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:48:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:48:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:48:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:48:13] Production.INFO: ==12171== Releasing lock... [2025-03-02 22:48:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:48:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:48:16] Production.INFO: count ==1335 [2025-03-02 22:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594281', 'tblTempUsageDetail_20' ) start [2025-03-02 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594281', 'tblTempUsageDetail_20' ) end [2025-03-02 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594281', 'tblTempVendorCDR_20' ) start [2025-03-02 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594281', 'tblTempVendorCDR_20' ) end [2025-03-02 22:48:16] Production.INFO: ProcessCDR(1,14594281,1,1,2) [2025-03-02 22:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594281', 'tblTempUsageDetail_20' ) start [2025-03-02 22:48:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594281', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:48:24] Production.INFO: ==12179== Releasing lock... [2025-03-02 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:48:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:49:02] Production.INFO: ==12236== Lock acquired, processing the job... [2025-03-03 03:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:49:02] Production.INFO: neon service started [2025-03-03 03:49:02] Production.INFO: neon service started [2025-03-03 03:49:02] Production.INFO: ==12236== Releasing lock... [2025-03-03 03:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:49:02] Production.INFO: ==12240== Lock acquired, processing the job... [2025-03-03 03:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:49:02] Production.INFO: ==12240== Releasing lock... [2025-03-03 03:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:49:02] Production.INFO: ==12238== Lock acquired, processing the job... [2025-03-02 22:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:49:02] Production.INFO: ==12238== Releasing lock... [2025-03-02 22:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:49:03] Production.INFO: ==12245== Lock acquired, processing the job... [2025-03-02 22:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:49:03] Production.INFO: ==12249== Lock acquired, processing the job... [2025-03-02 22:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:49:03] Production.INFO: ==12251== Lock acquired, processing the job... [2025-03-02 22:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:49:03] Production.INFO: ==12247== Lock acquired, processing the job... [2025-03-02 22:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:49:03] Production.INFO: Account Balance Start. [2025-03-02 22:49:03] Production.INFO: CreateAllLog Start [2025-03-02 22:49:03] Production.INFO: 117 [2025-03-02 22:49:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:49:03] Production.INFO: ==12255== Lock acquired, processing the job... [2025-03-02 22:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:49:03] Production.INFO: count ==13 [2025-03-02 22:49:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: ==12253== Lock acquired, processing the job... [2025-03-02 22:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:49:04] Production.INFO: count ==21 [2025-03-02 22:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594285') start [2025-03-02 22:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594285') end [2025-03-02 22:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:49:04] Production.INFO: 1 [2025-03-02 22:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:49:04] Production.INFO: ==12255== Releasing lock... [2025-03-02 22:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:49:04] Production.INFO: ==12247== Releasing lock... [2025-03-02 22:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:49:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.ERROR: done [2025-03-02 22:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.ERROR: done [2025-03-02 22:49:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:49:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:49:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:49:05] Production.INFO: Total Charge 0 [2025-03-02 22:49:05] Production.INFO: CreateAllLog End [2025-03-02 22:49:05] Production.INFO: Account Balance End. [2025-03-02 22:49:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:49:05] Production.INFO: ==12251== Releasing lock... [2025-03-02 22:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:49:13] Production.ERROR: CronJobId end10 [2025-03-02 22:49:13] Production.INFO: ==12249== Releasing lock... [2025-03-02 22:49:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:49:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:49:15] Production.INFO: call_cost start [2025-03-02 22:49:15] Production.INFO: call_cost end [2025-03-02 22:49:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:49:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:49:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:49:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:49:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:49:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:49:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:49:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:49:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:49:15] Production.INFO: ==12245== Releasing lock... [2025-03-02 22:49:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:49:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:49:17] Production.INFO: count ==1335 [2025-03-02 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594286', 'tblTempUsageDetail_20' ) start [2025-03-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594286', 'tblTempUsageDetail_20' ) end [2025-03-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594286', 'tblTempVendorCDR_20' ) start [2025-03-02 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594286', 'tblTempVendorCDR_20' ) end [2025-03-02 22:49:17] Production.INFO: ProcessCDR(1,14594286,1,1,2) [2025-03-02 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594286', 'tblTempUsageDetail_20' ) start [2025-03-02 22:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594286', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:49:27] Production.ERROR: **Email Sent Status 0 [2025-03-02 22:49:27] Production.ERROR: **Email Sent message Something wrong with sending mail.SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: 4.3.111 Temporary server error. Please try again later MRH1 [Hostname=YQXPR01MB3575.CANPRD01.PROD.OUTLOOK.COM] SMTP code: 451 ( Email Address: eleanor@onswitchit.ca) [2025-03-02 22:49:27] Production.INFO: ==12253== Releasing lock... [2025-03-02 22:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:49:27] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:50:01] Production.INFO: ==12308== Lock acquired, processing the job... [2025-03-03 03:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:50:01] Production.INFO: neon service started [2025-03-03 03:50:01] Production.INFO: neon service started [2025-03-03 03:50:01] Production.INFO: ==12308== Releasing lock... [2025-03-03 03:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:50:01] Production.INFO: ==12310== Lock acquired, processing the job... [2025-03-02 22:50:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:50:02] Production.INFO: ==12312== Lock acquired, processing the job... [2025-03-03 03:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:50:02] Production.INFO: ==12312== Releasing lock... [2025-03-03 03:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:50:02] Production.INFO: ==12310== Releasing lock... [2025-03-02 22:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:50:03] Production.INFO: ==12315== Lock acquired, processing the job... [2025-03-02 22:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 22:50:03] Production.INFO: ==12317== Lock acquired, processing the job... [2025-03-02 22:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 22:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 22:50:03] Production.ERROR: CronJob PID - 12317 [2025-03-02 22:50:03] Production.ERROR: CronJob Title - System Alerts [2025-03-02 22:50:03] Production.ERROR: CronJob ID - 5 [2025-03-02 22:50:03] Production.ERROR: CronJob Last Run Time 2025-03-02 22:50:00 [2025-03-02 22:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 22:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 22:50:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 22:50:03] Production.INFO: ==12315== Releasing lock... [2025-03-02 22:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 22:50:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 22:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:50:03] Production.INFO: ==12323== Lock acquired, processing the job... [2025-03-02 22:50:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:50:03] Production.INFO: ==12329== Lock acquired, processing the job... [2025-03-02 22:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:50:03] Production.INFO: ==12319== Lock acquired, processing the job... [2025-03-02 22:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:50:04] Production.INFO: Account Balance Start. [2025-03-02 22:50:04] Production.INFO: CreateAllLog Start [2025-03-02 22:50:04] Production.INFO: 117 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:50:04] Production.INFO: count ==13 [2025-03-02 22:50:04] Production.INFO: ==12321== Lock acquired, processing the job... [2025-03-02 22:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:50:04] Production.INFO: count ==21 [2025-03-02 22:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594289') start [2025-03-02 22:50:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:50:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:50:04] Production.INFO: ==12325== Lock acquired, processing the job... [2025-03-02 22:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594289') end [2025-03-02 22:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:50:04] Production.INFO: 1 [2025-03-02 22:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:50:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: ==12327== Lock acquired, processing the job... [2025-03-02 22:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 22:50:04] Production.INFO: ==12329== Releasing lock... [2025-03-02 22:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:50:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.INFO: ==12319== Releasing lock... [2025-03-02 22:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:50:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.ERROR: done [2025-03-02 22:50:04] Production.ERROR: done [2025-03-02 22:50:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 22:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594291', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 22:50:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.ERROR: done [2025-03-02 22:50:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:50:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:50:05] Production.INFO: Total Charge 0 [2025-03-02 22:50:05] Production.INFO: CreateAllLog End [2025-03-02 22:50:05] Production.INFO: Account Balance End. [2025-03-02 22:50:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:50:05] Production.INFO: ==12323== Releasing lock... [2025-03-02 22:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594291', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 22:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 22:50:09] Production.INFO: ProcessCDR(1,14594291,1,1,2) [2025-03-02 22:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594291,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594291,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 22:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 22:50:09] Production.INFO: ==12327== Releasing lock... [2025-03-02 22:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 22:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:50:14] Production.ERROR: CronJobId end10 [2025-03-02 22:50:14] Production.INFO: ==12321== Releasing lock... [2025-03-02 22:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:50:16] Production.INFO: call_cost start [2025-03-02 22:50:16] Production.INFO: call_cost end [2025-03-02 22:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:50:16] Production.INFO: ==12317== Releasing lock... [2025-03-02 22:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:50:17] Production.INFO: count ==1335 [2025-03-02 22:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594292', 'tblTempUsageDetail_20' ) start [2025-03-02 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594292', 'tblTempUsageDetail_20' ) end [2025-03-02 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594292', 'tblTempVendorCDR_20' ) start [2025-03-02 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594292', 'tblTempVendorCDR_20' ) end [2025-03-02 22:50:17] Production.INFO: ProcessCDR(1,14594292,1,1,2) [2025-03-02 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594292', 'tblTempUsageDetail_20' ) start [2025-03-02 22:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594292', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:50:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:50:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:50:25] Production.INFO: ==12325== Releasing lock... [2025-03-02 22:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:50:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:51:01] Production.INFO: ==12389== Lock acquired, processing the job... [2025-03-03 03:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:51:02] Production.INFO: neon service started [2025-03-03 03:51:02] Production.INFO: neon service started [2025-03-03 03:51:02] Production.INFO: ==12389== Releasing lock... [2025-03-03 03:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:51:02] Production.INFO: ==12391== Lock acquired, processing the job... [2025-03-02 22:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:51:02] Production.INFO: ==12391== Releasing lock... [2025-03-02 22:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:51:02] Production.INFO: ==12393== Lock acquired, processing the job... [2025-03-03 03:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:51:02] Production.INFO: ==12393== Releasing lock... [2025-03-03 03:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:51:03] Production.INFO: ==12395== Lock acquired, processing the job... [2025-03-02 22:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:51:03] Production.INFO: ==12397== Lock acquired, processing the job... [2025-03-02 22:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:51:03] Production.INFO: ==12404== Lock acquired, processing the job... [2025-03-02 22:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:51:03] Production.INFO: ==12400== Lock acquired, processing the job... [2025-03-02 22:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:51:03] Production.INFO: ==12402== Lock acquired, processing the job... [2025-03-02 22:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:51:03] Production.INFO: ==12406== Lock acquired, processing the job... [2025-03-02 22:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:51:03] Production.INFO: Account Balance Start. [2025-03-02 22:51:03] Production.INFO: CreateAllLog Start [2025-03-02 22:51:03] Production.INFO: 117 [2025-03-02 22:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:51:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:51:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: count ==13 [2025-03-02 22:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:51:04] Production.INFO: count ==21 [2025-03-02 22:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594296') start [2025-03-02 22:51:04] Production.ERROR: done [2025-03-02 22:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594296') end [2025-03-02 22:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:51:04] Production.INFO: 1 [2025-03-02 22:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:51:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: ==12406== Releasing lock... [2025-03-02 22:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:51:04] Production.INFO: ==12397== Releasing lock... [2025-03-02 22:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:51:04] Production.ERROR: done [2025-03-02 22:51:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:51:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:51:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:51:05] Production.INFO: Total Charge 0 [2025-03-02 22:51:05] Production.INFO: CreateAllLog End [2025-03-02 22:51:05] Production.INFO: Account Balance End. [2025-03-02 22:51:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:51:05] Production.INFO: ==12402== Releasing lock... [2025-03-02 22:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:51:12] Production.ERROR: CronJobId end10 [2025-03-02 22:51:12] Production.INFO: ==12400== Releasing lock... [2025-03-02 22:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:51:14] Production.INFO: call_cost start [2025-03-02 22:51:14] Production.INFO: call_cost end [2025-03-02 22:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:51:14] Production.INFO: ==12395== Releasing lock... [2025-03-02 22:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:51:16] Production.INFO: count ==1335 [2025-03-02 22:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594297', 'tblTempUsageDetail_20' ) start [2025-03-02 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594297', 'tblTempUsageDetail_20' ) end [2025-03-02 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594297', 'tblTempVendorCDR_20' ) start [2025-03-02 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594297', 'tblTempVendorCDR_20' ) end [2025-03-02 22:51:16] Production.INFO: ProcessCDR(1,14594297,1,1,2) [2025-03-02 22:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594297', 'tblTempUsageDetail_20' ) start [2025-03-02 22:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594297', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:51:24] Production.INFO: ==12404== Releasing lock... [2025-03-02 22:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:51:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:52:01] Production.INFO: ==12473== Lock acquired, processing the job... [2025-03-03 03:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:52:01] Production.INFO: neon service started [2025-03-03 03:52:01] Production.INFO: neon service started [2025-03-03 03:52:01] Production.INFO: ==12473== Releasing lock... [2025-03-03 03:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:52:02] Production.INFO: ==12475== Lock acquired, processing the job... [2025-03-02 22:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:52:02] Production.INFO: ==12477== Lock acquired, processing the job... [2025-03-03 03:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:52:02] Production.INFO: ==12477== Releasing lock... [2025-03-03 03:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:52:02] Production.INFO: ==12475== Releasing lock... [2025-03-02 22:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:52:03] Production.INFO: ==12480== Lock acquired, processing the job... [2025-03-02 22:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:52:03] Production.INFO: ==12484== Lock acquired, processing the job... [2025-03-02 22:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:52:03] Production.INFO: ==12482== Lock acquired, processing the job... [2025-03-02 22:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:52:03] Production.INFO: ==12486== Lock acquired, processing the job... [2025-03-02 22:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:52:04] Production.INFO: ==12488== Lock acquired, processing the job... [2025-03-02 22:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:52:04] Production.INFO: ==12490== Lock acquired, processing the job... [2025-03-02 22:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:52:04] Production.INFO: Account Balance Start. [2025-03-02 22:52:04] Production.INFO: CreateAllLog Start [2025-03-02 22:52:04] Production.INFO: 117 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: ==12482== Releasing lock... [2025-03-02 22:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:52:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:52:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: count ==13 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:52:04] Production.INFO: count ==21 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594301') start [2025-03-02 22:52:04] Production.ERROR: done [2025-03-02 22:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594301') end [2025-03-02 22:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:52:04] Production.INFO: 1 [2025-03-02 22:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:52:04] Production.ERROR: done [2025-03-02 22:52:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: ==12490== Releasing lock... [2025-03-02 22:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:52:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:52:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:52:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:52:05] Production.INFO: Total Charge 0 [2025-03-02 22:52:05] Production.INFO: CreateAllLog End [2025-03-02 22:52:05] Production.INFO: Account Balance End. [2025-03-02 22:52:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:52:05] Production.INFO: ==12486== Releasing lock... [2025-03-02 22:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:52:12] Production.ERROR: CronJobId end10 [2025-03-02 22:52:12] Production.INFO: ==12484== Releasing lock... [2025-03-02 22:52:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:52:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:52:14] Production.INFO: call_cost start [2025-03-02 22:52:14] Production.INFO: call_cost end [2025-03-02 22:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:52:14] Production.INFO: ==12480== Releasing lock... [2025-03-02 22:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:52:16] Production.INFO: count ==1335 [2025-03-02 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594302', 'tblTempUsageDetail_20' ) start [2025-03-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594302', 'tblTempUsageDetail_20' ) end [2025-03-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594302', 'tblTempVendorCDR_20' ) start [2025-03-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594302', 'tblTempVendorCDR_20' ) end [2025-03-02 22:52:17] Production.INFO: ProcessCDR(1,14594302,1,1,2) [2025-03-02 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594302', 'tblTempUsageDetail_20' ) start [2025-03-02 22:52:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594302', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:52:24] Production.INFO: ==12488== Releasing lock... [2025-03-02 22:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:52:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:53:02] Production.INFO: ==12552== Lock acquired, processing the job... [2025-03-03 03:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:53:02] Production.INFO: neon service started [2025-03-03 03:53:02] Production.INFO: neon service started [2025-03-03 03:53:02] Production.INFO: ==12552== Releasing lock... [2025-03-03 03:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:53:02] Production.INFO: ==12554== Lock acquired, processing the job... [2025-03-02 22:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:53:02] Production.INFO: ==12554== Releasing lock... [2025-03-02 22:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:53:02] Production.INFO: ==12556== Lock acquired, processing the job... [2025-03-03 03:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:53:02] Production.INFO: ==12556== Releasing lock... [2025-03-03 03:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:53:03] Production.INFO: ==12563== Lock acquired, processing the job... [2025-03-02 22:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:53:03] Production.INFO: ==12571== Lock acquired, processing the job... [2025-03-02 22:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:53:03] Production.INFO: ==12561== Lock acquired, processing the job... [2025-03-02 22:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:53:03] Production.INFO: ==12563== Releasing lock... [2025-03-02 22:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:53:03] Production.INFO: count ==13 [2025-03-02 22:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:53:03] Production.INFO: count ==21 [2025-03-02 22:53:03] Production.INFO: ==12565== Lock acquired, processing the job... [2025-03-02 22:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594304') start [2025-03-02 22:53:03] Production.INFO: ==12567== Lock acquired, processing the job... [2025-03-02 22:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:53:03] Production.INFO: ==12569== Lock acquired, processing the job... [2025-03-02 22:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594304') end [2025-03-02 22:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:53:04] Production.INFO: 1 [2025-03-02 22:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:53:04] Production.INFO: ==12571== Releasing lock... [2025-03-02 22:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:53:04] Production.INFO: Account Balance Start. [2025-03-02 22:53:04] Production.INFO: CreateAllLog Start [2025-03-02 22:53:04] Production.INFO: 117 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.ERROR: done [2025-03-02 22:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.ERROR: done [2025-03-02 22:53:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:53:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:53:04] Production.INFO: Total Charge 0 [2025-03-02 22:53:04] Production.INFO: CreateAllLog End [2025-03-02 22:53:04] Production.INFO: Account Balance End. [2025-03-02 22:53:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:53:05] Production.INFO: ==12567== Releasing lock... [2025-03-02 22:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:53:11] Production.ERROR: CronJobId end10 [2025-03-02 22:53:11] Production.INFO: ==12565== Releasing lock... [2025-03-02 22:53:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:53:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:53:14] Production.INFO: call_cost start [2025-03-02 22:53:14] Production.INFO: call_cost end [2025-03-02 22:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:53:14] Production.INFO: ==12561== Releasing lock... [2025-03-02 22:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:53:16] Production.INFO: count ==1335 [2025-03-02 22:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594307', 'tblTempUsageDetail_20' ) start [2025-03-02 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594307', 'tblTempUsageDetail_20' ) end [2025-03-02 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594307', 'tblTempVendorCDR_20' ) start [2025-03-02 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594307', 'tblTempVendorCDR_20' ) end [2025-03-02 22:53:16] Production.INFO: ProcessCDR(1,14594307,1,1,2) [2025-03-02 22:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594307', 'tblTempUsageDetail_20' ) start [2025-03-02 22:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594307', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:53:24] Production.INFO: ==12569== Releasing lock... [2025-03-02 22:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:53:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:54:01] Production.INFO: ==12642== Lock acquired, processing the job... [2025-03-03 03:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:54:01] Production.INFO: neon service started [2025-03-03 03:54:01] Production.INFO: neon service started [2025-03-03 03:54:01] Production.INFO: ==12642== Releasing lock... [2025-03-03 03:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:54:01] Production.INFO: ==12644== Lock acquired, processing the job... [2025-03-02 22:54:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:54:02] Production.INFO: ==12644== Releasing lock... [2025-03-02 22:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:54:02] Production.INFO: ==12646== Lock acquired, processing the job... [2025-03-03 03:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:54:02] Production.INFO: ==12646== Releasing lock... [2025-03-03 03:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:54:03] Production.INFO: ==12657== Lock acquired, processing the job... [2025-03-02 22:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:54:03] Production.INFO: ==12653== Lock acquired, processing the job... [2025-03-02 22:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:54:03] Production.INFO: ==12649== Lock acquired, processing the job... [2025-03-02 22:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:54:03] Production.INFO: ==12651== Lock acquired, processing the job... [2025-03-02 22:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:54:03] Production.INFO: ==12655== Lock acquired, processing the job... [2025-03-02 22:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:54:03] Production.ERROR: done [2025-03-02 22:54:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:54:03] Production.INFO: ==12659== Lock acquired, processing the job... [2025-03-02 22:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:54:03] Production.INFO: Account Balance Start. [2025-03-02 22:54:03] Production.INFO: CreateAllLog Start [2025-03-02 22:54:03] Production.INFO: 117 [2025-03-02 22:54:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:03] Production.ERROR: done [2025-03-02 22:54:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:54:03] Production.INFO: count ==13 [2025-03-02 22:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:54:03] Production.INFO: count ==21 [2025-03-02 22:54:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:54:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:54:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594311') start [2025-03-02 22:54:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:03] Production.INFO: ==12651== Releasing lock... [2025-03-02 22:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:54:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:54:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:54:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594311') end [2025-03-02 22:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:54:04] Production.INFO: 1 [2025-03-02 22:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:54:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: ==12659== Releasing lock... [2025-03-02 22:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:54:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:54:04] Production.INFO: Total Charge 0 [2025-03-02 22:54:04] Production.INFO: CreateAllLog End [2025-03-02 22:54:04] Production.INFO: Account Balance End. [2025-03-02 22:54:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:54:04] Production.INFO: ==12655== Releasing lock... [2025-03-02 22:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:54:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:54:11] Production.ERROR: CronJobId end10 [2025-03-02 22:54:11] Production.INFO: ==12653== Releasing lock... [2025-03-02 22:54:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:54:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:54:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:54:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:54:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:54:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:54:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:54:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:54:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:54:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:54:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:54:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:54:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:54:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:54:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:54:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:54:14] Production.INFO: call_cost start [2025-03-02 22:54:14] Production.INFO: call_cost end [2025-03-02 22:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:54:14] Production.INFO: ==12649== Releasing lock... [2025-03-02 22:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:54:15] Production.INFO: count ==1335 [2025-03-02 22:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594312', 'tblTempUsageDetail_20' ) start [2025-03-02 22:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594312', 'tblTempUsageDetail_20' ) end [2025-03-02 22:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594312', 'tblTempVendorCDR_20' ) start [2025-03-02 22:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594312', 'tblTempVendorCDR_20' ) end [2025-03-02 22:54:16] Production.INFO: ProcessCDR(1,14594312,1,1,2) [2025-03-02 22:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594312', 'tblTempUsageDetail_20' ) start [2025-03-02 22:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594312', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:54:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:54:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:54:23] Production.INFO: ==12657== Releasing lock... [2025-03-02 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:54:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:55:01] Production.INFO: ==12719== Lock acquired, processing the job... [2025-03-03 03:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:55:01] Production.INFO: neon service started [2025-03-03 03:55:01] Production.INFO: neon service started [2025-03-03 03:55:01] Production.INFO: ==12719== Releasing lock... [2025-03-03 03:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:55:02] Production.INFO: ==12721== Lock acquired, processing the job... [2025-03-02 22:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:55:02] Production.INFO: ==12721== Releasing lock... [2025-03-02 22:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:55:02] Production.INFO: ==12723== Lock acquired, processing the job... [2025-03-03 03:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:55:02] Production.INFO: ==12723== Releasing lock... [2025-03-03 03:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:55:03] Production.INFO: ==12734== Lock acquired, processing the job... [2025-03-02 22:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:55:03] Production.INFO: ==12732== Lock acquired, processing the job... [2025-03-02 22:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:55:03] Production.INFO: Account Balance Start. [2025-03-02 22:55:03] Production.INFO: CreateAllLog Start [2025-03-02 22:55:03] Production.INFO: 117 [2025-03-02 22:55:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:03] Production.INFO: ==12726== Lock acquired, processing the job... [2025-03-02 22:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:55:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:03] Production.INFO: ==12728== Lock acquired, processing the job... [2025-03-02 22:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:55:03] Production.INFO: ==12730== Lock acquired, processing the job... [2025-03-02 22:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:55:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:55:03] Production.INFO: ==12736== Lock acquired, processing the job... [2025-03-02 22:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:55:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:03] Production.ERROR: done [2025-03-02 22:55:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:55:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:55:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: count ==13 [2025-03-02 22:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:55:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:55:04] Production.INFO: count ==21 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594315') start [2025-03-02 22:55:04] Production.ERROR: done [2025-03-02 22:55:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:55:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594315') end [2025-03-02 22:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:55:04] Production.INFO: 1 [2025-03-02 22:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:55:04] Production.INFO: ==12728== Releasing lock... [2025-03-02 22:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:55:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:55:04] Production.INFO: ==12736== Releasing lock... [2025-03-02 22:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:55:04] Production.INFO: Total Charge 0 [2025-03-02 22:55:04] Production.INFO: CreateAllLog End [2025-03-02 22:55:04] Production.INFO: Account Balance End. [2025-03-02 22:55:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:55:04] Production.INFO: ==12732== Releasing lock... [2025-03-02 22:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:55:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:55:11] Production.ERROR: CronJobId end10 [2025-03-02 22:55:11] Production.INFO: ==12730== Releasing lock... [2025-03-02 22:55:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:55:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:55:14] Production.INFO: call_cost start [2025-03-02 22:55:14] Production.INFO: call_cost end [2025-03-02 22:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:55:14] Production.INFO: ==12726== Releasing lock... [2025-03-02 22:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:55:16] Production.INFO: count ==1335 [2025-03-02 22:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594317', 'tblTempUsageDetail_20' ) start [2025-03-02 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594317', 'tblTempUsageDetail_20' ) end [2025-03-02 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594317', 'tblTempVendorCDR_20' ) start [2025-03-02 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594317', 'tblTempVendorCDR_20' ) end [2025-03-02 22:55:16] Production.INFO: ProcessCDR(1,14594317,1,1,2) [2025-03-02 22:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594317', 'tblTempUsageDetail_20' ) start [2025-03-02 22:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594317', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:55:24] Production.INFO: ==12734== Releasing lock... [2025-03-02 22:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:55:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:56:01] Production.INFO: ==12798== Lock acquired, processing the job... [2025-03-03 03:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:56:01] Production.INFO: neon service started [2025-03-03 03:56:01] Production.INFO: neon service started [2025-03-03 03:56:01] Production.INFO: ==12798== Releasing lock... [2025-03-03 03:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:56:02] Production.INFO: ==12800== Lock acquired, processing the job... [2025-03-02 22:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:56:02] Production.INFO: ==12802== Lock acquired, processing the job... [2025-03-03 03:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:56:02] Production.INFO: ==12802== Releasing lock... [2025-03-03 03:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-02 22:56:02] Production.INFO: ==12800== Releasing lock... [2025-03-02 22:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 22:56:03] Production.INFO: ==12811== Lock acquired, processing the job... [2025-03-02 22:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:56:03] Production.INFO: Account Balance Start. [2025-03-02 22:56:03] Production.INFO: CreateAllLog Start [2025-03-02 22:56:03] Production.INFO: 117 [2025-03-02 22:56:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:56:03] Production.INFO: ==12815== Lock acquired, processing the job... [2025-03-02 22:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.INFO: ==12805== Lock acquired, processing the job... [2025-03-02 22:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:56:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:56:03] Production.INFO: count ==13 [2025-03-02 22:56:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.INFO: ==12807== Lock acquired, processing the job... [2025-03-02 22:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:56:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:56:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:56:03] Production.INFO: count ==21 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594319') start [2025-03-02 22:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:56:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.INFO: ==12809== Lock acquired, processing the job... [2025-03-02 22:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594319') end [2025-03-02 22:56:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:56:03] Production.INFO: 1 [2025-03-02 22:56:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:56:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.INFO: ==12815== Releasing lock... [2025-03-02 22:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:56:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:56:03] Production.INFO: ==12813== Lock acquired, processing the job... [2025-03-02 22:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:56:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:56:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: ==12807== Releasing lock... [2025-03-02 22:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:56:04] Production.ERROR: done [2025-03-02 22:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.ERROR: done [2025-03-02 22:56:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:56:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:56:04] Production.INFO: Total Charge 0 [2025-03-02 22:56:04] Production.INFO: CreateAllLog End [2025-03-02 22:56:05] Production.INFO: Account Balance End. [2025-03-02 22:56:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:56:05] Production.INFO: ==12811== Releasing lock... [2025-03-02 22:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:56:12] Production.ERROR: CronJobId end10 [2025-03-02 22:56:12] Production.INFO: ==12809== Releasing lock... [2025-03-02 22:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:56:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:56:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:56:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:56:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:56:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:56:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:56:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:56:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:56:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:56:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:56:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:56:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:56:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:56:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:56:14] Production.INFO: call_cost start [2025-03-02 22:56:14] Production.INFO: call_cost end [2025-03-02 22:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:56:14] Production.INFO: ==12805== Releasing lock... [2025-03-02 22:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:56:16] Production.INFO: count ==1335 [2025-03-02 22:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594322', 'tblTempUsageDetail_20' ) start [2025-03-02 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594322', 'tblTempUsageDetail_20' ) end [2025-03-02 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594322', 'tblTempVendorCDR_20' ) start [2025-03-02 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594322', 'tblTempVendorCDR_20' ) end [2025-03-02 22:56:16] Production.INFO: ProcessCDR(1,14594322,1,1,2) [2025-03-02 22:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594322', 'tblTempUsageDetail_20' ) start [2025-03-02 22:56:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594322', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:56:24] Production.INFO: ==12813== Releasing lock... [2025-03-02 22:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:56:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:57:01] Production.INFO: ==12889== Lock acquired, processing the job... [2025-03-03 03:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:57:02] Production.INFO: neon service started [2025-03-03 03:57:02] Production.INFO: neon service started [2025-03-03 03:57:02] Production.INFO: ==12889== Releasing lock... [2025-03-03 03:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:57:02] Production.INFO: ==12891== Lock acquired, processing the job... [2025-03-02 22:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:57:02] Production.INFO: ==12891== Releasing lock... [2025-03-02 22:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:57:02] Production.INFO: ==12893== Lock acquired, processing the job... [2025-03-03 03:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:57:02] Production.INFO: ==12893== Releasing lock... [2025-03-03 03:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:57:03] Production.INFO: ==12898== Lock acquired, processing the job... [2025-03-02 22:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:57:03] Production.INFO: ==12906== Lock acquired, processing the job... [2025-03-02 22:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:57:03] Production.INFO: ==12896== Lock acquired, processing the job... [2025-03-02 22:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:57:04] Production.INFO: count ==13 [2025-03-02 22:57:04] Production.INFO: ==12898== Releasing lock... [2025-03-02 22:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:57:04] Production.INFO: count ==21 [2025-03-02 22:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594324') start [2025-03-02 22:57:04] Production.INFO: ==12900== Lock acquired, processing the job... [2025-03-02 22:57:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:57:04] Production.INFO: ==12902== Lock acquired, processing the job... [2025-03-02 22:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594324') end [2025-03-02 22:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:57:04] Production.INFO: 1 [2025-03-02 22:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:57:04] Production.INFO: ==12904== Lock acquired, processing the job... [2025-03-02 22:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:57:04] Production.INFO: ==12906== Releasing lock... [2025-03-02 22:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:57:04] Production.INFO: Account Balance Start. [2025-03-02 22:57:04] Production.INFO: CreateAllLog Start [2025-03-02 22:57:04] Production.INFO: 117 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-08 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-09 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:04] Production.ERROR: done [2025-03-02 22:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-16 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-17 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-18 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-19 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-20 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.ERROR: done [2025-03-02 22:57:05] Production.INFO: Date 2025-02-21 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-22 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-23 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:57:05] Production.INFO: Date 2025-02-24 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-25 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-26 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:57:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:57:05] Production.INFO: Total Charge 0 [2025-03-02 22:57:05] Production.INFO: CreateAllLog End [2025-03-02 22:57:05] Production.INFO: Account Balance End. [2025-03-02 22:57:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:57:05] Production.INFO: ==12902== Releasing lock... [2025-03-02 22:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:57:12] Production.ERROR: CronJobId end10 [2025-03-02 22:57:12] Production.INFO: ==12900== Releasing lock... [2025-03-02 22:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:57:15] Production.INFO: call_cost start [2025-03-02 22:57:15] Production.INFO: call_cost end [2025-03-02 22:57:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:57:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:57:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:57:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:57:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:57:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:57:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:57:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:57:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:57:15] Production.INFO: ==12896== Releasing lock... [2025-03-02 22:57:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:57:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:57:17] Production.INFO: count ==1335 [2025-03-02 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594327', 'tblTempUsageDetail_20' ) start [2025-03-02 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594327', 'tblTempUsageDetail_20' ) end [2025-03-02 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594327', 'tblTempVendorCDR_20' ) start [2025-03-02 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594327', 'tblTempVendorCDR_20' ) end [2025-03-02 22:57:17] Production.INFO: ProcessCDR(1,14594327,1,1,2) [2025-03-02 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594327', 'tblTempUsageDetail_20' ) start [2025-03-02 22:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594327', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:57:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:57:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:57:25] Production.INFO: ==12904== Releasing lock... [2025-03-02 22:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:57:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:58:01] Production.INFO: ==12966== Lock acquired, processing the job... [2025-03-03 03:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:58:01] Production.INFO: neon service started [2025-03-03 03:58:01] Production.INFO: neon service started [2025-03-03 03:58:01] Production.INFO: ==12966== Releasing lock... [2025-03-03 03:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:58:01] Production.INFO: ==12968== Lock acquired, processing the job... [2025-03-02 22:58:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:58:02] Production.INFO: ==12968== Releasing lock... [2025-03-02 22:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:58:02] Production.INFO: ==12970== Lock acquired, processing the job... [2025-03-03 03:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:58:02] Production.INFO: ==12970== Releasing lock... [2025-03-03 03:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:58:03] Production.INFO: ==12979== Lock acquired, processing the job... [2025-03-02 22:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:58:03] Production.INFO: Account Balance Start. [2025-03-02 22:58:03] Production.INFO: CreateAllLog Start [2025-03-02 22:58:03] Production.INFO: ==12983== Lock acquired, processing the job... [2025-03-02 22:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:58:03] Production.INFO: 117 [2025-03-02 22:58:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: ==12972== Lock acquired, processing the job... [2025-03-02 22:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:58:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:58:03] Production.INFO: Date 2025-02-10 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: ==12974== Lock acquired, processing the job... [2025-03-02 22:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:58:03] Production.INFO: count ==13 [2025-03-02 22:58:03] Production.INFO: Date 2025-02-11 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: ==12977== Lock acquired, processing the job... [2025-03-02 22:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:58:03] Production.INFO: count ==21 [2025-03-02 22:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594329') start [2025-03-02 22:58:03] Production.INFO: Date 2025-02-12 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:58:03] Production.INFO: ==12981== Lock acquired, processing the job... [2025-03-02 22:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:58:03] Production.INFO: Date 2025-02-13 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: Date 2025-02-14 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594329') end [2025-03-02 22:58:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:58:03] Production.INFO: 1 [2025-03-02 22:58:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:58:03] Production.INFO: ==12983== Releasing lock... [2025-03-02 22:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:58:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:58:03] Production.INFO: Date 2025-02-15 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: Date 2025-02-16 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: ==12974== Releasing lock... [2025-03-02 22:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:58:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:58:03] Production.INFO: Date 2025-02-17 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: Date 2025-02-18 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.INFO: Date 2025-02-19 [2025-03-02 22:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:03] Production.ERROR: done [2025-03-02 22:58:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.ERROR: done [2025-03-02 22:58:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-27 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-02-28 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-03-01 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Date 2025-03-02 [2025-03-02 22:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:58:04] Production.INFO: Total Charge 0 [2025-03-02 22:58:04] Production.INFO: CreateAllLog End [2025-03-02 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:58:04] Production.INFO: Account Balance End. [2025-03-02 22:58:04] Production.ERROR: CronJobId end 12 [2025-03-02 22:58:04] Production.INFO: ==12979== Releasing lock... [2025-03-02 22:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:58:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:58:11] Production.ERROR: CronJobId end10 [2025-03-02 22:58:11] Production.INFO: ==12977== Releasing lock... [2025-03-02 22:58:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:58:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:58:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:58:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:58:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:58:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:58:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:58:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:58:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:58:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:58:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:58:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:58:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:58:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:58:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:58:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:58:13] Production.INFO: call_cost start [2025-03-02 22:58:13] Production.INFO: call_cost end [2025-03-02 22:58:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:58:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:58:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:58:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:58:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:58:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:58:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:58:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:58:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:58:13] Production.INFO: ==12972== Releasing lock... [2025-03-02 22:58:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:58:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:58:16] Production.INFO: count ==1335 [2025-03-02 22:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594332', 'tblTempUsageDetail_20' ) start [2025-03-02 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594332', 'tblTempUsageDetail_20' ) end [2025-03-02 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594332', 'tblTempVendorCDR_20' ) start [2025-03-02 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594332', 'tblTempVendorCDR_20' ) end [2025-03-02 22:58:16] Production.INFO: ProcessCDR(1,14594332,1,1,2) [2025-03-02 22:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594332', 'tblTempUsageDetail_20' ) start [2025-03-02 22:58:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594332', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:58:24] Production.INFO: ==12981== Releasing lock... [2025-03-02 22:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:58:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 03:59:01] Production.INFO: ==13053== Lock acquired, processing the job... [2025-03-03 03:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 03:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 03:59:01] Production.INFO: neon service started [2025-03-03 03:59:02] Production.INFO: neon service started [2025-03-03 03:59:02] Production.INFO: ==13053== Releasing lock... [2025-03-03 03:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 03:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 22:59:02] Production.INFO: ==13055== Lock acquired, processing the job... [2025-03-02 22:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 22:59:02] Production.INFO: ==13055== Releasing lock... [2025-03-02 22:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 22:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:59:02] Production.INFO: ==13057== Lock acquired, processing the job... [2025-03-03 03:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:59:02] Production.INFO: ==13057== Releasing lock... [2025-03-03 03:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 03:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 22:59:03] Production.INFO: ==13061== Lock acquired, processing the job... [2025-03-02 22:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 22:59:03] Production.INFO: ==13059== Lock acquired, processing the job... [2025-03-02 22:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 22:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 22:59:03] Production.INFO: ==13066== Lock acquired, processing the job... [2025-03-02 22:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 22:59:03] Production.INFO: ==13063== Lock acquired, processing the job... [2025-03-02 22:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 22:59:03] Production.INFO: ==13068== Lock acquired, processing the job... [2025-03-02 22:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 22:59:03] Production.INFO: ==13061== Releasing lock... [2025-03-02 22:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 22:59:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 22:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 22:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 22:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 22:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 22:59:03] Production.INFO: ==13070== Lock acquired, processing the job... [2025-03-02 22:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 22:59:03] Production.INFO: Account Balance Start. [2025-03-02 22:59:03] Production.INFO: CreateAllLog Start [2025-03-02 22:59:03] Production.INFO: 117 [2025-03-02 22:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 22:59:03] Production.INFO: Date 2025-02-08 [2025-03-02 22:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:59:03] Production.INFO: Date 2025-02-09 [2025-03-02 22:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-10 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: count ==13 [2025-03-02 22:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 22:59:04] Production.INFO: count ==21 [2025-03-02 22:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594336') start [2025-03-02 22:59:04] Production.INFO: Date 2025-02-11 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594336') end [2025-03-02 22:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 22:59:04] Production.INFO: 1 [2025-03-02 22:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 22:59:04] Production.ERROR: done [2025-03-02 22:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-12 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-13 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-14 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: ==13070== Releasing lock... [2025-03-02 22:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 22:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 22:59:04] Production.ERROR: done [2025-03-02 22:59:04] Production.INFO: Date 2025-02-15 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-16 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 22:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 22:59:04] Production.INFO: Date 2025-02-17 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-18 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-19 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-20 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-21 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-22 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-23 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-24 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-25 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:04] Production.INFO: Date 2025-02-26 [2025-03-02 22:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:05] Production.INFO: Date 2025-02-27 [2025-03-02 22:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:05] Production.INFO: Date 2025-02-28 [2025-03-02 22:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:05] Production.INFO: Date 2025-03-01 [2025-03-02 22:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:05] Production.INFO: Date 2025-03-02 [2025-03-02 22:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 22:59:05] Production.INFO: Total Charge 0 [2025-03-02 22:59:05] Production.INFO: CreateAllLog End [2025-03-02 22:59:05] Production.INFO: Account Balance End. [2025-03-02 22:59:05] Production.ERROR: CronJobId end 12 [2025-03-02 22:59:05] Production.INFO: ==13066== Releasing lock... [2025-03-02 22:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 22:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 22:59:12] Production.ERROR: CronJobId end10 [2025-03-02 22:59:12] Production.INFO: ==13063== Releasing lock... [2025-03-02 22:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 22:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 22:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 22:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 22:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 22:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 22:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 22:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 22:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 22:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 22:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 22:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 22:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 22:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 22:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 22:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 22:59:15] Production.INFO: call_cost start [2025-03-02 22:59:15] Production.INFO: call_cost end [2025-03-02 22:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 22:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 22:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 22:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 22:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 22:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 22:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 22:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 22:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 22:59:15] Production.INFO: ==13059== Releasing lock... [2025-03-02 22:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 22:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 22:59:16] Production.INFO: count ==1335 [2025-03-02 22:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 22:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594337', 'tblTempUsageDetail_20' ) start [2025-03-02 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594337', 'tblTempUsageDetail_20' ) end [2025-03-02 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594337', 'tblTempVendorCDR_20' ) start [2025-03-02 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594337', 'tblTempVendorCDR_20' ) end [2025-03-02 22:59:16] Production.INFO: ProcessCDR(1,14594337,1,1,2) [2025-03-02 22:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594337', 'tblTempUsageDetail_20' ) start [2025-03-02 22:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594337', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 22:59:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 22:59:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 22:59:23] Production.INFO: ==13068== Releasing lock... [2025-03-02 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 22:59:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:00:01] Production.INFO: ==13126== Lock acquired, processing the job... [2025-03-03 04:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:00:01] Production.INFO: neon service started [2025-03-03 04:00:01] Production.INFO: neon service started [2025-03-03 04:00:01] Production.INFO: ==13126== Releasing lock... [2025-03-03 04:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:00:02] Production.INFO: ==13128== Lock acquired, processing the job... [2025-03-02 23:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:00:02] Production.INFO: ==13130== Lock acquired, processing the job... [2025-03-03 04:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:00:02] Production.INFO: ==13130== Releasing lock... [2025-03-03 04:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:00:02] Production.INFO: ==13128== Releasing lock... [2025-03-02 23:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:00:03] Production.INFO: ==13139== Lock acquired, processing the job... [2025-03-02 23:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:00:03] Production.INFO: ==13141== Lock acquired, processing the job... [2025-03-02 23:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:00:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:00:03] Production.INFO: ==13147== Lock acquired, processing the job... [2025-03-02 23:00:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 23:00:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:00:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:00:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:00:03] Production.INFO: ==13137== Lock acquired, processing the job... [2025-03-02 23:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:00:03] Production.INFO: ==13135== Lock acquired, processing the job... [2025-03-02 23:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 23:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:00:04] Production.ERROR: CronJob PID - 13137 [2025-03-02 23:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 23:00:04] Production.ERROR: CronJob ID - 5 [2025-03-02 23:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:00:00 [2025-03-02 23:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:00:04] Production.ERROR: CronJob PID - 13139 [2025-03-02 23:00:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 23:00:04] Production.ERROR: CronJob ID - 7 [2025-03-02 23:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:00:00 [2025-03-02 23:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:00:04] Production.ERROR: CronJob PID - 13141 [2025-03-02 23:00:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-02 23:00:04] Production.ERROR: CronJob ID - 10 [2025-03-02 23:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:00:00 [2025-03-02 23:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:00:04] Production.ERROR: CronJob PID - 13147 [2025-03-02 23:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-02 23:00:04] Production.ERROR: CronJob ID - 17 [2025-03-02 23:00:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:00:00 [2025-03-02 23:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:00:04] Production.INFO: ==13143== Lock acquired, processing the job... [2025-03-02 23:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:00:04] Production.INFO: ==13145== Lock acquired, processing the job... [2025-03-02 23:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 23:00:04] Production.INFO: ==13135== Releasing lock... [2025-03-02 23:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 23:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:00:04] Production.INFO: ==13139== Releasing lock... [2025-03-02 23:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:00:04] Production.INFO: ==13149== Lock acquired, processing the job... [2025-03-02 23:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:00:04] Production.INFO: Account Balance Start. [2025-03-02 23:00:04] Production.INFO: CreateAllLog Start [2025-03-02 23:00:04] Production.INFO: 117 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.ERROR: done [2025-03-02 23:00:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 23:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594342', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 23:00:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:00:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:00:04] Production.INFO: count ==13 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:00:04] Production.INFO: count ==21 [2025-03-02 23:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594341') start [2025-03-02 23:00:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.ERROR: done [2025-03-02 23:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:00:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594341') end [2025-03-02 23:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:00:05] Production.INFO: 1 [2025-03-02 23:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:00:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:00:05] Production.INFO: ==13149== Releasing lock... [2025-03-02 23:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.ERROR: done [2025-03-02 23:00:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:00:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:00:05] Production.INFO: Total Charge 0 [2025-03-02 23:00:05] Production.INFO: CreateAllLog End [2025-03-02 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:00:05] Production.INFO: Account Balance End. [2025-03-02 23:00:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:00:05] Production.INFO: ==13143== Releasing lock... [2025-03-02 23:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594342', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 23:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 23:00:09] Production.INFO: ProcessCDR(1,14594342,1,1,2) [2025-03-02 23:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594342,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594342,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 23:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 23:00:09] Production.INFO: ==13147== Releasing lock... [2025-03-02 23:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 23:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:00:14] Production.ERROR: CronJobId end10 [2025-03-02 23:00:14] Production.INFO: ==13141== Releasing lock... [2025-03-02 23:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:00:17] Production.INFO: count ==1335 [2025-03-02 23:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594343', 'tblTempUsageDetail_20' ) start [2025-03-02 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594343', 'tblTempUsageDetail_20' ) end [2025-03-02 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594343', 'tblTempVendorCDR_20' ) start [2025-03-02 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594343', 'tblTempVendorCDR_20' ) end [2025-03-02 23:00:17] Production.INFO: ProcessCDR(1,14594343,1,1,2) [2025-03-02 23:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:00:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:00:17] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:00:17] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:00:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:00:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:00:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:00:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:00:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:00:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:00:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:00:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:00:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:00:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:00:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:00:18] Production.INFO: call_cost start [2025-03-02 23:00:18] Production.INFO: call_cost end [2025-03-02 23:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:00:18] Production.INFO: ==13137== Releasing lock... [2025-03-02 23:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594343', 'tblTempUsageDetail_20' ) start [2025-03-02 23:00:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594343', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:00:25] Production.INFO: ==13145== Releasing lock... [2025-03-02 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:00:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:01:01] Production.INFO: ==13305== Lock acquired, processing the job... [2025-03-03 04:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:01:01] Production.INFO: neon service started [2025-03-03 04:01:01] Production.INFO: neon service started [2025-03-03 04:01:01] Production.INFO: ==13305== Releasing lock... [2025-03-03 04:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:01:02] Production.INFO: ==13318== Lock acquired, processing the job... [2025-03-02 23:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:01:02] Production.INFO: ==13320== Lock acquired, processing the job... [2025-03-03 04:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 23:01:02] Production.INFO: ==13318== Releasing lock... [2025-03-02 23:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:01:02] Production.INFO: ==13320== Releasing lock... [2025-03-03 04:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:01:03] Production.INFO: ==13329== Lock acquired, processing the job... [2025-03-02 23:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:01:03] Production.INFO: ==13323== Lock acquired, processing the job... [2025-03-02 23:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:01:03] Production.INFO: ==13333== Lock acquired, processing the job... [2025-03-02 23:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:01:03] Production.INFO: Account Balance Start. [2025-03-02 23:01:03] Production.INFO: CreateAllLog Start [2025-03-02 23:01:03] Production.INFO: 117 [2025-03-02 23:01:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:01:03] Production.INFO: ==13327== Lock acquired, processing the job... [2025-03-02 23:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:01:03] Production.INFO: ==13325== Lock acquired, processing the job... [2025-03-02 23:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:03] Production.INFO: ==13331== Lock acquired, processing the job... [2025-03-02 23:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:01:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:03] Production.INFO: count ==13 [2025-03-02 23:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:01:03] Production.INFO: count ==21 [2025-03-02 23:01:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:01:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594346') start [2025-03-02 23:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594346') end [2025-03-02 23:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:01:04] Production.INFO: 1 [2025-03-02 23:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:01:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: ==13333== Releasing lock... [2025-03-02 23:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:01:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:01:04] Production.ERROR: done [2025-03-02 23:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: ==13325== Releasing lock... [2025-03-02 23:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:01:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.ERROR: done [2025-03-02 23:01:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:01:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:01:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:01:04] Production.INFO: Total Charge 0 [2025-03-02 23:01:04] Production.INFO: CreateAllLog End [2025-03-02 23:01:05] Production.INFO: Account Balance End. [2025-03-02 23:01:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:01:05] Production.INFO: ==13329== Releasing lock... [2025-03-02 23:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:01:12] Production.ERROR: CronJobId end10 [2025-03-02 23:01:12] Production.INFO: ==13327== Releasing lock... [2025-03-02 23:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:01:14] Production.INFO: call_cost start [2025-03-02 23:01:14] Production.INFO: call_cost end [2025-03-02 23:01:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:01:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:01:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:01:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:01:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:01:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:01:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:01:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:01:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:01:14] Production.INFO: ==13323== Releasing lock... [2025-03-02 23:01:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:01:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:01:16] Production.INFO: count ==1335 [2025-03-02 23:01:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594348', 'tblTempUsageDetail_20' ) start [2025-03-02 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594348', 'tblTempUsageDetail_20' ) end [2025-03-02 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594348', 'tblTempVendorCDR_20' ) start [2025-03-02 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594348', 'tblTempVendorCDR_20' ) end [2025-03-02 23:01:17] Production.INFO: ProcessCDR(1,14594348,1,1,2) [2025-03-02 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594348', 'tblTempUsageDetail_20' ) start [2025-03-02 23:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594348', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:01:25] Production.INFO: ==13331== Releasing lock... [2025-03-02 23:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:01:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:02:02] Production.INFO: ==13395== Lock acquired, processing the job... [2025-03-03 04:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:02:02] Production.INFO: neon service started [2025-03-03 04:02:02] Production.INFO: neon service started [2025-03-03 04:02:02] Production.INFO: ==13395== Releasing lock... [2025-03-03 04:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:02:02] Production.INFO: ==13398== Lock acquired, processing the job... [2025-03-02 23:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:02:03] Production.INFO: ==13398== Releasing lock... [2025-03-02 23:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:02:03] Production.INFO: ==13400== Lock acquired, processing the job... [2025-03-03 04:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:02:03] Production.INFO: ==13400== Releasing lock... [2025-03-03 04:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:02:04] Production.INFO: ==13404== Lock acquired, processing the job... [2025-03-02 23:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:02:04] Production.INFO: ==13408== Lock acquired, processing the job... [2025-03-02 23:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:02:04] Production.INFO: ==13402== Lock acquired, processing the job... [2025-03-02 23:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:02:04] Production.INFO: Account Balance Start. [2025-03-02 23:02:04] Production.INFO: CreateAllLog Start [2025-03-02 23:02:04] Production.INFO: 117 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:02:04] Production.INFO: ==13406== Lock acquired, processing the job... [2025-03-02 23:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:02:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:02:04] Production.INFO: ==13410== Lock acquired, processing the job... [2025-03-02 23:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:02:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: ==13412== Lock acquired, processing the job... [2025-03-02 23:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:02:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: ==13404== Releasing lock... [2025-03-02 23:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:02:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:02:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: count ==13 [2025-03-02 23:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:02:04] Production.INFO: count ==21 [2025-03-02 23:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594352') start [2025-03-02 23:02:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594352') end [2025-03-02 23:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:02:04] Production.INFO: 1 [2025-03-02 23:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:02:04] Production.ERROR: done [2025-03-02 23:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:02:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:02:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:04] Production.INFO: ==13412== Releasing lock... [2025-03-02 23:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:02:05] Production.ERROR: done [2025-03-02 23:02:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:02:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:02:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:02:05] Production.INFO: Total Charge 0 [2025-03-02 23:02:05] Production.INFO: CreateAllLog End [2025-03-02 23:02:05] Production.INFO: Account Balance End. [2025-03-02 23:02:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:02:05] Production.INFO: ==13408== Releasing lock... [2025-03-02 23:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:02:13] Production.ERROR: CronJobId end10 [2025-03-02 23:02:13] Production.INFO: ==13406== Releasing lock... [2025-03-02 23:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:02:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:02:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:02:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:02:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:02:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:02:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:02:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:02:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:02:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:02:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:02:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:02:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:02:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:02:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:02:15] Production.INFO: call_cost start [2025-03-02 23:02:15] Production.INFO: call_cost end [2025-03-02 23:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:02:15] Production.INFO: ==13402== Releasing lock... [2025-03-02 23:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:02:17] Production.INFO: count ==1335 [2025-03-02 23:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594353', 'tblTempUsageDetail_20' ) start [2025-03-02 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594353', 'tblTempUsageDetail_20' ) end [2025-03-02 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594353', 'tblTempVendorCDR_20' ) start [2025-03-02 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594353', 'tblTempVendorCDR_20' ) end [2025-03-02 23:02:17] Production.INFO: ProcessCDR(1,14594353,1,1,2) [2025-03-02 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594353', 'tblTempUsageDetail_20' ) start [2025-03-02 23:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594353', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:02:25] Production.INFO: ==13410== Releasing lock... [2025-03-02 23:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:02:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:03:01] Production.INFO: ==13530== Lock acquired, processing the job... [2025-03-03 04:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:03:01] Production.INFO: neon service started [2025-03-03 04:03:01] Production.INFO: neon service started [2025-03-03 04:03:01] Production.INFO: ==13530== Releasing lock... [2025-03-03 04:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:03:02] Production.INFO: ==13532== Lock acquired, processing the job... [2025-03-02 23:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:03:02] Production.INFO: ==13534== Lock acquired, processing the job... [2025-03-03 04:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 23:03:02] Production.INFO: ==13532== Releasing lock... [2025-03-02 23:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:03:02] Production.INFO: ==13534== Releasing lock... [2025-03-03 04:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:03:03] Production.INFO: ==13536== Lock acquired, processing the job... [2025-03-02 23:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:03:03] Production.INFO: ==13538== Lock acquired, processing the job... [2025-03-02 23:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:03:03] Production.INFO: ==13540== Lock acquired, processing the job... [2025-03-02 23:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:03:03] Production.INFO: ==13542== Lock acquired, processing the job... [2025-03-02 23:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:03:03] Production.INFO: Account Balance Start. [2025-03-02 23:03:03] Production.INFO: CreateAllLog Start [2025-03-02 23:03:03] Production.INFO: 117 [2025-03-02 23:03:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:03:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: ==13538== Releasing lock... [2025-03-02 23:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:03:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: ==13544== Lock acquired, processing the job... [2025-03-02 23:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:03:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: ==13546== Lock acquired, processing the job... [2025-03-02 23:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:03:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:03:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: count ==13 [2025-03-02 23:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:03:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: count ==21 [2025-03-02 23:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594357') start [2025-03-02 23:03:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.ERROR: done [2025-03-02 23:03:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594357') end [2025-03-02 23:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:03:04] Production.INFO: 1 [2025-03-02 23:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:03:04] Production.INFO: ==13546== Releasing lock... [2025-03-02 23:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:03:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:03:04] Production.ERROR: done [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:03:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:03:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:03:04] Production.INFO: Total Charge 0 [2025-03-02 23:03:04] Production.INFO: CreateAllLog End [2025-03-02 23:03:05] Production.INFO: Account Balance End. [2025-03-02 23:03:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:03:05] Production.INFO: ==13542== Releasing lock... [2025-03-02 23:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:03:12] Production.ERROR: CronJobId end10 [2025-03-02 23:03:12] Production.INFO: ==13540== Releasing lock... [2025-03-02 23:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:03:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:03:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:03:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:03:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:03:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:03:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:03:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:03:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:03:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:03:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:03:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:03:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:03:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:03:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:03:14] Production.INFO: call_cost start [2025-03-02 23:03:14] Production.INFO: call_cost end [2025-03-02 23:03:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:03:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:03:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:03:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:03:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:03:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:03:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:03:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:03:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:03:14] Production.INFO: ==13536== Releasing lock... [2025-03-02 23:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:03:16] Production.INFO: count ==1335 [2025-03-02 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594358', 'tblTempUsageDetail_20' ) start [2025-03-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594358', 'tblTempUsageDetail_20' ) end [2025-03-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594358', 'tblTempVendorCDR_20' ) start [2025-03-02 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594358', 'tblTempVendorCDR_20' ) end [2025-03-02 23:03:17] Production.INFO: ProcessCDR(1,14594358,1,1,2) [2025-03-02 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594358', 'tblTempUsageDetail_20' ) start [2025-03-02 23:03:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594358', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:03:24] Production.INFO: ==13544== Releasing lock... [2025-03-02 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:03:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:04:02] Production.INFO: ==13618== Lock acquired, processing the job... [2025-03-03 04:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:04:02] Production.INFO: neon service started [2025-03-03 04:04:02] Production.INFO: neon service started [2025-03-03 04:04:02] Production.INFO: ==13618== Releasing lock... [2025-03-03 04:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:04:02] Production.INFO: ==13623== Lock acquired, processing the job... [2025-03-03 04:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:04:02] Production.INFO: ==13623== Releasing lock... [2025-03-03 04:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:04:02] Production.INFO: ==13621== Lock acquired, processing the job... [2025-03-02 23:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:04:03] Production.INFO: ==13621== Releasing lock... [2025-03-02 23:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:04:04] Production.INFO: ==13631== Lock acquired, processing the job... [2025-03-02 23:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:04:04] Production.INFO: ==13635== Lock acquired, processing the job... [2025-03-02 23:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:04:04] Production.INFO: Account Balance Start. [2025-03-02 23:04:04] Production.INFO: CreateAllLog Start [2025-03-02 23:04:04] Production.INFO: 117 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: ==13625== Lock acquired, processing the job... [2025-03-02 23:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:04:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: ==13627== Lock acquired, processing the job... [2025-03-02 23:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:04:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: ==13629== Lock acquired, processing the job... [2025-03-02 23:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:04:04] Production.INFO: ==13633== Lock acquired, processing the job... [2025-03-02 23:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:04:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: count ==13 [2025-03-02 23:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:04:04] Production.INFO: count ==21 [2025-03-02 23:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594360') start [2025-03-02 23:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:04:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594360') end [2025-03-02 23:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:04:04] Production.INFO: 1 [2025-03-02 23:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:04:04] Production.INFO: ==13635== Releasing lock... [2025-03-02 23:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:04:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: ==13627== Releasing lock... [2025-03-02 23:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:04:04] Production.ERROR: done [2025-03-02 23:04:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:04:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:04:05] Production.ERROR: done [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:04:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:04:05] Production.INFO: Total Charge 0 [2025-03-02 23:04:05] Production.INFO: CreateAllLog End [2025-03-02 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:04:05] Production.INFO: Account Balance End. [2025-03-02 23:04:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:04:05] Production.INFO: ==13631== Releasing lock... [2025-03-02 23:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:04:12] Production.ERROR: CronJobId end10 [2025-03-02 23:04:12] Production.INFO: ==13629== Releasing lock... [2025-03-02 23:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:04:14] Production.INFO: call_cost start [2025-03-02 23:04:14] Production.INFO: call_cost end [2025-03-02 23:04:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:04:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:04:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:04:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:04:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:04:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:04:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:04:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:04:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:04:14] Production.INFO: ==13625== Releasing lock... [2025-03-02 23:04:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:04:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:04:17] Production.INFO: count ==1335 [2025-03-02 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594363', 'tblTempUsageDetail_20' ) start [2025-03-02 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594363', 'tblTempUsageDetail_20' ) end [2025-03-02 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594363', 'tblTempVendorCDR_20' ) start [2025-03-02 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594363', 'tblTempVendorCDR_20' ) end [2025-03-02 23:04:17] Production.INFO: ProcessCDR(1,14594363,1,1,2) [2025-03-02 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594363', 'tblTempUsageDetail_20' ) start [2025-03-02 23:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594363', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:04:24] Production.INFO: ==13633== Releasing lock... [2025-03-02 23:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:04:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:05:01] Production.INFO: ==13776== Lock acquired, processing the job... [2025-03-03 04:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:05:01] Production.INFO: neon service started [2025-03-03 04:05:01] Production.INFO: neon service started [2025-03-03 04:05:01] Production.INFO: ==13776== Releasing lock... [2025-03-03 04:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:05:02] Production.INFO: ==13778== Lock acquired, processing the job... [2025-03-02 23:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:05:02] Production.INFO: ==13778== Releasing lock... [2025-03-02 23:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:05:02] Production.INFO: ==13780== Lock acquired, processing the job... [2025-03-03 04:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:05:02] Production.INFO: ==13780== Releasing lock... [2025-03-03 04:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:05:03] Production.INFO: ==13783== Lock acquired, processing the job... [2025-03-02 23:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:05:03] Production.INFO: ==13787== Lock acquired, processing the job... [2025-03-02 23:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:05:03] Production.INFO: ==13785== Lock acquired, processing the job... [2025-03-02 23:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:05:03] Production.INFO: ==13793== Lock acquired, processing the job... [2025-03-02 23:05:03] Production.INFO: ==13789== Lock acquired, processing the job... [2025-03-02 23:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:05:03] Production.INFO: ==13791== Lock acquired, processing the job... [2025-03-02 23:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:05:03] Production.INFO: count ==13 [2025-03-02 23:05:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:05:03] Production.INFO: Account Balance Start. [2025-03-02 23:05:03] Production.INFO: CreateAllLog Start [2025-03-02 23:05:03] Production.INFO: count ==21 [2025-03-02 23:05:03] Production.INFO: 117 [2025-03-02 23:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594366') start [2025-03-02 23:05:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:05:03] Production.INFO: ==13785== Releasing lock... [2025-03-02 23:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:05:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:05:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594366') end [2025-03-02 23:05:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:05:03] Production.INFO: 1 [2025-03-02 23:05:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:05:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: ==13793== Releasing lock... [2025-03-02 23:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:05:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.ERROR: done [2025-03-02 23:05:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.ERROR: done [2025-03-02 23:05:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:05:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:05:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:05:04] Production.INFO: Total Charge 0 [2025-03-02 23:05:04] Production.INFO: CreateAllLog End [2025-03-02 23:05:05] Production.INFO: Account Balance End. [2025-03-02 23:05:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:05:05] Production.INFO: ==13789== Releasing lock... [2025-03-02 23:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:05:12] Production.ERROR: CronJobId end10 [2025-03-02 23:05:12] Production.INFO: ==13787== Releasing lock... [2025-03-02 23:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:05:14] Production.INFO: call_cost start [2025-03-02 23:05:14] Production.INFO: call_cost end [2025-03-02 23:05:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:05:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:05:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:05:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:05:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:05:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:05:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:05:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:05:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:05:14] Production.INFO: ==13783== Releasing lock... [2025-03-02 23:05:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:05:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:05:16] Production.INFO: count ==1335 [2025-03-02 23:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594368', 'tblTempUsageDetail_20' ) start [2025-03-02 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594368', 'tblTempUsageDetail_20' ) end [2025-03-02 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594368', 'tblTempVendorCDR_20' ) start [2025-03-02 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594368', 'tblTempVendorCDR_20' ) end [2025-03-02 23:05:16] Production.INFO: ProcessCDR(1,14594368,1,1,2) [2025-03-02 23:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594368', 'tblTempUsageDetail_20' ) start [2025-03-02 23:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594368', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:05:24] Production.INFO: ==13791== Releasing lock... [2025-03-02 23:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:05:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:06:02] Production.INFO: ==13866== Lock acquired, processing the job... [2025-03-03 04:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:06:02] Production.INFO: neon service started [2025-03-03 04:06:02] Production.INFO: neon service started [2025-03-03 04:06:02] Production.INFO: ==13866== Releasing lock... [2025-03-03 04:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:06:03] Production.INFO: ==13868== Lock acquired, processing the job... [2025-03-02 23:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:06:03] Production.INFO: ==13870== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:06:03] Production.INFO: ==13870== Releasing lock... [2025-03-03 04:06:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:06:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:06:03] Production.INFO: ==13868== Releasing lock... [2025-03-02 23:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:06:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:06:04] Production.INFO: ==13874== Lock acquired, processing the job... [2025-03-02 23:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:06:04] Production.INFO: ==13879== Lock acquired, processing the job... [2025-03-02 23:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:06:04] Production.INFO: ==13881== Lock acquired, processing the job... [2025-03-02 23:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:06:04] Production.INFO: Account Balance Start. [2025-03-02 23:06:04] Production.INFO: CreateAllLog Start [2025-03-02 23:06:04] Production.INFO: 117 [2025-03-02 23:06:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.INFO: ==13877== Lock acquired, processing the job... [2025-03-02 23:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:06:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.INFO: ==13883== Lock acquired, processing the job... [2025-03-02 23:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:06:04] Production.INFO: ==13885== Lock acquired, processing the job... [2025-03-02 23:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:06:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:06:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:06:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:06:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: count ==13 [2025-03-02 23:06:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:06:05] Production.INFO: count ==21 [2025-03-02 23:06:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594372') start [2025-03-02 23:06:05] Production.INFO: ==13877== Releasing lock... [2025-03-02 23:06:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:06:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:06:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594372') end [2025-03-02 23:06:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:06:05] Production.INFO: 1 [2025-03-02 23:06:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:06:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: ==13885== Releasing lock... [2025-03-02 23:06:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:06:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:06:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.ERROR: done [2025-03-02 23:06:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.ERROR: done [2025-03-02 23:06:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:06:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:06:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:06:05] Production.INFO: Total Charge 0 [2025-03-02 23:06:05] Production.INFO: CreateAllLog End [2025-03-02 23:06:06] Production.INFO: Account Balance End. [2025-03-02 23:06:06] Production.ERROR: CronJobId end 12 [2025-03-02 23:06:06] Production.INFO: ==13881== Releasing lock... [2025-03-02 23:06:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:06:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:06:14] Production.ERROR: CronJobId end10 [2025-03-02 23:06:14] Production.INFO: ==13879== Releasing lock... [2025-03-02 23:06:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:06:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:06:15] Production.INFO: call_cost start [2025-03-02 23:06:15] Production.INFO: call_cost end [2025-03-02 23:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:06:15] Production.INFO: ==13874== Releasing lock... [2025-03-02 23:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:06:17] Production.INFO: count ==1335 [2025-03-02 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594373', 'tblTempUsageDetail_20' ) start [2025-03-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594373', 'tblTempUsageDetail_20' ) end [2025-03-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594373', 'tblTempVendorCDR_20' ) start [2025-03-02 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594373', 'tblTempVendorCDR_20' ) end [2025-03-02 23:06:18] Production.INFO: ProcessCDR(1,14594373,1,1,2) [2025-03-02 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594373', 'tblTempUsageDetail_20' ) start [2025-03-02 23:06:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594373', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:06:26] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:06:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:06:26] Production.INFO: ==13883== Releasing lock... [2025-03-02 23:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:06:26] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:07:01] Production.INFO: ==13956== Lock acquired, processing the job... [2025-03-03 04:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:07:01] Production.INFO: neon service started [2025-03-03 04:07:01] Production.INFO: neon service started [2025-03-03 04:07:01] Production.INFO: ==13956== Releasing lock... [2025-03-03 04:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:07:02] Production.INFO: ==13960== Lock acquired, processing the job... [2025-03-03 04:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:07:02] Production.INFO: ==13960== Releasing lock... [2025-03-03 04:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:07:02] Production.INFO: ==13958== Lock acquired, processing the job... [2025-03-02 23:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:07:02] Production.INFO: ==13958== Releasing lock... [2025-03-02 23:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:07:03] Production.INFO: ==13969== Lock acquired, processing the job... [2025-03-02 23:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:07:03] Production.INFO: ==13963== Lock acquired, processing the job... [2025-03-02 23:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:07:03] Production.INFO: ==13965== Lock acquired, processing the job... [2025-03-02 23:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:07:03] Production.INFO: ==13973== Lock acquired, processing the job... [2025-03-02 23:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:07:03] Production.INFO: Account Balance Start. [2025-03-02 23:07:03] Production.INFO: CreateAllLog Start [2025-03-02 23:07:03] Production.INFO: 117 [2025-03-02 23:07:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:07:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:03] Production.INFO: ==13971== Lock acquired, processing the job... [2025-03-02 23:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:07:04] Production.INFO: ==13967== Lock acquired, processing the job... [2025-03-02 23:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:07:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:07:04] Production.INFO: count ==13 [2025-03-02 23:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:07:04] Production.INFO: count ==21 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594377') start [2025-03-02 23:07:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594377') end [2025-03-02 23:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:07:04] Production.INFO: 1 [2025-03-02 23:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:07:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: ==13965== Releasing lock... [2025-03-02 23:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:07:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: ==13973== Releasing lock... [2025-03-02 23:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:07:04] Production.ERROR: done [2025-03-02 23:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.ERROR: done [2025-03-02 23:07:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:07:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:07:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:07:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:07:05] Production.INFO: Total Charge 0 [2025-03-02 23:07:05] Production.INFO: CreateAllLog End [2025-03-02 23:07:05] Production.INFO: Account Balance End. [2025-03-02 23:07:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:07:05] Production.INFO: ==13969== Releasing lock... [2025-03-02 23:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:07:13] Production.ERROR: CronJobId end10 [2025-03-02 23:07:13] Production.INFO: ==13967== Releasing lock... [2025-03-02 23:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:07:15] Production.INFO: call_cost start [2025-03-02 23:07:15] Production.INFO: call_cost end [2025-03-02 23:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:07:15] Production.INFO: ==13963== Releasing lock... [2025-03-02 23:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:07:16] Production.INFO: count ==1335 [2025-03-02 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594378', 'tblTempUsageDetail_20' ) start [2025-03-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594378', 'tblTempUsageDetail_20' ) end [2025-03-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594378', 'tblTempVendorCDR_20' ) start [2025-03-02 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594378', 'tblTempVendorCDR_20' ) end [2025-03-02 23:07:17] Production.INFO: ProcessCDR(1,14594378,1,1,2) [2025-03-02 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594378', 'tblTempUsageDetail_20' ) start [2025-03-02 23:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594378', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:07:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:07:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:07:25] Production.INFO: ==13971== Releasing lock... [2025-03-02 23:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:07:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:08:02] Production.INFO: ==14109== Lock acquired, processing the job... [2025-03-03 04:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:08:02] Production.INFO: neon service started [2025-03-03 04:08:02] Production.INFO: neon service started [2025-03-03 04:08:02] Production.INFO: ==14109== Releasing lock... [2025-03-03 04:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:08:02] Production.INFO: ==14111== Lock acquired, processing the job... [2025-03-02 23:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:08:03] Production.INFO: ==14113== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 23:08:03] Production.INFO: ==14111== Releasing lock... [2025-03-02 23:08:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:08:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:08:03] Production.INFO: ==14113== Releasing lock... [2025-03-03 04:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:08:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:08:03] Production.INFO: ==14115== Lock acquired, processing the job... [2025-03-02 23:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:08:03] Production.INFO: ==14117== Lock acquired, processing the job... [2025-03-02 23:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:08:03] Production.INFO: ==14119== Lock acquired, processing the job... [2025-03-02 23:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:08:04] Production.INFO: ==14121== Lock acquired, processing the job... [2025-03-02 23:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:08:04] Production.INFO: ==14123== Lock acquired, processing the job... [2025-03-02 23:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:08:04] Production.INFO: Account Balance Start. [2025-03-02 23:08:04] Production.INFO: CreateAllLog Start [2025-03-02 23:08:04] Production.INFO: 117 [2025-03-02 23:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: ==14126== Lock acquired, processing the job... [2025-03-02 23:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:08:04] Production.INFO: ==14117== Releasing lock... [2025-03-02 23:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:08:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:08:04] Production.INFO: count ==13 [2025-03-02 23:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:08:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: count ==21 [2025-03-02 23:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594382') start [2025-03-02 23:08:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594382') end [2025-03-02 23:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:08:04] Production.INFO: 1 [2025-03-02 23:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:08:04] Production.ERROR: done [2025-03-02 23:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:08:04] Production.INFO: ==14126== Releasing lock... [2025-03-02 23:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.ERROR: done [2025-03-02 23:08:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:08:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:08:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:08:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:08:05] Production.INFO: Total Charge 0 [2025-03-02 23:08:05] Production.INFO: CreateAllLog End [2025-03-02 23:08:05] Production.INFO: Account Balance End. [2025-03-02 23:08:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:08:05] Production.INFO: ==14121== Releasing lock... [2025-03-02 23:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:08:12] Production.ERROR: CronJobId end10 [2025-03-02 23:08:12] Production.INFO: ==14119== Releasing lock... [2025-03-02 23:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:08:14] Production.INFO: call_cost start [2025-03-02 23:08:14] Production.INFO: call_cost end [2025-03-02 23:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:08:14] Production.INFO: ==14115== Releasing lock... [2025-03-02 23:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:08:16] Production.INFO: count ==1335 [2025-03-02 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594383', 'tblTempUsageDetail_20' ) start [2025-03-02 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594383', 'tblTempUsageDetail_20' ) end [2025-03-02 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594383', 'tblTempVendorCDR_20' ) start [2025-03-02 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594383', 'tblTempVendorCDR_20' ) end [2025-03-02 23:08:17] Production.INFO: ProcessCDR(1,14594383,1,1,2) [2025-03-02 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594383', 'tblTempUsageDetail_20' ) start [2025-03-02 23:08:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594383', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:08:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:08:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:08:25] Production.INFO: ==14123== Releasing lock... [2025-03-02 23:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:08:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:09:01] Production.INFO: ==14189== Lock acquired, processing the job... [2025-03-03 04:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:09:01] Production.INFO: neon service started [2025-03-03 04:09:01] Production.INFO: neon service started [2025-03-03 04:09:01] Production.INFO: ==14189== Releasing lock... [2025-03-03 04:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:09:02] Production.INFO: ==14191== Lock acquired, processing the job... [2025-03-02 23:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:09:02] Production.INFO: ==14193== Lock acquired, processing the job... [2025-03-03 04:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:09:02] Production.INFO: ==14193== Releasing lock... [2025-03-03 04:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:09:02] Production.INFO: ==14191== Releasing lock... [2025-03-02 23:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:09:03] Production.INFO: ==14204== Lock acquired, processing the job... [2025-03-02 23:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:09:03] Production.INFO: ==14208== Lock acquired, processing the job... [2025-03-02 23:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:09:03] Production.INFO: ==14198== Lock acquired, processing the job... [2025-03-02 23:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:09:03] Production.INFO: count ==13 [2025-03-02 23:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:09:03] Production.INFO: ==14200== Lock acquired, processing the job... [2025-03-02 23:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:09:03] Production.INFO: count ==21 [2025-03-02 23:09:03] Production.INFO: Account Balance Start. [2025-03-02 23:09:03] Production.INFO: CreateAllLog Start [2025-03-02 23:09:03] Production.INFO: 117 [2025-03-02 23:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594384') start [2025-03-02 23:09:03] Production.INFO: ==14202== Lock acquired, processing the job... [2025-03-02 23:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:09:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:09:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:03] Production.INFO: ==14206== Lock acquired, processing the job... [2025-03-02 23:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594384') end [2025-03-02 23:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:09:03] Production.INFO: 1 [2025-03-02 23:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:09:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: ==14208== Releasing lock... [2025-03-02 23:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:09:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.ERROR: done [2025-03-02 23:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: ==14200== Releasing lock... [2025-03-02 23:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:09:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.ERROR: done [2025-03-02 23:09:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:09:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:09:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:09:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:09:05] Production.INFO: Total Charge 0 [2025-03-02 23:09:05] Production.INFO: CreateAllLog End [2025-03-02 23:09:05] Production.INFO: Account Balance End. [2025-03-02 23:09:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:09:05] Production.INFO: ==14204== Releasing lock... [2025-03-02 23:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:09:13] Production.ERROR: CronJobId end10 [2025-03-02 23:09:13] Production.INFO: ==14202== Releasing lock... [2025-03-02 23:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:09:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:09:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:09:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:09:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:09:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:09:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:09:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:09:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:09:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:09:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:09:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:09:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:09:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:09:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:09:14] Production.INFO: call_cost start [2025-03-02 23:09:14] Production.INFO: call_cost end [2025-03-02 23:09:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:09:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:09:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:09:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:09:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:09:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:09:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:09:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:09:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:09:14] Production.INFO: ==14198== Releasing lock... [2025-03-02 23:09:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:09:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:09:16] Production.INFO: count ==1335 [2025-03-02 23:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594388', 'tblTempUsageDetail_20' ) start [2025-03-02 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594388', 'tblTempUsageDetail_20' ) end [2025-03-02 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594388', 'tblTempVendorCDR_20' ) start [2025-03-02 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594388', 'tblTempVendorCDR_20' ) end [2025-03-02 23:09:16] Production.INFO: ProcessCDR(1,14594388,1,1,2) [2025-03-02 23:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594388', 'tblTempUsageDetail_20' ) start [2025-03-02 23:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594388', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:09:24] Production.INFO: ==14206== Releasing lock... [2025-03-02 23:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:09:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:10:02] Production.INFO: ==14275== Lock acquired, processing the job... [2025-03-03 04:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:10:02] Production.INFO: neon service started [2025-03-03 04:10:02] Production.INFO: neon service started [2025-03-03 04:10:02] Production.INFO: ==14275== Releasing lock... [2025-03-03 04:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:10:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:10:02] Production.INFO: ==14277== Lock acquired, processing the job... [2025-03-02 23:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:10:03] Production.INFO: ==14279== Lock acquired, processing the job... [2025-03-03 04:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:10:03] Production.INFO: ==14279== Releasing lock... [2025-03-03 04:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:10:03] Production.INFO: ==14277== Releasing lock... [2025-03-02 23:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:10:04] Production.INFO: ==14282== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 23:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 23:10:04] Production.INFO: ==14284== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 23:10:04] Production.INFO: ==14282== Releasing lock... [2025-03-02 23:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 23:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:10:04] Production.INFO: ==14286== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:10:04] Production.INFO: ==14290== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:10:04] Production.INFO: ==14288== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:10:04] Production.INFO: Account Balance Start. [2025-03-02 23:10:04] Production.INFO: CreateAllLog Start [2025-03-02 23:10:04] Production.INFO: 117 [2025-03-02 23:10:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:04] Production.INFO: ==14292== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:10:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:10:04] Production.INFO: ==14286== Releasing lock... [2025-03-02 23:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:10:04] Production.INFO: ==14294== Lock acquired, processing the job... [2025-03-02 23:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 23:10:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:10:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:10:05] Production.INFO: ==14296== Lock acquired, processing the job... [2025-03-02 23:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:10:05] Production.INFO: Date 2025-02-12 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-13 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-14 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.ERROR: done [2025-03-02 23:10:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:10:05] Production.ERROR: done [2025-03-02 23:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:10:05] Production.INFO: count ==13 [2025-03-02 23:10:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:10:05] Production.INFO: count ==21 [2025-03-02 23:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 23:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594393', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 23:10:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594392') start [2025-03-02 23:10:05] Production.ERROR: done [2025-03-02 23:10:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:10:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594392') end [2025-03-02 23:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:10:05] Production.INFO: 1 [2025-03-02 23:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:10:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: ==14296== Releasing lock... [2025-03-02 23:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:10:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:10:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:06] Production.INFO: Date 2025-02-27 [2025-03-02 23:10:06] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:06] Production.INFO: Date 2025-02-28 [2025-03-02 23:10:06] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:06] Production.INFO: Date 2025-03-01 [2025-03-02 23:10:06] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:06] Production.INFO: Date 2025-03-02 [2025-03-02 23:10:06] Production.INFO: Reseller ==> 0 [2025-03-02 23:10:06] Production.INFO: Total Charge 0 [2025-03-02 23:10:06] Production.INFO: CreateAllLog End [2025-03-02 23:10:06] Production.INFO: Account Balance End. [2025-03-02 23:10:06] Production.ERROR: CronJobId end 12 [2025-03-02 23:10:06] Production.INFO: ==14290== Releasing lock... [2025-03-02 23:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594393', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 23:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 23:10:09] Production.INFO: ProcessCDR(1,14594393,1,1,2) [2025-03-02 23:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594393,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594393,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 23:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 23:10:09] Production.INFO: ==14294== Releasing lock... [2025-03-02 23:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 23:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:10:14] Production.ERROR: CronJobId end10 [2025-03-02 23:10:14] Production.INFO: ==14288== Releasing lock... [2025-03-02 23:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:10:17] Production.INFO: call_cost start [2025-03-02 23:10:17] Production.INFO: call_cost end [2025-03-02 23:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:10:17] Production.INFO: ==14284== Releasing lock... [2025-03-02 23:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:10:17] Production.INFO: count ==1335 [2025-03-02 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594394', 'tblTempUsageDetail_20' ) start [2025-03-02 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594394', 'tblTempUsageDetail_20' ) end [2025-03-02 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594394', 'tblTempVendorCDR_20' ) start [2025-03-02 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594394', 'tblTempVendorCDR_20' ) end [2025-03-02 23:10:18] Production.INFO: ProcessCDR(1,14594394,1,1,2) [2025-03-02 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594394', 'tblTempUsageDetail_20' ) start [2025-03-02 23:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594394', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:10:25] Production.INFO: ==14292== Releasing lock... [2025-03-02 23:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:10:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:11:01] Production.INFO: ==14370== Lock acquired, processing the job... [2025-03-03 04:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:11:01] Production.INFO: neon service started [2025-03-03 04:11:01] Production.INFO: neon service started [2025-03-03 04:11:01] Production.INFO: ==14370== Releasing lock... [2025-03-03 04:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:11:02] Production.INFO: ==14374== Lock acquired, processing the job... [2025-03-03 04:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:11:02] Production.INFO: ==14374== Releasing lock... [2025-03-03 04:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:11:02] Production.INFO: ==14372== Lock acquired, processing the job... [2025-03-02 23:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:11:02] Production.INFO: ==14372== Releasing lock... [2025-03-02 23:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:11:03] Production.INFO: ==14377== Lock acquired, processing the job... [2025-03-02 23:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:11:03] Production.INFO: ==14381== Lock acquired, processing the job... [2025-03-02 23:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:11:03] Production.INFO: ==14387== Lock acquired, processing the job... [2025-03-02 23:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:11:03] Production.INFO: count ==13 [2025-03-02 23:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:11:03] Production.INFO: count ==21 [2025-03-02 23:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594396') start [2025-03-02 23:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594396') end [2025-03-02 23:11:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:11:03] Production.INFO: 1 [2025-03-02 23:11:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:11:03] Production.INFO: ==14387== Releasing lock... [2025-03-02 23:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:11:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:11:04] Production.INFO: ==14379== Lock acquired, processing the job... [2025-03-02 23:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:11:04] Production.INFO: ==14383== Lock acquired, processing the job... [2025-03-02 23:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:11:04] Production.INFO: ==14385== Lock acquired, processing the job... [2025-03-02 23:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:11:04] Production.INFO: Account Balance Start. [2025-03-02 23:11:04] Production.INFO: CreateAllLog Start [2025-03-02 23:11:04] Production.INFO: 117 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.ERROR: done [2025-03-02 23:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:11:04] Production.INFO: ==14379== Releasing lock... [2025-03-02 23:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:11:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.ERROR: done [2025-03-02 23:11:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:11:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:11:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:11:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:11:05] Production.INFO: Total Charge 0 [2025-03-02 23:11:05] Production.INFO: CreateAllLog End [2025-03-02 23:11:05] Production.INFO: Account Balance End. [2025-03-02 23:11:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:11:05] Production.INFO: ==14383== Releasing lock... [2025-03-02 23:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:11:11] Production.ERROR: CronJobId end10 [2025-03-02 23:11:11] Production.INFO: ==14381== Releasing lock... [2025-03-02 23:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:11:14] Production.INFO: call_cost start [2025-03-02 23:11:14] Production.INFO: call_cost end [2025-03-02 23:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:11:14] Production.INFO: ==14377== Releasing lock... [2025-03-02 23:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:11:16] Production.INFO: count ==1335 [2025-03-02 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594399', 'tblTempUsageDetail_20' ) start [2025-03-02 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594399', 'tblTempUsageDetail_20' ) end [2025-03-02 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594399', 'tblTempVendorCDR_20' ) start [2025-03-02 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594399', 'tblTempVendorCDR_20' ) end [2025-03-02 23:11:17] Production.INFO: ProcessCDR(1,14594399,1,1,2) [2025-03-02 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594399', 'tblTempUsageDetail_20' ) start [2025-03-02 23:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594399', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:11:24] Production.INFO: ==14385== Releasing lock... [2025-03-02 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:11:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:12:02] Production.INFO: ==14520== Lock acquired, processing the job... [2025-03-03 04:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:12:02] Production.INFO: neon service started [2025-03-03 04:12:02] Production.INFO: neon service started [2025-03-03 04:12:02] Production.INFO: ==14520== Releasing lock... [2025-03-03 04:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:12:02] Production.INFO: ==14524== Lock acquired, processing the job... [2025-03-03 04:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:12:02] Production.INFO: ==14524== Releasing lock... [2025-03-03 04:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:12:02] Production.INFO: ==14522== Lock acquired, processing the job... [2025-03-02 23:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:12:03] Production.INFO: ==14522== Releasing lock... [2025-03-02 23:12:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:12:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:12:03] Production.INFO: ==14527== Lock acquired, processing the job... [2025-03-02 23:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:12:03] Production.INFO: ==14529== Lock acquired, processing the job... [2025-03-02 23:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:12:03] Production.INFO: ==14533== Lock acquired, processing the job... [2025-03-02 23:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:12:04] Production.INFO: ==14531== Lock acquired, processing the job... [2025-03-02 23:12:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:12:04] Production.INFO: Account Balance Start. [2025-03-02 23:12:04] Production.INFO: CreateAllLog Start [2025-03-02 23:12:04] Production.INFO: 117 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:12:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:12:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:12:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:12:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:12:04] Production.INFO: ==14537== Lock acquired, processing the job... [2025-03-02 23:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:12:04] Production.INFO: ==14535== Lock acquired, processing the job... [2025-03-02 23:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: ==14529== Releasing lock... [2025-03-02 23:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:12:04] Production.INFO: count ==13 [2025-03-02 23:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:12:04] Production.INFO: count ==21 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594403') start [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.ERROR: done [2025-03-02 23:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594403') end [2025-03-02 23:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:12:04] Production.INFO: 1 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:04] Production.INFO: ==14537== Releasing lock... [2025-03-02 23:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:12:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:12:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.ERROR: done [2025-03-02 23:12:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:12:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:12:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:12:05] Production.INFO: Total Charge 0 [2025-03-02 23:12:05] Production.INFO: CreateAllLog End [2025-03-02 23:12:05] Production.INFO: Account Balance End. [2025-03-02 23:12:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:12:05] Production.INFO: ==14533== Releasing lock... [2025-03-02 23:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:12:12] Production.ERROR: CronJobId end10 [2025-03-02 23:12:12] Production.INFO: ==14531== Releasing lock... [2025-03-02 23:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:12:14] Production.INFO: call_cost start [2025-03-02 23:12:14] Production.INFO: call_cost end [2025-03-02 23:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:12:14] Production.INFO: ==14527== Releasing lock... [2025-03-02 23:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:12:17] Production.INFO: count ==1335 [2025-03-02 23:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594404', 'tblTempUsageDetail_20' ) start [2025-03-02 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594404', 'tblTempUsageDetail_20' ) end [2025-03-02 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594404', 'tblTempVendorCDR_20' ) start [2025-03-02 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594404', 'tblTempVendorCDR_20' ) end [2025-03-02 23:12:17] Production.INFO: ProcessCDR(1,14594404,1,1,2) [2025-03-02 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594404', 'tblTempUsageDetail_20' ) start [2025-03-02 23:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594404', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:12:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:12:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:12:25] Production.INFO: ==14535== Releasing lock... [2025-03-02 23:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:12:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:13:01] Production.INFO: ==14601== Lock acquired, processing the job... [2025-03-03 04:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:13:01] Production.INFO: neon service started [2025-03-03 04:13:01] Production.INFO: neon service started [2025-03-03 04:13:01] Production.INFO: ==14601== Releasing lock... [2025-03-03 04:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:13:02] Production.INFO: ==14605== Lock acquired, processing the job... [2025-03-03 04:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-02 23:13:02] Production.INFO: ==14603== Lock acquired, processing the job... [2025-03-02 23:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:13:02] Production.INFO: ==14605== Releasing lock... [2025-03-03 04:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:13:02] Production.INFO: ==14603== Releasing lock... [2025-03-02 23:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:13:03] Production.INFO: ==14612== Lock acquired, processing the job... [2025-03-02 23:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:13:03] Production.INFO: ==14614== Lock acquired, processing the job... [2025-03-02 23:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:13:03] Production.INFO: ==14608== Lock acquired, processing the job... [2025-03-02 23:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:13:03] Production.INFO: ==14610== Lock acquired, processing the job... [2025-03-02 23:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:13:03] Production.INFO: Account Balance Start. [2025-03-02 23:13:03] Production.INFO: CreateAllLog Start [2025-03-02 23:13:03] Production.INFO: 117 [2025-03-02 23:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:13:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:03] Production.INFO: ==14616== Lock acquired, processing the job... [2025-03-02 23:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:13:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:13:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:13:04] Production.INFO: ==14618== Lock acquired, processing the job... [2025-03-02 23:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:13:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: ==14610== Releasing lock... [2025-03-02 23:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:13:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: count ==13 [2025-03-02 23:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:13:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: count ==21 [2025-03-02 23:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594408') start [2025-03-02 23:13:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.ERROR: done [2025-03-02 23:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594408') end [2025-03-02 23:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:13:04] Production.INFO: 1 [2025-03-02 23:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: ==14618== Releasing lock... [2025-03-02 23:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:13:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.ERROR: done [2025-03-02 23:13:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:13:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:13:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:13:04] Production.INFO: Total Charge 0 [2025-03-02 23:13:04] Production.INFO: CreateAllLog End [2025-03-02 23:13:05] Production.INFO: Account Balance End. [2025-03-02 23:13:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:13:05] Production.INFO: ==14614== Releasing lock... [2025-03-02 23:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:13:13] Production.ERROR: CronJobId end10 [2025-03-02 23:13:13] Production.INFO: ==14612== Releasing lock... [2025-03-02 23:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:13:15] Production.INFO: call_cost start [2025-03-02 23:13:15] Production.INFO: call_cost end [2025-03-02 23:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:13:15] Production.INFO: ==14608== Releasing lock... [2025-03-02 23:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:13:16] Production.INFO: count ==1335 [2025-03-02 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594409', 'tblTempUsageDetail_20' ) start [2025-03-02 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594409', 'tblTempUsageDetail_20' ) end [2025-03-02 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594409', 'tblTempVendorCDR_20' ) start [2025-03-02 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594409', 'tblTempVendorCDR_20' ) end [2025-03-02 23:13:17] Production.INFO: ProcessCDR(1,14594409,1,1,2) [2025-03-02 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594409', 'tblTempUsageDetail_20' ) start [2025-03-02 23:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594409', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:13:24] Production.INFO: ==14616== Releasing lock... [2025-03-02 23:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:13:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:14:02] Production.INFO: ==14689== Lock acquired, processing the job... [2025-03-03 04:14:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:14:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:14:02] Production.INFO: neon service started [2025-03-03 04:14:02] Production.INFO: neon service started [2025-03-03 04:14:02] Production.INFO: ==14689== Releasing lock... [2025-03-03 04:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:14:02] Production.INFO: ==14691== Lock acquired, processing the job... [2025-03-02 23:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:14:02] Production.INFO: ==14693== Lock acquired, processing the job... [2025-03-03 04:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:14:03] Production.INFO: ==14693== Releasing lock... [2025-03-03 04:14:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:14:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:14:03] Production.INFO: ==14691== Releasing lock... [2025-03-02 23:14:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:14:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:14:04] Production.INFO: ==14706== Lock acquired, processing the job... [2025-03-02 23:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:14:04] Production.INFO: ==14704== Lock acquired, processing the job... [2025-03-02 23:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:14:04] Production.INFO: ==14696== Lock acquired, processing the job... [2025-03-02 23:14:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:14:04] Production.INFO: count ==13 [2025-03-02 23:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:14:04] Production.INFO: ==14698== Lock acquired, processing the job... [2025-03-02 23:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:14:04] Production.INFO: count ==21 [2025-03-02 23:14:04] Production.INFO: ==14700== Lock acquired, processing the job... [2025-03-02 23:14:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:14:04] Production.INFO: ==14702== Lock acquired, processing the job... [2025-03-02 23:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594410') start [2025-03-02 23:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594410') end [2025-03-02 23:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:14:04] Production.INFO: 1 [2025-03-02 23:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:14:04] Production.INFO: Account Balance Start. [2025-03-02 23:14:04] Production.INFO: CreateAllLog Start [2025-03-02 23:14:04] Production.INFO: 117 [2025-03-02 23:14:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:04] Production.INFO: ==14706== Releasing lock... [2025-03-02 23:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:14:04] Production.ERROR: done [2025-03-02 23:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:14:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:14:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.ERROR: done [2025-03-02 23:14:05] Production.INFO: ==14698== Releasing lock... [2025-03-02 23:14:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:14:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:14:05] Production.INFO: Date 2025-02-14 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:14:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:14:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:14:05] Production.INFO: Total Charge 0 [2025-03-02 23:14:05] Production.INFO: CreateAllLog End [2025-03-02 23:14:05] Production.INFO: Account Balance End. [2025-03-02 23:14:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:14:05] Production.INFO: ==14702== Releasing lock... [2025-03-02 23:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:14:13] Production.ERROR: CronJobId end10 [2025-03-02 23:14:13] Production.INFO: ==14700== Releasing lock... [2025-03-02 23:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:14:16] Production.INFO: call_cost start [2025-03-02 23:14:16] Production.INFO: call_cost end [2025-03-02 23:14:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:14:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:14:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:14:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:14:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:14:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:14:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:14:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:14:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:14:16] Production.INFO: ==14696== Releasing lock... [2025-03-02 23:14:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:14:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:14:17] Production.INFO: count ==1335 [2025-03-02 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594414', 'tblTempUsageDetail_20' ) start [2025-03-02 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594414', 'tblTempUsageDetail_20' ) end [2025-03-02 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594414', 'tblTempVendorCDR_20' ) start [2025-03-02 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594414', 'tblTempVendorCDR_20' ) end [2025-03-02 23:14:17] Production.INFO: ProcessCDR(1,14594414,1,1,2) [2025-03-02 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594414', 'tblTempUsageDetail_20' ) start [2025-03-02 23:14:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594414', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:14:24] Production.INFO: ==14704== Releasing lock... [2025-03-02 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:14:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:15:01] Production.INFO: ==14853== Lock acquired, processing the job... [2025-03-03 04:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:15:01] Production.INFO: neon service started [2025-03-03 04:15:01] Production.INFO: neon service started [2025-03-03 04:15:01] Production.INFO: ==14853== Releasing lock... [2025-03-03 04:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:15:02] Production.INFO: ==14855== Lock acquired, processing the job... [2025-03-02 23:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:15:02] Production.INFO: ==14855== Releasing lock... [2025-03-02 23:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:15:02] Production.INFO: ==14857== Lock acquired, processing the job... [2025-03-03 04:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:15:02] Production.INFO: ==14857== Releasing lock... [2025-03-03 04:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:15:03] Production.INFO: ==14866== Lock acquired, processing the job... [2025-03-02 23:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:15:03] Production.INFO: ==14862== Lock acquired, processing the job... [2025-03-02 23:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:15:03] Production.INFO: ==14868== Lock acquired, processing the job... [2025-03-02 23:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:15:03] Production.INFO: ==14860== Lock acquired, processing the job... [2025-03-02 23:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:15:03] Production.INFO: Account Balance Start. [2025-03-02 23:15:03] Production.INFO: CreateAllLog Start [2025-03-02 23:15:03] Production.INFO: 117 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:15:03] Production.INFO: ==14864== Lock acquired, processing the job... [2025-03-02 23:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:15:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: ==14870== Lock acquired, processing the job... [2025-03-02 23:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:15:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:15:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: ==14862== Releasing lock... [2025-03-02 23:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:15:03] Production.ERROR: done [2025-03-02 23:15:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:15:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:15:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:15:03] Production.INFO: count ==13 [2025-03-02 23:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:15:04] Production.INFO: count ==21 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.ERROR: done [2025-03-02 23:15:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594418') start [2025-03-02 23:15:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594418') end [2025-03-02 23:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:15:04] Production.INFO: 1 [2025-03-02 23:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:15:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: ==14870== Releasing lock... [2025-03-02 23:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:15:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:15:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:15:04] Production.INFO: Total Charge 0 [2025-03-02 23:15:04] Production.INFO: CreateAllLog End [2025-03-02 23:15:04] Production.INFO: Account Balance End. [2025-03-02 23:15:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:15:04] Production.INFO: ==14866== Releasing lock... [2025-03-02 23:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:15:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:15:12] Production.ERROR: CronJobId end10 [2025-03-02 23:15:12] Production.INFO: ==14864== Releasing lock... [2025-03-02 23:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:15:15] Production.INFO: call_cost start [2025-03-02 23:15:15] Production.INFO: call_cost end [2025-03-02 23:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:15:15] Production.INFO: ==14860== Releasing lock... [2025-03-02 23:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:15:16] Production.INFO: count ==1335 [2025-03-02 23:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594419', 'tblTempUsageDetail_20' ) start [2025-03-02 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594419', 'tblTempUsageDetail_20' ) end [2025-03-02 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594419', 'tblTempVendorCDR_20' ) start [2025-03-02 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594419', 'tblTempVendorCDR_20' ) end [2025-03-02 23:15:16] Production.INFO: ProcessCDR(1,14594419,1,1,2) [2025-03-02 23:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594419', 'tblTempUsageDetail_20' ) start [2025-03-02 23:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594419', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:15:24] Production.INFO: ==14868== Releasing lock... [2025-03-02 23:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:15:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:16:02] Production.INFO: ==14941== Lock acquired, processing the job... [2025-03-03 04:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:16:02] Production.INFO: neon service started [2025-03-03 04:16:02] Production.INFO: neon service started [2025-03-03 04:16:02] Production.INFO: ==14941== Releasing lock... [2025-03-03 04:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:16:02] Production.INFO: ==14945== Lock acquired, processing the job... [2025-03-03 04:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:16:02] Production.INFO: ==14945== Releasing lock... [2025-03-03 04:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:16:02] Production.INFO: ==14943== Lock acquired, processing the job... [2025-03-02 23:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:16:03] Production.INFO: ==14943== Releasing lock... [2025-03-02 23:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:16:03] Production.INFO: ==14947== Lock acquired, processing the job... [2025-03-02 23:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:16:04] Production.INFO: ==14952== Lock acquired, processing the job... [2025-03-02 23:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:16:04] Production.INFO: ==14954== Lock acquired, processing the job... [2025-03-02 23:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:16:04] Production.INFO: ==14949== Lock acquired, processing the job... [2025-03-02 23:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:16:04] Production.INFO: Account Balance Start. [2025-03-02 23:16:04] Production.INFO: CreateAllLog Start [2025-03-02 23:16:04] Production.INFO: 117 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: ==14956== Lock acquired, processing the job... [2025-03-02 23:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:16:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: ==14958== Lock acquired, processing the job... [2025-03-02 23:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:16:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: ==14949== Releasing lock... [2025-03-02 23:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:16:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:16:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.INFO: count ==13 [2025-03-02 23:16:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:16:04] Production.INFO: count ==21 [2025-03-02 23:16:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:04] Production.ERROR: done [2025-03-02 23:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594423') start [2025-03-02 23:16:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594423') end [2025-03-02 23:16:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:16:05] Production.INFO: 1 [2025-03-02 23:16:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:16:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: ==14958== Releasing lock... [2025-03-02 23:16:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:16:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:16:05] Production.ERROR: done [2025-03-02 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:16:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:16:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:16:05] Production.INFO: Total Charge 0 [2025-03-02 23:16:05] Production.INFO: CreateAllLog End [2025-03-02 23:16:05] Production.INFO: Account Balance End. [2025-03-02 23:16:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:16:05] Production.INFO: ==14954== Releasing lock... [2025-03-02 23:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:16:13] Production.ERROR: CronJobId end10 [2025-03-02 23:16:13] Production.INFO: ==14952== Releasing lock... [2025-03-02 23:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:16:15] Production.INFO: call_cost start [2025-03-02 23:16:15] Production.INFO: call_cost end [2025-03-02 23:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:16:15] Production.INFO: ==14947== Releasing lock... [2025-03-02 23:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:16:17] Production.INFO: count ==1335 [2025-03-02 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594424', 'tblTempUsageDetail_20' ) start [2025-03-02 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594424', 'tblTempUsageDetail_20' ) end [2025-03-02 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594424', 'tblTempVendorCDR_20' ) start [2025-03-02 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594424', 'tblTempVendorCDR_20' ) end [2025-03-02 23:16:17] Production.INFO: ProcessCDR(1,14594424,1,1,2) [2025-03-02 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594424', 'tblTempUsageDetail_20' ) start [2025-03-02 23:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594424', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:16:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:16:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:16:25] Production.INFO: ==14956== Releasing lock... [2025-03-02 23:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:16:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:17:01] Production.INFO: ==15028== Lock acquired, processing the job... [2025-03-03 04:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:17:01] Production.INFO: neon service started [2025-03-03 04:17:01] Production.INFO: neon service started [2025-03-03 04:17:01] Production.INFO: ==15028== Releasing lock... [2025-03-03 04:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:17:02] Production.INFO: ==15032== Lock acquired, processing the job... [2025-03-03 04:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:17:02] Production.INFO: ==15032== Releasing lock... [2025-03-03 04:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:17:02] Production.INFO: ==15030== Lock acquired, processing the job... [2025-03-02 23:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:17:02] Production.INFO: ==15030== Releasing lock... [2025-03-02 23:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:17:03] Production.INFO: ==15035== Lock acquired, processing the job... [2025-03-02 23:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:17:03] Production.INFO: ==15041== Lock acquired, processing the job... [2025-03-02 23:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:17:03] Production.INFO: ==15043== Lock acquired, processing the job... [2025-03-02 23:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:17:03] Production.INFO: Account Balance Start. [2025-03-02 23:17:03] Production.INFO: CreateAllLog Start [2025-03-02 23:17:03] Production.INFO: 117 [2025-03-02 23:17:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:17:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:17:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:03] Production.INFO: ==15037== Lock acquired, processing the job... [2025-03-02 23:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:17:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:17:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:17:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:03] Production.INFO: ==15039== Lock acquired, processing the job... [2025-03-02 23:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:17:03] Production.INFO: ==15045== Lock acquired, processing the job... [2025-03-02 23:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:17:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:17:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.ERROR: done [2025-03-02 23:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:17:04] Production.INFO: ==15037== Releasing lock... [2025-03-02 23:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:17:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: count ==13 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: count ==21 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594428') start [2025-03-02 23:17:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.ERROR: done [2025-03-02 23:17:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594428') end [2025-03-02 23:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:17:04] Production.INFO: 1 [2025-03-02 23:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:17:04] Production.INFO: ==15045== Releasing lock... [2025-03-02 23:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:17:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:17:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:17:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:17:04] Production.INFO: Total Charge 0 [2025-03-02 23:17:04] Production.INFO: CreateAllLog End [2025-03-02 23:17:05] Production.INFO: Account Balance End. [2025-03-02 23:17:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:17:05] Production.INFO: ==15041== Releasing lock... [2025-03-02 23:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:17:13] Production.ERROR: CronJobId end10 [2025-03-02 23:17:13] Production.INFO: ==15039== Releasing lock... [2025-03-02 23:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:17:15] Production.INFO: call_cost start [2025-03-02 23:17:15] Production.INFO: call_cost end [2025-03-02 23:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:17:15] Production.INFO: ==15035== Releasing lock... [2025-03-02 23:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:17:16] Production.INFO: count ==1335 [2025-03-02 23:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594429', 'tblTempUsageDetail_20' ) start [2025-03-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594429', 'tblTempUsageDetail_20' ) end [2025-03-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594429', 'tblTempVendorCDR_20' ) start [2025-03-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594429', 'tblTempVendorCDR_20' ) end [2025-03-02 23:17:17] Production.INFO: ProcessCDR(1,14594429,1,1,2) [2025-03-02 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594429', 'tblTempUsageDetail_20' ) start [2025-03-02 23:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594429', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:17:24] Production.INFO: ==15043== Releasing lock... [2025-03-02 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:17:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:18:02] Production.INFO: ==15114== Lock acquired, processing the job... [2025-03-03 04:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:18:02] Production.INFO: neon service started [2025-03-03 04:18:02] Production.INFO: neon service started [2025-03-03 04:18:02] Production.INFO: ==15114== Releasing lock... [2025-03-03 04:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:18:02] Production.INFO: ==15118== Lock acquired, processing the job... [2025-03-02 23:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:18:02] Production.INFO: ==15118== Releasing lock... [2025-03-02 23:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:18:02] Production.INFO: ==15120== Lock acquired, processing the job... [2025-03-03 04:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:18:03] Production.INFO: ==15120== Releasing lock... [2025-03-03 04:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:18:03] Production.INFO: ==15128== Lock acquired, processing the job... [2025-03-02 23:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:18:03] Production.INFO: ==15132== Lock acquired, processing the job... [2025-03-02 23:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:18:03] Production.INFO: ==15122== Lock acquired, processing the job... [2025-03-02 23:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:18:03] Production.INFO: Account Balance Start. [2025-03-02 23:18:03] Production.INFO: CreateAllLog Start [2025-03-02 23:18:03] Production.INFO: 117 [2025-03-02 23:18:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: ==15124== Lock acquired, processing the job... [2025-03-02 23:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:18:04] Production.INFO: count ==13 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:18:04] Production.INFO: count ==21 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: ==15126== Lock acquired, processing the job... [2025-03-02 23:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594431') start [2025-03-02 23:18:04] Production.INFO: ==15130== Lock acquired, processing the job... [2025-03-02 23:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:18:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594431') end [2025-03-02 23:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:18:04] Production.INFO: 1 [2025-03-02 23:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:18:04] Production.INFO: ==15132== Releasing lock... [2025-03-02 23:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:18:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: ==15124== Releasing lock... [2025-03-02 23:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:18:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.ERROR: done [2025-03-02 23:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.ERROR: done [2025-03-02 23:18:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:18:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:18:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:18:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:18:05] Production.INFO: Total Charge 0 [2025-03-02 23:18:05] Production.INFO: CreateAllLog End [2025-03-02 23:18:05] Production.INFO: Account Balance End. [2025-03-02 23:18:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:18:05] Production.INFO: ==15128== Releasing lock... [2025-03-02 23:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:18:12] Production.ERROR: CronJobId end10 [2025-03-02 23:18:12] Production.INFO: ==15126== Releasing lock... [2025-03-02 23:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:18:16] Production.INFO: call_cost start [2025-03-02 23:18:16] Production.INFO: call_cost end [2025-03-02 23:18:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:18:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:18:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:18:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:18:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:18:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:18:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:18:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:18:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:18:16] Production.INFO: ==15122== Releasing lock... [2025-03-02 23:18:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:18:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:18:17] Production.INFO: count ==1335 [2025-03-02 23:18:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594434', 'tblTempUsageDetail_20' ) start [2025-03-02 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594434', 'tblTempUsageDetail_20' ) end [2025-03-02 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594434', 'tblTempVendorCDR_20' ) start [2025-03-02 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594434', 'tblTempVendorCDR_20' ) end [2025-03-02 23:18:17] Production.INFO: ProcessCDR(1,14594434,1,1,2) [2025-03-02 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594434', 'tblTempUsageDetail_20' ) start [2025-03-02 23:18:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594434', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:18:24] Production.INFO: ==15130== Releasing lock... [2025-03-02 23:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:18:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:19:01] Production.INFO: ==15226== Lock acquired, processing the job... [2025-03-03 04:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:19:01] Production.INFO: neon service started [2025-03-03 04:19:01] Production.INFO: neon service started [2025-03-03 04:19:01] Production.INFO: ==15226== Releasing lock... [2025-03-03 04:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:19:01] Production.INFO: ==15228== Lock acquired, processing the job... [2025-03-02 23:19:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:19:02] Production.INFO: ==15228== Releasing lock... [2025-03-02 23:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:19:02] Production.INFO: ==15230== Lock acquired, processing the job... [2025-03-03 04:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:19:02] Production.INFO: ==15230== Releasing lock... [2025-03-03 04:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:19:03] Production.INFO: ==15236== Lock acquired, processing the job... [2025-03-02 23:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:19:03] Production.INFO: ==15242== Lock acquired, processing the job... [2025-03-02 23:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:19:03] Production.INFO: ==15232== Lock acquired, processing the job... [2025-03-02 23:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:19:03] Production.INFO: ==15238== Lock acquired, processing the job... [2025-03-02 23:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:19:03] Production.INFO: ==15234== Lock acquired, processing the job... [2025-03-02 23:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:19:03] Production.INFO: ==15240== Lock acquired, processing the job... [2025-03-02 23:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:19:03] Production.INFO: count ==13 [2025-03-02 23:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:19:03] Production.INFO: count ==21 [2025-03-02 23:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594435') start [2025-03-02 23:19:03] Production.INFO: Account Balance Start. [2025-03-02 23:19:03] Production.INFO: CreateAllLog Start [2025-03-02 23:19:03] Production.INFO: 117 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594435') end [2025-03-02 23:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:19:03] Production.INFO: 1 [2025-03-02 23:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:19:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: ==15242== Releasing lock... [2025-03-02 23:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:19:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.ERROR: done [2025-03-02 23:19:03] Production.INFO: ==15234== Releasing lock... [2025-03-02 23:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:19:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:19:03] Production.INFO: Date 2025-02-18 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:03] Production.INFO: Date 2025-02-19 [2025-03-02 23:19:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.ERROR: done [2025-03-02 23:19:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:19:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:19:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:19:04] Production.INFO: Total Charge 0 [2025-03-02 23:19:04] Production.INFO: CreateAllLog End [2025-03-02 23:19:04] Production.INFO: Account Balance End. [2025-03-02 23:19:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:19:04] Production.INFO: ==15238== Releasing lock... [2025-03-02 23:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:19:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:19:12] Production.ERROR: CronJobId end10 [2025-03-02 23:19:12] Production.INFO: ==15236== Releasing lock... [2025-03-02 23:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:19:14] Production.INFO: call_cost start [2025-03-02 23:19:14] Production.INFO: call_cost end [2025-03-02 23:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:19:14] Production.INFO: ==15232== Releasing lock... [2025-03-02 23:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:19:16] Production.INFO: count ==1335 [2025-03-02 23:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594439', 'tblTempUsageDetail_20' ) start [2025-03-02 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594439', 'tblTempUsageDetail_20' ) end [2025-03-02 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594439', 'tblTempVendorCDR_20' ) start [2025-03-02 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594439', 'tblTempVendorCDR_20' ) end [2025-03-02 23:19:16] Production.INFO: ProcessCDR(1,14594439,1,1,2) [2025-03-02 23:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594439', 'tblTempUsageDetail_20' ) start [2025-03-02 23:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594439', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:19:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:19:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:19:23] Production.INFO: ==15240== Releasing lock... [2025-03-02 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:19:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:20:02] Production.INFO: ==15304== Lock acquired, processing the job... [2025-03-03 04:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:20:02] Production.INFO: neon service started [2025-03-03 04:20:02] Production.INFO: neon service started [2025-03-03 04:20:02] Production.INFO: ==15304== Releasing lock... [2025-03-03 04:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:20:02] Production.INFO: ==15307== Lock acquired, processing the job... [2025-03-02 23:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:20:02] Production.INFO: ==15309== Lock acquired, processing the job... [2025-03-03 04:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:20:02] Production.INFO: ==15309== Releasing lock... [2025-03-03 04:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:20:02] Production.INFO: ==15307== Releasing lock... [2025-03-02 23:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:20:04] Production.INFO: ==15311== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 23:20:04] Production.INFO: ==15321== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 23:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 23:20:04] Production.INFO: ==15311== Releasing lock... [2025-03-02 23:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 23:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:20:04] Production.INFO: ==15325== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:20:04] Production.INFO: ==15323== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 23:20:04] Production.INFO: ==15313== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:20:04] Production.INFO: ==15315== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:20:04] Production.INFO: ==15317== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:20:04] Production.INFO: ==15319== Lock acquired, processing the job... [2025-03-02 23:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:20:04] Production.INFO: count ==13 [2025-03-02 23:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:20:04] Production.INFO: count ==21 [2025-03-02 23:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594440') start [2025-03-02 23:20:04] Production.INFO: ==15315== Releasing lock... [2025-03-02 23:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:20:04] Production.ERROR: done [2025-03-02 23:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594440') end [2025-03-02 23:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:20:04] Production.INFO: 1 [2025-03-02 23:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:20:04] Production.INFO: Account Balance Start. [2025-03-02 23:20:04] Production.INFO: CreateAllLog Start [2025-03-02 23:20:04] Production.INFO: 117 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-08 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: ==15325== Releasing lock... [2025-03-02 23:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:20:05] Production.ERROR: done [2025-03-02 23:20:05] Production.INFO: Date 2025-02-09 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.ERROR: done [2025-03-02 23:20:05] Production.INFO: Date 2025-02-10 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:20:05] Production.INFO: Date 2025-02-11 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-12 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-13 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 23:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594445', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 23:20:05] Production.INFO: Date 2025-02-14 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:20:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:06] Production.INFO: Date 2025-03-01 [2025-03-02 23:20:06] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:06] Production.INFO: Date 2025-03-02 [2025-03-02 23:20:06] Production.INFO: Reseller ==> 0 [2025-03-02 23:20:06] Production.INFO: Total Charge 0 [2025-03-02 23:20:06] Production.INFO: CreateAllLog End [2025-03-02 23:20:06] Production.INFO: Account Balance End. [2025-03-02 23:20:06] Production.ERROR: CronJobId end 12 [2025-03-02 23:20:06] Production.INFO: ==15319== Releasing lock... [2025-03-02 23:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594445', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 23:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 23:20:09] Production.INFO: ProcessCDR(1,14594445,1,1,2) [2025-03-02 23:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594445,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594445,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 23:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 23:20:09] Production.INFO: ==15323== Releasing lock... [2025-03-02 23:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 23:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:20:14] Production.ERROR: CronJobId end10 [2025-03-02 23:20:14] Production.INFO: ==15317== Releasing lock... [2025-03-02 23:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:20:17] Production.INFO: call_cost start [2025-03-02 23:20:17] Production.INFO: call_cost end [2025-03-02 23:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:20:17] Production.INFO: ==15313== Releasing lock... [2025-03-02 23:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:20:17] Production.INFO: count ==1335 [2025-03-02 23:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594444', 'tblTempUsageDetail_20' ) start [2025-03-02 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594444', 'tblTempUsageDetail_20' ) end [2025-03-02 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594444', 'tblTempVendorCDR_20' ) start [2025-03-02 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594444', 'tblTempVendorCDR_20' ) end [2025-03-02 23:20:17] Production.INFO: ProcessCDR(1,14594444,1,1,2) [2025-03-02 23:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594444', 'tblTempUsageDetail_20' ) start [2025-03-02 23:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594444', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:20:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:20:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:20:24] Production.INFO: ==15321== Releasing lock... [2025-03-02 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:21:01] Production.INFO: ==15383== Lock acquired, processing the job... [2025-03-03 04:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:21:01] Production.INFO: neon service started [2025-03-03 04:21:01] Production.INFO: neon service started [2025-03-03 04:21:01] Production.INFO: ==15383== Releasing lock... [2025-03-03 04:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:21:01] Production.INFO: ==15385== Lock acquired, processing the job... [2025-03-02 23:21:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:21:02] Production.INFO: ==15385== Releasing lock... [2025-03-02 23:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:21:02] Production.INFO: ==15387== Lock acquired, processing the job... [2025-03-03 04:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:21:02] Production.INFO: ==15387== Releasing lock... [2025-03-03 04:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:21:03] Production.INFO: ==15389== Lock acquired, processing the job... [2025-03-02 23:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:21:03] Production.INFO: ==15391== Lock acquired, processing the job... [2025-03-02 23:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:21:03] Production.INFO: ==15393== Lock acquired, processing the job... [2025-03-02 23:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:21:03] Production.INFO: ==15399== Lock acquired, processing the job... [2025-03-02 23:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:21:03] Production.INFO: ==15395== Lock acquired, processing the job... [2025-03-02 23:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:21:03] Production.INFO: ==15397== Lock acquired, processing the job... [2025-03-02 23:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:21:03] Production.INFO: Account Balance Start. [2025-03-02 23:21:03] Production.INFO: CreateAllLog Start [2025-03-02 23:21:03] Production.INFO: 117 [2025-03-02 23:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:21:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: count ==13 [2025-03-02 23:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:21:03] Production.INFO: count ==21 [2025-03-02 23:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594447') start [2025-03-02 23:21:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594447') end [2025-03-02 23:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:21:03] Production.INFO: 1 [2025-03-02 23:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:21:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: ==15399== Releasing lock... [2025-03-02 23:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:21:03] Production.INFO: ==15391== Releasing lock... [2025-03-02 23:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:21:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:21:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.ERROR: done [2025-03-02 23:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.ERROR: done [2025-03-02 23:21:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:21:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:21:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:21:04] Production.INFO: Total Charge 0 [2025-03-02 23:21:04] Production.INFO: CreateAllLog End [2025-03-02 23:21:04] Production.INFO: Account Balance End. [2025-03-02 23:21:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:21:04] Production.INFO: ==15395== Releasing lock... [2025-03-02 23:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:21:12] Production.ERROR: CronJobId end10 [2025-03-02 23:21:12] Production.INFO: ==15393== Releasing lock... [2025-03-02 23:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:21:14] Production.INFO: call_cost start [2025-03-02 23:21:14] Production.INFO: call_cost end [2025-03-02 23:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:21:14] Production.INFO: ==15389== Releasing lock... [2025-03-02 23:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:21:16] Production.INFO: count ==1335 [2025-03-02 23:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594450', 'tblTempUsageDetail_20' ) start [2025-03-02 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594450', 'tblTempUsageDetail_20' ) end [2025-03-02 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594450', 'tblTempVendorCDR_20' ) start [2025-03-02 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594450', 'tblTempVendorCDR_20' ) end [2025-03-02 23:21:16] Production.INFO: ProcessCDR(1,14594450,1,1,2) [2025-03-02 23:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594450', 'tblTempUsageDetail_20' ) start [2025-03-02 23:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594450', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:21:24] Production.INFO: ==15397== Releasing lock... [2025-03-02 23:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:21:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:22:02] Production.INFO: ==15464== Lock acquired, processing the job... [2025-03-03 04:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:22:02] Production.INFO: neon service started [2025-03-03 04:22:02] Production.INFO: neon service started [2025-03-03 04:22:02] Production.INFO: ==15464== Releasing lock... [2025-03-03 04:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:22:02] Production.INFO: ==15468== Lock acquired, processing the job... [2025-03-03 04:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:22:02] Production.INFO: ==15468== Releasing lock... [2025-03-03 04:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:22:02] Production.INFO: ==15466== Lock acquired, processing the job... [2025-03-02 23:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:22:02] Production.INFO: ==15466== Releasing lock... [2025-03-02 23:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:22:03] Production.INFO: ==15470== Lock acquired, processing the job... [2025-03-02 23:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:22:03] Production.INFO: ==15477== Lock acquired, processing the job... [2025-03-02 23:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:22:03] Production.INFO: ==15481== Lock acquired, processing the job... [2025-03-02 23:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:22:03] Production.INFO: Account Balance Start. [2025-03-02 23:22:03] Production.INFO: CreateAllLog Start [2025-03-02 23:22:03] Production.INFO: 117 [2025-03-02 23:22:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:22:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:22:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: count ==13 [2025-03-02 23:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:22:04] Production.INFO: count ==21 [2025-03-02 23:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594453') start [2025-03-02 23:22:04] Production.INFO: ==15472== Lock acquired, processing the job... [2025-03-02 23:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:22:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: ==15475== Lock acquired, processing the job... [2025-03-02 23:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:22:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594453') end [2025-03-02 23:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:22:04] Production.INFO: 1 [2025-03-02 23:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:22:04] Production.INFO: ==15481== Releasing lock... [2025-03-02 23:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:22:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: ==15479== Lock acquired, processing the job... [2025-03-02 23:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:22:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:22:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: ==15472== Releasing lock... [2025-03-02 23:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:22:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.ERROR: done [2025-03-02 23:22:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:22:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:05] Production.ERROR: done [2025-03-02 23:22:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:22:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:22:05] Production.INFO: Total Charge 0 [2025-03-02 23:22:05] Production.INFO: CreateAllLog End [2025-03-02 23:22:05] Production.INFO: Account Balance End. [2025-03-02 23:22:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:22:05] Production.INFO: ==15477== Releasing lock... [2025-03-02 23:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:22:12] Production.ERROR: CronJobId end10 [2025-03-02 23:22:12] Production.INFO: ==15475== Releasing lock... [2025-03-02 23:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:22:15] Production.INFO: call_cost start [2025-03-02 23:22:15] Production.INFO: call_cost end [2025-03-02 23:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:22:15] Production.INFO: ==15470== Releasing lock... [2025-03-02 23:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:22:17] Production.INFO: count ==1335 [2025-03-02 23:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594455', 'tblTempUsageDetail_20' ) start [2025-03-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594455', 'tblTempUsageDetail_20' ) end [2025-03-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594455', 'tblTempVendorCDR_20' ) start [2025-03-02 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594455', 'tblTempVendorCDR_20' ) end [2025-03-02 23:22:17] Production.INFO: ProcessCDR(1,14594455,1,1,2) [2025-03-02 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594455', 'tblTempUsageDetail_20' ) start [2025-03-02 23:22:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594455', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:22:24] Production.INFO: ==15479== Releasing lock... [2025-03-02 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:22:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:23:01] Production.INFO: ==15554== Lock acquired, processing the job... [2025-03-03 04:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:23:01] Production.INFO: neon service started [2025-03-03 04:23:01] Production.INFO: neon service started [2025-03-03 04:23:01] Production.INFO: ==15554== Releasing lock... [2025-03-03 04:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:23:01] Production.INFO: ==15556== Lock acquired, processing the job... [2025-03-02 23:23:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:23:02] Production.INFO: ==15556== Releasing lock... [2025-03-02 23:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:23:02] Production.INFO: ==15558== Lock acquired, processing the job... [2025-03-03 04:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:23:02] Production.INFO: ==15558== Releasing lock... [2025-03-03 04:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:23:03] Production.INFO: ==15561== Lock acquired, processing the job... [2025-03-02 23:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:23:03] Production.INFO: ==15563== Lock acquired, processing the job... [2025-03-02 23:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:23:03] Production.INFO: ==15567== Lock acquired, processing the job... [2025-03-02 23:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:23:03] Production.INFO: ==15570== Lock acquired, processing the job... [2025-03-02 23:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:23:03] Production.INFO: ==15565== Lock acquired, processing the job... [2025-03-02 23:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:23:03] Production.INFO: Account Balance Start. [2025-03-02 23:23:03] Production.INFO: CreateAllLog Start [2025-03-02 23:23:03] Production.INFO: 117 [2025-03-02 23:23:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.INFO: ==15572== Lock acquired, processing the job... [2025-03-02 23:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:23:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:23:03] Production.INFO: count ==13 [2025-03-02 23:23:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:23:03] Production.INFO: count ==21 [2025-03-02 23:23:03] Production.INFO: ==15563== Releasing lock... [2025-03-02 23:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:23:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:23:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594459') start [2025-03-02 23:23:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.ERROR: done [2025-03-02 23:23:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:23:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.ERROR: done [2025-03-02 23:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594459') end [2025-03-02 23:23:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:23:03] Production.INFO: 1 [2025-03-02 23:23:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:23:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.INFO: ==15572== Releasing lock... [2025-03-02 23:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:23:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:23:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:23:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:23:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:23:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:23:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:23:04] Production.INFO: Total Charge 0 [2025-03-02 23:23:04] Production.INFO: CreateAllLog End [2025-03-02 23:23:04] Production.INFO: Account Balance End. [2025-03-02 23:23:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:23:04] Production.INFO: ==15567== Releasing lock... [2025-03-02 23:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:23:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:23:12] Production.ERROR: CronJobId end10 [2025-03-02 23:23:12] Production.INFO: ==15565== Releasing lock... [2025-03-02 23:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:23:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:23:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:23:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:23:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:23:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:23:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:23:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:23:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:23:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:23:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:23:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:23:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:23:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:23:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:23:14] Production.INFO: call_cost start [2025-03-02 23:23:14] Production.INFO: call_cost end [2025-03-02 23:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:23:14] Production.INFO: ==15561== Releasing lock... [2025-03-02 23:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:23:16] Production.INFO: count ==1335 [2025-03-02 23:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594460', 'tblTempUsageDetail_20' ) start [2025-03-02 23:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594460', 'tblTempUsageDetail_20' ) end [2025-03-02 23:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594460', 'tblTempVendorCDR_20' ) start [2025-03-02 23:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594460', 'tblTempVendorCDR_20' ) end [2025-03-02 23:23:16] Production.INFO: ProcessCDR(1,14594460,1,1,2) [2025-03-02 23:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594460', 'tblTempUsageDetail_20' ) start [2025-03-02 23:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594460', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:23:24] Production.INFO: ==15570== Releasing lock... [2025-03-02 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:23:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:24:01] Production.INFO: ==15648== Lock acquired, processing the job... [2025-03-03 04:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:24:02] Production.INFO: neon service started [2025-03-03 04:24:02] Production.INFO: neon service started [2025-03-03 04:24:02] Production.INFO: ==15648== Releasing lock... [2025-03-03 04:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:24:02] Production.INFO: ==15650== Lock acquired, processing the job... [2025-03-02 23:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:24:02] Production.INFO: ==15650== Releasing lock... [2025-03-02 23:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:24:02] Production.INFO: ==15652== Lock acquired, processing the job... [2025-03-03 04:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:24:02] Production.INFO: ==15652== Releasing lock... [2025-03-03 04:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:24:03] Production.INFO: ==15659== Lock acquired, processing the job... [2025-03-02 23:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:24:03] Production.INFO: ==15663== Lock acquired, processing the job... [2025-03-02 23:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:24:03] Production.INFO: ==15655== Lock acquired, processing the job... [2025-03-02 23:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:24:03] Production.INFO: ==15657== Lock acquired, processing the job... [2025-03-02 23:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:24:04] Production.INFO: ==15661== Lock acquired, processing the job... [2025-03-02 23:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:24:04] Production.INFO: ==15665== Lock acquired, processing the job... [2025-03-02 23:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:24:04] Production.INFO: Account Balance Start. [2025-03-02 23:24:04] Production.INFO: CreateAllLog Start [2025-03-02 23:24:04] Production.INFO: 117 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:24:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: count ==13 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:24:04] Production.INFO: count ==21 [2025-03-02 23:24:04] Production.ERROR: done [2025-03-02 23:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594462') start [2025-03-02 23:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:24:04] Production.ERROR: done [2025-03-02 23:24:04] Production.INFO: ==15657== Releasing lock... [2025-03-02 23:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594462') end [2025-03-02 23:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:24:04] Production.INFO: 1 [2025-03-02 23:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:24:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:24:04] Production.INFO: ==15665== Releasing lock... [2025-03-02 23:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:24:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:24:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:24:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:24:05] Production.INFO: Total Charge 0 [2025-03-02 23:24:05] Production.INFO: CreateAllLog End [2025-03-02 23:24:05] Production.INFO: Account Balance End. [2025-03-02 23:24:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:24:05] Production.INFO: ==15661== Releasing lock... [2025-03-02 23:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:24:11] Production.ERROR: CronJobId end10 [2025-03-02 23:24:11] Production.INFO: ==15659== Releasing lock... [2025-03-02 23:24:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:24:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:24:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:24:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:24:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:24:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:24:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:24:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:24:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:24:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:24:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:24:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:24:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:24:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:24:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:24:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:24:14] Production.INFO: call_cost start [2025-03-02 23:24:14] Production.INFO: call_cost end [2025-03-02 23:24:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:24:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:24:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:24:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:24:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:24:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:24:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:24:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:24:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:24:14] Production.INFO: ==15655== Releasing lock... [2025-03-02 23:24:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:24:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:24:16] Production.INFO: count ==1335 [2025-03-02 23:24:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594465', 'tblTempUsageDetail_20' ) start [2025-03-02 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594465', 'tblTempUsageDetail_20' ) end [2025-03-02 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594465', 'tblTempVendorCDR_20' ) start [2025-03-02 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594465', 'tblTempVendorCDR_20' ) end [2025-03-02 23:24:16] Production.INFO: ProcessCDR(1,14594465,1,1,2) [2025-03-02 23:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594465', 'tblTempUsageDetail_20' ) start [2025-03-02 23:24:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594465', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:24:24] Production.INFO: ==15663== Releasing lock... [2025-03-02 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:25:01] Production.INFO: ==15741== Lock acquired, processing the job... [2025-03-03 04:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:25:01] Production.INFO: neon service started [2025-03-03 04:25:01] Production.INFO: neon service started [2025-03-03 04:25:01] Production.INFO: ==15741== Releasing lock... [2025-03-03 04:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:25:01] Production.INFO: ==15745== Lock acquired, processing the job... [2025-03-03 04:25:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:25:01] Production.INFO: ==15745== Releasing lock... [2025-03-03 04:25:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:25:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:25:01] Production.INFO: ==15743== Lock acquired, processing the job... [2025-03-02 23:25:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:25:02] Production.INFO: ==15743== Releasing lock... [2025-03-02 23:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:25:03] Production.INFO: ==15750== Lock acquired, processing the job... [2025-03-02 23:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:25:03] Production.INFO: ==15754== Lock acquired, processing the job... [2025-03-02 23:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:25:03] Production.INFO: ==15748== Lock acquired, processing the job... [2025-03-02 23:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:25:03] Production.INFO: Account Balance Start. [2025-03-02 23:25:03] Production.INFO: CreateAllLog Start [2025-03-02 23:25:03] Production.INFO: 117 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:25:03] Production.INFO: ==15752== Lock acquired, processing the job... [2025-03-02 23:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:25:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: ==15756== Lock acquired, processing the job... [2025-03-02 23:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:25:03] Production.INFO: ==15758== Lock acquired, processing the job... [2025-03-02 23:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:25:03] Production.INFO: ==15750== Releasing lock... [2025-03-02 23:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:25:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:25:03] Production.INFO: Date 2025-02-18 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: count ==13 [2025-03-02 23:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:25:03] Production.INFO: count ==21 [2025-03-02 23:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594469') start [2025-03-02 23:25:03] Production.INFO: Date 2025-02-19 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:03] Production.INFO: Date 2025-02-20 [2025-03-02 23:25:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594469') end [2025-03-02 23:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:25:04] Production.INFO: 1 [2025-03-02 23:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:25:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: ==15758== Releasing lock... [2025-03-02 23:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:25:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.ERROR: done [2025-03-02 23:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:25:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.ERROR: done [2025-03-02 23:25:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:25:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:25:04] Production.INFO: Total Charge 0 [2025-03-02 23:25:04] Production.INFO: CreateAllLog End [2025-03-02 23:25:04] Production.INFO: Account Balance End. [2025-03-02 23:25:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:25:04] Production.INFO: ==15754== Releasing lock... [2025-03-02 23:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:25:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:25:12] Production.ERROR: CronJobId end10 [2025-03-02 23:25:12] Production.INFO: ==15752== Releasing lock... [2025-03-02 23:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:25:14] Production.INFO: call_cost start [2025-03-02 23:25:14] Production.INFO: call_cost end [2025-03-02 23:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:25:14] Production.INFO: ==15748== Releasing lock... [2025-03-02 23:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:25:16] Production.INFO: count ==1335 [2025-03-02 23:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594470', 'tblTempUsageDetail_20' ) start [2025-03-02 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594470', 'tblTempUsageDetail_20' ) end [2025-03-02 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594470', 'tblTempVendorCDR_20' ) start [2025-03-02 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594470', 'tblTempVendorCDR_20' ) end [2025-03-02 23:25:16] Production.INFO: ProcessCDR(1,14594470,1,1,2) [2025-03-02 23:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594470', 'tblTempUsageDetail_20' ) start [2025-03-02 23:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594470', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:25:24] Production.INFO: ==15756== Releasing lock... [2025-03-02 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:25:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:26:01] Production.INFO: ==15832== Lock acquired, processing the job... [2025-03-03 04:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:26:01] Production.INFO: neon service started [2025-03-03 04:26:01] Production.INFO: neon service started [2025-03-03 04:26:01] Production.INFO: ==15832== Releasing lock... [2025-03-03 04:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:26:02] Production.INFO: ==15835== Lock acquired, processing the job... [2025-03-02 23:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:26:02] Production.INFO: ==15835== Releasing lock... [2025-03-02 23:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:26:02] Production.INFO: ==15837== Lock acquired, processing the job... [2025-03-03 04:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:26:02] Production.INFO: ==15837== Releasing lock... [2025-03-03 04:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:26:03] Production.INFO: ==15839== Lock acquired, processing the job... [2025-03-02 23:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:26:03] Production.INFO: ==15845== Lock acquired, processing the job... [2025-03-02 23:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:26:03] Production.INFO: ==15849== Lock acquired, processing the job... [2025-03-02 23:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:26:04] Production.INFO: ==15841== Lock acquired, processing the job... [2025-03-02 23:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:26:04] Production.INFO: ==15843== Lock acquired, processing the job... [2025-03-02 23:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:26:04] Production.INFO: ==15847== Lock acquired, processing the job... [2025-03-02 23:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:26:04] Production.INFO: Account Balance Start. [2025-03-02 23:26:04] Production.INFO: CreateAllLog Start [2025-03-02 23:26:04] Production.INFO: 117 [2025-03-02 23:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:26:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:26:04] Production.INFO: count ==13 [2025-03-02 23:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:26:04] Production.INFO: count ==21 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594472') start [2025-03-02 23:26:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594472') end [2025-03-02 23:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:26:04] Production.INFO: 1 [2025-03-02 23:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:26:04] Production.INFO: ==15849== Releasing lock... [2025-03-02 23:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:26:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.ERROR: done [2025-03-02 23:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:26:04] Production.INFO: ==15841== Releasing lock... [2025-03-02 23:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:26:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.ERROR: done [2025-03-02 23:26:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:26:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:26:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:26:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:26:05] Production.INFO: Total Charge 0 [2025-03-02 23:26:05] Production.INFO: CreateAllLog End [2025-03-02 23:26:05] Production.INFO: Account Balance End. [2025-03-02 23:26:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:26:05] Production.INFO: ==15845== Releasing lock... [2025-03-02 23:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:26:12] Production.ERROR: CronJobId end10 [2025-03-02 23:26:12] Production.INFO: ==15843== Releasing lock... [2025-03-02 23:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:26:15] Production.INFO: call_cost start [2025-03-02 23:26:15] Production.INFO: call_cost end [2025-03-02 23:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:26:15] Production.INFO: ==15839== Releasing lock... [2025-03-02 23:26:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:26:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:26:16] Production.INFO: count ==1335 [2025-03-02 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594475', 'tblTempUsageDetail_20' ) start [2025-03-02 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594475', 'tblTempUsageDetail_20' ) end [2025-03-02 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594475', 'tblTempVendorCDR_20' ) start [2025-03-02 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594475', 'tblTempVendorCDR_20' ) end [2025-03-02 23:26:17] Production.INFO: ProcessCDR(1,14594475,1,1,2) [2025-03-02 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594475', 'tblTempUsageDetail_20' ) start [2025-03-02 23:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594475', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:26:25] Production.INFO: ==15847== Releasing lock... [2025-03-02 23:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:26:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:27:01] Production.INFO: ==15922== Lock acquired, processing the job... [2025-03-03 04:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:27:01] Production.INFO: neon service started [2025-03-03 04:27:01] Production.INFO: neon service started [2025-03-03 04:27:01] Production.INFO: ==15922== Releasing lock... [2025-03-03 04:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:27:01] Production.INFO: ==15924== Lock acquired, processing the job... [2025-03-02 23:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:27:02] Production.INFO: ==15924== Releasing lock... [2025-03-02 23:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:27:02] Production.INFO: ==15926== Lock acquired, processing the job... [2025-03-03 04:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:27:02] Production.INFO: ==15926== Releasing lock... [2025-03-03 04:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:27:02] Production.INFO: ==15936== Lock acquired, processing the job... [2025-03-02 23:27:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:27:02] Production.INFO: ==15934== Lock acquired, processing the job... [2025-03-02 23:27:02] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:27:03] Production.INFO: ==15928== Lock acquired, processing the job... [2025-03-02 23:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:27:03] Production.INFO: Account Balance Start. [2025-03-02 23:27:03] Production.INFO: CreateAllLog Start [2025-03-02 23:27:03] Production.INFO: 117 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: ==15930== Lock acquired, processing the job... [2025-03-02 23:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:27:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: ==15932== Lock acquired, processing the job... [2025-03-02 23:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:27:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: ==15939== Lock acquired, processing the job... [2025-03-02 23:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:27:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:27:03] Production.ERROR: done [2025-03-02 23:27:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:27:03] Production.INFO: count ==13 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:27:03] Production.INFO: count ==21 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594479') start [2025-03-02 23:27:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.ERROR: done [2025-03-02 23:27:03] Production.INFO: ==15930== Releasing lock... [2025-03-02 23:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594479') end [2025-03-02 23:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:27:03] Production.INFO: 1 [2025-03-02 23:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:27:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:27:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:27:03] Production.INFO: ==15939== Releasing lock... [2025-03-02 23:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:27:03] Production.INFO: Date 2025-02-18 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-19 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-20 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-21 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-22 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-23 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-24 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-25 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-26 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-27 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-02-28 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-03-01 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Date 2025-03-02 [2025-03-02 23:27:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:27:03] Production.INFO: Total Charge 0 [2025-03-02 23:27:04] Production.INFO: CreateAllLog End [2025-03-02 23:27:04] Production.INFO: Account Balance End. [2025-03-02 23:27:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:27:04] Production.INFO: ==15934== Releasing lock... [2025-03-02 23:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:27:11] Production.ERROR: CronJobId end10 [2025-03-02 23:27:11] Production.INFO: ==15932== Releasing lock... [2025-03-02 23:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:27:13] Production.INFO: call_cost start [2025-03-02 23:27:13] Production.INFO: call_cost end [2025-03-02 23:27:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:27:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:27:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:27:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:27:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:27:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:27:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:27:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:27:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:27:13] Production.INFO: ==15928== Releasing lock... [2025-03-02 23:27:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:27:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:27:15] Production.INFO: count ==1335 [2025-03-02 23:27:15] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:27:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:27:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594480', 'tblTempUsageDetail_20' ) start [2025-03-02 23:27:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594480', 'tblTempUsageDetail_20' ) end [2025-03-02 23:27:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594480', 'tblTempVendorCDR_20' ) start [2025-03-02 23:27:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594480', 'tblTempVendorCDR_20' ) end [2025-03-02 23:27:15] Production.INFO: ProcessCDR(1,14594480,1,1,2) [2025-03-02 23:27:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594480', 'tblTempUsageDetail_20' ) start [2025-03-02 23:27:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594480', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:27:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:27:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:27:23] Production.INFO: ==15936== Releasing lock... [2025-03-02 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:27:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:28:01] Production.INFO: ==16005== Lock acquired, processing the job... [2025-03-03 04:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:28:01] Production.INFO: neon service started [2025-03-03 04:28:01] Production.INFO: neon service started [2025-03-03 04:28:01] Production.INFO: ==16005== Releasing lock... [2025-03-03 04:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:28:02] Production.INFO: ==16007== Lock acquired, processing the job... [2025-03-02 23:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:28:02] Production.INFO: ==16007== Releasing lock... [2025-03-02 23:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:28:02] Production.INFO: ==16009== Lock acquired, processing the job... [2025-03-03 04:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:28:02] Production.INFO: ==16009== Releasing lock... [2025-03-03 04:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:28:03] Production.INFO: ==16019== Lock acquired, processing the job... [2025-03-02 23:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:28:03] Production.INFO: ==16015== Lock acquired, processing the job... [2025-03-02 23:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:28:03] Production.INFO: ==16011== Lock acquired, processing the job... [2025-03-02 23:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:28:03] Production.INFO: ==16013== Lock acquired, processing the job... [2025-03-02 23:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:28:03] Production.INFO: ==16017== Lock acquired, processing the job... [2025-03-02 23:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:28:03] Production.INFO: ==16022== Lock acquired, processing the job... [2025-03-02 23:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:28:03] Production.INFO: Account Balance Start. [2025-03-02 23:28:03] Production.INFO: CreateAllLog Start [2025-03-02 23:28:03] Production.INFO: 117 [2025-03-02 23:28:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:28:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:28:03] Production.INFO: count ==13 [2025-03-02 23:28:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:28:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:28:03] Production.INFO: count ==21 [2025-03-02 23:28:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594483') start [2025-03-02 23:28:04] Production.ERROR: done [2025-03-02 23:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594483') end [2025-03-02 23:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:28:04] Production.INFO: 1 [2025-03-02 23:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:28:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: ==16022== Releasing lock... [2025-03-02 23:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:28:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.ERROR: done [2025-03-02 23:28:04] Production.INFO: ==16013== Releasing lock... [2025-03-02 23:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:28:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:28:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:28:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:28:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:28:05] Production.INFO: Total Charge 0 [2025-03-02 23:28:05] Production.INFO: CreateAllLog End [2025-03-02 23:28:05] Production.INFO: Account Balance End. [2025-03-02 23:28:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:28:05] Production.INFO: ==16017== Releasing lock... [2025-03-02 23:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:28:12] Production.ERROR: CronJobId end10 [2025-03-02 23:28:12] Production.INFO: ==16015== Releasing lock... [2025-03-02 23:28:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:28:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:28:14] Production.INFO: call_cost start [2025-03-02 23:28:14] Production.INFO: call_cost end [2025-03-02 23:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:28:14] Production.INFO: ==16011== Releasing lock... [2025-03-02 23:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:28:16] Production.INFO: count ==1335 [2025-03-02 23:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594485', 'tblTempUsageDetail_20' ) start [2025-03-02 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594485', 'tblTempUsageDetail_20' ) end [2025-03-02 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594485', 'tblTempVendorCDR_20' ) start [2025-03-02 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594485', 'tblTempVendorCDR_20' ) end [2025-03-02 23:28:16] Production.INFO: ProcessCDR(1,14594485,1,1,2) [2025-03-02 23:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594485', 'tblTempUsageDetail_20' ) start [2025-03-02 23:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594485', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:28:24] Production.INFO: ==16019== Releasing lock... [2025-03-02 23:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:28:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:29:02] Production.INFO: ==16094== Lock acquired, processing the job... [2025-03-03 04:29:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:29:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:29:02] Production.INFO: neon service started [2025-03-03 04:29:02] Production.INFO: neon service started [2025-03-03 04:29:02] Production.INFO: ==16094== Releasing lock... [2025-03-03 04:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:29:03] Production.INFO: ==16096== Lock acquired, processing the job... [2025-03-02 23:29:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:29:03] Production.INFO: ==16098== Lock acquired, processing the job... [2025-03-03 04:29:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:29:03] Production.INFO: ==16098== Releasing lock... [2025-03-03 04:29:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:29:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:29:03] Production.INFO: ==16096== Releasing lock... [2025-03-02 23:29:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:29:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:29:04] Production.INFO: ==16107== Lock acquired, processing the job... [2025-03-02 23:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:29:04] Production.INFO: ==16111== Lock acquired, processing the job... [2025-03-02 23:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:29:04] Production.INFO: Account Balance Start. [2025-03-02 23:29:04] Production.INFO: CreateAllLog Start [2025-03-02 23:29:04] Production.INFO: 117 [2025-03-02 23:29:04] Production.INFO: ==16101== Lock acquired, processing the job... [2025-03-02 23:29:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:29:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:29:04] Production.INFO: count ==13 [2025-03-02 23:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:29:04] Production.INFO: count ==21 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594487') start [2025-03-02 23:29:04] Production.INFO: ==16103== Lock acquired, processing the job... [2025-03-02 23:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:29:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594487') end [2025-03-02 23:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:29:04] Production.INFO: 1 [2025-03-02 23:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:29:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.INFO: ==16109== Lock acquired, processing the job... [2025-03-02 23:29:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:29:04] Production.INFO: ==16105== Lock acquired, processing the job... [2025-03-02 23:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:29:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:29:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.INFO: ==16111== Releasing lock... [2025-03-02 23:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:29:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:29:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:04] Production.INFO: ==16103== Releasing lock... [2025-03-02 23:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:29:05] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:29:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:29:05] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:29:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:29:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.ERROR: done [2025-03-02 23:29:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.ERROR: done [2025-03-02 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:29:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:29:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:29:05] Production.INFO: Total Charge 0 [2025-03-02 23:29:05] Production.INFO: CreateAllLog End [2025-03-02 23:29:05] Production.INFO: Account Balance End. [2025-03-02 23:29:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:29:05] Production.INFO: ==16107== Releasing lock... [2025-03-02 23:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:29:12] Production.ERROR: CronJobId end10 [2025-03-02 23:29:12] Production.INFO: ==16105== Releasing lock... [2025-03-02 23:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:29:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:29:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:29:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:29:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:29:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:29:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:29:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:29:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:29:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:29:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:29:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:29:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:29:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:29:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:29:15] Production.INFO: call_cost start [2025-03-02 23:29:15] Production.INFO: call_cost end [2025-03-02 23:29:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:29:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:29:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:29:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:29:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:29:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:29:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:29:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:29:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:29:15] Production.INFO: ==16101== Releasing lock... [2025-03-02 23:29:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:29:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:29:17] Production.INFO: count ==1335 [2025-03-02 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594490', 'tblTempUsageDetail_20' ) start [2025-03-02 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594490', 'tblTempUsageDetail_20' ) end [2025-03-02 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594490', 'tblTempVendorCDR_20' ) start [2025-03-02 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594490', 'tblTempVendorCDR_20' ) end [2025-03-02 23:29:17] Production.INFO: ProcessCDR(1,14594490,1,1,2) [2025-03-02 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594490', 'tblTempUsageDetail_20' ) start [2025-03-02 23:29:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594490', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:29:24] Production.INFO: ==16109== Releasing lock... [2025-03-02 23:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:30:01] Production.INFO: ==16171== Lock acquired, processing the job... [2025-03-03 04:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:30:01] Production.INFO: neon service started [2025-03-03 04:30:01] Production.INFO: neon service started [2025-03-03 04:30:01] Production.INFO: ==16171== Releasing lock... [2025-03-03 04:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:30:02] Production.INFO: ==16173== Lock acquired, processing the job... [2025-03-02 23:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:30:02] Production.INFO: ==16175== Lock acquired, processing the job... [2025-03-03 04:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:30:02] Production.INFO: ==16175== Releasing lock... [2025-03-03 04:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:30:02] Production.INFO: ==16173== Releasing lock... [2025-03-02 23:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:30:03] Production.INFO: ==16182== Lock acquired, processing the job... [2025-03-02 23:30:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:30:04] Production.INFO: ==16188== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:30:04] Production.INFO: ==16178== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 23:30:04] Production.INFO: ==16192== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:30:04] Production.INFO: ==16180== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:30:04] Production.ERROR: CronJob PID - 16180 [2025-03-02 23:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 23:30:04] Production.ERROR: CronJob ID - 5 [2025-03-02 23:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:30:00 [2025-03-02 23:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:30:04] Production.ERROR: CronJob PID - 16182 [2025-03-02 23:30:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 23:30:04] Production.ERROR: CronJob ID - 7 [2025-03-02 23:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:30:00 [2025-03-02 23:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:30:04] Production.ERROR: CronJob PID - 16188 [2025-03-02 23:30:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-02 23:30:04] Production.ERROR: CronJob ID - 16 [2025-03-02 23:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:30:00 [2025-03-02 23:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:30:04] Production.ERROR: CronJob PID - 16192 [2025-03-02 23:30:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-02 23:30:04] Production.ERROR: CronJob ID - 19 [2025-03-02 23:30:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:30:00 [2025-03-02 23:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:30:04] Production.INFO: ==16184== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:30:04] Production.INFO: ==16186== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:30:04] Production.INFO: count ==13 [2025-03-02 23:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:30:04] Production.INFO: count ==21 [2025-03-02 23:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594492') start [2025-03-02 23:30:04] Production.INFO: ==16190== Lock acquired, processing the job... [2025-03-02 23:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 23:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 23:30:04] Production.INFO: ==16178== Releasing lock... [2025-03-02 23:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 23:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:30:04] Production.INFO: Account Balance Start. [2025-03-02 23:30:04] Production.INFO: CreateAllLog Start [2025-03-02 23:30:04] Production.INFO: 117 [2025-03-02 23:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:30:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594492') end [2025-03-02 23:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:30:04] Production.INFO: 1 [2025-03-02 23:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:04] Production.INFO: ==16192== Releasing lock... [2025-03-02 23:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:30:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:04] Production.INFO: ==16182== Releasing lock... [2025-03-02 23:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:30:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:04] Production.ERROR: done [2025-03-02 23:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:30:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:30:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-14 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.ERROR: done [2025-03-02 23:30:05] Production.ERROR: done [2025-03-02 23:30:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 23:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594496', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 23:30:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:30:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:30:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:30:05] Production.INFO: Total Charge 0 [2025-03-02 23:30:05] Production.INFO: CreateAllLog End [2025-03-02 23:30:05] Production.INFO: Account Balance End. [2025-03-02 23:30:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:30:05] Production.INFO: ==16186== Releasing lock... [2025-03-02 23:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:30:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594496', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 23:30:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 23:30:08] Production.INFO: ProcessCDR(1,14594496,1,1,2) [2025-03-02 23:30:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594496,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594496,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 23:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 23:30:09] Production.INFO: ==16190== Releasing lock... [2025-03-02 23:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 23:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:30:15] Production.ERROR: CronJobId end10 [2025-03-02 23:30:15] Production.INFO: ==16184== Releasing lock... [2025-03-02 23:30:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:30:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:30:17] Production.INFO: count ==1335 [2025-03-02 23:30:17] Production.INFO: call_cost start [2025-03-02 23:30:17] Production.INFO: call_cost end [2025-03-02 23:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:30:17] Production.INFO: ==16180== Releasing lock... [2025-03-02 23:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594495', 'tblTempUsageDetail_20' ) start [2025-03-02 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594495', 'tblTempUsageDetail_20' ) end [2025-03-02 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594495', 'tblTempVendorCDR_20' ) start [2025-03-02 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594495', 'tblTempVendorCDR_20' ) end [2025-03-02 23:30:17] Production.INFO: ProcessCDR(1,14594495,1,1,2) [2025-03-02 23:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594495', 'tblTempUsageDetail_20' ) start [2025-03-02 23:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594495', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:30:25] Production.INFO: ==16188== Releasing lock... [2025-03-02 23:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:30:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:31:02] Production.INFO: ==16248== Lock acquired, processing the job... [2025-03-03 04:31:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:31:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:31:02] Production.INFO: neon service started [2025-03-03 04:31:02] Production.INFO: neon service started [2025-03-03 04:31:02] Production.INFO: ==16248== Releasing lock... [2025-03-03 04:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:31:02] Production.INFO: ==16250== Lock acquired, processing the job... [2025-03-02 23:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:31:03] Production.INFO: ==16250== Releasing lock... [2025-03-02 23:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:31:03] Production.INFO: ==16252== Lock acquired, processing the job... [2025-03-03 04:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:31:03] Production.INFO: ==16252== Releasing lock... [2025-03-03 04:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:31:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:31:03] Production.INFO: ==16254== Lock acquired, processing the job... [2025-03-02 23:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:31:04] Production.INFO: ==16265== Lock acquired, processing the job... [2025-03-02 23:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:31:04] Production.INFO: ==16256== Lock acquired, processing the job... [2025-03-02 23:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:31:04] Production.INFO: ==16258== Lock acquired, processing the job... [2025-03-02 23:31:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:31:04] Production.INFO: ==16260== Lock acquired, processing the job... [2025-03-02 23:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:31:04] Production.INFO: count ==13 [2025-03-02 23:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:31:04] Production.INFO: count ==21 [2025-03-02 23:31:04] Production.INFO: ==16262== Lock acquired, processing the job... [2025-03-02 23:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:31:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:31:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:31:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594498') start [2025-03-02 23:31:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594498') end [2025-03-02 23:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:31:04] Production.INFO: 1 [2025-03-02 23:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:31:04] Production.INFO: Account Balance Start. [2025-03-02 23:31:04] Production.INFO: CreateAllLog Start [2025-03-02 23:31:04] Production.INFO: 117 [2025-03-02 23:31:04] Production.INFO: ==16265== Releasing lock... [2025-03-02 23:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:31:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:04] Production.INFO: ==16256== Releasing lock... [2025-03-02 23:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:31:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:04] Production.ERROR: done [2025-03-02 23:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:31:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:04] Production.ERROR: done [2025-03-02 23:31:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:31:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-12 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:31:05] Production.INFO: Date 2025-02-13 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-14 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:31:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:31:05] Production.INFO: Total Charge 0 [2025-03-02 23:31:05] Production.INFO: CreateAllLog End [2025-03-02 23:31:05] Production.INFO: Account Balance End. [2025-03-02 23:31:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:31:05] Production.INFO: ==16260== Releasing lock... [2025-03-02 23:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:31:12] Production.ERROR: CronJobId end10 [2025-03-02 23:31:12] Production.INFO: ==16258== Releasing lock... [2025-03-02 23:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:31:14] Production.INFO: call_cost start [2025-03-02 23:31:14] Production.INFO: call_cost end [2025-03-02 23:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:31:14] Production.INFO: ==16254== Releasing lock... [2025-03-02 23:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:31:17] Production.INFO: count ==1335 [2025-03-02 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594501', 'tblTempUsageDetail_20' ) start [2025-03-02 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594501', 'tblTempUsageDetail_20' ) end [2025-03-02 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594501', 'tblTempVendorCDR_20' ) start [2025-03-02 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594501', 'tblTempVendorCDR_20' ) end [2025-03-02 23:31:17] Production.INFO: ProcessCDR(1,14594501,1,1,2) [2025-03-02 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594501', 'tblTempUsageDetail_20' ) start [2025-03-02 23:31:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594501', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:31:24] Production.INFO: ==16262== Releasing lock... [2025-03-02 23:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:31:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:32:01] Production.INFO: ==16320== Lock acquired, processing the job... [2025-03-03 04:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:32:01] Production.INFO: neon service started [2025-03-03 04:32:01] Production.INFO: neon service started [2025-03-03 04:32:01] Production.INFO: ==16320== Releasing lock... [2025-03-03 04:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:32:02] Production.INFO: ==16322== Lock acquired, processing the job... [2025-03-02 23:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:32:02] Production.INFO: ==16322== Releasing lock... [2025-03-02 23:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:32:02] Production.INFO: ==16324== Lock acquired, processing the job... [2025-03-03 04:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:32:02] Production.INFO: ==16324== Releasing lock... [2025-03-03 04:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:32:03] Production.INFO: ==16327== Lock acquired, processing the job... [2025-03-02 23:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:32:03] Production.INFO: ==16329== Lock acquired, processing the job... [2025-03-02 23:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:32:03] Production.INFO: ==16333== Lock acquired, processing the job... [2025-03-02 23:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:32:03] Production.INFO: Account Balance Start. [2025-03-02 23:32:03] Production.INFO: CreateAllLog Start [2025-03-02 23:32:03] Production.INFO: 117 [2025-03-02 23:32:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:32:03] Production.INFO: ==16331== Lock acquired, processing the job... [2025-03-02 23:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:03] Production.INFO: ==16337== Lock acquired, processing the job... [2025-03-02 23:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:32:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:03] Production.INFO: ==16335== Lock acquired, processing the job... [2025-03-02 23:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:32:03] Production.INFO: ==16329== Releasing lock... [2025-03-02 23:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:32:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:32:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:32:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:32:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:32:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: count ==13 [2025-03-02 23:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:32:04] Production.INFO: count ==21 [2025-03-02 23:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594505') start [2025-03-02 23:32:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594505') end [2025-03-02 23:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:32:04] Production.INFO: 1 [2025-03-02 23:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:32:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: ==16337== Releasing lock... [2025-03-02 23:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:32:04] Production.ERROR: done [2025-03-02 23:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:32:04] Production.ERROR: done [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:32:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:32:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:32:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:32:05] Production.INFO: Total Charge 0 [2025-03-02 23:32:05] Production.INFO: CreateAllLog End [2025-03-02 23:32:05] Production.INFO: Account Balance End. [2025-03-02 23:32:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:32:05] Production.INFO: ==16333== Releasing lock... [2025-03-02 23:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:32:11] Production.ERROR: CronJobId end10 [2025-03-02 23:32:11] Production.INFO: ==16331== Releasing lock... [2025-03-02 23:32:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:32:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:32:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:32:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:32:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:32:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:32:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:32:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:32:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:32:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:32:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:32:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:32:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:32:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:32:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:32:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:32:14] Production.INFO: call_cost start [2025-03-02 23:32:14] Production.INFO: call_cost end [2025-03-02 23:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:32:14] Production.INFO: ==16327== Releasing lock... [2025-03-02 23:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:32:16] Production.INFO: count ==1335 [2025-03-02 23:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594506', 'tblTempUsageDetail_20' ) start [2025-03-02 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594506', 'tblTempUsageDetail_20' ) end [2025-03-02 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594506', 'tblTempVendorCDR_20' ) start [2025-03-02 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594506', 'tblTempVendorCDR_20' ) end [2025-03-02 23:32:16] Production.INFO: ProcessCDR(1,14594506,1,1,2) [2025-03-02 23:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594506', 'tblTempUsageDetail_20' ) start [2025-03-02 23:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594506', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:32:24] Production.INFO: ==16335== Releasing lock... [2025-03-02 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:32:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:33:02] Production.INFO: ==16394== Lock acquired, processing the job... [2025-03-03 04:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:33:02] Production.INFO: neon service started [2025-03-03 04:33:02] Production.INFO: neon service started [2025-03-03 04:33:02] Production.INFO: ==16394== Releasing lock... [2025-03-03 04:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:33:02] Production.INFO: ==16398== Lock acquired, processing the job... [2025-03-03 04:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:33:02] Production.INFO: ==16398== Releasing lock... [2025-03-03 04:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:33:02] Production.INFO: ==16396== Lock acquired, processing the job... [2025-03-02 23:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:33:02] Production.INFO: ==16396== Releasing lock... [2025-03-02 23:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:33:03] Production.INFO: ==16402== Lock acquired, processing the job... [2025-03-02 23:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:33:03] Production.INFO: ==16400== Lock acquired, processing the job... [2025-03-02 23:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:33:03] Production.INFO: ==16408== Lock acquired, processing the job... [2025-03-02 23:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:33:04] Production.INFO: ==16404== Lock acquired, processing the job... [2025-03-02 23:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:33:04] Production.INFO: ==16402== Releasing lock... [2025-03-02 23:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:33:04] Production.INFO: ==16406== Lock acquired, processing the job... [2025-03-02 23:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:33:04] Production.INFO: ==16410== Lock acquired, processing the job... [2025-03-02 23:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:33:04] Production.ERROR: done [2025-03-02 23:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:33:04] Production.INFO: Account Balance Start. [2025-03-02 23:33:04] Production.INFO: CreateAllLog Start [2025-03-02 23:33:04] Production.INFO: 117 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: count ==13 [2025-03-02 23:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:33:04] Production.INFO: count ==21 [2025-03-02 23:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594509') start [2025-03-02 23:33:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.ERROR: done [2025-03-02 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:33:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594509') end [2025-03-02 23:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:33:04] Production.INFO: 1 [2025-03-02 23:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:33:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: ==16410== Releasing lock... [2025-03-02 23:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:33:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:33:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:33:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:33:05] Production.INFO: Total Charge 0 [2025-03-02 23:33:05] Production.INFO: CreateAllLog End [2025-03-02 23:33:05] Production.INFO: Account Balance End. [2025-03-02 23:33:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:33:05] Production.INFO: ==16406== Releasing lock... [2025-03-02 23:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:33:12] Production.ERROR: CronJobId end10 [2025-03-02 23:33:12] Production.INFO: ==16404== Releasing lock... [2025-03-02 23:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:33:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:33:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:33:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:33:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:33:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:33:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:33:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:33:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:33:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:33:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:33:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:33:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:33:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:33:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:33:14] Production.INFO: call_cost start [2025-03-02 23:33:14] Production.INFO: call_cost end [2025-03-02 23:33:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:33:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:33:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:33:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:33:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:33:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:33:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:33:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:33:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:33:14] Production.INFO: ==16400== Releasing lock... [2025-03-02 23:33:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:33:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:33:16] Production.INFO: count ==1335 [2025-03-02 23:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594511', 'tblTempUsageDetail_20' ) start [2025-03-02 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594511', 'tblTempUsageDetail_20' ) end [2025-03-02 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594511', 'tblTempVendorCDR_20' ) start [2025-03-02 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594511', 'tblTempVendorCDR_20' ) end [2025-03-02 23:33:16] Production.INFO: ProcessCDR(1,14594511,1,1,2) [2025-03-02 23:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594511', 'tblTempUsageDetail_20' ) start [2025-03-02 23:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594511', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:33:24] Production.INFO: ==16408== Releasing lock... [2025-03-02 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:34:01] Production.INFO: ==16509== Lock acquired, processing the job... [2025-03-03 04:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:34:01] Production.INFO: neon service started [2025-03-03 04:34:01] Production.INFO: neon service started [2025-03-03 04:34:01] Production.INFO: ==16509== Releasing lock... [2025-03-03 04:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:34:02] Production.INFO: ==16511== Lock acquired, processing the job... [2025-03-02 23:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:34:02] Production.INFO: ==16511== Releasing lock... [2025-03-02 23:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:34:02] Production.INFO: ==16513== Lock acquired, processing the job... [2025-03-03 04:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:34:02] Production.INFO: ==16513== Releasing lock... [2025-03-03 04:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:34:03] Production.INFO: ==16517== Lock acquired, processing the job... [2025-03-02 23:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:34:03] Production.INFO: ==16515== Lock acquired, processing the job... [2025-03-02 23:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:34:03] Production.INFO: ==16526== Lock acquired, processing the job... [2025-03-02 23:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:34:03] Production.INFO: ==16521== Lock acquired, processing the job... [2025-03-02 23:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:34:03] Production.INFO: ==16519== Lock acquired, processing the job... [2025-03-02 23:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:34:03] Production.INFO: ==16524== Lock acquired, processing the job... [2025-03-02 23:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:34:03] Production.INFO: Account Balance Start. [2025-03-02 23:34:03] Production.INFO: CreateAllLog Start [2025-03-02 23:34:03] Production.INFO: 117 [2025-03-02 23:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:34:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.INFO: count ==13 [2025-03-02 23:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:34:03] Production.INFO: count ==21 [2025-03-02 23:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594515') start [2025-03-02 23:34:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.INFO: ==16517== Releasing lock... [2025-03-02 23:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:34:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:34:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594515') end [2025-03-02 23:34:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:34:03] Production.INFO: 1 [2025-03-02 23:34:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:34:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:34:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:03] Production.INFO: ==16526== Releasing lock... [2025-03-02 23:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:34:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:34:04] Production.ERROR: done [2025-03-02 23:34:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.ERROR: done [2025-03-02 23:34:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:34:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:34:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:34:04] Production.INFO: Total Charge 0 [2025-03-02 23:34:04] Production.INFO: CreateAllLog End [2025-03-02 23:34:04] Production.INFO: Account Balance End. [2025-03-02 23:34:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:34:04] Production.INFO: ==16521== Releasing lock... [2025-03-02 23:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:34:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:34:12] Production.ERROR: CronJobId end10 [2025-03-02 23:34:12] Production.INFO: ==16519== Releasing lock... [2025-03-02 23:34:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:34:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:34:14] Production.INFO: call_cost start [2025-03-02 23:34:14] Production.INFO: call_cost end [2025-03-02 23:34:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:34:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:34:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:34:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:34:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:34:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:34:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:34:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:34:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:34:14] Production.INFO: ==16515== Releasing lock... [2025-03-02 23:34:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:34:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:34:16] Production.INFO: count ==1335 [2025-03-02 23:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594516', 'tblTempUsageDetail_20' ) start [2025-03-02 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594516', 'tblTempUsageDetail_20' ) end [2025-03-02 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594516', 'tblTempVendorCDR_20' ) start [2025-03-02 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594516', 'tblTempVendorCDR_20' ) end [2025-03-02 23:34:16] Production.INFO: ProcessCDR(1,14594516,1,1,2) [2025-03-02 23:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594516', 'tblTempUsageDetail_20' ) start [2025-03-02 23:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594516', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:34:24] Production.INFO: ==16524== Releasing lock... [2025-03-02 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:34:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:35:02] Production.INFO: ==16590== Lock acquired, processing the job... [2025-03-03 04:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:35:02] Production.INFO: neon service started [2025-03-03 04:35:02] Production.INFO: neon service started [2025-03-03 04:35:02] Production.INFO: ==16590== Releasing lock... [2025-03-03 04:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:35:02] Production.INFO: ==16594== Lock acquired, processing the job... [2025-03-03 04:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:35:02] Production.INFO: ==16594== Releasing lock... [2025-03-03 04:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:35:02] Production.INFO: ==16592== Lock acquired, processing the job... [2025-03-02 23:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:35:02] Production.INFO: ==16592== Releasing lock... [2025-03-02 23:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:35:03] Production.INFO: ==16596== Lock acquired, processing the job... [2025-03-02 23:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:35:03] Production.INFO: ==16598== Lock acquired, processing the job... [2025-03-02 23:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:35:03] Production.INFO: ==16603== Lock acquired, processing the job... [2025-03-02 23:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:35:03] Production.INFO: Account Balance Start. [2025-03-02 23:35:03] Production.INFO: CreateAllLog Start [2025-03-02 23:35:03] Production.INFO: 117 [2025-03-02 23:35:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:35:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: ==16601== Lock acquired, processing the job... [2025-03-02 23:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:35:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:35:04] Production.INFO: ==16605== Lock acquired, processing the job... [2025-03-02 23:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:35:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: ==16607== Lock acquired, processing the job... [2025-03-02 23:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:35:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:35:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:35:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: count ==13 [2025-03-02 23:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:35:04] Production.INFO: ==16598== Releasing lock... [2025-03-02 23:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:35:04] Production.INFO: count ==21 [2025-03-02 23:35:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594520') start [2025-03-02 23:35:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.ERROR: done [2025-03-02 23:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594520') end [2025-03-02 23:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:35:04] Production.INFO: 1 [2025-03-02 23:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:35:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: ==16607== Releasing lock... [2025-03-02 23:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:35:04] Production.ERROR: done [2025-03-02 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:35:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:35:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:35:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:35:05] Production.INFO: Total Charge 0 [2025-03-02 23:35:05] Production.INFO: CreateAllLog End [2025-03-02 23:35:05] Production.INFO: Account Balance End. [2025-03-02 23:35:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:35:05] Production.INFO: ==16603== Releasing lock... [2025-03-02 23:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:35:12] Production.ERROR: CronJobId end10 [2025-03-02 23:35:12] Production.INFO: ==16601== Releasing lock... [2025-03-02 23:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:35:15] Production.INFO: call_cost start [2025-03-02 23:35:15] Production.INFO: call_cost end [2025-03-02 23:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:35:15] Production.INFO: ==16596== Releasing lock... [2025-03-02 23:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:35:16] Production.INFO: count ==1335 [2025-03-02 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594521', 'tblTempUsageDetail_20' ) start [2025-03-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594521', 'tblTempUsageDetail_20' ) end [2025-03-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594521', 'tblTempVendorCDR_20' ) start [2025-03-02 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594521', 'tblTempVendorCDR_20' ) end [2025-03-02 23:35:17] Production.INFO: ProcessCDR(1,14594521,1,1,2) [2025-03-02 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594521', 'tblTempUsageDetail_20' ) start [2025-03-02 23:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594521', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:35:24] Production.INFO: ==16605== Releasing lock... [2025-03-02 23:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:35:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:36:01] Production.INFO: ==16680== Lock acquired, processing the job... [2025-03-03 04:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:36:01] Production.INFO: neon service started [2025-03-03 04:36:01] Production.INFO: neon service started [2025-03-03 04:36:01] Production.INFO: ==16680== Releasing lock... [2025-03-03 04:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:36:02] Production.INFO: ==16682== Lock acquired, processing the job... [2025-03-02 23:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:36:02] Production.INFO: ==16682== Releasing lock... [2025-03-02 23:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:36:02] Production.INFO: ==16684== Lock acquired, processing the job... [2025-03-03 04:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:36:02] Production.INFO: ==16684== Releasing lock... [2025-03-03 04:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:36:03] Production.INFO: ==16691== Lock acquired, processing the job... [2025-03-02 23:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:36:03] Production.INFO: ==16693== Lock acquired, processing the job... [2025-03-02 23:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:36:03] Production.INFO: ==16687== Lock acquired, processing the job... [2025-03-02 23:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:36:03] Production.INFO: Account Balance Start. [2025-03-02 23:36:03] Production.INFO: CreateAllLog Start [2025-03-02 23:36:03] Production.INFO: 117 [2025-03-02 23:36:03] Production.INFO: ==16689== Lock acquired, processing the job... [2025-03-02 23:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:36:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:36:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:03] Production.INFO: ==16695== Lock acquired, processing the job... [2025-03-02 23:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:36:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:03] Production.INFO: ==16697== Lock acquired, processing the job... [2025-03-02 23:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:36:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:36:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:36:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:36:03] Production.INFO: count ==13 [2025-03-02 23:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:36:03] Production.INFO: count ==21 [2025-03-02 23:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594525') start [2025-03-02 23:36:03] Production.INFO: ==16689== Releasing lock... [2025-03-02 23:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:36:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:36:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594525') end [2025-03-02 23:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:36:04] Production.INFO: 1 [2025-03-02 23:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:36:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: ==16697== Releasing lock... [2025-03-02 23:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:36:04] Production.ERROR: done [2025-03-02 23:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.ERROR: done [2025-03-02 23:36:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:36:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:36:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:36:04] Production.INFO: Total Charge 0 [2025-03-02 23:36:04] Production.INFO: CreateAllLog End [2025-03-02 23:36:04] Production.INFO: Account Balance End. [2025-03-02 23:36:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:36:04] Production.INFO: ==16693== Releasing lock... [2025-03-02 23:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:36:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:36:12] Production.ERROR: CronJobId end10 [2025-03-02 23:36:12] Production.INFO: ==16691== Releasing lock... [2025-03-02 23:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:36:15] Production.INFO: call_cost start [2025-03-02 23:36:15] Production.INFO: call_cost end [2025-03-02 23:36:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:36:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:36:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:36:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:36:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:36:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:36:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:36:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:36:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:36:15] Production.INFO: ==16687== Releasing lock... [2025-03-02 23:36:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:36:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:36:16] Production.INFO: count ==1335 [2025-03-02 23:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594526', 'tblTempUsageDetail_20' ) start [2025-03-02 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594526', 'tblTempUsageDetail_20' ) end [2025-03-02 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594526', 'tblTempVendorCDR_20' ) start [2025-03-02 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594526', 'tblTempVendorCDR_20' ) end [2025-03-02 23:36:16] Production.INFO: ProcessCDR(1,14594526,1,1,2) [2025-03-02 23:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594526', 'tblTempUsageDetail_20' ) start [2025-03-02 23:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594526', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:36:24] Production.INFO: ==16695== Releasing lock... [2025-03-02 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:36:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:37:02] Production.INFO: ==16773== Lock acquired, processing the job... [2025-03-03 04:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:37:02] Production.INFO: neon service started [2025-03-03 04:37:02] Production.INFO: neon service started [2025-03-03 04:37:02] Production.INFO: ==16773== Releasing lock... [2025-03-03 04:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:37:02] Production.INFO: ==16776== Lock acquired, processing the job... [2025-03-02 23:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:37:02] Production.INFO: ==16776== Releasing lock... [2025-03-02 23:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:37:02] Production.INFO: ==16778== Lock acquired, processing the job... [2025-03-03 04:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:37:02] Production.INFO: ==16778== Releasing lock... [2025-03-03 04:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:37:03] Production.INFO: ==16790== Lock acquired, processing the job... [2025-03-02 23:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:37:03] Production.INFO: ==16784== Lock acquired, processing the job... [2025-03-02 23:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:37:03] Production.INFO: ==16780== Lock acquired, processing the job... [2025-03-02 23:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:37:03] Production.INFO: count ==13 [2025-03-02 23:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:37:03] Production.INFO: count ==21 [2025-03-02 23:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594527') start [2025-03-02 23:37:03] Production.INFO: ==16782== Lock acquired, processing the job... [2025-03-02 23:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594527') end [2025-03-02 23:37:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:37:03] Production.INFO: 1 [2025-03-02 23:37:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:37:03] Production.INFO: ==16786== Lock acquired, processing the job... [2025-03-02 23:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:37:03] Production.INFO: ==16788== Lock acquired, processing the job... [2025-03-02 23:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:37:04] Production.INFO: ==16790== Releasing lock... [2025-03-02 23:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:37:04] Production.INFO: Account Balance Start. [2025-03-02 23:37:04] Production.INFO: CreateAllLog Start [2025-03-02 23:37:04] Production.INFO: 117 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: ==16782== Releasing lock... [2025-03-02 23:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:37:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:37:04] Production.ERROR: done [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.ERROR: done [2025-03-02 23:37:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:37:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:37:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:37:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:37:05] Production.INFO: Total Charge 0 [2025-03-02 23:37:05] Production.INFO: CreateAllLog End [2025-03-02 23:37:05] Production.INFO: Account Balance End. [2025-03-02 23:37:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:37:05] Production.INFO: ==16786== Releasing lock... [2025-03-02 23:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:37:12] Production.ERROR: CronJobId end10 [2025-03-02 23:37:12] Production.INFO: ==16784== Releasing lock... [2025-03-02 23:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:37:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:37:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:37:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:37:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:37:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:37:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:37:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:37:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:37:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:37:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:37:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:37:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:37:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:37:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:37:14] Production.INFO: call_cost start [2025-03-02 23:37:14] Production.INFO: call_cost end [2025-03-02 23:37:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:37:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:37:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:37:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:37:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:37:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:37:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:37:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:37:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:37:14] Production.INFO: ==16780== Releasing lock... [2025-03-02 23:37:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:37:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:37:16] Production.INFO: count ==1335 [2025-03-02 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594531', 'tblTempUsageDetail_20' ) start [2025-03-02 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594531', 'tblTempUsageDetail_20' ) end [2025-03-02 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594531', 'tblTempVendorCDR_20' ) start [2025-03-02 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594531', 'tblTempVendorCDR_20' ) end [2025-03-02 23:37:17] Production.INFO: ProcessCDR(1,14594531,1,1,2) [2025-03-02 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594531', 'tblTempUsageDetail_20' ) start [2025-03-02 23:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594531', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:37:24] Production.INFO: ==16788== Releasing lock... [2025-03-02 23:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:37:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:38:01] Production.INFO: ==16862== Lock acquired, processing the job... [2025-03-03 04:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:38:01] Production.INFO: neon service started [2025-03-03 04:38:01] Production.INFO: neon service started [2025-03-03 04:38:01] Production.INFO: ==16862== Releasing lock... [2025-03-03 04:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:38:02] Production.INFO: ==16864== Lock acquired, processing the job... [2025-03-02 23:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:38:02] Production.INFO: ==16866== Lock acquired, processing the job... [2025-03-03 04:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:38:02] Production.INFO: ==16866== Releasing lock... [2025-03-03 04:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:38:02] Production.INFO: ==16864== Releasing lock... [2025-03-02 23:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:38:03] Production.INFO: ==16873== Lock acquired, processing the job... [2025-03-02 23:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:38:03] Production.INFO: ==16869== Lock acquired, processing the job... [2025-03-02 23:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:38:03] Production.INFO: ==16879== Lock acquired, processing the job... [2025-03-02 23:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:38:03] Production.INFO: ==16871== Lock acquired, processing the job... [2025-03-02 23:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:38:03] Production.INFO: ==16875== Lock acquired, processing the job... [2025-03-02 23:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:38:03] Production.INFO: ==16877== Lock acquired, processing the job... [2025-03-02 23:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:38:03] Production.INFO: Account Balance Start. [2025-03-02 23:38:03] Production.INFO: CreateAllLog Start [2025-03-02 23:38:03] Production.INFO: 117 [2025-03-02 23:38:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:38:03] Production.INFO: count ==13 [2025-03-02 23:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:38:03] Production.INFO: count ==21 [2025-03-02 23:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594533') start [2025-03-02 23:38:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:38:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: ==16871== Releasing lock... [2025-03-02 23:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:38:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594533') end [2025-03-02 23:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:38:04] Production.INFO: 1 [2025-03-02 23:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:38:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:38:04] Production.INFO: ==16879== Releasing lock... [2025-03-02 23:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:38:04] Production.ERROR: done [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.ERROR: done [2025-03-02 23:38:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:38:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:38:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:38:04] Production.INFO: Total Charge 0 [2025-03-02 23:38:04] Production.INFO: CreateAllLog End [2025-03-02 23:38:04] Production.INFO: Account Balance End. [2025-03-02 23:38:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:38:04] Production.INFO: ==16875== Releasing lock... [2025-03-02 23:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:38:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:38:11] Production.ERROR: CronJobId end10 [2025-03-02 23:38:11] Production.INFO: ==16873== Releasing lock... [2025-03-02 23:38:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:38:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:38:15] Production.INFO: call_cost start [2025-03-02 23:38:15] Production.INFO: call_cost end [2025-03-02 23:38:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:38:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:38:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:38:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:38:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:38:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:38:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:38:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:38:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:38:15] Production.INFO: ==16869== Releasing lock... [2025-03-02 23:38:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:38:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:38:16] Production.INFO: count ==1335 [2025-03-02 23:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594536', 'tblTempUsageDetail_20' ) start [2025-03-02 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594536', 'tblTempUsageDetail_20' ) end [2025-03-02 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594536', 'tblTempVendorCDR_20' ) start [2025-03-02 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594536', 'tblTempVendorCDR_20' ) end [2025-03-02 23:38:16] Production.INFO: ProcessCDR(1,14594536,1,1,2) [2025-03-02 23:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594536', 'tblTempUsageDetail_20' ) start [2025-03-02 23:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594536', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:38:24] Production.INFO: ==16877== Releasing lock... [2025-03-02 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:38:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:39:01] Production.INFO: ==16948== Lock acquired, processing the job... [2025-03-03 04:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:39:02] Production.INFO: neon service started [2025-03-03 04:39:02] Production.INFO: neon service started [2025-03-03 04:39:02] Production.INFO: ==16948== Releasing lock... [2025-03-03 04:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:39:02] Production.INFO: ==16954== Lock acquired, processing the job... [2025-03-03 04:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:39:02] Production.INFO: ==16954== Releasing lock... [2025-03-03 04:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:39:02] Production.INFO: ==16952== Lock acquired, processing the job... [2025-03-02 23:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:39:02] Production.INFO: ==16952== Releasing lock... [2025-03-02 23:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:39:03] Production.INFO: ==16957== Lock acquired, processing the job... [2025-03-02 23:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:39:03] Production.INFO: ==16959== Lock acquired, processing the job... [2025-03-02 23:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:39:03] Production.INFO: ==16961== Lock acquired, processing the job... [2025-03-02 23:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:39:04] Production.INFO: ==16963== Lock acquired, processing the job... [2025-03-02 23:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:39:04] Production.INFO: ==16959== Releasing lock... [2025-03-02 23:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:39:04] Production.INFO: ==16967== Lock acquired, processing the job... [2025-03-02 23:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:39:04] Production.INFO: ==16965== Lock acquired, processing the job... [2025-03-02 23:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:39:04] Production.INFO: Account Balance Start. [2025-03-02 23:39:04] Production.INFO: CreateAllLog Start [2025-03-02 23:39:04] Production.INFO: 117 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:39:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: count ==13 [2025-03-02 23:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:39:04] Production.INFO: count ==21 [2025-03-02 23:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594540') start [2025-03-02 23:39:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.ERROR: done [2025-03-02 23:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594540') end [2025-03-02 23:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:39:04] Production.INFO: 1 [2025-03-02 23:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:39:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:39:04] Production.INFO: ==16967== Releasing lock... [2025-03-02 23:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.ERROR: done [2025-03-02 23:39:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:39:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:39:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:39:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:39:05] Production.INFO: Total Charge 0 [2025-03-02 23:39:05] Production.INFO: CreateAllLog End [2025-03-02 23:39:05] Production.INFO: Account Balance End. [2025-03-02 23:39:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:39:05] Production.INFO: ==16963== Releasing lock... [2025-03-02 23:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:39:12] Production.ERROR: CronJobId end10 [2025-03-02 23:39:12] Production.INFO: ==16961== Releasing lock... [2025-03-02 23:39:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:39:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:39:13] Production.INFO: call_cost start [2025-03-02 23:39:13] Production.INFO: call_cost end [2025-03-02 23:39:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:39:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:39:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:39:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:39:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:39:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:39:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:39:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:39:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:39:13] Production.INFO: ==16957== Releasing lock... [2025-03-02 23:39:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:39:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:39:17] Production.INFO: count ==1335 [2025-03-02 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594541', 'tblTempUsageDetail_20' ) start [2025-03-02 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594541', 'tblTempUsageDetail_20' ) end [2025-03-02 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594541', 'tblTempVendorCDR_20' ) start [2025-03-02 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594541', 'tblTempVendorCDR_20' ) end [2025-03-02 23:39:17] Production.INFO: ProcessCDR(1,14594541,1,1,2) [2025-03-02 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594541', 'tblTempUsageDetail_20' ) start [2025-03-02 23:39:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594541', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:39:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:39:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:39:25] Production.INFO: ==16965== Releasing lock... [2025-03-02 23:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:39:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:40:01] Production.INFO: ==17027== Lock acquired, processing the job... [2025-03-03 04:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:40:01] Production.INFO: neon service started [2025-03-03 04:40:01] Production.INFO: neon service started [2025-03-03 04:40:01] Production.INFO: ==17027== Releasing lock... [2025-03-03 04:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:40:01] Production.INFO: ==17029== Lock acquired, processing the job... [2025-03-02 23:40:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:40:02] Production.INFO: ==17029== Releasing lock... [2025-03-02 23:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:40:02] Production.INFO: ==17031== Lock acquired, processing the job... [2025-03-03 04:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:40:02] Production.INFO: ==17031== Releasing lock... [2025-03-03 04:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:40:03] Production.INFO: ==17034== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 23:40:03] Production.INFO: ==17036== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 23:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:40:03] Production.ERROR: CronJob PID - 17036 [2025-03-02 23:40:03] Production.ERROR: CronJob Title - System Alerts [2025-03-02 23:40:03] Production.ERROR: CronJob ID - 5 [2025-03-02 23:40:03] Production.ERROR: CronJob Last Run Time 2025-03-02 23:40:00 [2025-03-02 23:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 23:40:03] Production.INFO: ==17034== Releasing lock... [2025-03-02 23:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 23:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:40:03] Production.INFO: ==17040== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:40:03] Production.INFO: ==17042== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:40:03] Production.INFO: ==17038== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:40:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:40:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:40:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:40:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:40:03] Production.INFO: Account Balance Start. [2025-03-02 23:40:03] Production.INFO: CreateAllLog Start [2025-03-02 23:40:03] Production.INFO: 117 [2025-03-02 23:40:03] Production.INFO: ==17044== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:40:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:03] Production.INFO: ==17048== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:40:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:03] Production.INFO: ==17046== Lock acquired, processing the job... [2025-03-02 23:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 23:40:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:40:03] Production.INFO: count ==13 [2025-03-02 23:40:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:40:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:40:03] Production.INFO: count ==21 [2025-03-02 23:40:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594545') start [2025-03-02 23:40:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594545') end [2025-03-02 23:40:04] Production.ERROR: done [2025-03-02 23:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:40:04] Production.INFO: 1 [2025-03-02 23:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: ==17038== Releasing lock... [2025-03-02 23:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:40:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:40:04] Production.INFO: ==17048== Releasing lock... [2025-03-02 23:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.ERROR: done [2025-03-02 23:40:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.ERROR: done [2025-03-02 23:40:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:40:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 23:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594547', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 23:40:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:40:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:40:04] Production.INFO: Total Charge 0 [2025-03-02 23:40:05] Production.INFO: CreateAllLog End [2025-03-02 23:40:05] Production.INFO: Account Balance End. [2025-03-02 23:40:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:40:05] Production.INFO: ==17042== Releasing lock... [2025-03-02 23:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:40:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594547', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 23:40:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 23:40:08] Production.INFO: ProcessCDR(1,14594547,1,1,2) [2025-03-02 23:40:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594547,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:40:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594547,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:40:08] Production.ERROR: pbx prc_insertCDR start [2025-03-02 23:40:08] Production.ERROR: pbx prc_insertCDR end [2025-03-02 23:40:08] Production.INFO: ==17046== Releasing lock... [2025-03-02 23:40:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 23:40:08] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:40:13] Production.ERROR: CronJobId end10 [2025-03-02 23:40:13] Production.INFO: ==17040== Releasing lock... [2025-03-02 23:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:40:16] Production.INFO: call_cost start [2025-03-02 23:40:16] Production.INFO: call_cost end [2025-03-02 23:40:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:40:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:40:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:40:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:40:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:40:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:40:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:40:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:40:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:40:16] Production.INFO: ==17036== Releasing lock... [2025-03-02 23:40:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:40:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:40:16] Production.INFO: count ==1335 [2025-03-02 23:40:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:40:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594546', 'tblTempUsageDetail_20' ) start [2025-03-02 23:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594546', 'tblTempUsageDetail_20' ) end [2025-03-02 23:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594546', 'tblTempVendorCDR_20' ) start [2025-03-02 23:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594546', 'tblTempVendorCDR_20' ) end [2025-03-02 23:40:16] Production.INFO: ProcessCDR(1,14594546,1,1,2) [2025-03-02 23:40:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594546', 'tblTempUsageDetail_20' ) start [2025-03-02 23:40:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594546', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:40:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:40:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:40:24] Production.INFO: ==17044== Releasing lock... [2025-03-02 23:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:41:01] Production.INFO: ==17106== Lock acquired, processing the job... [2025-03-03 04:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:41:02] Production.INFO: neon service started [2025-03-03 04:41:02] Production.INFO: neon service started [2025-03-03 04:41:02] Production.INFO: ==17106== Releasing lock... [2025-03-03 04:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:41:02] Production.INFO: ==17108== Lock acquired, processing the job... [2025-03-02 23:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:41:02] Production.INFO: ==17108== Releasing lock... [2025-03-02 23:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:41:02] Production.INFO: ==17110== Lock acquired, processing the job... [2025-03-03 04:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:41:02] Production.INFO: ==17110== Releasing lock... [2025-03-03 04:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:41:03] Production.INFO: ==17113== Lock acquired, processing the job... [2025-03-02 23:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:41:03] Production.INFO: ==17115== Lock acquired, processing the job... [2025-03-02 23:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:41:03] Production.INFO: ==17117== Lock acquired, processing the job... [2025-03-02 23:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:41:03] Production.INFO: ==17119== Lock acquired, processing the job... [2025-03-02 23:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:41:03] Production.INFO: ==17115== Releasing lock... [2025-03-02 23:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:41:03] Production.INFO: ==17123== Lock acquired, processing the job... [2025-03-02 23:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:41:03] Production.INFO: Account Balance Start. [2025-03-02 23:41:03] Production.INFO: CreateAllLog Start [2025-03-02 23:41:03] Production.INFO: 117 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:41:04] Production.INFO: ==17121== Lock acquired, processing the job... [2025-03-02 23:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:41:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: count ==13 [2025-03-02 23:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:41:04] Production.INFO: count ==21 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594551') start [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.ERROR: done [2025-03-02 23:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594551') end [2025-03-02 23:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:41:04] Production.INFO: 1 [2025-03-02 23:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:41:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: ==17123== Releasing lock... [2025-03-02 23:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:41:04] Production.ERROR: done [2025-03-02 23:41:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:41:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:41:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:41:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:41:05] Production.INFO: Total Charge 0 [2025-03-02 23:41:05] Production.INFO: CreateAllLog End [2025-03-02 23:41:05] Production.INFO: Account Balance End. [2025-03-02 23:41:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:41:05] Production.INFO: ==17119== Releasing lock... [2025-03-02 23:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:41:12] Production.ERROR: CronJobId end10 [2025-03-02 23:41:12] Production.INFO: ==17117== Releasing lock... [2025-03-02 23:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:41:14] Production.INFO: call_cost start [2025-03-02 23:41:14] Production.INFO: call_cost end [2025-03-02 23:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:41:14] Production.INFO: ==17113== Releasing lock... [2025-03-02 23:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:41:17] Production.INFO: count ==1335 [2025-03-02 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594552', 'tblTempUsageDetail_20' ) start [2025-03-02 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594552', 'tblTempUsageDetail_20' ) end [2025-03-02 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594552', 'tblTempVendorCDR_20' ) start [2025-03-02 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594552', 'tblTempVendorCDR_20' ) end [2025-03-02 23:41:17] Production.INFO: ProcessCDR(1,14594552,1,1,2) [2025-03-02 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594552', 'tblTempUsageDetail_20' ) start [2025-03-02 23:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594552', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:41:24] Production.INFO: ==17121== Releasing lock... [2025-03-02 23:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:41:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:42:01] Production.INFO: ==17189== Lock acquired, processing the job... [2025-03-03 04:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:42:01] Production.INFO: neon service started [2025-03-03 04:42:01] Production.INFO: neon service started [2025-03-03 04:42:01] Production.INFO: ==17189== Releasing lock... [2025-03-03 04:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:42:01] Production.INFO: ==17193== Lock acquired, processing the job... [2025-03-03 04:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:42:01] Production.INFO: ==17193== Releasing lock... [2025-03-03 04:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:42:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:42:02] Production.INFO: ==17191== Lock acquired, processing the job... [2025-03-02 23:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:42:02] Production.INFO: ==17191== Releasing lock... [2025-03-02 23:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:42:03] Production.INFO: ==17200== Lock acquired, processing the job... [2025-03-02 23:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:42:03] Production.INFO: ==17206== Lock acquired, processing the job... [2025-03-02 23:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:42:03] Production.INFO: ==17196== Lock acquired, processing the job... [2025-03-02 23:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:42:03] Production.INFO: count ==13 [2025-03-02 23:42:03] Production.INFO: ==17198== Lock acquired, processing the job... [2025-03-02 23:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:42:03] Production.INFO: count ==21 [2025-03-02 23:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594553') start [2025-03-02 23:42:03] Production.INFO: ==17202== Lock acquired, processing the job... [2025-03-02 23:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:42:03] Production.INFO: ==17204== Lock acquired, processing the job... [2025-03-02 23:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594553') end [2025-03-02 23:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:42:03] Production.INFO: 1 [2025-03-02 23:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:42:03] Production.INFO: ==17206== Releasing lock... [2025-03-02 23:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:42:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:42:03] Production.INFO: Account Balance Start. [2025-03-02 23:42:03] Production.INFO: CreateAllLog Start [2025-03-02 23:42:03] Production.INFO: 117 [2025-03-02 23:42:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:03] Production.INFO: ==17198== Releasing lock... [2025-03-02 23:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:42:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:42:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.ERROR: done [2025-03-02 23:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.ERROR: done [2025-03-02 23:42:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:42:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:42:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:42:04] Production.INFO: Total Charge 0 [2025-03-02 23:42:04] Production.INFO: CreateAllLog End [2025-03-02 23:42:05] Production.INFO: Account Balance End. [2025-03-02 23:42:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:42:05] Production.INFO: ==17202== Releasing lock... [2025-03-02 23:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:42:10] Production.ERROR: CronJobId end10 [2025-03-02 23:42:10] Production.INFO: ==17200== Releasing lock... [2025-03-02 23:42:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:42:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:42:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:42:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:42:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:42:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:42:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:42:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:42:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:42:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:42:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:42:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:42:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:42:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:42:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:42:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:42:13] Production.INFO: call_cost start [2025-03-02 23:42:13] Production.INFO: call_cost end [2025-03-02 23:42:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:42:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:42:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:42:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:42:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:42:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:42:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:42:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:42:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:42:13] Production.INFO: ==17196== Releasing lock... [2025-03-02 23:42:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:42:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:42:16] Production.INFO: count ==1335 [2025-03-02 23:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594557', 'tblTempUsageDetail_20' ) start [2025-03-02 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594557', 'tblTempUsageDetail_20' ) end [2025-03-02 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594557', 'tblTempVendorCDR_20' ) start [2025-03-02 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594557', 'tblTempVendorCDR_20' ) end [2025-03-02 23:42:17] Production.INFO: ProcessCDR(1,14594557,1,1,2) [2025-03-02 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594557', 'tblTempUsageDetail_20' ) start [2025-03-02 23:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594557', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:42:24] Production.INFO: ==17204== Releasing lock... [2025-03-02 23:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:42:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:43:01] Production.INFO: ==17269== Lock acquired, processing the job... [2025-03-03 04:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:43:01] Production.INFO: neon service started [2025-03-03 04:43:01] Production.INFO: neon service started [2025-03-03 04:43:01] Production.INFO: ==17269== Releasing lock... [2025-03-03 04:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:43:02] Production.INFO: ==17271== Lock acquired, processing the job... [2025-03-02 23:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:43:02] Production.INFO: ==17271== Releasing lock... [2025-03-02 23:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:43:02] Production.INFO: ==17273== Lock acquired, processing the job... [2025-03-03 04:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:43:02] Production.INFO: ==17273== Releasing lock... [2025-03-03 04:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:43:03] Production.INFO: ==17284== Lock acquired, processing the job... [2025-03-02 23:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:43:03] Production.INFO: ==17286== Lock acquired, processing the job... [2025-03-02 23:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:43:03] Production.INFO: ==17277== Lock acquired, processing the job... [2025-03-02 23:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:43:03] Production.INFO: ==17275== Lock acquired, processing the job... [2025-03-02 23:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:43:03] Production.INFO: ==17279== Lock acquired, processing the job... [2025-03-02 23:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:43:03] Production.INFO: ==17281== Lock acquired, processing the job... [2025-03-02 23:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:43:03] Production.INFO: count ==13 [2025-03-02 23:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:43:03] Production.INFO: Account Balance Start. [2025-03-02 23:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:43:03] Production.INFO: CreateAllLog Start [2025-03-02 23:43:03] Production.INFO: 117 [2025-03-02 23:43:03] Production.INFO: count ==21 [2025-03-02 23:43:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594558') start [2025-03-02 23:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:43:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.ERROR: done [2025-03-02 23:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: ==17277== Releasing lock... [2025-03-02 23:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594558') end [2025-03-02 23:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:43:04] Production.INFO: 1 [2025-03-02 23:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:43:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: ==17286== Releasing lock... [2025-03-02 23:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:43:04] Production.ERROR: done [2025-03-02 23:43:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:43:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:43:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:43:04] Production.INFO: Total Charge 0 [2025-03-02 23:43:04] Production.INFO: CreateAllLog End [2025-03-02 23:43:04] Production.INFO: Account Balance End. [2025-03-02 23:43:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:43:04] Production.INFO: ==17281== Releasing lock... [2025-03-02 23:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:43:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:43:11] Production.ERROR: CronJobId end10 [2025-03-02 23:43:11] Production.INFO: ==17279== Releasing lock... [2025-03-02 23:43:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:43:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:43:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:43:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:43:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:43:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:43:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:43:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:43:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:43:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:43:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:43:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:43:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:43:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:43:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:43:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:43:14] Production.INFO: call_cost start [2025-03-02 23:43:14] Production.INFO: call_cost end [2025-03-02 23:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:43:14] Production.INFO: ==17275== Releasing lock... [2025-03-02 23:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:43:16] Production.INFO: count ==1335 [2025-03-02 23:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594562', 'tblTempUsageDetail_20' ) start [2025-03-02 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594562', 'tblTempUsageDetail_20' ) end [2025-03-02 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594562', 'tblTempVendorCDR_20' ) start [2025-03-02 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594562', 'tblTempVendorCDR_20' ) end [2025-03-02 23:43:16] Production.INFO: ProcessCDR(1,14594562,1,1,2) [2025-03-02 23:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594562', 'tblTempUsageDetail_20' ) start [2025-03-02 23:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594562', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:43:24] Production.INFO: ==17284== Releasing lock... [2025-03-02 23:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:43:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:44:02] Production.INFO: ==17344== Lock acquired, processing the job... [2025-03-03 04:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:44:02] Production.INFO: neon service started [2025-03-03 04:44:02] Production.INFO: neon service started [2025-03-03 04:44:02] Production.INFO: ==17344== Releasing lock... [2025-03-03 04:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:44:02] Production.INFO: ==17346== Lock acquired, processing the job... [2025-03-02 23:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:44:03] Production.INFO: ==17346== Releasing lock... [2025-03-02 23:44:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:44:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:44:03] Production.INFO: ==17348== Lock acquired, processing the job... [2025-03-03 04:44:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:44:03] Production.INFO: ==17348== Releasing lock... [2025-03-03 04:44:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:44:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:44:03] Production.INFO: ==17354== Lock acquired, processing the job... [2025-03-02 23:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:44:03] Production.INFO: ==17356== Lock acquired, processing the job... [2025-03-02 23:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:44:04] Production.INFO: ==17350== Lock acquired, processing the job... [2025-03-02 23:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:44:04] Production.INFO: Account Balance Start. [2025-03-02 23:44:04] Production.INFO: ==17352== Lock acquired, processing the job... [2025-03-02 23:44:04] Production.INFO: CreateAllLog Start [2025-03-02 23:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:44:04] Production.INFO: 117 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: ==17358== Lock acquired, processing the job... [2025-03-02 23:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:44:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:44:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: ==17360== Lock acquired, processing the job... [2025-03-02 23:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:44:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: count ==13 [2025-03-02 23:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:44:04] Production.INFO: count ==21 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594566') start [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: ==17352== Releasing lock... [2025-03-02 23:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:44:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.ERROR: done [2025-03-02 23:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594566') end [2025-03-02 23:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:44:04] Production.INFO: 1 [2025-03-02 23:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:44:04] Production.INFO: ==17360== Releasing lock... [2025-03-02 23:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:44:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.ERROR: done [2025-03-02 23:44:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:44:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:44:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:44:05] Production.INFO: Total Charge 0 [2025-03-02 23:44:05] Production.INFO: CreateAllLog End [2025-03-02 23:44:05] Production.INFO: Account Balance End. [2025-03-02 23:44:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:44:05] Production.INFO: ==17356== Releasing lock... [2025-03-02 23:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:44:12] Production.ERROR: CronJobId end10 [2025-03-02 23:44:12] Production.INFO: ==17354== Releasing lock... [2025-03-02 23:44:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:44:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:44:14] Production.INFO: call_cost start [2025-03-02 23:44:14] Production.INFO: call_cost end [2025-03-02 23:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:44:14] Production.INFO: ==17350== Releasing lock... [2025-03-02 23:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:44:17] Production.INFO: count ==1335 [2025-03-02 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594567', 'tblTempUsageDetail_20' ) start [2025-03-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594567', 'tblTempUsageDetail_20' ) end [2025-03-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594567', 'tblTempVendorCDR_20' ) start [2025-03-02 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594567', 'tblTempVendorCDR_20' ) end [2025-03-02 23:44:17] Production.INFO: ProcessCDR(1,14594567,1,1,2) [2025-03-02 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594567', 'tblTempUsageDetail_20' ) start [2025-03-02 23:44:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594567', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:44:24] Production.INFO: ==17358== Releasing lock... [2025-03-02 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:44:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:45:01] Production.INFO: ==17430== Lock acquired, processing the job... [2025-03-03 04:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:45:01] Production.INFO: neon service started [2025-03-03 04:45:01] Production.INFO: neon service started [2025-03-03 04:45:01] Production.INFO: ==17430== Releasing lock... [2025-03-03 04:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:45:02] Production.INFO: ==17434== Lock acquired, processing the job... [2025-03-03 04:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:45:02] Production.INFO: ==17434== Releasing lock... [2025-03-03 04:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:45:02] Production.INFO: ==17432== Lock acquired, processing the job... [2025-03-02 23:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:45:02] Production.INFO: ==17432== Releasing lock... [2025-03-02 23:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:45:03] Production.INFO: ==17436== Lock acquired, processing the job... [2025-03-02 23:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:45:03] Production.INFO: ==17440== Lock acquired, processing the job... [2025-03-02 23:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:45:03] Production.INFO: ==17447== Lock acquired, processing the job... [2025-03-02 23:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:45:03] Production.INFO: ==17438== Lock acquired, processing the job... [2025-03-02 23:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:45:03] Production.INFO: count ==13 [2025-03-02 23:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:45:03] Production.INFO: count ==21 [2025-03-02 23:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594569') start [2025-03-02 23:45:03] Production.INFO: ==17445== Lock acquired, processing the job... [2025-03-02 23:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:45:03] Production.INFO: ==17443== Lock acquired, processing the job... [2025-03-02 23:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594569') end [2025-03-02 23:45:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:45:03] Production.INFO: 1 [2025-03-02 23:45:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:45:04] Production.INFO: ==17447== Releasing lock... [2025-03-02 23:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:45:04] Production.INFO: Account Balance Start. [2025-03-02 23:45:04] Production.INFO: CreateAllLog Start [2025-03-02 23:45:04] Production.INFO: 117 [2025-03-02 23:45:04] Production.INFO: ==17438== Releasing lock... [2025-03-02 23:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:45:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.ERROR: done [2025-03-02 23:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.ERROR: done [2025-03-02 23:45:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:45:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:45:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:45:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:45:05] Production.INFO: Total Charge 0 [2025-03-02 23:45:05] Production.INFO: CreateAllLog End [2025-03-02 23:45:05] Production.INFO: Account Balance End. [2025-03-02 23:45:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:45:05] Production.INFO: ==17443== Releasing lock... [2025-03-02 23:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:45:12] Production.ERROR: CronJobId end10 [2025-03-02 23:45:12] Production.INFO: ==17440== Releasing lock... [2025-03-02 23:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:45:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:45:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:45:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:45:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:45:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:45:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:45:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:45:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:45:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:45:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:45:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:45:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:45:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:45:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:45:14] Production.INFO: call_cost start [2025-03-02 23:45:14] Production.INFO: call_cost end [2025-03-02 23:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:45:14] Production.INFO: ==17436== Releasing lock... [2025-03-02 23:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:45:16] Production.INFO: count ==1335 [2025-03-02 23:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594572', 'tblTempUsageDetail_20' ) start [2025-03-02 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594572', 'tblTempUsageDetail_20' ) end [2025-03-02 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594572', 'tblTempVendorCDR_20' ) start [2025-03-02 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594572', 'tblTempVendorCDR_20' ) end [2025-03-02 23:45:16] Production.INFO: ProcessCDR(1,14594572,1,1,2) [2025-03-02 23:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594572', 'tblTempUsageDetail_20' ) start [2025-03-02 23:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594572', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:45:24] Production.INFO: ==17445== Releasing lock... [2025-03-02 23:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:45:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:46:02] Production.INFO: ==17514== Lock acquired, processing the job... [2025-03-03 04:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:46:02] Production.INFO: neon service started [2025-03-03 04:46:02] Production.INFO: neon service started [2025-03-03 04:46:02] Production.INFO: ==17514== Releasing lock... [2025-03-03 04:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:46:02] Production.INFO: ==17516== Lock acquired, processing the job... [2025-03-02 23:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:46:02] Production.INFO: ==17518== Lock acquired, processing the job... [2025-03-03 04:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:46:03] Production.INFO: ==17518== Releasing lock... [2025-03-03 04:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:46:03] Production.INFO: ==17516== Releasing lock... [2025-03-02 23:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:46:04] Production.INFO: ==17527== Lock acquired, processing the job... [2025-03-02 23:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:46:04] Production.INFO: ==17521== Lock acquired, processing the job... [2025-03-02 23:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:46:04] Production.INFO: ==17529== Lock acquired, processing the job... [2025-03-02 23:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:46:04] Production.INFO: Account Balance Start. [2025-03-02 23:46:04] Production.INFO: CreateAllLog Start [2025-03-02 23:46:04] Production.INFO: 117 [2025-03-02 23:46:04] Production.INFO: ==17523== Lock acquired, processing the job... [2025-03-02 23:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:46:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:46:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.INFO: ==17525== Lock acquired, processing the job... [2025-03-02 23:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:46:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.INFO: ==17531== Lock acquired, processing the job... [2025-03-02 23:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:46:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:46:04] Production.INFO: count ==13 [2025-03-02 23:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:46:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:46:04] Production.INFO: count ==21 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594576') start [2025-03-02 23:46:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.ERROR: done [2025-03-02 23:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594576') end [2025-03-02 23:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:46:04] Production.INFO: 1 [2025-03-02 23:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:46:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.INFO: ==17531== Releasing lock... [2025-03-02 23:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:46:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:46:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:04] Production.INFO: ==17523== Releasing lock... [2025-03-02 23:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:46:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.ERROR: done [2025-03-02 23:46:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:46:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:46:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:46:05] Production.INFO: Total Charge 0 [2025-03-02 23:46:05] Production.INFO: CreateAllLog End [2025-03-02 23:46:05] Production.INFO: Account Balance End. [2025-03-02 23:46:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:46:05] Production.INFO: ==17527== Releasing lock... [2025-03-02 23:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:46:14] Production.ERROR: CronJobId end10 [2025-03-02 23:46:14] Production.INFO: ==17525== Releasing lock... [2025-03-02 23:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:46:16] Production.INFO: call_cost start [2025-03-02 23:46:16] Production.INFO: call_cost end [2025-03-02 23:46:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:46:16] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:46:16] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:46:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:46:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:46:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:46:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:46:16] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:46:16] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:46:16] Production.INFO: ==17521== Releasing lock... [2025-03-02 23:46:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:46:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:46:17] Production.INFO: count ==1335 [2025-03-02 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594577', 'tblTempUsageDetail_20' ) start [2025-03-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594577', 'tblTempUsageDetail_20' ) end [2025-03-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594577', 'tblTempVendorCDR_20' ) start [2025-03-02 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594577', 'tblTempVendorCDR_20' ) end [2025-03-02 23:46:17] Production.INFO: ProcessCDR(1,14594577,1,1,2) [2025-03-02 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594577', 'tblTempUsageDetail_20' ) start [2025-03-02 23:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594577', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:46:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:46:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:46:25] Production.INFO: ==17529== Releasing lock... [2025-03-02 23:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:46:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:47:01] Production.INFO: ==17592== Lock acquired, processing the job... [2025-03-03 04:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:47:01] Production.INFO: neon service started [2025-03-03 04:47:01] Production.INFO: neon service started [2025-03-03 04:47:01] Production.INFO: ==17592== Releasing lock... [2025-03-03 04:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:47:02] Production.INFO: ==17594== Lock acquired, processing the job... [2025-03-02 23:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:47:02] Production.INFO: ==17594== Releasing lock... [2025-03-02 23:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:47:02] Production.INFO: ==17596== Lock acquired, processing the job... [2025-03-03 04:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:47:02] Production.INFO: ==17596== Releasing lock... [2025-03-03 04:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:47:03] Production.INFO: ==17603== Lock acquired, processing the job... [2025-03-02 23:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:47:03] Production.INFO: ==17605== Lock acquired, processing the job... [2025-03-02 23:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:47:03] Production.INFO: Account Balance Start. [2025-03-02 23:47:03] Production.INFO: CreateAllLog Start [2025-03-02 23:47:03] Production.INFO: 117 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: ==17599== Lock acquired, processing the job... [2025-03-02 23:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:47:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: ==17601== Lock acquired, processing the job... [2025-03-02 23:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:47:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:47:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: ==17607== Lock acquired, processing the job... [2025-03-02 23:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:47:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-18 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: ==17609== Lock acquired, processing the job... [2025-03-02 23:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-19 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-20 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: Date 2025-02-21 [2025-03-02 23:47:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:47:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.INFO: count ==13 [2025-03-02 23:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:47:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:47:04] Production.INFO: count ==21 [2025-03-02 23:47:04] Production.INFO: ==17601== Releasing lock... [2025-03-02 23:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594581') start [2025-03-02 23:47:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.ERROR: done [2025-03-02 23:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594581') end [2025-03-02 23:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:47:04] Production.INFO: 1 [2025-03-02 23:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:47:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.INFO: ==17609== Releasing lock... [2025-03-02 23:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:47:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.ERROR: done [2025-03-02 23:47:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:47:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:47:04] Production.INFO: Total Charge 0 [2025-03-02 23:47:04] Production.INFO: CreateAllLog End [2025-03-02 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:47:04] Production.INFO: Account Balance End. [2025-03-02 23:47:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:47:04] Production.INFO: ==17605== Releasing lock... [2025-03-02 23:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:47:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:47:11] Production.ERROR: CronJobId end10 [2025-03-02 23:47:11] Production.INFO: ==17603== Releasing lock... [2025-03-02 23:47:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:47:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:47:15] Production.INFO: call_cost start [2025-03-02 23:47:15] Production.INFO: call_cost end [2025-03-02 23:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:47:15] Production.INFO: ==17599== Releasing lock... [2025-03-02 23:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:47:16] Production.INFO: count ==1335 [2025-03-02 23:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594582', 'tblTempUsageDetail_20' ) start [2025-03-02 23:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594582', 'tblTempUsageDetail_20' ) end [2025-03-02 23:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594582', 'tblTempVendorCDR_20' ) start [2025-03-02 23:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594582', 'tblTempVendorCDR_20' ) end [2025-03-02 23:47:16] Production.INFO: ProcessCDR(1,14594582,1,1,2) [2025-03-02 23:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594582', 'tblTempUsageDetail_20' ) start [2025-03-02 23:47:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594582', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:47:24] Production.INFO: ==17607== Releasing lock... [2025-03-02 23:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:47:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:48:02] Production.INFO: ==17671== Lock acquired, processing the job... [2025-03-03 04:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:48:02] Production.INFO: neon service started [2025-03-03 04:48:02] Production.INFO: neon service started [2025-03-03 04:48:02] Production.INFO: ==17671== Releasing lock... [2025-03-03 04:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:48:02] Production.INFO: ==17673== Lock acquired, processing the job... [2025-03-02 23:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:48:02] Production.INFO: ==17673== Releasing lock... [2025-03-02 23:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:48:03] Production.INFO: ==17675== Lock acquired, processing the job... [2025-03-03 04:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:48:03] Production.INFO: ==17675== Releasing lock... [2025-03-03 04:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:48:03] Production.INFO: ==17677== Lock acquired, processing the job... [2025-03-02 23:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:48:03] Production.INFO: ==17681== Lock acquired, processing the job... [2025-03-02 23:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:48:03] Production.INFO: ==17683== Lock acquired, processing the job... [2025-03-02 23:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:48:03] Production.INFO: ==17679== Lock acquired, processing the job... [2025-03-02 23:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:48:03] Production.INFO: Account Balance Start. [2025-03-02 23:48:03] Production.INFO: CreateAllLog Start [2025-03-02 23:48:03] Production.INFO: 117 [2025-03-02 23:48:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:48:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: ==17685== Lock acquired, processing the job... [2025-03-02 23:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:48:04] Production.INFO: ==17687== Lock acquired, processing the job... [2025-03-02 23:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:48:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:48:04] Production.INFO: count ==13 [2025-03-02 23:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:48:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:48:04] Production.INFO: count ==21 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594586') start [2025-03-02 23:48:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: ==17679== Releasing lock... [2025-03-02 23:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:48:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594586') end [2025-03-02 23:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:48:04] Production.INFO: 1 [2025-03-02 23:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:48:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: ==17687== Releasing lock... [2025-03-02 23:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:48:04] Production.ERROR: done [2025-03-02 23:48:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:04] Production.ERROR: done [2025-03-02 23:48:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:48:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:48:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:48:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:48:05] Production.INFO: Total Charge 0 [2025-03-02 23:48:05] Production.INFO: CreateAllLog End [2025-03-02 23:48:05] Production.INFO: Account Balance End. [2025-03-02 23:48:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:48:05] Production.INFO: ==17683== Releasing lock... [2025-03-02 23:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:48:11] Production.ERROR: CronJobId end10 [2025-03-02 23:48:11] Production.INFO: ==17681== Releasing lock... [2025-03-02 23:48:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:48:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:48:14] Production.INFO: call_cost start [2025-03-02 23:48:14] Production.INFO: call_cost end [2025-03-02 23:48:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:48:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:48:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:48:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:48:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:48:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:48:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:48:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:48:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:48:14] Production.INFO: ==17677== Releasing lock... [2025-03-02 23:48:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:48:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:48:17] Production.INFO: count ==1335 [2025-03-02 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594587', 'tblTempUsageDetail_20' ) start [2025-03-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594587', 'tblTempUsageDetail_20' ) end [2025-03-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594587', 'tblTempVendorCDR_20' ) start [2025-03-02 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594587', 'tblTempVendorCDR_20' ) end [2025-03-02 23:48:17] Production.INFO: ProcessCDR(1,14594587,1,1,2) [2025-03-02 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594587', 'tblTempUsageDetail_20' ) start [2025-03-02 23:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594587', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:48:24] Production.INFO: ==17685== Releasing lock... [2025-03-02 23:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:48:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:49:01] Production.INFO: ==17746== Lock acquired, processing the job... [2025-03-03 04:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:49:01] Production.INFO: neon service started [2025-03-03 04:49:01] Production.INFO: neon service started [2025-03-03 04:49:01] Production.INFO: ==17746== Releasing lock... [2025-03-03 04:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:49:01] Production.INFO: ==17750== Lock acquired, processing the job... [2025-03-03 04:49:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:49:02] Production.INFO: ==17750== Releasing lock... [2025-03-03 04:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:49:02] Production.INFO: ==17748== Lock acquired, processing the job... [2025-03-02 23:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:49:02] Production.INFO: ==17748== Releasing lock... [2025-03-02 23:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:49:03] Production.INFO: ==17757== Lock acquired, processing the job... [2025-03-02 23:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:49:03] Production.INFO: ==17759== Lock acquired, processing the job... [2025-03-02 23:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:49:03] Production.INFO: Account Balance Start. [2025-03-02 23:49:03] Production.INFO: CreateAllLog Start [2025-03-02 23:49:03] Production.INFO: 117 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:49:03] Production.INFO: ==17761== Lock acquired, processing the job... [2025-03-02 23:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: ==17753== Lock acquired, processing the job... [2025-03-02 23:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:49:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: ==17755== Lock acquired, processing the job... [2025-03-02 23:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:49:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: ==17763== Lock acquired, processing the job... [2025-03-02 23:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:49:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:49:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:49:03] Production.INFO: count ==13 [2025-03-02 23:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:49:03] Production.INFO: count ==21 [2025-03-02 23:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594589') start [2025-03-02 23:49:03] Production.ERROR: done [2025-03-02 23:49:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-18 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:03] Production.INFO: Date 2025-02-19 [2025-03-02 23:49:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594589') end [2025-03-02 23:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:49:04] Production.INFO: 1 [2025-03-02 23:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:49:04] Production.ERROR: done [2025-03-02 23:49:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: ==17755== Releasing lock... [2025-03-02 23:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:49:04] Production.INFO: ==17763== Releasing lock... [2025-03-02 23:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:49:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:49:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:49:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:49:04] Production.INFO: Total Charge 0 [2025-03-02 23:49:04] Production.INFO: CreateAllLog End [2025-03-02 23:49:04] Production.INFO: Account Balance End. [2025-03-02 23:49:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:49:04] Production.INFO: ==17759== Releasing lock... [2025-03-02 23:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:49:11] Production.ERROR: CronJobId end10 [2025-03-02 23:49:11] Production.INFO: ==17757== Releasing lock... [2025-03-02 23:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:49:14] Production.INFO: call_cost start [2025-03-02 23:49:14] Production.INFO: call_cost end [2025-03-02 23:49:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:49:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:49:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:49:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:49:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:49:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:49:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:49:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:49:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:49:14] Production.INFO: ==17753== Releasing lock... [2025-03-02 23:49:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:49:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:49:16] Production.INFO: count ==1335 [2025-03-02 23:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594592', 'tblTempUsageDetail_20' ) start [2025-03-02 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594592', 'tblTempUsageDetail_20' ) end [2025-03-02 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594592', 'tblTempVendorCDR_20' ) start [2025-03-02 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594592', 'tblTempVendorCDR_20' ) end [2025-03-02 23:49:16] Production.INFO: ProcessCDR(1,14594592,1,1,2) [2025-03-02 23:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594592', 'tblTempUsageDetail_20' ) start [2025-03-02 23:49:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594592', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:49:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:49:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:49:24] Production.INFO: ==17761== Releasing lock... [2025-03-02 23:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:49:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:50:02] Production.INFO: ==17878== Lock acquired, processing the job... [2025-03-03 04:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:50:02] Production.INFO: neon service started [2025-03-03 04:50:02] Production.INFO: neon service started [2025-03-03 04:50:02] Production.INFO: ==17878== Releasing lock... [2025-03-03 04:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:50:02] Production.INFO: ==17880== Lock acquired, processing the job... [2025-03-02 23:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:50:02] Production.INFO: ==17880== Releasing lock... [2025-03-02 23:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:50:02] Production.INFO: ==17882== Lock acquired, processing the job... [2025-03-03 04:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:50:03] Production.INFO: ==17882== Releasing lock... [2025-03-03 04:50:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:50:03] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:50:03] Production.INFO: ==17891== Lock acquired, processing the job... [2025-03-02 23:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:50:04] Production.INFO: ==17885== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-02 23:50:04] Production.INFO: ==17887== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:50:04] Production.INFO: ==17889== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:50:04] Production.INFO: ==17899== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:50:04] Production.ERROR: CronJob PID - 17887 [2025-03-02 23:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-02 23:50:04] Production.ERROR: CronJob ID - 5 [2025-03-02 23:50:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:50:00 [2025-03-02 23:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:50:04] Production.ERROR: CronJob PID - 17889 [2025-03-02 23:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-02 23:50:04] Production.ERROR: CronJob ID - 7 [2025-03-02 23:50:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:50:00 [2025-03-02 23:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-02 23:50:04] Production.ERROR: CronJob PID - 17891 [2025-03-02 23:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-02 23:50:04] Production.ERROR: CronJob ID - 10 [2025-03-02 23:50:04] Production.ERROR: CronJob Last Run Time 2025-03-02 23:50:00 [2025-03-02 23:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-02 23:50:04] Production.INFO: ==17897== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-02 23:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-02 23:50:04] Production.INFO: ==17885== Releasing lock... [2025-03-02 23:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-02 23:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-02 23:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:50:04] Production.INFO: ==17893== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:50:04] Production.INFO: count ==13 [2025-03-02 23:50:04] Production.INFO: ==17895== Lock acquired, processing the job... [2025-03-02 23:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:50:04] Production.INFO: count ==21 [2025-03-02 23:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594595') start [2025-03-02 23:50:04] Production.INFO: Account Balance Start. [2025-03-02 23:50:04] Production.INFO: CreateAllLog Start [2025-03-02 23:50:04] Production.INFO: 117 [2025-03-02 23:50:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:50:04] Production.INFO: ==17889== Releasing lock... [2025-03-02 23:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:50:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594595') end [2025-03-02 23:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:50:04] Production.INFO: 1 [2025-03-02 23:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:50:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:04] Production.INFO: ==17899== Releasing lock... [2025-03-02 23:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:50:04] Production.ERROR: done [2025-03-02 23:50:04] Production.ERROR: done [2025-03-02 23:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:50:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:50:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-14 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-15 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-02 23:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594597', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) start [2025-03-02 23:50:05] Production.INFO: Date 2025-02-16 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.ERROR: done [2025-03-02 23:50:05] Production.INFO: Date 2025-02-17 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-18 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-19 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:50:05] Production.INFO: Date 2025-02-20 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-21 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-22 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-23 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-24 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:50:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:50:05] Production.INFO: Total Charge 0 [2025-03-02 23:50:05] Production.INFO: CreateAllLog End [2025-03-02 23:50:05] Production.INFO: Account Balance End. [2025-03-02 23:50:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:50:05] Production.INFO: ==17893== Releasing lock... [2025-03-02 23:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594597', 'tblTempUsageDetail_20reseller','2025-03-02','2025-03-02','1' ) end [2025-03-02 23:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-02 23:50:09] Production.INFO: ProcessCDR(1,14594597,1,1,2) [2025-03-02 23:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594597,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594597,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-02 23:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-02 23:50:10] Production.INFO: ==17897== Releasing lock... [2025-03-02 23:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-02 23:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:50:14] Production.ERROR: CronJobId end10 [2025-03-02 23:50:14] Production.INFO: ==17891== Releasing lock... [2025-03-02 23:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:50:17] Production.INFO: count ==1335 [2025-03-02 23:50:17] Production.INFO: call_cost start [2025-03-02 23:50:17] Production.INFO: call_cost end [2025-03-02 23:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:50:17] Production.INFO: ==17887== Releasing lock... [2025-03-02 23:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594598', 'tblTempUsageDetail_20' ) start [2025-03-02 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594598', 'tblTempUsageDetail_20' ) end [2025-03-02 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594598', 'tblTempVendorCDR_20' ) start [2025-03-02 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594598', 'tblTempVendorCDR_20' ) end [2025-03-02 23:50:17] Production.INFO: ProcessCDR(1,14594598,1,1,2) [2025-03-02 23:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594598', 'tblTempUsageDetail_20' ) start [2025-03-02 23:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594598', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:50:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:50:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:50:25] Production.INFO: ==17895== Releasing lock... [2025-03-02 23:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:50:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:51:01] Production.INFO: ==17959== Lock acquired, processing the job... [2025-03-03 04:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:51:01] Production.INFO: neon service started [2025-03-03 04:51:01] Production.INFO: neon service started [2025-03-03 04:51:01] Production.INFO: ==17959== Releasing lock... [2025-03-03 04:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:51:01] Production.INFO: ==17963== Lock acquired, processing the job... [2025-03-03 04:51:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:51:01] Production.INFO: ==17963== Releasing lock... [2025-03-03 04:51:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:51:01] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:51:02] Production.INFO: ==17961== Lock acquired, processing the job... [2025-03-02 23:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:51:02] Production.INFO: ==17961== Releasing lock... [2025-03-02 23:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:51:03] Production.INFO: ==17965== Lock acquired, processing the job... [2025-03-02 23:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:51:03] Production.INFO: ==17967== Lock acquired, processing the job... [2025-03-02 23:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:51:03] Production.INFO: ==17974== Lock acquired, processing the job... [2025-03-02 23:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:51:03] Production.INFO: ==17976== Lock acquired, processing the job... [2025-03-02 23:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:51:03] Production.INFO: ==17967== Releasing lock... [2025-03-02 23:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:51:03] Production.INFO: ==17970== Lock acquired, processing the job... [2025-03-02 23:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:51:03] Production.INFO: ==17972== Lock acquired, processing the job... [2025-03-02 23:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:51:03] Production.INFO: count ==13 [2025-03-02 23:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:51:03] Production.INFO: count ==21 [2025-03-02 23:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594601') start [2025-03-02 23:51:03] Production.INFO: Account Balance Start. [2025-03-02 23:51:03] Production.INFO: CreateAllLog Start [2025-03-02 23:51:03] Production.INFO: 117 [2025-03-02 23:51:03] Production.ERROR: done [2025-03-02 23:51:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:51:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:51:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594601') end [2025-03-02 23:51:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:51:03] Production.INFO: 1 [2025-03-02 23:51:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:51:03] Production.ERROR: done [2025-03-02 23:51:03] Production.INFO: ==17976== Releasing lock... [2025-03-02 23:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:51:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:51:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:51:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:51:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:51:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:51:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:51:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:51:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:51:04] Production.INFO: Total Charge 0 [2025-03-02 23:51:04] Production.INFO: CreateAllLog End [2025-03-02 23:51:04] Production.INFO: Account Balance End. [2025-03-02 23:51:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:51:04] Production.INFO: ==17972== Releasing lock... [2025-03-02 23:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:51:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:51:10] Production.ERROR: CronJobId end10 [2025-03-02 23:51:10] Production.INFO: ==17970== Releasing lock... [2025-03-02 23:51:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:51:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:51:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:51:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:51:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:51:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:51:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:51:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:51:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:51:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:51:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:51:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:51:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:51:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:51:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:51:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:51:13] Production.INFO: call_cost start [2025-03-02 23:51:13] Production.INFO: call_cost end [2025-03-02 23:51:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:51:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:51:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:51:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:51:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:51:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:51:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:51:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:51:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:51:13] Production.INFO: ==17965== Releasing lock... [2025-03-02 23:51:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:51:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:51:15] Production.INFO: count ==1335 [2025-03-02 23:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594603', 'tblTempUsageDetail_20' ) start [2025-03-02 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594603', 'tblTempUsageDetail_20' ) end [2025-03-02 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594603', 'tblTempVendorCDR_20' ) start [2025-03-02 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594603', 'tblTempVendorCDR_20' ) end [2025-03-02 23:51:16] Production.INFO: ProcessCDR(1,14594603,1,1,2) [2025-03-02 23:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594603', 'tblTempUsageDetail_20' ) start [2025-03-02 23:51:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594603', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:51:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:51:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:51:23] Production.INFO: ==17974== Releasing lock... [2025-03-02 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:51:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:52:01] Production.INFO: ==18043== Lock acquired, processing the job... [2025-03-03 04:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:52:02] Production.INFO: neon service started [2025-03-03 04:52:02] Production.INFO: neon service started [2025-03-03 04:52:02] Production.INFO: ==18043== Releasing lock... [2025-03-03 04:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:52:02] Production.INFO: ==18047== Lock acquired, processing the job... [2025-03-03 04:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:52:02] Production.INFO: ==18047== Releasing lock... [2025-03-03 04:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:52:02] Production.INFO: ==18045== Lock acquired, processing the job... [2025-03-02 23:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:52:02] Production.INFO: ==18045== Releasing lock... [2025-03-02 23:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:52:03] Production.INFO: ==18053== Lock acquired, processing the job... [2025-03-02 23:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:52:03] Production.INFO: ==18055== Lock acquired, processing the job... [2025-03-02 23:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:52:03] Production.INFO: Account Balance Start. [2025-03-02 23:52:03] Production.INFO: CreateAllLog Start [2025-03-02 23:52:03] Production.INFO: 117 [2025-03-02 23:52:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:03] Production.INFO: ==18060== Lock acquired, processing the job... [2025-03-02 23:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:52:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:03] Production.INFO: ==18051== Lock acquired, processing the job... [2025-03-02 23:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:52:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:03] Production.INFO: count ==13 [2025-03-02 23:52:03] Production.INFO: ==18049== Lock acquired, processing the job... [2025-03-02 23:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:52:03] Production.INFO: count ==21 [2025-03-02 23:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594605') start [2025-03-02 23:52:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:52:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:52:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: ==18057== Lock acquired, processing the job... [2025-03-02 23:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594605') end [2025-03-02 23:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:52:04] Production.INFO: 1 [2025-03-02 23:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:52:04] Production.INFO: ==18060== Releasing lock... [2025-03-02 23:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:52:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: ==18051== Releasing lock... [2025-03-02 23:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:52:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.ERROR: done [2025-03-02 23:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.ERROR: done [2025-03-02 23:52:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:52:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:52:04] Production.INFO: Total Charge 0 [2025-03-02 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:52:04] Production.INFO: CreateAllLog End [2025-03-02 23:52:04] Production.INFO: Account Balance End. [2025-03-02 23:52:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:52:05] Production.INFO: ==18055== Releasing lock... [2025-03-02 23:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:52:11] Production.ERROR: CronJobId end10 [2025-03-02 23:52:11] Production.INFO: ==18053== Releasing lock... [2025-03-02 23:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:52:14] Production.INFO: call_cost start [2025-03-02 23:52:14] Production.INFO: call_cost end [2025-03-02 23:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:52:14] Production.INFO: ==18049== Releasing lock... [2025-03-02 23:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:52:16] Production.INFO: count ==1335 [2025-03-02 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594608', 'tblTempUsageDetail_20' ) start [2025-03-02 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594608', 'tblTempUsageDetail_20' ) end [2025-03-02 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594608', 'tblTempVendorCDR_20' ) start [2025-03-02 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594608', 'tblTempVendorCDR_20' ) end [2025-03-02 23:52:17] Production.INFO: ProcessCDR(1,14594608,1,1,2) [2025-03-02 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594608', 'tblTempUsageDetail_20' ) start [2025-03-02 23:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594608', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:52:24] Production.INFO: ==18057== Releasing lock... [2025-03-02 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:52:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:53:01] Production.INFO: ==18126== Lock acquired, processing the job... [2025-03-03 04:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:53:01] Production.INFO: neon service started [2025-03-03 04:53:01] Production.INFO: neon service started [2025-03-03 04:53:01] Production.INFO: ==18126== Releasing lock... [2025-03-03 04:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:53:01] Production.INFO: ==18128== Lock acquired, processing the job... [2025-03-02 23:53:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:53:02] Production.INFO: ==18128== Releasing lock... [2025-03-02 23:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:53:02] Production.INFO: ==18130== Lock acquired, processing the job... [2025-03-03 04:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:53:02] Production.INFO: ==18130== Releasing lock... [2025-03-03 04:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:53:03] Production.INFO: ==18141== Lock acquired, processing the job... [2025-03-02 23:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:53:03] Production.INFO: ==18143== Lock acquired, processing the job... [2025-03-02 23:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:53:03] Production.INFO: ==18133== Lock acquired, processing the job... [2025-03-02 23:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:53:03] Production.INFO: ==18135== Lock acquired, processing the job... [2025-03-02 23:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:53:03] Production.INFO: ==18137== Lock acquired, processing the job... [2025-03-02 23:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:53:03] Production.INFO: ==18139== Lock acquired, processing the job... [2025-03-02 23:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:53:03] Production.INFO: count ==13 [2025-03-02 23:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:53:03] Production.INFO: count ==21 [2025-03-02 23:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594609') start [2025-03-02 23:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:53:03] Production.INFO: Account Balance Start. [2025-03-02 23:53:03] Production.INFO: CreateAllLog Start [2025-03-02 23:53:03] Production.INFO: 117 [2025-03-02 23:53:03] Production.ERROR: done [2025-03-02 23:53:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594609') end [2025-03-02 23:53:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:53:03] Production.INFO: 1 [2025-03-02 23:53:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:53:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: ==18143== Releasing lock... [2025-03-02 23:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:53:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:53:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.ERROR: done [2025-03-02 23:53:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: ==18135== Releasing lock... [2025-03-02 23:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:53:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:53:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:53:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-16 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-17 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-18 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:03] Production.INFO: Date 2025-02-19 [2025-03-02 23:53:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:53:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:53:04] Production.INFO: Total Charge 0 [2025-03-02 23:53:04] Production.INFO: CreateAllLog End [2025-03-02 23:53:04] Production.INFO: Account Balance End. [2025-03-02 23:53:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:53:04] Production.INFO: ==18139== Releasing lock... [2025-03-02 23:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:53:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:53:12] Production.ERROR: CronJobId end10 [2025-03-02 23:53:12] Production.INFO: ==18137== Releasing lock... [2025-03-02 23:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:53:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:53:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:53:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:53:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:53:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:53:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:53:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:53:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:53:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:53:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:53:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:53:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:53:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:53:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:53:14] Production.INFO: call_cost start [2025-03-02 23:53:14] Production.INFO: call_cost end [2025-03-02 23:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:53:14] Production.INFO: ==18133== Releasing lock... [2025-03-02 23:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:53:15] Production.INFO: count ==1335 [2025-03-02 23:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594613', 'tblTempUsageDetail_20' ) start [2025-03-02 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594613', 'tblTempUsageDetail_20' ) end [2025-03-02 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594613', 'tblTempVendorCDR_20' ) start [2025-03-02 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594613', 'tblTempVendorCDR_20' ) end [2025-03-02 23:53:16] Production.INFO: ProcessCDR(1,14594613,1,1,2) [2025-03-02 23:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594613', 'tblTempUsageDetail_20' ) start [2025-03-02 23:53:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594613', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:53:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:53:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:53:23] Production.INFO: ==18141== Releasing lock... [2025-03-02 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:53:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:54:01] Production.INFO: ==18214== Lock acquired, processing the job... [2025-03-03 04:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:54:01] Production.INFO: neon service started [2025-03-03 04:54:01] Production.INFO: neon service started [2025-03-03 04:54:01] Production.INFO: ==18214== Releasing lock... [2025-03-03 04:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:54:02] Production.INFO: ==18216== Lock acquired, processing the job... [2025-03-02 23:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:54:02] Production.INFO: ==18218== Lock acquired, processing the job... [2025-03-03 04:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:54:02] Production.INFO: ==18218== Releasing lock... [2025-03-03 04:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:54:02] Production.INFO: ==18216== Releasing lock... [2025-03-02 23:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:54:03] Production.INFO: ==18231== Lock acquired, processing the job... [2025-03-02 23:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:54:03] Production.INFO: ==18220== Lock acquired, processing the job... [2025-03-02 23:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:54:03] Production.INFO: ==18228== Lock acquired, processing the job... [2025-03-02 23:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:54:03] Production.INFO: count ==13 [2025-03-02 23:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:54:03] Production.INFO: count ==21 [2025-03-02 23:54:03] Production.INFO: ==18222== Lock acquired, processing the job... [2025-03-02 23:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594614') start [2025-03-02 23:54:03] Production.INFO: ==18224== Lock acquired, processing the job... [2025-03-02 23:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:54:03] Production.INFO: ==18226== Lock acquired, processing the job... [2025-03-02 23:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594614') end [2025-03-02 23:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:54:04] Production.INFO: 1 [2025-03-02 23:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:54:04] Production.INFO: Account Balance Start. [2025-03-02 23:54:04] Production.INFO: CreateAllLog Start [2025-03-02 23:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:54:04] Production.INFO: 117 [2025-03-02 23:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:54:04] Production.INFO: Date 2025-02-08 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: ==18231== Releasing lock... [2025-03-02 23:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:54:04] Production.ERROR: done [2025-03-02 23:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: ==18222== Releasing lock... [2025-03-02 23:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:54:04] Production.ERROR: done [2025-03-02 23:54:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:54:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:54:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:54:05] Production.INFO: Total Charge 0 [2025-03-02 23:54:05] Production.INFO: CreateAllLog End [2025-03-02 23:54:05] Production.INFO: Account Balance End. [2025-03-02 23:54:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:54:05] Production.INFO: ==18226== Releasing lock... [2025-03-02 23:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:54:12] Production.ERROR: CronJobId end10 [2025-03-02 23:54:12] Production.INFO: ==18224== Releasing lock... [2025-03-02 23:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:54:14] Production.INFO: call_cost start [2025-03-02 23:54:14] Production.INFO: call_cost end [2025-03-02 23:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:54:14] Production.INFO: ==18220== Releasing lock... [2025-03-02 23:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:54:16] Production.INFO: count ==1335 [2025-03-02 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594618', 'tblTempUsageDetail_20' ) start [2025-03-02 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594618', 'tblTempUsageDetail_20' ) end [2025-03-02 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594618', 'tblTempVendorCDR_20' ) start [2025-03-02 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594618', 'tblTempVendorCDR_20' ) end [2025-03-02 23:54:17] Production.INFO: ProcessCDR(1,14594618,1,1,2) [2025-03-02 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594618', 'tblTempUsageDetail_20' ) start [2025-03-02 23:54:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594618', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:54:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:54:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:54:25] Production.INFO: ==18228== Releasing lock... [2025-03-02 23:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:54:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:55:01] Production.INFO: ==18290== Lock acquired, processing the job... [2025-03-03 04:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:55:01] Production.INFO: neon service started [2025-03-03 04:55:01] Production.INFO: neon service started [2025-03-03 04:55:01] Production.INFO: ==18290== Releasing lock... [2025-03-03 04:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:55:02] Production.INFO: ==18292== Lock acquired, processing the job... [2025-03-02 23:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:55:02] Production.INFO: ==18294== Lock acquired, processing the job... [2025-03-03 04:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:55:02] Production.INFO: ==18294== Releasing lock... [2025-03-03 04:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:55:02] Production.INFO: ==18292== Releasing lock... [2025-03-02 23:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-02 23:55:03] Production.INFO: ==18299== Lock acquired, processing the job... [2025-03-02 23:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:55:03] Production.INFO: ==18301== Lock acquired, processing the job... [2025-03-02 23:55:03] Production.INFO: ==18297== Lock acquired, processing the job... [2025-03-02 23:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:55:03] Production.INFO: ==18303== Lock acquired, processing the job... [2025-03-02 23:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:55:03] Production.INFO: ==18305== Lock acquired, processing the job... [2025-03-02 23:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:55:03] Production.INFO: ==18299== Releasing lock... [2025-03-02 23:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:55:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:55:03] Production.INFO: ==18307== Lock acquired, processing the job... [2025-03-02 23:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:55:03] Production.INFO: Account Balance Start. [2025-03-02 23:55:03] Production.INFO: CreateAllLog Start [2025-03-02 23:55:03] Production.INFO: 117 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-14 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:55:03] Production.INFO: count ==13 [2025-03-02 23:55:03] Production.INFO: Date 2025-02-15 [2025-03-02 23:55:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:55:03] Production.INFO: count ==21 [2025-03-02 23:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594622') start [2025-03-02 23:55:04] Production.ERROR: done [2025-03-02 23:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594622') end [2025-03-02 23:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:55:04] Production.INFO: 1 [2025-03-02 23:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:55:04] Production.INFO: ==18307== Releasing lock... [2025-03-02 23:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:55:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.ERROR: done [2025-03-02 23:55:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:55:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:55:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:55:04] Production.INFO: Total Charge 0 [2025-03-02 23:55:04] Production.INFO: CreateAllLog End [2025-03-02 23:55:04] Production.INFO: Account Balance End. [2025-03-02 23:55:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:55:04] Production.INFO: ==18303== Releasing lock... [2025-03-02 23:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:55:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:55:11] Production.ERROR: CronJobId end10 [2025-03-02 23:55:11] Production.INFO: ==18301== Releasing lock... [2025-03-02 23:55:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:55:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:55:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:55:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:55:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:55:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:55:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:55:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:55:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:55:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:55:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:55:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:55:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:55:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:55:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:55:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:55:13] Production.INFO: call_cost start [2025-03-02 23:55:13] Production.INFO: call_cost end [2025-03-02 23:55:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:55:13] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:55:13] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:55:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:55:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:55:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:55:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:55:13] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:55:13] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:55:13] Production.INFO: ==18297== Releasing lock... [2025-03-02 23:55:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:55:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:55:16] Production.INFO: count ==1335 [2025-03-02 23:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594623', 'tblTempUsageDetail_20' ) start [2025-03-02 23:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594623', 'tblTempUsageDetail_20' ) end [2025-03-02 23:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594623', 'tblTempVendorCDR_20' ) start [2025-03-02 23:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594623', 'tblTempVendorCDR_20' ) end [2025-03-02 23:55:16] Production.INFO: ProcessCDR(1,14594623,1,1,2) [2025-03-02 23:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594623', 'tblTempUsageDetail_20' ) start [2025-03-02 23:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594623', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:55:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:55:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:55:23] Production.INFO: ==18305== Releasing lock... [2025-03-02 23:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:55:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:56:01] Production.INFO: ==18373== Lock acquired, processing the job... [2025-03-03 04:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:56:01] Production.INFO: neon service started [2025-03-03 04:56:01] Production.INFO: neon service started [2025-03-03 04:56:01] Production.INFO: ==18373== Releasing lock... [2025-03-03 04:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:56:02] Production.INFO: ==18375== Lock acquired, processing the job... [2025-03-02 23:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:56:02] Production.INFO: ==18375== Releasing lock... [2025-03-02 23:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:56:02] Production.INFO: ==18377== Lock acquired, processing the job... [2025-03-03 04:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:56:02] Production.INFO: ==18377== Releasing lock... [2025-03-03 04:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-02 23:56:03] Production.INFO: ==18385== Lock acquired, processing the job... [2025-03-02 23:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:56:03] Production.INFO: ==18379== Lock acquired, processing the job... [2025-03-02 23:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:56:03] Production.INFO: ==18387== Lock acquired, processing the job... [2025-03-02 23:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:56:03] Production.INFO: ==18381== Lock acquired, processing the job... [2025-03-02 23:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:56:03] Production.INFO: Account Balance Start. [2025-03-02 23:56:03] Production.INFO: CreateAllLog Start [2025-03-02 23:56:03] Production.INFO: ==18383== Lock acquired, processing the job... [2025-03-02 23:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:56:03] Production.INFO: 117 [2025-03-02 23:56:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:56:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:56:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: ==18389== Lock acquired, processing the job... [2025-03-02 23:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:56:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:56:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: count ==13 [2025-03-02 23:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:56:04] Production.INFO: count ==21 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594627') start [2025-03-02 23:56:04] Production.INFO: ==18381== Releasing lock... [2025-03-02 23:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:56:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.ERROR: done [2025-03-02 23:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594627') end [2025-03-02 23:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:56:04] Production.INFO: 1 [2025-03-02 23:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:56:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: ==18389== Releasing lock... [2025-03-02 23:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:56:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.ERROR: done [2025-03-02 23:56:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:56:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:56:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:56:04] Production.INFO: Total Charge 0 [2025-03-02 23:56:05] Production.INFO: CreateAllLog End [2025-03-02 23:56:05] Production.INFO: Account Balance End. [2025-03-02 23:56:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:56:05] Production.INFO: ==18385== Releasing lock... [2025-03-02 23:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:56:12] Production.ERROR: CronJobId end10 [2025-03-02 23:56:12] Production.INFO: ==18383== Releasing lock... [2025-03-02 23:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:56:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:56:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:56:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:56:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:56:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:56:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:56:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:56:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:56:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:56:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:56:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:56:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:56:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:56:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:56:14] Production.INFO: call_cost start [2025-03-02 23:56:14] Production.INFO: call_cost end [2025-03-02 23:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:56:14] Production.INFO: ==18379== Releasing lock... [2025-03-02 23:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:56:16] Production.INFO: count ==1335 [2025-03-02 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594628', 'tblTempUsageDetail_20' ) start [2025-03-02 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594628', 'tblTempUsageDetail_20' ) end [2025-03-02 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594628', 'tblTempVendorCDR_20' ) start [2025-03-02 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594628', 'tblTempVendorCDR_20' ) end [2025-03-02 23:56:17] Production.INFO: ProcessCDR(1,14594628,1,1,2) [2025-03-02 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594628', 'tblTempUsageDetail_20' ) start [2025-03-02 23:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594628', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:56:24] Production.INFO: ==18387== Releasing lock... [2025-03-02 23:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:56:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:57:01] Production.INFO: ==18458== Lock acquired, processing the job... [2025-03-03 04:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:57:01] Production.INFO: neon service started [2025-03-03 04:57:01] Production.INFO: neon service started [2025-03-03 04:57:01] Production.INFO: ==18458== Releasing lock... [2025-03-03 04:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:57:01] Production.INFO: ==18460== Lock acquired, processing the job... [2025-03-02 23:57:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:57:02] Production.INFO: ==18460== Releasing lock... [2025-03-02 23:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:57:02] Production.INFO: ==18462== Lock acquired, processing the job... [2025-03-03 04:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:57:02] Production.INFO: ==18462== Releasing lock... [2025-03-03 04:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:57:02] Production.INFO: ==18468== Lock acquired, processing the job... [2025-03-02 23:57:02] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:57:02] Production.INFO: ==18464== Lock acquired, processing the job... [2025-03-02 23:57:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:57:03] Production.INFO: ==18472== Lock acquired, processing the job... [2025-03-02 23:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:57:03] Production.INFO: ==18466== Lock acquired, processing the job... [2025-03-02 23:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:57:03] Production.INFO: ==18470== Lock acquired, processing the job... [2025-03-02 23:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:57:03] Production.INFO: ==18475== Lock acquired, processing the job... [2025-03-02 23:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:57:03] Production.INFO: Account Balance Start. [2025-03-02 23:57:03] Production.INFO: CreateAllLog Start [2025-03-02 23:57:03] Production.INFO: 117 [2025-03-02 23:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:57:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:03] Production.INFO: count ==13 [2025-03-02 23:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:57:03] Production.ERROR: done [2025-03-02 23:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:57:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:03] Production.INFO: count ==21 [2025-03-02 23:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594632') start [2025-03-02 23:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594632') end [2025-03-02 23:57:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:57:03] Production.INFO: 1 [2025-03-02 23:57:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:57:03] Production.ERROR: done [2025-03-02 23:57:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:03] Production.INFO: ==18466== Releasing lock... [2025-03-02 23:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:57:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:03] Production.INFO: ==18475== Releasing lock... [2025-03-02 23:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:57:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:57:03] Production.INFO: Date 2025-02-12 [2025-03-02 23:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:57:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:57:03] Production.INFO: Date 2025-02-13 [2025-03-02 23:57:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:57:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:57:04] Production.INFO: Total Charge 0 [2025-03-02 23:57:04] Production.INFO: CreateAllLog End [2025-03-02 23:57:04] Production.INFO: Account Balance End. [2025-03-02 23:57:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:57:04] Production.INFO: ==18470== Releasing lock... [2025-03-02 23:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:57:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:57:12] Production.ERROR: CronJobId end10 [2025-03-02 23:57:12] Production.INFO: ==18468== Releasing lock... [2025-03-02 23:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:57:15] Production.INFO: call_cost start [2025-03-02 23:57:15] Production.INFO: call_cost end [2025-03-02 23:57:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:57:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:57:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:57:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:57:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:57:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:57:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:57:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:57:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:57:15] Production.INFO: ==18464== Releasing lock... [2025-03-02 23:57:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:57:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:57:16] Production.INFO: count ==1335 [2025-03-02 23:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594633', 'tblTempUsageDetail_20' ) start [2025-03-02 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594633', 'tblTempUsageDetail_20' ) end [2025-03-02 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594633', 'tblTempVendorCDR_20' ) start [2025-03-02 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594633', 'tblTempVendorCDR_20' ) end [2025-03-02 23:57:16] Production.INFO: ProcessCDR(1,14594633,1,1,2) [2025-03-02 23:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594633', 'tblTempUsageDetail_20' ) start [2025-03-02 23:57:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594633', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:57:24] Production.INFO: ==18472== Releasing lock... [2025-03-02 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:57:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:58:01] Production.INFO: ==18534== Lock acquired, processing the job... [2025-03-03 04:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:58:01] Production.INFO: neon service started [2025-03-03 04:58:01] Production.INFO: neon service started [2025-03-03 04:58:01] Production.INFO: ==18534== Releasing lock... [2025-03-03 04:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:58:02] Production.INFO: ==18536== Lock acquired, processing the job... [2025-03-02 23:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:58:02] Production.INFO: ==18536== Releasing lock... [2025-03-02 23:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:58:02] Production.INFO: ==18538== Lock acquired, processing the job... [2025-03-03 04:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:58:02] Production.INFO: ==18538== Releasing lock... [2025-03-03 04:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:58:03] Production.INFO: ==18543== Lock acquired, processing the job... [2025-03-02 23:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:58:03] Production.INFO: ==18549== Lock acquired, processing the job... [2025-03-02 23:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:58:03] Production.INFO: ==18541== Lock acquired, processing the job... [2025-03-02 23:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:58:03] Production.INFO: ==18547== Lock acquired, processing the job... [2025-03-02 23:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:58:03] Production.INFO: ==18545== Lock acquired, processing the job... [2025-03-02 23:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:58:03] Production.INFO: ==18551== Lock acquired, processing the job... [2025-03-02 23:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:58:03] Production.INFO: Account Balance Start. [2025-03-02 23:58:03] Production.INFO: CreateAllLog Start [2025-03-02 23:58:03] Production.INFO: 117 [2025-03-02 23:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:58:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:03] Production.INFO: count ==13 [2025-03-02 23:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:58:03] Production.INFO: count ==21 [2025-03-02 23:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594637') start [2025-03-02 23:58:03] Production.INFO: Date 2025-02-09 [2025-03-02 23:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:03] Production.INFO: ==18543== Releasing lock... [2025-03-02 23:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:58:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:58:03] Production.INFO: Date 2025-02-10 [2025-03-02 23:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:03] Production.ERROR: done [2025-03-02 23:58:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:58:03] Production.INFO: Date 2025-02-11 [2025-03-02 23:58:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594637') end [2025-03-02 23:58:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:58:03] Production.INFO: 1 [2025-03-02 23:58:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:58:03] Production.INFO: ==18551== Releasing lock... [2025-03-02 23:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:58:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:58:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.ERROR: done [2025-03-02 23:58:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:58:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-25 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-26 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-27 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-02-28 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-03-01 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Date 2025-03-02 [2025-03-02 23:58:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:58:04] Production.INFO: Total Charge 0 [2025-03-02 23:58:04] Production.INFO: CreateAllLog End [2025-03-02 23:58:04] Production.INFO: Account Balance End. [2025-03-02 23:58:04] Production.ERROR: CronJobId end 12 [2025-03-02 23:58:04] Production.INFO: ==18547== Releasing lock... [2025-03-02 23:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:58:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:58:11] Production.ERROR: CronJobId end10 [2025-03-02 23:58:11] Production.INFO: ==18545== Releasing lock... [2025-03-02 23:58:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:58:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:58:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:58:13] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:58:13] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:58:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:58:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:58:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:58:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:58:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:58:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:58:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:58:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:58:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:58:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:58:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:58:14] Production.INFO: call_cost start [2025-03-02 23:58:14] Production.INFO: call_cost end [2025-03-02 23:58:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:58:14] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:58:14] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:58:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:58:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:58:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:58:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:58:14] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:58:14] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:58:14] Production.INFO: ==18541== Releasing lock... [2025-03-02 23:58:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:58:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:58:16] Production.INFO: count ==1335 [2025-03-02 23:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594638', 'tblTempUsageDetail_20' ) start [2025-03-02 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594638', 'tblTempUsageDetail_20' ) end [2025-03-02 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594638', 'tblTempVendorCDR_20' ) start [2025-03-02 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594638', 'tblTempVendorCDR_20' ) end [2025-03-02 23:58:16] Production.INFO: ProcessCDR(1,14594638,1,1,2) [2025-03-02 23:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594638', 'tblTempUsageDetail_20' ) start [2025-03-02 23:58:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594638', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:58:23] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:58:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:58:23] Production.INFO: ==18549== Releasing lock... [2025-03-02 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:58:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 04:59:02] Production.INFO: ==18617== Lock acquired, processing the job... [2025-03-03 04:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 04:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 04:59:02] Production.INFO: neon service started [2025-03-03 04:59:02] Production.INFO: neon service started [2025-03-03 04:59:02] Production.INFO: ==18617== Releasing lock... [2025-03-03 04:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 04:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-02 23:59:02] Production.INFO: ==18619== Lock acquired, processing the job... [2025-03-02 23:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-02 23:59:02] Production.INFO: ==18619== Releasing lock... [2025-03-02 23:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-02 23:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:59:02] Production.INFO: ==18621== Lock acquired, processing the job... [2025-03-03 04:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:59:02] Production.INFO: ==18621== Releasing lock... [2025-03-03 04:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 04:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-02 23:59:03] Production.INFO: ==18624== Lock acquired, processing the job... [2025-03-02 23:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-02 23:59:03] Production.INFO: ==18626== Lock acquired, processing the job... [2025-03-02 23:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-02 23:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-02 23:59:03] Production.INFO: ==18630== Lock acquired, processing the job... [2025-03-02 23:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-02 23:59:03] Production.INFO: Account Balance Start. [2025-03-02 23:59:03] Production.INFO: CreateAllLog Start [2025-03-02 23:59:03] Production.INFO: 117 [2025-03-02 23:59:03] Production.INFO: Date 2025-02-08 [2025-03-02 23:59:03] Production.INFO: ==18628== Lock acquired, processing the job... [2025-03-02 23:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-02 23:59:03] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-09 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: ==18626== Releasing lock... [2025-03-02 23:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-02 23:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-02 23:59:04] Production.INFO: Date 2025-02-10 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: ==18634== Lock acquired, processing the job... [2025-03-02 23:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-02 23:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250302Live done [2025-03-02 23:59:04] Production.INFO: ==18632== Lock acquired, processing the job... [2025-03-02 23:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-02 23:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302Live done [2025-03-02 23:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250302Live) [2025-03-02 23:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-02','2025-03-02','120250302Live') [2025-03-02 23:59:04] Production.INFO: Date 2025-02-11 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-12 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-13 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:59:04] Production.INFO: Date 2025-02-14 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: count ==13 [2025-03-02 23:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-02 23:59:04] Production.INFO: Date 2025-02-15 [2025-03-02 23:59:04] Production.INFO: count ==21 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594642') start [2025-03-02 23:59:04] Production.INFO: Date 2025-02-16 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-17 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-18 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.ERROR: done [2025-03-02 23:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-02 23:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594642') end [2025-03-02 23:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-02 23:59:04] Production.INFO: 1 [2025-03-02 23:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-02 23:59:04] Production.INFO: Date 2025-02-19 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-20 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: ==18634== Releasing lock... [2025-03-02 23:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-02 23:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-02 23:59:04] Production.ERROR: done [2025-03-02 23:59:04] Production.INFO: Date 2025-02-21 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-22 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-02 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-02 23:59:04] Production.INFO: Date 2025-02-23 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:04] Production.INFO: Date 2025-02-24 [2025-03-02 23:59:04] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Date 2025-02-25 [2025-03-02 23:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Date 2025-02-26 [2025-03-02 23:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Date 2025-02-27 [2025-03-02 23:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Date 2025-02-28 [2025-03-02 23:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Date 2025-03-01 [2025-03-02 23:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Date 2025-03-02 [2025-03-02 23:59:05] Production.INFO: Reseller ==> 0 [2025-03-02 23:59:05] Production.INFO: Total Charge 0 [2025-03-02 23:59:05] Production.INFO: CreateAllLog End [2025-03-02 23:59:05] Production.INFO: Account Balance End. [2025-03-02 23:59:05] Production.ERROR: CronJobId end 12 [2025-03-02 23:59:05] Production.INFO: ==18630== Releasing lock... [2025-03-02 23:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-02 23:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-02 23:59:13] Production.ERROR: CronJobId end10 [2025-03-02 23:59:13] Production.INFO: ==18628== Releasing lock... [2025-03-02 23:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-02 23:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-02 23:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-02 23:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-02 23:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-02 23:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-02 23:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-02 23:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-02 23:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-02 23:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-02 23:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-02 23:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-02 23:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-02 23:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-02 23:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-02 23:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-02 23:59:15] Production.INFO: call_cost start [2025-03-02 23:59:15] Production.INFO: call_cost end [2025-03-02 23:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-02 23:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-02 23:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-02 23:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-02 23:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-02 23:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-02 23:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-02 23:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-02 23:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-02 23:59:15] Production.INFO: ==18624== Releasing lock... [2025-03-02 23:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-02 23:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-02 23:59:16] Production.INFO: count ==1335 [2025-03-02 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-02 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594643', 'tblTempUsageDetail_20' ) start [2025-03-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594643', 'tblTempUsageDetail_20' ) end [2025-03-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594643', 'tblTempVendorCDR_20' ) start [2025-03-02 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594643', 'tblTempVendorCDR_20' ) end [2025-03-02 23:59:17] Production.INFO: ProcessCDR(1,14594643,1,1,2) [2025-03-02 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-02 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-02 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594643', 'tblTempUsageDetail_20' ) start [2025-03-02 23:59:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594643', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-02 23:59:25] Production.ERROR: **Email Sent Status 1 [2025-03-02 23:59:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-02 23:59:25] Production.INFO: ==18632== Releasing lock... [2025-03-02 23:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-02 23:59:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 05:00:01] Production.INFO: ==18699== Lock acquired, processing the job... [2025-03-03 05:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:00:01] Production.INFO: neon service started [2025-03-03 05:00:01] Production.INFO: neon service started [2025-03-03 05:00:01] Production.INFO: ==18699== Releasing lock... [2025-03-03 05:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:00:02] Production.INFO: ==18701== Lock acquired, processing the job... [2025-03-03 00:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:00:02] Production.INFO: ==18703== Lock acquired, processing the job... [2025-03-03 05:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:00:02] Production.INFO: ==18703== Releasing lock... [2025-03-03 05:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:00:03] Production.INFO: ==18701== Releasing lock... [2025-03-03 00:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:00:03] Production.INFO: ==18708== Lock acquired, processing the job... [2025-03-03 00:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 00:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 00:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 00:00:04] Production.INFO: ==18708== Releasing lock... [2025-03-03 00:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 00:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:00:04] Production.INFO: ==18714== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: createsummary-command-createsummary-companyid-1-cronjobid-9 #Starts# [2025-03-03 00:00:04] Production.INFO: ==18710== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:00:04] Production.INFO: ==18712== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:00:04] Production.INFO: ==18716== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:00:04] Production.INFO: ==18718== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:00:04] Production.INFO: ==18720== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:00:04] Production.INFO: ==18722== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 00:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:00:04] Production.INFO: ==18724== Lock acquired, processing the job... [2025-03-03 00:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:00:04] Production.INFO: ==18712== Releasing lock... [2025-03-03 00:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:00:04] Production.INFO: Account Balance Start. [2025-03-03 00:00:04] Production.INFO: CreateAllLog Start [2025-03-03 00:00:04] Production.INFO: 117 [2025-03-03 00:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:00:04] Production.INFO: count ==13 [2025-03-03 00:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:00:04] Production.INFO: count ==21 [2025-03-03 00:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594647') start [2025-03-03 00:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.ERROR: done [2025-03-03 00:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:00:05] Production.ERROR: done [2025-03-03 00:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594647') end [2025-03-03 00:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:00:05] Production.INFO: 1 [2025-03-03 00:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 00:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594648', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 00:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: ==18724== Releasing lock... [2025-03-03 00:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:00:05] Production.ERROR: done [2025-03-03 00:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: next invoice date [2025-03-03 00:00:05] Production.INFO: 2025-03-31 [2025-03-03 00:00:05] Production.INFO: getdaysdiff [2025-03-03 00:00:05] Production.INFO: +28 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,28,28,'RMScheduler',2025-03-03 00:00:05,0,0,,,0) [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: next invoice date [2025-03-03 00:00:05] Production.INFO: 2025-03-31 [2025-03-03 00:00:05] Production.INFO: getdaysdiff [2025-03-03 00:00:05] Production.INFO: +28 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,28,28,'RMScheduler',2025-03-03 00:00:05,0,0,,,0) [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-02-25 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-02-26 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-02-27 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-02-28 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-03-01 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-03-02 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Date 2025-03-03 [2025-03-03 00:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 00:00:06] Production.INFO: Total Charge 0 [2025-03-03 00:00:06] Production.INFO: CreateAllLog End [2025-03-03 00:00:06] Production.INFO: Account Balance End. [2025-03-03 00:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 00:00:06] Production.INFO: ==18718== Releasing lock... [2025-03-03 00:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594648', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 00:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 00:00:10] Production.INFO: ProcessCDR(1,14594648,1,1,2) [2025-03-03 00:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594648,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594648,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 00:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 00:00:10] Production.INFO: ==18722== Releasing lock... [2025-03-03 00:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 00:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 00:00:13] Production.ERROR: tmp_tblUsageDetailsReport_120250227 done [2025-03-03 00:00:13] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250227 done [2025-03-03 00:00:13] Production.ERROR: DELETE FROM tmp_tblUsageDetailsReport_120250227 [2025-03-03 00:00:15] Production.INFO: call prc_generateSummary(1,'2025-02-27','2025-02-27','120250227') [2025-03-03 00:00:18] Production.INFO: count ==1335 [2025-03-03 00:00:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594649', 'tblTempUsageDetail_20' ) start [2025-03-03 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594649', 'tblTempUsageDetail_20' ) end [2025-03-03 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594649', 'tblTempVendorCDR_20' ) start [2025-03-03 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594649', 'tblTempVendorCDR_20' ) end [2025-03-03 00:00:18] Production.INFO: ProcessCDR(1,14594649,1,1,2) [2025-03-03 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:00:21] Production.ERROR: CronJobId end10 [2025-03-03 00:00:21] Production.INFO: ==18716== Releasing lock... [2025-03-03 00:00:21] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:00:21] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:00:22] Production.INFO: call prc_generateVendorSummary(1,'2025-02-27','2025-02-27','120250227') [2025-03-03 00:00:23] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:00:23] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:00:23] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:00:23] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:00:23] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:00:23] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:00:23] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:00:23] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:00:23] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:00:23] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:00:23] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:00:23] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:00:23] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:00:23] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:00:24] Production.INFO: call_cost start [2025-03-03 00:00:24] Production.INFO: call_cost end [2025-03-03 00:00:24] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:00:24] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:00:24] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:00:24] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:00:24] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:00:24] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:00:24] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:00:24] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:00:24] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:00:24] Production.INFO: ==18710== Releasing lock... [2025-03-03 00:00:24] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:00:26] Production.ERROR: tmp_tblUsageDetailsReport_120250228 done [2025-03-03 00:00:26] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250228 done [2025-03-03 00:00:26] Production.ERROR: DELETE FROM tmp_tblUsageDetailsReport_120250228 [2025-03-03 00:00:27] Production.INFO: call prc_generateSummary(1,'2025-02-28','2025-02-28','120250228') [2025-03-03 00:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594649', 'tblTempUsageDetail_20' ) start [2025-03-03 00:00:31] Production.INFO: call prc_generateVendorSummary(1,'2025-02-28','2025-02-28','120250228') [2025-03-03 00:00:32] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594649', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:00:33] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:00:33] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:00:33] Production.INFO: ==18720== Releasing lock... [2025-03-03 00:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:00:33] Production.INFO: 39 MB #Memory Used# [2025-03-03 00:00:34] Production.ERROR: tmp_tblUsageDetailsReport_120250301 done [2025-03-03 00:00:34] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250301 done [2025-03-03 00:00:34] Production.ERROR: DELETE FROM tmp_tblUsageDetailsReport_120250301 [2025-03-03 00:00:34] Production.INFO: call prc_generateSummary(1,'2025-03-01','2025-03-01','120250301') [2025-03-03 00:00:37] Production.INFO: call prc_generateVendorSummary(1,'2025-03-01','2025-03-01','120250301') [2025-03-03 00:00:40] Production.ERROR: tmp_tblUsageDetailsReport_120250302 done [2025-03-03 00:00:40] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250302 done [2025-03-03 00:00:40] Production.ERROR: DELETE FROM tmp_tblUsageDetailsReport_120250302 [2025-03-03 00:00:41] Production.INFO: call prc_generateSummary(1,'2025-03-02','2025-03-02','120250302') [2025-03-03 00:00:43] Production.INFO: call prc_generateVendorSummary(1,'2025-03-02','2025-03-02','120250302') [2025-03-03 00:00:46] Production.ERROR: CronJobId end9 [2025-03-03 00:00:46] Production.INFO: ==18714== Releasing lock... [2025-03-03 00:00:46] Production.INFO: createsummary-command-createsummary-companyid-1-cronjobid-9 #Stops# [2025-03-03 00:00:46] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:01:02] Production.INFO: ==18811== Lock acquired, processing the job... [2025-03-03 05:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:01:02] Production.INFO: neon service started [2025-03-03 05:01:02] Production.INFO: neon service started [2025-03-03 05:01:02] Production.INFO: ==18811== Releasing lock... [2025-03-03 05:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:01:02] Production.INFO: ==18815== Lock acquired, processing the job... [2025-03-03 00:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:01:02] Production.INFO: ==18815== Releasing lock... [2025-03-03 00:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:01:03] Production.INFO: ==18817== Lock acquired, processing the job... [2025-03-03 05:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:01:03] Production.INFO: ==18817== Releasing lock... [2025-03-03 05:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:01:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:01:03] Production.INFO: ==18822== Lock acquired, processing the job... [2025-03-03 00:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:01:03] Production.INFO: ==18820== Lock acquired, processing the job... [2025-03-03 00:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:01:03] Production.INFO: ==18830== Lock acquired, processing the job... [2025-03-03 00:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:01:03] Production.INFO: ==18824== Lock acquired, processing the job... [2025-03-03 00:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:01:04] Production.INFO: ==18826== Lock acquired, processing the job... [2025-03-03 00:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:01:04] Production.INFO: ==18822== Releasing lock... [2025-03-03 00:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:01:04] Production.INFO: count ==13 [2025-03-03 00:01:04] Production.INFO: ==18828== Lock acquired, processing the job... [2025-03-03 00:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:01:04] Production.INFO: count ==21 [2025-03-03 00:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594652') start [2025-03-03 00:01:04] Production.INFO: Account Balance Start. [2025-03-03 00:01:04] Production.INFO: CreateAllLog Start [2025-03-03 00:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:01:04] Production.INFO: 117 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594652') end [2025-03-03 00:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:01:04] Production.INFO: 1 [2025-03-03 00:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:01:04] Production.INFO: ==18830== Releasing lock... [2025-03-03 00:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.ERROR: done [2025-03-03 00:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.ERROR: done [2025-03-03 00:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:01:05] Production.INFO: Total Charge 0 [2025-03-03 00:01:05] Production.INFO: CreateAllLog End [2025-03-03 00:01:05] Production.INFO: Account Balance End. [2025-03-03 00:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:01:05] Production.INFO: ==18826== Releasing lock... [2025-03-03 00:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:01:12] Production.ERROR: CronJobId end10 [2025-03-03 00:01:12] Production.INFO: ==18824== Releasing lock... [2025-03-03 00:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:01:15] Production.INFO: call_cost start [2025-03-03 00:01:15] Production.INFO: call_cost end [2025-03-03 00:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:01:15] Production.INFO: ==18820== Releasing lock... [2025-03-03 00:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:01:16] Production.INFO: count ==1335 [2025-03-03 00:01:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594654', 'tblTempUsageDetail_20' ) start [2025-03-03 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594654', 'tblTempUsageDetail_20' ) end [2025-03-03 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594654', 'tblTempVendorCDR_20' ) start [2025-03-03 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594654', 'tblTempVendorCDR_20' ) end [2025-03-03 00:01:17] Production.INFO: ProcessCDR(1,14594654,1,1,2) [2025-03-03 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594654', 'tblTempUsageDetail_20' ) start [2025-03-03 00:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594654', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:01:24] Production.INFO: ==18828== Releasing lock... [2025-03-03 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:01:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-03 05:02:01] Production.INFO: ==18908== Lock acquired, processing the job... [2025-03-03 05:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:02:01] Production.INFO: neon service started [2025-03-03 05:02:01] Production.INFO: neon service started [2025-03-03 05:02:01] Production.INFO: ==18908== Releasing lock... [2025-03-03 05:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:02:02] Production.INFO: ==18910== Lock acquired, processing the job... [2025-03-03 00:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:02:02] Production.INFO: ==18910== Releasing lock... [2025-03-03 00:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:02:02] Production.INFO: ==18912== Lock acquired, processing the job... [2025-03-03 05:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:02:02] Production.INFO: ==18912== Releasing lock... [2025-03-03 05:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:02:03] Production.INFO: ==18925== Lock acquired, processing the job... [2025-03-03 00:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:02:03] Production.INFO: ==18923== Lock acquired, processing the job... [2025-03-03 00:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:02:03] Production.INFO: ==18915== Lock acquired, processing the job... [2025-03-03 00:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:02:03] Production.INFO: count ==13 [2025-03-03 00:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:02:03] Production.INFO: count ==21 [2025-03-03 00:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594655') start [2025-03-03 00:02:03] Production.INFO: ==18917== Lock acquired, processing the job... [2025-03-03 00:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:02:03] Production.INFO: ==18919== Lock acquired, processing the job... [2025-03-03 00:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:02:04] Production.INFO: ==18921== Lock acquired, processing the job... [2025-03-03 00:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:02:04] Production.INFO: Account Balance Start. [2025-03-03 00:02:04] Production.INFO: CreateAllLog Start [2025-03-03 00:02:04] Production.INFO: 117 [2025-03-03 00:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594655') end [2025-03-03 00:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:02:04] Production.INFO: 1 [2025-03-03 00:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: ==18925== Releasing lock... [2025-03-03 00:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.ERROR: done [2025-03-03 00:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: ==18917== Releasing lock... [2025-03-03 00:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:02:04] Production.ERROR: done [2025-03-03 00:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:02:05] Production.INFO: Total Charge 0 [2025-03-03 00:02:05] Production.INFO: CreateAllLog End [2025-03-03 00:02:05] Production.INFO: Account Balance End. [2025-03-03 00:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:02:05] Production.INFO: ==18921== Releasing lock... [2025-03-03 00:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:02:13] Production.ERROR: CronJobId end10 [2025-03-03 00:02:13] Production.INFO: ==18919== Releasing lock... [2025-03-03 00:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:02:15] Production.INFO: call_cost start [2025-03-03 00:02:15] Production.INFO: call_cost end [2025-03-03 00:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:02:15] Production.INFO: ==18915== Releasing lock... [2025-03-03 00:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:02:16] Production.INFO: count ==409 [2025-03-03 00:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594659', 'tblTempUsageDetail_20' ) start [2025-03-03 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594659', 'tblTempUsageDetail_20' ) end [2025-03-03 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594659', 'tblTempVendorCDR_20' ) start [2025-03-03 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594659', 'tblTempVendorCDR_20' ) end [2025-03-03 00:02:17] Production.INFO: ProcessCDR(1,14594659,1,1,2) [2025-03-03 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594659', 'tblTempUsageDetail_20' ) start [2025-03-03 00:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594659', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:02:25] Production.INFO: ==18923== Releasing lock... [2025-03-03 00:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:02:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:03:02] Production.INFO: ==18995== Lock acquired, processing the job... [2025-03-03 05:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:03:02] Production.INFO: neon service started [2025-03-03 05:03:02] Production.INFO: neon service started [2025-03-03 05:03:02] Production.INFO: ==18995== Releasing lock... [2025-03-03 05:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:03:02] Production.INFO: ==18997== Lock acquired, processing the job... [2025-03-03 00:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:03:02] Production.INFO: ==18999== Lock acquired, processing the job... [2025-03-03 05:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:03:02] Production.INFO: ==18999== Releasing lock... [2025-03-03 05:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:03:02] Production.INFO: ==18997== Releasing lock... [2025-03-03 00:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:03:03] Production.INFO: ==19005== Lock acquired, processing the job... [2025-03-03 00:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:03:03] Production.INFO: ==19012== Lock acquired, processing the job... [2025-03-03 00:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:03:03] Production.INFO: ==19001== Lock acquired, processing the job... [2025-03-03 00:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:03:03] Production.INFO: ==19003== Lock acquired, processing the job... [2025-03-03 00:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:03:04] Production.INFO: count ==13 [2025-03-03 00:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:03:04] Production.INFO: count ==21 [2025-03-03 00:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594660') start [2025-03-03 00:03:04] Production.INFO: ==19007== Lock acquired, processing the job... [2025-03-03 00:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:03:04] Production.INFO: ==19010== Lock acquired, processing the job... [2025-03-03 00:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594660') end [2025-03-03 00:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:03:04] Production.INFO: 1 [2025-03-03 00:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:03:04] Production.INFO: Account Balance Start. [2025-03-03 00:03:04] Production.INFO: CreateAllLog Start [2025-03-03 00:03:04] Production.INFO: 117 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: ==19012== Releasing lock... [2025-03-03 00:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: ==19003== Releasing lock... [2025-03-03 00:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.ERROR: done [2025-03-03 00:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.ERROR: done [2025-03-03 00:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:03:05] Production.INFO: Total Charge 0 [2025-03-03 00:03:05] Production.INFO: CreateAllLog End [2025-03-03 00:03:05] Production.INFO: Account Balance End. [2025-03-03 00:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:03:05] Production.INFO: ==19007== Releasing lock... [2025-03-03 00:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:03:12] Production.ERROR: CronJobId end10 [2025-03-03 00:03:12] Production.INFO: ==19005== Releasing lock... [2025-03-03 00:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:03:15] Production.INFO: call_cost start [2025-03-03 00:03:15] Production.INFO: call_cost end [2025-03-03 00:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:03:15] Production.INFO: ==19001== Releasing lock... [2025-03-03 00:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:03:17] Production.INFO: count ==409 [2025-03-03 00:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594664', 'tblTempUsageDetail_20' ) start [2025-03-03 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594664', 'tblTempUsageDetail_20' ) end [2025-03-03 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594664', 'tblTempVendorCDR_20' ) start [2025-03-03 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594664', 'tblTempVendorCDR_20' ) end [2025-03-03 00:03:17] Production.INFO: ProcessCDR(1,14594664,1,1,2) [2025-03-03 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594664', 'tblTempUsageDetail_20' ) start [2025-03-03 00:03:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594664', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:03:24] Production.INFO: ==19010== Releasing lock... [2025-03-03 00:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:03:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:04:01] Production.INFO: ==19075== Lock acquired, processing the job... [2025-03-03 05:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:04:01] Production.INFO: neon service started [2025-03-03 05:04:01] Production.INFO: neon service started [2025-03-03 05:04:01] Production.INFO: ==19075== Releasing lock... [2025-03-03 05:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:04:02] Production.INFO: ==19077== Lock acquired, processing the job... [2025-03-03 00:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:04:02] Production.INFO: ==19077== Releasing lock... [2025-03-03 00:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:04:02] Production.INFO: ==19079== Lock acquired, processing the job... [2025-03-03 05:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:04:02] Production.INFO: ==19079== Releasing lock... [2025-03-03 05:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:04:03] Production.INFO: ==19089== Lock acquired, processing the job... [2025-03-03 00:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:04:03] Production.INFO: ==19087== Lock acquired, processing the job... [2025-03-03 00:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:04:03] Production.INFO: ==19093== Lock acquired, processing the job... [2025-03-03 00:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:04:03] Production.INFO: ==19091== Lock acquired, processing the job... [2025-03-03 00:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:04:03] Production.INFO: Account Balance Start. [2025-03-03 00:04:03] Production.INFO: CreateAllLog Start [2025-03-03 00:04:03] Production.INFO: 117 [2025-03-03 00:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:04:03] Production.INFO: ==19095== Lock acquired, processing the job... [2025-03-03 00:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.INFO: ==19097== Lock acquired, processing the job... [2025-03-03 00:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:04:03] Production.INFO: ==19089== Releasing lock... [2025-03-03 00:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:04:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:04:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:04:04] Production.INFO: count ==13 [2025-03-03 00:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:04:04] Production.INFO: count ==21 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594668') start [2025-03-03 00:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594668') end [2025-03-03 00:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:04:04] Production.INFO: 1 [2025-03-03 00:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:04:04] Production.ERROR: done [2025-03-03 00:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: ==19097== Releasing lock... [2025-03-03 00:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.ERROR: done [2025-03-03 00:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:04:04] Production.INFO: Total Charge 0 [2025-03-03 00:04:04] Production.INFO: CreateAllLog End [2025-03-03 00:04:05] Production.INFO: Account Balance End. [2025-03-03 00:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:04:05] Production.INFO: ==19093== Releasing lock... [2025-03-03 00:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:04:12] Production.ERROR: CronJobId end10 [2025-03-03 00:04:12] Production.INFO: ==19091== Releasing lock... [2025-03-03 00:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:04:14] Production.INFO: call_cost start [2025-03-03 00:04:14] Production.INFO: call_cost end [2025-03-03 00:04:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:04:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:04:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:04:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:04:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:04:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:04:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:04:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:04:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:04:14] Production.INFO: ==19087== Releasing lock... [2025-03-03 00:04:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:04:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:04:16] Production.INFO: count ==409 [2025-03-03 00:04:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594669', 'tblTempUsageDetail_20' ) start [2025-03-03 00:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594669', 'tblTempUsageDetail_20' ) end [2025-03-03 00:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594669', 'tblTempVendorCDR_20' ) start [2025-03-03 00:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594669', 'tblTempVendorCDR_20' ) end [2025-03-03 00:04:16] Production.INFO: ProcessCDR(1,14594669,1,1,2) [2025-03-03 00:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594669', 'tblTempUsageDetail_20' ) start [2025-03-03 00:04:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594669', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:04:24] Production.INFO: ==19095== Releasing lock... [2025-03-03 00:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:04:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:05:02] Production.INFO: ==19207== Lock acquired, processing the job... [2025-03-03 05:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:05:02] Production.INFO: neon service started [2025-03-03 05:05:02] Production.INFO: neon service started [2025-03-03 05:05:02] Production.INFO: ==19207== Releasing lock... [2025-03-03 05:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:05:02] Production.INFO: ==19209== Lock acquired, processing the job... [2025-03-03 00:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:05:02] Production.INFO: ==19209== Releasing lock... [2025-03-03 00:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:05:02] Production.INFO: ==19211== Lock acquired, processing the job... [2025-03-03 05:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:05:03] Production.INFO: ==19211== Releasing lock... [2025-03-03 05:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:05:03] Production.INFO: ==19214== Lock acquired, processing the job... [2025-03-03 00:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:05:03] Production.INFO: ==19216== Lock acquired, processing the job... [2025-03-03 00:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:05:03] Production.INFO: ==19218== Lock acquired, processing the job... [2025-03-03 00:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:05:03] Production.INFO: ==19220== Lock acquired, processing the job... [2025-03-03 00:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:05:04] Production.INFO: ==19222== Lock acquired, processing the job... [2025-03-03 00:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:05:04] Production.INFO: ==19216== Releasing lock... [2025-03-03 00:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:05:04] Production.INFO: Account Balance Start. [2025-03-03 00:05:04] Production.INFO: CreateAllLog Start [2025-03-03 00:05:04] Production.INFO: 117 [2025-03-03 00:05:04] Production.INFO: ==19224== Lock acquired, processing the job... [2025-03-03 00:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: count ==13 [2025-03-03 00:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:05:04] Production.INFO: count ==21 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594673') start [2025-03-03 00:05:04] Production.ERROR: done [2025-03-03 00:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594673') end [2025-03-03 00:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:05:04] Production.INFO: 1 [2025-03-03 00:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: ==19224== Releasing lock... [2025-03-03 00:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:05:04] Production.ERROR: done [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:05:05] Production.INFO: Total Charge 0 [2025-03-03 00:05:05] Production.INFO: CreateAllLog End [2025-03-03 00:05:05] Production.INFO: Account Balance End. [2025-03-03 00:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:05:05] Production.INFO: ==19220== Releasing lock... [2025-03-03 00:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:05:11] Production.ERROR: CronJobId end10 [2025-03-03 00:05:11] Production.INFO: ==19218== Releasing lock... [2025-03-03 00:05:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:05:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:05:14] Production.INFO: call_cost start [2025-03-03 00:05:14] Production.INFO: call_cost end [2025-03-03 00:05:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:05:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:05:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:05:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:05:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:05:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:05:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:05:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:05:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:05:14] Production.INFO: ==19214== Releasing lock... [2025-03-03 00:05:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:05:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:05:16] Production.INFO: count ==409 [2025-03-03 00:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594674', 'tblTempUsageDetail_20' ) start [2025-03-03 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594674', 'tblTempUsageDetail_20' ) end [2025-03-03 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594674', 'tblTempVendorCDR_20' ) start [2025-03-03 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594674', 'tblTempVendorCDR_20' ) end [2025-03-03 00:05:17] Production.INFO: ProcessCDR(1,14594674,1,1,2) [2025-03-03 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594674', 'tblTempUsageDetail_20' ) start [2025-03-03 00:05:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594674', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:05:24] Production.INFO: ==19222== Releasing lock... [2025-03-03 00:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:06:01] Production.INFO: ==19287== Lock acquired, processing the job... [2025-03-03 05:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:06:01] Production.INFO: neon service started [2025-03-03 05:06:01] Production.INFO: neon service started [2025-03-03 05:06:01] Production.INFO: ==19287== Releasing lock... [2025-03-03 05:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:06:01] Production.INFO: ==19289== Lock acquired, processing the job... [2025-03-03 00:06:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:06:02] Production.INFO: ==19289== Releasing lock... [2025-03-03 00:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:06:02] Production.INFO: ==19291== Lock acquired, processing the job... [2025-03-03 05:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:06:02] Production.INFO: ==19291== Releasing lock... [2025-03-03 05:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:06:03] Production.INFO: ==19300== Lock acquired, processing the job... [2025-03-03 00:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:06:03] Production.INFO: ==19302== Lock acquired, processing the job... [2025-03-03 00:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:06:03] Production.INFO: Account Balance Start. [2025-03-03 00:06:03] Production.INFO: CreateAllLog Start [2025-03-03 00:06:03] Production.INFO: 117 [2025-03-03 00:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:06:03] Production.INFO: ==19304== Lock acquired, processing the job... [2025-03-03 00:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: ==19294== Lock acquired, processing the job... [2025-03-03 00:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:06:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: ==19296== Lock acquired, processing the job... [2025-03-03 00:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:06:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:06:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: ==19298== Lock acquired, processing the job... [2025-03-03 00:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:06:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:06:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.INFO: count ==13 [2025-03-03 00:06:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:06:03] Production.INFO: count ==21 [2025-03-03 00:06:03] Production.ERROR: done [2025-03-03 00:06:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594677') start [2025-03-03 00:06:03] Production.INFO: Date 2025-02-17 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594677') end [2025-03-03 00:06:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:06:03] Production.INFO: 1 [2025-03-03 00:06:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:06:03] Production.INFO: Date 2025-02-18 [2025-03-03 00:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: ==19304== Releasing lock... [2025-03-03 00:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:06:04] Production.INFO: ==19296== Releasing lock... [2025-03-03 00:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:06:04] Production.ERROR: done [2025-03-03 00:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:06:04] Production.INFO: Total Charge 0 [2025-03-03 00:06:04] Production.INFO: CreateAllLog End [2025-03-03 00:06:05] Production.INFO: Account Balance End. [2025-03-03 00:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:06:05] Production.INFO: ==19300== Releasing lock... [2025-03-03 00:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:06:12] Production.ERROR: CronJobId end10 [2025-03-03 00:06:12] Production.INFO: ==19298== Releasing lock... [2025-03-03 00:06:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:06:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:06:14] Production.INFO: call_cost start [2025-03-03 00:06:14] Production.INFO: call_cost end [2025-03-03 00:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:06:14] Production.INFO: ==19294== Releasing lock... [2025-03-03 00:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:06:16] Production.INFO: count ==409 [2025-03-03 00:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594679', 'tblTempUsageDetail_20' ) start [2025-03-03 00:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594679', 'tblTempUsageDetail_20' ) end [2025-03-03 00:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594679', 'tblTempVendorCDR_20' ) start [2025-03-03 00:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594679', 'tblTempVendorCDR_20' ) end [2025-03-03 00:06:16] Production.INFO: ProcessCDR(1,14594679,1,1,2) [2025-03-03 00:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594679', 'tblTempUsageDetail_20' ) start [2025-03-03 00:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594679', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:06:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:06:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:06:23] Production.INFO: ==19302== Releasing lock... [2025-03-03 00:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:06:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:07:02] Production.INFO: ==19377== Lock acquired, processing the job... [2025-03-03 05:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:07:02] Production.INFO: neon service started [2025-03-03 05:07:02] Production.INFO: neon service started [2025-03-03 05:07:02] Production.INFO: ==19377== Releasing lock... [2025-03-03 05:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:07:02] Production.INFO: ==19381== Lock acquired, processing the job... [2025-03-03 05:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:07:02] Production.INFO: ==19381== Releasing lock... [2025-03-03 05:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:07:02] Production.INFO: ==19379== Lock acquired, processing the job... [2025-03-03 00:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:07:02] Production.INFO: ==19379== Releasing lock... [2025-03-03 00:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:07:03] Production.INFO: ==19383== Lock acquired, processing the job... [2025-03-03 00:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:07:03] Production.INFO: ==19385== Lock acquired, processing the job... [2025-03-03 00:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:07:03] Production.INFO: ==19390== Lock acquired, processing the job... [2025-03-03 00:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:07:03] Production.INFO: Account Balance Start. [2025-03-03 00:07:03] Production.INFO: CreateAllLog Start [2025-03-03 00:07:03] Production.INFO: 117 [2025-03-03 00:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: ==19385== Releasing lock... [2025-03-03 00:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:03] Production.INFO: ==19387== Lock acquired, processing the job... [2025-03-03 00:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:07:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: ==19392== Lock acquired, processing the job... [2025-03-03 00:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:07:04] Production.INFO: ==19394== Lock acquired, processing the job... [2025-03-03 00:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: count ==13 [2025-03-03 00:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:07:04] Production.INFO: count ==21 [2025-03-03 00:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594683') start [2025-03-03 00:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.ERROR: done [2025-03-03 00:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594683') end [2025-03-03 00:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:07:04] Production.INFO: 1 [2025-03-03 00:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:07:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:07:04] Production.INFO: Total Charge 0 [2025-03-03 00:07:04] Production.INFO: CreateAllLog End [2025-03-03 00:07:04] Production.INFO: ==19394== Releasing lock... [2025-03-03 00:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:07:04] Production.ERROR: done [2025-03-03 00:07:04] Production.INFO: Account Balance End. [2025-03-03 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:07:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:07:04] Production.INFO: ==19390== Releasing lock... [2025-03-03 00:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:07:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:07:11] Production.ERROR: CronJobId end10 [2025-03-03 00:07:11] Production.INFO: ==19387== Releasing lock... [2025-03-03 00:07:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:07:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:07:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:07:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:07:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:07:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:07:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:07:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:07:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:07:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:07:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:07:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:07:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:07:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:07:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:07:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:07:14] Production.INFO: call_cost start [2025-03-03 00:07:14] Production.INFO: call_cost end [2025-03-03 00:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:07:14] Production.INFO: ==19383== Releasing lock... [2025-03-03 00:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:07:16] Production.INFO: count ==409 [2025-03-03 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594684', 'tblTempUsageDetail_20' ) start [2025-03-03 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594684', 'tblTempUsageDetail_20' ) end [2025-03-03 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594684', 'tblTempVendorCDR_20' ) start [2025-03-03 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594684', 'tblTempVendorCDR_20' ) end [2025-03-03 00:07:17] Production.INFO: ProcessCDR(1,14594684,1,1,2) [2025-03-03 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594684', 'tblTempUsageDetail_20' ) start [2025-03-03 00:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594684', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:07:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:07:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:07:25] Production.INFO: ==19392== Releasing lock... [2025-03-03 00:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:07:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:08:01] Production.INFO: ==19471== Lock acquired, processing the job... [2025-03-03 05:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:08:01] Production.INFO: neon service started [2025-03-03 05:08:01] Production.INFO: neon service started [2025-03-03 05:08:01] Production.INFO: ==19471== Releasing lock... [2025-03-03 05:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:08:01] Production.INFO: ==19473== Lock acquired, processing the job... [2025-03-03 00:08:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:08:02] Production.INFO: ==19473== Releasing lock... [2025-03-03 00:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:08:02] Production.INFO: ==19475== Lock acquired, processing the job... [2025-03-03 05:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:08:02] Production.INFO: ==19475== Releasing lock... [2025-03-03 05:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:08:03] Production.INFO: ==19480== Lock acquired, processing the job... [2025-03-03 00:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:08:03] Production.INFO: ==19484== Lock acquired, processing the job... [2025-03-03 00:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:08:03] Production.INFO: ==19478== Lock acquired, processing the job... [2025-03-03 00:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:08:03] Production.INFO: ==19482== Lock acquired, processing the job... [2025-03-03 00:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:08:03] Production.INFO: Account Balance Start. [2025-03-03 00:08:03] Production.INFO: CreateAllLog Start [2025-03-03 00:08:03] Production.INFO: 117 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: ==19486== Lock acquired, processing the job... [2025-03-03 00:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:08:03] Production.INFO: ==19480== Releasing lock... [2025-03-03 00:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: ==19488== Lock acquired, processing the job... [2025-03-03 00:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:08:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-17 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-18 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:08:03] Production.INFO: count ==13 [2025-03-03 00:08:03] Production.INFO: Date 2025-02-19 [2025-03-03 00:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:08:03] Production.INFO: count ==21 [2025-03-03 00:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594688') start [2025-03-03 00:08:04] Production.ERROR: done [2025-03-03 00:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594688') end [2025-03-03 00:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:08:04] Production.INFO: 1 [2025-03-03 00:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: ==19488== Releasing lock... [2025-03-03 00:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.ERROR: done [2025-03-03 00:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:08:04] Production.INFO: Total Charge 0 [2025-03-03 00:08:04] Production.INFO: CreateAllLog End [2025-03-03 00:08:04] Production.INFO: Account Balance End. [2025-03-03 00:08:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:08:04] Production.INFO: ==19484== Releasing lock... [2025-03-03 00:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:08:13] Production.ERROR: CronJobId end10 [2025-03-03 00:08:13] Production.INFO: ==19482== Releasing lock... [2025-03-03 00:08:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:08:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:08:15] Production.INFO: call_cost start [2025-03-03 00:08:15] Production.INFO: call_cost end [2025-03-03 00:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:08:15] Production.INFO: ==19478== Releasing lock... [2025-03-03 00:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:08:16] Production.INFO: count ==409 [2025-03-03 00:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594689', 'tblTempUsageDetail_20' ) start [2025-03-03 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594689', 'tblTempUsageDetail_20' ) end [2025-03-03 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594689', 'tblTempVendorCDR_20' ) start [2025-03-03 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594689', 'tblTempVendorCDR_20' ) end [2025-03-03 00:08:16] Production.INFO: ProcessCDR(1,14594689,1,1,2) [2025-03-03 00:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594689', 'tblTempUsageDetail_20' ) start [2025-03-03 00:08:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594689', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:08:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:08:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:08:25] Production.INFO: ==19486== Releasing lock... [2025-03-03 00:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:08:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:09:02] Production.INFO: ==19545== Lock acquired, processing the job... [2025-03-03 05:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:09:02] Production.INFO: neon service started [2025-03-03 05:09:02] Production.INFO: neon service started [2025-03-03 05:09:02] Production.INFO: ==19545== Releasing lock... [2025-03-03 05:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:09:02] Production.INFO: ==19549== Lock acquired, processing the job... [2025-03-03 05:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:09:02] Production.INFO: ==19549== Releasing lock... [2025-03-03 05:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:09:02] Production.INFO: ==19547== Lock acquired, processing the job... [2025-03-03 00:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:09:02] Production.INFO: ==19547== Releasing lock... [2025-03-03 00:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:09:03] Production.INFO: ==19554== Lock acquired, processing the job... [2025-03-03 00:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:09:03] Production.INFO: ==19558== Lock acquired, processing the job... [2025-03-03 00:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:09:03] Production.INFO: ==19556== Lock acquired, processing the job... [2025-03-03 00:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:09:03] Production.INFO: ==19552== Lock acquired, processing the job... [2025-03-03 00:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:09:03] Production.INFO: ==19560== Lock acquired, processing the job... [2025-03-03 00:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:09:03] Production.INFO: Account Balance Start. [2025-03-03 00:09:03] Production.INFO: CreateAllLog Start [2025-03-03 00:09:03] Production.INFO: 117 [2025-03-03 00:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:03] Production.INFO: ==19562== Lock acquired, processing the job... [2025-03-03 00:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: count ==13 [2025-03-03 00:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:09:04] Production.INFO: count ==21 [2025-03-03 00:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594693') start [2025-03-03 00:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: ==19554== Releasing lock... [2025-03-03 00:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594693') end [2025-03-03 00:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:09:04] Production.INFO: 1 [2025-03-03 00:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: ==19562== Releasing lock... [2025-03-03 00:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.ERROR: done [2025-03-03 00:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.ERROR: done [2025-03-03 00:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:09:05] Production.INFO: Total Charge 0 [2025-03-03 00:09:05] Production.INFO: CreateAllLog End [2025-03-03 00:09:05] Production.INFO: Account Balance End. [2025-03-03 00:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:09:05] Production.INFO: ==19558== Releasing lock... [2025-03-03 00:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:09:12] Production.ERROR: CronJobId end10 [2025-03-03 00:09:12] Production.INFO: ==19556== Releasing lock... [2025-03-03 00:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:09:15] Production.INFO: call_cost start [2025-03-03 00:09:15] Production.INFO: call_cost end [2025-03-03 00:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:09:15] Production.INFO: ==19552== Releasing lock... [2025-03-03 00:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:09:16] Production.INFO: count ==409 [2025-03-03 00:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594694', 'tblTempUsageDetail_20' ) start [2025-03-03 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594694', 'tblTempUsageDetail_20' ) end [2025-03-03 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594694', 'tblTempVendorCDR_20' ) start [2025-03-03 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594694', 'tblTempVendorCDR_20' ) end [2025-03-03 00:09:16] Production.INFO: ProcessCDR(1,14594694,1,1,2) [2025-03-03 00:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594694', 'tblTempUsageDetail_20' ) start [2025-03-03 00:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594694', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:09:24] Production.INFO: ==19560== Releasing lock... [2025-03-03 00:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:09:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:10:01] Production.INFO: ==19625== Lock acquired, processing the job... [2025-03-03 05:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:10:01] Production.INFO: neon service started [2025-03-03 05:10:01] Production.INFO: neon service started [2025-03-03 05:10:01] Production.INFO: ==19625== Releasing lock... [2025-03-03 05:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:10:02] Production.INFO: ==19629== Lock acquired, processing the job... [2025-03-03 05:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:10:02] Production.INFO: ==19629== Releasing lock... [2025-03-03 05:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:10:02] Production.INFO: ==19627== Lock acquired, processing the job... [2025-03-03 00:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:10:02] Production.INFO: ==19627== Releasing lock... [2025-03-03 00:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:10:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:10:03] Production.INFO: ==19636== Lock acquired, processing the job... [2025-03-03 00:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:10:03] Production.INFO: ==19642== Lock acquired, processing the job... [2025-03-03 00:10:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:10:03] Production.INFO: ==19632== Lock acquired, processing the job... [2025-03-03 00:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 00:10:03] Production.INFO: ==19646== Lock acquired, processing the job... [2025-03-03 00:10:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:10:03] Production.INFO: ==19636== Releasing lock... [2025-03-03 00:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:10:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:10:03] Production.INFO: ==19634== Lock acquired, processing the job... [2025-03-03 00:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:10:04] Production.INFO: count ==13 [2025-03-03 00:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:10:04] Production.INFO: count ==21 [2025-03-03 00:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594696') start [2025-03-03 00:10:04] Production.INFO: ==19638== Lock acquired, processing the job... [2025-03-03 00:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:10:04] Production.ERROR: CronJob PID - 19634 [2025-03-03 00:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 00:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 00:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 00:10:00 [2025-03-03 00:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:10:04] Production.ERROR: CronJob PID - 19642 [2025-03-03 00:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 00:10:04] Production.ERROR: CronJob ID - 16 [2025-03-03 00:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 00:10:00 [2025-03-03 00:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:10:04] Production.ERROR: CronJob PID - 19646 [2025-03-03 00:10:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 00:10:04] Production.ERROR: CronJob ID - 19 [2025-03-03 00:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 00:10:00 [2025-03-03 00:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:10:04] Production.INFO: ==19640== Lock acquired, processing the job... [2025-03-03 00:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 00:10:04] Production.INFO: ==19632== Releasing lock... [2025-03-03 00:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 00:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:10:04] Production.INFO: ==19644== Lock acquired, processing the job... [2025-03-03 00:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 00:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594696') end [2025-03-03 00:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:10:04] Production.INFO: 1 [2025-03-03 00:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:10:04] Production.INFO: Account Balance Start. [2025-03-03 00:10:04] Production.INFO: CreateAllLog Start [2025-03-03 00:10:04] Production.INFO: 117 [2025-03-03 00:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.INFO: ==19646== Releasing lock... [2025-03-03 00:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.ERROR: done [2025-03-03 00:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.ERROR: done [2025-03-03 00:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:10:04] Production.ERROR: done [2025-03-03 00:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 00:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594700', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 00:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:10:05] Production.INFO: Total Charge 0 [2025-03-03 00:10:05] Production.INFO: CreateAllLog End [2025-03-03 00:10:05] Production.INFO: Account Balance End. [2025-03-03 00:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:10:05] Production.INFO: ==19640== Releasing lock... [2025-03-03 00:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:10:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594700', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 00:10:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 00:10:08] Production.INFO: ProcessCDR(1,14594700,1,1,2) [2025-03-03 00:10:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594700,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:10:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594700,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:10:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 00:10:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 00:10:08] Production.INFO: ==19644== Releasing lock... [2025-03-03 00:10:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 00:10:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 00:10:14] Production.ERROR: CronJobId end10 [2025-03-03 00:10:14] Production.INFO: ==19638== Releasing lock... [2025-03-03 00:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:10:16] Production.INFO: call_cost start [2025-03-03 00:10:16] Production.INFO: call_cost end [2025-03-03 00:10:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:10:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:10:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:10:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:10:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:10:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:10:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:10:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:10:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:10:16] Production.INFO: ==19634== Releasing lock... [2025-03-03 00:10:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:10:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:10:16] Production.INFO: count ==409 [2025-03-03 00:10:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:10:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594699', 'tblTempUsageDetail_20' ) start [2025-03-03 00:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594699', 'tblTempUsageDetail_20' ) end [2025-03-03 00:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594699', 'tblTempVendorCDR_20' ) start [2025-03-03 00:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594699', 'tblTempVendorCDR_20' ) end [2025-03-03 00:10:16] Production.INFO: ProcessCDR(1,14594699,1,1,2) [2025-03-03 00:10:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594699', 'tblTempUsageDetail_20' ) start [2025-03-03 00:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594699', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:10:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:10:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:10:24] Production.INFO: ==19642== Releasing lock... [2025-03-03 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:10:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:11:02] Production.INFO: ==19718== Lock acquired, processing the job... [2025-03-03 05:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:11:02] Production.INFO: neon service started [2025-03-03 05:11:02] Production.INFO: neon service started [2025-03-03 05:11:02] Production.INFO: ==19718== Releasing lock... [2025-03-03 05:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:11:02] Production.INFO: ==19721== Lock acquired, processing the job... [2025-03-03 00:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:11:02] Production.INFO: ==19721== Releasing lock... [2025-03-03 00:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:11:02] Production.INFO: ==19724== Lock acquired, processing the job... [2025-03-03 05:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:11:02] Production.INFO: ==19724== Releasing lock... [2025-03-03 05:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:11:03] Production.INFO: ==19727== Lock acquired, processing the job... [2025-03-03 00:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:11:03] Production.INFO: ==19731== Lock acquired, processing the job... [2025-03-03 00:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:11:03] Production.INFO: ==19729== Lock acquired, processing the job... [2025-03-03 00:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:11:03] Production.INFO: ==19737== Lock acquired, processing the job... [2025-03-03 00:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:11:03] Production.INFO: ==19733== Lock acquired, processing the job... [2025-03-03 00:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:11:03] Production.INFO: ==19735== Lock acquired, processing the job... [2025-03-03 00:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:11:03] Production.INFO: Account Balance Start. [2025-03-03 00:11:03] Production.INFO: CreateAllLog Start [2025-03-03 00:11:03] Production.INFO: 117 [2025-03-03 00:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: count ==13 [2025-03-03 00:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:11:04] Production.INFO: ==19729== Releasing lock... [2025-03-03 00:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: count ==21 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594704') start [2025-03-03 00:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594704') end [2025-03-03 00:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:11:04] Production.INFO: 1 [2025-03-03 00:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.ERROR: done [2025-03-03 00:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:11:04] Production.INFO: ==19737== Releasing lock... [2025-03-03 00:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.ERROR: done [2025-03-03 00:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:11:05] Production.INFO: Total Charge 0 [2025-03-03 00:11:05] Production.INFO: CreateAllLog End [2025-03-03 00:11:05] Production.INFO: Account Balance End. [2025-03-03 00:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:11:05] Production.INFO: ==19733== Releasing lock... [2025-03-03 00:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:11:12] Production.ERROR: CronJobId end10 [2025-03-03 00:11:12] Production.INFO: ==19731== Releasing lock... [2025-03-03 00:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:11:14] Production.INFO: call_cost start [2025-03-03 00:11:14] Production.INFO: call_cost end [2025-03-03 00:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:11:14] Production.INFO: ==19727== Releasing lock... [2025-03-03 00:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:11:16] Production.INFO: count ==409 [2025-03-03 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594705', 'tblTempUsageDetail_20' ) start [2025-03-03 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594705', 'tblTempUsageDetail_20' ) end [2025-03-03 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594705', 'tblTempVendorCDR_20' ) start [2025-03-03 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594705', 'tblTempVendorCDR_20' ) end [2025-03-03 00:11:17] Production.INFO: ProcessCDR(1,14594705,1,1,2) [2025-03-03 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594705', 'tblTempUsageDetail_20' ) start [2025-03-03 00:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594705', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:11:24] Production.INFO: ==19735== Releasing lock... [2025-03-03 00:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:12:01] Production.INFO: ==19812== Lock acquired, processing the job... [2025-03-03 05:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:12:01] Production.INFO: neon service started [2025-03-03 05:12:01] Production.INFO: neon service started [2025-03-03 05:12:01] Production.INFO: ==19812== Releasing lock... [2025-03-03 05:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:12:01] Production.INFO: ==19818== Lock acquired, processing the job... [2025-03-03 05:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:12:01] Production.INFO: ==19818== Releasing lock... [2025-03-03 05:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:12:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:12:02] Production.INFO: ==19816== Lock acquired, processing the job... [2025-03-03 00:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:12:02] Production.INFO: ==19816== Releasing lock... [2025-03-03 00:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:12:03] Production.INFO: ==19820== Lock acquired, processing the job... [2025-03-03 00:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:12:03] Production.INFO: ==19822== Lock acquired, processing the job... [2025-03-03 00:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:12:03] Production.INFO: ==19831== Lock acquired, processing the job... [2025-03-03 00:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:12:03] Production.INFO: count ==13 [2025-03-03 00:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:12:03] Production.INFO: count ==21 [2025-03-03 00:12:03] Production.INFO: ==19822== Releasing lock... [2025-03-03 00:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594708') start [2025-03-03 00:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594708') end [2025-03-03 00:12:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:12:03] Production.INFO: 1 [2025-03-03 00:12:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:12:03] Production.INFO: ==19827== Lock acquired, processing the job... [2025-03-03 00:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:12:03] Production.INFO: ==19824== Lock acquired, processing the job... [2025-03-03 00:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:12:03] Production.INFO: ==19831== Releasing lock... [2025-03-03 00:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:12:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:12:03] Production.INFO: ==19829== Lock acquired, processing the job... [2025-03-03 00:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:12:03] Production.INFO: Account Balance Start. [2025-03-03 00:12:03] Production.INFO: CreateAllLog Start [2025-03-03 00:12:03] Production.INFO: 117 [2025-03-03 00:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.ERROR: done [2025-03-03 00:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.ERROR: done [2025-03-03 00:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:12:04] Production.INFO: Total Charge 0 [2025-03-03 00:12:04] Production.INFO: CreateAllLog End [2025-03-03 00:12:04] Production.INFO: Account Balance End. [2025-03-03 00:12:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:12:04] Production.INFO: ==19827== Releasing lock... [2025-03-03 00:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:12:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:12:10] Production.ERROR: CronJobId end10 [2025-03-03 00:12:10] Production.INFO: ==19824== Releasing lock... [2025-03-03 00:12:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:12:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:12:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:12:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:12:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:12:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:12:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:12:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:12:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:12:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:12:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:12:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:12:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:12:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:12:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:12:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:12:14] Production.INFO: call_cost start [2025-03-03 00:12:14] Production.INFO: call_cost end [2025-03-03 00:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:12:14] Production.INFO: ==19820== Releasing lock... [2025-03-03 00:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:12:17] Production.INFO: count ==409 [2025-03-03 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594710', 'tblTempUsageDetail_20' ) start [2025-03-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594710', 'tblTempUsageDetail_20' ) end [2025-03-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594710', 'tblTempVendorCDR_20' ) start [2025-03-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594710', 'tblTempVendorCDR_20' ) end [2025-03-03 00:12:17] Production.INFO: ProcessCDR(1,14594710,1,1,2) [2025-03-03 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594710', 'tblTempUsageDetail_20' ) start [2025-03-03 00:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594710', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:12:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:12:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:12:25] Production.INFO: ==19829== Releasing lock... [2025-03-03 00:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:12:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:13:01] Production.INFO: ==19903== Lock acquired, processing the job... [2025-03-03 05:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:13:01] Production.INFO: neon service started [2025-03-03 05:13:01] Production.INFO: neon service started [2025-03-03 05:13:01] Production.INFO: ==19903== Releasing lock... [2025-03-03 05:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:13:02] Production.INFO: ==19905== Lock acquired, processing the job... [2025-03-03 00:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:13:02] Production.INFO: ==19907== Lock acquired, processing the job... [2025-03-03 05:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:13:02] Production.INFO: ==19907== Releasing lock... [2025-03-03 05:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:13:02] Production.INFO: ==19905== Releasing lock... [2025-03-03 00:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:13:03] Production.INFO: ==19918== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:13:03] Production.INFO: ==19920== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:13:03] Production.INFO: ==19910== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:13:03] Production.INFO: ==19912== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:13:03] Production.INFO: ==19914== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:13:03] Production.INFO: ==19916== Lock acquired, processing the job... [2025-03-03 00:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:13:04] Production.INFO: count ==13 [2025-03-03 00:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:13:04] Production.INFO: count ==21 [2025-03-03 00:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594711') start [2025-03-03 00:13:04] Production.INFO: Account Balance Start. [2025-03-03 00:13:04] Production.INFO: CreateAllLog Start [2025-03-03 00:13:04] Production.INFO: 117 [2025-03-03 00:13:04] Production.ERROR: done [2025-03-03 00:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594711') end [2025-03-03 00:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:13:04] Production.INFO: 1 [2025-03-03 00:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: ==19920== Releasing lock... [2025-03-03 00:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:13:04] Production.ERROR: done [2025-03-03 00:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: ==19912== Releasing lock... [2025-03-03 00:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:13:05] Production.INFO: Total Charge 0 [2025-03-03 00:13:05] Production.INFO: CreateAllLog End [2025-03-03 00:13:05] Production.INFO: Account Balance End. [2025-03-03 00:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:13:05] Production.INFO: ==19916== Releasing lock... [2025-03-03 00:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:13:12] Production.ERROR: CronJobId end10 [2025-03-03 00:13:12] Production.INFO: ==19914== Releasing lock... [2025-03-03 00:13:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:13:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:13:15] Production.INFO: call_cost start [2025-03-03 00:13:15] Production.INFO: call_cost end [2025-03-03 00:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:13:15] Production.INFO: ==19910== Releasing lock... [2025-03-03 00:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:13:16] Production.INFO: count ==409 [2025-03-03 00:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594715', 'tblTempUsageDetail_20' ) start [2025-03-03 00:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594715', 'tblTempUsageDetail_20' ) end [2025-03-03 00:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594715', 'tblTempVendorCDR_20' ) start [2025-03-03 00:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594715', 'tblTempVendorCDR_20' ) end [2025-03-03 00:13:16] Production.INFO: ProcessCDR(1,14594715,1,1,2) [2025-03-03 00:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594715', 'tblTempUsageDetail_20' ) start [2025-03-03 00:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594715', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:13:24] Production.INFO: ==19918== Releasing lock... [2025-03-03 00:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:13:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:14:02] Production.INFO: ==20006== Lock acquired, processing the job... [2025-03-03 05:14:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:14:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:14:02] Production.INFO: neon service started [2025-03-03 05:14:02] Production.INFO: neon service started [2025-03-03 05:14:02] Production.INFO: ==20006== Releasing lock... [2025-03-03 05:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:14:02] Production.INFO: ==20010== Lock acquired, processing the job... [2025-03-03 05:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:14:02] Production.INFO: ==20010== Releasing lock... [2025-03-03 05:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:14:02] Production.INFO: ==20008== Lock acquired, processing the job... [2025-03-03 00:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:14:03] Production.INFO: ==20008== Releasing lock... [2025-03-03 00:14:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:14:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:14:03] Production.INFO: ==20017== Lock acquired, processing the job... [2025-03-03 00:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:14:04] Production.INFO: ==20023== Lock acquired, processing the job... [2025-03-03 00:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:14:04] Production.INFO: ==20013== Lock acquired, processing the job... [2025-03-03 00:14:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:14:04] Production.INFO: ==20015== Lock acquired, processing the job... [2025-03-03 00:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:14:04] Production.INFO: ==20019== Lock acquired, processing the job... [2025-03-03 00:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:14:04] Production.INFO: ==20021== Lock acquired, processing the job... [2025-03-03 00:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:14:04] Production.INFO: Account Balance Start. [2025-03-03 00:14:04] Production.INFO: count ==13 [2025-03-03 00:14:04] Production.INFO: CreateAllLog Start [2025-03-03 00:14:04] Production.INFO: 117 [2025-03-03 00:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:14:04] Production.INFO: count ==21 [2025-03-03 00:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594716') start [2025-03-03 00:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594716') end [2025-03-03 00:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:14:04] Production.INFO: 1 [2025-03-03 00:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:14:04] Production.INFO: ==20015== Releasing lock... [2025-03-03 00:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:04] Production.INFO: ==20023== Releasing lock... [2025-03-03 00:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:04] Production.ERROR: done [2025-03-03 00:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-15 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.ERROR: done [2025-03-03 00:14:05] Production.INFO: Date 2025-02-16 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:14:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:14:05] Production.INFO: Total Charge 0 [2025-03-03 00:14:05] Production.INFO: CreateAllLog End [2025-03-03 00:14:05] Production.INFO: Account Balance End. [2025-03-03 00:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:14:05] Production.INFO: ==20019== Releasing lock... [2025-03-03 00:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:14:11] Production.ERROR: CronJobId end10 [2025-03-03 00:14:11] Production.INFO: ==20017== Releasing lock... [2025-03-03 00:14:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:14:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:14:15] Production.INFO: call_cost start [2025-03-03 00:14:15] Production.INFO: call_cost end [2025-03-03 00:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:14:15] Production.INFO: ==20013== Releasing lock... [2025-03-03 00:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:14:17] Production.INFO: count ==409 [2025-03-03 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594720', 'tblTempUsageDetail_20' ) start [2025-03-03 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594720', 'tblTempUsageDetail_20' ) end [2025-03-03 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594720', 'tblTempVendorCDR_20' ) start [2025-03-03 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594720', 'tblTempVendorCDR_20' ) end [2025-03-03 00:14:17] Production.INFO: ProcessCDR(1,14594720,1,1,2) [2025-03-03 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594720', 'tblTempUsageDetail_20' ) start [2025-03-03 00:14:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594720', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:14:32] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:14:32] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:14:33] Production.INFO: ==20021== Releasing lock... [2025-03-03 00:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:14:33] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:15:01] Production.INFO: ==20098== Lock acquired, processing the job... [2025-03-03 05:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:15:01] Production.INFO: neon service started [2025-03-03 05:15:01] Production.INFO: neon service started [2025-03-03 05:15:01] Production.INFO: ==20098== Releasing lock... [2025-03-03 05:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:15:02] Production.INFO: ==20100== Lock acquired, processing the job... [2025-03-03 00:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:15:02] Production.INFO: ==20102== Lock acquired, processing the job... [2025-03-03 05:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:15:02] Production.INFO: ==20102== Releasing lock... [2025-03-03 05:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:15:02] Production.INFO: ==20100== Releasing lock... [2025-03-03 00:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:15:03] Production.INFO: ==20105== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:15:03] Production.INFO: ==20107== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:15:03] Production.INFO: ==20113== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:15:03] Production.INFO: ==20109== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:15:03] Production.INFO: ==20111== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:15:03] Production.INFO: ==20115== Lock acquired, processing the job... [2025-03-03 00:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:15:03] Production.INFO: ==20107== Releasing lock... [2025-03-03 00:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:15:03] Production.INFO: Account Balance Start. [2025-03-03 00:15:03] Production.INFO: CreateAllLog Start [2025-03-03 00:15:03] Production.INFO: 117 [2025-03-03 00:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:03] Production.INFO: count ==13 [2025-03-03 00:15:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:15:03] Production.INFO: count ==21 [2025-03-03 00:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594724') start [2025-03-03 00:15:04] Production.ERROR: done [2025-03-03 00:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594724') end [2025-03-03 00:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:15:04] Production.INFO: 1 [2025-03-03 00:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:15:04] Production.INFO: ==20115== Releasing lock... [2025-03-03 00:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.ERROR: done [2025-03-03 00:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:15:05] Production.INFO: Total Charge 0 [2025-03-03 00:15:05] Production.INFO: CreateAllLog End [2025-03-03 00:15:05] Production.INFO: Account Balance End. [2025-03-03 00:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:15:05] Production.INFO: ==20111== Releasing lock... [2025-03-03 00:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:15:11] Production.ERROR: CronJobId end10 [2025-03-03 00:15:11] Production.INFO: ==20109== Releasing lock... [2025-03-03 00:15:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:15:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:15:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:15:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:15:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:15:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:15:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:15:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:15:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:15:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:15:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:15:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:15:14] Production.INFO: call_cost start [2025-03-03 00:15:14] Production.INFO: call_cost end [2025-03-03 00:15:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:15:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:15:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:15:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:15:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:15:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:15:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:15:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:15:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:15:14] Production.INFO: ==20105== Releasing lock... [2025-03-03 00:15:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:15:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:15:16] Production.INFO: count ==409 [2025-03-03 00:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594725', 'tblTempUsageDetail_20' ) start [2025-03-03 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594725', 'tblTempUsageDetail_20' ) end [2025-03-03 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594725', 'tblTempVendorCDR_20' ) start [2025-03-03 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594725', 'tblTempVendorCDR_20' ) end [2025-03-03 00:15:16] Production.INFO: ProcessCDR(1,14594725,1,1,2) [2025-03-03 00:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594725', 'tblTempUsageDetail_20' ) start [2025-03-03 00:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594725', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:15:24] Production.INFO: ==20113== Releasing lock... [2025-03-03 00:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:16:02] Production.INFO: ==20181== Lock acquired, processing the job... [2025-03-03 05:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:16:02] Production.INFO: neon service started [2025-03-03 05:16:02] Production.INFO: neon service started [2025-03-03 05:16:02] Production.INFO: ==20181== Releasing lock... [2025-03-03 05:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:16:02] Production.INFO: ==20183== Lock acquired, processing the job... [2025-03-03 00:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:16:02] Production.INFO: ==20185== Lock acquired, processing the job... [2025-03-03 05:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:16:02] Production.INFO: ==20185== Releasing lock... [2025-03-03 05:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:16:03] Production.INFO: ==20183== Releasing lock... [2025-03-03 00:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:16:04] Production.INFO: ==20194== Lock acquired, processing the job... [2025-03-03 00:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:16:04] Production.INFO: Account Balance Start. [2025-03-03 00:16:04] Production.INFO: CreateAllLog Start [2025-03-03 00:16:04] Production.INFO: 117 [2025-03-03 00:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:16:04] Production.INFO: ==20188== Lock acquired, processing the job... [2025-03-03 00:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:16:04] Production.INFO: ==20196== Lock acquired, processing the job... [2025-03-03 00:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: ==20190== Lock acquired, processing the job... [2025-03-03 00:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: ==20192== Lock acquired, processing the job... [2025-03-03 00:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: ==20198== Lock acquired, processing the job... [2025-03-03 00:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:16:04] Production.INFO: count ==13 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:16:04] Production.INFO: count ==21 [2025-03-03 00:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594729') start [2025-03-03 00:16:04] Production.ERROR: done [2025-03-03 00:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594729') end [2025-03-03 00:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:16:04] Production.INFO: 1 [2025-03-03 00:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:16:04] Production.INFO: ==20190== Releasing lock... [2025-03-03 00:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: ==20198== Releasing lock... [2025-03-03 00:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:16:04] Production.ERROR: done [2025-03-03 00:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:16:05] Production.INFO: Total Charge 0 [2025-03-03 00:16:05] Production.INFO: CreateAllLog End [2025-03-03 00:16:05] Production.INFO: Account Balance End. [2025-03-03 00:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:16:05] Production.INFO: ==20194== Releasing lock... [2025-03-03 00:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:16:12] Production.ERROR: CronJobId end10 [2025-03-03 00:16:12] Production.INFO: ==20192== Releasing lock... [2025-03-03 00:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:16:14] Production.INFO: call_cost start [2025-03-03 00:16:14] Production.INFO: call_cost end [2025-03-03 00:16:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:16:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:16:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:16:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:16:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:16:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:16:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:16:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:16:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:16:14] Production.INFO: ==20188== Releasing lock... [2025-03-03 00:16:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:16:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:16:16] Production.INFO: count ==409 [2025-03-03 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594730', 'tblTempUsageDetail_20' ) start [2025-03-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594730', 'tblTempUsageDetail_20' ) end [2025-03-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594730', 'tblTempVendorCDR_20' ) start [2025-03-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594730', 'tblTempVendorCDR_20' ) end [2025-03-03 00:16:17] Production.INFO: ProcessCDR(1,14594730,1,1,2) [2025-03-03 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594730', 'tblTempUsageDetail_20' ) start [2025-03-03 00:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594730', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:16:24] Production.INFO: ==20196== Releasing lock... [2025-03-03 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:17:01] Production.INFO: ==20263== Lock acquired, processing the job... [2025-03-03 05:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:17:01] Production.INFO: neon service started [2025-03-03 05:17:01] Production.INFO: neon service started [2025-03-03 05:17:01] Production.INFO: ==20263== Releasing lock... [2025-03-03 05:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:17:02] Production.INFO: ==20267== Lock acquired, processing the job... [2025-03-03 05:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:17:02] Production.INFO: ==20267== Releasing lock... [2025-03-03 05:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:17:02] Production.INFO: ==20265== Lock acquired, processing the job... [2025-03-03 00:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:17:02] Production.INFO: ==20265== Releasing lock... [2025-03-03 00:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:17:03] Production.INFO: ==20270== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:17:03] Production.INFO: ==20280== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:17:03] Production.INFO: ==20272== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:17:03] Production.INFO: ==20274== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:17:03] Production.INFO: count ==13 [2025-03-03 00:17:03] Production.INFO: ==20276== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:17:03] Production.INFO: count ==21 [2025-03-03 00:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594732') start [2025-03-03 00:17:03] Production.INFO: ==20278== Lock acquired, processing the job... [2025-03-03 00:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594732') end [2025-03-03 00:17:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:17:03] Production.INFO: 1 [2025-03-03 00:17:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:17:03] Production.INFO: Account Balance Start. [2025-03-03 00:17:03] Production.INFO: CreateAllLog Start [2025-03-03 00:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:17:03] Production.INFO: 117 [2025-03-03 00:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: ==20280== Releasing lock... [2025-03-03 00:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: ==20272== Releasing lock... [2025-03-03 00:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.ERROR: done [2025-03-03 00:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.ERROR: done [2025-03-03 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:17:04] Production.INFO: Total Charge 0 [2025-03-03 00:17:04] Production.INFO: CreateAllLog End [2025-03-03 00:17:04] Production.INFO: Account Balance End. [2025-03-03 00:17:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:17:04] Production.INFO: ==20276== Releasing lock... [2025-03-03 00:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:17:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:17:12] Production.ERROR: CronJobId end10 [2025-03-03 00:17:12] Production.INFO: ==20274== Releasing lock... [2025-03-03 00:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:17:15] Production.INFO: call_cost start [2025-03-03 00:17:15] Production.INFO: call_cost end [2025-03-03 00:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:17:15] Production.INFO: ==20270== Releasing lock... [2025-03-03 00:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:17:16] Production.INFO: count ==409 [2025-03-03 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594735', 'tblTempUsageDetail_20' ) start [2025-03-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594735', 'tblTempUsageDetail_20' ) end [2025-03-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594735', 'tblTempVendorCDR_20' ) start [2025-03-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594735', 'tblTempVendorCDR_20' ) end [2025-03-03 00:17:17] Production.INFO: ProcessCDR(1,14594735,1,1,2) [2025-03-03 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594735', 'tblTempUsageDetail_20' ) start [2025-03-03 00:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594735', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:17:24] Production.INFO: ==20278== Releasing lock... [2025-03-03 00:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:18:02] Production.INFO: ==20377== Lock acquired, processing the job... [2025-03-03 05:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:18:02] Production.INFO: neon service started [2025-03-03 05:18:02] Production.INFO: neon service started [2025-03-03 05:18:02] Production.INFO: ==20377== Releasing lock... [2025-03-03 05:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:18:02] Production.INFO: ==20382== Lock acquired, processing the job... [2025-03-03 05:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:18:02] Production.INFO: ==20382== Releasing lock... [2025-03-03 05:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:18:02] Production.INFO: ==20380== Lock acquired, processing the job... [2025-03-03 00:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:18:02] Production.INFO: ==20380== Releasing lock... [2025-03-03 00:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:18:03] Production.INFO: ==20390== Lock acquired, processing the job... [2025-03-03 00:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:18:03] Production.INFO: ==20392== Lock acquired, processing the job... [2025-03-03 00:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:18:03] Production.INFO: Account Balance Start. [2025-03-03 00:18:03] Production.INFO: CreateAllLog Start [2025-03-03 00:18:03] Production.INFO: 117 [2025-03-03 00:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: ==20384== Lock acquired, processing the job... [2025-03-03 00:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:18:04] Production.INFO: ==20386== Lock acquired, processing the job... [2025-03-03 00:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: ==20388== Lock acquired, processing the job... [2025-03-03 00:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: ==20394== Lock acquired, processing the job... [2025-03-03 00:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: count ==13 [2025-03-03 00:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:18:04] Production.INFO: count ==21 [2025-03-03 00:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594739') start [2025-03-03 00:18:04] Production.ERROR: done [2025-03-03 00:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594739') end [2025-03-03 00:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:18:04] Production.INFO: 1 [2025-03-03 00:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: ==20394== Releasing lock... [2025-03-03 00:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: ==20386== Releasing lock... [2025-03-03 00:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.ERROR: done [2025-03-03 00:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:18:05] Production.INFO: Total Charge 0 [2025-03-03 00:18:05] Production.INFO: CreateAllLog End [2025-03-03 00:18:05] Production.INFO: Account Balance End. [2025-03-03 00:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:18:05] Production.INFO: ==20390== Releasing lock... [2025-03-03 00:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:18:12] Production.ERROR: CronJobId end10 [2025-03-03 00:18:12] Production.INFO: ==20388== Releasing lock... [2025-03-03 00:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:18:14] Production.INFO: call_cost start [2025-03-03 00:18:14] Production.INFO: call_cost end [2025-03-03 00:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:18:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:18:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:18:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:18:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:18:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:18:14] Production.INFO: ==20384== Releasing lock... [2025-03-03 00:18:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:18:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:18:16] Production.INFO: count ==409 [2025-03-03 00:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594740', 'tblTempUsageDetail_20' ) start [2025-03-03 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594740', 'tblTempUsageDetail_20' ) end [2025-03-03 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594740', 'tblTempVendorCDR_20' ) start [2025-03-03 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594740', 'tblTempVendorCDR_20' ) end [2025-03-03 00:18:16] Production.INFO: ProcessCDR(1,14594740,1,1,2) [2025-03-03 00:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594740', 'tblTempUsageDetail_20' ) start [2025-03-03 00:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594740', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:18:24] Production.INFO: ==20392== Releasing lock... [2025-03-03 00:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:19:01] Production.INFO: ==20470== Lock acquired, processing the job... [2025-03-03 05:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:19:01] Production.INFO: neon service started [2025-03-03 05:19:01] Production.INFO: neon service started [2025-03-03 05:19:01] Production.INFO: ==20470== Releasing lock... [2025-03-03 05:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:19:01] Production.INFO: ==20474== Lock acquired, processing the job... [2025-03-03 05:19:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:19:01] Production.INFO: ==20474== Releasing lock... [2025-03-03 05:19:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:19:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:19:01] Production.INFO: ==20472== Lock acquired, processing the job... [2025-03-03 00:19:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:19:02] Production.INFO: ==20472== Releasing lock... [2025-03-03 00:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:19:03] Production.INFO: ==20478== Lock acquired, processing the job... [2025-03-03 00:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:19:03] Production.INFO: ==20480== Lock acquired, processing the job... [2025-03-03 00:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:19:03] Production.INFO: ==20484== Lock acquired, processing the job... [2025-03-03 00:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:19:03] Production.INFO: ==20478== Releasing lock... [2025-03-03 00:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:19:03] Production.INFO: ==20476== Lock acquired, processing the job... [2025-03-03 00:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:19:03] Production.INFO: ==20487== Lock acquired, processing the job... [2025-03-03 00:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:19:03] Production.INFO: ==20482== Lock acquired, processing the job... [2025-03-03 00:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:19:03] Production.INFO: Account Balance Start. [2025-03-03 00:19:03] Production.INFO: CreateAllLog Start [2025-03-03 00:19:03] Production.INFO: 117 [2025-03-03 00:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:19:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: count ==13 [2025-03-03 00:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:19:03] Production.INFO: count ==21 [2025-03-03 00:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594742') start [2025-03-03 00:19:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594742') end [2025-03-03 00:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:19:03] Production.INFO: 1 [2025-03-03 00:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:19:03] Production.ERROR: done [2025-03-03 00:19:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:19:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:03] Production.INFO: ==20487== Releasing lock... [2025-03-03 00:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:19:04] Production.ERROR: done [2025-03-03 00:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:19:04] Production.INFO: Total Charge 0 [2025-03-03 00:19:04] Production.INFO: CreateAllLog End [2025-03-03 00:19:05] Production.INFO: Account Balance End. [2025-03-03 00:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:19:05] Production.INFO: ==20482== Releasing lock... [2025-03-03 00:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:19:11] Production.ERROR: CronJobId end10 [2025-03-03 00:19:11] Production.INFO: ==20480== Releasing lock... [2025-03-03 00:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:19:14] Production.INFO: call_cost start [2025-03-03 00:19:14] Production.INFO: call_cost end [2025-03-03 00:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:19:14] Production.INFO: ==20476== Releasing lock... [2025-03-03 00:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:19:16] Production.INFO: count ==409 [2025-03-03 00:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594745', 'tblTempUsageDetail_20' ) start [2025-03-03 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594745', 'tblTempUsageDetail_20' ) end [2025-03-03 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594745', 'tblTempVendorCDR_20' ) start [2025-03-03 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594745', 'tblTempVendorCDR_20' ) end [2025-03-03 00:19:16] Production.INFO: ProcessCDR(1,14594745,1,1,2) [2025-03-03 00:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594745', 'tblTempUsageDetail_20' ) start [2025-03-03 00:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594745', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:19:24] Production.INFO: ==20484== Releasing lock... [2025-03-03 00:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:20:01] Production.INFO: ==20576== Lock acquired, processing the job... [2025-03-03 05:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:20:01] Production.INFO: neon service started [2025-03-03 05:20:01] Production.INFO: neon service started [2025-03-03 05:20:01] Production.INFO: ==20576== Releasing lock... [2025-03-03 05:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:20:02] Production.INFO: ==20580== Lock acquired, processing the job... [2025-03-03 05:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:20:02] Production.INFO: ==20580== Releasing lock... [2025-03-03 05:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:20:02] Production.INFO: ==20578== Lock acquired, processing the job... [2025-03-03 00:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:20:02] Production.INFO: ==20578== Releasing lock... [2025-03-03 00:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:20:03] Production.INFO: ==20589== Lock acquired, processing the job... [2025-03-03 00:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:20:03] Production.INFO: ==20585== Lock acquired, processing the job... [2025-03-03 00:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 00:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 00:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:20:04] Production.ERROR: CronJob PID - 20589 [2025-03-03 00:20:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 00:20:04] Production.ERROR: CronJob ID - 7 [2025-03-03 00:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 00:20:00 [2025-03-03 00:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:20:04] Production.INFO: ==20595== Lock acquired, processing the job... [2025-03-03 00:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:20:04] Production.INFO: ==20587== Lock acquired, processing the job... [2025-03-03 00:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 00:20:04] Production.INFO: ==20585== Releasing lock... [2025-03-03 00:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 00:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:20:04] Production.INFO: ==20591== Lock acquired, processing the job... [2025-03-03 00:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:20:04] Production.INFO: ==20599== Lock acquired, processing the job... [2025-03-03 00:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:20:04] Production.INFO: ==20593== Lock acquired, processing the job... [2025-03-03 00:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:20:04] Production.INFO: ==20597== Lock acquired, processing the job... [2025-03-03 00:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 00:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:20:04] Production.INFO: ==20589== Releasing lock... [2025-03-03 00:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:20:04] Production.INFO: Account Balance Start. [2025-03-03 00:20:04] Production.INFO: CreateAllLog Start [2025-03-03 00:20:04] Production.INFO: 117 [2025-03-03 00:20:04] Production.INFO: count ==13 [2025-03-03 00:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:20:04] Production.INFO: count ==21 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:20:04] Production.ERROR: done [2025-03-03 00:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594749') start [2025-03-03 00:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594749') end [2025-03-03 00:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:20:04] Production.INFO: 1 [2025-03-03 00:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:20:04] Production.ERROR: done [2025-03-03 00:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:20:04] Production.INFO: ==20599== Releasing lock... [2025-03-03 00:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.ERROR: done [2025-03-03 00:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 00:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594751', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 00:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:20:05] Production.INFO: Total Charge 0 [2025-03-03 00:20:05] Production.INFO: CreateAllLog End [2025-03-03 00:20:05] Production.INFO: Account Balance End. [2025-03-03 00:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:20:05] Production.INFO: ==20593== Releasing lock... [2025-03-03 00:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594751', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 00:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 00:20:09] Production.INFO: ProcessCDR(1,14594751,1,1,2) [2025-03-03 00:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594751,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594751,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 00:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 00:20:09] Production.INFO: ==20597== Releasing lock... [2025-03-03 00:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 00:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 00:20:15] Production.ERROR: CronJobId end10 [2025-03-03 00:20:15] Production.INFO: ==20591== Releasing lock... [2025-03-03 00:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:20:16] Production.INFO: count ==409 [2025-03-03 00:20:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:20:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:20:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594750', 'tblTempUsageDetail_20' ) start [2025-03-03 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594750', 'tblTempUsageDetail_20' ) end [2025-03-03 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594750', 'tblTempVendorCDR_20' ) start [2025-03-03 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594750', 'tblTempVendorCDR_20' ) end [2025-03-03 00:20:17] Production.INFO: ProcessCDR(1,14594750,1,1,2) [2025-03-03 00:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:20:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:20:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:20:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:20:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:20:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:20:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:20:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:20:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:20:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:20:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:20:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:20:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:20:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:20:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:20:17] Production.INFO: call_cost start [2025-03-03 00:20:17] Production.INFO: call_cost end [2025-03-03 00:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:20:18] Production.INFO: ==20587== Releasing lock... [2025-03-03 00:20:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:20:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594750', 'tblTempUsageDetail_20' ) start [2025-03-03 00:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594750', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:20:25] Production.INFO: ==20595== Releasing lock... [2025-03-03 00:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:21:01] Production.INFO: ==20697== Lock acquired, processing the job... [2025-03-03 05:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:21:01] Production.INFO: neon service started [2025-03-03 05:21:01] Production.INFO: neon service started [2025-03-03 05:21:01] Production.INFO: ==20697== Releasing lock... [2025-03-03 05:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:21:01] Production.INFO: ==20699== Lock acquired, processing the job... [2025-03-03 00:21:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:21:02] Production.INFO: ==20699== Releasing lock... [2025-03-03 00:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:21:02] Production.INFO: ==20701== Lock acquired, processing the job... [2025-03-03 05:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:21:02] Production.INFO: ==20701== Releasing lock... [2025-03-03 05:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:21:03] Production.INFO: ==20703== Lock acquired, processing the job... [2025-03-03 00:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:21:03] Production.INFO: ==20705== Lock acquired, processing the job... [2025-03-03 00:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:21:03] Production.INFO: ==20709== Lock acquired, processing the job... [2025-03-03 00:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:21:03] Production.INFO: Account Balance Start. [2025-03-03 00:21:03] Production.INFO: CreateAllLog Start [2025-03-03 00:21:03] Production.INFO: 117 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: ==20707== Lock acquired, processing the job... [2025-03-03 00:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:21:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: ==20711== Lock acquired, processing the job... [2025-03-03 00:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:21:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: ==20713== Lock acquired, processing the job... [2025-03-03 00:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:21:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:21:03] Production.INFO: Date 2025-02-17 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:21:03] Production.INFO: count ==13 [2025-03-03 00:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:21:03] Production.INFO: count ==21 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-18 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594755') start [2025-03-03 00:21:03] Production.INFO: ==20705== Releasing lock... [2025-03-03 00:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594755') end [2025-03-03 00:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:21:03] Production.INFO: 1 [2025-03-03 00:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:21:03] Production.INFO: Date 2025-02-19 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: ==20713== Releasing lock... [2025-03-03 00:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:21:03] Production.INFO: Date 2025-02-20 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-21 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:03] Production.INFO: Date 2025-02-22 [2025-03-03 00:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.ERROR: done [2025-03-03 00:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.ERROR: done [2025-03-03 00:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:21:04] Production.INFO: Total Charge 0 [2025-03-03 00:21:04] Production.INFO: CreateAllLog End [2025-03-03 00:21:04] Production.INFO: Account Balance End. [2025-03-03 00:21:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:21:04] Production.INFO: ==20709== Releasing lock... [2025-03-03 00:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:21:14] Production.ERROR: CronJobId end10 [2025-03-03 00:21:14] Production.INFO: ==20707== Releasing lock... [2025-03-03 00:21:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:21:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:21:15] Production.INFO: call_cost start [2025-03-03 00:21:15] Production.INFO: call_cost end [2025-03-03 00:21:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:21:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:21:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:21:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:21:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:21:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:21:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:21:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:21:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:21:15] Production.INFO: ==20703== Releasing lock... [2025-03-03 00:21:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:21:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:21:16] Production.INFO: count ==409 [2025-03-03 00:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594756', 'tblTempUsageDetail_20' ) start [2025-03-03 00:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594756', 'tblTempUsageDetail_20' ) end [2025-03-03 00:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594756', 'tblTempVendorCDR_20' ) start [2025-03-03 00:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594756', 'tblTempVendorCDR_20' ) end [2025-03-03 00:21:16] Production.INFO: ProcessCDR(1,14594756,1,1,2) [2025-03-03 00:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594756', 'tblTempUsageDetail_20' ) start [2025-03-03 00:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594756', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:21:24] Production.INFO: ==20711== Releasing lock... [2025-03-03 00:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:21:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:22:01] Production.INFO: ==20788== Lock acquired, processing the job... [2025-03-03 05:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:22:02] Production.INFO: neon service started [2025-03-03 05:22:02] Production.INFO: neon service started [2025-03-03 05:22:02] Production.INFO: ==20788== Releasing lock... [2025-03-03 05:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:22:02] Production.INFO: ==20790== Lock acquired, processing the job... [2025-03-03 00:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:22:02] Production.INFO: ==20792== Lock acquired, processing the job... [2025-03-03 05:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:22:02] Production.INFO: ==20792== Releasing lock... [2025-03-03 05:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:22:02] Production.INFO: ==20790== Releasing lock... [2025-03-03 00:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:22:03] Production.INFO: ==20799== Lock acquired, processing the job... [2025-03-03 00:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:22:03] Production.INFO: ==20795== Lock acquired, processing the job... [2025-03-03 00:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:22:04] Production.INFO: ==20805== Lock acquired, processing the job... [2025-03-03 00:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:22:04] Production.INFO: ==20797== Lock acquired, processing the job... [2025-03-03 00:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:22:04] Production.INFO: ==20801== Lock acquired, processing the job... [2025-03-03 00:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:22:04] Production.INFO: count ==13 [2025-03-03 00:22:04] Production.INFO: ==20803== Lock acquired, processing the job... [2025-03-03 00:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:22:04] Production.INFO: count ==21 [2025-03-03 00:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594757') start [2025-03-03 00:22:04] Production.INFO: Account Balance Start. [2025-03-03 00:22:04] Production.INFO: CreateAllLog Start [2025-03-03 00:22:04] Production.INFO: 117 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594757') end [2025-03-03 00:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:22:04] Production.INFO: 1 [2025-03-03 00:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:22:04] Production.INFO: ==20805== Releasing lock... [2025-03-03 00:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: ==20797== Releasing lock... [2025-03-03 00:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:22:04] Production.ERROR: done [2025-03-03 00:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.ERROR: done [2025-03-03 00:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:22:05] Production.INFO: Total Charge 0 [2025-03-03 00:22:05] Production.INFO: CreateAllLog End [2025-03-03 00:22:05] Production.INFO: Account Balance End. [2025-03-03 00:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:22:05] Production.INFO: ==20801== Releasing lock... [2025-03-03 00:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:22:11] Production.ERROR: CronJobId end10 [2025-03-03 00:22:11] Production.INFO: ==20799== Releasing lock... [2025-03-03 00:22:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:22:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:22:14] Production.INFO: call_cost start [2025-03-03 00:22:14] Production.INFO: call_cost end [2025-03-03 00:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:22:14] Production.INFO: ==20795== Releasing lock... [2025-03-03 00:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:22:16] Production.INFO: count ==409 [2025-03-03 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594761', 'tblTempUsageDetail_20' ) start [2025-03-03 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594761', 'tblTempUsageDetail_20' ) end [2025-03-03 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594761', 'tblTempVendorCDR_20' ) start [2025-03-03 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594761', 'tblTempVendorCDR_20' ) end [2025-03-03 00:22:17] Production.INFO: ProcessCDR(1,14594761,1,1,2) [2025-03-03 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594761', 'tblTempUsageDetail_20' ) start [2025-03-03 00:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594761', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:22:24] Production.INFO: ==20803== Releasing lock... [2025-03-03 00:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:23:01] Production.INFO: ==20871== Lock acquired, processing the job... [2025-03-03 05:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:23:01] Production.INFO: neon service started [2025-03-03 05:23:01] Production.INFO: neon service started [2025-03-03 05:23:01] Production.INFO: ==20871== Releasing lock... [2025-03-03 05:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:23:01] Production.INFO: ==20873== Lock acquired, processing the job... [2025-03-03 00:23:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:23:02] Production.INFO: ==20873== Releasing lock... [2025-03-03 00:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:23:02] Production.INFO: ==20875== Lock acquired, processing the job... [2025-03-03 05:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:23:02] Production.INFO: ==20875== Releasing lock... [2025-03-03 05:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:23:03] Production.INFO: ==20884== Lock acquired, processing the job... [2025-03-03 00:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:23:03] Production.INFO: ==20880== Lock acquired, processing the job... [2025-03-03 00:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:23:03] Production.INFO: Account Balance Start. [2025-03-03 00:23:03] Production.INFO: CreateAllLog Start [2025-03-03 00:23:03] Production.INFO: 117 [2025-03-03 00:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: ==20878== Lock acquired, processing the job... [2025-03-03 00:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:23:03] Production.INFO: ==20880== Releasing lock... [2025-03-03 00:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:23:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:23:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: ==20882== Lock acquired, processing the job... [2025-03-03 00:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:23:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: ==20886== Lock acquired, processing the job... [2025-03-03 00:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:23:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: ==20888== Lock acquired, processing the job... [2025-03-03 00:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:23:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:23:03] Production.INFO: Date 2025-02-17 [2025-03-03 00:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:03] Production.INFO: count ==13 [2025-03-03 00:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: count ==21 [2025-03-03 00:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594765') start [2025-03-03 00:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.ERROR: done [2025-03-03 00:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594765') end [2025-03-03 00:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:23:04] Production.INFO: 1 [2025-03-03 00:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: ==20888== Releasing lock... [2025-03-03 00:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:23:04] Production.ERROR: done [2025-03-03 00:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:23:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:23:04] Production.INFO: Total Charge 0 [2025-03-03 00:23:04] Production.INFO: CreateAllLog End [2025-03-03 00:23:04] Production.INFO: Account Balance End. [2025-03-03 00:23:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:23:04] Production.INFO: ==20884== Releasing lock... [2025-03-03 00:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:23:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:23:12] Production.ERROR: CronJobId end10 [2025-03-03 00:23:12] Production.INFO: ==20882== Releasing lock... [2025-03-03 00:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:23:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:23:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:23:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:23:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:23:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:23:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:23:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:23:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:23:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:23:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:23:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:23:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:23:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:23:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:23:14] Production.INFO: call_cost start [2025-03-03 00:23:14] Production.INFO: call_cost end [2025-03-03 00:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:23:14] Production.INFO: ==20878== Releasing lock... [2025-03-03 00:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:23:16] Production.INFO: count ==409 [2025-03-03 00:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594766', 'tblTempUsageDetail_20' ) start [2025-03-03 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594766', 'tblTempUsageDetail_20' ) end [2025-03-03 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594766', 'tblTempVendorCDR_20' ) start [2025-03-03 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594766', 'tblTempVendorCDR_20' ) end [2025-03-03 00:23:16] Production.INFO: ProcessCDR(1,14594766,1,1,2) [2025-03-03 00:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594766', 'tblTempUsageDetail_20' ) start [2025-03-03 00:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594766', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:23:24] Production.INFO: ==20886== Releasing lock... [2025-03-03 00:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:23:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:24:02] Production.INFO: ==20970== Lock acquired, processing the job... [2025-03-03 05:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:24:02] Production.INFO: neon service started [2025-03-03 05:24:02] Production.INFO: neon service started [2025-03-03 05:24:02] Production.INFO: ==20970== Releasing lock... [2025-03-03 05:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:24:02] Production.INFO: ==20972== Lock acquired, processing the job... [2025-03-03 00:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:24:02] Production.INFO: ==20972== Releasing lock... [2025-03-03 00:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:24:02] Production.INFO: ==20974== Lock acquired, processing the job... [2025-03-03 05:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:24:02] Production.INFO: ==20974== Releasing lock... [2025-03-03 05:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:24:03] Production.INFO: ==20980== Lock acquired, processing the job... [2025-03-03 00:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:24:03] Production.INFO: ==20984== Lock acquired, processing the job... [2025-03-03 00:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:24:03] Production.INFO: ==20976== Lock acquired, processing the job... [2025-03-03 00:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:24:04] Production.INFO: ==20978== Lock acquired, processing the job... [2025-03-03 00:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:24:04] Production.INFO: ==20982== Lock acquired, processing the job... [2025-03-03 00:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:24:04] Production.INFO: ==20986== Lock acquired, processing the job... [2025-03-03 00:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:24:04] Production.ERROR: done [2025-03-03 00:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:24:04] Production.INFO: Account Balance Start. [2025-03-03 00:24:04] Production.INFO: CreateAllLog Start [2025-03-03 00:24:04] Production.INFO: 117 [2025-03-03 00:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: count ==13 [2025-03-03 00:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:24:04] Production.INFO: count ==21 [2025-03-03 00:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594770') start [2025-03-03 00:24:04] Production.ERROR: done [2025-03-03 00:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: ==20978== Releasing lock... [2025-03-03 00:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594770') end [2025-03-03 00:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:24:04] Production.INFO: 1 [2025-03-03 00:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:04] Production.INFO: ==20986== Releasing lock... [2025-03-03 00:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:24:05] Production.INFO: Total Charge 0 [2025-03-03 00:24:05] Production.INFO: CreateAllLog End [2025-03-03 00:24:05] Production.INFO: Account Balance End. [2025-03-03 00:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:24:05] Production.INFO: ==20982== Releasing lock... [2025-03-03 00:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:24:13] Production.ERROR: CronJobId end10 [2025-03-03 00:24:13] Production.INFO: ==20980== Releasing lock... [2025-03-03 00:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:24:15] Production.INFO: call_cost start [2025-03-03 00:24:15] Production.INFO: call_cost end [2025-03-03 00:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:24:15] Production.INFO: ==20976== Releasing lock... [2025-03-03 00:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:24:17] Production.INFO: count ==409 [2025-03-03 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594771', 'tblTempUsageDetail_20' ) start [2025-03-03 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594771', 'tblTempUsageDetail_20' ) end [2025-03-03 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594771', 'tblTempVendorCDR_20' ) start [2025-03-03 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594771', 'tblTempVendorCDR_20' ) end [2025-03-03 00:24:17] Production.INFO: ProcessCDR(1,14594771,1,1,2) [2025-03-03 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594771', 'tblTempUsageDetail_20' ) start [2025-03-03 00:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594771', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:24:24] Production.INFO: ==20984== Releasing lock... [2025-03-03 00:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:25:01] Production.INFO: ==21053== Lock acquired, processing the job... [2025-03-03 05:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:25:01] Production.INFO: neon service started [2025-03-03 05:25:01] Production.INFO: neon service started [2025-03-03 05:25:01] Production.INFO: ==21053== Releasing lock... [2025-03-03 05:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:25:01] Production.INFO: ==21055== Lock acquired, processing the job... [2025-03-03 00:25:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:25:02] Production.INFO: ==21055== Releasing lock... [2025-03-03 00:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:25:02] Production.INFO: ==21057== Lock acquired, processing the job... [2025-03-03 05:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:25:02] Production.INFO: ==21057== Releasing lock... [2025-03-03 05:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:25:03] Production.INFO: ==21070== Lock acquired, processing the job... [2025-03-03 00:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:25:03] Production.INFO: ==21068== Lock acquired, processing the job... [2025-03-03 00:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:25:03] Production.INFO: ==21060== Lock acquired, processing the job... [2025-03-03 00:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:25:03] Production.INFO: ==21062== Lock acquired, processing the job... [2025-03-03 00:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:25:03] Production.INFO: count ==13 [2025-03-03 00:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:25:03] Production.INFO: count ==21 [2025-03-03 00:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594772') start [2025-03-03 00:25:03] Production.INFO: ==21064== Lock acquired, processing the job... [2025-03-03 00:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:25:03] Production.INFO: ==21066== Lock acquired, processing the job... [2025-03-03 00:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:25:03] Production.INFO: Account Balance Start. [2025-03-03 00:25:03] Production.INFO: CreateAllLog Start [2025-03-03 00:25:03] Production.INFO: 117 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594772') end [2025-03-03 00:25:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:25:03] Production.INFO: 1 [2025-03-03 00:25:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:25:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: ==21070== Releasing lock... [2025-03-03 00:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:25:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:25:03] Production.ERROR: done [2025-03-03 00:25:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:03] Production.INFO: ==21062== Releasing lock... [2025-03-03 00:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:25:03] Production.ERROR: done [2025-03-03 00:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:25:04] Production.INFO: Total Charge 0 [2025-03-03 00:25:04] Production.INFO: CreateAllLog End [2025-03-03 00:25:04] Production.INFO: Account Balance End. [2025-03-03 00:25:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:25:04] Production.INFO: ==21066== Releasing lock... [2025-03-03 00:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:25:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:25:11] Production.ERROR: CronJobId end10 [2025-03-03 00:25:11] Production.INFO: ==21064== Releasing lock... [2025-03-03 00:25:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:25:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:25:14] Production.INFO: call_cost start [2025-03-03 00:25:14] Production.INFO: call_cost end [2025-03-03 00:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:25:14] Production.INFO: ==21060== Releasing lock... [2025-03-03 00:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:25:16] Production.INFO: count ==409 [2025-03-03 00:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594776', 'tblTempUsageDetail_20' ) start [2025-03-03 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594776', 'tblTempUsageDetail_20' ) end [2025-03-03 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594776', 'tblTempVendorCDR_20' ) start [2025-03-03 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594776', 'tblTempVendorCDR_20' ) end [2025-03-03 00:25:16] Production.INFO: ProcessCDR(1,14594776,1,1,2) [2025-03-03 00:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594776', 'tblTempUsageDetail_20' ) start [2025-03-03 00:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594776', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:25:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:25:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:25:23] Production.INFO: ==21068== Releasing lock... [2025-03-03 00:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:25:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:26:01] Production.INFO: ==21138== Lock acquired, processing the job... [2025-03-03 05:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:26:02] Production.INFO: neon service started [2025-03-03 05:26:02] Production.INFO: neon service started [2025-03-03 05:26:02] Production.INFO: ==21138== Releasing lock... [2025-03-03 05:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:26:02] Production.INFO: ==21143== Lock acquired, processing the job... [2025-03-03 05:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:26:02] Production.INFO: ==21143== Releasing lock... [2025-03-03 05:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:26:02] Production.INFO: ==21140== Lock acquired, processing the job... [2025-03-03 00:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:26:03] Production.INFO: ==21140== Releasing lock... [2025-03-03 00:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:26:03] Production.INFO: ==21149== Lock acquired, processing the job... [2025-03-03 00:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:26:04] Production.INFO: ==21153== Lock acquired, processing the job... [2025-03-03 00:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:26:04] Production.INFO: ==21145== Lock acquired, processing the job... [2025-03-03 00:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:26:04] Production.INFO: ==21147== Lock acquired, processing the job... [2025-03-03 00:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:26:04] Production.INFO: ==21151== Lock acquired, processing the job... [2025-03-03 00:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:26:04] Production.INFO: ==21155== Lock acquired, processing the job... [2025-03-03 00:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:26:04] Production.INFO: Account Balance Start. [2025-03-03 00:26:04] Production.INFO: CreateAllLog Start [2025-03-03 00:26:04] Production.INFO: 117 [2025-03-03 00:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:26:04] Production.INFO: count ==13 [2025-03-03 00:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:26:04] Production.INFO: count ==21 [2025-03-03 00:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594780') start [2025-03-03 00:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:26:04] Production.ERROR: done [2025-03-03 00:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.INFO: ==21147== Releasing lock... [2025-03-03 00:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594780') end [2025-03-03 00:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:26:04] Production.INFO: 1 [2025-03-03 00:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.ERROR: done [2025-03-03 00:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.INFO: ==21155== Releasing lock... [2025-03-03 00:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:26:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:26:05] Production.INFO: Total Charge 0 [2025-03-03 00:26:05] Production.INFO: CreateAllLog End [2025-03-03 00:26:06] Production.INFO: Account Balance End. [2025-03-03 00:26:06] Production.ERROR: CronJobId end 12 [2025-03-03 00:26:06] Production.INFO: ==21151== Releasing lock... [2025-03-03 00:26:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:26:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:26:12] Production.ERROR: CronJobId end10 [2025-03-03 00:26:12] Production.INFO: ==21149== Releasing lock... [2025-03-03 00:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:26:14] Production.INFO: call_cost start [2025-03-03 00:26:14] Production.INFO: call_cost end [2025-03-03 00:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:26:14] Production.INFO: ==21145== Releasing lock... [2025-03-03 00:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:26:16] Production.INFO: count ==409 [2025-03-03 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594781', 'tblTempUsageDetail_20' ) start [2025-03-03 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594781', 'tblTempUsageDetail_20' ) end [2025-03-03 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594781', 'tblTempVendorCDR_20' ) start [2025-03-03 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594781', 'tblTempVendorCDR_20' ) end [2025-03-03 00:26:17] Production.INFO: ProcessCDR(1,14594781,1,1,2) [2025-03-03 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594781', 'tblTempUsageDetail_20' ) start [2025-03-03 00:26:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594781', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:26:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:26:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:26:24] Production.INFO: ==21153== Releasing lock... [2025-03-03 00:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:27:01] Production.INFO: ==21222== Lock acquired, processing the job... [2025-03-03 05:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:27:01] Production.INFO: neon service started [2025-03-03 05:27:01] Production.INFO: neon service started [2025-03-03 05:27:01] Production.INFO: ==21222== Releasing lock... [2025-03-03 05:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:27:01] Production.INFO: ==21224== Lock acquired, processing the job... [2025-03-03 00:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:27:02] Production.INFO: ==21226== Lock acquired, processing the job... [2025-03-03 05:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:27:02] Production.INFO: ==21226== Releasing lock... [2025-03-03 05:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:27:02] Production.INFO: ==21224== Releasing lock... [2025-03-03 00:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:27:02] Production.INFO: ==21229== Lock acquired, processing the job... [2025-03-03 00:27:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:27:03] Production.INFO: ==21231== Lock acquired, processing the job... [2025-03-03 00:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:27:03] Production.INFO: ==21237== Lock acquired, processing the job... [2025-03-03 00:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:27:03] Production.INFO: ==21239== Lock acquired, processing the job... [2025-03-03 00:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:27:03] Production.INFO: ==21235== Lock acquired, processing the job... [2025-03-03 00:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:27:03] Production.INFO: ==21233== Lock acquired, processing the job... [2025-03-03 00:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:27:03] Production.INFO: count ==13 [2025-03-03 00:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:27:03] Production.INFO: Account Balance Start. [2025-03-03 00:27:03] Production.INFO: CreateAllLog Start [2025-03-03 00:27:03] Production.INFO: count ==21 [2025-03-03 00:27:03] Production.INFO: 117 [2025-03-03 00:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:27:03] Production.INFO: ==21231== Releasing lock... [2025-03-03 00:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594784') start [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594784') end [2025-03-03 00:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:27:03] Production.INFO: 1 [2025-03-03 00:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:27:03] Production.INFO: ==21239== Releasing lock... [2025-03-03 00:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:27:03] Production.ERROR: done [2025-03-03 00:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:03] Production.ERROR: done [2025-03-03 00:27:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:27:04] Production.INFO: Total Charge 0 [2025-03-03 00:27:04] Production.INFO: CreateAllLog End [2025-03-03 00:27:04] Production.INFO: Account Balance End. [2025-03-03 00:27:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:27:04] Production.INFO: ==21235== Releasing lock... [2025-03-03 00:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:27:11] Production.ERROR: CronJobId end10 [2025-03-03 00:27:11] Production.INFO: ==21233== Releasing lock... [2025-03-03 00:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:27:14] Production.INFO: call_cost start [2025-03-03 00:27:14] Production.INFO: call_cost end [2025-03-03 00:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:27:14] Production.INFO: ==21229== Releasing lock... [2025-03-03 00:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:27:16] Production.INFO: count ==409 [2025-03-03 00:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594786', 'tblTempUsageDetail_20' ) start [2025-03-03 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594786', 'tblTempUsageDetail_20' ) end [2025-03-03 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594786', 'tblTempVendorCDR_20' ) start [2025-03-03 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594786', 'tblTempVendorCDR_20' ) end [2025-03-03 00:27:16] Production.INFO: ProcessCDR(1,14594786,1,1,2) [2025-03-03 00:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594786', 'tblTempUsageDetail_20' ) start [2025-03-03 00:27:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594786', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:27:24] Production.INFO: ==21237== Releasing lock... [2025-03-03 00:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:28:02] Production.INFO: ==21306== Lock acquired, processing the job... [2025-03-03 05:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:28:02] Production.INFO: neon service started [2025-03-03 05:28:02] Production.INFO: neon service started [2025-03-03 05:28:02] Production.INFO: ==21306== Releasing lock... [2025-03-03 05:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:28:02] Production.INFO: ==21310== Lock acquired, processing the job... [2025-03-03 05:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:28:02] Production.INFO: ==21310== Releasing lock... [2025-03-03 05:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:28:02] Production.INFO: ==21308== Lock acquired, processing the job... [2025-03-03 00:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:28:03] Production.INFO: ==21308== Releasing lock... [2025-03-03 00:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:28:04] Production.INFO: ==21313== Lock acquired, processing the job... [2025-03-03 00:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:28:04] Production.INFO: ==21319== Lock acquired, processing the job... [2025-03-03 00:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:28:04] Production.INFO: ==21315== Lock acquired, processing the job... [2025-03-03 00:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:28:04] Production.INFO: ==21321== Lock acquired, processing the job... [2025-03-03 00:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:28:04] Production.INFO: Account Balance Start. [2025-03-03 00:28:04] Production.INFO: CreateAllLog Start [2025-03-03 00:28:04] Production.INFO: 117 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:28:04] Production.INFO: ==21317== Lock acquired, processing the job... [2025-03-03 00:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: ==21323== Lock acquired, processing the job... [2025-03-03 00:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: count ==13 [2025-03-03 00:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:28:04] Production.INFO: count ==21 [2025-03-03 00:28:04] Production.INFO: ==21315== Releasing lock... [2025-03-03 00:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594790') start [2025-03-03 00:28:04] Production.ERROR: done [2025-03-03 00:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594790') end [2025-03-03 00:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:28:04] Production.INFO: 1 [2025-03-03 00:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:04] Production.INFO: ==21323== Releasing lock... [2025-03-03 00:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:28:04] Production.ERROR: done [2025-03-03 00:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:28:05] Production.INFO: Total Charge 0 [2025-03-03 00:28:05] Production.INFO: CreateAllLog End [2025-03-03 00:28:05] Production.INFO: Account Balance End. [2025-03-03 00:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:28:05] Production.INFO: ==21319== Releasing lock... [2025-03-03 00:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:28:12] Production.ERROR: CronJobId end10 [2025-03-03 00:28:12] Production.INFO: ==21317== Releasing lock... [2025-03-03 00:28:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:28:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:28:15] Production.INFO: call_cost start [2025-03-03 00:28:15] Production.INFO: call_cost end [2025-03-03 00:28:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:28:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:28:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:28:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:28:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:28:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:28:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:28:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:28:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:28:15] Production.INFO: ==21313== Releasing lock... [2025-03-03 00:28:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:28:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:28:17] Production.INFO: count ==409 [2025-03-03 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594791', 'tblTempUsageDetail_20' ) start [2025-03-03 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594791', 'tblTempUsageDetail_20' ) end [2025-03-03 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594791', 'tblTempVendorCDR_20' ) start [2025-03-03 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594791', 'tblTempVendorCDR_20' ) end [2025-03-03 00:28:17] Production.INFO: ProcessCDR(1,14594791,1,1,2) [2025-03-03 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594791', 'tblTempUsageDetail_20' ) start [2025-03-03 00:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594791', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:28:24] Production.INFO: ==21321== Releasing lock... [2025-03-03 00:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:29:01] Production.INFO: ==21394== Lock acquired, processing the job... [2025-03-03 05:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:29:01] Production.INFO: neon service started [2025-03-03 05:29:01] Production.INFO: neon service started [2025-03-03 05:29:01] Production.INFO: ==21394== Releasing lock... [2025-03-03 05:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:29:02] Production.INFO: ==21396== Lock acquired, processing the job... [2025-03-03 00:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:29:02] Production.INFO: ==21398== Lock acquired, processing the job... [2025-03-03 05:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:29:02] Production.INFO: ==21398== Releasing lock... [2025-03-03 05:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:29:02] Production.INFO: ==21396== Releasing lock... [2025-03-03 00:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:29:03] Production.INFO: ==21405== Lock acquired, processing the job... [2025-03-03 00:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:29:03] Production.INFO: ==21407== Lock acquired, processing the job... [2025-03-03 00:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:29:03] Production.INFO: ==21401== Lock acquired, processing the job... [2025-03-03 00:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:29:03] Production.INFO: ==21403== Lock acquired, processing the job... [2025-03-03 00:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:29:03] Production.INFO: Account Balance Start. [2025-03-03 00:29:03] Production.INFO: CreateAllLog Start [2025-03-03 00:29:03] Production.INFO: 117 [2025-03-03 00:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: ==21411== Lock acquired, processing the job... [2025-03-03 00:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:29:04] Production.INFO: ==21409== Lock acquired, processing the job... [2025-03-03 00:29:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:29:04] Production.INFO: count ==13 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:29:04] Production.INFO: count ==21 [2025-03-03 00:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594795') start [2025-03-03 00:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: ==21403== Releasing lock... [2025-03-03 00:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594795') end [2025-03-03 00:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:29:04] Production.INFO: 1 [2025-03-03 00:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: ==21411== Releasing lock... [2025-03-03 00:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.ERROR: done [2025-03-03 00:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.ERROR: done [2025-03-03 00:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:29:04] Production.INFO: Total Charge 0 [2025-03-03 00:29:04] Production.INFO: CreateAllLog End [2025-03-03 00:29:05] Production.INFO: Account Balance End. [2025-03-03 00:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:29:05] Production.INFO: ==21407== Releasing lock... [2025-03-03 00:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:29:12] Production.ERROR: CronJobId end10 [2025-03-03 00:29:12] Production.INFO: ==21405== Releasing lock... [2025-03-03 00:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:29:14] Production.INFO: call_cost start [2025-03-03 00:29:14] Production.INFO: call_cost end [2025-03-03 00:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:29:14] Production.INFO: ==21401== Releasing lock... [2025-03-03 00:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:29:16] Production.INFO: count ==409 [2025-03-03 00:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594796', 'tblTempUsageDetail_20' ) start [2025-03-03 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594796', 'tblTempUsageDetail_20' ) end [2025-03-03 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594796', 'tblTempVendorCDR_20' ) start [2025-03-03 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594796', 'tblTempVendorCDR_20' ) end [2025-03-03 00:29:16] Production.INFO: ProcessCDR(1,14594796,1,1,2) [2025-03-03 00:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594796', 'tblTempUsageDetail_20' ) start [2025-03-03 00:29:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594796', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:29:24] Production.INFO: ==21409== Releasing lock... [2025-03-03 00:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:30:01] Production.INFO: ==21476== Lock acquired, processing the job... [2025-03-03 05:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:30:02] Production.INFO: neon service started [2025-03-03 05:30:02] Production.INFO: neon service started [2025-03-03 05:30:02] Production.INFO: ==21476== Releasing lock... [2025-03-03 05:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:30:02] Production.INFO: ==21478== Lock acquired, processing the job... [2025-03-03 00:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:30:02] Production.INFO: ==21480== Lock acquired, processing the job... [2025-03-03 05:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:30:02] Production.INFO: ==21478== Releasing lock... [2025-03-03 00:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:30:02] Production.INFO: ==21480== Releasing lock... [2025-03-03 05:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:30:03] Production.INFO: ==21483== Lock acquired, processing the job... [2025-03-03 00:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 00:30:03] Production.INFO: ==21485== Lock acquired, processing the job... [2025-03-03 00:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 00:30:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:30:03] Production.ERROR: CronJob PID - 21485 [2025-03-03 00:30:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 00:30:03] Production.ERROR: CronJob ID - 5 [2025-03-03 00:30:03] Production.ERROR: CronJob Last Run Time 2025-03-03 00:30:00 [2025-03-03 00:30:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:30:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 00:30:03] Production.INFO: ==21483== Releasing lock... [2025-03-03 00:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 00:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:30:04] Production.INFO: ==21491== Lock acquired, processing the job... [2025-03-03 00:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:30:04] Production.INFO: Account Balance Start. [2025-03-03 00:30:04] Production.INFO: CreateAllLog Start [2025-03-03 00:30:04] Production.INFO: ==21487== Lock acquired, processing the job... [2025-03-03 00:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:30:04] Production.INFO: 117 [2025-03-03 00:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: ==21497== Lock acquired, processing the job... [2025-03-03 00:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: ==21489== Lock acquired, processing the job... [2025-03-03 00:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: ==21493== Lock acquired, processing the job... [2025-03-03 00:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:30:04] Production.INFO: ==21495== Lock acquired, processing the job... [2025-03-03 00:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 00:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:30:04] Production.INFO: count ==13 [2025-03-03 00:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: count ==21 [2025-03-03 00:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594800') start [2025-03-03 00:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594800') end [2025-03-03 00:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:30:04] Production.INFO: 1 [2025-03-03 00:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:30:04] Production.INFO: ==21487== Releasing lock... [2025-03-03 00:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: ==21497== Releasing lock... [2025-03-03 00:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.ERROR: done [2025-03-03 00:30:04] Production.ERROR: done [2025-03-03 00:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 00:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594801', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 00:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:30:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.ERROR: done [2025-03-03 00:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:30:05] Production.INFO: Total Charge 0 [2025-03-03 00:30:05] Production.INFO: CreateAllLog End [2025-03-03 00:30:05] Production.INFO: Account Balance End. [2025-03-03 00:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:30:05] Production.INFO: ==21491== Releasing lock... [2025-03-03 00:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594801', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 00:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 00:30:09] Production.INFO: ProcessCDR(1,14594801,1,1,2) [2025-03-03 00:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594801,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594801,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 00:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 00:30:09] Production.INFO: ==21495== Releasing lock... [2025-03-03 00:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 00:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 00:30:13] Production.ERROR: CronJobId end10 [2025-03-03 00:30:13] Production.INFO: ==21489== Releasing lock... [2025-03-03 00:30:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:30:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:30:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:30:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:30:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:30:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:30:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:30:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:30:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:30:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:30:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:30:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:30:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:30:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:30:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:30:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:30:15] Production.INFO: call_cost start [2025-03-03 00:30:15] Production.INFO: call_cost end [2025-03-03 00:30:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:30:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:30:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:30:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:30:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:30:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:30:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:30:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:30:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:30:15] Production.INFO: ==21485== Releasing lock... [2025-03-03 00:30:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:30:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:30:17] Production.INFO: count ==409 [2025-03-03 00:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594802', 'tblTempUsageDetail_20' ) start [2025-03-03 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594802', 'tblTempUsageDetail_20' ) end [2025-03-03 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594802', 'tblTempVendorCDR_20' ) start [2025-03-03 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594802', 'tblTempVendorCDR_20' ) end [2025-03-03 00:30:17] Production.INFO: ProcessCDR(1,14594802,1,1,2) [2025-03-03 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594802', 'tblTempUsageDetail_20' ) start [2025-03-03 00:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594802', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:30:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:30:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:30:24] Production.INFO: ==21493== Releasing lock... [2025-03-03 00:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:30:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:31:01] Production.INFO: ==21574== Lock acquired, processing the job... [2025-03-03 05:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:31:01] Production.INFO: neon service started [2025-03-03 05:31:01] Production.INFO: neon service started [2025-03-03 05:31:01] Production.INFO: ==21574== Releasing lock... [2025-03-03 05:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:31:02] Production.INFO: ==21576== Lock acquired, processing the job... [2025-03-03 00:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:31:02] Production.INFO: ==21578== Lock acquired, processing the job... [2025-03-03 05:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:31:02] Production.INFO: ==21578== Releasing lock... [2025-03-03 05:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:31:02] Production.INFO: ==21576== Releasing lock... [2025-03-03 00:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:31:03] Production.INFO: ==21583== Lock acquired, processing the job... [2025-03-03 00:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:31:03] Production.INFO: ==21591== Lock acquired, processing the job... [2025-03-03 00:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:31:03] Production.INFO: ==21581== Lock acquired, processing the job... [2025-03-03 00:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:31:03] Production.INFO: count ==13 [2025-03-03 00:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:31:03] Production.INFO: count ==21 [2025-03-03 00:31:03] Production.INFO: ==21585== Lock acquired, processing the job... [2025-03-03 00:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:31:03] Production.INFO: ==21589== Lock acquired, processing the job... [2025-03-03 00:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:31:03] Production.INFO: ==21583== Releasing lock... [2025-03-03 00:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:31:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594804') start [2025-03-03 00:31:03] Production.INFO: ==21587== Lock acquired, processing the job... [2025-03-03 00:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:31:03] Production.INFO: Account Balance Start. [2025-03-03 00:31:03] Production.INFO: CreateAllLog Start [2025-03-03 00:31:03] Production.INFO: 117 [2025-03-03 00:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594804') end [2025-03-03 00:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:31:03] Production.INFO: 1 [2025-03-03 00:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:31:04] Production.INFO: ==21591== Releasing lock... [2025-03-03 00:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.ERROR: done [2025-03-03 00:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.ERROR: done [2025-03-03 00:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:31:04] Production.INFO: Total Charge 0 [2025-03-03 00:31:04] Production.INFO: CreateAllLog End [2025-03-03 00:31:05] Production.INFO: Account Balance End. [2025-03-03 00:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:31:05] Production.INFO: ==21587== Releasing lock... [2025-03-03 00:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:31:11] Production.ERROR: CronJobId end10 [2025-03-03 00:31:11] Production.INFO: ==21585== Releasing lock... [2025-03-03 00:31:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:31:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:31:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:31:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:31:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:31:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:31:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:31:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:31:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:31:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:31:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:31:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:31:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:31:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:31:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:31:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:31:14] Production.INFO: call_cost start [2025-03-03 00:31:14] Production.INFO: call_cost end [2025-03-03 00:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:31:14] Production.INFO: ==21581== Releasing lock... [2025-03-03 00:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:31:16] Production.INFO: count ==409 [2025-03-03 00:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594807', 'tblTempUsageDetail_20' ) start [2025-03-03 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594807', 'tblTempUsageDetail_20' ) end [2025-03-03 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594807', 'tblTempVendorCDR_20' ) start [2025-03-03 00:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594807', 'tblTempVendorCDR_20' ) end [2025-03-03 00:31:16] Production.INFO: ProcessCDR(1,14594807,1,1,2) [2025-03-03 00:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594807', 'tblTempUsageDetail_20' ) start [2025-03-03 00:31:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594807', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:31:24] Production.INFO: ==21589== Releasing lock... [2025-03-03 00:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:31:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:32:01] Production.INFO: ==21663== Lock acquired, processing the job... [2025-03-03 05:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:32:01] Production.INFO: neon service started [2025-03-03 05:32:01] Production.INFO: neon service started [2025-03-03 05:32:01] Production.INFO: ==21663== Releasing lock... [2025-03-03 05:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:32:02] Production.INFO: ==21665== Lock acquired, processing the job... [2025-03-03 00:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:32:02] Production.INFO: ==21667== Lock acquired, processing the job... [2025-03-03 05:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:32:02] Production.INFO: ==21667== Releasing lock... [2025-03-03 05:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:32:02] Production.INFO: ==21665== Releasing lock... [2025-03-03 00:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:32:03] Production.INFO: ==21670== Lock acquired, processing the job... [2025-03-03 00:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:32:03] Production.INFO: ==21674== Lock acquired, processing the job... [2025-03-03 00:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:32:03] Production.INFO: ==21676== Lock acquired, processing the job... [2025-03-03 00:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:32:03] Production.INFO: Account Balance Start. [2025-03-03 00:32:03] Production.INFO: CreateAllLog Start [2025-03-03 00:32:03] Production.INFO: 117 [2025-03-03 00:32:03] Production.INFO: ==21672== Lock acquired, processing the job... [2025-03-03 00:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: ==21678== Lock acquired, processing the job... [2025-03-03 00:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: ==21680== Lock acquired, processing the job... [2025-03-03 00:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: count ==13 [2025-03-03 00:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:32:04] Production.INFO: count ==21 [2025-03-03 00:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594811') start [2025-03-03 00:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:32:04] Production.INFO: ==21672== Releasing lock... [2025-03-03 00:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.ERROR: done [2025-03-03 00:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594811') end [2025-03-03 00:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:32:04] Production.INFO: 1 [2025-03-03 00:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: ==21680== Releasing lock... [2025-03-03 00:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:32:04] Production.ERROR: done [2025-03-03 00:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:32:05] Production.INFO: Total Charge 0 [2025-03-03 00:32:05] Production.INFO: CreateAllLog End [2025-03-03 00:32:05] Production.INFO: Account Balance End. [2025-03-03 00:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:32:05] Production.INFO: ==21676== Releasing lock... [2025-03-03 00:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:32:11] Production.ERROR: CronJobId end10 [2025-03-03 00:32:11] Production.INFO: ==21674== Releasing lock... [2025-03-03 00:32:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:32:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:32:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:32:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:32:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:32:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:32:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:32:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:32:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:32:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:32:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:32:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:32:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:32:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:32:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:32:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:32:14] Production.INFO: call_cost start [2025-03-03 00:32:14] Production.INFO: call_cost end [2025-03-03 00:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:32:14] Production.INFO: ==21670== Releasing lock... [2025-03-03 00:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:32:16] Production.INFO: count ==409 [2025-03-03 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594812', 'tblTempUsageDetail_20' ) start [2025-03-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594812', 'tblTempUsageDetail_20' ) end [2025-03-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594812', 'tblTempVendorCDR_20' ) start [2025-03-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594812', 'tblTempVendorCDR_20' ) end [2025-03-03 00:32:17] Production.INFO: ProcessCDR(1,14594812,1,1,2) [2025-03-03 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594812', 'tblTempUsageDetail_20' ) start [2025-03-03 00:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594812', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:32:24] Production.INFO: ==21678== Releasing lock... [2025-03-03 00:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:33:02] Production.INFO: ==21744== Lock acquired, processing the job... [2025-03-03 05:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:33:02] Production.INFO: neon service started [2025-03-03 05:33:02] Production.INFO: neon service started [2025-03-03 05:33:02] Production.INFO: ==21744== Releasing lock... [2025-03-03 05:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:33:02] Production.INFO: ==21748== Lock acquired, processing the job... [2025-03-03 05:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:33:02] Production.INFO: ==21748== Releasing lock... [2025-03-03 05:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:33:02] Production.INFO: ==21746== Lock acquired, processing the job... [2025-03-03 00:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:33:03] Production.INFO: ==21746== Releasing lock... [2025-03-03 00:33:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:33:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:33:04] Production.INFO: ==21757== Lock acquired, processing the job... [2025-03-03 00:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:33:04] Production.INFO: ==21761== Lock acquired, processing the job... [2025-03-03 00:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:33:04] Production.INFO: Account Balance Start. [2025-03-03 00:33:04] Production.INFO: CreateAllLog Start [2025-03-03 00:33:04] Production.INFO: 117 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:33:04] Production.INFO: ==21753== Lock acquired, processing the job... [2025-03-03 00:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:33:04] Production.INFO: count ==13 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: ==21751== Lock acquired, processing the job... [2025-03-03 00:33:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:33:04] Production.INFO: count ==21 [2025-03-03 00:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594814') start [2025-03-03 00:33:04] Production.INFO: ==21755== Lock acquired, processing the job... [2025-03-03 00:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:33:04] Production.INFO: ==21759== Lock acquired, processing the job... [2025-03-03 00:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594814') end [2025-03-03 00:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:33:04] Production.INFO: 1 [2025-03-03 00:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:33:04] Production.INFO: ==21761== Releasing lock... [2025-03-03 00:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: ==21753== Releasing lock... [2025-03-03 00:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.ERROR: done [2025-03-03 00:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.ERROR: done [2025-03-03 00:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:33:05] Production.INFO: Total Charge 0 [2025-03-03 00:33:05] Production.INFO: CreateAllLog End [2025-03-03 00:33:05] Production.INFO: Account Balance End. [2025-03-03 00:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:33:05] Production.INFO: ==21757== Releasing lock... [2025-03-03 00:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:33:13] Production.ERROR: CronJobId end10 [2025-03-03 00:33:13] Production.INFO: ==21755== Releasing lock... [2025-03-03 00:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:33:14] Production.INFO: call_cost start [2025-03-03 00:33:14] Production.INFO: call_cost end [2025-03-03 00:33:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:33:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:33:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:33:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:33:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:33:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:33:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:33:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:33:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:33:14] Production.INFO: ==21751== Releasing lock... [2025-03-03 00:33:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:33:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:33:16] Production.INFO: count ==409 [2025-03-03 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594817', 'tblTempUsageDetail_20' ) start [2025-03-03 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594817', 'tblTempUsageDetail_20' ) end [2025-03-03 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594817', 'tblTempVendorCDR_20' ) start [2025-03-03 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594817', 'tblTempVendorCDR_20' ) end [2025-03-03 00:33:17] Production.INFO: ProcessCDR(1,14594817,1,1,2) [2025-03-03 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594817', 'tblTempUsageDetail_20' ) start [2025-03-03 00:33:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594817', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:33:24] Production.INFO: ==21759== Releasing lock... [2025-03-03 00:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:33:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:34:01] Production.INFO: ==21834== Lock acquired, processing the job... [2025-03-03 05:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:34:01] Production.INFO: neon service started [2025-03-03 05:34:01] Production.INFO: neon service started [2025-03-03 05:34:01] Production.INFO: ==21834== Releasing lock... [2025-03-03 05:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:34:02] Production.INFO: ==21838== Lock acquired, processing the job... [2025-03-03 05:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:34:02] Production.INFO: ==21838== Releasing lock... [2025-03-03 05:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:34:02] Production.INFO: ==21836== Lock acquired, processing the job... [2025-03-03 00:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:34:02] Production.INFO: ==21836== Releasing lock... [2025-03-03 00:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:34:03] Production.INFO: ==21841== Lock acquired, processing the job... [2025-03-03 00:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:34:03] Production.INFO: ==21845== Lock acquired, processing the job... [2025-03-03 00:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:34:03] Production.INFO: ==21849== Lock acquired, processing the job... [2025-03-03 00:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:34:03] Production.INFO: ==21843== Lock acquired, processing the job... [2025-03-03 00:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:34:03] Production.INFO: ==21851== Lock acquired, processing the job... [2025-03-03 00:34:03] Production.INFO: ==21847== Lock acquired, processing the job... [2025-03-03 00:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:34:03] Production.ERROR: done [2025-03-03 00:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:34:04] Production.INFO: Account Balance Start. [2025-03-03 00:34:04] Production.INFO: CreateAllLog Start [2025-03-03 00:34:04] Production.INFO: 117 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: count ==13 [2025-03-03 00:34:04] Production.ERROR: done [2025-03-03 00:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:34:04] Production.INFO: count ==21 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594820') start [2025-03-03 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: ==21843== Releasing lock... [2025-03-03 00:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594820') end [2025-03-03 00:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:34:04] Production.INFO: 1 [2025-03-03 00:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: ==21851== Releasing lock... [2025-03-03 00:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:34:05] Production.INFO: Total Charge 0 [2025-03-03 00:34:05] Production.INFO: CreateAllLog End [2025-03-03 00:34:05] Production.INFO: Account Balance End. [2025-03-03 00:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:34:05] Production.INFO: ==21847== Releasing lock... [2025-03-03 00:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:34:11] Production.ERROR: CronJobId end10 [2025-03-03 00:34:11] Production.INFO: ==21845== Releasing lock... [2025-03-03 00:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:34:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:34:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:34:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:34:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:34:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:34:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:34:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:34:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:34:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:34:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:34:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:34:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:34:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:34:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:34:14] Production.INFO: call_cost start [2025-03-03 00:34:14] Production.INFO: call_cost end [2025-03-03 00:34:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:34:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:34:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:34:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:34:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:34:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:34:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:34:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:34:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:34:14] Production.INFO: ==21841== Releasing lock... [2025-03-03 00:34:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:34:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:34:16] Production.INFO: count ==409 [2025-03-03 00:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594822', 'tblTempUsageDetail_20' ) start [2025-03-03 00:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594822', 'tblTempUsageDetail_20' ) end [2025-03-03 00:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594822', 'tblTempVendorCDR_20' ) start [2025-03-03 00:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594822', 'tblTempVendorCDR_20' ) end [2025-03-03 00:34:16] Production.INFO: ProcessCDR(1,14594822,1,1,2) [2025-03-03 00:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594822', 'tblTempUsageDetail_20' ) start [2025-03-03 00:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594822', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:34:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:34:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:34:23] Production.INFO: ==21849== Releasing lock... [2025-03-03 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:34:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:35:02] Production.INFO: ==21926== Lock acquired, processing the job... [2025-03-03 05:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:35:02] Production.INFO: neon service started [2025-03-03 05:35:02] Production.INFO: neon service started [2025-03-03 05:35:02] Production.INFO: ==21926== Releasing lock... [2025-03-03 05:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:35:02] Production.INFO: ==21930== Lock acquired, processing the job... [2025-03-03 05:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:35:02] Production.INFO: ==21930== Releasing lock... [2025-03-03 05:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:35:02] Production.INFO: ==21928== Lock acquired, processing the job... [2025-03-03 00:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:35:03] Production.INFO: ==21928== Releasing lock... [2025-03-03 00:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:35:03] Production.INFO: ==21934== Lock acquired, processing the job... [2025-03-03 00:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:35:03] Production.INFO: ==21936== Lock acquired, processing the job... [2025-03-03 00:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:35:03] Production.INFO: ==21938== Lock acquired, processing the job... [2025-03-03 00:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:35:03] Production.INFO: Account Balance Start. [2025-03-03 00:35:03] Production.INFO: CreateAllLog Start [2025-03-03 00:35:03] Production.INFO: 117 [2025-03-03 00:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: ==21934== Releasing lock... [2025-03-03 00:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: ==21932== Lock acquired, processing the job... [2025-03-03 00:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:35:04] Production.INFO: ==21940== Lock acquired, processing the job... [2025-03-03 00:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:35:04] Production.INFO: ==21942== Lock acquired, processing the job... [2025-03-03 00:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.ERROR: done [2025-03-03 00:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: count ==13 [2025-03-03 00:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:35:04] Production.INFO: count ==21 [2025-03-03 00:35:04] Production.ERROR: done [2025-03-03 00:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594826') start [2025-03-03 00:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594826') end [2025-03-03 00:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:35:04] Production.INFO: 1 [2025-03-03 00:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:35:04] Production.INFO: ==21942== Releasing lock... [2025-03-03 00:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:35:05] Production.INFO: Total Charge 0 [2025-03-03 00:35:05] Production.INFO: CreateAllLog End [2025-03-03 00:35:05] Production.INFO: Account Balance End. [2025-03-03 00:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:35:05] Production.INFO: ==21938== Releasing lock... [2025-03-03 00:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:35:11] Production.ERROR: CronJobId end10 [2025-03-03 00:35:11] Production.INFO: ==21936== Releasing lock... [2025-03-03 00:35:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:35:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:35:14] Production.INFO: call_cost start [2025-03-03 00:35:14] Production.INFO: call_cost end [2025-03-03 00:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:35:15] Production.INFO: ==21932== Releasing lock... [2025-03-03 00:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:35:16] Production.INFO: count ==409 [2025-03-03 00:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594827', 'tblTempUsageDetail_20' ) start [2025-03-03 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594827', 'tblTempUsageDetail_20' ) end [2025-03-03 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594827', 'tblTempVendorCDR_20' ) start [2025-03-03 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594827', 'tblTempVendorCDR_20' ) end [2025-03-03 00:35:16] Production.INFO: ProcessCDR(1,14594827,1,1,2) [2025-03-03 00:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594827', 'tblTempUsageDetail_20' ) start [2025-03-03 00:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594827', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:35:24] Production.INFO: ==21940== Releasing lock... [2025-03-03 00:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:36:01] Production.INFO: ==22045== Lock acquired, processing the job... [2025-03-03 05:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:36:01] Production.INFO: neon service started [2025-03-03 05:36:01] Production.INFO: neon service started [2025-03-03 05:36:01] Production.INFO: ==22045== Releasing lock... [2025-03-03 05:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:36:02] Production.INFO: ==22047== Lock acquired, processing the job... [2025-03-03 00:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:36:02] Production.INFO: ==22047== Releasing lock... [2025-03-03 00:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:36:02] Production.INFO: ==22049== Lock acquired, processing the job... [2025-03-03 05:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:36:02] Production.INFO: ==22049== Releasing lock... [2025-03-03 05:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:36:03] Production.INFO: ==22056== Lock acquired, processing the job... [2025-03-03 00:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:36:03] Production.INFO: ==22060== Lock acquired, processing the job... [2025-03-03 00:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:36:03] Production.INFO: ==22052== Lock acquired, processing the job... [2025-03-03 00:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:36:03] Production.INFO: ==22054== Lock acquired, processing the job... [2025-03-03 00:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:36:03] Production.INFO: ==22058== Lock acquired, processing the job... [2025-03-03 00:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:36:03] Production.INFO: ==22062== Lock acquired, processing the job... [2025-03-03 00:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:36:03] Production.INFO: Account Balance Start. [2025-03-03 00:36:03] Production.INFO: CreateAllLog Start [2025-03-03 00:36:03] Production.INFO: 117 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.ERROR: done [2025-03-03 00:36:03] Production.INFO: count ==13 [2025-03-03 00:36:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:36:03] Production.INFO: count ==21 [2025-03-03 00:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594830') start [2025-03-03 00:36:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594830') end [2025-03-03 00:36:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:36:03] Production.INFO: 1 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:36:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.ERROR: done [2025-03-03 00:36:04] Production.INFO: ==22062== Releasing lock... [2025-03-03 00:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: ==22054== Releasing lock... [2025-03-03 00:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:36:04] Production.INFO: Total Charge 0 [2025-03-03 00:36:04] Production.INFO: CreateAllLog End [2025-03-03 00:36:04] Production.INFO: Account Balance End. [2025-03-03 00:36:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:36:04] Production.INFO: ==22058== Releasing lock... [2025-03-03 00:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:36:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:36:11] Production.ERROR: CronJobId end10 [2025-03-03 00:36:11] Production.INFO: ==22056== Releasing lock... [2025-03-03 00:36:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:36:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:36:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:36:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:36:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:36:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:36:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:36:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:36:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:36:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:36:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:36:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:36:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:36:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:36:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:36:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:36:14] Production.INFO: call_cost start [2025-03-03 00:36:14] Production.INFO: call_cost end [2025-03-03 00:36:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:36:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:36:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:36:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:36:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:36:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:36:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:36:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:36:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:36:14] Production.INFO: ==22052== Releasing lock... [2025-03-03 00:36:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:36:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:36:16] Production.INFO: count ==409 [2025-03-03 00:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594832', 'tblTempUsageDetail_20' ) start [2025-03-03 00:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594832', 'tblTempUsageDetail_20' ) end [2025-03-03 00:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594832', 'tblTempVendorCDR_20' ) start [2025-03-03 00:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594832', 'tblTempVendorCDR_20' ) end [2025-03-03 00:36:16] Production.INFO: ProcessCDR(1,14594832,1,1,2) [2025-03-03 00:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594832', 'tblTempUsageDetail_20' ) start [2025-03-03 00:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594832', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:36:24] Production.INFO: ==22060== Releasing lock... [2025-03-03 00:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:37:02] Production.INFO: ==22125== Lock acquired, processing the job... [2025-03-03 05:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:37:02] Production.INFO: neon service started [2025-03-03 05:37:02] Production.INFO: neon service started [2025-03-03 05:37:02] Production.INFO: ==22125== Releasing lock... [2025-03-03 05:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:37:02] Production.INFO: ==22127== Lock acquired, processing the job... [2025-03-03 00:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:37:02] Production.INFO: ==22127== Releasing lock... [2025-03-03 00:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:37:03] Production.INFO: ==22129== Lock acquired, processing the job... [2025-03-03 05:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:37:03] Production.INFO: ==22129== Releasing lock... [2025-03-03 05:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:37:03] Production.INFO: ==22142== Lock acquired, processing the job... [2025-03-03 00:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:37:03] Production.INFO: ==22140== Lock acquired, processing the job... [2025-03-03 00:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:37:03] Production.INFO: ==22132== Lock acquired, processing the job... [2025-03-03 00:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:37:03] Production.INFO: ==22134== Lock acquired, processing the job... [2025-03-03 00:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:37:03] Production.INFO: ==22136== Lock acquired, processing the job... [2025-03-03 00:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:37:03] Production.INFO: count ==13 [2025-03-03 00:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:37:03] Production.INFO: count ==21 [2025-03-03 00:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594833') start [2025-03-03 00:37:03] Production.INFO: ==22138== Lock acquired, processing the job... [2025-03-03 00:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:37:04] Production.INFO: Account Balance Start. [2025-03-03 00:37:04] Production.INFO: CreateAllLog Start [2025-03-03 00:37:04] Production.INFO: 117 [2025-03-03 00:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594833') end [2025-03-03 00:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:37:04] Production.INFO: 1 [2025-03-03 00:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: ==22142== Releasing lock... [2025-03-03 00:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:37:04] Production.ERROR: done [2025-03-03 00:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:37:04] Production.INFO: ==22134== Releasing lock... [2025-03-03 00:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.ERROR: done [2025-03-03 00:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:37:05] Production.INFO: Total Charge 0 [2025-03-03 00:37:05] Production.INFO: CreateAllLog End [2025-03-03 00:37:05] Production.INFO: Account Balance End. [2025-03-03 00:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:37:05] Production.INFO: ==22138== Releasing lock... [2025-03-03 00:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:37:12] Production.ERROR: CronJobId end10 [2025-03-03 00:37:12] Production.INFO: ==22136== Releasing lock... [2025-03-03 00:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:37:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:37:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:37:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:37:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:37:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:37:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:37:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:37:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:37:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:37:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:37:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:37:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:37:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:37:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:37:15] Production.INFO: call_cost start [2025-03-03 00:37:15] Production.INFO: call_cost end [2025-03-03 00:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:37:15] Production.INFO: ==22132== Releasing lock... [2025-03-03 00:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:37:16] Production.INFO: count ==409 [2025-03-03 00:37:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594837', 'tblTempUsageDetail_20' ) start [2025-03-03 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594837', 'tblTempUsageDetail_20' ) end [2025-03-03 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594837', 'tblTempVendorCDR_20' ) start [2025-03-03 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594837', 'tblTempVendorCDR_20' ) end [2025-03-03 00:37:16] Production.INFO: ProcessCDR(1,14594837,1,1,2) [2025-03-03 00:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594837', 'tblTempUsageDetail_20' ) start [2025-03-03 00:37:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594837', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:37:24] Production.INFO: ==22140== Releasing lock... [2025-03-03 00:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:38:01] Production.INFO: ==22200== Lock acquired, processing the job... [2025-03-03 05:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:38:01] Production.INFO: neon service started [2025-03-03 05:38:01] Production.INFO: neon service started [2025-03-03 05:38:01] Production.INFO: ==22200== Releasing lock... [2025-03-03 05:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:38:02] Production.INFO: ==22202== Lock acquired, processing the job... [2025-03-03 00:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:38:02] Production.INFO: ==22204== Lock acquired, processing the job... [2025-03-03 05:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:38:02] Production.INFO: ==22204== Releasing lock... [2025-03-03 05:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:38:02] Production.INFO: ==22202== Releasing lock... [2025-03-03 00:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:38:03] Production.INFO: ==22207== Lock acquired, processing the job... [2025-03-03 00:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:38:03] Production.INFO: ==22217== Lock acquired, processing the job... [2025-03-03 00:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:38:03] Production.INFO: ==22209== Lock acquired, processing the job... [2025-03-03 00:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:38:03] Production.INFO: ==22211== Lock acquired, processing the job... [2025-03-03 00:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:38:03] Production.INFO: ==22213== Lock acquired, processing the job... [2025-03-03 00:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:38:03] Production.INFO: count ==13 [2025-03-03 00:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:38:03] Production.INFO: ==22215== Lock acquired, processing the job... [2025-03-03 00:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:38:03] Production.INFO: count ==21 [2025-03-03 00:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594839') start [2025-03-03 00:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594839') end [2025-03-03 00:38:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:38:03] Production.INFO: 1 [2025-03-03 00:38:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:38:03] Production.INFO: Account Balance Start. [2025-03-03 00:38:03] Production.INFO: CreateAllLog Start [2025-03-03 00:38:03] Production.INFO: 117 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: ==22217== Releasing lock... [2025-03-03 00:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:38:04] Production.INFO: ==22209== Releasing lock... [2025-03-03 00:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.ERROR: done [2025-03-03 00:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.ERROR: done [2025-03-03 00:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:38:05] Production.INFO: Total Charge 0 [2025-03-03 00:38:05] Production.INFO: CreateAllLog End [2025-03-03 00:38:05] Production.INFO: Account Balance End. [2025-03-03 00:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:38:05] Production.INFO: ==22213== Releasing lock... [2025-03-03 00:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:38:11] Production.ERROR: CronJobId end10 [2025-03-03 00:38:11] Production.INFO: ==22211== Releasing lock... [2025-03-03 00:38:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:38:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:38:14] Production.INFO: call_cost start [2025-03-03 00:38:14] Production.INFO: call_cost end [2025-03-03 00:38:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:38:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:38:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:38:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:38:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:38:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:38:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:38:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:38:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:38:14] Production.INFO: ==22207== Releasing lock... [2025-03-03 00:38:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:38:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:38:16] Production.INFO: count ==409 [2025-03-03 00:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594842', 'tblTempUsageDetail_20' ) start [2025-03-03 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594842', 'tblTempUsageDetail_20' ) end [2025-03-03 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594842', 'tblTempVendorCDR_20' ) start [2025-03-03 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594842', 'tblTempVendorCDR_20' ) end [2025-03-03 00:38:16] Production.INFO: ProcessCDR(1,14594842,1,1,2) [2025-03-03 00:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594842', 'tblTempUsageDetail_20' ) start [2025-03-03 00:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594842', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:38:24] Production.INFO: ==22215== Releasing lock... [2025-03-03 00:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:38:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:39:02] Production.INFO: ==22271== Lock acquired, processing the job... [2025-03-03 05:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:39:02] Production.INFO: neon service started [2025-03-03 05:39:02] Production.INFO: neon service started [2025-03-03 05:39:02] Production.INFO: ==22271== Releasing lock... [2025-03-03 05:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:39:02] Production.INFO: ==22276== Lock acquired, processing the job... [2025-03-03 05:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:39:02] Production.INFO: ==22276== Releasing lock... [2025-03-03 05:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:39:02] Production.INFO: ==22274== Lock acquired, processing the job... [2025-03-03 00:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:39:02] Production.INFO: ==22274== Releasing lock... [2025-03-03 00:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:39:03] Production.INFO: ==22278== Lock acquired, processing the job... [2025-03-03 00:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:39:03] Production.INFO: ==22282== Lock acquired, processing the job... [2025-03-03 00:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:39:03] Production.INFO: ==22286== Lock acquired, processing the job... [2025-03-03 00:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:39:04] Production.INFO: ==22280== Lock acquired, processing the job... [2025-03-03 00:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:39:04] Production.ERROR: done [2025-03-03 00:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:39:04] Production.INFO: ==22284== Lock acquired, processing the job... [2025-03-03 00:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:39:04] Production.INFO: ==22288== Lock acquired, processing the job... [2025-03-03 00:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:39:04] Production.ERROR: done [2025-03-03 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:39:04] Production.INFO: Account Balance Start. [2025-03-03 00:39:04] Production.INFO: CreateAllLog Start [2025-03-03 00:39:04] Production.INFO: 117 [2025-03-03 00:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:39:04] Production.INFO: count ==13 [2025-03-03 00:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: count ==21 [2025-03-03 00:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594845') start [2025-03-03 00:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: ==22280== Releasing lock... [2025-03-03 00:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594845') end [2025-03-03 00:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:39:04] Production.INFO: 1 [2025-03-03 00:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: ==22288== Releasing lock... [2025-03-03 00:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:39:05] Production.INFO: Total Charge 0 [2025-03-03 00:39:05] Production.INFO: CreateAllLog End [2025-03-03 00:39:05] Production.INFO: Account Balance End. [2025-03-03 00:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:39:05] Production.INFO: ==22284== Releasing lock... [2025-03-03 00:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:39:11] Production.ERROR: CronJobId end10 [2025-03-03 00:39:11] Production.INFO: ==22282== Releasing lock... [2025-03-03 00:39:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:39:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:39:13] Production.INFO: call_cost start [2025-03-03 00:39:13] Production.INFO: call_cost end [2025-03-03 00:39:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:39:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:39:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:39:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:39:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:39:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:39:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:39:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:39:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:39:13] Production.INFO: ==22278== Releasing lock... [2025-03-03 00:39:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:39:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:39:16] Production.INFO: count ==409 [2025-03-03 00:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594844', 'tblTempUsageDetail_20' ) start [2025-03-03 00:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594844', 'tblTempUsageDetail_20' ) end [2025-03-03 00:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594844', 'tblTempVendorCDR_20' ) start [2025-03-03 00:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594844', 'tblTempVendorCDR_20' ) end [2025-03-03 00:39:16] Production.INFO: ProcessCDR(1,14594844,1,1,2) [2025-03-03 00:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594844', 'tblTempUsageDetail_20' ) start [2025-03-03 00:39:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594844', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:39:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:39:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:39:23] Production.INFO: ==22286== Releasing lock... [2025-03-03 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:40:01] Production.INFO: ==22348== Lock acquired, processing the job... [2025-03-03 05:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:40:01] Production.INFO: neon service started [2025-03-03 05:40:01] Production.INFO: neon service started [2025-03-03 05:40:01] Production.INFO: ==22348== Releasing lock... [2025-03-03 05:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:40:01] Production.INFO: ==22350== Lock acquired, processing the job... [2025-03-03 00:40:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:40:02] Production.INFO: ==22352== Lock acquired, processing the job... [2025-03-03 05:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:40:02] Production.INFO: ==22350== Releasing lock... [2025-03-03 00:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:40:02] Production.INFO: ==22352== Releasing lock... [2025-03-03 05:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:40:03] Production.INFO: ==22358== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:40:03] Production.INFO: ==22360== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:40:03] Production.INFO: ==22354== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 00:40:03] Production.INFO: ==22367== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 00:40:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:40:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:40:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:40:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 00:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:40:03] Production.ERROR: CronJob PID - 22358 [2025-03-03 00:40:03] Production.ERROR: CronJob Title - Account Block [2025-03-03 00:40:03] Production.ERROR: CronJob ID - 7 [2025-03-03 00:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 00:40:00 [2025-03-03 00:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 00:40:03] Production.ERROR: CronJob PID - 22360 [2025-03-03 00:40:03] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 00:40:03] Production.ERROR: CronJob ID - 10 [2025-03-03 00:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 00:40:00 [2025-03-03 00:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 00:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 00:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 00:40:03] Production.INFO: ==22354== Releasing lock... [2025-03-03 00:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 00:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:40:03] Production.INFO: ==22356== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:40:03] Production.INFO: ==22358== Releasing lock... [2025-03-03 00:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:40:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:40:03] Production.INFO: ==22365== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:40:03] Production.INFO: ==22362== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:40:03] Production.INFO: ==22369== Lock acquired, processing the job... [2025-03-03 00:40:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:40:04] Production.INFO: Account Balance Start. [2025-03-03 00:40:04] Production.INFO: CreateAllLog Start [2025-03-03 00:40:04] Production.INFO: 117 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.ERROR: done [2025-03-03 00:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:40:04] Production.INFO: count ==13 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 00:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594852', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 00:40:04] Production.INFO: count ==21 [2025-03-03 00:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594851') start [2025-03-03 00:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.ERROR: done [2025-03-03 00:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.ERROR: done [2025-03-03 00:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594851') end [2025-03-03 00:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:40:04] Production.INFO: 1 [2025-03-03 00:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: ==22369== Releasing lock... [2025-03-03 00:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:40:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:40:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:40:05] Production.INFO: Total Charge 0 [2025-03-03 00:40:05] Production.INFO: CreateAllLog End [2025-03-03 00:40:05] Production.INFO: Account Balance End. [2025-03-03 00:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:40:05] Production.INFO: ==22362== Releasing lock... [2025-03-03 00:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:40:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594852', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 00:40:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 00:40:08] Production.INFO: ProcessCDR(1,14594852,1,1,2) [2025-03-03 00:40:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594852,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:40:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594852,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:40:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 00:40:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 00:40:09] Production.INFO: ==22367== Releasing lock... [2025-03-03 00:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 00:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 00:40:13] Production.ERROR: CronJobId end10 [2025-03-03 00:40:13] Production.INFO: ==22360== Releasing lock... [2025-03-03 00:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:40:15] Production.INFO: call_cost start [2025-03-03 00:40:15] Production.INFO: call_cost end [2025-03-03 00:40:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:40:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:40:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:40:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:40:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:40:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:40:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:40:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:40:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:40:15] Production.INFO: ==22356== Releasing lock... [2025-03-03 00:40:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:40:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:40:16] Production.INFO: count ==409 [2025-03-03 00:40:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:40:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594853', 'tblTempUsageDetail_20' ) start [2025-03-03 00:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594853', 'tblTempUsageDetail_20' ) end [2025-03-03 00:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594853', 'tblTempVendorCDR_20' ) start [2025-03-03 00:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594853', 'tblTempVendorCDR_20' ) end [2025-03-03 00:40:16] Production.INFO: ProcessCDR(1,14594853,1,1,2) [2025-03-03 00:40:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594853', 'tblTempUsageDetail_20' ) start [2025-03-03 00:40:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594853', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:40:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:40:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:40:24] Production.INFO: ==22365== Releasing lock... [2025-03-03 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:40:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:41:01] Production.INFO: ==22435== Lock acquired, processing the job... [2025-03-03 05:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:41:01] Production.INFO: neon service started [2025-03-03 05:41:02] Production.INFO: neon service started [2025-03-03 05:41:02] Production.INFO: ==22435== Releasing lock... [2025-03-03 05:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:41:02] Production.INFO: ==22437== Lock acquired, processing the job... [2025-03-03 00:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:41:02] Production.INFO: ==22439== Lock acquired, processing the job... [2025-03-03 05:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:41:02] Production.INFO: ==22439== Releasing lock... [2025-03-03 05:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:41:03] Production.INFO: ==22437== Releasing lock... [2025-03-03 00:41:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:41:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:41:03] Production.INFO: ==22448== Lock acquired, processing the job... [2025-03-03 00:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:41:04] Production.INFO: ==22442== Lock acquired, processing the job... [2025-03-03 00:41:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:41:04] Production.INFO: Account Balance Start. [2025-03-03 00:41:04] Production.INFO: CreateAllLog Start [2025-03-03 00:41:04] Production.INFO: 117 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: ==22452== Lock acquired, processing the job... [2025-03-03 00:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: ==22444== Lock acquired, processing the job... [2025-03-03 00:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: ==22446== Lock acquired, processing the job... [2025-03-03 00:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:41:04] Production.INFO: count ==13 [2025-03-03 00:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:41:04] Production.INFO: ==22450== Lock acquired, processing the job... [2025-03-03 00:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:41:04] Production.INFO: count ==21 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594856') start [2025-03-03 00:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594856') end [2025-03-03 00:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:41:04] Production.INFO: 1 [2025-03-03 00:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: ==22444== Releasing lock... [2025-03-03 00:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: ==22452== Releasing lock... [2025-03-03 00:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:41:04] Production.ERROR: done [2025-03-03 00:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.ERROR: done [2025-03-03 00:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:41:05] Production.INFO: Total Charge 0 [2025-03-03 00:41:05] Production.INFO: CreateAllLog End [2025-03-03 00:41:05] Production.INFO: Account Balance End. [2025-03-03 00:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:41:05] Production.INFO: ==22448== Releasing lock... [2025-03-03 00:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:41:11] Production.ERROR: CronJobId end10 [2025-03-03 00:41:11] Production.INFO: ==22446== Releasing lock... [2025-03-03 00:41:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:41:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:41:15] Production.INFO: call_cost start [2025-03-03 00:41:15] Production.INFO: call_cost end [2025-03-03 00:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:41:15] Production.INFO: ==22442== Releasing lock... [2025-03-03 00:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:41:17] Production.INFO: count ==409 [2025-03-03 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594858', 'tblTempUsageDetail_20' ) start [2025-03-03 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594858', 'tblTempUsageDetail_20' ) end [2025-03-03 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594858', 'tblTempVendorCDR_20' ) start [2025-03-03 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594858', 'tblTempVendorCDR_20' ) end [2025-03-03 00:41:17] Production.INFO: ProcessCDR(1,14594858,1,1,2) [2025-03-03 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594858', 'tblTempUsageDetail_20' ) start [2025-03-03 00:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594858', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:41:24] Production.INFO: ==22450== Releasing lock... [2025-03-03 00:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:41:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:42:01] Production.INFO: ==22521== Lock acquired, processing the job... [2025-03-03 05:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:42:01] Production.INFO: neon service started [2025-03-03 05:42:01] Production.INFO: neon service started [2025-03-03 05:42:01] Production.INFO: ==22521== Releasing lock... [2025-03-03 05:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:42:01] Production.INFO: ==22523== Lock acquired, processing the job... [2025-03-03 00:42:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:42:02] Production.INFO: ==22525== Lock acquired, processing the job... [2025-03-03 05:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:42:02] Production.INFO: ==22523== Releasing lock... [2025-03-03 00:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:42:02] Production.INFO: ==22525== Releasing lock... [2025-03-03 05:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:42:03] Production.INFO: ==22529== Lock acquired, processing the job... [2025-03-03 00:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:42:03] Production.INFO: ==22531== Lock acquired, processing the job... [2025-03-03 00:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:42:03] Production.INFO: ==22533== Lock acquired, processing the job... [2025-03-03 00:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:42:03] Production.INFO: ==22535== Lock acquired, processing the job... [2025-03-03 00:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:42:03] Production.INFO: ==22537== Lock acquired, processing the job... [2025-03-03 00:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:42:03] Production.INFO: ==22540== Lock acquired, processing the job... [2025-03-03 00:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:42:03] Production.INFO: Account Balance Start. [2025-03-03 00:42:03] Production.INFO: CreateAllLog Start [2025-03-03 00:42:03] Production.INFO: 117 [2025-03-03 00:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:03] Production.INFO: ==22531== Releasing lock... [2025-03-03 00:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:03] Production.INFO: count ==13 [2025-03-03 00:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:42:03] Production.INFO: count ==21 [2025-03-03 00:42:03] Production.ERROR: done [2025-03-03 00:42:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:42:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594862') start [2025-03-03 00:42:03] Production.ERROR: done [2025-03-03 00:42:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594862') end [2025-03-03 00:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:42:04] Production.INFO: 1 [2025-03-03 00:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:42:04] Production.INFO: ==22540== Releasing lock... [2025-03-03 00:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:42:04] Production.INFO: Total Charge 0 [2025-03-03 00:42:04] Production.INFO: CreateAllLog End [2025-03-03 00:42:04] Production.INFO: Account Balance End. [2025-03-03 00:42:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:42:04] Production.INFO: ==22535== Releasing lock... [2025-03-03 00:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:42:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:42:12] Production.ERROR: CronJobId end10 [2025-03-03 00:42:12] Production.INFO: ==22533== Releasing lock... [2025-03-03 00:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:42:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:42:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:42:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:42:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:42:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:42:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:42:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:42:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:42:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:42:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:42:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:42:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:42:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:42:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:42:14] Production.INFO: call_cost start [2025-03-03 00:42:14] Production.INFO: call_cost end [2025-03-03 00:42:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:42:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:42:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:42:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:42:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:42:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:42:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:42:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:42:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:42:14] Production.INFO: ==22529== Releasing lock... [2025-03-03 00:42:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:42:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:42:15] Production.INFO: count ==409 [2025-03-03 00:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594863', 'tblTempUsageDetail_20' ) start [2025-03-03 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594863', 'tblTempUsageDetail_20' ) end [2025-03-03 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594863', 'tblTempVendorCDR_20' ) start [2025-03-03 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594863', 'tblTempVendorCDR_20' ) end [2025-03-03 00:42:16] Production.INFO: ProcessCDR(1,14594863,1,1,2) [2025-03-03 00:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594863', 'tblTempUsageDetail_20' ) start [2025-03-03 00:42:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594863', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:42:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:42:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:42:23] Production.INFO: ==22537== Releasing lock... [2025-03-03 00:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:42:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:43:01] Production.INFO: ==22606== Lock acquired, processing the job... [2025-03-03 05:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:43:01] Production.INFO: neon service started [2025-03-03 05:43:01] Production.INFO: neon service started [2025-03-03 05:43:01] Production.INFO: ==22606== Releasing lock... [2025-03-03 05:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:43:02] Production.INFO: ==22611== Lock acquired, processing the job... [2025-03-03 05:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:43:02] Production.INFO: ==22609== Lock acquired, processing the job... [2025-03-03 00:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:43:02] Production.INFO: ==22611== Releasing lock... [2025-03-03 05:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:43:02] Production.INFO: ==22609== Releasing lock... [2025-03-03 00:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:43:03] Production.INFO: ==22617== Lock acquired, processing the job... [2025-03-03 00:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:43:03] Production.INFO: ==22623== Lock acquired, processing the job... [2025-03-03 00:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:43:03] Production.INFO: ==22613== Lock acquired, processing the job... [2025-03-03 00:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:43:03] Production.INFO: ==22615== Lock acquired, processing the job... [2025-03-03 00:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:43:03] Production.INFO: ==22619== Lock acquired, processing the job... [2025-03-03 00:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:43:03] Production.INFO: count ==13 [2025-03-03 00:43:03] Production.INFO: ==22621== Lock acquired, processing the job... [2025-03-03 00:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:43:03] Production.INFO: count ==21 [2025-03-03 00:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594864') start [2025-03-03 00:43:04] Production.INFO: Account Balance Start. [2025-03-03 00:43:04] Production.INFO: CreateAllLog Start [2025-03-03 00:43:04] Production.INFO: 117 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594864') end [2025-03-03 00:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:43:04] Production.INFO: 1 [2025-03-03 00:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: ==22623== Releasing lock... [2025-03-03 00:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:43:04] Production.INFO: ==22615== Releasing lock... [2025-03-03 00:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.ERROR: done [2025-03-03 00:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.ERROR: done [2025-03-03 00:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:43:05] Production.INFO: Total Charge 0 [2025-03-03 00:43:05] Production.INFO: CreateAllLog End [2025-03-03 00:43:05] Production.INFO: Account Balance End. [2025-03-03 00:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:43:05] Production.INFO: ==22619== Releasing lock... [2025-03-03 00:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:43:12] Production.ERROR: CronJobId end10 [2025-03-03 00:43:12] Production.INFO: ==22617== Releasing lock... [2025-03-03 00:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:43:15] Production.INFO: call_cost start [2025-03-03 00:43:15] Production.INFO: call_cost end [2025-03-03 00:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:43:15] Production.INFO: ==22613== Releasing lock... [2025-03-03 00:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:43:16] Production.INFO: count ==409 [2025-03-03 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594868', 'tblTempUsageDetail_20' ) start [2025-03-03 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594868', 'tblTempUsageDetail_20' ) end [2025-03-03 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594868', 'tblTempVendorCDR_20' ) start [2025-03-03 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594868', 'tblTempVendorCDR_20' ) end [2025-03-03 00:43:17] Production.INFO: ProcessCDR(1,14594868,1,1,2) [2025-03-03 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594868', 'tblTempUsageDetail_20' ) start [2025-03-03 00:43:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594868', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:43:24] Production.INFO: ==22621== Releasing lock... [2025-03-03 00:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:44:02] Production.INFO: ==22683== Lock acquired, processing the job... [2025-03-03 05:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:44:02] Production.INFO: neon service started [2025-03-03 05:44:02] Production.INFO: neon service started [2025-03-03 05:44:02] Production.INFO: ==22683== Releasing lock... [2025-03-03 05:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:44:02] Production.INFO: ==22685== Lock acquired, processing the job... [2025-03-03 00:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:44:03] Production.INFO: ==22685== Releasing lock... [2025-03-03 00:44:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:44:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:44:03] Production.INFO: ==22687== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:44:03] Production.INFO: ==22687== Releasing lock... [2025-03-03 05:44:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:44:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:44:03] Production.INFO: ==22691== Lock acquired, processing the job... [2025-03-03 00:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:44:04] Production.INFO: ==22700== Lock acquired, processing the job... [2025-03-03 00:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:44:04] Production.INFO: ==22689== Lock acquired, processing the job... [2025-03-03 00:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:44:04] Production.INFO: count ==13 [2025-03-03 00:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:44:04] Production.INFO: count ==21 [2025-03-03 00:44:04] Production.INFO: ==22693== Lock acquired, processing the job... [2025-03-03 00:44:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594870') start [2025-03-03 00:44:04] Production.INFO: ==22691== Releasing lock... [2025-03-03 00:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:44:04] Production.INFO: ==22697== Lock acquired, processing the job... [2025-03-03 00:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:44:04] Production.INFO: ==22695== Lock acquired, processing the job... [2025-03-03 00:44:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594870') end [2025-03-03 00:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:44:04] Production.INFO: 1 [2025-03-03 00:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:44:04] Production.INFO: ==22700== Releasing lock... [2025-03-03 00:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:44:04] Production.INFO: Account Balance Start. [2025-03-03 00:44:04] Production.INFO: CreateAllLog Start [2025-03-03 00:44:04] Production.INFO: 117 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.ERROR: done [2025-03-03 00:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.ERROR: done [2025-03-03 00:44:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:44:05] Production.INFO: Total Charge 0 [2025-03-03 00:44:05] Production.INFO: CreateAllLog End [2025-03-03 00:44:05] Production.INFO: Account Balance End. [2025-03-03 00:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:44:05] Production.INFO: ==22695== Releasing lock... [2025-03-03 00:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:44:13] Production.ERROR: CronJobId end10 [2025-03-03 00:44:13] Production.INFO: ==22693== Releasing lock... [2025-03-03 00:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:44:15] Production.INFO: call_cost start [2025-03-03 00:44:15] Production.INFO: call_cost end [2025-03-03 00:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:44:15] Production.INFO: ==22689== Releasing lock... [2025-03-03 00:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:44:17] Production.INFO: count ==409 [2025-03-03 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594873', 'tblTempUsageDetail_20' ) start [2025-03-03 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594873', 'tblTempUsageDetail_20' ) end [2025-03-03 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594873', 'tblTempVendorCDR_20' ) start [2025-03-03 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594873', 'tblTempVendorCDR_20' ) end [2025-03-03 00:44:17] Production.INFO: ProcessCDR(1,14594873,1,1,2) [2025-03-03 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594873', 'tblTempUsageDetail_20' ) start [2025-03-03 00:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594873', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:44:24] Production.INFO: ==22697== Releasing lock... [2025-03-03 00:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:44:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:45:01] Production.INFO: ==22756== Lock acquired, processing the job... [2025-03-03 05:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:45:01] Production.INFO: neon service started [2025-03-03 05:45:01] Production.INFO: neon service started [2025-03-03 05:45:01] Production.INFO: ==22756== Releasing lock... [2025-03-03 05:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:45:02] Production.INFO: ==22760== Lock acquired, processing the job... [2025-03-03 05:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:45:02] Production.INFO: ==22760== Releasing lock... [2025-03-03 05:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:45:02] Production.INFO: ==22758== Lock acquired, processing the job... [2025-03-03 00:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:45:02] Production.INFO: ==22758== Releasing lock... [2025-03-03 00:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:45:03] Production.INFO: ==22762== Lock acquired, processing the job... [2025-03-03 00:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:45:03] Production.INFO: ==22764== Lock acquired, processing the job... [2025-03-03 00:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:45:03] Production.INFO: ==22771== Lock acquired, processing the job... [2025-03-03 00:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:45:03] Production.INFO: ==22766== Lock acquired, processing the job... [2025-03-03 00:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:45:03] Production.INFO: ==22769== Lock acquired, processing the job... [2025-03-03 00:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:45:03] Production.INFO: ==22773== Lock acquired, processing the job... [2025-03-03 00:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:45:03] Production.INFO: ==22764== Releasing lock... [2025-03-03 00:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:45:03] Production.ERROR: done [2025-03-03 00:45:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:45:03] Production.INFO: Account Balance Start. [2025-03-03 00:45:03] Production.INFO: CreateAllLog Start [2025-03-03 00:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:45:03] Production.INFO: 117 [2025-03-03 00:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:03] Production.INFO: count ==13 [2025-03-03 00:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:45:04] Production.INFO: count ==21 [2025-03-03 00:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594877') start [2025-03-03 00:45:04] Production.ERROR: done [2025-03-03 00:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594877') end [2025-03-03 00:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:45:04] Production.INFO: 1 [2025-03-03 00:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: ==22773== Releasing lock... [2025-03-03 00:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:45:04] Production.INFO: Total Charge 0 [2025-03-03 00:45:04] Production.INFO: CreateAllLog End [2025-03-03 00:45:04] Production.INFO: Account Balance End. [2025-03-03 00:45:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:45:04] Production.INFO: ==22769== Releasing lock... [2025-03-03 00:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:45:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:45:11] Production.ERROR: CronJobId end10 [2025-03-03 00:45:11] Production.INFO: ==22766== Releasing lock... [2025-03-03 00:45:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:45:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:45:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:45:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:45:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:45:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:45:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:45:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:45:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:45:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:45:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:45:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:45:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:45:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:45:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:45:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:45:13] Production.INFO: call_cost start [2025-03-03 00:45:13] Production.INFO: call_cost end [2025-03-03 00:45:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:45:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:45:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:45:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:45:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:45:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:45:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:45:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:45:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:45:13] Production.INFO: ==22762== Releasing lock... [2025-03-03 00:45:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:45:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:45:16] Production.INFO: count ==409 [2025-03-03 00:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594878', 'tblTempUsageDetail_20' ) start [2025-03-03 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594878', 'tblTempUsageDetail_20' ) end [2025-03-03 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594878', 'tblTempVendorCDR_20' ) start [2025-03-03 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594878', 'tblTempVendorCDR_20' ) end [2025-03-03 00:45:16] Production.INFO: ProcessCDR(1,14594878,1,1,2) [2025-03-03 00:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594878', 'tblTempUsageDetail_20' ) start [2025-03-03 00:45:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594878', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:45:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:45:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:45:23] Production.INFO: ==22771== Releasing lock... [2025-03-03 00:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:45:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:46:02] Production.INFO: ==22837== Lock acquired, processing the job... [2025-03-03 05:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:46:02] Production.INFO: neon service started [2025-03-03 05:46:02] Production.INFO: neon service started [2025-03-03 05:46:02] Production.INFO: ==22837== Releasing lock... [2025-03-03 05:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:46:02] Production.INFO: ==22841== Lock acquired, processing the job... [2025-03-03 05:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:46:02] Production.INFO: ==22841== Releasing lock... [2025-03-03 05:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:46:02] Production.INFO: ==22839== Lock acquired, processing the job... [2025-03-03 00:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:46:03] Production.INFO: ==22839== Releasing lock... [2025-03-03 00:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:46:04] Production.INFO: ==22846== Lock acquired, processing the job... [2025-03-03 00:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:46:04] Production.INFO: ==22843== Lock acquired, processing the job... [2025-03-03 00:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:46:04] Production.INFO: ==22854== Lock acquired, processing the job... [2025-03-03 00:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:46:04] Production.INFO: count ==13 [2025-03-03 00:46:04] Production.INFO: ==22848== Lock acquired, processing the job... [2025-03-03 00:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:46:04] Production.INFO: count ==21 [2025-03-03 00:46:04] Production.INFO: ==22846== Releasing lock... [2025-03-03 00:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594881') start [2025-03-03 00:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:46:04] Production.INFO: ==22850== Lock acquired, processing the job... [2025-03-03 00:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:46:04] Production.INFO: ==22852== Lock acquired, processing the job... [2025-03-03 00:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594881') end [2025-03-03 00:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:46:04] Production.INFO: 1 [2025-03-03 00:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:46:04] Production.INFO: ==22854== Releasing lock... [2025-03-03 00:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:46:04] Production.INFO: Account Balance Start. [2025-03-03 00:46:04] Production.INFO: CreateAllLog Start [2025-03-03 00:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:46:04] Production.INFO: 117 [2025-03-03 00:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.ERROR: done [2025-03-03 00:46:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-13 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-14 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.ERROR: done [2025-03-03 00:46:05] Production.INFO: Date 2025-02-15 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-16 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:46:05] Production.INFO: Total Charge 0 [2025-03-03 00:46:05] Production.INFO: CreateAllLog End [2025-03-03 00:46:06] Production.INFO: Account Balance End. [2025-03-03 00:46:06] Production.ERROR: CronJobId end 12 [2025-03-03 00:46:06] Production.INFO: ==22850== Releasing lock... [2025-03-03 00:46:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:46:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:46:12] Production.ERROR: CronJobId end10 [2025-03-03 00:46:12] Production.INFO: ==22848== Releasing lock... [2025-03-03 00:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:46:14] Production.INFO: call_cost start [2025-03-03 00:46:14] Production.INFO: call_cost end [2025-03-03 00:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:46:14] Production.INFO: ==22843== Releasing lock... [2025-03-03 00:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:46:17] Production.INFO: count ==409 [2025-03-03 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594883', 'tblTempUsageDetail_20' ) start [2025-03-03 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594883', 'tblTempUsageDetail_20' ) end [2025-03-03 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594883', 'tblTempVendorCDR_20' ) start [2025-03-03 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594883', 'tblTempVendorCDR_20' ) end [2025-03-03 00:46:17] Production.INFO: ProcessCDR(1,14594883,1,1,2) [2025-03-03 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594883', 'tblTempUsageDetail_20' ) start [2025-03-03 00:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594883', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:46:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:46:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:46:25] Production.INFO: ==22852== Releasing lock... [2025-03-03 00:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:46:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:47:01] Production.INFO: ==22922== Lock acquired, processing the job... [2025-03-03 05:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:47:01] Production.INFO: neon service started [2025-03-03 05:47:01] Production.INFO: neon service started [2025-03-03 05:47:01] Production.INFO: ==22922== Releasing lock... [2025-03-03 05:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:47:02] Production.INFO: ==22926== Lock acquired, processing the job... [2025-03-03 05:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:47:02] Production.INFO: ==22926== Releasing lock... [2025-03-03 05:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:47:02] Production.INFO: ==22924== Lock acquired, processing the job... [2025-03-03 00:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:47:02] Production.INFO: ==22924== Releasing lock... [2025-03-03 00:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:47:03] Production.INFO: ==22937== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:47:03] Production.INFO: ==22933== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:47:03] Production.INFO: ==22929== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:47:03] Production.INFO: ==22935== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:47:03] Production.INFO: ==22931== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:47:03] Production.INFO: Account Balance Start. [2025-03-03 00:47:03] Production.INFO: CreateAllLog Start [2025-03-03 00:47:03] Production.INFO: 117 [2025-03-03 00:47:03] Production.INFO: ==22939== Lock acquired, processing the job... [2025-03-03 00:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.ERROR: done [2025-03-03 00:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: count ==13 [2025-03-03 00:47:04] Production.INFO: ==22931== Releasing lock... [2025-03-03 00:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:47:04] Production.INFO: count ==21 [2025-03-03 00:47:04] Production.ERROR: done [2025-03-03 00:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594887') start [2025-03-03 00:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594887') end [2025-03-03 00:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:47:04] Production.INFO: 1 [2025-03-03 00:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: ==22939== Releasing lock... [2025-03-03 00:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:47:04] Production.INFO: Total Charge 0 [2025-03-03 00:47:04] Production.INFO: CreateAllLog End [2025-03-03 00:47:05] Production.INFO: Account Balance End. [2025-03-03 00:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:47:05] Production.INFO: ==22935== Releasing lock... [2025-03-03 00:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:47:11] Production.ERROR: CronJobId end10 [2025-03-03 00:47:11] Production.INFO: ==22933== Releasing lock... [2025-03-03 00:47:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:47:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:47:14] Production.INFO: call_cost start [2025-03-03 00:47:14] Production.INFO: call_cost end [2025-03-03 00:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:47:14] Production.INFO: ==22929== Releasing lock... [2025-03-03 00:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:47:16] Production.INFO: count ==409 [2025-03-03 00:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594888', 'tblTempUsageDetail_20' ) start [2025-03-03 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594888', 'tblTempUsageDetail_20' ) end [2025-03-03 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594888', 'tblTempVendorCDR_20' ) start [2025-03-03 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594888', 'tblTempVendorCDR_20' ) end [2025-03-03 00:47:16] Production.INFO: ProcessCDR(1,14594888,1,1,2) [2025-03-03 00:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594888', 'tblTempUsageDetail_20' ) start [2025-03-03 00:47:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594888', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:47:24] Production.INFO: ==22937== Releasing lock... [2025-03-03 00:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:47:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:48:02] Production.INFO: ==23012== Lock acquired, processing the job... [2025-03-03 05:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:48:02] Production.INFO: neon service started [2025-03-03 05:48:02] Production.INFO: neon service started [2025-03-03 05:48:02] Production.INFO: ==23012== Releasing lock... [2025-03-03 05:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:48:02] Production.INFO: ==23014== Lock acquired, processing the job... [2025-03-03 00:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:48:02] Production.INFO: ==23016== Lock acquired, processing the job... [2025-03-03 05:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:48:02] Production.INFO: ==23016== Releasing lock... [2025-03-03 05:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:48:03] Production.INFO: ==23014== Releasing lock... [2025-03-03 00:48:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:48:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:48:04] Production.INFO: ==23027== Lock acquired, processing the job... [2025-03-03 00:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:48:04] Production.INFO: ==23025== Lock acquired, processing the job... [2025-03-03 00:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:48:04] Production.INFO: ==23021== Lock acquired, processing the job... [2025-03-03 00:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:48:04] Production.INFO: ==23019== Lock acquired, processing the job... [2025-03-03 00:48:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:48:04] Production.INFO: ==23023== Lock acquired, processing the job... [2025-03-03 00:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:48:04] Production.INFO: Account Balance Start. [2025-03-03 00:48:04] Production.INFO: CreateAllLog Start [2025-03-03 00:48:04] Production.INFO: 117 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:48:04] Production.INFO: ==23029== Lock acquired, processing the job... [2025-03-03 00:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:48:04] Production.INFO: count ==13 [2025-03-03 00:48:04] Production.ERROR: done [2025-03-03 00:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:48:04] Production.INFO: ==23021== Releasing lock... [2025-03-03 00:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:48:04] Production.INFO: count ==21 [2025-03-03 00:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594892') start [2025-03-03 00:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.ERROR: done [2025-03-03 00:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594892') end [2025-03-03 00:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:48:04] Production.INFO: 1 [2025-03-03 00:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:48:04] Production.INFO: ==23029== Releasing lock... [2025-03-03 00:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:48:05] Production.INFO: Total Charge 0 [2025-03-03 00:48:05] Production.INFO: CreateAllLog End [2025-03-03 00:48:05] Production.INFO: Account Balance End. [2025-03-03 00:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:48:05] Production.INFO: ==23025== Releasing lock... [2025-03-03 00:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:48:11] Production.ERROR: CronJobId end10 [2025-03-03 00:48:11] Production.INFO: ==23023== Releasing lock... [2025-03-03 00:48:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:48:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:48:15] Production.INFO: call_cost start [2025-03-03 00:48:15] Production.INFO: call_cost end [2025-03-03 00:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:48:15] Production.INFO: ==23019== Releasing lock... [2025-03-03 00:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:48:16] Production.INFO: count ==409 [2025-03-03 00:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594893', 'tblTempUsageDetail_20' ) start [2025-03-03 00:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594893', 'tblTempUsageDetail_20' ) end [2025-03-03 00:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594893', 'tblTempVendorCDR_20' ) start [2025-03-03 00:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594893', 'tblTempVendorCDR_20' ) end [2025-03-03 00:48:16] Production.INFO: ProcessCDR(1,14594893,1,1,2) [2025-03-03 00:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594893', 'tblTempUsageDetail_20' ) start [2025-03-03 00:48:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594893', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:48:24] Production.INFO: ==23027== Releasing lock... [2025-03-03 00:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:49:01] Production.INFO: ==23092== Lock acquired, processing the job... [2025-03-03 05:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:49:01] Production.INFO: neon service started [2025-03-03 05:49:01] Production.INFO: neon service started [2025-03-03 05:49:01] Production.INFO: ==23092== Releasing lock... [2025-03-03 05:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:49:02] Production.INFO: ==23094== Lock acquired, processing the job... [2025-03-03 00:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:49:02] Production.INFO: ==23094== Releasing lock... [2025-03-03 00:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:49:02] Production.INFO: ==23096== Lock acquired, processing the job... [2025-03-03 05:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:49:02] Production.INFO: ==23096== Releasing lock... [2025-03-03 05:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:49:03] Production.INFO: ==23106== Lock acquired, processing the job... [2025-03-03 00:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:49:03] Production.INFO: ==23109== Lock acquired, processing the job... [2025-03-03 00:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:49:03] Production.INFO: count ==13 [2025-03-03 00:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:49:03] Production.INFO: count ==21 [2025-03-03 00:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594894') start [2025-03-03 00:49:03] Production.INFO: ==23098== Lock acquired, processing the job... [2025-03-03 00:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:49:03] Production.INFO: ==23100== Lock acquired, processing the job... [2025-03-03 00:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594894') end [2025-03-03 00:49:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:49:03] Production.INFO: 1 [2025-03-03 00:49:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:49:03] Production.INFO: ==23102== Lock acquired, processing the job... [2025-03-03 00:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:49:03] Production.INFO: ==23104== Lock acquired, processing the job... [2025-03-03 00:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:49:03] Production.ERROR: done [2025-03-03 00:49:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:49:03] Production.INFO: ==23109== Releasing lock... [2025-03-03 00:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:49:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:49:03] Production.ERROR: done [2025-03-03 00:49:03] Production.INFO: Account Balance Start. [2025-03-03 00:49:03] Production.INFO: CreateAllLog Start [2025-03-03 00:49:03] Production.INFO: 117 [2025-03-03 00:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:49:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:49:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: ==23100== Releasing lock... [2025-03-03 00:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:49:04] Production.INFO: Total Charge 0 [2025-03-03 00:49:04] Production.INFO: CreateAllLog End [2025-03-03 00:49:04] Production.INFO: Account Balance End. [2025-03-03 00:49:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:49:04] Production.INFO: ==23104== Releasing lock... [2025-03-03 00:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:49:11] Production.ERROR: CronJobId end10 [2025-03-03 00:49:11] Production.INFO: ==23102== Releasing lock... [2025-03-03 00:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:49:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:49:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:49:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:49:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:49:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:49:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:49:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:49:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:49:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:49:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:49:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:49:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:49:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:49:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:49:14] Production.INFO: call_cost start [2025-03-03 00:49:14] Production.INFO: call_cost end [2025-03-03 00:49:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:49:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:49:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:49:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:49:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:49:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:49:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:49:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:49:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:49:14] Production.INFO: ==23098== Releasing lock... [2025-03-03 00:49:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:49:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:49:15] Production.INFO: count ==409 [2025-03-03 00:49:15] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:49:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:49:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594898', 'tblTempUsageDetail_20' ) start [2025-03-03 00:49:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594898', 'tblTempUsageDetail_20' ) end [2025-03-03 00:49:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594898', 'tblTempVendorCDR_20' ) start [2025-03-03 00:49:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594898', 'tblTempVendorCDR_20' ) end [2025-03-03 00:49:15] Production.INFO: ProcessCDR(1,14594898,1,1,2) [2025-03-03 00:49:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594898', 'tblTempUsageDetail_20' ) start [2025-03-03 00:49:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594898', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:49:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:49:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:49:23] Production.INFO: ==23106== Releasing lock... [2025-03-03 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:49:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:50:02] Production.INFO: ==23180== Lock acquired, processing the job... [2025-03-03 05:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:50:02] Production.INFO: neon service started [2025-03-03 05:50:02] Production.INFO: neon service started [2025-03-03 05:50:02] Production.INFO: ==23180== Releasing lock... [2025-03-03 05:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:50:02] Production.INFO: ==23182== Lock acquired, processing the job... [2025-03-03 00:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:50:02] Production.INFO: ==23184== Lock acquired, processing the job... [2025-03-03 05:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:50:02] Production.INFO: ==23182== Releasing lock... [2025-03-03 00:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:50:03] Production.INFO: ==23184== Releasing lock... [2025-03-03 05:50:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:50:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:50:04] Production.INFO: ==23186== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 00:50:04] Production.INFO: ==23188== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 00:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 00:50:04] Production.INFO: ==23186== Releasing lock... [2025-03-03 00:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 00:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:50:04] Production.INFO: ==23190== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:50:04] Production.INFO: ==23192== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:50:04] Production.INFO: ==23194== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:50:04] Production.INFO: ==23199== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 00:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:50:04] Production.INFO: ==23197== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:50:04] Production.INFO: ==23201== Lock acquired, processing the job... [2025-03-03 00:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:50:04] Production.INFO: Account Balance Start. [2025-03-03 00:50:04] Production.INFO: CreateAllLog Start [2025-03-03 00:50:04] Production.INFO: 117 [2025-03-03 00:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:04] Production.INFO: count ==13 [2025-03-03 00:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:50:04] Production.INFO: count ==21 [2025-03-03 00:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594902') start [2025-03-03 00:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:04] Production.INFO: ==23190== Releasing lock... [2025-03-03 00:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:50:05] Production.ERROR: done [2025-03-03 00:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:50:05] Production.ERROR: done [2025-03-03 00:50:05] Production.INFO: Date 2025-02-13 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594902') end [2025-03-03 00:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:50:05] Production.INFO: 1 [2025-03-03 00:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:50:05] Production.ERROR: done [2025-03-03 00:50:05] Production.INFO: Date 2025-02-14 [2025-03-03 00:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 00:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594903', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: ==23201== Releasing lock... [2025-03-03 00:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:50:05] Production.INFO: Total Charge 0 [2025-03-03 00:50:06] Production.INFO: CreateAllLog End [2025-03-03 00:50:06] Production.INFO: Account Balance End. [2025-03-03 00:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 00:50:06] Production.INFO: ==23194== Releasing lock... [2025-03-03 00:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594903', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 00:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 00:50:10] Production.INFO: ProcessCDR(1,14594903,1,1,2) [2025-03-03 00:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594903,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594903,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 00:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 00:50:10] Production.INFO: ==23199== Releasing lock... [2025-03-03 00:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 00:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 00:50:13] Production.ERROR: CronJobId end10 [2025-03-03 00:50:13] Production.INFO: ==23192== Releasing lock... [2025-03-03 00:50:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:50:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:50:16] Production.INFO: call_cost start [2025-03-03 00:50:16] Production.INFO: call_cost end [2025-03-03 00:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:50:17] Production.INFO: ==23188== Releasing lock... [2025-03-03 00:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:50:17] Production.INFO: count ==409 [2025-03-03 00:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594904', 'tblTempUsageDetail_20' ) start [2025-03-03 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594904', 'tblTempUsageDetail_20' ) end [2025-03-03 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594904', 'tblTempVendorCDR_20' ) start [2025-03-03 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594904', 'tblTempVendorCDR_20' ) end [2025-03-03 00:50:17] Production.INFO: ProcessCDR(1,14594904,1,1,2) [2025-03-03 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594904', 'tblTempUsageDetail_20' ) start [2025-03-03 00:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594904', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:50:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:50:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:50:25] Production.INFO: ==23197== Releasing lock... [2025-03-03 00:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:50:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:51:01] Production.INFO: ==23294== Lock acquired, processing the job... [2025-03-03 05:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:51:01] Production.INFO: neon service started [2025-03-03 05:51:01] Production.INFO: neon service started [2025-03-03 05:51:01] Production.INFO: ==23294== Releasing lock... [2025-03-03 05:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:51:01] Production.INFO: ==23298== Lock acquired, processing the job... [2025-03-03 05:51:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:51:01] Production.INFO: ==23298== Releasing lock... [2025-03-03 05:51:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:51:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:51:02] Production.INFO: ==23296== Lock acquired, processing the job... [2025-03-03 00:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:51:02] Production.INFO: ==23296== Releasing lock... [2025-03-03 00:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:51:03] Production.INFO: ==23311== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:51:03] Production.INFO: ==23309== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:51:03] Production.INFO: ==23300== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:51:03] Production.INFO: count ==13 [2025-03-03 00:51:03] Production.INFO: ==23302== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:51:03] Production.INFO: count ==21 [2025-03-03 00:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594905') start [2025-03-03 00:51:03] Production.INFO: ==23307== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:51:03] Production.INFO: ==23305== Lock acquired, processing the job... [2025-03-03 00:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594905') end [2025-03-03 00:51:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:51:03] Production.INFO: 1 [2025-03-03 00:51:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:51:03] Production.INFO: Account Balance Start. [2025-03-03 00:51:03] Production.INFO: CreateAllLog Start [2025-03-03 00:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:51:03] Production.INFO: 117 [2025-03-03 00:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:03] Production.INFO: ==23311== Releasing lock... [2025-03-03 00:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:51:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:03] Production.ERROR: done [2025-03-03 00:51:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: ==23302== Releasing lock... [2025-03-03 00:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:51:04] Production.ERROR: done [2025-03-03 00:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:51:04] Production.INFO: Total Charge 0 [2025-03-03 00:51:04] Production.INFO: CreateAllLog End [2025-03-03 00:51:05] Production.INFO: Account Balance End. [2025-03-03 00:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:51:05] Production.INFO: ==23307== Releasing lock... [2025-03-03 00:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:51:11] Production.ERROR: CronJobId end10 [2025-03-03 00:51:11] Production.INFO: ==23305== Releasing lock... [2025-03-03 00:51:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:51:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:51:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:51:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:51:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:51:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:51:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:51:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:51:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:51:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:51:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:51:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:51:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:51:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:51:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:51:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:51:13] Production.INFO: call_cost start [2025-03-03 00:51:13] Production.INFO: call_cost end [2025-03-03 00:51:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:51:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:51:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:51:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:51:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:51:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:51:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:51:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:51:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:51:13] Production.INFO: ==23300== Releasing lock... [2025-03-03 00:51:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:51:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:51:16] Production.INFO: count ==409 [2025-03-03 00:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594909', 'tblTempUsageDetail_20' ) start [2025-03-03 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594909', 'tblTempUsageDetail_20' ) end [2025-03-03 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594909', 'tblTempVendorCDR_20' ) start [2025-03-03 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594909', 'tblTempVendorCDR_20' ) end [2025-03-03 00:51:16] Production.INFO: ProcessCDR(1,14594909,1,1,2) [2025-03-03 00:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594909', 'tblTempUsageDetail_20' ) start [2025-03-03 00:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594909', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:51:24] Production.INFO: ==23309== Releasing lock... [2025-03-03 00:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:51:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:52:02] Production.INFO: ==23375== Lock acquired, processing the job... [2025-03-03 05:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:52:02] Production.INFO: neon service started [2025-03-03 05:52:02] Production.INFO: neon service started [2025-03-03 05:52:02] Production.INFO: ==23375== Releasing lock... [2025-03-03 05:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:52:02] Production.INFO: ==23377== Lock acquired, processing the job... [2025-03-03 00:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:52:02] Production.INFO: ==23377== Releasing lock... [2025-03-03 00:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:52:02] Production.INFO: ==23379== Lock acquired, processing the job... [2025-03-03 05:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:52:02] Production.INFO: ==23379== Releasing lock... [2025-03-03 05:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:52:03] Production.INFO: ==23381== Lock acquired, processing the job... [2025-03-03 00:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:52:03] Production.INFO: ==23383== Lock acquired, processing the job... [2025-03-03 00:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:52:03] Production.INFO: ==23389== Lock acquired, processing the job... [2025-03-03 00:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:52:03] Production.INFO: ==23385== Lock acquired, processing the job... [2025-03-03 00:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:52:03] Production.INFO: ==23387== Lock acquired, processing the job... [2025-03-03 00:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:52:03] Production.INFO: ==23383== Releasing lock... [2025-03-03 00:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:52:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:52:03] Production.INFO: Account Balance Start. [2025-03-03 00:52:03] Production.INFO: CreateAllLog Start [2025-03-03 00:52:03] Production.INFO: 117 [2025-03-03 00:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: ==23391== Lock acquired, processing the job... [2025-03-03 00:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:52:04] Production.INFO: count ==13 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:52:04] Production.INFO: count ==21 [2025-03-03 00:52:04] Production.ERROR: done [2025-03-03 00:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594913') start [2025-03-03 00:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.ERROR: done [2025-03-03 00:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594913') end [2025-03-03 00:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:52:04] Production.INFO: 1 [2025-03-03 00:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: ==23391== Releasing lock... [2025-03-03 00:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:52:05] Production.INFO: Total Charge 0 [2025-03-03 00:52:05] Production.INFO: CreateAllLog End [2025-03-03 00:52:05] Production.INFO: Account Balance End. [2025-03-03 00:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:52:05] Production.INFO: ==23387== Releasing lock... [2025-03-03 00:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:52:11] Production.ERROR: CronJobId end10 [2025-03-03 00:52:11] Production.INFO: ==23385== Releasing lock... [2025-03-03 00:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:52:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:52:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:52:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:52:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:52:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:52:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:52:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:52:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:52:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:52:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:52:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:52:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:52:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:52:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:52:14] Production.INFO: call_cost start [2025-03-03 00:52:14] Production.INFO: call_cost end [2025-03-03 00:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:52:14] Production.INFO: ==23381== Releasing lock... [2025-03-03 00:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:52:16] Production.INFO: count ==409 [2025-03-03 00:52:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594914', 'tblTempUsageDetail_20' ) start [2025-03-03 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594914', 'tblTempUsageDetail_20' ) end [2025-03-03 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594914', 'tblTempVendorCDR_20' ) start [2025-03-03 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594914', 'tblTempVendorCDR_20' ) end [2025-03-03 00:52:16] Production.INFO: ProcessCDR(1,14594914,1,1,2) [2025-03-03 00:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594914', 'tblTempUsageDetail_20' ) start [2025-03-03 00:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594914', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:52:24] Production.INFO: ==23389== Releasing lock... [2025-03-03 00:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:53:01] Production.INFO: ==23459== Lock acquired, processing the job... [2025-03-03 05:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:53:01] Production.INFO: neon service started [2025-03-03 05:53:01] Production.INFO: neon service started [2025-03-03 05:53:01] Production.INFO: ==23459== Releasing lock... [2025-03-03 05:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:53:01] Production.INFO: ==23461== Lock acquired, processing the job... [2025-03-03 00:53:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:53:02] Production.INFO: ==23461== Releasing lock... [2025-03-03 00:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:53:02] Production.INFO: ==23463== Lock acquired, processing the job... [2025-03-03 05:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:53:02] Production.INFO: ==23463== Releasing lock... [2025-03-03 05:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:53:03] Production.INFO: ==23472== Lock acquired, processing the job... [2025-03-03 00:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:53:03] Production.INFO: ==23476== Lock acquired, processing the job... [2025-03-03 00:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:53:03] Production.INFO: Account Balance Start. [2025-03-03 00:53:03] Production.INFO: CreateAllLog Start [2025-03-03 00:53:03] Production.INFO: 117 [2025-03-03 00:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:53:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: count ==13 [2025-03-03 00:53:03] Production.INFO: ==23466== Lock acquired, processing the job... [2025-03-03 00:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:53:03] Production.INFO: count ==21 [2025-03-03 00:53:03] Production.INFO: ==23468== Lock acquired, processing the job... [2025-03-03 00:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:53:03] Production.INFO: ==23470== Lock acquired, processing the job... [2025-03-03 00:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594916') start [2025-03-03 00:53:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: ==23474== Lock acquired, processing the job... [2025-03-03 00:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594916') end [2025-03-03 00:53:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:53:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:53:03] Production.INFO: 1 [2025-03-03 00:53:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:53:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: ==23476== Releasing lock... [2025-03-03 00:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:53:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:53:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.INFO: ==23468== Releasing lock... [2025-03-03 00:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:53:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:03] Production.ERROR: done [2025-03-03 00:53:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:53:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.ERROR: done [2025-03-03 00:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:53:04] Production.INFO: Total Charge 0 [2025-03-03 00:53:04] Production.INFO: CreateAllLog End [2025-03-03 00:53:04] Production.INFO: Account Balance End. [2025-03-03 00:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:53:05] Production.INFO: ==23472== Releasing lock... [2025-03-03 00:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:53:11] Production.ERROR: CronJobId end10 [2025-03-03 00:53:11] Production.INFO: ==23470== Releasing lock... [2025-03-03 00:53:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:53:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:53:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:53:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:53:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:53:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:53:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:53:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:53:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:53:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:53:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:53:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:53:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:53:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:53:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:53:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:53:13] Production.INFO: call_cost start [2025-03-03 00:53:13] Production.INFO: call_cost end [2025-03-03 00:53:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:53:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:53:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:53:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:53:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:53:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:53:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:53:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:53:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:53:13] Production.INFO: ==23466== Releasing lock... [2025-03-03 00:53:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:53:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:53:16] Production.INFO: count ==409 [2025-03-03 00:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594919', 'tblTempUsageDetail_20' ) start [2025-03-03 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594919', 'tblTempUsageDetail_20' ) end [2025-03-03 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594919', 'tblTempVendorCDR_20' ) start [2025-03-03 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594919', 'tblTempVendorCDR_20' ) end [2025-03-03 00:53:16] Production.INFO: ProcessCDR(1,14594919,1,1,2) [2025-03-03 00:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594919', 'tblTempUsageDetail_20' ) start [2025-03-03 00:53:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594919', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:53:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:53:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:53:23] Production.INFO: ==23474== Releasing lock... [2025-03-03 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:53:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:54:02] Production.INFO: ==23541== Lock acquired, processing the job... [2025-03-03 05:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:54:02] Production.INFO: neon service started [2025-03-03 05:54:02] Production.INFO: neon service started [2025-03-03 05:54:02] Production.INFO: ==23541== Releasing lock... [2025-03-03 05:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:54:02] Production.INFO: ==23543== Lock acquired, processing the job... [2025-03-03 00:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:54:02] Production.INFO: ==23545== Lock acquired, processing the job... [2025-03-03 05:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 00:54:02] Production.INFO: ==23543== Releasing lock... [2025-03-03 00:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:54:02] Production.INFO: ==23545== Releasing lock... [2025-03-03 05:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:54:03] Production.INFO: ==23552== Lock acquired, processing the job... [2025-03-03 00:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:54:03] Production.INFO: ==23556== Lock acquired, processing the job... [2025-03-03 00:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:54:03] Production.INFO: ==23558== Lock acquired, processing the job... [2025-03-03 00:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:54:03] Production.INFO: count ==13 [2025-03-03 00:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:54:04] Production.INFO: ==23548== Lock acquired, processing the job... [2025-03-03 00:54:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:54:04] Production.INFO: count ==21 [2025-03-03 00:54:04] Production.ERROR: done [2025-03-03 00:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594920') start [2025-03-03 00:54:04] Production.INFO: ==23550== Lock acquired, processing the job... [2025-03-03 00:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:54:04] Production.INFO: ==23554== Lock acquired, processing the job... [2025-03-03 00:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:54:04] Production.ERROR: done [2025-03-03 00:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594920') end [2025-03-03 00:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:54:04] Production.INFO: 1 [2025-03-03 00:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:54:04] Production.INFO: ==23558== Releasing lock... [2025-03-03 00:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:54:04] Production.INFO: Account Balance Start. [2025-03-03 00:54:04] Production.INFO: CreateAllLog Start [2025-03-03 00:54:04] Production.INFO: 117 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: ==23550== Releasing lock... [2025-03-03 00:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:54:05] Production.INFO: Total Charge 0 [2025-03-03 00:54:05] Production.INFO: CreateAllLog End [2025-03-03 00:54:05] Production.INFO: Account Balance End. [2025-03-03 00:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:54:05] Production.INFO: ==23554== Releasing lock... [2025-03-03 00:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:54:12] Production.ERROR: CronJobId end10 [2025-03-03 00:54:12] Production.INFO: ==23552== Releasing lock... [2025-03-03 00:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:54:14] Production.INFO: call_cost start [2025-03-03 00:54:14] Production.INFO: call_cost end [2025-03-03 00:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:54:14] Production.INFO: ==23548== Releasing lock... [2025-03-03 00:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:54:16] Production.INFO: count ==409 [2025-03-03 00:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594922', 'tblTempUsageDetail_20' ) start [2025-03-03 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594922', 'tblTempUsageDetail_20' ) end [2025-03-03 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594922', 'tblTempVendorCDR_20' ) start [2025-03-03 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594922', 'tblTempVendorCDR_20' ) end [2025-03-03 00:54:16] Production.INFO: ProcessCDR(1,14594922,1,1,2) [2025-03-03 00:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594922', 'tblTempUsageDetail_20' ) start [2025-03-03 00:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594922', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:54:24] Production.INFO: ==23556== Releasing lock... [2025-03-03 00:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:55:01] Production.INFO: ==23617== Lock acquired, processing the job... [2025-03-03 05:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:55:01] Production.INFO: neon service started [2025-03-03 05:55:01] Production.INFO: neon service started [2025-03-03 05:55:01] Production.INFO: ==23617== Releasing lock... [2025-03-03 05:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:55:01] Production.INFO: ==23619== Lock acquired, processing the job... [2025-03-03 00:55:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:55:02] Production.INFO: ==23619== Releasing lock... [2025-03-03 00:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:55:02] Production.INFO: ==23621== Lock acquired, processing the job... [2025-03-03 05:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:55:02] Production.INFO: ==23621== Releasing lock... [2025-03-03 05:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:55:03] Production.INFO: ==23628== Lock acquired, processing the job... [2025-03-03 00:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:55:03] Production.INFO: ==23634== Lock acquired, processing the job... [2025-03-03 00:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:55:03] Production.INFO: count ==13 [2025-03-03 00:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:55:03] Production.INFO: count ==21 [2025-03-03 00:55:03] Production.INFO: ==23624== Lock acquired, processing the job... [2025-03-03 00:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594925') start [2025-03-03 00:55:03] Production.INFO: ==23626== Lock acquired, processing the job... [2025-03-03 00:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:55:03] Production.INFO: ==23630== Lock acquired, processing the job... [2025-03-03 00:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594925') end [2025-03-03 00:55:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:55:03] Production.INFO: 1 [2025-03-03 00:55:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:55:03] Production.INFO: ==23632== Lock acquired, processing the job... [2025-03-03 00:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:55:03] Production.INFO: ==23634== Releasing lock... [2025-03-03 00:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:55:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:55:03] Production.INFO: Account Balance Start. [2025-03-03 00:55:03] Production.INFO: CreateAllLog Start [2025-03-03 00:55:03] Production.INFO: 117 [2025-03-03 00:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:55:03] Production.INFO: ==23626== Releasing lock... [2025-03-03 00:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.ERROR: done [2025-03-03 00:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.ERROR: done [2025-03-03 00:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:55:05] Production.INFO: Total Charge 0 [2025-03-03 00:55:05] Production.INFO: CreateAllLog End [2025-03-03 00:55:05] Production.INFO: Account Balance End. [2025-03-03 00:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:55:05] Production.INFO: ==23630== Releasing lock... [2025-03-03 00:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:55:11] Production.ERROR: CronJobId end10 [2025-03-03 00:55:11] Production.INFO: ==23628== Releasing lock... [2025-03-03 00:55:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:55:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:55:14] Production.INFO: call_cost start [2025-03-03 00:55:14] Production.INFO: call_cost end [2025-03-03 00:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:55:14] Production.INFO: ==23624== Releasing lock... [2025-03-03 00:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:55:16] Production.INFO: count ==409 [2025-03-03 00:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594929', 'tblTempUsageDetail_20' ) start [2025-03-03 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594929', 'tblTempUsageDetail_20' ) end [2025-03-03 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594929', 'tblTempVendorCDR_20' ) start [2025-03-03 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594929', 'tblTempVendorCDR_20' ) end [2025-03-03 00:55:16] Production.INFO: ProcessCDR(1,14594929,1,1,2) [2025-03-03 00:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594929', 'tblTempUsageDetail_20' ) start [2025-03-03 00:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594929', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:55:24] Production.INFO: ==23632== Releasing lock... [2025-03-03 00:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:55:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:56:02] Production.INFO: ==23695== Lock acquired, processing the job... [2025-03-03 05:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:56:02] Production.INFO: neon service started [2025-03-03 05:56:02] Production.INFO: neon service started [2025-03-03 05:56:02] Production.INFO: ==23695== Releasing lock... [2025-03-03 05:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 00:56:02] Production.INFO: ==23697== Lock acquired, processing the job... [2025-03-03 00:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:56:03] Production.INFO: ==23699== Lock acquired, processing the job... [2025-03-03 05:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:56:03] Production.INFO: ==23699== Releasing lock... [2025-03-03 05:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:56:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:56:03] Production.INFO: ==23697== Releasing lock... [2025-03-03 00:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:56:04] Production.INFO: ==23705== Lock acquired, processing the job... [2025-03-03 00:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:56:04] Production.INFO: ==23707== Lock acquired, processing the job... [2025-03-03 00:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:56:04] Production.INFO: ==23713== Lock acquired, processing the job... [2025-03-03 00:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:56:04] Production.INFO: ==23709== Lock acquired, processing the job... [2025-03-03 00:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:56:04] Production.INFO: ==23707== Releasing lock... [2025-03-03 00:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:56:04] Production.INFO: ==23711== Lock acquired, processing the job... [2025-03-03 00:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:56:04] Production.INFO: ==23715== Lock acquired, processing the job... [2025-03-03 00:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:56:04] Production.INFO: Account Balance Start. [2025-03-03 00:56:04] Production.INFO: CreateAllLog Start [2025-03-03 00:56:04] Production.INFO: 117 [2025-03-03 00:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:04] Production.ERROR: done [2025-03-03 00:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:56:05] Production.INFO: count ==13 [2025-03-03 00:56:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:56:05] Production.INFO: count ==21 [2025-03-03 00:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594933') start [2025-03-03 00:56:05] Production.INFO: Date 2025-02-11 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594933') end [2025-03-03 00:56:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:56:05] Production.INFO: 1 [2025-03-03 00:56:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:56:05] Production.ERROR: done [2025-03-03 00:56:05] Production.INFO: ==23715== Releasing lock... [2025-03-03 00:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:56:05] Production.INFO: Date 2025-02-12 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-13 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-14 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-15 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-16 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:56:05] Production.INFO: Date 2025-02-17 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-18 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-19 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:56:05] Production.INFO: Total Charge 0 [2025-03-03 00:56:05] Production.INFO: CreateAllLog End [2025-03-03 00:56:06] Production.INFO: Account Balance End. [2025-03-03 00:56:06] Production.ERROR: CronJobId end 12 [2025-03-03 00:56:06] Production.INFO: ==23711== Releasing lock... [2025-03-03 00:56:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:56:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:56:12] Production.ERROR: CronJobId end10 [2025-03-03 00:56:12] Production.INFO: ==23709== Releasing lock... [2025-03-03 00:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:56:14] Production.INFO: call_cost start [2025-03-03 00:56:14] Production.INFO: call_cost end [2025-03-03 00:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:56:14] Production.INFO: ==23705== Releasing lock... [2025-03-03 00:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:56:17] Production.INFO: count ==409 [2025-03-03 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594934', 'tblTempUsageDetail_20' ) start [2025-03-03 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594934', 'tblTempUsageDetail_20' ) end [2025-03-03 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594934', 'tblTempVendorCDR_20' ) start [2025-03-03 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594934', 'tblTempVendorCDR_20' ) end [2025-03-03 00:56:17] Production.INFO: ProcessCDR(1,14594934,1,1,2) [2025-03-03 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594934', 'tblTempUsageDetail_20' ) start [2025-03-03 00:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594934', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:56:24] Production.INFO: ==23713== Releasing lock... [2025-03-03 00:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:56:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:57:01] Production.INFO: ==23775== Lock acquired, processing the job... [2025-03-03 05:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:57:01] Production.INFO: neon service started [2025-03-03 05:57:01] Production.INFO: neon service started [2025-03-03 05:57:01] Production.INFO: ==23775== Releasing lock... [2025-03-03 05:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 00:57:02] Production.INFO: ==23777== Lock acquired, processing the job... [2025-03-03 00:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:57:02] Production.INFO: ==23777== Releasing lock... [2025-03-03 00:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:57:02] Production.INFO: ==23779== Lock acquired, processing the job... [2025-03-03 05:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:57:02] Production.INFO: ==23779== Releasing lock... [2025-03-03 05:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:57:03] Production.INFO: ==23788== Lock acquired, processing the job... [2025-03-03 00:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:57:03] Production.INFO: ==23792== Lock acquired, processing the job... [2025-03-03 00:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:57:03] Production.INFO: ==23784== Lock acquired, processing the job... [2025-03-03 00:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:57:03] Production.INFO: ==23782== Lock acquired, processing the job... [2025-03-03 00:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:57:03] Production.INFO: Account Balance Start. [2025-03-03 00:57:03] Production.INFO: CreateAllLog Start [2025-03-03 00:57:03] Production.INFO: 117 [2025-03-03 00:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:57:03] Production.INFO: ==23786== Lock acquired, processing the job... [2025-03-03 00:57:03] Production.INFO: ==23790== Lock acquired, processing the job... [2025-03-03 00:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:57:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: count ==13 [2025-03-03 00:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:57:03] Production.INFO: count ==21 [2025-03-03 00:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594936') start [2025-03-03 00:57:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: Date 2025-02-13 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594936') end [2025-03-03 00:57:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:57:03] Production.INFO: 1 [2025-03-03 00:57:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:57:03] Production.INFO: Date 2025-02-14 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:57:03] Production.INFO: Date 2025-02-15 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: Date 2025-02-16 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:03] Production.INFO: Date 2025-02-17 [2025-03-03 00:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: ==23792== Releasing lock... [2025-03-03 00:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: ==23784== Releasing lock... [2025-03-03 00:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.ERROR: done [2025-03-03 00:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.ERROR: done [2025-03-03 00:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:57:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-03-02 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Date 2025-03-03 [2025-03-03 00:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:57:04] Production.INFO: Total Charge 0 [2025-03-03 00:57:04] Production.INFO: CreateAllLog End [2025-03-03 00:57:04] Production.INFO: Account Balance End. [2025-03-03 00:57:04] Production.ERROR: CronJobId end 12 [2025-03-03 00:57:04] Production.INFO: ==23788== Releasing lock... [2025-03-03 00:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:57:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:57:11] Production.ERROR: CronJobId end10 [2025-03-03 00:57:11] Production.INFO: ==23786== Releasing lock... [2025-03-03 00:57:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:57:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:57:14] Production.INFO: call_cost start [2025-03-03 00:57:14] Production.INFO: call_cost end [2025-03-03 00:57:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:57:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:57:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:57:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:57:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:57:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:57:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:57:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:57:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:57:14] Production.INFO: ==23782== Releasing lock... [2025-03-03 00:57:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:57:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:57:16] Production.INFO: count ==409 [2025-03-03 00:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594939', 'tblTempUsageDetail_20' ) start [2025-03-03 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594939', 'tblTempUsageDetail_20' ) end [2025-03-03 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594939', 'tblTempVendorCDR_20' ) start [2025-03-03 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594939', 'tblTempVendorCDR_20' ) end [2025-03-03 00:57:16] Production.INFO: ProcessCDR(1,14594939,1,1,2) [2025-03-03 00:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594939', 'tblTempUsageDetail_20' ) start [2025-03-03 00:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594939', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:57:24] Production.INFO: ==23790== Releasing lock... [2025-03-03 00:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:57:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:58:02] Production.INFO: ==23850== Lock acquired, processing the job... [2025-03-03 05:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:58:02] Production.INFO: neon service started [2025-03-03 05:58:02] Production.INFO: neon service started [2025-03-03 05:58:02] Production.INFO: ==23850== Releasing lock... [2025-03-03 05:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:58:02] Production.INFO: ==23854== Lock acquired, processing the job... [2025-03-03 05:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:58:02] Production.INFO: ==23854== Releasing lock... [2025-03-03 05:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:58:02] Production.INFO: ==23852== Lock acquired, processing the job... [2025-03-03 00:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:58:03] Production.INFO: ==23852== Releasing lock... [2025-03-03 00:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:58:03] Production.INFO: ==23857== Lock acquired, processing the job... [2025-03-03 00:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:58:03] Production.INFO: ==23859== Lock acquired, processing the job... [2025-03-03 00:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:58:03] Production.INFO: ==23865== Lock acquired, processing the job... [2025-03-03 00:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:58:04] Production.INFO: ==23859== Releasing lock... [2025-03-03 00:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:58:04] Production.INFO: ==23861== Lock acquired, processing the job... [2025-03-03 00:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:58:04] Production.ERROR: done [2025-03-03 00:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:58:04] Production.INFO: ==23863== Lock acquired, processing the job... [2025-03-03 00:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:58:04] Production.INFO: ==23867== Lock acquired, processing the job... [2025-03-03 00:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:58:04] Production.ERROR: done [2025-03-03 00:58:04] Production.INFO: Account Balance Start. [2025-03-03 00:58:04] Production.INFO: CreateAllLog Start [2025-03-03 00:58:04] Production.INFO: 117 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: count ==13 [2025-03-03 00:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:58:04] Production.INFO: count ==21 [2025-03-03 00:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594944') start [2025-03-03 00:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594944') end [2025-03-03 00:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:58:04] Production.INFO: 1 [2025-03-03 00:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: ==23867== Releasing lock... [2025-03-03 00:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:58:05] Production.INFO: Total Charge 0 [2025-03-03 00:58:05] Production.INFO: CreateAllLog End [2025-03-03 00:58:05] Production.INFO: Account Balance End. [2025-03-03 00:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:58:05] Production.INFO: ==23863== Releasing lock... [2025-03-03 00:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:58:11] Production.ERROR: CronJobId end10 [2025-03-03 00:58:11] Production.INFO: ==23861== Releasing lock... [2025-03-03 00:58:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:58:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:58:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:58:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:58:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:58:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:58:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:58:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:58:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:58:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:58:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:58:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:58:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:58:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:58:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:58:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:58:14] Production.INFO: call_cost start [2025-03-03 00:58:14] Production.INFO: call_cost end [2025-03-03 00:58:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:58:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:58:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:58:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:58:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:58:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:58:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:58:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:58:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:58:14] Production.INFO: ==23857== Releasing lock... [2025-03-03 00:58:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:58:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:58:16] Production.INFO: count ==409 [2025-03-03 00:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594942', 'tblTempUsageDetail_20' ) start [2025-03-03 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594942', 'tblTempUsageDetail_20' ) end [2025-03-03 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594942', 'tblTempVendorCDR_20' ) start [2025-03-03 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594942', 'tblTempVendorCDR_20' ) end [2025-03-03 00:58:16] Production.INFO: ProcessCDR(1,14594942,1,1,2) [2025-03-03 00:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594942', 'tblTempUsageDetail_20' ) start [2025-03-03 00:58:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594942', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:58:24] Production.INFO: ==23865== Releasing lock... [2025-03-03 00:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 05:59:01] Production.INFO: ==23921== Lock acquired, processing the job... [2025-03-03 05:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 05:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 05:59:01] Production.INFO: neon service started [2025-03-03 05:59:01] Production.INFO: neon service started [2025-03-03 05:59:01] Production.INFO: ==23921== Releasing lock... [2025-03-03 05:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 05:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:59:02] Production.INFO: ==23927== Lock acquired, processing the job... [2025-03-03 05:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:59:02] Production.INFO: ==23927== Releasing lock... [2025-03-03 05:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 05:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 00:59:02] Production.INFO: ==23925== Lock acquired, processing the job... [2025-03-03 00:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 00:59:02] Production.INFO: ==23925== Releasing lock... [2025-03-03 00:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 00:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 00:59:03] Production.INFO: ==23934== Lock acquired, processing the job... [2025-03-03 00:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 00:59:03] Production.INFO: ==23936== Lock acquired, processing the job... [2025-03-03 00:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 00:59:03] Production.INFO: ==23930== Lock acquired, processing the job... [2025-03-03 00:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 00:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 00:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 00:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 00:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 00:59:03] Production.INFO: Account Balance Start. [2025-03-03 00:59:03] Production.INFO: CreateAllLog Start [2025-03-03 00:59:03] Production.INFO: ==23932== Lock acquired, processing the job... [2025-03-03 00:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 00:59:03] Production.INFO: 117 [2025-03-03 00:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 00:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 00:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:03] Production.INFO: ==23938== Lock acquired, processing the job... [2025-03-03 00:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 00:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 00:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:03] Production.INFO: ==23940== Lock acquired, processing the job... [2025-03-03 00:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 00:59:03] Production.INFO: Date 2025-02-10 [2025-03-03 00:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 00:59:03] Production.INFO: Date 2025-02-11 [2025-03-03 00:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:03] Production.INFO: Date 2025-02-12 [2025-03-03 00:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:59:04] Production.INFO: count ==13 [2025-03-03 00:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 00:59:04] Production.INFO: count ==21 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: ==23932== Releasing lock... [2025-03-03 00:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 00:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 00:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594948') start [2025-03-03 00:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.ERROR: done [2025-03-03 00:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 00:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594948') end [2025-03-03 00:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 00:59:04] Production.INFO: 1 [2025-03-03 00:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 00:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: ==23940== Releasing lock... [2025-03-03 00:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 00:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 00:59:04] Production.ERROR: done [2025-03-03 00:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 00:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 00:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 00:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 00:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 00:59:05] Production.INFO: Total Charge 0 [2025-03-03 00:59:05] Production.INFO: CreateAllLog End [2025-03-03 00:59:05] Production.INFO: Account Balance End. [2025-03-03 00:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 00:59:05] Production.INFO: ==23936== Releasing lock... [2025-03-03 00:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 00:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 00:59:13] Production.ERROR: CronJobId end10 [2025-03-03 00:59:13] Production.INFO: ==23934== Releasing lock... [2025-03-03 00:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 00:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 00:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 00:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 00:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 00:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 00:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 00:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 00:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 00:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 00:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 00:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 00:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 00:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 00:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 00:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 00:59:15] Production.INFO: call_cost start [2025-03-03 00:59:15] Production.INFO: call_cost end [2025-03-03 00:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 00:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 00:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 00:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 00:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 00:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 00:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 00:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 00:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 00:59:15] Production.INFO: ==23930== Releasing lock... [2025-03-03 00:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 00:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 00:59:16] Production.INFO: count ==409 [2025-03-03 00:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 00:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594949', 'tblTempUsageDetail_20' ) start [2025-03-03 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594949', 'tblTempUsageDetail_20' ) end [2025-03-03 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594949', 'tblTempVendorCDR_20' ) start [2025-03-03 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594949', 'tblTempVendorCDR_20' ) end [2025-03-03 00:59:16] Production.INFO: ProcessCDR(1,14594949,1,1,2) [2025-03-03 00:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594949', 'tblTempUsageDetail_20' ) start [2025-03-03 00:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594949', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 00:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 00:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 00:59:24] Production.INFO: ==23938== Releasing lock... [2025-03-03 00:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 00:59:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:00:02] Production.INFO: ==24002== Lock acquired, processing the job... [2025-03-03 06:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:00:02] Production.INFO: neon service started [2025-03-03 06:00:02] Production.INFO: neon service started [2025-03-03 06:00:02] Production.INFO: ==24002== Releasing lock... [2025-03-03 06:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:00:02] Production.INFO: ==24004== Lock acquired, processing the job... [2025-03-03 01:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:00:03] Production.INFO: ==24006== Lock acquired, processing the job... [2025-03-03 06:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:00:03] Production.INFO: ==24006== Releasing lock... [2025-03-03 06:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:00:03] Production.INFO: ==24004== Releasing lock... [2025-03-03 01:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:00:04] Production.INFO: ==24015== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:00:04] Production.INFO: ==24009== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 01:00:04] Production.INFO: ==24019== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:00:04] Production.INFO: ==24021== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:00:04] Production.ERROR: CronJob PID - 24015 [2025-03-03 01:00:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 01:00:04] Production.ERROR: CronJob ID - 10 [2025-03-03 01:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:00:00 [2025-03-03 01:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:00:04] Production.ERROR: CronJob PID - 24019 [2025-03-03 01:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 01:00:04] Production.ERROR: CronJob ID - 16 [2025-03-03 01:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:00:00 [2025-03-03 01:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:00:04] Production.ERROR: CronJob PID - 24021 [2025-03-03 01:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 01:00:04] Production.ERROR: CronJob ID - 17 [2025-03-03 01:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:00:00 [2025-03-03 01:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 01:00:04] Production.INFO: ==24009== Releasing lock... [2025-03-03 01:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 01:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:00:04] Production.INFO: ==24013== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:00:04] Production.INFO: ==24011== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:00:04] Production.INFO: ==24017== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:00:04] Production.INFO: ==24023== Lock acquired, processing the job... [2025-03-03 01:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:00:04] Production.INFO: Account Balance Start. [2025-03-03 01:00:04] Production.INFO: CreateAllLog Start [2025-03-03 01:00:04] Production.ERROR: done [2025-03-03 01:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:00:04] Production.INFO: 117 [2025-03-03 01:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:04] Production.ERROR: done [2025-03-03 01:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.ERROR: done [2025-03-03 01:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 01:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594954', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 01:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: count ==13 [2025-03-03 01:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:00:05] Production.INFO: count ==21 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594953') start [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14594953') end [2025-03-03 01:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:00:05] Production.INFO: 1 [2025-03-03 01:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:00:05] Production.INFO: ==24013== Releasing lock... [2025-03-03 01:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: ==24023== Releasing lock... [2025-03-03 01:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:00:05] Production.INFO: Total Charge 0 [2025-03-03 01:00:05] Production.INFO: CreateAllLog End [2025-03-03 01:00:05] Production.INFO: Account Balance End. [2025-03-03 01:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:00:05] Production.INFO: ==24017== Releasing lock... [2025-03-03 01:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14594954', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 01:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 01:00:09] Production.INFO: ProcessCDR(1,14594954,1,1,2) [2025-03-03 01:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14594954,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14594954,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 01:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 01:00:09] Production.INFO: ==24021== Releasing lock... [2025-03-03 01:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 01:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:00:14] Production.ERROR: CronJobId end10 [2025-03-03 01:00:14] Production.INFO: ==24015== Releasing lock... [2025-03-03 01:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:00:16] Production.INFO: call_cost start [2025-03-03 01:00:16] Production.INFO: call_cost end [2025-03-03 01:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:00:16] Production.INFO: ==24011== Releasing lock... [2025-03-03 01:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:00:17] Production.INFO: count ==409 [2025-03-03 01:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594955', 'tblTempUsageDetail_20' ) start [2025-03-03 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594955', 'tblTempUsageDetail_20' ) end [2025-03-03 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594955', 'tblTempVendorCDR_20' ) start [2025-03-03 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594955', 'tblTempVendorCDR_20' ) end [2025-03-03 01:00:17] Production.INFO: ProcessCDR(1,14594955,1,1,2) [2025-03-03 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594955', 'tblTempUsageDetail_20' ) start [2025-03-03 01:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594955', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:00:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:00:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:00:24] Production.INFO: ==24019== Releasing lock... [2025-03-03 01:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:01:01] Production.INFO: ==24089== Lock acquired, processing the job... [2025-03-03 06:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:01:01] Production.INFO: neon service started [2025-03-03 06:01:01] Production.INFO: neon service started [2025-03-03 06:01:01] Production.INFO: ==24089== Releasing lock... [2025-03-03 06:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:01:02] Production.INFO: ==24097== Lock acquired, processing the job... [2025-03-03 01:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:01:02] Production.INFO: ==24099== Lock acquired, processing the job... [2025-03-03 06:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:01:02] Production.INFO: ==24099== Releasing lock... [2025-03-03 06:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:01:02] Production.INFO: ==24097== Releasing lock... [2025-03-03 01:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:01:03] Production.INFO: ==24104== Lock acquired, processing the job... [2025-03-03 01:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:01:03] Production.INFO: ==24112== Lock acquired, processing the job... [2025-03-03 01:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:01:03] Production.INFO: ==24102== Lock acquired, processing the job... [2025-03-03 01:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:01:03] Production.INFO: ==24106== Lock acquired, processing the job... [2025-03-03 01:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:01:03] Production.INFO: ==24104== Releasing lock... [2025-03-03 01:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:01:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:01:03] Production.INFO: count ==13 [2025-03-03 01:01:03] Production.INFO: ==24108== Lock acquired, processing the job... [2025-03-03 01:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:01:04] Production.INFO: ==24110== Lock acquired, processing the job... [2025-03-03 01:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:01:04] Production.INFO: count ==21 [2025-03-03 01:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594957') start [2025-03-03 01:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594957') end [2025-03-03 01:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:01:04] Production.INFO: 1 [2025-03-03 01:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:01:04] Production.INFO: ==24112== Releasing lock... [2025-03-03 01:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:01:04] Production.INFO: Account Balance Start. [2025-03-03 01:01:04] Production.INFO: CreateAllLog Start [2025-03-03 01:01:04] Production.INFO: 117 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.ERROR: done [2025-03-03 01:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.ERROR: done [2025-03-03 01:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:01:05] Production.INFO: Total Charge 0 [2025-03-03 01:01:05] Production.INFO: CreateAllLog End [2025-03-03 01:01:05] Production.INFO: Account Balance End. [2025-03-03 01:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:01:05] Production.INFO: ==24108== Releasing lock... [2025-03-03 01:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:01:11] Production.ERROR: CronJobId end10 [2025-03-03 01:01:11] Production.INFO: ==24106== Releasing lock... [2025-03-03 01:01:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:01:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:01:14] Production.INFO: call_cost start [2025-03-03 01:01:14] Production.INFO: call_cost end [2025-03-03 01:01:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:01:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:01:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:01:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:01:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:01:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:01:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:01:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:01:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:01:14] Production.INFO: ==24102== Releasing lock... [2025-03-03 01:01:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:01:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:01:16] Production.INFO: count ==409 [2025-03-03 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594960', 'tblTempUsageDetail_20' ) start [2025-03-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594960', 'tblTempUsageDetail_20' ) end [2025-03-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594960', 'tblTempVendorCDR_20' ) start [2025-03-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594960', 'tblTempVendorCDR_20' ) end [2025-03-03 01:01:17] Production.INFO: ProcessCDR(1,14594960,1,1,2) [2025-03-03 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594960', 'tblTempUsageDetail_20' ) start [2025-03-03 01:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594960', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:01:25] Production.INFO: ==24110== Releasing lock... [2025-03-03 01:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:01:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:02:02] Production.INFO: ==24174== Lock acquired, processing the job... [2025-03-03 06:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:02:02] Production.INFO: neon service started [2025-03-03 06:02:02] Production.INFO: neon service started [2025-03-03 06:02:02] Production.INFO: ==24174== Releasing lock... [2025-03-03 06:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:02:02] Production.INFO: ==24176== Lock acquired, processing the job... [2025-03-03 01:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:02:03] Production.INFO: ==24178== Lock acquired, processing the job... [2025-03-03 06:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 01:02:03] Production.INFO: ==24176== Releasing lock... [2025-03-03 01:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:02:03] Production.INFO: ==24178== Releasing lock... [2025-03-03 06:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:02:03] Production.INFO: ==24187== Lock acquired, processing the job... [2025-03-03 01:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:02:03] Production.INFO: ==24185== Lock acquired, processing the job... [2025-03-03 01:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:02:04] Production.INFO: ==24189== Lock acquired, processing the job... [2025-03-03 01:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:02:04] Production.INFO: Account Balance Start. [2025-03-03 01:02:04] Production.INFO: CreateAllLog Start [2025-03-03 01:02:04] Production.INFO: 117 [2025-03-03 01:02:04] Production.INFO: ==24181== Lock acquired, processing the job... [2025-03-03 01:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: ==24183== Lock acquired, processing the job... [2025-03-03 01:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:02:04] Production.INFO: ==24191== Lock acquired, processing the job... [2025-03-03 01:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:02:04] Production.ERROR: done [2025-03-03 01:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: count ==13 [2025-03-03 01:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:02:04] Production.INFO: count ==21 [2025-03-03 01:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594963') start [2025-03-03 01:02:04] Production.ERROR: done [2025-03-03 01:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594963') end [2025-03-03 01:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:02:04] Production.INFO: 1 [2025-03-03 01:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:02:04] Production.INFO: ==24191== Releasing lock... [2025-03-03 01:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:04] Production.INFO: ==24183== Releasing lock... [2025-03-03 01:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:02:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:02:05] Production.INFO: Total Charge 0 [2025-03-03 01:02:05] Production.INFO: CreateAllLog End [2025-03-03 01:02:05] Production.INFO: Account Balance End. [2025-03-03 01:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:02:05] Production.INFO: ==24187== Releasing lock... [2025-03-03 01:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:02:12] Production.ERROR: CronJobId end10 [2025-03-03 01:02:12] Production.INFO: ==24185== Releasing lock... [2025-03-03 01:02:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:02:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:02:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:02:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:02:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:02:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:02:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:02:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:02:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:02:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:02:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:02:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:02:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:02:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:02:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:02:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:02:15] Production.INFO: call_cost start [2025-03-03 01:02:15] Production.INFO: call_cost end [2025-03-03 01:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:02:15] Production.INFO: ==24181== Releasing lock... [2025-03-03 01:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:02:16] Production.INFO: count ==409 [2025-03-03 01:02:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594965', 'tblTempUsageDetail_20' ) start [2025-03-03 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594965', 'tblTempUsageDetail_20' ) end [2025-03-03 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594965', 'tblTempVendorCDR_20' ) start [2025-03-03 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594965', 'tblTempVendorCDR_20' ) end [2025-03-03 01:02:16] Production.INFO: ProcessCDR(1,14594965,1,1,2) [2025-03-03 01:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594965', 'tblTempUsageDetail_20' ) start [2025-03-03 01:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594965', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:02:24] Production.INFO: ==24189== Releasing lock... [2025-03-03 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:03:01] Production.INFO: ==24264== Lock acquired, processing the job... [2025-03-03 06:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:03:01] Production.INFO: neon service started [2025-03-03 06:03:01] Production.INFO: neon service started [2025-03-03 06:03:01] Production.INFO: ==24264== Releasing lock... [2025-03-03 06:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:03:02] Production.INFO: ==24266== Lock acquired, processing the job... [2025-03-03 01:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:03:02] Production.INFO: ==24268== Lock acquired, processing the job... [2025-03-03 06:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:03:02] Production.INFO: ==24268== Releasing lock... [2025-03-03 06:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:03:02] Production.INFO: ==24266== Releasing lock... [2025-03-03 01:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:03:03] Production.INFO: ==24279== Lock acquired, processing the job... [2025-03-03 01:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:03:03] Production.INFO: ==24277== Lock acquired, processing the job... [2025-03-03 01:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:03:04] Production.INFO: Account Balance Start. [2025-03-03 01:03:04] Production.INFO: CreateAllLog Start [2025-03-03 01:03:04] Production.INFO: 117 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.ERROR: done [2025-03-03 01:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: ==24271== Lock acquired, processing the job... [2025-03-03 01:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:03:04] Production.INFO: ==24273== Lock acquired, processing the job... [2025-03-03 01:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: ==24275== Lock acquired, processing the job... [2025-03-03 01:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:03:04] Production.INFO: ==24281== Lock acquired, processing the job... [2025-03-03 01:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.ERROR: done [2025-03-03 01:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:03:04] Production.INFO: count ==13 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: count ==21 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594967') start [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594967') end [2025-03-03 01:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:03:04] Production.INFO: 1 [2025-03-03 01:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: ==24273== Releasing lock... [2025-03-03 01:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:03:04] Production.INFO: ==24281== Releasing lock... [2025-03-03 01:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:03:04] Production.INFO: Total Charge 0 [2025-03-03 01:03:04] Production.INFO: CreateAllLog End [2025-03-03 01:03:05] Production.INFO: Account Balance End. [2025-03-03 01:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:03:05] Production.INFO: ==24277== Releasing lock... [2025-03-03 01:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:03:11] Production.ERROR: CronJobId end10 [2025-03-03 01:03:11] Production.INFO: ==24275== Releasing lock... [2025-03-03 01:03:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:03:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:03:15] Production.INFO: call_cost start [2025-03-03 01:03:15] Production.INFO: call_cost end [2025-03-03 01:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:03:15] Production.INFO: ==24271== Releasing lock... [2025-03-03 01:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:03:16] Production.INFO: count ==409 [2025-03-03 01:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594970', 'tblTempUsageDetail_20' ) start [2025-03-03 01:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594970', 'tblTempUsageDetail_20' ) end [2025-03-03 01:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594970', 'tblTempVendorCDR_20' ) start [2025-03-03 01:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594970', 'tblTempVendorCDR_20' ) end [2025-03-03 01:03:16] Production.INFO: ProcessCDR(1,14594970,1,1,2) [2025-03-03 01:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594970', 'tblTempUsageDetail_20' ) start [2025-03-03 01:03:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594970', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:03:24] Production.INFO: ==24279== Releasing lock... [2025-03-03 01:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:03:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:04:02] Production.INFO: ==24344== Lock acquired, processing the job... [2025-03-03 06:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:04:02] Production.INFO: neon service started [2025-03-03 06:04:02] Production.INFO: neon service started [2025-03-03 06:04:02] Production.INFO: ==24344== Releasing lock... [2025-03-03 06:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:04:02] Production.INFO: ==24346== Lock acquired, processing the job... [2025-03-03 01:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:04:03] Production.INFO: ==24346== Releasing lock... [2025-03-03 01:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:04:03] Production.INFO: ==24348== Lock acquired, processing the job... [2025-03-03 06:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:04:03] Production.INFO: ==24348== Releasing lock... [2025-03-03 06:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:04:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:04:03] Production.INFO: ==24352== Lock acquired, processing the job... [2025-03-03 01:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:04:03] Production.INFO: ==24350== Lock acquired, processing the job... [2025-03-03 01:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:04:04] Production.INFO: ==24360== Lock acquired, processing the job... [2025-03-03 01:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:04:04] Production.INFO: ==24354== Lock acquired, processing the job... [2025-03-03 01:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:04:04] Production.INFO: count ==13 [2025-03-03 01:04:04] Production.INFO: ==24356== Lock acquired, processing the job... [2025-03-03 01:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:04:04] Production.INFO: ==24352== Releasing lock... [2025-03-03 01:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:04:04] Production.INFO: count ==21 [2025-03-03 01:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594973') start [2025-03-03 01:04:04] Production.INFO: ==24358== Lock acquired, processing the job... [2025-03-03 01:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:04:04] Production.INFO: Account Balance Start. [2025-03-03 01:04:04] Production.INFO: CreateAllLog Start [2025-03-03 01:04:04] Production.INFO: 117 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594973') end [2025-03-03 01:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:04:04] Production.INFO: 1 [2025-03-03 01:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:04:04] Production.INFO: ==24360== Releasing lock... [2025-03-03 01:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.ERROR: done [2025-03-03 01:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.ERROR: done [2025-03-03 01:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:04:05] Production.INFO: Total Charge 0 [2025-03-03 01:04:05] Production.INFO: CreateAllLog End [2025-03-03 01:04:05] Production.INFO: Account Balance End. [2025-03-03 01:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:04:05] Production.INFO: ==24356== Releasing lock... [2025-03-03 01:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:04:12] Production.ERROR: CronJobId end10 [2025-03-03 01:04:12] Production.INFO: ==24354== Releasing lock... [2025-03-03 01:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:04:15] Production.INFO: call_cost start [2025-03-03 01:04:15] Production.INFO: call_cost end [2025-03-03 01:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:04:15] Production.INFO: ==24350== Releasing lock... [2025-03-03 01:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:04:16] Production.INFO: count ==409 [2025-03-03 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594975', 'tblTempUsageDetail_20' ) start [2025-03-03 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594975', 'tblTempUsageDetail_20' ) end [2025-03-03 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594975', 'tblTempVendorCDR_20' ) start [2025-03-03 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594975', 'tblTempVendorCDR_20' ) end [2025-03-03 01:04:17] Production.INFO: ProcessCDR(1,14594975,1,1,2) [2025-03-03 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594975', 'tblTempUsageDetail_20' ) start [2025-03-03 01:04:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594975', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:04:24] Production.INFO: ==24358== Releasing lock... [2025-03-03 01:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:04:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:05:01] Production.INFO: ==24424== Lock acquired, processing the job... [2025-03-03 06:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:05:01] Production.INFO: neon service started [2025-03-03 06:05:01] Production.INFO: neon service started [2025-03-03 06:05:01] Production.INFO: ==24424== Releasing lock... [2025-03-03 06:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:05:02] Production.INFO: ==24426== Lock acquired, processing the job... [2025-03-03 01:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:05:02] Production.INFO: ==24426== Releasing lock... [2025-03-03 01:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:05:02] Production.INFO: ==24428== Lock acquired, processing the job... [2025-03-03 06:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:05:02] Production.INFO: ==24428== Releasing lock... [2025-03-03 06:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:05:03] Production.INFO: ==24434== Lock acquired, processing the job... [2025-03-03 01:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:05:03] Production.INFO: ==24438== Lock acquired, processing the job... [2025-03-03 01:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:05:03] Production.INFO: ==24432== Lock acquired, processing the job... [2025-03-03 01:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:05:03] Production.INFO: ==24430== Lock acquired, processing the job... [2025-03-03 01:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:05:03] Production.INFO: ==24436== Lock acquired, processing the job... [2025-03-03 01:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:05:03] Production.INFO: ==24440== Lock acquired, processing the job... [2025-03-03 01:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:05:03] Production.INFO: Account Balance Start. [2025-03-03 01:05:03] Production.INFO: CreateAllLog Start [2025-03-03 01:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:05:03] Production.INFO: 117 [2025-03-03 01:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:05:03] Production.INFO: count ==13 [2025-03-03 01:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:05:03] Production.ERROR: done [2025-03-03 01:05:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:05:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:03] Production.INFO: count ==21 [2025-03-03 01:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594978') start [2025-03-03 01:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.ERROR: done [2025-03-03 01:05:04] Production.INFO: ==24432== Releasing lock... [2025-03-03 01:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594978') end [2025-03-03 01:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:05:04] Production.INFO: 1 [2025-03-03 01:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: ==24440== Releasing lock... [2025-03-03 01:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:05:04] Production.INFO: Total Charge 0 [2025-03-03 01:05:04] Production.INFO: CreateAllLog End [2025-03-03 01:05:04] Production.INFO: Account Balance End. [2025-03-03 01:05:04] Production.ERROR: CronJobId end 12 [2025-03-03 01:05:04] Production.INFO: ==24436== Releasing lock... [2025-03-03 01:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:05:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:05:12] Production.ERROR: CronJobId end10 [2025-03-03 01:05:12] Production.INFO: ==24434== Releasing lock... [2025-03-03 01:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:05:15] Production.INFO: call_cost start [2025-03-03 01:05:15] Production.INFO: call_cost end [2025-03-03 01:05:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:05:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:05:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:05:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:05:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:05:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:05:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:05:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:05:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:05:15] Production.INFO: ==24430== Releasing lock... [2025-03-03 01:05:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:05:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:05:16] Production.INFO: count ==409 [2025-03-03 01:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594980', 'tblTempUsageDetail_20' ) start [2025-03-03 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594980', 'tblTempUsageDetail_20' ) end [2025-03-03 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594980', 'tblTempVendorCDR_20' ) start [2025-03-03 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594980', 'tblTempVendorCDR_20' ) end [2025-03-03 01:05:16] Production.INFO: ProcessCDR(1,14594980,1,1,2) [2025-03-03 01:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594980', 'tblTempUsageDetail_20' ) start [2025-03-03 01:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594980', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:05:24] Production.INFO: ==24438== Releasing lock... [2025-03-03 01:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:06:02] Production.INFO: ==24501== Lock acquired, processing the job... [2025-03-03 06:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:06:02] Production.INFO: neon service started [2025-03-03 06:06:02] Production.INFO: neon service started [2025-03-03 06:06:02] Production.INFO: ==24501== Releasing lock... [2025-03-03 06:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:06:02] Production.INFO: ==24505== Lock acquired, processing the job... [2025-03-03 06:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:06:02] Production.INFO: ==24505== Releasing lock... [2025-03-03 06:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:06:02] Production.INFO: ==24503== Lock acquired, processing the job... [2025-03-03 01:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:06:03] Production.INFO: ==24503== Releasing lock... [2025-03-03 01:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:06:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:06:03] Production.INFO: ==24514== Lock acquired, processing the job... [2025-03-03 01:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:06:03] Production.INFO: Account Balance Start. [2025-03-03 01:06:03] Production.INFO: CreateAllLog Start [2025-03-03 01:06:03] Production.INFO: 117 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: ==24507== Lock acquired, processing the job... [2025-03-03 01:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:06:04] Production.INFO: ==24518== Lock acquired, processing the job... [2025-03-03 01:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: ==24509== Lock acquired, processing the job... [2025-03-03 01:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: ==24511== Lock acquired, processing the job... [2025-03-03 01:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: ==24516== Lock acquired, processing the job... [2025-03-03 01:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: count ==13 [2025-03-03 01:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:06:04] Production.INFO: count ==21 [2025-03-03 01:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594983') start [2025-03-03 01:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594983') end [2025-03-03 01:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:06:04] Production.INFO: 1 [2025-03-03 01:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.INFO: ==24509== Releasing lock... [2025-03-03 01:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:06:04] Production.ERROR: done [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:06:04] Production.INFO: ==24518== Releasing lock... [2025-03-03 01:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.ERROR: done [2025-03-03 01:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:06:05] Production.INFO: Total Charge 0 [2025-03-03 01:06:05] Production.INFO: CreateAllLog End [2025-03-03 01:06:05] Production.INFO: Account Balance End. [2025-03-03 01:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:06:05] Production.INFO: ==24514== Releasing lock... [2025-03-03 01:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:06:11] Production.ERROR: CronJobId end10 [2025-03-03 01:06:11] Production.INFO: ==24511== Releasing lock... [2025-03-03 01:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:06:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:06:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:06:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:06:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:06:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:06:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:06:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:06:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:06:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:06:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:06:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:06:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:06:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:06:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:06:14] Production.INFO: call_cost start [2025-03-03 01:06:14] Production.INFO: call_cost end [2025-03-03 01:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:06:14] Production.INFO: ==24507== Releasing lock... [2025-03-03 01:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:06:16] Production.INFO: count ==409 [2025-03-03 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594985', 'tblTempUsageDetail_20' ) start [2025-03-03 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594985', 'tblTempUsageDetail_20' ) end [2025-03-03 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594985', 'tblTempVendorCDR_20' ) start [2025-03-03 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594985', 'tblTempVendorCDR_20' ) end [2025-03-03 01:06:17] Production.INFO: ProcessCDR(1,14594985,1,1,2) [2025-03-03 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594985', 'tblTempUsageDetail_20' ) start [2025-03-03 01:06:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594985', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:06:24] Production.INFO: ==24516== Releasing lock... [2025-03-03 01:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:07:01] Production.INFO: ==24626== Lock acquired, processing the job... [2025-03-03 06:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:07:01] Production.INFO: neon service started [2025-03-03 06:07:01] Production.INFO: neon service started [2025-03-03 06:07:01] Production.INFO: ==24626== Releasing lock... [2025-03-03 06:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:07:02] Production.INFO: ==24628== Lock acquired, processing the job... [2025-03-03 01:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:07:02] Production.INFO: ==24630== Lock acquired, processing the job... [2025-03-03 06:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:07:02] Production.INFO: ==24630== Releasing lock... [2025-03-03 06:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:07:02] Production.INFO: ==24628== Releasing lock... [2025-03-03 01:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:07:03] Production.INFO: ==24637== Lock acquired, processing the job... [2025-03-03 01:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:07:03] Production.INFO: ==24639== Lock acquired, processing the job... [2025-03-03 01:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:07:03] Production.INFO: ==24635== Lock acquired, processing the job... [2025-03-03 01:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:07:03] Production.INFO: Account Balance Start. [2025-03-03 01:07:03] Production.INFO: CreateAllLog Start [2025-03-03 01:07:03] Production.INFO: 117 [2025-03-03 01:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:07:03] Production.INFO: ==24633== Lock acquired, processing the job... [2025-03-03 01:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:07:03] Production.INFO: ==24641== Lock acquired, processing the job... [2025-03-03 01:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: ==24643== Lock acquired, processing the job... [2025-03-03 01:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: ==24635== Releasing lock... [2025-03-03 01:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:07:04] Production.INFO: count ==13 [2025-03-03 01:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:07:04] Production.INFO: count ==21 [2025-03-03 01:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594989') start [2025-03-03 01:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.ERROR: done [2025-03-03 01:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594989') end [2025-03-03 01:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:07:04] Production.INFO: 1 [2025-03-03 01:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: ==24643== Releasing lock... [2025-03-03 01:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.ERROR: done [2025-03-03 01:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:07:05] Production.INFO: Total Charge 0 [2025-03-03 01:07:05] Production.INFO: CreateAllLog End [2025-03-03 01:07:05] Production.INFO: Account Balance End. [2025-03-03 01:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:07:05] Production.INFO: ==24639== Releasing lock... [2025-03-03 01:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:07:12] Production.ERROR: CronJobId end10 [2025-03-03 01:07:12] Production.INFO: ==24637== Releasing lock... [2025-03-03 01:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:07:15] Production.INFO: call_cost start [2025-03-03 01:07:15] Production.INFO: call_cost end [2025-03-03 01:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:07:15] Production.INFO: ==24633== Releasing lock... [2025-03-03 01:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:07:16] Production.INFO: count ==409 [2025-03-03 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594990', 'tblTempUsageDetail_20' ) start [2025-03-03 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594990', 'tblTempUsageDetail_20' ) end [2025-03-03 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594990', 'tblTempVendorCDR_20' ) start [2025-03-03 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594990', 'tblTempVendorCDR_20' ) end [2025-03-03 01:07:17] Production.INFO: ProcessCDR(1,14594990,1,1,2) [2025-03-03 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594990', 'tblTempUsageDetail_20' ) start [2025-03-03 01:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594990', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:07:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:07:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:07:24] Production.INFO: ==24641== Releasing lock... [2025-03-03 01:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:07:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:08:02] Production.INFO: ==24713== Lock acquired, processing the job... [2025-03-03 06:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:08:02] Production.INFO: neon service started [2025-03-03 06:08:02] Production.INFO: neon service started [2025-03-03 06:08:02] Production.INFO: ==24713== Releasing lock... [2025-03-03 06:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:08:02] Production.INFO: ==24717== Lock acquired, processing the job... [2025-03-03 06:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:08:02] Production.INFO: ==24717== Releasing lock... [2025-03-03 06:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:08:02] Production.INFO: ==24715== Lock acquired, processing the job... [2025-03-03 01:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:08:03] Production.INFO: ==24715== Releasing lock... [2025-03-03 01:08:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:08:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:08:03] Production.INFO: ==24719== Lock acquired, processing the job... [2025-03-03 01:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:08:03] Production.INFO: ==24723== Lock acquired, processing the job... [2025-03-03 01:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:08:04] Production.INFO: ==24728== Lock acquired, processing the job... [2025-03-03 01:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:08:04] Production.INFO: ==24721== Lock acquired, processing the job... [2025-03-03 01:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:08:04] Production.INFO: ==24726== Lock acquired, processing the job... [2025-03-03 01:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:08:04] Production.INFO: ==24730== Lock acquired, processing the job... [2025-03-03 01:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:08:04] Production.INFO: Account Balance Start. [2025-03-03 01:08:04] Production.INFO: CreateAllLog Start [2025-03-03 01:08:04] Production.INFO: 117 [2025-03-03 01:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.ERROR: done [2025-03-03 01:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: count ==13 [2025-03-03 01:08:04] Production.INFO: ==24721== Releasing lock... [2025-03-03 01:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: count ==21 [2025-03-03 01:08:04] Production.ERROR: done [2025-03-03 01:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594994') start [2025-03-03 01:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594994') end [2025-03-03 01:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:08:04] Production.INFO: 1 [2025-03-03 01:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:08:04] Production.INFO: ==24730== Releasing lock... [2025-03-03 01:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:08:05] Production.INFO: Total Charge 0 [2025-03-03 01:08:05] Production.INFO: CreateAllLog End [2025-03-03 01:08:05] Production.INFO: Account Balance End. [2025-03-03 01:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:08:05] Production.INFO: ==24726== Releasing lock... [2025-03-03 01:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:08:12] Production.ERROR: CronJobId end10 [2025-03-03 01:08:12] Production.INFO: ==24723== Releasing lock... [2025-03-03 01:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:08:14] Production.INFO: call_cost start [2025-03-03 01:08:14] Production.INFO: call_cost end [2025-03-03 01:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:08:14] Production.INFO: ==24719== Releasing lock... [2025-03-03 01:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:08:16] Production.INFO: count ==409 [2025-03-03 01:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594995', 'tblTempUsageDetail_20' ) start [2025-03-03 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14594995', 'tblTempUsageDetail_20' ) end [2025-03-03 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594995', 'tblTempVendorCDR_20' ) start [2025-03-03 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14594995', 'tblTempVendorCDR_20' ) end [2025-03-03 01:08:16] Production.INFO: ProcessCDR(1,14594995,1,1,2) [2025-03-03 01:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14594995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14594995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14594995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14594995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14594995', 'tblTempUsageDetail_20' ) start [2025-03-03 01:08:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14594995', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:08:24] Production.INFO: ==24728== Releasing lock... [2025-03-03 01:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:08:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:09:01] Production.INFO: ==24793== Lock acquired, processing the job... [2025-03-03 06:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:09:01] Production.INFO: neon service started [2025-03-03 06:09:01] Production.INFO: neon service started [2025-03-03 06:09:01] Production.INFO: ==24793== Releasing lock... [2025-03-03 06:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:09:02] Production.INFO: ==24797== Lock acquired, processing the job... [2025-03-03 06:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:09:02] Production.INFO: ==24797== Releasing lock... [2025-03-03 06:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:09:02] Production.INFO: ==24795== Lock acquired, processing the job... [2025-03-03 01:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:09:02] Production.INFO: ==24795== Releasing lock... [2025-03-03 01:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:09:03] Production.INFO: ==24799== Lock acquired, processing the job... [2025-03-03 01:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:09:03] Production.INFO: ==24807== Lock acquired, processing the job... [2025-03-03 01:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:09:03] Production.INFO: ==24805== Lock acquired, processing the job... [2025-03-03 01:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:09:03] Production.INFO: ==24803== Lock acquired, processing the job... [2025-03-03 01:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:09:03] Production.ERROR: done [2025-03-03 01:09:03] Production.INFO: ==24809== Lock acquired, processing the job... [2025-03-03 01:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:09:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:09:03] Production.INFO: ==24801== Lock acquired, processing the job... [2025-03-03 01:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:09:03] Production.INFO: Account Balance Start. [2025-03-03 01:09:03] Production.INFO: CreateAllLog Start [2025-03-03 01:09:03] Production.INFO: 117 [2025-03-03 01:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:03] Production.INFO: count ==13 [2025-03-03 01:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:09:03] Production.INFO: count ==21 [2025-03-03 01:09:03] Production.ERROR: done [2025-03-03 01:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14594997') start [2025-03-03 01:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14594997') end [2025-03-03 01:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:09:04] Production.INFO: 1 [2025-03-03 01:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: ==24809== Releasing lock... [2025-03-03 01:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:09:04] Production.INFO: ==24801== Releasing lock... [2025-03-03 01:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:09:05] Production.INFO: Total Charge 0 [2025-03-03 01:09:05] Production.INFO: CreateAllLog End [2025-03-03 01:09:05] Production.INFO: Account Balance End. [2025-03-03 01:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:09:05] Production.INFO: ==24805== Releasing lock... [2025-03-03 01:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:09:11] Production.ERROR: CronJobId end10 [2025-03-03 01:09:11] Production.INFO: ==24803== Releasing lock... [2025-03-03 01:09:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:09:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:09:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:09:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:09:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:09:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:09:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:09:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:09:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:09:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:09:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:09:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:09:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:09:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:09:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:09:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:09:14] Production.INFO: call_cost start [2025-03-03 01:09:14] Production.INFO: call_cost end [2025-03-03 01:09:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:09:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:09:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:09:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:09:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:09:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:09:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:09:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:09:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:09:14] Production.INFO: ==24799== Releasing lock... [2025-03-03 01:09:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:09:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:09:16] Production.INFO: count ==409 [2025-03-03 01:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595000', 'tblTempUsageDetail_20' ) start [2025-03-03 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595000', 'tblTempUsageDetail_20' ) end [2025-03-03 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595000', 'tblTempVendorCDR_20' ) start [2025-03-03 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595000', 'tblTempVendorCDR_20' ) end [2025-03-03 01:09:16] Production.INFO: ProcessCDR(1,14595000,1,1,2) [2025-03-03 01:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595000', 'tblTempUsageDetail_20' ) start [2025-03-03 01:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595000', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:09:24] Production.INFO: ==24807== Releasing lock... [2025-03-03 01:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:09:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:10:02] Production.INFO: ==24867== Lock acquired, processing the job... [2025-03-03 06:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:10:02] Production.INFO: neon service started [2025-03-03 06:10:02] Production.INFO: neon service started [2025-03-03 06:10:02] Production.INFO: ==24867== Releasing lock... [2025-03-03 06:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:10:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:10:02] Production.INFO: ==24870== Lock acquired, processing the job... [2025-03-03 01:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:10:02] Production.INFO: ==24870== Releasing lock... [2025-03-03 01:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:10:03] Production.INFO: ==24872== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:10:03] Production.INFO: ==24872== Releasing lock... [2025-03-03 06:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:10:04] Production.INFO: ==24874== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 01:10:04] Production.INFO: ==24876== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:10:04] Production.INFO: ==24880== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 01:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 01:10:04] Production.INFO: ==24874== Releasing lock... [2025-03-03 01:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 01:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:10:04] Production.INFO: ==24882== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: ==24878== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:10:04] Production.INFO: ==24886== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 01:10:04] Production.INFO: Account Balance Start. [2025-03-03 01:10:04] Production.INFO: CreateAllLog Start [2025-03-03 01:10:04] Production.INFO: 117 [2025-03-03 01:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.INFO: ==24884== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.INFO: ==24888== Lock acquired, processing the job... [2025-03-03 01:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.INFO: count ==13 [2025-03-03 01:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:10:04] Production.INFO: count ==21 [2025-03-03 01:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595004') start [2025-03-03 01:10:04] Production.INFO: ==24878== Releasing lock... [2025-03-03 01:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.ERROR: done [2025-03-03 01:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595004') end [2025-03-03 01:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:10:04] Production.INFO: 1 [2025-03-03 01:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 01:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595005', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 01:10:04] Production.INFO: ==24888== Releasing lock... [2025-03-03 01:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.ERROR: done [2025-03-03 01:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.ERROR: done [2025-03-03 01:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:10:05] Production.INFO: Total Charge 0 [2025-03-03 01:10:05] Production.INFO: CreateAllLog End [2025-03-03 01:10:05] Production.INFO: Account Balance End. [2025-03-03 01:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:10:05] Production.INFO: ==24882== Releasing lock... [2025-03-03 01:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595005', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 01:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 01:10:09] Production.INFO: ProcessCDR(1,14595005,1,1,2) [2025-03-03 01:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595005,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595005,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 01:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 01:10:09] Production.INFO: ==24886== Releasing lock... [2025-03-03 01:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 01:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:10:12] Production.ERROR: CronJobId end10 [2025-03-03 01:10:12] Production.INFO: ==24880== Releasing lock... [2025-03-03 01:10:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:10:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:10:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:10:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:10:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:10:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:10:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:10:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:10:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:10:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:10:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:10:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:10:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:10:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:10:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:10:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:10:16] Production.INFO: call_cost start [2025-03-03 01:10:16] Production.INFO: call_cost end [2025-03-03 01:10:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:10:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:10:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:10:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:10:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:10:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:10:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:10:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:10:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:10:16] Production.INFO: ==24876== Releasing lock... [2025-03-03 01:10:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:10:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:10:17] Production.INFO: count ==409 [2025-03-03 01:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595006', 'tblTempUsageDetail_20' ) start [2025-03-03 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595006', 'tblTempUsageDetail_20' ) end [2025-03-03 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595006', 'tblTempVendorCDR_20' ) start [2025-03-03 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595006', 'tblTempVendorCDR_20' ) end [2025-03-03 01:10:17] Production.INFO: ProcessCDR(1,14595006,1,1,2) [2025-03-03 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595006', 'tblTempUsageDetail_20' ) start [2025-03-03 01:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595006', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:10:25] Production.INFO: ==24884== Releasing lock... [2025-03-03 01:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:10:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:11:01] Production.INFO: ==24952== Lock acquired, processing the job... [2025-03-03 06:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:11:01] Production.INFO: neon service started [2025-03-03 06:11:01] Production.INFO: neon service started [2025-03-03 06:11:01] Production.INFO: ==24952== Releasing lock... [2025-03-03 06:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:11:01] Production.INFO: ==24955== Lock acquired, processing the job... [2025-03-03 01:11:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:11:02] Production.INFO: ==24955== Releasing lock... [2025-03-03 01:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:11:02] Production.INFO: ==24957== Lock acquired, processing the job... [2025-03-03 06:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:11:02] Production.INFO: ==24957== Releasing lock... [2025-03-03 06:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:11:03] Production.INFO: ==24963== Lock acquired, processing the job... [2025-03-03 01:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:11:03] Production.INFO: ==24959== Lock acquired, processing the job... [2025-03-03 01:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:11:03] Production.INFO: ==24961== Lock acquired, processing the job... [2025-03-03 01:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:11:03] Production.INFO: ==24969== Lock acquired, processing the job... [2025-03-03 01:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:11:03] Production.INFO: ==24965== Lock acquired, processing the job... [2025-03-03 01:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:11:03] Production.INFO: ==24967== Lock acquired, processing the job... [2025-03-03 01:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:11:03] Production.INFO: count ==13 [2025-03-03 01:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:11:03] Production.INFO: count ==21 [2025-03-03 01:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595008') start [2025-03-03 01:11:03] Production.INFO: Account Balance Start. [2025-03-03 01:11:03] Production.INFO: CreateAllLog Start [2025-03-03 01:11:03] Production.INFO: 117 [2025-03-03 01:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595008') end [2025-03-03 01:11:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:11:03] Production.INFO: 1 [2025-03-03 01:11:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:11:03] Production.INFO: ==24961== Releasing lock... [2025-03-03 01:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:11:03] Production.INFO: ==24969== Releasing lock... [2025-03-03 01:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:11:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.ERROR: done [2025-03-03 01:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.ERROR: done [2025-03-03 01:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:11:04] Production.INFO: Total Charge 0 [2025-03-03 01:11:04] Production.INFO: CreateAllLog End [2025-03-03 01:11:04] Production.INFO: Account Balance End. [2025-03-03 01:11:04] Production.ERROR: CronJobId end 12 [2025-03-03 01:11:04] Production.INFO: ==24965== Releasing lock... [2025-03-03 01:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:11:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:11:12] Production.ERROR: CronJobId end10 [2025-03-03 01:11:12] Production.INFO: ==24963== Releasing lock... [2025-03-03 01:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:11:15] Production.INFO: call_cost start [2025-03-03 01:11:15] Production.INFO: call_cost end [2025-03-03 01:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:11:15] Production.INFO: ==24959== Releasing lock... [2025-03-03 01:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:11:16] Production.INFO: count ==409 [2025-03-03 01:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595011', 'tblTempUsageDetail_20' ) start [2025-03-03 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595011', 'tblTempUsageDetail_20' ) end [2025-03-03 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595011', 'tblTempVendorCDR_20' ) start [2025-03-03 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595011', 'tblTempVendorCDR_20' ) end [2025-03-03 01:11:16] Production.INFO: ProcessCDR(1,14595011,1,1,2) [2025-03-03 01:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595011', 'tblTempUsageDetail_20' ) start [2025-03-03 01:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595011', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:11:24] Production.INFO: ==24967== Releasing lock... [2025-03-03 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:12:02] Production.INFO: ==25033== Lock acquired, processing the job... [2025-03-03 06:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:12:02] Production.INFO: neon service started [2025-03-03 06:12:02] Production.INFO: neon service started [2025-03-03 06:12:02] Production.INFO: ==25033== Releasing lock... [2025-03-03 06:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:12:02] Production.INFO: ==25035== Lock acquired, processing the job... [2025-03-03 01:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:12:02] Production.INFO: ==25035== Releasing lock... [2025-03-03 01:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:12:02] Production.INFO: ==25037== Lock acquired, processing the job... [2025-03-03 06:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:12:03] Production.INFO: ==25037== Releasing lock... [2025-03-03 06:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:12:03] Production.INFO: ==25041== Lock acquired, processing the job... [2025-03-03 01:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:12:03] Production.INFO: ==25043== Lock acquired, processing the job... [2025-03-03 01:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:12:03] Production.INFO: ==25045== Lock acquired, processing the job... [2025-03-03 01:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:12:03] Production.INFO: Account Balance Start. [2025-03-03 01:12:03] Production.INFO: CreateAllLog Start [2025-03-03 01:12:03] Production.INFO: ==25041== Releasing lock... [2025-03-03 01:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:12:03] Production.INFO: 117 [2025-03-03 01:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:03] Production.INFO: ==25039== Lock acquired, processing the job... [2025-03-03 01:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:12:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:03] Production.INFO: ==25049== Lock acquired, processing the job... [2025-03-03 01:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: ==25047== Lock acquired, processing the job... [2025-03-03 01:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:12:04] Production.INFO: count ==13 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:12:04] Production.INFO: count ==21 [2025-03-03 01:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595015') start [2025-03-03 01:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595015') end [2025-03-03 01:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:12:04] Production.INFO: 1 [2025-03-03 01:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:12:04] Production.ERROR: done [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: ==25049== Releasing lock... [2025-03-03 01:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.ERROR: done [2025-03-03 01:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:12:05] Production.INFO: Total Charge 0 [2025-03-03 01:12:05] Production.INFO: CreateAllLog End [2025-03-03 01:12:05] Production.INFO: Account Balance End. [2025-03-03 01:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:12:05] Production.INFO: ==25045== Releasing lock... [2025-03-03 01:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:12:11] Production.ERROR: CronJobId end10 [2025-03-03 01:12:11] Production.INFO: ==25043== Releasing lock... [2025-03-03 01:12:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:12:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:12:14] Production.INFO: call_cost start [2025-03-03 01:12:14] Production.INFO: call_cost end [2025-03-03 01:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:12:14] Production.INFO: ==25039== Releasing lock... [2025-03-03 01:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:12:16] Production.INFO: count ==409 [2025-03-03 01:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595016', 'tblTempUsageDetail_20' ) start [2025-03-03 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595016', 'tblTempUsageDetail_20' ) end [2025-03-03 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595016', 'tblTempVendorCDR_20' ) start [2025-03-03 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595016', 'tblTempVendorCDR_20' ) end [2025-03-03 01:12:17] Production.INFO: ProcessCDR(1,14595016,1,1,2) [2025-03-03 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595016', 'tblTempUsageDetail_20' ) start [2025-03-03 01:12:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595016', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:12:24] Production.INFO: ==25047== Releasing lock... [2025-03-03 01:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:12:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:13:01] Production.INFO: ==25103== Lock acquired, processing the job... [2025-03-03 06:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:13:01] Production.INFO: neon service started [2025-03-03 06:13:01] Production.INFO: neon service started [2025-03-03 06:13:01] Production.INFO: ==25103== Releasing lock... [2025-03-03 06:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:13:01] Production.INFO: ==25105== Lock acquired, processing the job... [2025-03-03 01:13:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:13:02] Production.INFO: ==25105== Releasing lock... [2025-03-03 01:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:13:02] Production.INFO: ==25107== Lock acquired, processing the job... [2025-03-03 06:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:13:02] Production.INFO: ==25107== Releasing lock... [2025-03-03 06:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:13:03] Production.INFO: ==25109== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:13:03] Production.INFO: ==25114== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:13:03] Production.INFO: ==25111== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:13:03] Production.INFO: ==25116== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:13:03] Production.INFO: Account Balance Start. [2025-03-03 01:13:03] Production.INFO: CreateAllLog Start [2025-03-03 01:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:13:03] Production.INFO: 117 [2025-03-03 01:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: ==25118== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:13:03] Production.INFO: ==25120== Lock acquired, processing the job... [2025-03-03 01:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:13:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: ==25111== Releasing lock... [2025-03-03 01:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:13:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:13:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: Date 2025-02-13 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: Date 2025-02-14 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:13:03] Production.INFO: Date 2025-02-15 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: Date 2025-02-16 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:03] Production.INFO: count ==13 [2025-03-03 01:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:13:03] Production.INFO: count ==21 [2025-03-03 01:13:03] Production.ERROR: done [2025-03-03 01:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595020') start [2025-03-03 01:13:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:13:03] Production.INFO: Date 2025-02-17 [2025-03-03 01:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.ERROR: done [2025-03-03 01:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595020') end [2025-03-03 01:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:13:04] Production.INFO: 1 [2025-03-03 01:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: ==25120== Releasing lock... [2025-03-03 01:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:13:04] Production.INFO: Total Charge 0 [2025-03-03 01:13:04] Production.INFO: CreateAllLog End [2025-03-03 01:13:04] Production.INFO: Account Balance End. [2025-03-03 01:13:04] Production.ERROR: CronJobId end 12 [2025-03-03 01:13:04] Production.INFO: ==25116== Releasing lock... [2025-03-03 01:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:13:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:13:11] Production.ERROR: CronJobId end10 [2025-03-03 01:13:11] Production.INFO: ==25114== Releasing lock... [2025-03-03 01:13:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:13:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:13:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:13:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:13:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:13:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:13:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:13:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:13:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:13:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:13:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:13:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:13:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:13:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:13:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:13:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:13:14] Production.INFO: call_cost start [2025-03-03 01:13:14] Production.INFO: call_cost end [2025-03-03 01:13:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:13:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:13:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:13:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:13:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:13:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:13:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:13:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:13:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:13:14] Production.INFO: ==25109== Releasing lock... [2025-03-03 01:13:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:13:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:13:16] Production.INFO: count ==409 [2025-03-03 01:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595021', 'tblTempUsageDetail_20' ) start [2025-03-03 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595021', 'tblTempUsageDetail_20' ) end [2025-03-03 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595021', 'tblTempVendorCDR_20' ) start [2025-03-03 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595021', 'tblTempVendorCDR_20' ) end [2025-03-03 01:13:16] Production.INFO: ProcessCDR(1,14595021,1,1,2) [2025-03-03 01:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595021', 'tblTempUsageDetail_20' ) start [2025-03-03 01:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595021', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:13:24] Production.INFO: ==25118== Releasing lock... [2025-03-03 01:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:13:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:14:01] Production.INFO: ==25190== Lock acquired, processing the job... [2025-03-03 06:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:14:01] Production.INFO: neon service started [2025-03-03 06:14:02] Production.INFO: neon service started [2025-03-03 06:14:02] Production.INFO: ==25190== Releasing lock... [2025-03-03 06:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:14:02] Production.INFO: ==25192== Lock acquired, processing the job... [2025-03-03 01:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:14:02] Production.INFO: ==25192== Releasing lock... [2025-03-03 01:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:14:02] Production.INFO: ==25194== Lock acquired, processing the job... [2025-03-03 06:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:14:02] Production.INFO: ==25194== Releasing lock... [2025-03-03 06:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:14:03] Production.INFO: ==25199== Lock acquired, processing the job... [2025-03-03 01:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:14:03] Production.INFO: ==25201== Lock acquired, processing the job... [2025-03-03 01:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:14:03] Production.INFO: ==25197== Lock acquired, processing the job... [2025-03-03 01:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:14:03] Production.INFO: ==25205== Lock acquired, processing the job... [2025-03-03 01:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:14:04] Production.INFO: ==25203== Lock acquired, processing the job... [2025-03-03 01:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:14:04] Production.INFO: ==25199== Releasing lock... [2025-03-03 01:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:14:04] Production.INFO: ==25207== Lock acquired, processing the job... [2025-03-03 01:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:14:04] Production.INFO: Account Balance Start. [2025-03-03 01:14:04] Production.INFO: CreateAllLog Start [2025-03-03 01:14:04] Production.INFO: 117 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:14:04] Production.INFO: count ==13 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:14:04] Production.INFO: count ==21 [2025-03-03 01:14:04] Production.ERROR: done [2025-03-03 01:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595025') start [2025-03-03 01:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.ERROR: done [2025-03-03 01:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595025') end [2025-03-03 01:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:14:04] Production.INFO: 1 [2025-03-03 01:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:14:04] Production.INFO: ==25207== Releasing lock... [2025-03-03 01:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:14:05] Production.INFO: Total Charge 0 [2025-03-03 01:14:05] Production.INFO: CreateAllLog End [2025-03-03 01:14:05] Production.INFO: Account Balance End. [2025-03-03 01:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:14:05] Production.INFO: ==25203== Releasing lock... [2025-03-03 01:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:14:13] Production.ERROR: CronJobId end10 [2025-03-03 01:14:13] Production.INFO: ==25201== Releasing lock... [2025-03-03 01:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:14:15] Production.INFO: call_cost start [2025-03-03 01:14:15] Production.INFO: call_cost end [2025-03-03 01:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:14:15] Production.INFO: ==25197== Releasing lock... [2025-03-03 01:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:14:16] Production.INFO: count ==409 [2025-03-03 01:14:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595026', 'tblTempUsageDetail_20' ) start [2025-03-03 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595026', 'tblTempUsageDetail_20' ) end [2025-03-03 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595026', 'tblTempVendorCDR_20' ) start [2025-03-03 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595026', 'tblTempVendorCDR_20' ) end [2025-03-03 01:14:16] Production.INFO: ProcessCDR(1,14595026,1,1,2) [2025-03-03 01:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595026', 'tblTempUsageDetail_20' ) start [2025-03-03 01:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595026', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:14:24] Production.INFO: ==25205== Releasing lock... [2025-03-03 01:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:15:01] Production.INFO: ==25264== Lock acquired, processing the job... [2025-03-03 06:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:15:01] Production.INFO: neon service started [2025-03-03 06:15:01] Production.INFO: neon service started [2025-03-03 06:15:01] Production.INFO: ==25264== Releasing lock... [2025-03-03 06:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:15:01] Production.INFO: ==25266== Lock acquired, processing the job... [2025-03-03 01:15:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:15:02] Production.INFO: ==25266== Releasing lock... [2025-03-03 01:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:15:02] Production.INFO: ==25268== Lock acquired, processing the job... [2025-03-03 06:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:15:02] Production.INFO: ==25268== Releasing lock... [2025-03-03 06:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:15:03] Production.INFO: ==25274== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:15:03] Production.INFO: ==25278== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:15:03] Production.INFO: ==25270== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:15:03] Production.INFO: ==25272== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:15:03] Production.INFO: ==25280== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:15:03] Production.INFO: ==25276== Lock acquired, processing the job... [2025-03-03 01:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:15:03] Production.ERROR: done [2025-03-03 01:15:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:15:03] Production.INFO: Account Balance Start. [2025-03-03 01:15:03] Production.INFO: CreateAllLog Start [2025-03-03 01:15:03] Production.INFO: 117 [2025-03-03 01:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:15:03] Production.ERROR: done [2025-03-03 01:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:03] Production.INFO: count ==13 [2025-03-03 01:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:15:03] Production.INFO: count ==21 [2025-03-03 01:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595030') start [2025-03-03 01:15:04] Production.INFO: ==25272== Releasing lock... [2025-03-03 01:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595030') end [2025-03-03 01:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:15:04] Production.INFO: 1 [2025-03-03 01:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: ==25280== Releasing lock... [2025-03-03 01:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:15:04] Production.INFO: Total Charge 0 [2025-03-03 01:15:04] Production.INFO: CreateAllLog End [2025-03-03 01:15:04] Production.INFO: Account Balance End. [2025-03-03 01:15:04] Production.ERROR: CronJobId end 12 [2025-03-03 01:15:04] Production.INFO: ==25276== Releasing lock... [2025-03-03 01:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:15:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:15:11] Production.ERROR: CronJobId end10 [2025-03-03 01:15:11] Production.INFO: ==25274== Releasing lock... [2025-03-03 01:15:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:15:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:15:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:15:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:15:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:15:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:15:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:15:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:15:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:15:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:15:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:15:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:15:14] Production.INFO: call_cost start [2025-03-03 01:15:14] Production.INFO: call_cost end [2025-03-03 01:15:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:15:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:15:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:15:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:15:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:15:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:15:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:15:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:15:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:15:14] Production.INFO: ==25270== Releasing lock... [2025-03-03 01:15:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:15:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:15:16] Production.INFO: count ==409 [2025-03-03 01:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595031', 'tblTempUsageDetail_20' ) start [2025-03-03 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595031', 'tblTempUsageDetail_20' ) end [2025-03-03 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595031', 'tblTempVendorCDR_20' ) start [2025-03-03 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595031', 'tblTempVendorCDR_20' ) end [2025-03-03 01:15:16] Production.INFO: ProcessCDR(1,14595031,1,1,2) [2025-03-03 01:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595031', 'tblTempUsageDetail_20' ) start [2025-03-03 01:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595031', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:15:24] Production.INFO: ==25278== Releasing lock... [2025-03-03 01:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:16:01] Production.INFO: ==25349== Lock acquired, processing the job... [2025-03-03 06:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:16:02] Production.INFO: neon service started [2025-03-03 06:16:02] Production.INFO: neon service started [2025-03-03 06:16:02] Production.INFO: ==25349== Releasing lock... [2025-03-03 06:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:16:02] Production.INFO: ==25353== Lock acquired, processing the job... [2025-03-03 06:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:16:02] Production.INFO: ==25353== Releasing lock... [2025-03-03 06:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:16:02] Production.INFO: ==25351== Lock acquired, processing the job... [2025-03-03 01:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:16:02] Production.INFO: ==25351== Releasing lock... [2025-03-03 01:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:16:03] Production.INFO: ==25364== Lock acquired, processing the job... [2025-03-03 01:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:16:03] Production.INFO: ==25362== Lock acquired, processing the job... [2025-03-03 01:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:16:03] Production.INFO: Account Balance Start. [2025-03-03 01:16:03] Production.INFO: CreateAllLog Start [2025-03-03 01:16:03] Production.INFO: 117 [2025-03-03 01:16:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: ==25356== Lock acquired, processing the job... [2025-03-03 01:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: ==25360== Lock acquired, processing the job... [2025-03-03 01:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:16:04] Production.INFO: ==25358== Lock acquired, processing the job... [2025-03-03 01:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: ==25366== Lock acquired, processing the job... [2025-03-03 01:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:16:04] Production.ERROR: done [2025-03-03 01:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:16:04] Production.INFO: count ==13 [2025-03-03 01:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:16:04] Production.INFO: count ==21 [2025-03-03 01:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595035') start [2025-03-03 01:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: ==25358== Releasing lock... [2025-03-03 01:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.ERROR: done [2025-03-03 01:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595035') end [2025-03-03 01:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:16:04] Production.INFO: 1 [2025-03-03 01:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:16:04] Production.INFO: ==25366== Releasing lock... [2025-03-03 01:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:16:05] Production.INFO: Total Charge 0 [2025-03-03 01:16:05] Production.INFO: CreateAllLog End [2025-03-03 01:16:05] Production.INFO: Account Balance End. [2025-03-03 01:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:16:05] Production.INFO: ==25362== Releasing lock... [2025-03-03 01:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:16:12] Production.ERROR: CronJobId end10 [2025-03-03 01:16:12] Production.INFO: ==25360== Releasing lock... [2025-03-03 01:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:16:14] Production.INFO: call_cost start [2025-03-03 01:16:14] Production.INFO: call_cost end [2025-03-03 01:16:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:16:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:16:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:16:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:16:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:16:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:16:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:16:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:16:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:16:14] Production.INFO: ==25356== Releasing lock... [2025-03-03 01:16:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:16:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:16:16] Production.INFO: count ==409 [2025-03-03 01:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595036', 'tblTempUsageDetail_20' ) start [2025-03-03 01:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595036', 'tblTempUsageDetail_20' ) end [2025-03-03 01:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595036', 'tblTempVendorCDR_20' ) start [2025-03-03 01:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595036', 'tblTempVendorCDR_20' ) end [2025-03-03 01:16:16] Production.INFO: ProcessCDR(1,14595036,1,1,2) [2025-03-03 01:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595036', 'tblTempUsageDetail_20' ) start [2025-03-03 01:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595036', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:16:24] Production.INFO: ==25364== Releasing lock... [2025-03-03 01:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:17:01] Production.INFO: ==25434== Lock acquired, processing the job... [2025-03-03 06:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:17:01] Production.INFO: neon service started [2025-03-03 06:17:01] Production.INFO: neon service started [2025-03-03 06:17:01] Production.INFO: ==25434== Releasing lock... [2025-03-03 06:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:17:01] Production.INFO: ==25436== Lock acquired, processing the job... [2025-03-03 01:17:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:17:02] Production.INFO: ==25436== Releasing lock... [2025-03-03 01:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:17:02] Production.INFO: ==25438== Lock acquired, processing the job... [2025-03-03 06:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:17:02] Production.INFO: ==25438== Releasing lock... [2025-03-03 06:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:17:03] Production.INFO: ==25441== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:17:03] Production.INFO: ==25449== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:17:03] Production.INFO: ==25447== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:17:03] Production.INFO: ==25443== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:17:03] Production.INFO: ==25445== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:17:03] Production.INFO: Account Balance Start. [2025-03-03 01:17:03] Production.INFO: CreateAllLog Start [2025-03-03 01:17:03] Production.INFO: 117 [2025-03-03 01:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:17:03] Production.INFO: ==25451== Lock acquired, processing the job... [2025-03-03 01:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:17:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:17:03] Production.INFO: ==25443== Releasing lock... [2025-03-03 01:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:17:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:17:03] Production.INFO: count ==13 [2025-03-03 01:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:17:03] Production.INFO: count ==21 [2025-03-03 01:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595040') start [2025-03-03 01:17:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.ERROR: done [2025-03-03 01:17:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:17:03] Production.INFO: Date 2025-02-13 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.INFO: Date 2025-02-14 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595040') end [2025-03-03 01:17:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:17:03] Production.INFO: 1 [2025-03-03 01:17:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:17:03] Production.INFO: Date 2025-02-15 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:03] Production.INFO: ==25451== Releasing lock... [2025-03-03 01:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:17:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:17:03] Production.ERROR: done [2025-03-03 01:17:03] Production.INFO: Date 2025-02-16 [2025-03-03 01:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:17:04] Production.INFO: Total Charge 0 [2025-03-03 01:17:04] Production.INFO: CreateAllLog End [2025-03-03 01:17:04] Production.INFO: Account Balance End. [2025-03-03 01:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:17:05] Production.INFO: ==25447== Releasing lock... [2025-03-03 01:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:17:12] Production.ERROR: CronJobId end10 [2025-03-03 01:17:12] Production.INFO: ==25445== Releasing lock... [2025-03-03 01:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:17:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:17:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:17:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:17:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:17:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:17:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:17:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:17:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:17:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:17:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:17:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:17:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:17:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:17:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:17:14] Production.INFO: call_cost start [2025-03-03 01:17:14] Production.INFO: call_cost end [2025-03-03 01:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:17:14] Production.INFO: ==25441== Releasing lock... [2025-03-03 01:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:17:16] Production.INFO: count ==409 [2025-03-03 01:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595041', 'tblTempUsageDetail_20' ) start [2025-03-03 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595041', 'tblTempUsageDetail_20' ) end [2025-03-03 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595041', 'tblTempVendorCDR_20' ) start [2025-03-03 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595041', 'tblTempVendorCDR_20' ) end [2025-03-03 01:17:16] Production.INFO: ProcessCDR(1,14595041,1,1,2) [2025-03-03 01:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595041', 'tblTempUsageDetail_20' ) start [2025-03-03 01:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595041', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:17:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:17:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:17:23] Production.INFO: ==25449== Releasing lock... [2025-03-03 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:18:01] Production.INFO: ==25513== Lock acquired, processing the job... [2025-03-03 06:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:18:01] Production.INFO: neon service started [2025-03-03 06:18:01] Production.INFO: neon service started [2025-03-03 06:18:01] Production.INFO: ==25513== Releasing lock... [2025-03-03 06:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:18:02] Production.INFO: ==25515== Lock acquired, processing the job... [2025-03-03 01:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:18:02] Production.INFO: ==25515== Releasing lock... [2025-03-03 01:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:18:02] Production.INFO: ==25517== Lock acquired, processing the job... [2025-03-03 06:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:18:02] Production.INFO: ==25517== Releasing lock... [2025-03-03 06:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:18:03] Production.INFO: ==25520== Lock acquired, processing the job... [2025-03-03 01:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:18:03] Production.INFO: ==25522== Lock acquired, processing the job... [2025-03-03 01:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:18:03] Production.INFO: ==25524== Lock acquired, processing the job... [2025-03-03 01:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:18:03] Production.INFO: ==25526== Lock acquired, processing the job... [2025-03-03 01:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:18:03] Production.INFO: ==25528== Lock acquired, processing the job... [2025-03-03 01:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:18:03] Production.INFO: ==25531== Lock acquired, processing the job... [2025-03-03 01:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:18:03] Production.INFO: Account Balance Start. [2025-03-03 01:18:03] Production.INFO: CreateAllLog Start [2025-03-03 01:18:03] Production.INFO: 117 [2025-03-03 01:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:18:04] Production.INFO: count ==13 [2025-03-03 01:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:18:04] Production.INFO: count ==21 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595045') start [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: ==25522== Releasing lock... [2025-03-03 01:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595045') end [2025-03-03 01:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:18:04] Production.INFO: 1 [2025-03-03 01:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.ERROR: done [2025-03-03 01:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: ==25531== Releasing lock... [2025-03-03 01:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:18:04] Production.ERROR: done [2025-03-03 01:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:18:05] Production.INFO: Total Charge 0 [2025-03-03 01:18:05] Production.INFO: CreateAllLog End [2025-03-03 01:18:05] Production.INFO: Account Balance End. [2025-03-03 01:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:18:05] Production.INFO: ==25526== Releasing lock... [2025-03-03 01:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:18:12] Production.ERROR: CronJobId end10 [2025-03-03 01:18:12] Production.INFO: ==25524== Releasing lock... [2025-03-03 01:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:18:15] Production.INFO: call_cost start [2025-03-03 01:18:15] Production.INFO: call_cost end [2025-03-03 01:18:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:18:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:18:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:18:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:18:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:18:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:18:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:18:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:18:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:18:15] Production.INFO: ==25520== Releasing lock... [2025-03-03 01:18:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:18:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:18:16] Production.INFO: count ==409 [2025-03-03 01:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595046', 'tblTempUsageDetail_20' ) start [2025-03-03 01:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595046', 'tblTempUsageDetail_20' ) end [2025-03-03 01:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595046', 'tblTempVendorCDR_20' ) start [2025-03-03 01:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595046', 'tblTempVendorCDR_20' ) end [2025-03-03 01:18:16] Production.INFO: ProcessCDR(1,14595046,1,1,2) [2025-03-03 01:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595046', 'tblTempUsageDetail_20' ) start [2025-03-03 01:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595046', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:18:24] Production.INFO: ==25528== Releasing lock... [2025-03-03 01:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:19:01] Production.INFO: ==25602== Lock acquired, processing the job... [2025-03-03 06:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:19:01] Production.INFO: neon service started [2025-03-03 06:19:01] Production.INFO: neon service started [2025-03-03 06:19:01] Production.INFO: ==25602== Releasing lock... [2025-03-03 06:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:19:01] Production.INFO: ==25606== Lock acquired, processing the job... [2025-03-03 06:19:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:19:01] Production.INFO: ==25606== Releasing lock... [2025-03-03 06:19:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:19:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:19:01] Production.INFO: ==25604== Lock acquired, processing the job... [2025-03-03 01:19:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:19:02] Production.INFO: ==25604== Releasing lock... [2025-03-03 01:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:19:03] Production.INFO: ==25613== Lock acquired, processing the job... [2025-03-03 01:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:19:03] Production.INFO: ==25619== Lock acquired, processing the job... [2025-03-03 01:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:19:03] Production.INFO: ==25609== Lock acquired, processing the job... [2025-03-03 01:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:19:03] Production.INFO: ==25611== Lock acquired, processing the job... [2025-03-03 01:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:19:03] Production.INFO: count ==13 [2025-03-03 01:19:03] Production.INFO: ==25617== Lock acquired, processing the job... [2025-03-03 01:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:19:03] Production.INFO: ==25615== Lock acquired, processing the job... [2025-03-03 01:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:19:03] Production.INFO: count ==21 [2025-03-03 01:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595047') start [2025-03-03 01:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:19:03] Production.INFO: Account Balance Start. [2025-03-03 01:19:03] Production.INFO: CreateAllLog Start [2025-03-03 01:19:03] Production.INFO: 117 [2025-03-03 01:19:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595047') end [2025-03-03 01:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:19:03] Production.INFO: 1 [2025-03-03 01:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:19:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:03] Production.INFO: ==25619== Releasing lock... [2025-03-03 01:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:19:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.ERROR: done [2025-03-03 01:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:19:04] Production.INFO: ==25611== Releasing lock... [2025-03-03 01:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.ERROR: done [2025-03-03 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:19:05] Production.INFO: Total Charge 0 [2025-03-03 01:19:05] Production.INFO: CreateAllLog End [2025-03-03 01:19:05] Production.INFO: Account Balance End. [2025-03-03 01:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:19:05] Production.INFO: ==25615== Releasing lock... [2025-03-03 01:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:19:12] Production.ERROR: CronJobId end10 [2025-03-03 01:19:12] Production.INFO: ==25613== Releasing lock... [2025-03-03 01:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:19:15] Production.INFO: call_cost start [2025-03-03 01:19:15] Production.INFO: call_cost end [2025-03-03 01:19:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:19:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:19:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:19:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:19:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:19:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:19:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:19:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:19:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:19:15] Production.INFO: ==25609== Releasing lock... [2025-03-03 01:19:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:19:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:19:16] Production.INFO: count ==409 [2025-03-03 01:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595051', 'tblTempUsageDetail_20' ) start [2025-03-03 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595051', 'tblTempUsageDetail_20' ) end [2025-03-03 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595051', 'tblTempVendorCDR_20' ) start [2025-03-03 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595051', 'tblTempVendorCDR_20' ) end [2025-03-03 01:19:16] Production.INFO: ProcessCDR(1,14595051,1,1,2) [2025-03-03 01:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595051', 'tblTempUsageDetail_20' ) start [2025-03-03 01:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595051', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:19:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:19:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:19:23] Production.INFO: ==25617== Releasing lock... [2025-03-03 01:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:19:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:20:01] Production.INFO: ==25685== Lock acquired, processing the job... [2025-03-03 06:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:20:01] Production.INFO: neon service started [2025-03-03 06:20:01] Production.INFO: neon service started [2025-03-03 06:20:01] Production.INFO: ==25685== Releasing lock... [2025-03-03 06:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:20:02] Production.INFO: ==25687== Lock acquired, processing the job... [2025-03-03 01:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:20:02] Production.INFO: ==25687== Releasing lock... [2025-03-03 01:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:20:02] Production.INFO: ==25689== Lock acquired, processing the job... [2025-03-03 06:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:20:02] Production.INFO: ==25689== Releasing lock... [2025-03-03 06:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:20:03] Production.INFO: ==25692== Lock acquired, processing the job... [2025-03-03 01:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 01:20:03] Production.INFO: ==25698== Lock acquired, processing the job... [2025-03-03 01:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 01:20:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:20:03] Production.ERROR: CronJob PID - 25698 [2025-03-03 01:20:03] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 01:20:03] Production.ERROR: CronJob ID - 10 [2025-03-03 01:20:03] Production.ERROR: CronJob Last Run Time 2025-03-03 01:20:00 [2025-03-03 01:20:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:20:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 01:20:03] Production.INFO: ==25692== Releasing lock... [2025-03-03 01:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 01:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:20:03] Production.INFO: ==25694== Lock acquired, processing the job... [2025-03-03 01:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:20:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:20:03] Production.INFO: ==25702== Lock acquired, processing the job... [2025-03-03 01:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:20:04] Production.INFO: ==25696== Lock acquired, processing the job... [2025-03-03 01:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:20:04] Production.INFO: ==25700== Lock acquired, processing the job... [2025-03-03 01:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:20:04] Production.INFO: ==25706== Lock acquired, processing the job... [2025-03-03 01:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:20:04] Production.INFO: ==25704== Lock acquired, processing the job... [2025-03-03 01:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 01:20:04] Production.INFO: Account Balance Start. [2025-03-03 01:20:04] Production.INFO: CreateAllLog Start [2025-03-03 01:20:04] Production.INFO: 117 [2025-03-03 01:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:20:04] Production.INFO: count ==13 [2025-03-03 01:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:20:04] Production.INFO: count ==21 [2025-03-03 01:20:04] Production.ERROR: done [2025-03-03 01:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595055') start [2025-03-03 01:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:04] Production.INFO: ==25696== Releasing lock... [2025-03-03 01:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:04] Production.ERROR: done [2025-03-03 01:20:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:20:04] Production.ERROR: done [2025-03-03 01:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595055') end [2025-03-03 01:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:20:04] Production.INFO: 1 [2025-03-03 01:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:04] Production.INFO: ==25706== Releasing lock... [2025-03-03 01:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 01:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595057', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 01:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:20:05] Production.INFO: Total Charge 0 [2025-03-03 01:20:05] Production.INFO: CreateAllLog End [2025-03-03 01:20:05] Production.INFO: Account Balance End. [2025-03-03 01:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:20:05] Production.INFO: ==25700== Releasing lock... [2025-03-03 01:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595057', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 01:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 01:20:09] Production.INFO: ProcessCDR(1,14595057,1,1,2) [2025-03-03 01:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595057,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595057,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 01:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 01:20:09] Production.INFO: ==25704== Releasing lock... [2025-03-03 01:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 01:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:20:14] Production.ERROR: CronJobId end10 [2025-03-03 01:20:14] Production.INFO: ==25698== Releasing lock... [2025-03-03 01:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:20:16] Production.INFO: count ==409 [2025-03-03 01:20:17] Production.INFO: call_cost start [2025-03-03 01:20:17] Production.INFO: call_cost end [2025-03-03 01:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595056', 'tblTempUsageDetail_20' ) start [2025-03-03 01:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595056', 'tblTempUsageDetail_20' ) end [2025-03-03 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595056', 'tblTempVendorCDR_20' ) start [2025-03-03 01:20:17] Production.INFO: ==25694== Releasing lock... [2025-03-03 01:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595056', 'tblTempVendorCDR_20' ) end [2025-03-03 01:20:17] Production.INFO: ProcessCDR(1,14595056,1,1,2) [2025-03-03 01:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595056', 'tblTempUsageDetail_20' ) start [2025-03-03 01:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595056', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:20:25] Production.INFO: ==25702== Releasing lock... [2025-03-03 01:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:21:02] Production.INFO: ==25779== Lock acquired, processing the job... [2025-03-03 06:21:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:21:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:21:02] Production.INFO: neon service started [2025-03-03 06:21:02] Production.INFO: neon service started [2025-03-03 06:21:02] Production.INFO: ==25779== Releasing lock... [2025-03-03 06:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:21:02] Production.INFO: ==25781== Lock acquired, processing the job... [2025-03-03 01:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:21:02] Production.INFO: ==25781== Releasing lock... [2025-03-03 01:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:21:03] Production.INFO: ==25783== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:21:03] Production.INFO: ==25783== Releasing lock... [2025-03-03 06:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:21:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:21:03] Production.INFO: ==25785== Lock acquired, processing the job... [2025-03-03 01:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:21:03] Production.INFO: ==25795== Lock acquired, processing the job... [2025-03-03 01:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:21:04] Production.INFO: count ==13 [2025-03-03 01:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:21:04] Production.INFO: count ==21 [2025-03-03 01:21:04] Production.INFO: ==25789== Lock acquired, processing the job... [2025-03-03 01:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595059') start [2025-03-03 01:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595059') end [2025-03-03 01:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:21:04] Production.INFO: 1 [2025-03-03 01:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:21:04] Production.INFO: ==25795== Releasing lock... [2025-03-03 01:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:21:04] Production.INFO: ==25787== Lock acquired, processing the job... [2025-03-03 01:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:21:04] Production.INFO: ==25791== Lock acquired, processing the job... [2025-03-03 01:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:21:04] Production.INFO: ==25793== Lock acquired, processing the job... [2025-03-03 01:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:21:04] Production.INFO: Account Balance Start. [2025-03-03 01:21:04] Production.INFO: CreateAllLog Start [2025-03-03 01:21:04] Production.INFO: 117 [2025-03-03 01:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:04] Production.INFO: ==25787== Releasing lock... [2025-03-03 01:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:04] Production.ERROR: done [2025-03-03 01:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.ERROR: done [2025-03-03 01:21:05] Production.INFO: Date 2025-02-14 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:21:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:21:05] Production.INFO: Total Charge 0 [2025-03-03 01:21:05] Production.INFO: CreateAllLog End [2025-03-03 01:21:05] Production.INFO: Account Balance End. [2025-03-03 01:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:21:05] Production.INFO: ==25791== Releasing lock... [2025-03-03 01:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:21:12] Production.ERROR: CronJobId end10 [2025-03-03 01:21:12] Production.INFO: ==25789== Releasing lock... [2025-03-03 01:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:21:14] Production.INFO: call_cost start [2025-03-03 01:21:14] Production.INFO: call_cost end [2025-03-03 01:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:21:14] Production.INFO: ==25785== Releasing lock... [2025-03-03 01:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:21:17] Production.INFO: count ==409 [2025-03-03 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595062', 'tblTempUsageDetail_20' ) start [2025-03-03 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595062', 'tblTempUsageDetail_20' ) end [2025-03-03 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595062', 'tblTempVendorCDR_20' ) start [2025-03-03 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595062', 'tblTempVendorCDR_20' ) end [2025-03-03 01:21:17] Production.INFO: ProcessCDR(1,14595062,1,1,2) [2025-03-03 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595062', 'tblTempUsageDetail_20' ) start [2025-03-03 01:21:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595062', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:21:24] Production.INFO: ==25793== Releasing lock... [2025-03-03 01:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:21:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:22:01] Production.INFO: ==25916== Lock acquired, processing the job... [2025-03-03 06:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:22:01] Production.INFO: neon service started [2025-03-03 06:22:01] Production.INFO: neon service started [2025-03-03 06:22:01] Production.INFO: ==25916== Releasing lock... [2025-03-03 06:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:22:02] Production.INFO: ==25918== Lock acquired, processing the job... [2025-03-03 01:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:22:02] Production.INFO: ==25920== Lock acquired, processing the job... [2025-03-03 06:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:22:02] Production.INFO: ==25920== Releasing lock... [2025-03-03 06:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:22:02] Production.INFO: ==25918== Releasing lock... [2025-03-03 01:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:22:03] Production.INFO: ==25923== Lock acquired, processing the job... [2025-03-03 01:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:22:03] Production.INFO: ==25927== Lock acquired, processing the job... [2025-03-03 01:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:22:03] Production.INFO: ==25931== Lock acquired, processing the job... [2025-03-03 01:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:22:03] Production.INFO: ==25925== Lock acquired, processing the job... [2025-03-03 01:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:22:04] Production.INFO: ==25929== Lock acquired, processing the job... [2025-03-03 01:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:22:04] Production.INFO: ==25933== Lock acquired, processing the job... [2025-03-03 01:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:22:04] Production.ERROR: done [2025-03-03 01:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:22:04] Production.INFO: Account Balance Start. [2025-03-03 01:22:04] Production.INFO: CreateAllLog Start [2025-03-03 01:22:04] Production.INFO: 117 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: ==25925== Releasing lock... [2025-03-03 01:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:22:04] Production.ERROR: done [2025-03-03 01:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: count ==13 [2025-03-03 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:22:04] Production.INFO: count ==21 [2025-03-03 01:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595066') start [2025-03-03 01:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595066') end [2025-03-03 01:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:22:04] Production.INFO: 1 [2025-03-03 01:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: ==25933== Releasing lock... [2025-03-03 01:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:22:05] Production.INFO: Total Charge 0 [2025-03-03 01:22:05] Production.INFO: CreateAllLog End [2025-03-03 01:22:05] Production.INFO: Account Balance End. [2025-03-03 01:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:22:05] Production.INFO: ==25929== Releasing lock... [2025-03-03 01:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:22:11] Production.ERROR: CronJobId end10 [2025-03-03 01:22:11] Production.INFO: ==25927== Releasing lock... [2025-03-03 01:22:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:22:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:22:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:22:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:22:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:22:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:22:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:22:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:22:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:22:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:22:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:22:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:22:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:22:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:22:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:22:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:22:14] Production.INFO: call_cost start [2025-03-03 01:22:14] Production.INFO: call_cost end [2025-03-03 01:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:22:14] Production.INFO: ==25923== Releasing lock... [2025-03-03 01:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:22:16] Production.INFO: count ==409 [2025-03-03 01:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595067', 'tblTempUsageDetail_20' ) start [2025-03-03 01:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595067', 'tblTempUsageDetail_20' ) end [2025-03-03 01:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595067', 'tblTempVendorCDR_20' ) start [2025-03-03 01:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595067', 'tblTempVendorCDR_20' ) end [2025-03-03 01:22:16] Production.INFO: ProcessCDR(1,14595067,1,1,2) [2025-03-03 01:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595067', 'tblTempUsageDetail_20' ) start [2025-03-03 01:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595067', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:22:24] Production.INFO: ==25931== Releasing lock... [2025-03-03 01:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:23:02] Production.INFO: ==26008== Lock acquired, processing the job... [2025-03-03 06:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:23:02] Production.INFO: neon service started [2025-03-03 06:23:02] Production.INFO: neon service started [2025-03-03 06:23:02] Production.INFO: ==26008== Releasing lock... [2025-03-03 06:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:23:02] Production.INFO: ==26013== Lock acquired, processing the job... [2025-03-03 06:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:23:02] Production.INFO: ==26013== Releasing lock... [2025-03-03 06:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:23:02] Production.INFO: ==26011== Lock acquired, processing the job... [2025-03-03 01:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:23:03] Production.INFO: ==26011== Releasing lock... [2025-03-03 01:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:23:03] Production.INFO: ==26017== Lock acquired, processing the job... [2025-03-03 01:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:23:03] Production.INFO: ==26019== Lock acquired, processing the job... [2025-03-03 01:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:23:04] Production.INFO: ==26015== Lock acquired, processing the job... [2025-03-03 01:23:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:23:04] Production.INFO: ==26021== Lock acquired, processing the job... [2025-03-03 01:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:23:04] Production.INFO: ==26023== Lock acquired, processing the job... [2025-03-03 01:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:23:04] Production.INFO: ==26017== Releasing lock... [2025-03-03 01:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:23:04] Production.INFO: Account Balance Start. [2025-03-03 01:23:04] Production.INFO: CreateAllLog Start [2025-03-03 01:23:04] Production.INFO: 117 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: ==26025== Lock acquired, processing the job... [2025-03-03 01:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:23:04] Production.INFO: count ==13 [2025-03-03 01:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: count ==21 [2025-03-03 01:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595071') start [2025-03-03 01:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595071') end [2025-03-03 01:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:23:04] Production.INFO: 1 [2025-03-03 01:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:23:04] Production.ERROR: done [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: ==26025== Releasing lock... [2025-03-03 01:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:23:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:23:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.ERROR: done [2025-03-03 01:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:23:05] Production.INFO: Total Charge 0 [2025-03-03 01:23:05] Production.INFO: CreateAllLog End [2025-03-03 01:23:05] Production.INFO: Account Balance End. [2025-03-03 01:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:23:05] Production.INFO: ==26021== Releasing lock... [2025-03-03 01:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:23:12] Production.ERROR: CronJobId end10 [2025-03-03 01:23:12] Production.INFO: ==26019== Releasing lock... [2025-03-03 01:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:23:15] Production.INFO: call_cost start [2025-03-03 01:23:15] Production.INFO: call_cost end [2025-03-03 01:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:23:15] Production.INFO: ==26015== Releasing lock... [2025-03-03 01:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:23:17] Production.INFO: count ==409 [2025-03-03 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595072', 'tblTempUsageDetail_20' ) start [2025-03-03 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595072', 'tblTempUsageDetail_20' ) end [2025-03-03 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595072', 'tblTempVendorCDR_20' ) start [2025-03-03 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595072', 'tblTempVendorCDR_20' ) end [2025-03-03 01:23:17] Production.INFO: ProcessCDR(1,14595072,1,1,2) [2025-03-03 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595072', 'tblTempUsageDetail_20' ) start [2025-03-03 01:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595072', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:23:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:23:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:23:25] Production.INFO: ==26023== Releasing lock... [2025-03-03 01:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:23:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:24:01] Production.INFO: ==26095== Lock acquired, processing the job... [2025-03-03 06:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:24:01] Production.INFO: neon service started [2025-03-03 06:24:01] Production.INFO: neon service started [2025-03-03 06:24:01] Production.INFO: ==26095== Releasing lock... [2025-03-03 06:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:24:02] Production.INFO: ==26097== Lock acquired, processing the job... [2025-03-03 01:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:24:02] Production.INFO: ==26097== Releasing lock... [2025-03-03 01:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:24:02] Production.INFO: ==26099== Lock acquired, processing the job... [2025-03-03 06:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:24:02] Production.INFO: ==26099== Releasing lock... [2025-03-03 06:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:24:03] Production.INFO: ==26103== Lock acquired, processing the job... [2025-03-03 01:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:24:03] Production.INFO: ==26109== Lock acquired, processing the job... [2025-03-03 01:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:24:03] Production.INFO: ==26101== Lock acquired, processing the job... [2025-03-03 01:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:24:03] Production.INFO: ==26105== Lock acquired, processing the job... [2025-03-03 01:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:24:03] Production.INFO: ==26107== Lock acquired, processing the job... [2025-03-03 01:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:24:03] Production.INFO: ==26111== Lock acquired, processing the job... [2025-03-03 01:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:24:04] Production.INFO: Account Balance Start. [2025-03-03 01:24:04] Production.INFO: CreateAllLog Start [2025-03-03 01:24:04] Production.INFO: 117 [2025-03-03 01:24:04] Production.ERROR: done [2025-03-03 01:24:04] Production.INFO: ==26103== Releasing lock... [2025-03-03 01:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: count ==13 [2025-03-03 01:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:24:04] Production.INFO: count ==21 [2025-03-03 01:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595076') start [2025-03-03 01:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.ERROR: done [2025-03-03 01:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595076') end [2025-03-03 01:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:24:04] Production.INFO: 1 [2025-03-03 01:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: ==26111== Releasing lock... [2025-03-03 01:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:24:05] Production.INFO: Total Charge 0 [2025-03-03 01:24:05] Production.INFO: CreateAllLog End [2025-03-03 01:24:05] Production.INFO: Account Balance End. [2025-03-03 01:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:24:05] Production.INFO: ==26107== Releasing lock... [2025-03-03 01:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:24:12] Production.ERROR: CronJobId end10 [2025-03-03 01:24:12] Production.INFO: ==26105== Releasing lock... [2025-03-03 01:24:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:24:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:24:15] Production.INFO: call_cost start [2025-03-03 01:24:15] Production.INFO: call_cost end [2025-03-03 01:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:24:15] Production.INFO: ==26101== Releasing lock... [2025-03-03 01:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:24:16] Production.INFO: count ==409 [2025-03-03 01:24:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595077', 'tblTempUsageDetail_20' ) start [2025-03-03 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595077', 'tblTempUsageDetail_20' ) end [2025-03-03 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595077', 'tblTempVendorCDR_20' ) start [2025-03-03 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595077', 'tblTempVendorCDR_20' ) end [2025-03-03 01:24:16] Production.INFO: ProcessCDR(1,14595077,1,1,2) [2025-03-03 01:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595077', 'tblTempUsageDetail_20' ) start [2025-03-03 01:24:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595077', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:24:24] Production.INFO: ==26109== Releasing lock... [2025-03-03 01:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:25:02] Production.INFO: ==26174== Lock acquired, processing the job... [2025-03-03 06:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:25:02] Production.INFO: neon service started [2025-03-03 06:25:02] Production.INFO: neon service started [2025-03-03 06:25:02] Production.INFO: ==26174== Releasing lock... [2025-03-03 06:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:25:02] Production.INFO: ==26176== Lock acquired, processing the job... [2025-03-03 01:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:25:02] Production.INFO: ==26176== Releasing lock... [2025-03-03 01:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:25:02] Production.INFO: ==26178== Lock acquired, processing the job... [2025-03-03 06:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:25:03] Production.INFO: ==26178== Releasing lock... [2025-03-03 06:25:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:25:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:25:03] Production.INFO: ==26191== Lock acquired, processing the job... [2025-03-03 01:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:25:03] Production.INFO: ==26183== Lock acquired, processing the job... [2025-03-03 01:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:25:03] Production.INFO: ==26181== Lock acquired, processing the job... [2025-03-03 01:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:25:04] Production.INFO: count ==13 [2025-03-03 01:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:25:04] Production.INFO: count ==21 [2025-03-03 01:25:04] Production.INFO: ==26185== Lock acquired, processing the job... [2025-03-03 01:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595078') start [2025-03-03 01:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:25:04] Production.INFO: ==26187== Lock acquired, processing the job... [2025-03-03 01:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:25:04] Production.INFO: ==26189== Lock acquired, processing the job... [2025-03-03 01:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595078') end [2025-03-03 01:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:25:04] Production.INFO: 1 [2025-03-03 01:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:25:04] Production.INFO: ==26183== Releasing lock... [2025-03-03 01:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:25:04] Production.INFO: Account Balance Start. [2025-03-03 01:25:04] Production.INFO: CreateAllLog Start [2025-03-03 01:25:04] Production.INFO: 117 [2025-03-03 01:25:04] Production.INFO: ==26191== Releasing lock... [2025-03-03 01:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.ERROR: done [2025-03-03 01:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.ERROR: done [2025-03-03 01:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:25:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:25:05] Production.INFO: Total Charge 0 [2025-03-03 01:25:05] Production.INFO: CreateAllLog End [2025-03-03 01:25:05] Production.INFO: Account Balance End. [2025-03-03 01:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:25:05] Production.INFO: ==26187== Releasing lock... [2025-03-03 01:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:25:11] Production.ERROR: CronJobId end10 [2025-03-03 01:25:11] Production.INFO: ==26185== Releasing lock... [2025-03-03 01:25:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:25:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:25:14] Production.INFO: call_cost start [2025-03-03 01:25:14] Production.INFO: call_cost end [2025-03-03 01:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:25:14] Production.INFO: ==26181== Releasing lock... [2025-03-03 01:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:25:17] Production.INFO: count ==409 [2025-03-03 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595082', 'tblTempUsageDetail_20' ) start [2025-03-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595082', 'tblTempUsageDetail_20' ) end [2025-03-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595082', 'tblTempVendorCDR_20' ) start [2025-03-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595082', 'tblTempVendorCDR_20' ) end [2025-03-03 01:25:17] Production.INFO: ProcessCDR(1,14595082,1,1,2) [2025-03-03 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595082', 'tblTempUsageDetail_20' ) start [2025-03-03 01:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595082', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:25:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:25:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:25:25] Production.INFO: ==26189== Releasing lock... [2025-03-03 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:26:01] Production.INFO: ==26261== Lock acquired, processing the job... [2025-03-03 06:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:26:01] Production.INFO: neon service started [2025-03-03 06:26:01] Production.INFO: neon service started [2025-03-03 06:26:01] Production.INFO: ==26261== Releasing lock... [2025-03-03 06:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:26:01] Production.INFO: ==26265== Lock acquired, processing the job... [2025-03-03 06:26:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:26:02] Production.INFO: ==26265== Releasing lock... [2025-03-03 06:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:26:02] Production.INFO: ==26263== Lock acquired, processing the job... [2025-03-03 01:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:26:02] Production.INFO: ==26263== Releasing lock... [2025-03-03 01:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:26:03] Production.INFO: ==26268== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:26:03] Production.INFO: ==26270== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:26:03] Production.INFO: ==26272== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:26:03] Production.INFO: ==26270== Releasing lock... [2025-03-03 01:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:26:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:26:03] Production.INFO: ==26274== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:26:03] Production.INFO: ==26276== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:26:03] Production.INFO: Account Balance Start. [2025-03-03 01:26:03] Production.INFO: CreateAllLog Start [2025-03-03 01:26:03] Production.INFO: 117 [2025-03-03 01:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:26:03] Production.INFO: ==26278== Lock acquired, processing the job... [2025-03-03 01:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:26:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:26:04] Production.INFO: count ==13 [2025-03-03 01:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:26:04] Production.INFO: count ==21 [2025-03-03 01:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595086') start [2025-03-03 01:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595086') end [2025-03-03 01:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:26:04] Production.INFO: 1 [2025-03-03 01:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:26:04] Production.ERROR: done [2025-03-03 01:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:26:04] Production.INFO: ==26278== Releasing lock... [2025-03-03 01:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.ERROR: done [2025-03-03 01:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:26:05] Production.INFO: Total Charge 0 [2025-03-03 01:26:05] Production.INFO: CreateAllLog End [2025-03-03 01:26:05] Production.INFO: Account Balance End. [2025-03-03 01:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:26:05] Production.INFO: ==26274== Releasing lock... [2025-03-03 01:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:26:12] Production.ERROR: CronJobId end10 [2025-03-03 01:26:12] Production.INFO: ==26272== Releasing lock... [2025-03-03 01:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:26:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:26:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:26:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:26:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:26:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:26:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:26:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:26:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:26:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:26:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:26:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:26:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:26:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:26:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:26:14] Production.INFO: call_cost start [2025-03-03 01:26:14] Production.INFO: call_cost end [2025-03-03 01:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:26:14] Production.INFO: ==26268== Releasing lock... [2025-03-03 01:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:26:17] Production.INFO: count ==409 [2025-03-03 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595087', 'tblTempUsageDetail_20' ) start [2025-03-03 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595087', 'tblTempUsageDetail_20' ) end [2025-03-03 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595087', 'tblTempVendorCDR_20' ) start [2025-03-03 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595087', 'tblTempVendorCDR_20' ) end [2025-03-03 01:26:17] Production.INFO: ProcessCDR(1,14595087,1,1,2) [2025-03-03 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595087', 'tblTempUsageDetail_20' ) start [2025-03-03 01:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595087', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:26:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:26:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:26:24] Production.INFO: ==26276== Releasing lock... [2025-03-03 01:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:27:02] Production.INFO: ==26345== Lock acquired, processing the job... [2025-03-03 06:27:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:27:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:27:02] Production.INFO: neon service started [2025-03-03 06:27:02] Production.INFO: neon service started [2025-03-03 06:27:02] Production.INFO: ==26345== Releasing lock... [2025-03-03 06:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:27:02] Production.INFO: ==26349== Lock acquired, processing the job... [2025-03-03 06:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:27:02] Production.INFO: ==26349== Releasing lock... [2025-03-03 06:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:27:02] Production.INFO: ==26347== Lock acquired, processing the job... [2025-03-03 01:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:27:02] Production.INFO: ==26347== Releasing lock... [2025-03-03 01:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:27:03] Production.INFO: ==26351== Lock acquired, processing the job... [2025-03-03 01:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:27:03] Production.INFO: ==26355== Lock acquired, processing the job... [2025-03-03 01:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:27:03] Production.INFO: ==26358== Lock acquired, processing the job... [2025-03-03 01:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:27:03] Production.INFO: Account Balance Start. [2025-03-03 01:27:03] Production.INFO: CreateAllLog Start [2025-03-03 01:27:03] Production.INFO: 117 [2025-03-03 01:27:03] Production.INFO: ==26353== Lock acquired, processing the job... [2025-03-03 01:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: ==26360== Lock acquired, processing the job... [2025-03-03 01:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: ==26362== Lock acquired, processing the job... [2025-03-03 01:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: ==26353== Releasing lock... [2025-03-03 01:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:27:04] Production.INFO: count ==13 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:27:04] Production.INFO: count ==21 [2025-03-03 01:27:04] Production.ERROR: done [2025-03-03 01:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595091') start [2025-03-03 01:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.ERROR: done [2025-03-03 01:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595091') end [2025-03-03 01:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:27:04] Production.INFO: 1 [2025-03-03 01:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:27:04] Production.INFO: ==26362== Releasing lock... [2025-03-03 01:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:27:05] Production.INFO: Total Charge 0 [2025-03-03 01:27:05] Production.INFO: CreateAllLog End [2025-03-03 01:27:05] Production.INFO: Account Balance End. [2025-03-03 01:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:27:05] Production.INFO: ==26358== Releasing lock... [2025-03-03 01:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:27:11] Production.ERROR: CronJobId end10 [2025-03-03 01:27:11] Production.INFO: ==26355== Releasing lock... [2025-03-03 01:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:27:14] Production.INFO: call_cost start [2025-03-03 01:27:14] Production.INFO: call_cost end [2025-03-03 01:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:27:14] Production.INFO: ==26351== Releasing lock... [2025-03-03 01:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:27:16] Production.INFO: count ==409 [2025-03-03 01:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595092', 'tblTempUsageDetail_20' ) start [2025-03-03 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595092', 'tblTempUsageDetail_20' ) end [2025-03-03 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595092', 'tblTempVendorCDR_20' ) start [2025-03-03 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595092', 'tblTempVendorCDR_20' ) end [2025-03-03 01:27:16] Production.INFO: ProcessCDR(1,14595092,1,1,2) [2025-03-03 01:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595092', 'tblTempUsageDetail_20' ) start [2025-03-03 01:27:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595092', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:27:24] Production.INFO: ==26360== Releasing lock... [2025-03-03 01:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:28:01] Production.INFO: ==26415== Lock acquired, processing the job... [2025-03-03 06:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:28:01] Production.INFO: neon service started [2025-03-03 06:28:01] Production.INFO: neon service started [2025-03-03 06:28:01] Production.INFO: ==26415== Releasing lock... [2025-03-03 06:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:28:02] Production.INFO: ==26418== Lock acquired, processing the job... [2025-03-03 01:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:28:02] Production.INFO: ==26420== Lock acquired, processing the job... [2025-03-03 06:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:28:02] Production.INFO: ==26420== Releasing lock... [2025-03-03 06:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:28:02] Production.INFO: ==26418== Releasing lock... [2025-03-03 01:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:28:03] Production.INFO: ==26422== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:28:03] Production.INFO: ==26430== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:28:03] Production.INFO: ==26424== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:28:03] Production.INFO: ==26426== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:28:03] Production.INFO: ==26428== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:28:03] Production.INFO: ==26432== Lock acquired, processing the job... [2025-03-03 01:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:28:03] Production.INFO: Account Balance Start. [2025-03-03 01:28:03] Production.INFO: CreateAllLog Start [2025-03-03 01:28:03] Production.INFO: 117 [2025-03-03 01:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.ERROR: done [2025-03-03 01:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:28:04] Production.INFO: count ==13 [2025-03-03 01:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:28:04] Production.INFO: count ==21 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595096') start [2025-03-03 01:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: ==26424== Releasing lock... [2025-03-03 01:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.ERROR: done [2025-03-03 01:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595096') end [2025-03-03 01:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:28:04] Production.INFO: 1 [2025-03-03 01:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: ==26432== Releasing lock... [2025-03-03 01:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:28:04] Production.INFO: Total Charge 0 [2025-03-03 01:28:04] Production.INFO: CreateAllLog End [2025-03-03 01:28:05] Production.INFO: Account Balance End. [2025-03-03 01:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:28:05] Production.INFO: ==26428== Releasing lock... [2025-03-03 01:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:28:11] Production.ERROR: CronJobId end10 [2025-03-03 01:28:11] Production.INFO: ==26426== Releasing lock... [2025-03-03 01:28:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:28:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:28:14] Production.INFO: call_cost start [2025-03-03 01:28:14] Production.INFO: call_cost end [2025-03-03 01:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:28:14] Production.INFO: ==26422== Releasing lock... [2025-03-03 01:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:28:16] Production.INFO: count ==409 [2025-03-03 01:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595097', 'tblTempUsageDetail_20' ) start [2025-03-03 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595097', 'tblTempUsageDetail_20' ) end [2025-03-03 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595097', 'tblTempVendorCDR_20' ) start [2025-03-03 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595097', 'tblTempVendorCDR_20' ) end [2025-03-03 01:28:16] Production.INFO: ProcessCDR(1,14595097,1,1,2) [2025-03-03 01:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595097', 'tblTempUsageDetail_20' ) start [2025-03-03 01:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595097', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:28:24] Production.INFO: ==26430== Releasing lock... [2025-03-03 01:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:29:02] Production.INFO: ==26485== Lock acquired, processing the job... [2025-03-03 06:29:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:29:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:29:02] Production.INFO: neon service started [2025-03-03 06:29:02] Production.INFO: neon service started [2025-03-03 06:29:02] Production.INFO: ==26485== Releasing lock... [2025-03-03 06:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:29:02] Production.INFO: ==26489== Lock acquired, processing the job... [2025-03-03 06:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:29:02] Production.INFO: ==26489== Releasing lock... [2025-03-03 06:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:29:02] Production.INFO: ==26487== Lock acquired, processing the job... [2025-03-03 01:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:29:02] Production.INFO: ==26487== Releasing lock... [2025-03-03 01:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:29:03] Production.INFO: ==26496== Lock acquired, processing the job... [2025-03-03 01:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:29:03] Production.INFO: ==26494== Lock acquired, processing the job... [2025-03-03 01:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:29:03] Production.INFO: ==26500== Lock acquired, processing the job... [2025-03-03 01:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:29:03] Production.INFO: Account Balance Start. [2025-03-03 01:29:03] Production.INFO: CreateAllLog Start [2025-03-03 01:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:29:03] Production.INFO: 117 [2025-03-03 01:29:03] Production.INFO: ==26498== Lock acquired, processing the job... [2025-03-03 01:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:03] Production.INFO: ==26504== Lock acquired, processing the job... [2025-03-03 01:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:03] Production.INFO: ==26502== Lock acquired, processing the job... [2025-03-03 01:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:29:04] Production.INFO: count ==13 [2025-03-03 01:29:04] Production.INFO: ==26496== Releasing lock... [2025-03-03 01:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:29:04] Production.INFO: count ==21 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595101') start [2025-03-03 01:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595101') end [2025-03-03 01:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:29:04] Production.INFO: 1 [2025-03-03 01:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:29:04] Production.INFO: ==26504== Releasing lock... [2025-03-03 01:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: done [2025-03-03 01:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: done [2025-03-03 01:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:29:05] Production.INFO: Total Charge 0 [2025-03-03 01:29:05] Production.INFO: CreateAllLog End [2025-03-03 01:29:05] Production.INFO: Account Balance End. [2025-03-03 01:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:29:05] Production.INFO: ==26500== Releasing lock... [2025-03-03 01:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:29:12] Production.ERROR: CronJobId end10 [2025-03-03 01:29:12] Production.INFO: ==26498== Releasing lock... [2025-03-03 01:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:29:15] Production.INFO: call_cost start [2025-03-03 01:29:15] Production.INFO: call_cost end [2025-03-03 01:29:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:29:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:29:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:29:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:29:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:29:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:29:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:29:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:29:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:29:15] Production.INFO: ==26494== Releasing lock... [2025-03-03 01:29:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:29:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:29:16] Production.INFO: count ==409 [2025-03-03 01:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595102', 'tblTempUsageDetail_20' ) start [2025-03-03 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595102', 'tblTempUsageDetail_20' ) end [2025-03-03 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595102', 'tblTempVendorCDR_20' ) start [2025-03-03 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595102', 'tblTempVendorCDR_20' ) end [2025-03-03 01:29:16] Production.INFO: ProcessCDR(1,14595102,1,1,2) [2025-03-03 01:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595102', 'tblTempUsageDetail_20' ) start [2025-03-03 01:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595102', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:29:24] Production.INFO: ==26502== Releasing lock... [2025-03-03 01:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:30:01] Production.INFO: ==26574== Lock acquired, processing the job... [2025-03-03 06:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:30:01] Production.INFO: neon service started [2025-03-03 06:30:01] Production.INFO: neon service started [2025-03-03 06:30:01] Production.INFO: ==26574== Releasing lock... [2025-03-03 06:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:30:01] Production.INFO: ==26576== Lock acquired, processing the job... [2025-03-03 01:30:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:30:02] Production.INFO: ==26578== Lock acquired, processing the job... [2025-03-03 06:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:30:02] Production.INFO: ==26578== Releasing lock... [2025-03-03 06:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:30:02] Production.INFO: ==26576== Releasing lock... [2025-03-03 01:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:30:03] Production.INFO: ==26581== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 01:30:03] Production.INFO: ==26583== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 01:30:03] Production.INFO: ==26585== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 01:30:03] Production.INFO: ==26581== Releasing lock... [2025-03-03 01:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 01:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:30:03] Production.INFO: ==26589== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:30:03] Production.INFO: Account Balance Start. [2025-03-03 01:30:03] Production.INFO: CreateAllLog Start [2025-03-03 01:30:03] Production.INFO: 117 [2025-03-03 01:30:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:30:03] Production.INFO: ==26591== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:03] Production.INFO: ==26587== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:30:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:30:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:03] Production.INFO: Date 2025-02-13 [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:30:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:30:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:30:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:30:03] Production.INFO: ==26593== Lock acquired, processing the job... [2025-03-03 01:30:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 01:30:03] Production.INFO: Date 2025-02-14 [2025-03-03 01:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: ==26595== Lock acquired, processing the job... [2025-03-03 01:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:30:04] Production.INFO: ==26585== Releasing lock... [2025-03-03 01:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: count ==13 [2025-03-03 01:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:30:04] Production.INFO: count ==21 [2025-03-03 01:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595106') start [2025-03-03 01:30:04] Production.ERROR: done [2025-03-03 01:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595106') end [2025-03-03 01:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:30:04] Production.INFO: 1 [2025-03-03 01:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:30:04] Production.ERROR: done [2025-03-03 01:30:04] Production.ERROR: done [2025-03-03 01:30:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: ==26595== Releasing lock... [2025-03-03 01:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 01:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595107', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 01:30:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:30:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:30:04] Production.INFO: Total Charge 0 [2025-03-03 01:30:05] Production.INFO: CreateAllLog End [2025-03-03 01:30:05] Production.INFO: Account Balance End. [2025-03-03 01:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:30:05] Production.INFO: ==26589== Releasing lock... [2025-03-03 01:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:30:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595107', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 01:30:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 01:30:08] Production.INFO: ProcessCDR(1,14595107,1,1,2) [2025-03-03 01:30:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595107,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:30:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595107,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:30:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 01:30:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 01:30:08] Production.INFO: ==26593== Releasing lock... [2025-03-03 01:30:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 01:30:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:30:12] Production.ERROR: CronJobId end10 [2025-03-03 01:30:12] Production.INFO: ==26587== Releasing lock... [2025-03-03 01:30:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:30:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:30:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:30:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:30:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:30:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:30:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:30:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:30:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:30:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:30:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:30:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:30:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:30:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:30:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:30:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:30:15] Production.INFO: call_cost start [2025-03-03 01:30:15] Production.INFO: call_cost end [2025-03-03 01:30:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:30:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:30:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:30:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:30:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:30:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:30:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:30:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:30:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:30:15] Production.INFO: ==26583== Releasing lock... [2025-03-03 01:30:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:30:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:30:16] Production.INFO: count ==409 [2025-03-03 01:30:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:30:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595108', 'tblTempUsageDetail_20' ) start [2025-03-03 01:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595108', 'tblTempUsageDetail_20' ) end [2025-03-03 01:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595108', 'tblTempVendorCDR_20' ) start [2025-03-03 01:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595108', 'tblTempVendorCDR_20' ) end [2025-03-03 01:30:16] Production.INFO: ProcessCDR(1,14595108,1,1,2) [2025-03-03 01:30:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595108', 'tblTempUsageDetail_20' ) start [2025-03-03 01:30:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595108', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:30:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:30:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:30:24] Production.INFO: ==26591== Releasing lock... [2025-03-03 01:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:30:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:31:01] Production.INFO: ==26655== Lock acquired, processing the job... [2025-03-03 06:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:31:01] Production.INFO: neon service started [2025-03-03 06:31:01] Production.INFO: neon service started [2025-03-03 06:31:01] Production.INFO: ==26655== Releasing lock... [2025-03-03 06:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:31:02] Production.INFO: ==26657== Lock acquired, processing the job... [2025-03-03 01:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:31:02] Production.INFO: ==26657== Releasing lock... [2025-03-03 01:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:31:02] Production.INFO: ==26659== Lock acquired, processing the job... [2025-03-03 06:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:31:02] Production.INFO: ==26659== Releasing lock... [2025-03-03 06:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:31:03] Production.INFO: ==26665== Lock acquired, processing the job... [2025-03-03 01:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:31:03] Production.INFO: ==26663== Lock acquired, processing the job... [2025-03-03 01:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:31:03] Production.INFO: ==26661== Lock acquired, processing the job... [2025-03-03 01:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:31:03] Production.INFO: ==26672== Lock acquired, processing the job... [2025-03-03 01:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:31:03] Production.INFO: ==26667== Lock acquired, processing the job... [2025-03-03 01:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:31:03] Production.INFO: ==26669== Lock acquired, processing the job... [2025-03-03 01:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:31:03] Production.INFO: count ==13 [2025-03-03 01:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:31:03] Production.INFO: count ==21 [2025-03-03 01:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595110') start [2025-03-03 01:31:03] Production.INFO: Account Balance Start. [2025-03-03 01:31:03] Production.INFO: CreateAllLog Start [2025-03-03 01:31:03] Production.INFO: 117 [2025-03-03 01:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595110') end [2025-03-03 01:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:31:04] Production.INFO: 1 [2025-03-03 01:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:31:04] Production.INFO: ==26663== Releasing lock... [2025-03-03 01:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.ERROR: done [2025-03-03 01:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:31:04] Production.INFO: ==26672== Releasing lock... [2025-03-03 01:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.ERROR: done [2025-03-03 01:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:31:05] Production.INFO: Total Charge 0 [2025-03-03 01:31:05] Production.INFO: CreateAllLog End [2025-03-03 01:31:05] Production.INFO: Account Balance End. [2025-03-03 01:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:31:05] Production.INFO: ==26667== Releasing lock... [2025-03-03 01:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:31:11] Production.ERROR: CronJobId end10 [2025-03-03 01:31:11] Production.INFO: ==26665== Releasing lock... [2025-03-03 01:31:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:31:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:31:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:31:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:31:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:31:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:31:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:31:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:31:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:31:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:31:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:31:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:31:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:31:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:31:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:31:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:31:14] Production.INFO: call_cost start [2025-03-03 01:31:14] Production.INFO: call_cost end [2025-03-03 01:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:31:14] Production.INFO: ==26661== Releasing lock... [2025-03-03 01:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:31:16] Production.INFO: count ==409 [2025-03-03 01:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595113', 'tblTempUsageDetail_20' ) start [2025-03-03 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595113', 'tblTempUsageDetail_20' ) end [2025-03-03 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595113', 'tblTempVendorCDR_20' ) start [2025-03-03 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595113', 'tblTempVendorCDR_20' ) end [2025-03-03 01:31:17] Production.INFO: ProcessCDR(1,14595113,1,1,2) [2025-03-03 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595113', 'tblTempUsageDetail_20' ) start [2025-03-03 01:31:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595113', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:31:24] Production.INFO: ==26669== Releasing lock... [2025-03-03 01:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:31:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:32:01] Production.INFO: ==26731== Lock acquired, processing the job... [2025-03-03 06:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:32:01] Production.INFO: neon service started [2025-03-03 06:32:01] Production.INFO: neon service started [2025-03-03 06:32:01] Production.INFO: ==26731== Releasing lock... [2025-03-03 06:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:32:01] Production.INFO: ==26733== Lock acquired, processing the job... [2025-03-03 01:32:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:32:02] Production.INFO: ==26733== Releasing lock... [2025-03-03 01:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:32:02] Production.INFO: ==26735== Lock acquired, processing the job... [2025-03-03 06:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:32:02] Production.INFO: ==26735== Releasing lock... [2025-03-03 06:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:32:02] Production.INFO: ==26742== Lock acquired, processing the job... [2025-03-03 01:32:02] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:32:03] Production.INFO: ==26737== Lock acquired, processing the job... [2025-03-03 01:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:32:03] Production.INFO: ==26748== Lock acquired, processing the job... [2025-03-03 01:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:32:03] Production.INFO: ==26739== Lock acquired, processing the job... [2025-03-03 01:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:32:03] Production.INFO: ==26746== Lock acquired, processing the job... [2025-03-03 01:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:32:03] Production.INFO: ==26744== Lock acquired, processing the job... [2025-03-03 01:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:32:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:32:03] Production.INFO: count ==13 [2025-03-03 01:32:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:32:03] Production.INFO: count ==21 [2025-03-03 01:32:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595114') start [2025-03-03 01:32:03] Production.INFO: Account Balance Start. [2025-03-03 01:32:03] Production.INFO: CreateAllLog Start [2025-03-03 01:32:03] Production.INFO: 117 [2025-03-03 01:32:03] Production.INFO: ==26739== Releasing lock... [2025-03-03 01:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595114') end [2025-03-03 01:32:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:32:03] Production.INFO: 1 [2025-03-03 01:32:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:32:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:03] Production.INFO: ==26748== Releasing lock... [2025-03-03 01:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:32:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:32:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:03] Production.ERROR: done [2025-03-03 01:32:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:32:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:03] Production.INFO: Date 2025-02-13 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:03] Production.INFO: Date 2025-02-14 [2025-03-03 01:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.ERROR: done [2025-03-03 01:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:32:04] Production.INFO: Total Charge 0 [2025-03-03 01:32:04] Production.INFO: CreateAllLog End [2025-03-03 01:32:04] Production.INFO: Account Balance End. [2025-03-03 01:32:04] Production.ERROR: CronJobId end 12 [2025-03-03 01:32:04] Production.INFO: ==26744== Releasing lock... [2025-03-03 01:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:32:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:32:12] Production.ERROR: CronJobId end10 [2025-03-03 01:32:12] Production.INFO: ==26742== Releasing lock... [2025-03-03 01:32:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:32:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:32:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:32:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:32:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:32:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:32:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:32:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:32:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:32:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:32:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:32:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:32:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:32:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:32:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:32:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:32:14] Production.INFO: call_cost start [2025-03-03 01:32:14] Production.INFO: call_cost end [2025-03-03 01:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:32:14] Production.INFO: ==26737== Releasing lock... [2025-03-03 01:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:32:16] Production.INFO: count ==409 [2025-03-03 01:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595118', 'tblTempUsageDetail_20' ) start [2025-03-03 01:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595118', 'tblTempUsageDetail_20' ) end [2025-03-03 01:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595118', 'tblTempVendorCDR_20' ) start [2025-03-03 01:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595118', 'tblTempVendorCDR_20' ) end [2025-03-03 01:32:16] Production.INFO: ProcessCDR(1,14595118,1,1,2) [2025-03-03 01:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595118', 'tblTempUsageDetail_20' ) start [2025-03-03 01:32:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595118', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:32:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:32:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:32:23] Production.INFO: ==26746== Releasing lock... [2025-03-03 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:32:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:33:01] Production.INFO: ==26820== Lock acquired, processing the job... [2025-03-03 06:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:33:01] Production.INFO: neon service started [2025-03-03 06:33:01] Production.INFO: neon service started [2025-03-03 06:33:01] Production.INFO: ==26820== Releasing lock... [2025-03-03 06:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:33:02] Production.INFO: ==26822== Lock acquired, processing the job... [2025-03-03 01:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:33:02] Production.INFO: ==26824== Lock acquired, processing the job... [2025-03-03 06:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:33:02] Production.INFO: ==26824== Releasing lock... [2025-03-03 06:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:33:02] Production.INFO: ==26822== Releasing lock... [2025-03-03 01:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:33:03] Production.INFO: ==26835== Lock acquired, processing the job... [2025-03-03 01:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:33:03] Production.INFO: ==26829== Lock acquired, processing the job... [2025-03-03 01:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:33:03] Production.INFO: ==26827== Lock acquired, processing the job... [2025-03-03 01:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:33:03] Production.INFO: ==26837== Lock acquired, processing the job... [2025-03-03 01:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:33:03] Production.INFO: ==26831== Lock acquired, processing the job... [2025-03-03 01:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:33:03] Production.INFO: ==26833== Lock acquired, processing the job... [2025-03-03 01:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:33:03] Production.INFO: Account Balance Start. [2025-03-03 01:33:03] Production.INFO: CreateAllLog Start [2025-03-03 01:33:03] Production.INFO: 117 [2025-03-03 01:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:33:03] Production.INFO: count ==13 [2025-03-03 01:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:33:04] Production.INFO: count ==21 [2025-03-03 01:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595122') start [2025-03-03 01:33:04] Production.ERROR: done [2025-03-03 01:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:33:04] Production.INFO: ==26829== Releasing lock... [2025-03-03 01:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595122') end [2025-03-03 01:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:33:04] Production.INFO: 1 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: ==26837== Releasing lock... [2025-03-03 01:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.ERROR: done [2025-03-03 01:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:33:05] Production.INFO: Total Charge 0 [2025-03-03 01:33:05] Production.INFO: CreateAllLog End [2025-03-03 01:33:05] Production.INFO: Account Balance End. [2025-03-03 01:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:33:05] Production.INFO: ==26833== Releasing lock... [2025-03-03 01:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:33:13] Production.ERROR: CronJobId end10 [2025-03-03 01:33:13] Production.INFO: ==26831== Releasing lock... [2025-03-03 01:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:33:15] Production.INFO: call_cost start [2025-03-03 01:33:15] Production.INFO: call_cost end [2025-03-03 01:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:33:15] Production.INFO: ==26827== Releasing lock... [2025-03-03 01:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:33:16] Production.INFO: count ==409 [2025-03-03 01:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595123', 'tblTempUsageDetail_20' ) start [2025-03-03 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595123', 'tblTempUsageDetail_20' ) end [2025-03-03 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595123', 'tblTempVendorCDR_20' ) start [2025-03-03 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595123', 'tblTempVendorCDR_20' ) end [2025-03-03 01:33:16] Production.INFO: ProcessCDR(1,14595123,1,1,2) [2025-03-03 01:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595123', 'tblTempUsageDetail_20' ) start [2025-03-03 01:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595123', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:33:24] Production.INFO: ==26835== Releasing lock... [2025-03-03 01:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:33:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:34:01] Production.INFO: ==26895== Lock acquired, processing the job... [2025-03-03 06:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:34:01] Production.INFO: neon service started [2025-03-03 06:34:01] Production.INFO: neon service started [2025-03-03 06:34:01] Production.INFO: ==26895== Releasing lock... [2025-03-03 06:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:34:01] Production.INFO: ==26897== Lock acquired, processing the job... [2025-03-03 01:34:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:34:02] Production.INFO: ==26897== Releasing lock... [2025-03-03 01:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:34:02] Production.INFO: ==26899== Lock acquired, processing the job... [2025-03-03 06:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:34:02] Production.INFO: ==26899== Releasing lock... [2025-03-03 06:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:34:03] Production.INFO: ==26906== Lock acquired, processing the job... [2025-03-03 01:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:34:03] Production.INFO: ==26902== Lock acquired, processing the job... [2025-03-03 01:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:34:03] Production.INFO: ==26912== Lock acquired, processing the job... [2025-03-03 01:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:34:03] Production.INFO: ==26904== Lock acquired, processing the job... [2025-03-03 01:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:34:03] Production.INFO: count ==13 [2025-03-03 01:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:34:03] Production.INFO: count ==21 [2025-03-03 01:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595125') start [2025-03-03 01:34:03] Production.INFO: ==26908== Lock acquired, processing the job... [2025-03-03 01:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:34:03] Production.INFO: ==26910== Lock acquired, processing the job... [2025-03-03 01:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:34:03] Production.INFO: Account Balance Start. [2025-03-03 01:34:03] Production.INFO: CreateAllLog Start [2025-03-03 01:34:03] Production.INFO: 117 [2025-03-03 01:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595125') end [2025-03-03 01:34:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:34:03] Production.INFO: 1 [2025-03-03 01:34:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:03] Production.INFO: ==26912== Releasing lock... [2025-03-03 01:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:34:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:34:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.ERROR: done [2025-03-03 01:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:34:04] Production.INFO: ==26904== Releasing lock... [2025-03-03 01:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.ERROR: done [2025-03-03 01:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:34:05] Production.INFO: Total Charge 0 [2025-03-03 01:34:05] Production.INFO: CreateAllLog End [2025-03-03 01:34:05] Production.INFO: Account Balance End. [2025-03-03 01:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:34:05] Production.INFO: ==26908== Releasing lock... [2025-03-03 01:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:34:11] Production.ERROR: CronJobId end10 [2025-03-03 01:34:11] Production.INFO: ==26906== Releasing lock... [2025-03-03 01:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:34:16] Production.INFO: call_cost start [2025-03-03 01:34:16] Production.INFO: call_cost end [2025-03-03 01:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:34:16] Production.INFO: ==26902== Releasing lock... [2025-03-03 01:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:34:16] Production.INFO: count ==409 [2025-03-03 01:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595128', 'tblTempUsageDetail_20' ) start [2025-03-03 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595128', 'tblTempUsageDetail_20' ) end [2025-03-03 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595128', 'tblTempVendorCDR_20' ) start [2025-03-03 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595128', 'tblTempVendorCDR_20' ) end [2025-03-03 01:34:16] Production.INFO: ProcessCDR(1,14595128,1,1,2) [2025-03-03 01:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595128', 'tblTempUsageDetail_20' ) start [2025-03-03 01:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595128', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:34:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:34:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:34:25] Production.INFO: ==26910== Releasing lock... [2025-03-03 01:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:34:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:35:01] Production.INFO: ==26968== Lock acquired, processing the job... [2025-03-03 06:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:35:01] Production.INFO: neon service started [2025-03-03 06:35:01] Production.INFO: neon service started [2025-03-03 06:35:01] Production.INFO: ==26968== Releasing lock... [2025-03-03 06:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:35:02] Production.INFO: ==26970== Lock acquired, processing the job... [2025-03-03 01:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:35:02] Production.INFO: ==26972== Lock acquired, processing the job... [2025-03-03 06:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:35:02] Production.INFO: ==26972== Releasing lock... [2025-03-03 06:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:35:02] Production.INFO: ==26970== Releasing lock... [2025-03-03 01:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:35:03] Production.INFO: ==26979== Lock acquired, processing the job... [2025-03-03 01:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:35:03] Production.INFO: ==26983== Lock acquired, processing the job... [2025-03-03 01:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:35:04] Production.INFO: ==26975== Lock acquired, processing the job... [2025-03-03 01:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:35:04] Production.INFO: ==26977== Lock acquired, processing the job... [2025-03-03 01:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:35:04] Production.INFO: ==26985== Lock acquired, processing the job... [2025-03-03 01:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:35:04] Production.INFO: ==26981== Lock acquired, processing the job... [2025-03-03 01:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:35:04] Production.INFO: count ==13 [2025-03-03 01:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:35:04] Production.INFO: count ==21 [2025-03-03 01:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595129') start [2025-03-03 01:35:04] Production.ERROR: done [2025-03-03 01:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:35:04] Production.INFO: Account Balance Start. [2025-03-03 01:35:04] Production.INFO: CreateAllLog Start [2025-03-03 01:35:04] Production.INFO: 117 [2025-03-03 01:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595129') end [2025-03-03 01:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:35:04] Production.INFO: 1 [2025-03-03 01:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:35:04] Production.ERROR: done [2025-03-03 01:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:04] Production.INFO: ==26985== Releasing lock... [2025-03-03 01:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:35:04] Production.INFO: ==26977== Releasing lock... [2025-03-03 01:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-12 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-13 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-14 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:35:05] Production.INFO: Total Charge 0 [2025-03-03 01:35:05] Production.INFO: CreateAllLog End [2025-03-03 01:35:05] Production.INFO: Account Balance End. [2025-03-03 01:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:35:05] Production.INFO: ==26981== Releasing lock... [2025-03-03 01:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:35:12] Production.ERROR: CronJobId end10 [2025-03-03 01:35:12] Production.INFO: ==26979== Releasing lock... [2025-03-03 01:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:35:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:35:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:35:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:35:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:35:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:35:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:35:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:35:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:35:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:35:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:35:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:35:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:35:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:35:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:35:15] Production.INFO: call_cost start [2025-03-03 01:35:15] Production.INFO: call_cost end [2025-03-03 01:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:35:15] Production.INFO: ==26975== Releasing lock... [2025-03-03 01:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:35:16] Production.INFO: count ==409 [2025-03-03 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595133', 'tblTempUsageDetail_20' ) start [2025-03-03 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595133', 'tblTempUsageDetail_20' ) end [2025-03-03 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595133', 'tblTempVendorCDR_20' ) start [2025-03-03 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595133', 'tblTempVendorCDR_20' ) end [2025-03-03 01:35:17] Production.INFO: ProcessCDR(1,14595133,1,1,2) [2025-03-03 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595133', 'tblTempUsageDetail_20' ) start [2025-03-03 01:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595133', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:35:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:35:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:35:25] Production.INFO: ==26983== Releasing lock... [2025-03-03 01:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:35:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:36:02] Production.INFO: ==27048== Lock acquired, processing the job... [2025-03-03 06:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:36:02] Production.INFO: neon service started [2025-03-03 06:36:02] Production.INFO: neon service started [2025-03-03 06:36:02] Production.INFO: ==27048== Releasing lock... [2025-03-03 06:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:36:02] Production.INFO: ==27050== Lock acquired, processing the job... [2025-03-03 01:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:36:02] Production.INFO: ==27050== Releasing lock... [2025-03-03 01:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:36:03] Production.INFO: ==27052== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:36:03] Production.INFO: ==27052== Releasing lock... [2025-03-03 06:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:36:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:36:03] Production.INFO: ==27056== Lock acquired, processing the job... [2025-03-03 01:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:36:03] Production.INFO: ==27060== Lock acquired, processing the job... [2025-03-03 01:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:36:03] Production.INFO: ==27058== Lock acquired, processing the job... [2025-03-03 01:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:36:04] Production.INFO: Account Balance Start. [2025-03-03 01:36:04] Production.INFO: CreateAllLog Start [2025-03-03 01:36:04] Production.INFO: ==27062== Lock acquired, processing the job... [2025-03-03 01:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:36:04] Production.INFO: 117 [2025-03-03 01:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:36:04] Production.INFO: ==27054== Lock acquired, processing the job... [2025-03-03 01:36:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: ==27056== Releasing lock... [2025-03-03 01:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: ==27064== Lock acquired, processing the job... [2025-03-03 01:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: count ==13 [2025-03-03 01:36:04] Production.ERROR: done [2025-03-03 01:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:36:04] Production.INFO: count ==21 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595137') start [2025-03-03 01:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595137') end [2025-03-03 01:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:36:04] Production.INFO: 1 [2025-03-03 01:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.ERROR: done [2025-03-03 01:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: ==27064== Releasing lock... [2025-03-03 01:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:36:05] Production.INFO: Total Charge 0 [2025-03-03 01:36:05] Production.INFO: CreateAllLog End [2025-03-03 01:36:05] Production.INFO: Account Balance End. [2025-03-03 01:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:36:05] Production.INFO: ==27060== Releasing lock... [2025-03-03 01:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:36:14] Production.ERROR: CronJobId end10 [2025-03-03 01:36:14] Production.INFO: ==27058== Releasing lock... [2025-03-03 01:36:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:36:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:36:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:36:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:36:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:36:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:36:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:36:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:36:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:36:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:36:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:36:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:36:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:36:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:36:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:36:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:36:17] Production.INFO: call_cost start [2025-03-03 01:36:17] Production.INFO: call_cost end [2025-03-03 01:36:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:36:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:36:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:36:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:36:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:36:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:36:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:36:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:36:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:36:17] Production.INFO: ==27054== Releasing lock... [2025-03-03 01:36:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:36:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:36:17] Production.INFO: count ==409 [2025-03-03 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595138', 'tblTempUsageDetail_20' ) start [2025-03-03 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595138', 'tblTempUsageDetail_20' ) end [2025-03-03 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595138', 'tblTempVendorCDR_20' ) start [2025-03-03 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595138', 'tblTempVendorCDR_20' ) end [2025-03-03 01:36:17] Production.INFO: ProcessCDR(1,14595138,1,1,2) [2025-03-03 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595138', 'tblTempUsageDetail_20' ) start [2025-03-03 01:36:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595138', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:36:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:36:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:36:26] Production.INFO: ==27062== Releasing lock... [2025-03-03 01:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:36:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:37:01] Production.INFO: ==27125== Lock acquired, processing the job... [2025-03-03 06:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:37:01] Production.INFO: neon service started [2025-03-03 06:37:01] Production.INFO: neon service started [2025-03-03 06:37:01] Production.INFO: ==27125== Releasing lock... [2025-03-03 06:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:37:02] Production.INFO: ==27127== Lock acquired, processing the job... [2025-03-03 01:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:37:02] Production.INFO: ==27127== Releasing lock... [2025-03-03 01:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:37:02] Production.INFO: ==27129== Lock acquired, processing the job... [2025-03-03 06:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:37:02] Production.INFO: ==27129== Releasing lock... [2025-03-03 06:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:37:03] Production.INFO: ==27135== Lock acquired, processing the job... [2025-03-03 01:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:37:03] Production.INFO: ==27137== Lock acquired, processing the job... [2025-03-03 01:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:37:03] Production.INFO: ==27131== Lock acquired, processing the job... [2025-03-03 01:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:37:03] Production.INFO: ==27133== Lock acquired, processing the job... [2025-03-03 01:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:37:03] Production.INFO: Account Balance Start. [2025-03-03 01:37:03] Production.INFO: CreateAllLog Start [2025-03-03 01:37:03] Production.INFO: 117 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: ==27141== Lock acquired, processing the job... [2025-03-03 01:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:37:04] Production.INFO: ==27139== Lock acquired, processing the job... [2025-03-03 01:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: count ==13 [2025-03-03 01:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:37:04] Production.INFO: count ==21 [2025-03-03 01:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595142') start [2025-03-03 01:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: ==27133== Releasing lock... [2025-03-03 01:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595142') end [2025-03-03 01:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:37:04] Production.INFO: 1 [2025-03-03 01:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: ==27141== Releasing lock... [2025-03-03 01:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:37:04] Production.ERROR: done [2025-03-03 01:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.ERROR: done [2025-03-03 01:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:37:05] Production.INFO: Total Charge 0 [2025-03-03 01:37:05] Production.INFO: CreateAllLog End [2025-03-03 01:37:05] Production.INFO: Account Balance End. [2025-03-03 01:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:37:05] Production.INFO: ==27137== Releasing lock... [2025-03-03 01:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:37:12] Production.ERROR: CronJobId end10 [2025-03-03 01:37:12] Production.INFO: ==27135== Releasing lock... [2025-03-03 01:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:37:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:37:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:37:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:37:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:37:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:37:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:37:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:37:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:37:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:37:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:37:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:37:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:37:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:37:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:37:16] Production.INFO: call_cost start [2025-03-03 01:37:16] Production.INFO: call_cost end [2025-03-03 01:37:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:37:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:37:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:37:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:37:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:37:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:37:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:37:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:37:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:37:16] Production.INFO: ==27131== Releasing lock... [2025-03-03 01:37:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:37:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:37:16] Production.INFO: count ==409 [2025-03-03 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595143', 'tblTempUsageDetail_20' ) start [2025-03-03 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595143', 'tblTempUsageDetail_20' ) end [2025-03-03 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595143', 'tblTempVendorCDR_20' ) start [2025-03-03 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595143', 'tblTempVendorCDR_20' ) end [2025-03-03 01:37:17] Production.INFO: ProcessCDR(1,14595143,1,1,2) [2025-03-03 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595143', 'tblTempUsageDetail_20' ) start [2025-03-03 01:37:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595143', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:37:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:37:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:37:25] Production.INFO: ==27139== Releasing lock... [2025-03-03 01:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:37:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:38:02] Production.INFO: ==27240== Lock acquired, processing the job... [2025-03-03 06:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:38:02] Production.INFO: neon service started [2025-03-03 06:38:02] Production.INFO: neon service started [2025-03-03 06:38:02] Production.INFO: ==27240== Releasing lock... [2025-03-03 06:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:38:02] Production.INFO: ==27242== Lock acquired, processing the job... [2025-03-03 01:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:38:03] Production.INFO: ==27242== Releasing lock... [2025-03-03 01:38:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:38:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:38:03] Production.INFO: ==27244== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:38:03] Production.INFO: ==27244== Releasing lock... [2025-03-03 06:38:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:38:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:38:04] Production.INFO: ==27250== Lock acquired, processing the job... [2025-03-03 01:38:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:38:04] Production.INFO: ==27246== Lock acquired, processing the job... [2025-03-03 01:38:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:38:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:38:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:38:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:38:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:38:04] Production.INFO: ==27252== Lock acquired, processing the job... [2025-03-03 01:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:38:04] Production.INFO: ==27248== Lock acquired, processing the job... [2025-03-03 01:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:38:04] Production.INFO: ==27257== Lock acquired, processing the job... [2025-03-03 01:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:38:04] Production.INFO: Account Balance Start. [2025-03-03 01:38:04] Production.INFO: CreateAllLog Start [2025-03-03 01:38:04] Production.INFO: 117 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: ==27254== Lock acquired, processing the job... [2025-03-03 01:38:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:38:04] Production.INFO: count ==13 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: count ==21 [2025-03-03 01:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595146') start [2025-03-03 01:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595146') end [2025-03-03 01:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:38:04] Production.INFO: 1 [2025-03-03 01:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:04] Production.INFO: ==27257== Releasing lock... [2025-03-03 01:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:38:04] Production.INFO: ==27248== Releasing lock... [2025-03-03 01:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.ERROR: done [2025-03-03 01:38:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.ERROR: done [2025-03-03 01:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:38:05] Production.INFO: Total Charge 0 [2025-03-03 01:38:05] Production.INFO: CreateAllLog End [2025-03-03 01:38:05] Production.INFO: Account Balance End. [2025-03-03 01:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:38:05] Production.INFO: ==27252== Releasing lock... [2025-03-03 01:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:38:14] Production.ERROR: CronJobId end10 [2025-03-03 01:38:14] Production.INFO: ==27250== Releasing lock... [2025-03-03 01:38:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:38:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:38:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:38:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:38:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:38:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:38:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:38:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:38:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:38:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:38:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:38:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:38:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:38:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:38:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:38:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:38:17] Production.INFO: count ==409 [2025-03-03 01:38:17] Production.INFO: call_cost start [2025-03-03 01:38:17] Production.INFO: call_cost end [2025-03-03 01:38:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:38:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:38:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:38:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:38:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:38:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:38:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:38:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:38:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:38:17] Production.INFO: ==27246== Releasing lock... [2025-03-03 01:38:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:38:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595148', 'tblTempUsageDetail_20' ) start [2025-03-03 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595148', 'tblTempUsageDetail_20' ) end [2025-03-03 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595148', 'tblTempVendorCDR_20' ) start [2025-03-03 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595148', 'tblTempVendorCDR_20' ) end [2025-03-03 01:38:17] Production.INFO: ProcessCDR(1,14595148,1,1,2) [2025-03-03 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595148', 'tblTempUsageDetail_20' ) start [2025-03-03 01:38:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595148', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:38:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:38:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:38:26] Production.INFO: ==27254== Releasing lock... [2025-03-03 01:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:38:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:39:01] Production.INFO: ==27320== Lock acquired, processing the job... [2025-03-03 06:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:39:01] Production.INFO: neon service started [2025-03-03 06:39:01] Production.INFO: neon service started [2025-03-03 06:39:01] Production.INFO: ==27320== Releasing lock... [2025-03-03 06:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:39:02] Production.INFO: ==27324== Lock acquired, processing the job... [2025-03-03 06:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:39:02] Production.INFO: ==27324== Releasing lock... [2025-03-03 06:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:39:02] Production.INFO: ==27322== Lock acquired, processing the job... [2025-03-03 01:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:39:02] Production.INFO: ==27322== Releasing lock... [2025-03-03 01:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:39:03] Production.INFO: ==27327== Lock acquired, processing the job... [2025-03-03 01:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:39:03] Production.INFO: ==27333== Lock acquired, processing the job... [2025-03-03 01:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:39:03] Production.INFO: ==27329== Lock acquired, processing the job... [2025-03-03 01:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:39:03] Production.INFO: ==27337== Lock acquired, processing the job... [2025-03-03 01:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:39:04] Production.INFO: ==27335== Lock acquired, processing the job... [2025-03-03 01:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:39:04] Production.INFO: ==27331== Lock acquired, processing the job... [2025-03-03 01:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:39:04] Production.INFO: Account Balance Start. [2025-03-03 01:39:04] Production.INFO: CreateAllLog Start [2025-03-03 01:39:04] Production.INFO: 117 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: count ==13 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:39:04] Production.INFO: count ==21 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: ==27329== Releasing lock... [2025-03-03 01:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595152') start [2025-03-03 01:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595152') end [2025-03-03 01:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:39:04] Production.INFO: 1 [2025-03-03 01:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:39:04] Production.INFO: ==27337== Releasing lock... [2025-03-03 01:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.ERROR: done [2025-03-03 01:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.ERROR: done [2025-03-03 01:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:39:05] Production.INFO: Total Charge 0 [2025-03-03 01:39:05] Production.INFO: CreateAllLog End [2025-03-03 01:39:05] Production.INFO: Account Balance End. [2025-03-03 01:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:39:05] Production.INFO: ==27333== Releasing lock... [2025-03-03 01:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:39:13] Production.ERROR: CronJobId end10 [2025-03-03 01:39:13] Production.INFO: ==27331== Releasing lock... [2025-03-03 01:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:39:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:39:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:39:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:39:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:39:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:39:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:39:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:39:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:39:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:39:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:39:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:39:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:39:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:39:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:39:16] Production.INFO: call_cost start [2025-03-03 01:39:16] Production.INFO: call_cost end [2025-03-03 01:39:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:39:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:39:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:39:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:39:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:39:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:39:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:39:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:39:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:39:16] Production.INFO: ==27327== Releasing lock... [2025-03-03 01:39:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:39:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:39:16] Production.INFO: count ==409 [2025-03-03 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595153', 'tblTempUsageDetail_20' ) start [2025-03-03 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595153', 'tblTempUsageDetail_20' ) end [2025-03-03 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595153', 'tblTempVendorCDR_20' ) start [2025-03-03 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595153', 'tblTempVendorCDR_20' ) end [2025-03-03 01:39:17] Production.INFO: ProcessCDR(1,14595153,1,1,2) [2025-03-03 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595153', 'tblTempUsageDetail_20' ) start [2025-03-03 01:39:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595153', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:39:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:39:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:39:25] Production.INFO: ==27335== Releasing lock... [2025-03-03 01:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:39:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:40:02] Production.INFO: ==27400== Lock acquired, processing the job... [2025-03-03 06:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:40:02] Production.INFO: neon service started [2025-03-03 06:40:02] Production.INFO: neon service started [2025-03-03 06:40:02] Production.INFO: ==27400== Releasing lock... [2025-03-03 06:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:40:02] Production.INFO: ==27404== Lock acquired, processing the job... [2025-03-03 06:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:40:02] Production.INFO: ==27404== Releasing lock... [2025-03-03 06:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:40:02] Production.INFO: ==27402== Lock acquired, processing the job... [2025-03-03 01:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:40:03] Production.INFO: ==27402== Releasing lock... [2025-03-03 01:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:40:04] Production.INFO: ==27409== Lock acquired, processing the job... [2025-03-03 01:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:40:04] Production.INFO: ==27413== Lock acquired, processing the job... [2025-03-03 01:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:40:04] Production.INFO: ==27407== Lock acquired, processing the job... [2025-03-03 01:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 01:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:40:04] Production.INFO: ==27417== Lock acquired, processing the job... [2025-03-03 01:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:40:04] Production.ERROR: CronJob PID - 27409 [2025-03-03 01:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 01:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 01:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:40:00 [2025-03-03 01:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:40:04] Production.ERROR: CronJob PID - 27413 [2025-03-03 01:40:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 01:40:04] Production.ERROR: CronJob ID - 10 [2025-03-03 01:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:40:00 [2025-03-03 01:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:40:04] Production.ERROR: CronJob PID - 27417 [2025-03-03 01:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 01:40:04] Production.ERROR: CronJob ID - 16 [2025-03-03 01:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:40:00 [2025-03-03 01:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:40:04] Production.INFO: ==27411== Lock acquired, processing the job... [2025-03-03 01:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 01:40:04] Production.INFO: ==27407== Releasing lock... [2025-03-03 01:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 01:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:40:05] Production.INFO: ==27415== Lock acquired, processing the job... [2025-03-03 01:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:40:05] Production.INFO: ==27419== Lock acquired, processing the job... [2025-03-03 01:40:05] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 01:40:05] Production.INFO: ==27421== Lock acquired, processing the job... [2025-03-03 01:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:40:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:40:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:40:05] Production.INFO: Account Balance Start. [2025-03-03 01:40:05] Production.INFO: CreateAllLog Start [2025-03-03 01:40:05] Production.INFO: 117 [2025-03-03 01:40:05] Production.INFO: Date 2025-02-08 [2025-03-03 01:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:05] Production.INFO: count ==13 [2025-03-03 01:40:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:40:05] Production.INFO: count ==21 [2025-03-03 01:40:05] Production.INFO: Date 2025-02-09 [2025-03-03 01:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595157') start [2025-03-03 01:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:05] Production.ERROR: done [2025-03-03 01:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:40:05] Production.INFO: Date 2025-02-10 [2025-03-03 01:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:05] Production.INFO: ==27411== Releasing lock... [2025-03-03 01:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:40:05] Production.ERROR: done [2025-03-03 01:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595157') end [2025-03-03 01:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:40:05] Production.INFO: 1 [2025-03-03 01:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:40:05] Production.ERROR: done [2025-03-03 01:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 01:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:05] Production.INFO: ==27421== Releasing lock... [2025-03-03 01:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 01:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 01:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595159', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 01:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 01:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-14 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-15 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-16 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-17 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-18 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-19 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-20 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-21 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-22 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-23 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-24 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-25 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-26 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-27 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-02-28 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-03-01 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-03-02 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Date 2025-03-03 [2025-03-03 01:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:40:06] Production.INFO: Total Charge 0 [2025-03-03 01:40:06] Production.INFO: CreateAllLog End [2025-03-03 01:40:06] Production.INFO: Account Balance End. [2025-03-03 01:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 01:40:06] Production.INFO: ==27415== Releasing lock... [2025-03-03 01:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:40:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595159', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 01:40:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 01:40:10] Production.INFO: ProcessCDR(1,14595159,1,1,2) [2025-03-03 01:40:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595159,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:40:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595159,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:40:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 01:40:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 01:40:10] Production.INFO: ==27419== Releasing lock... [2025-03-03 01:40:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 01:40:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:40:15] Production.ERROR: CronJobId end10 [2025-03-03 01:40:15] Production.INFO: ==27413== Releasing lock... [2025-03-03 01:40:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:40:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:40:17] Production.INFO: count ==409 [2025-03-03 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595158', 'tblTempUsageDetail_20' ) start [2025-03-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595158', 'tblTempUsageDetail_20' ) end [2025-03-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595158', 'tblTempVendorCDR_20' ) start [2025-03-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595158', 'tblTempVendorCDR_20' ) end [2025-03-03 01:40:18] Production.INFO: ProcessCDR(1,14595158,1,1,2) [2025-03-03 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:40:19] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:40:19] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:40:19] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:40:19] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:40:19] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:40:19] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:40:19] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:40:19] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:40:19] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:40:19] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:40:19] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:40:19] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:40:19] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:40:19] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:40:19] Production.INFO: call_cost start [2025-03-03 01:40:19] Production.INFO: call_cost end [2025-03-03 01:40:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:40:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:40:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:40:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:40:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:40:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:40:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:40:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:40:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:40:19] Production.INFO: ==27409== Releasing lock... [2025-03-03 01:40:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:40:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595158', 'tblTempUsageDetail_20' ) start [2025-03-03 01:40:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595158', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:40:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:40:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:40:26] Production.INFO: ==27417== Releasing lock... [2025-03-03 01:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:40:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:41:01] Production.INFO: ==27490== Lock acquired, processing the job... [2025-03-03 06:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:41:01] Production.INFO: neon service started [2025-03-03 06:41:01] Production.INFO: neon service started [2025-03-03 06:41:01] Production.INFO: ==27490== Releasing lock... [2025-03-03 06:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:41:02] Production.INFO: ==27492== Lock acquired, processing the job... [2025-03-03 01:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:41:02] Production.INFO: ==27492== Releasing lock... [2025-03-03 01:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:41:02] Production.INFO: ==27494== Lock acquired, processing the job... [2025-03-03 06:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:41:02] Production.INFO: ==27494== Releasing lock... [2025-03-03 06:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:41:03] Production.INFO: ==27496== Lock acquired, processing the job... [2025-03-03 01:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:41:03] Production.INFO: ==27498== Lock acquired, processing the job... [2025-03-03 01:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:41:03] Production.INFO: ==27502== Lock acquired, processing the job... [2025-03-03 01:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:41:03] Production.INFO: Account Balance Start. [2025-03-03 01:41:03] Production.INFO: CreateAllLog Start [2025-03-03 01:41:03] Production.INFO: 117 [2025-03-03 01:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:03] Production.INFO: ==27500== Lock acquired, processing the job... [2025-03-03 01:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:41:03] Production.INFO: ==27504== Lock acquired, processing the job... [2025-03-03 01:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:41:03] Production.INFO: ==27507== Lock acquired, processing the job... [2025-03-03 01:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: ==27498== Releasing lock... [2025-03-03 01:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: count ==13 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:41:04] Production.INFO: count ==21 [2025-03-03 01:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595163') start [2025-03-03 01:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595163') end [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:41:04] Production.INFO: 1 [2025-03-03 01:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:41:04] Production.ERROR: done [2025-03-03 01:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:41:04] Production.INFO: ==27507== Releasing lock... [2025-03-03 01:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.ERROR: done [2025-03-03 01:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:41:04] Production.INFO: Total Charge 0 [2025-03-03 01:41:04] Production.INFO: CreateAllLog End [2025-03-03 01:41:05] Production.INFO: Account Balance End. [2025-03-03 01:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:41:05] Production.INFO: ==27502== Releasing lock... [2025-03-03 01:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:41:13] Production.ERROR: CronJobId end10 [2025-03-03 01:41:13] Production.INFO: ==27500== Releasing lock... [2025-03-03 01:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:41:16] Production.INFO: call_cost start [2025-03-03 01:41:16] Production.INFO: call_cost end [2025-03-03 01:41:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:41:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:41:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:41:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:41:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:41:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:41:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:41:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:41:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:41:16] Production.INFO: ==27496== Releasing lock... [2025-03-03 01:41:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:41:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:41:16] Production.INFO: count ==409 [2025-03-03 01:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595164', 'tblTempUsageDetail_20' ) start [2025-03-03 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595164', 'tblTempUsageDetail_20' ) end [2025-03-03 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595164', 'tblTempVendorCDR_20' ) start [2025-03-03 01:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595164', 'tblTempVendorCDR_20' ) end [2025-03-03 01:41:16] Production.INFO: ProcessCDR(1,14595164,1,1,2) [2025-03-03 01:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595164', 'tblTempUsageDetail_20' ) start [2025-03-03 01:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595164', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:41:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:41:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:41:25] Production.INFO: ==27504== Releasing lock... [2025-03-03 01:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:41:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:42:02] Production.INFO: ==27561== Lock acquired, processing the job... [2025-03-03 06:42:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:42:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:42:02] Production.INFO: neon service started [2025-03-03 06:42:02] Production.INFO: neon service started [2025-03-03 06:42:02] Production.INFO: ==27561== Releasing lock... [2025-03-03 06:42:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:42:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:42:03] Production.INFO: ==27564== Lock acquired, processing the job... [2025-03-03 01:42:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:42:03] Production.INFO: ==27566== Lock acquired, processing the job... [2025-03-03 06:42:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:42:03] Production.INFO: ==27566== Releasing lock... [2025-03-03 06:42:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:42:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:42:03] Production.INFO: ==27564== Releasing lock... [2025-03-03 01:42:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:42:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:42:04] Production.INFO: ==27568== Lock acquired, processing the job... [2025-03-03 01:42:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:42:04] Production.INFO: ==27570== Lock acquired, processing the job... [2025-03-03 01:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:42:04] Production.INFO: ==27574== Lock acquired, processing the job... [2025-03-03 01:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:42:04] Production.INFO: Account Balance Start. [2025-03-03 01:42:04] Production.INFO: CreateAllLog Start [2025-03-03 01:42:04] Production.INFO: 117 [2025-03-03 01:42:04] Production.INFO: ==27572== Lock acquired, processing the job... [2025-03-03 01:42:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:04] Production.INFO: ==27570== Releasing lock... [2025-03-03 01:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:04] Production.INFO: ==27578== Lock acquired, processing the job... [2025-03-03 01:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:42:04] Production.INFO: ==27576== Lock acquired, processing the job... [2025-03-03 01:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.INFO: count ==13 [2025-03-03 01:42:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:42:05] Production.INFO: count ==21 [2025-03-03 01:42:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595168') start [2025-03-03 01:42:05] Production.INFO: Date 2025-02-13 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595168') end [2025-03-03 01:42:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:42:05] Production.INFO: 1 [2025-03-03 01:42:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:42:05] Production.INFO: Date 2025-02-14 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.INFO: ==27578== Releasing lock... [2025-03-03 01:42:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:42:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:42:05] Production.ERROR: done [2025-03-03 01:42:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:42:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.ERROR: done [2025-03-03 01:42:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:42:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-21 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-22 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-23 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-24 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-25 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-26 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-27 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-02-28 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-03-01 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-03-02 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Date 2025-03-03 [2025-03-03 01:42:06] Production.INFO: Reseller ==> 0 [2025-03-03 01:42:06] Production.INFO: Total Charge 0 [2025-03-03 01:42:06] Production.INFO: CreateAllLog End [2025-03-03 01:42:06] Production.INFO: Account Balance End. [2025-03-03 01:42:06] Production.ERROR: CronJobId end 12 [2025-03-03 01:42:06] Production.INFO: ==27574== Releasing lock... [2025-03-03 01:42:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:42:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:42:12] Production.ERROR: CronJobId end10 [2025-03-03 01:42:12] Production.INFO: ==27572== Releasing lock... [2025-03-03 01:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:42:15] Production.INFO: call_cost start [2025-03-03 01:42:15] Production.INFO: call_cost end [2025-03-03 01:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:42:15] Production.INFO: ==27568== Releasing lock... [2025-03-03 01:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:42:17] Production.INFO: count ==409 [2025-03-03 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595169', 'tblTempUsageDetail_20' ) start [2025-03-03 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595169', 'tblTempUsageDetail_20' ) end [2025-03-03 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595169', 'tblTempVendorCDR_20' ) start [2025-03-03 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595169', 'tblTempVendorCDR_20' ) end [2025-03-03 01:42:17] Production.INFO: ProcessCDR(1,14595169,1,1,2) [2025-03-03 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595169', 'tblTempUsageDetail_20' ) start [2025-03-03 01:42:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595169', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:42:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:42:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:42:26] Production.INFO: ==27576== Releasing lock... [2025-03-03 01:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:42:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:43:01] Production.INFO: ==27632== Lock acquired, processing the job... [2025-03-03 06:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:43:01] Production.INFO: neon service started [2025-03-03 06:43:01] Production.INFO: neon service started [2025-03-03 06:43:01] Production.INFO: ==27632== Releasing lock... [2025-03-03 06:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:43:02] Production.INFO: ==27637== Lock acquired, processing the job... [2025-03-03 01:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:43:02] Production.INFO: ==27637== Releasing lock... [2025-03-03 01:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:43:02] Production.INFO: ==27639== Lock acquired, processing the job... [2025-03-03 06:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:43:02] Production.INFO: ==27639== Releasing lock... [2025-03-03 06:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:43:03] Production.INFO: ==27641== Lock acquired, processing the job... [2025-03-03 01:43:03] Production.INFO: ==27645== Lock acquired, processing the job... [2025-03-03 01:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:43:03] Production.INFO: ==27643== Lock acquired, processing the job... [2025-03-03 01:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:43:03] Production.INFO: ==27651== Lock acquired, processing the job... [2025-03-03 01:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:43:03] Production.INFO: ==27647== Lock acquired, processing the job... [2025-03-03 01:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:43:03] Production.INFO: ==27649== Lock acquired, processing the job... [2025-03-03 01:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:43:03] Production.INFO: count ==13 [2025-03-03 01:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:43:03] Production.INFO: count ==21 [2025-03-03 01:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595171') start [2025-03-03 01:43:03] Production.INFO: ==27643== Releasing lock... [2025-03-03 01:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:43:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:43:03] Production.INFO: Account Balance Start. [2025-03-03 01:43:03] Production.INFO: CreateAllLog Start [2025-03-03 01:43:03] Production.INFO: 117 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595171') end [2025-03-03 01:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:43:04] Production.INFO: 1 [2025-03-03 01:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.ERROR: done [2025-03-03 01:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:43:04] Production.INFO: ==27651== Releasing lock... [2025-03-03 01:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:43:04] Production.ERROR: done [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:43:05] Production.INFO: Total Charge 0 [2025-03-03 01:43:05] Production.INFO: CreateAllLog End [2025-03-03 01:43:05] Production.INFO: Account Balance End. [2025-03-03 01:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:43:05] Production.INFO: ==27647== Releasing lock... [2025-03-03 01:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:43:11] Production.ERROR: CronJobId end10 [2025-03-03 01:43:11] Production.INFO: ==27645== Releasing lock... [2025-03-03 01:43:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:43:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:43:14] Production.INFO: call_cost start [2025-03-03 01:43:14] Production.INFO: call_cost end [2025-03-03 01:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:43:14] Production.INFO: ==27641== Releasing lock... [2025-03-03 01:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:43:16] Production.INFO: count ==409 [2025-03-03 01:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595174', 'tblTempUsageDetail_20' ) start [2025-03-03 01:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595174', 'tblTempUsageDetail_20' ) end [2025-03-03 01:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595174', 'tblTempVendorCDR_20' ) start [2025-03-03 01:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595174', 'tblTempVendorCDR_20' ) end [2025-03-03 01:43:16] Production.INFO: ProcessCDR(1,14595174,1,1,2) [2025-03-03 01:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595174', 'tblTempUsageDetail_20' ) start [2025-03-03 01:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595174', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:43:24] Production.INFO: ==27649== Releasing lock... [2025-03-03 01:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:44:02] Production.INFO: ==27720== Lock acquired, processing the job... [2025-03-03 06:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:44:02] Production.INFO: neon service started [2025-03-03 06:44:02] Production.INFO: neon service started [2025-03-03 06:44:02] Production.INFO: ==27720== Releasing lock... [2025-03-03 06:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:44:02] Production.INFO: ==27722== Lock acquired, processing the job... [2025-03-03 01:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:44:03] Production.INFO: ==27722== Releasing lock... [2025-03-03 01:44:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:44:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:44:03] Production.INFO: ==27725== Lock acquired, processing the job... [2025-03-03 06:44:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:44:03] Production.INFO: ==27725== Releasing lock... [2025-03-03 06:44:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:44:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:44:04] Production.INFO: ==27727== Lock acquired, processing the job... [2025-03-03 01:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:44:04] Production.INFO: ==27729== Lock acquired, processing the job... [2025-03-03 01:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:44:04] Production.INFO: ==27737== Lock acquired, processing the job... [2025-03-03 01:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:44:04] Production.INFO: ==27731== Lock acquired, processing the job... [2025-03-03 01:44:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:44:04] Production.INFO: count ==13 [2025-03-03 01:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:44:04] Production.INFO: count ==21 [2025-03-03 01:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595177') start [2025-03-03 01:44:04] Production.INFO: ==27733== Lock acquired, processing the job... [2025-03-03 01:44:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:44:04] Production.INFO: ==27729== Releasing lock... [2025-03-03 01:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:44:04] Production.INFO: ==27735== Lock acquired, processing the job... [2025-03-03 01:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:44:04] Production.INFO: Account Balance Start. [2025-03-03 01:44:04] Production.INFO: CreateAllLog Start [2025-03-03 01:44:04] Production.INFO: 117 [2025-03-03 01:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595177') end [2025-03-03 01:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:44:04] Production.INFO: 1 [2025-03-03 01:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:44:04] Production.INFO: ==27737== Releasing lock... [2025-03-03 01:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:04] Production.ERROR: done [2025-03-03 01:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.ERROR: done [2025-03-03 01:44:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:44:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:44:05] Production.INFO: Total Charge 0 [2025-03-03 01:44:05] Production.INFO: CreateAllLog End [2025-03-03 01:44:05] Production.INFO: Account Balance End. [2025-03-03 01:44:06] Production.ERROR: CronJobId end 12 [2025-03-03 01:44:06] Production.INFO: ==27733== Releasing lock... [2025-03-03 01:44:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:44:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:44:12] Production.ERROR: CronJobId end10 [2025-03-03 01:44:12] Production.INFO: ==27731== Releasing lock... [2025-03-03 01:44:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:44:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:44:15] Production.INFO: call_cost start [2025-03-03 01:44:15] Production.INFO: call_cost end [2025-03-03 01:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:44:15] Production.INFO: ==27727== Releasing lock... [2025-03-03 01:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:44:17] Production.INFO: count ==409 [2025-03-03 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595179', 'tblTempUsageDetail_20' ) start [2025-03-03 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595179', 'tblTempUsageDetail_20' ) end [2025-03-03 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595179', 'tblTempVendorCDR_20' ) start [2025-03-03 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595179', 'tblTempVendorCDR_20' ) end [2025-03-03 01:44:17] Production.INFO: ProcessCDR(1,14595179,1,1,2) [2025-03-03 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595179', 'tblTempUsageDetail_20' ) start [2025-03-03 01:44:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595179', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:44:25] Production.INFO: ==27735== Releasing lock... [2025-03-03 01:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:44:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:45:01] Production.INFO: ==27808== Lock acquired, processing the job... [2025-03-03 06:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:45:01] Production.INFO: neon service started [2025-03-03 06:45:01] Production.INFO: neon service started [2025-03-03 06:45:01] Production.INFO: ==27808== Releasing lock... [2025-03-03 06:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:45:02] Production.INFO: ==27810== Lock acquired, processing the job... [2025-03-03 01:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:45:02] Production.INFO: ==27810== Releasing lock... [2025-03-03 01:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:45:02] Production.INFO: ==27812== Lock acquired, processing the job... [2025-03-03 06:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:45:02] Production.INFO: ==27812== Releasing lock... [2025-03-03 06:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:45:03] Production.INFO: ==27816== Lock acquired, processing the job... [2025-03-03 01:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:45:03] Production.INFO: ==27824== Lock acquired, processing the job... [2025-03-03 01:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:45:03] Production.INFO: ==27814== Lock acquired, processing the job... [2025-03-03 01:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:45:03] Production.INFO: ==27818== Lock acquired, processing the job... [2025-03-03 01:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:45:03] Production.INFO: ==27820== Lock acquired, processing the job... [2025-03-03 01:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:45:03] Production.INFO: ==27816== Releasing lock... [2025-03-03 01:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:45:03] Production.INFO: ==27822== Lock acquired, processing the job... [2025-03-03 01:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:45:03] Production.INFO: count ==13 [2025-03-03 01:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:45:03] Production.INFO: count ==21 [2025-03-03 01:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:45:03] Production.INFO: Account Balance Start. [2025-03-03 01:45:03] Production.INFO: CreateAllLog Start [2025-03-03 01:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595181') start [2025-03-03 01:45:03] Production.INFO: 117 [2025-03-03 01:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595181') end [2025-03-03 01:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:45:04] Production.INFO: 1 [2025-03-03 01:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: ==27824== Releasing lock... [2025-03-03 01:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.ERROR: done [2025-03-03 01:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.ERROR: done [2025-03-03 01:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:45:05] Production.INFO: Total Charge 0 [2025-03-03 01:45:05] Production.INFO: CreateAllLog End [2025-03-03 01:45:05] Production.INFO: Account Balance End. [2025-03-03 01:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:45:05] Production.INFO: ==27820== Releasing lock... [2025-03-03 01:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:45:12] Production.ERROR: CronJobId end10 [2025-03-03 01:45:12] Production.INFO: ==27818== Releasing lock... [2025-03-03 01:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:45:15] Production.INFO: call_cost start [2025-03-03 01:45:15] Production.INFO: call_cost end [2025-03-03 01:45:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:45:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:45:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:45:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:45:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:45:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:45:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:45:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:45:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:45:15] Production.INFO: ==27814== Releasing lock... [2025-03-03 01:45:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:45:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:45:16] Production.INFO: count ==409 [2025-03-03 01:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595184', 'tblTempUsageDetail_20' ) start [2025-03-03 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595184', 'tblTempUsageDetail_20' ) end [2025-03-03 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595184', 'tblTempVendorCDR_20' ) start [2025-03-03 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595184', 'tblTempVendorCDR_20' ) end [2025-03-03 01:45:16] Production.INFO: ProcessCDR(1,14595184,1,1,2) [2025-03-03 01:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595184', 'tblTempUsageDetail_20' ) start [2025-03-03 01:45:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595184', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:45:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:45:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:45:25] Production.INFO: ==27822== Releasing lock... [2025-03-03 01:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:45:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:46:02] Production.INFO: ==27888== Lock acquired, processing the job... [2025-03-03 06:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:46:02] Production.INFO: neon service started [2025-03-03 06:46:02] Production.INFO: neon service started [2025-03-03 06:46:02] Production.INFO: ==27888== Releasing lock... [2025-03-03 06:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:46:02] Production.INFO: ==27890== Lock acquired, processing the job... [2025-03-03 01:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:46:03] Production.INFO: ==27890== Releasing lock... [2025-03-03 01:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:46:03] Production.INFO: ==27892== Lock acquired, processing the job... [2025-03-03 06:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:46:03] Production.INFO: ==27892== Releasing lock... [2025-03-03 06:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:46:04] Production.INFO: ==27898== Lock acquired, processing the job... [2025-03-03 01:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:46:04] Production.INFO: ==27894== Lock acquired, processing the job... [2025-03-03 01:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:46:04] Production.INFO: ==27901== Lock acquired, processing the job... [2025-03-03 01:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:46:04] Production.INFO: ==27896== Lock acquired, processing the job... [2025-03-03 01:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:46:04] Production.INFO: Account Balance Start. [2025-03-03 01:46:04] Production.INFO: CreateAllLog Start [2025-03-03 01:46:04] Production.INFO: 117 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:46:04] Production.INFO: ==27903== Lock acquired, processing the job... [2025-03-03 01:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: ==27905== Lock acquired, processing the job... [2025-03-03 01:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:04] Production.INFO: ==27896== Releasing lock... [2025-03-03 01:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:46:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: count ==13 [2025-03-03 01:46:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:46:05] Production.INFO: count ==21 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595188') start [2025-03-03 01:46:05] Production.ERROR: done [2025-03-03 01:46:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.ERROR: done [2025-03-03 01:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595188') end [2025-03-03 01:46:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:46:05] Production.INFO: 1 [2025-03-03 01:46:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: ==27905== Releasing lock... [2025-03-03 01:46:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:46:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:46:05] Production.INFO: Total Charge 0 [2025-03-03 01:46:05] Production.INFO: CreateAllLog End [2025-03-03 01:46:05] Production.INFO: Account Balance End. [2025-03-03 01:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:46:05] Production.INFO: ==27901== Releasing lock... [2025-03-03 01:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:46:12] Production.ERROR: CronJobId end10 [2025-03-03 01:46:12] Production.INFO: ==27898== Releasing lock... [2025-03-03 01:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:46:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:46:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:46:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:46:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:46:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:46:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:46:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:46:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:46:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:46:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:46:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:46:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:46:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:46:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:46:17] Production.INFO: call_cost start [2025-03-03 01:46:17] Production.INFO: call_cost end [2025-03-03 01:46:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:46:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:46:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:46:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:46:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:46:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:46:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:46:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:46:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:46:17] Production.INFO: ==27894== Releasing lock... [2025-03-03 01:46:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:46:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:46:17] Production.INFO: count ==409 [2025-03-03 01:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595189', 'tblTempUsageDetail_20' ) start [2025-03-03 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595189', 'tblTempUsageDetail_20' ) end [2025-03-03 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595189', 'tblTempVendorCDR_20' ) start [2025-03-03 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595189', 'tblTempVendorCDR_20' ) end [2025-03-03 01:46:17] Production.INFO: ProcessCDR(1,14595189,1,1,2) [2025-03-03 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595189', 'tblTempUsageDetail_20' ) start [2025-03-03 01:46:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595189', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:46:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:46:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:46:26] Production.INFO: ==27903== Releasing lock... [2025-03-03 01:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:46:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:47:01] Production.INFO: ==27971== Lock acquired, processing the job... [2025-03-03 06:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:47:01] Production.INFO: neon service started [2025-03-03 06:47:01] Production.INFO: neon service started [2025-03-03 06:47:01] Production.INFO: ==27971== Releasing lock... [2025-03-03 06:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:47:02] Production.INFO: ==27973== Lock acquired, processing the job... [2025-03-03 01:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:47:02] Production.INFO: ==27973== Releasing lock... [2025-03-03 01:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:47:02] Production.INFO: ==27975== Lock acquired, processing the job... [2025-03-03 06:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:47:02] Production.INFO: ==27975== Releasing lock... [2025-03-03 06:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:47:03] Production.INFO: ==27988== Lock acquired, processing the job... [2025-03-03 01:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:47:03] Production.INFO: count ==13 [2025-03-03 01:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:47:03] Production.INFO: count ==21 [2025-03-03 01:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595190') start [2025-03-03 01:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595190') end [2025-03-03 01:47:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:47:03] Production.INFO: 1 [2025-03-03 01:47:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:47:03] Production.INFO: ==27988== Releasing lock... [2025-03-03 01:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:47:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:47:03] Production.INFO: ==27977== Lock acquired, processing the job... [2025-03-03 01:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:47:03] Production.INFO: ==27985== Lock acquired, processing the job... [2025-03-03 01:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:47:03] Production.INFO: ==27979== Lock acquired, processing the job... [2025-03-03 01:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:47:04] Production.INFO: ==27981== Lock acquired, processing the job... [2025-03-03 01:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:47:04] Production.INFO: ==27983== Lock acquired, processing the job... [2025-03-03 01:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:47:04] Production.INFO: ==27979== Releasing lock... [2025-03-03 01:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:47:04] Production.INFO: Account Balance Start. [2025-03-03 01:47:04] Production.INFO: CreateAllLog Start [2025-03-03 01:47:04] Production.INFO: 117 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.ERROR: done [2025-03-03 01:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.ERROR: done [2025-03-03 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:47:05] Production.INFO: Total Charge 0 [2025-03-03 01:47:05] Production.INFO: CreateAllLog End [2025-03-03 01:47:05] Production.INFO: Account Balance End. [2025-03-03 01:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:47:05] Production.INFO: ==27983== Releasing lock... [2025-03-03 01:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:47:12] Production.ERROR: CronJobId end10 [2025-03-03 01:47:12] Production.INFO: ==27981== Releasing lock... [2025-03-03 01:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:47:16] Production.INFO: call_cost start [2025-03-03 01:47:16] Production.INFO: call_cost end [2025-03-03 01:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:47:16] Production.INFO: ==27977== Releasing lock... [2025-03-03 01:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:47:16] Production.INFO: count ==409 [2025-03-03 01:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595194', 'tblTempUsageDetail_20' ) start [2025-03-03 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595194', 'tblTempUsageDetail_20' ) end [2025-03-03 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595194', 'tblTempVendorCDR_20' ) start [2025-03-03 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595194', 'tblTempVendorCDR_20' ) end [2025-03-03 01:47:16] Production.INFO: ProcessCDR(1,14595194,1,1,2) [2025-03-03 01:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595194', 'tblTempUsageDetail_20' ) start [2025-03-03 01:47:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595194', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:47:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:47:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:47:25] Production.INFO: ==27985== Releasing lock... [2025-03-03 01:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:47:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:48:02] Production.INFO: ==28047== Lock acquired, processing the job... [2025-03-03 06:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:48:02] Production.INFO: neon service started [2025-03-03 06:48:02] Production.INFO: neon service started [2025-03-03 06:48:02] Production.INFO: ==28047== Releasing lock... [2025-03-03 06:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:48:02] Production.INFO: ==28050== Lock acquired, processing the job... [2025-03-03 01:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:48:03] Production.INFO: ==28050== Releasing lock... [2025-03-03 01:48:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:48:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:48:03] Production.INFO: ==28052== Lock acquired, processing the job... [2025-03-03 06:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:48:03] Production.INFO: ==28052== Releasing lock... [2025-03-03 06:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:48:04] Production.INFO: ==28058== Lock acquired, processing the job... [2025-03-03 01:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:48:04] Production.INFO: ==28064== Lock acquired, processing the job... [2025-03-03 01:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:48:04] Production.INFO: ==28054== Lock acquired, processing the job... [2025-03-03 01:48:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:48:04] Production.INFO: ==28056== Lock acquired, processing the job... [2025-03-03 01:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:48:04] Production.INFO: count ==13 [2025-03-03 01:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:48:04] Production.INFO: count ==21 [2025-03-03 01:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595195') start [2025-03-03 01:48:04] Production.INFO: ==28060== Lock acquired, processing the job... [2025-03-03 01:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:48:04] Production.INFO: ==28062== Lock acquired, processing the job... [2025-03-03 01:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595195') end [2025-03-03 01:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:48:04] Production.INFO: 1 [2025-03-03 01:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:48:04] Production.INFO: Account Balance Start. [2025-03-03 01:48:04] Production.INFO: CreateAllLog Start [2025-03-03 01:48:04] Production.INFO: 117 [2025-03-03 01:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:04] Production.INFO: ==28064== Releasing lock... [2025-03-03 01:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:04] Production.INFO: ==28056== Releasing lock... [2025-03-03 01:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.ERROR: done [2025-03-03 01:48:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.ERROR: done [2025-03-03 01:48:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:48:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:48:05] Production.INFO: Total Charge 0 [2025-03-03 01:48:05] Production.INFO: CreateAllLog End [2025-03-03 01:48:05] Production.INFO: Account Balance End. [2025-03-03 01:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:48:05] Production.INFO: ==28060== Releasing lock... [2025-03-03 01:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:48:12] Production.ERROR: CronJobId end10 [2025-03-03 01:48:12] Production.INFO: ==28058== Releasing lock... [2025-03-03 01:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:48:15] Production.INFO: call_cost start [2025-03-03 01:48:15] Production.INFO: call_cost end [2025-03-03 01:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:48:15] Production.INFO: ==28054== Releasing lock... [2025-03-03 01:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:48:17] Production.INFO: count ==409 [2025-03-03 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595199', 'tblTempUsageDetail_20' ) start [2025-03-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595199', 'tblTempUsageDetail_20' ) end [2025-03-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595199', 'tblTempVendorCDR_20' ) start [2025-03-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595199', 'tblTempVendorCDR_20' ) end [2025-03-03 01:48:17] Production.INFO: ProcessCDR(1,14595199,1,1,2) [2025-03-03 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595199', 'tblTempUsageDetail_20' ) start [2025-03-03 01:48:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595199', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:48:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:48:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:48:26] Production.INFO: ==28062== Releasing lock... [2025-03-03 01:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:48:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:49:01] Production.INFO: ==28124== Lock acquired, processing the job... [2025-03-03 06:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:49:01] Production.INFO: neon service started [2025-03-03 06:49:01] Production.INFO: neon service started [2025-03-03 06:49:01] Production.INFO: ==28124== Releasing lock... [2025-03-03 06:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:49:02] Production.INFO: ==28127== Lock acquired, processing the job... [2025-03-03 01:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:49:02] Production.INFO: ==28129== Lock acquired, processing the job... [2025-03-03 06:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:49:02] Production.INFO: ==28129== Releasing lock... [2025-03-03 06:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:49:03] Production.INFO: ==28127== Releasing lock... [2025-03-03 01:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:49:03] Production.INFO: ==28132== Lock acquired, processing the job... [2025-03-03 01:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:49:04] Production.INFO: ==28134== Lock acquired, processing the job... [2025-03-03 01:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:49:04] Production.INFO: ==28142== Lock acquired, processing the job... [2025-03-03 01:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:49:04] Production.INFO: ==28136== Lock acquired, processing the job... [2025-03-03 01:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:49:04] Production.INFO: ==28138== Lock acquired, processing the job... [2025-03-03 01:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:49:04] Production.INFO: ==28140== Lock acquired, processing the job... [2025-03-03 01:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:49:04] Production.INFO: count ==13 [2025-03-03 01:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:49:04] Production.INFO: count ==21 [2025-03-03 01:49:04] Production.INFO: ==28134== Releasing lock... [2025-03-03 01:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595202') start [2025-03-03 01:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595202') end [2025-03-03 01:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:49:04] Production.INFO: 1 [2025-03-03 01:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:49:04] Production.INFO: Account Balance Start. [2025-03-03 01:49:04] Production.INFO: CreateAllLog Start [2025-03-03 01:49:04] Production.INFO: 117 [2025-03-03 01:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:49:04] Production.INFO: ==28142== Releasing lock... [2025-03-03 01:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:04] Production.ERROR: done [2025-03-03 01:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-14 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.ERROR: done [2025-03-03 01:49:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:49:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:49:05] Production.INFO: Total Charge 0 [2025-03-03 01:49:06] Production.INFO: CreateAllLog End [2025-03-03 01:49:06] Production.INFO: Account Balance End. [2025-03-03 01:49:06] Production.ERROR: CronJobId end 12 [2025-03-03 01:49:06] Production.INFO: ==28138== Releasing lock... [2025-03-03 01:49:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:49:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:49:12] Production.ERROR: CronJobId end10 [2025-03-03 01:49:12] Production.INFO: ==28136== Releasing lock... [2025-03-03 01:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:49:15] Production.INFO: call_cost start [2025-03-03 01:49:15] Production.INFO: call_cost end [2025-03-03 01:49:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:49:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:49:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:49:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:49:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:49:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:49:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:49:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:49:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:49:15] Production.INFO: ==28132== Releasing lock... [2025-03-03 01:49:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:49:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:49:17] Production.INFO: count ==409 [2025-03-03 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595204', 'tblTempUsageDetail_20' ) start [2025-03-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595204', 'tblTempUsageDetail_20' ) end [2025-03-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595204', 'tblTempVendorCDR_20' ) start [2025-03-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595204', 'tblTempVendorCDR_20' ) end [2025-03-03 01:49:17] Production.INFO: ProcessCDR(1,14595204,1,1,2) [2025-03-03 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595204', 'tblTempUsageDetail_20' ) start [2025-03-03 01:49:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595204', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:49:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:49:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:49:25] Production.INFO: ==28140== Releasing lock... [2025-03-03 01:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:49:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:50:01] Production.INFO: ==28200== Lock acquired, processing the job... [2025-03-03 06:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:50:01] Production.INFO: neon service started [2025-03-03 06:50:01] Production.INFO: neon service started [2025-03-03 06:50:01] Production.INFO: ==28200== Releasing lock... [2025-03-03 06:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:50:01] Production.INFO: ==28202== Lock acquired, processing the job... [2025-03-03 01:50:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:50:02] Production.INFO: ==28204== Lock acquired, processing the job... [2025-03-03 06:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:50:02] Production.INFO: ==28204== Releasing lock... [2025-03-03 06:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:50:02] Production.INFO: ==28202== Releasing lock... [2025-03-03 01:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:50:03] Production.INFO: ==28217== Lock acquired, processing the job... [2025-03-03 01:50:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:50:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:50:03] Production.INFO: ==28221== Lock acquired, processing the job... [2025-03-03 01:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:50:03] Production.ERROR: done [2025-03-03 01:50:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:50:03] Production.INFO: ==28219== Lock acquired, processing the job... [2025-03-03 01:50:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 01:50:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:50:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:50:04] Production.ERROR: done [2025-03-03 01:50:04] Production.INFO: count ==13 [2025-03-03 01:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:50:04] Production.INFO: count ==21 [2025-03-03 01:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595205') start [2025-03-03 01:50:04] Production.INFO: ==28207== Lock acquired, processing the job... [2025-03-03 01:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 01:50:04] Production.INFO: ==28209== Lock acquired, processing the job... [2025-03-03 01:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:50:04] Production.INFO: ==28211== Lock acquired, processing the job... [2025-03-03 01:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:50:04] Production.INFO: ==28213== Lock acquired, processing the job... [2025-03-03 01:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:50:04] Production.INFO: ==28215== Lock acquired, processing the job... [2025-03-03 01:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595205') end [2025-03-03 01:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:50:04] Production.INFO: 1 [2025-03-03 01:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:50:04] Production.INFO: Account Balance Start. [2025-03-03 01:50:04] Production.INFO: CreateAllLog Start [2025-03-03 01:50:04] Production.INFO: 117 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28209 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28211 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 7 [2025-03-03 01:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28213 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 10 [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28215 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28217 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 16 [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28219 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 17 [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 01:50:04] Production.ERROR: CronJob PID - 28221 [2025-03-03 01:50:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 01:50:04] Production.ERROR: CronJob ID - 19 [2025-03-03 01:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 01:50:00 [2025-03-03 01:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 01:50:04] Production.INFO: ==28207== Releasing lock... [2025-03-03 01:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 01:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 01:50:04] Production.INFO: ==28221== Releasing lock... [2025-03-03 01:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:50:04] Production.ERROR: done [2025-03-03 01:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 01:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595210', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 01:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: ==28211== Releasing lock... [2025-03-03 01:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:50:05] Production.INFO: Total Charge 0 [2025-03-03 01:50:05] Production.INFO: CreateAllLog End [2025-03-03 01:50:05] Production.INFO: Account Balance End. [2025-03-03 01:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:50:05] Production.INFO: ==28215== Releasing lock... [2025-03-03 01:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595210', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 01:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 01:50:09] Production.INFO: ProcessCDR(1,14595210,1,1,2) [2025-03-03 01:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595210,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595210,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 01:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 01:50:09] Production.INFO: ==28219== Releasing lock... [2025-03-03 01:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 01:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:50:15] Production.ERROR: CronJobId end10 [2025-03-03 01:50:15] Production.INFO: ==28213== Releasing lock... [2025-03-03 01:50:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:50:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:50:15] Production.INFO: count ==409 [2025-03-03 01:50:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:50:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595206', 'tblTempUsageDetail_20' ) start [2025-03-03 01:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595206', 'tblTempUsageDetail_20' ) end [2025-03-03 01:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595206', 'tblTempVendorCDR_20' ) start [2025-03-03 01:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595206', 'tblTempVendorCDR_20' ) end [2025-03-03 01:50:16] Production.INFO: ProcessCDR(1,14595206,1,1,2) [2025-03-03 01:50:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:50:17] Production.INFO: call_cost start [2025-03-03 01:50:17] Production.INFO: call_cost end [2025-03-03 01:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:50:17] Production.INFO: ==28209== Releasing lock... [2025-03-03 01:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595206', 'tblTempUsageDetail_20' ) start [2025-03-03 01:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595206', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:50:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:50:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:50:24] Production.INFO: ==28217== Releasing lock... [2025-03-03 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:51:01] Production.INFO: ==28290== Lock acquired, processing the job... [2025-03-03 06:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:51:02] Production.INFO: neon service started [2025-03-03 06:51:02] Production.INFO: neon service started [2025-03-03 06:51:02] Production.INFO: ==28290== Releasing lock... [2025-03-03 06:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:51:02] Production.INFO: ==28292== Lock acquired, processing the job... [2025-03-03 01:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:51:02] Production.INFO: ==28294== Lock acquired, processing the job... [2025-03-03 06:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:51:02] Production.INFO: ==28294== Releasing lock... [2025-03-03 06:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:51:02] Production.INFO: ==28292== Releasing lock... [2025-03-03 01:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:51:03] Production.INFO: ==28307== Lock acquired, processing the job... [2025-03-03 01:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:51:03] Production.INFO: ==28297== Lock acquired, processing the job... [2025-03-03 01:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:51:04] Production.INFO: ==28305== Lock acquired, processing the job... [2025-03-03 01:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:51:04] Production.INFO: ==28299== Lock acquired, processing the job... [2025-03-03 01:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:51:04] Production.INFO: ==28301== Lock acquired, processing the job... [2025-03-03 01:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:51:04] Production.INFO: ==28303== Lock acquired, processing the job... [2025-03-03 01:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:51:04] Production.INFO: count ==13 [2025-03-03 01:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:51:04] Production.INFO: count ==21 [2025-03-03 01:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595211') start [2025-03-03 01:51:04] Production.INFO: Account Balance Start. [2025-03-03 01:51:04] Production.INFO: CreateAllLog Start [2025-03-03 01:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:51:04] Production.INFO: 117 [2025-03-03 01:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595211') end [2025-03-03 01:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:51:04] Production.INFO: 1 [2025-03-03 01:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: ==28307== Releasing lock... [2025-03-03 01:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:51:04] Production.ERROR: done [2025-03-03 01:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: ==28299== Releasing lock... [2025-03-03 01:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.ERROR: done [2025-03-03 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:51:05] Production.INFO: Total Charge 0 [2025-03-03 01:51:05] Production.INFO: CreateAllLog End [2025-03-03 01:51:06] Production.INFO: Account Balance End. [2025-03-03 01:51:06] Production.ERROR: CronJobId end 12 [2025-03-03 01:51:06] Production.INFO: ==28303== Releasing lock... [2025-03-03 01:51:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:51:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:51:11] Production.ERROR: CronJobId end10 [2025-03-03 01:51:11] Production.INFO: ==28301== Releasing lock... [2025-03-03 01:51:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:51:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:51:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:51:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:51:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:51:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:51:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:51:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:51:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:51:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:51:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:51:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:51:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:51:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:51:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:51:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:51:16] Production.INFO: call_cost start [2025-03-03 01:51:16] Production.INFO: call_cost end [2025-03-03 01:51:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:51:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:51:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:51:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:51:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:51:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:51:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:51:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:51:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:51:16] Production.INFO: ==28297== Releasing lock... [2025-03-03 01:51:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:51:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:51:16] Production.INFO: count ==409 [2025-03-03 01:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595215', 'tblTempUsageDetail_20' ) start [2025-03-03 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595215', 'tblTempUsageDetail_20' ) end [2025-03-03 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595215', 'tblTempVendorCDR_20' ) start [2025-03-03 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595215', 'tblTempVendorCDR_20' ) end [2025-03-03 01:51:16] Production.INFO: ProcessCDR(1,14595215,1,1,2) [2025-03-03 01:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595215', 'tblTempUsageDetail_20' ) start [2025-03-03 01:51:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595215', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:51:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:51:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:51:25] Production.INFO: ==28305== Releasing lock... [2025-03-03 01:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:51:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:52:01] Production.INFO: ==28363== Lock acquired, processing the job... [2025-03-03 06:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:52:01] Production.INFO: neon service started [2025-03-03 06:52:01] Production.INFO: neon service started [2025-03-03 06:52:01] Production.INFO: ==28363== Releasing lock... [2025-03-03 06:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:52:01] Production.INFO: ==28367== Lock acquired, processing the job... [2025-03-03 06:52:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:52:01] Production.INFO: ==28367== Releasing lock... [2025-03-03 06:52:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:52:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:52:02] Production.INFO: ==28365== Lock acquired, processing the job... [2025-03-03 01:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:52:02] Production.INFO: ==28365== Releasing lock... [2025-03-03 01:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:52:03] Production.INFO: ==28378== Lock acquired, processing the job... [2025-03-03 01:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:52:03] Production.INFO: ==28380== Lock acquired, processing the job... [2025-03-03 01:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:52:03] Production.INFO: ==28370== Lock acquired, processing the job... [2025-03-03 01:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:52:03] Production.INFO: ==28372== Lock acquired, processing the job... [2025-03-03 01:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:52:03] Production.INFO: ==28376== Lock acquired, processing the job... [2025-03-03 01:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:52:03] Production.INFO: count ==13 [2025-03-03 01:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:52:03] Production.INFO: count ==21 [2025-03-03 01:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595216') start [2025-03-03 01:52:03] Production.INFO: ==28374== Lock acquired, processing the job... [2025-03-03 01:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595216') end [2025-03-03 01:52:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:52:03] Production.INFO: 1 [2025-03-03 01:52:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:52:03] Production.ERROR: done [2025-03-03 01:52:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:52:03] Production.INFO: Account Balance Start. [2025-03-03 01:52:03] Production.INFO: CreateAllLog Start [2025-03-03 01:52:04] Production.INFO: 117 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: ==28380== Releasing lock... [2025-03-03 01:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:52:04] Production.ERROR: done [2025-03-03 01:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: ==28372== Releasing lock... [2025-03-03 01:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:52:04] Production.INFO: Total Charge 0 [2025-03-03 01:52:05] Production.INFO: CreateAllLog End [2025-03-03 01:52:05] Production.INFO: Account Balance End. [2025-03-03 01:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:52:05] Production.INFO: ==28376== Releasing lock... [2025-03-03 01:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:52:12] Production.ERROR: CronJobId end10 [2025-03-03 01:52:12] Production.INFO: ==28374== Releasing lock... [2025-03-03 01:52:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:52:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:52:16] Production.INFO: call_cost start [2025-03-03 01:52:16] Production.INFO: call_cost end [2025-03-03 01:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:52:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:52:16] Production.INFO: ==28370== Releasing lock... [2025-03-03 01:52:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:52:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:52:16] Production.INFO: count ==409 [2025-03-03 01:52:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595220', 'tblTempUsageDetail_20' ) start [2025-03-03 01:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595220', 'tblTempUsageDetail_20' ) end [2025-03-03 01:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595220', 'tblTempVendorCDR_20' ) start [2025-03-03 01:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595220', 'tblTempVendorCDR_20' ) end [2025-03-03 01:52:16] Production.INFO: ProcessCDR(1,14595220,1,1,2) [2025-03-03 01:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595220', 'tblTempUsageDetail_20' ) start [2025-03-03 01:52:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595220', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:52:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:52:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:52:25] Production.INFO: ==28378== Releasing lock... [2025-03-03 01:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:52:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:53:01] Production.INFO: ==28484== Lock acquired, processing the job... [2025-03-03 06:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:53:01] Production.INFO: neon service started [2025-03-03 06:53:01] Production.INFO: neon service started [2025-03-03 06:53:01] Production.INFO: ==28484== Releasing lock... [2025-03-03 06:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:53:02] Production.INFO: ==28486== Lock acquired, processing the job... [2025-03-03 01:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:53:02] Production.INFO: ==28488== Lock acquired, processing the job... [2025-03-03 06:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:53:02] Production.INFO: ==28488== Releasing lock... [2025-03-03 06:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:53:02] Production.INFO: ==28486== Releasing lock... [2025-03-03 01:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:53:04] Production.INFO: ==28495== Lock acquired, processing the job... [2025-03-03 01:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:53:04] Production.INFO: ==28491== Lock acquired, processing the job... [2025-03-03 01:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:53:04] Production.INFO: ==28499== Lock acquired, processing the job... [2025-03-03 01:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:53:04] Production.INFO: ==28493== Lock acquired, processing the job... [2025-03-03 01:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:53:04] Production.INFO: ==28497== Lock acquired, processing the job... [2025-03-03 01:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:53:04] Production.INFO: ==28501== Lock acquired, processing the job... [2025-03-03 01:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:53:04] Production.INFO: Account Balance Start. [2025-03-03 01:53:04] Production.INFO: CreateAllLog Start [2025-03-03 01:53:04] Production.INFO: 117 [2025-03-03 01:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:04] Production.ERROR: done [2025-03-03 01:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:04] Production.INFO: count ==13 [2025-03-03 01:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:53:04] Production.INFO: count ==21 [2025-03-03 01:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595224') start [2025-03-03 01:53:04] Production.ERROR: done [2025-03-03 01:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595224') end [2025-03-03 01:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:53:04] Production.INFO: 1 [2025-03-03 01:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:04] Production.INFO: ==28493== Releasing lock... [2025-03-03 01:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:53:05] Production.INFO: ==28501== Releasing lock... [2025-03-03 01:53:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:53:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:53:05] Production.INFO: Date 2025-02-13 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-14 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-15 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-16 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-17 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-18 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:53:05] Production.INFO: Total Charge 0 [2025-03-03 01:53:05] Production.INFO: CreateAllLog End [2025-03-03 01:53:05] Production.INFO: Account Balance End. [2025-03-03 01:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:53:05] Production.INFO: ==28497== Releasing lock... [2025-03-03 01:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:53:12] Production.ERROR: CronJobId end10 [2025-03-03 01:53:12] Production.INFO: ==28495== Releasing lock... [2025-03-03 01:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:53:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:53:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:53:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:53:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:53:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:53:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:53:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:53:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:53:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:53:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:53:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:53:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:53:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:53:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:53:16] Production.INFO: call_cost start [2025-03-03 01:53:16] Production.INFO: call_cost end [2025-03-03 01:53:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:53:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:53:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:53:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:53:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:53:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:53:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:53:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:53:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:53:16] Production.INFO: ==28491== Releasing lock... [2025-03-03 01:53:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:53:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:53:17] Production.INFO: count ==409 [2025-03-03 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595225', 'tblTempUsageDetail_20' ) start [2025-03-03 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595225', 'tblTempUsageDetail_20' ) end [2025-03-03 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595225', 'tblTempVendorCDR_20' ) start [2025-03-03 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595225', 'tblTempVendorCDR_20' ) end [2025-03-03 01:53:17] Production.INFO: ProcessCDR(1,14595225,1,1,2) [2025-03-03 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595225', 'tblTempUsageDetail_20' ) start [2025-03-03 01:53:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595225', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:53:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:53:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:53:26] Production.INFO: ==28499== Releasing lock... [2025-03-03 01:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:53:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:54:01] Production.INFO: ==28569== Lock acquired, processing the job... [2025-03-03 06:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:54:01] Production.INFO: neon service started [2025-03-03 06:54:01] Production.INFO: neon service started [2025-03-03 06:54:01] Production.INFO: ==28569== Releasing lock... [2025-03-03 06:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:54:01] Production.INFO: ==28573== Lock acquired, processing the job... [2025-03-03 06:54:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:54:01] Production.INFO: ==28573== Releasing lock... [2025-03-03 06:54:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:54:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:54:02] Production.INFO: ==28571== Lock acquired, processing the job... [2025-03-03 01:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:54:02] Production.INFO: ==28571== Releasing lock... [2025-03-03 01:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:54:03] Production.INFO: ==28578== Lock acquired, processing the job... [2025-03-03 01:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:54:03] Production.INFO: ==28586== Lock acquired, processing the job... [2025-03-03 01:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:54:03] Production.INFO: ==28576== Lock acquired, processing the job... [2025-03-03 01:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:54:03] Production.INFO: ==28578== Releasing lock... [2025-03-03 01:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:54:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:54:03] Production.INFO: ==28580== Lock acquired, processing the job... [2025-03-03 01:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:54:03] Production.INFO: count ==13 [2025-03-03 01:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:54:03] Production.INFO: ==28582== Lock acquired, processing the job... [2025-03-03 01:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:54:03] Production.INFO: count ==21 [2025-03-03 01:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595227') start [2025-03-03 01:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:54:03] Production.INFO: ==28584== Lock acquired, processing the job... [2025-03-03 01:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595227') end [2025-03-03 01:54:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:54:03] Production.INFO: 1 [2025-03-03 01:54:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:54:04] Production.INFO: ==28586== Releasing lock... [2025-03-03 01:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:54:04] Production.INFO: Account Balance Start. [2025-03-03 01:54:04] Production.INFO: CreateAllLog Start [2025-03-03 01:54:04] Production.INFO: 117 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.ERROR: done [2025-03-03 01:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.ERROR: done [2025-03-03 01:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:54:05] Production.INFO: Total Charge 0 [2025-03-03 01:54:05] Production.INFO: CreateAllLog End [2025-03-03 01:54:05] Production.INFO: Account Balance End. [2025-03-03 01:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:54:05] Production.INFO: ==28582== Releasing lock... [2025-03-03 01:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:54:13] Production.ERROR: CronJobId end10 [2025-03-03 01:54:13] Production.INFO: ==28580== Releasing lock... [2025-03-03 01:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:54:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:54:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:54:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:54:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:54:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:54:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:54:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:54:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:54:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:54:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:54:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:54:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:54:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:54:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:54:16] Production.INFO: call_cost start [2025-03-03 01:54:16] Production.INFO: call_cost end [2025-03-03 01:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:54:16] Production.INFO: ==28576== Releasing lock... [2025-03-03 01:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:54:16] Production.INFO: count ==409 [2025-03-03 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595230', 'tblTempUsageDetail_20' ) start [2025-03-03 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595230', 'tblTempUsageDetail_20' ) end [2025-03-03 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595230', 'tblTempVendorCDR_20' ) start [2025-03-03 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595230', 'tblTempVendorCDR_20' ) end [2025-03-03 01:54:17] Production.INFO: ProcessCDR(1,14595230,1,1,2) [2025-03-03 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595230', 'tblTempUsageDetail_20' ) start [2025-03-03 01:54:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595230', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:54:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:54:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:54:25] Production.INFO: ==28584== Releasing lock... [2025-03-03 01:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:54:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:55:01] Production.INFO: ==28644== Lock acquired, processing the job... [2025-03-03 06:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:55:02] Production.INFO: neon service started [2025-03-03 06:55:02] Production.INFO: neon service started [2025-03-03 06:55:02] Production.INFO: ==28644== Releasing lock... [2025-03-03 06:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:55:02] Production.INFO: ==28646== Lock acquired, processing the job... [2025-03-03 01:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:55:02] Production.INFO: ==28646== Releasing lock... [2025-03-03 01:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:55:02] Production.INFO: ==28648== Lock acquired, processing the job... [2025-03-03 06:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:55:02] Production.INFO: ==28648== Releasing lock... [2025-03-03 06:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:55:03] Production.INFO: ==28658== Lock acquired, processing the job... [2025-03-03 01:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:55:03] Production.INFO: ==28660== Lock acquired, processing the job... [2025-03-03 01:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:55:04] Production.INFO: ==28650== Lock acquired, processing the job... [2025-03-03 01:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:55:04] Production.INFO: ==28652== Lock acquired, processing the job... [2025-03-03 01:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:55:04] Production.INFO: ==28654== Lock acquired, processing the job... [2025-03-03 01:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:55:04] Production.INFO: ==28656== Lock acquired, processing the job... [2025-03-03 01:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:55:04] Production.INFO: count ==13 [2025-03-03 01:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:55:04] Production.INFO: count ==21 [2025-03-03 01:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595231') start [2025-03-03 01:55:04] Production.ERROR: done [2025-03-03 01:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:55:04] Production.INFO: Account Balance Start. [2025-03-03 01:55:04] Production.INFO: CreateAllLog Start [2025-03-03 01:55:04] Production.INFO: 117 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.ERROR: done [2025-03-03 01:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595231') end [2025-03-03 01:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:55:04] Production.INFO: 1 [2025-03-03 01:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: ==28652== Releasing lock... [2025-03-03 01:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:55:04] Production.INFO: ==28660== Releasing lock... [2025-03-03 01:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-19 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:55:05] Production.INFO: Total Charge 0 [2025-03-03 01:55:05] Production.INFO: CreateAllLog End [2025-03-03 01:55:05] Production.INFO: Account Balance End. [2025-03-03 01:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:55:05] Production.INFO: ==28656== Releasing lock... [2025-03-03 01:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:55:13] Production.ERROR: CronJobId end10 [2025-03-03 01:55:13] Production.INFO: ==28654== Releasing lock... [2025-03-03 01:55:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:55:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:55:15] Production.INFO: call_cost start [2025-03-03 01:55:15] Production.INFO: call_cost end [2025-03-03 01:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:55:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:55:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:55:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:55:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:55:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:55:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:55:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:55:15] Production.INFO: ==28650== Releasing lock... [2025-03-03 01:55:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:55:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:55:16] Production.INFO: count ==409 [2025-03-03 01:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595235', 'tblTempUsageDetail_20' ) start [2025-03-03 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595235', 'tblTempUsageDetail_20' ) end [2025-03-03 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595235', 'tblTempVendorCDR_20' ) start [2025-03-03 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595235', 'tblTempVendorCDR_20' ) end [2025-03-03 01:55:16] Production.INFO: ProcessCDR(1,14595235,1,1,2) [2025-03-03 01:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595235', 'tblTempUsageDetail_20' ) start [2025-03-03 01:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595235', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:55:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:55:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:55:25] Production.INFO: ==28658== Releasing lock... [2025-03-03 01:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:55:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:56:01] Production.INFO: ==28727== Lock acquired, processing the job... [2025-03-03 06:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:56:01] Production.INFO: neon service started [2025-03-03 06:56:01] Production.INFO: neon service started [2025-03-03 06:56:01] Production.INFO: ==28727== Releasing lock... [2025-03-03 06:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:56:01] Production.INFO: ==28729== Lock acquired, processing the job... [2025-03-03 01:56:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:56:02] Production.INFO: ==28729== Releasing lock... [2025-03-03 01:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:56:02] Production.INFO: ==28731== Lock acquired, processing the job... [2025-03-03 06:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:56:02] Production.INFO: ==28731== Releasing lock... [2025-03-03 06:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 01:56:03] Production.INFO: ==28740== Lock acquired, processing the job... [2025-03-03 01:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:56:03] Production.INFO: Account Balance Start. [2025-03-03 01:56:03] Production.INFO: CreateAllLog Start [2025-03-03 01:56:03] Production.INFO: 117 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-10 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: ==28742== Lock acquired, processing the job... [2025-03-03 01:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:56:03] Production.INFO: ==28734== Lock acquired, processing the job... [2025-03-03 01:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:56:03] Production.INFO: ==28736== Lock acquired, processing the job... [2025-03-03 01:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:56:03] Production.INFO: Date 2025-02-11 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:56:03] Production.INFO: ==28744== Lock acquired, processing the job... [2025-03-03 01:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:56:03] Production.INFO: ==28738== Lock acquired, processing the job... [2025-03-03 01:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:56:03] Production.INFO: Date 2025-02-12 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-13 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-14 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:56:03] Production.INFO: count ==13 [2025-03-03 01:56:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:56:03] Production.INFO: count ==21 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-15 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595239') start [2025-03-03 01:56:03] Production.INFO: Date 2025-02-16 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-17 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:03] Production.INFO: Date 2025-02-18 [2025-03-03 01:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: ==28736== Releasing lock... [2025-03-03 01:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.ERROR: done [2025-03-03 01:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595239') end [2025-03-03 01:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:56:04] Production.INFO: 1 [2025-03-03 01:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:56:04] Production.INFO: ==28744== Releasing lock... [2025-03-03 01:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.ERROR: done [2025-03-03 01:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-02-27 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-02-28 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-03-01 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-03-02 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Date 2025-03-03 [2025-03-03 01:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:56:04] Production.INFO: Total Charge 0 [2025-03-03 01:56:05] Production.INFO: CreateAllLog End [2025-03-03 01:56:05] Production.INFO: Account Balance End. [2025-03-03 01:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:56:05] Production.INFO: ==28740== Releasing lock... [2025-03-03 01:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:56:13] Production.ERROR: CronJobId end10 [2025-03-03 01:56:13] Production.INFO: ==28738== Releasing lock... [2025-03-03 01:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:56:16] Production.INFO: call_cost start [2025-03-03 01:56:16] Production.INFO: call_cost end [2025-03-03 01:56:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:56:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:56:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:56:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:56:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:56:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:56:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:56:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:56:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:56:16] Production.INFO: ==28734== Releasing lock... [2025-03-03 01:56:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:56:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:56:16] Production.INFO: count ==409 [2025-03-03 01:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595240', 'tblTempUsageDetail_20' ) start [2025-03-03 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595240', 'tblTempUsageDetail_20' ) end [2025-03-03 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595240', 'tblTempVendorCDR_20' ) start [2025-03-03 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595240', 'tblTempVendorCDR_20' ) end [2025-03-03 01:56:16] Production.INFO: ProcessCDR(1,14595240,1,1,2) [2025-03-03 01:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595240', 'tblTempUsageDetail_20' ) start [2025-03-03 01:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595240', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:56:25] Production.INFO: ==28742== Releasing lock... [2025-03-03 01:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:57:01] Production.INFO: ==28815== Lock acquired, processing the job... [2025-03-03 06:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:57:01] Production.INFO: neon service started [2025-03-03 06:57:01] Production.INFO: neon service started [2025-03-03 06:57:01] Production.INFO: ==28815== Releasing lock... [2025-03-03 06:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:57:02] Production.INFO: ==28817== Lock acquired, processing the job... [2025-03-03 01:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:57:02] Production.INFO: ==28817== Releasing lock... [2025-03-03 01:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:57:02] Production.INFO: ==28819== Lock acquired, processing the job... [2025-03-03 06:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:57:02] Production.INFO: ==28819== Releasing lock... [2025-03-03 06:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:57:03] Production.INFO: ==28825== Lock acquired, processing the job... [2025-03-03 01:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:57:03] Production.INFO: ==28829== Lock acquired, processing the job... [2025-03-03 01:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:57:03] Production.INFO: ==28827== Lock acquired, processing the job... [2025-03-03 01:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:57:03] Production.INFO: Account Balance Start. [2025-03-03 01:57:03] Production.INFO: CreateAllLog Start [2025-03-03 01:57:03] Production.INFO: ==28831== Lock acquired, processing the job... [2025-03-03 01:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:57:03] Production.INFO: 117 [2025-03-03 01:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:57:04] Production.INFO: ==28823== Lock acquired, processing the job... [2025-03-03 01:57:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.INFO: ==28825== Releasing lock... [2025-03-03 01:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:57:04] Production.INFO: ==28834== Lock acquired, processing the job... [2025-03-03 01:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.ERROR: done [2025-03-03 01:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.INFO: count ==13 [2025-03-03 01:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:57:04] Production.INFO: count ==21 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.ERROR: done [2025-03-03 01:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595244') start [2025-03-03 01:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595244') end [2025-03-03 01:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:57:04] Production.INFO: 1 [2025-03-03 01:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:57:04] Production.INFO: ==28834== Releasing lock... [2025-03-03 01:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:57:05] Production.INFO: Total Charge 0 [2025-03-03 01:57:05] Production.INFO: CreateAllLog End [2025-03-03 01:57:05] Production.INFO: Account Balance End. [2025-03-03 01:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:57:05] Production.INFO: ==28829== Releasing lock... [2025-03-03 01:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:57:13] Production.ERROR: CronJobId end10 [2025-03-03 01:57:13] Production.INFO: ==28827== Releasing lock... [2025-03-03 01:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:57:15] Production.INFO: call_cost start [2025-03-03 01:57:15] Production.INFO: call_cost end [2025-03-03 01:57:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:57:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:57:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:57:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:57:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:57:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:57:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:57:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:57:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:57:15] Production.INFO: ==28823== Releasing lock... [2025-03-03 01:57:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:57:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:57:16] Production.INFO: count ==409 [2025-03-03 01:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595245', 'tblTempUsageDetail_20' ) start [2025-03-03 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595245', 'tblTempUsageDetail_20' ) end [2025-03-03 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595245', 'tblTempVendorCDR_20' ) start [2025-03-03 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595245', 'tblTempVendorCDR_20' ) end [2025-03-03 01:57:17] Production.INFO: ProcessCDR(1,14595245,1,1,2) [2025-03-03 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595245', 'tblTempUsageDetail_20' ) start [2025-03-03 01:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595245', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:57:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:57:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:57:25] Production.INFO: ==28831== Releasing lock... [2025-03-03 01:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:58:01] Production.INFO: ==28892== Lock acquired, processing the job... [2025-03-03 06:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:58:01] Production.INFO: neon service started [2025-03-03 06:58:01] Production.INFO: neon service started [2025-03-03 06:58:01] Production.INFO: ==28892== Releasing lock... [2025-03-03 06:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:58:01] Production.INFO: ==28894== Lock acquired, processing the job... [2025-03-03 01:58:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 01:58:02] Production.INFO: ==28894== Releasing lock... [2025-03-03 01:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:58:02] Production.INFO: ==28896== Lock acquired, processing the job... [2025-03-03 06:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:58:02] Production.INFO: ==28896== Releasing lock... [2025-03-03 06:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:58:03] Production.INFO: ==28899== Lock acquired, processing the job... [2025-03-03 01:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:58:03] Production.INFO: ==28901== Lock acquired, processing the job... [2025-03-03 01:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:58:03] Production.INFO: ==28903== Lock acquired, processing the job... [2025-03-03 01:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:58:03] Production.INFO: ==28905== Lock acquired, processing the job... [2025-03-03 01:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:58:03] Production.INFO: ==28907== Lock acquired, processing the job... [2025-03-03 01:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:58:03] Production.INFO: ==28909== Lock acquired, processing the job... [2025-03-03 01:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:58:03] Production.INFO: Account Balance Start. [2025-03-03 01:58:03] Production.INFO: CreateAllLog Start [2025-03-03 01:58:03] Production.INFO: 117 [2025-03-03 01:58:03] Production.INFO: Date 2025-02-08 [2025-03-03 01:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:58:03] Production.INFO: Date 2025-02-09 [2025-03-03 01:58:03] Production.INFO: count ==13 [2025-03-03 01:58:03] Production.INFO: ==28901== Releasing lock... [2025-03-03 01:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:58:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:58:03] Production.INFO: count ==21 [2025-03-03 01:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595249') start [2025-03-03 01:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.ERROR: done [2025-03-03 01:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595249') end [2025-03-03 01:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:58:04] Production.INFO: 1 [2025-03-03 01:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: ==28909== Releasing lock... [2025-03-03 01:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:58:04] Production.ERROR: done [2025-03-03 01:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 01:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:58:05] Production.INFO: Total Charge 0 [2025-03-03 01:58:05] Production.INFO: CreateAllLog End [2025-03-03 01:58:05] Production.INFO: Account Balance End. [2025-03-03 01:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:58:05] Production.INFO: ==28905== Releasing lock... [2025-03-03 01:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:58:13] Production.ERROR: CronJobId end10 [2025-03-03 01:58:13] Production.INFO: ==28903== Releasing lock... [2025-03-03 01:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:58:14] Production.INFO: call_cost start [2025-03-03 01:58:14] Production.INFO: call_cost end [2025-03-03 01:58:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:58:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:58:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:58:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:58:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:58:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:58:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:58:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:58:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:58:14] Production.INFO: ==28899== Releasing lock... [2025-03-03 01:58:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:58:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:58:16] Production.INFO: count ==409 [2025-03-03 01:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595250', 'tblTempUsageDetail_20' ) start [2025-03-03 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595250', 'tblTempUsageDetail_20' ) end [2025-03-03 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595250', 'tblTempVendorCDR_20' ) start [2025-03-03 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595250', 'tblTempVendorCDR_20' ) end [2025-03-03 01:58:16] Production.INFO: ProcessCDR(1,14595250,1,1,2) [2025-03-03 01:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595250', 'tblTempUsageDetail_20' ) start [2025-03-03 01:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595250', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:58:25] Production.INFO: ==28907== Releasing lock... [2025-03-03 01:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:58:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 06:59:01] Production.INFO: ==28967== Lock acquired, processing the job... [2025-03-03 06:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 06:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 06:59:01] Production.INFO: neon service started [2025-03-03 06:59:01] Production.INFO: neon service started [2025-03-03 06:59:01] Production.INFO: ==28967== Releasing lock... [2025-03-03 06:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 06:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 01:59:02] Production.INFO: ==28969== Lock acquired, processing the job... [2025-03-03 01:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:59:02] Production.INFO: ==28971== Lock acquired, processing the job... [2025-03-03 06:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:59:02] Production.INFO: ==28971== Releasing lock... [2025-03-03 06:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 06:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 01:59:03] Production.INFO: ==28969== Releasing lock... [2025-03-03 01:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 01:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 01:59:04] Production.INFO: ==28980== Lock acquired, processing the job... [2025-03-03 01:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 01:59:04] Production.INFO: Account Balance Start. [2025-03-03 01:59:04] Production.INFO: CreateAllLog Start [2025-03-03 01:59:04] Production.INFO: 117 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: ==28984== Lock acquired, processing the job... [2025-03-03 01:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 01:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:59:04] Production.INFO: ==28974== Lock acquired, processing the job... [2025-03-03 01:59:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 01:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: count ==13 [2025-03-03 01:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 01:59:04] Production.INFO: count ==21 [2025-03-03 01:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595252') start [2025-03-03 01:59:04] Production.INFO: ==28976== Lock acquired, processing the job... [2025-03-03 01:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 01:59:04] Production.INFO: ==28978== Lock acquired, processing the job... [2025-03-03 01:59:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 01:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595252') end [2025-03-03 01:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 01:59:04] Production.INFO: 1 [2025-03-03 01:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 01:59:04] Production.INFO: ==28982== Lock acquired, processing the job... [2025-03-03 01:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 01:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: ==28984== Releasing lock... [2025-03-03 01:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 01:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 01:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 01:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 01:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 01:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 01:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 01:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 01:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 01:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:04] Production.INFO: ==28976== Releasing lock... [2025-03-03 01:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 01:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 01:59:05] Production.ERROR: done [2025-03-03 01:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 01:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 01:59:05] Production.ERROR: done [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 01:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 01:59:05] Production.INFO: Total Charge 0 [2025-03-03 01:59:05] Production.INFO: CreateAllLog End [2025-03-03 01:59:05] Production.INFO: Account Balance End. [2025-03-03 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 01:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 01:59:05] Production.INFO: ==28980== Releasing lock... [2025-03-03 01:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 01:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 01:59:12] Production.ERROR: CronJobId end10 [2025-03-03 01:59:12] Production.INFO: ==28978== Releasing lock... [2025-03-03 01:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 01:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 01:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 01:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 01:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 01:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 01:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 01:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 01:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 01:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 01:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 01:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 01:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 01:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 01:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 01:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 01:59:15] Production.INFO: call_cost start [2025-03-03 01:59:15] Production.INFO: call_cost end [2025-03-03 01:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 01:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 01:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 01:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 01:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 01:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 01:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 01:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 01:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 01:59:15] Production.INFO: ==28974== Releasing lock... [2025-03-03 01:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 01:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 01:59:17] Production.INFO: count ==409 [2025-03-03 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595255', 'tblTempUsageDetail_20' ) start [2025-03-03 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595255', 'tblTempUsageDetail_20' ) end [2025-03-03 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595255', 'tblTempVendorCDR_20' ) start [2025-03-03 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595255', 'tblTempVendorCDR_20' ) end [2025-03-03 01:59:17] Production.INFO: ProcessCDR(1,14595255,1,1,2) [2025-03-03 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595255', 'tblTempUsageDetail_20' ) start [2025-03-03 01:59:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595255', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 01:59:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 01:59:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 01:59:26] Production.INFO: ==28982== Releasing lock... [2025-03-03 01:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 01:59:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:00:01] Production.INFO: ==29041== Lock acquired, processing the job... [2025-03-03 07:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:00:01] Production.INFO: neon service started [2025-03-03 07:00:01] Production.INFO: neon service started [2025-03-03 07:00:01] Production.INFO: ==29041== Releasing lock... [2025-03-03 07:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:00:01] Production.INFO: ==29043== Lock acquired, processing the job... [2025-03-03 02:00:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:00:02] Production.INFO: ==29045== Lock acquired, processing the job... [2025-03-03 07:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:00:02] Production.INFO: ==29045== Releasing lock... [2025-03-03 07:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:00:02] Production.INFO: ==29043== Releasing lock... [2025-03-03 02:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:00:03] Production.INFO: ==29047== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 02:00:03] Production.INFO: ==29049== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: servercleanup-command-servercleanup-companyid-1-cronjobid-4 #Starts# [2025-03-03 02:00:03] Production.INFO: ==29051== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 02:00:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:00:03] Production.ERROR: CronJob PID - 29049 [2025-03-03 02:00:03] Production.ERROR: CronJob Title - Server CleanUP [2025-03-03 02:00:03] Production.ERROR: CronJob ID - 4 [2025-03-03 02:00:03] Production.ERROR: CronJob Last Run Time 2025-03-03 02:00:00 [2025-03-03 02:00:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:00:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 02:00:03] Production.INFO: ==29047== Releasing lock... [2025-03-03 02:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 02:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:00:03] Production.INFO: ==29053== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:00:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:00:03] Production.INFO: ==29057== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:00:03] Production.INFO: ==29055== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:00:03] Production.INFO: ==29059== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:00:03] Production.INFO: ==29062== Lock acquired, processing the job... [2025-03-03 02:00:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 02:00:03] Production.INFO: Account Balance Start. [2025-03-03 02:00:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:00:03] Production.INFO: CreateAllLog Start [2025-03-03 02:00:03] Production.INFO: 117 [2025-03-03 02:00:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:00:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:00:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:00:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: ==29064== Lock acquired, processing the job... [2025-03-03 02:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: count ==13 [2025-03-03 02:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: count ==21 [2025-03-03 02:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595259') start [2025-03-03 02:00:04] Production.INFO: Disk FileSystem - df -Ph | awk '{printf "%-35s%-10s%-10s%-10s%-10s%s\n",$1,$2,$3,$4,$5,$6}' [2025-03-03 02:00:04] Production.INFO: output Filesystem Size Used Avail Use% Mounted devtmpfs 15G 4.0K 15G 1% /dev tmpfs 15G 0 15G 0% /dev/shm tmpfs 15G 1.5G 13G 11% /run tmpfs 15G 0 15G 0% /sys/fs/cgroup /dev/sda1 50G 35G 16G 70% / /dev/loop0 64M 64M 0 100% /var/lib/snapd/snap/core20/2379 /dev/loop4 104M 104M 0 100% /var/lib/snapd/snap/core/16928 /dev/loop5 105M 105M 0 100% /var/lib/snapd/snap/core/17200 /dev/sdb1 79G 26G 50G 34% /mysql /dev/loop6 64M 64M 0 100% /var/lib/snapd/snap/core20/2434 /dev/loop2 56M 56M 0 100% /var/lib/snapd/snap/certbot/4325 /dev/loop7 67M 67M 0 100% /var/lib/snapd/snap/core24/716 /dev/loop8 56M 56M 0 100% /var/lib/snapd/snap/certbot/4412 /dev/loop3 67M 67M 0 100% /var/lib/snapd/snap/core24/739 tmpfs 2.9G 0 2.9G 0% /run/user/0 [2025-03-03 02:00:04] Production.INFO: Delete Storage Log Start [2025-03-03 02:00:04] Production.INFO: Front End Delete Storage Log Start [2025-03-03 02:00:04] Production.ERROR: done [2025-03-03 02:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.ERROR: done [2025-03-03 02:00:04] Production.INFO: ==29053== Releasing lock... [2025-03-03 02:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 02:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595260', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595259') end [2025-03-03 02:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:00:04] Production.INFO: 1 [2025-03-03 02:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: ==29064== Releasing lock... [2025-03-03 02:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:00:04] Production.ERROR: done [2025-03-03 02:00:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:00:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: find /var/www/html/onswitch.neon/app/storage/logs -maxdepth 1 -name "*.log" -mtime +31 -type f -exec rm {} \; [2025-03-03 02:00:05] Production.INFO: Front End Delete Storage Log End [2025-03-03 02:00:05] Production.INFO: Back End(Service) Delete Storage Log Start [2025-03-03 02:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:00:05] Production.INFO: Total Charge 0 [2025-03-03 02:00:05] Production.INFO: CreateAllLog End [2025-03-03 02:00:05] Production.INFO: Account Balance End. [2025-03-03 02:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:00:05] Production.INFO: ==29057== Releasing lock... [2025-03-03 02:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:00:06] Production.INFO: find /var/www/html/onswitch.neon.service/storage/logs -maxdepth 1 -name "*.log" -mtime +31 -type f -exec rm {} \; [2025-03-03 02:00:06] Production.INFO: Back End(Service) Delete Storage Log End [2025-03-03 02:00:06] Production.INFO: Delete Storage Log End [2025-03-03 02:00:06] Production.INFO: Delete Temp Files Start [2025-03-03 02:00:07] Production.INFO: find /var/www/tmp* -maxdepth 1 -mtime +3 -type f -exec rm {} \; [2025-03-03 02:00:07] Production.INFO: Delete Temp Files End [2025-03-03 02:00:07] Production.INFO: Delete CDR File Start [2025-03-03 02:00:07] Production.INFO: Delete CDR File End [2025-03-03 02:00:07] Production.INFO: Disk FileSystem - df -Ph | awk '{printf "%-35s%-10s%-10s%-10s%-10s%s\n",$1,$2,$3,$4,$5,$6}' [2025-03-03 02:00:07] Production.INFO: output Filesystem Size Used Avail Use% Mounted devtmpfs 15G 4.0K 15G 1% /dev tmpfs 15G 0 15G 0% /dev/shm tmpfs 15G 1.5G 13G 11% /run tmpfs 15G 0 15G 0% /sys/fs/cgroup /dev/sda1 50G 35G 16G 70% / /dev/loop0 64M 64M 0 100% /var/lib/snapd/snap/core20/2379 /dev/loop4 104M 104M 0 100% /var/lib/snapd/snap/core/16928 /dev/loop5 105M 105M 0 100% /var/lib/snapd/snap/core/17200 /dev/sdb1 79G 26G 50G 34% /mysql /dev/loop6 64M 64M 0 100% /var/lib/snapd/snap/core20/2434 /dev/loop2 56M 56M 0 100% /var/lib/snapd/snap/certbot/4325 /dev/loop7 67M 67M 0 100% /var/lib/snapd/snap/core24/716 /dev/loop8 56M 56M 0 100% /var/lib/snapd/snap/certbot/4412 /dev/loop3 67M 67M 0 100% /var/lib/snapd/snap/core24/739 tmpfs 2.9G 0 2.9G 0% /run/user/0 [2025-03-03 02:00:07] Production.ERROR: CronJobId end 4 [2025-03-03 02:00:07] Production.INFO: ==29049== Releasing lock... [2025-03-03 02:00:07] Production.INFO: servercleanup-command-servercleanup-companyid-1-cronjobid-4 #Stops# [2025-03-03 02:00:07] Production.INFO: 29.5 MB #Memory Used# [2025-03-03 02:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595260', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 02:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 02:00:10] Production.INFO: ProcessCDR(1,14595260,1,1,2) [2025-03-03 02:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595260,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595260,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 02:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 02:00:10] Production.INFO: ==29062== Releasing lock... [2025-03-03 02:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 02:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 02:00:16] Production.INFO: count ==409 [2025-03-03 02:00:17] Production.ERROR: CronJobId end10 [2025-03-03 02:00:17] Production.INFO: ==29055== Releasing lock... [2025-03-03 02:00:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:00:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595261', 'tblTempUsageDetail_20' ) start [2025-03-03 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595261', 'tblTempUsageDetail_20' ) end [2025-03-03 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595261', 'tblTempVendorCDR_20' ) start [2025-03-03 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595261', 'tblTempVendorCDR_20' ) end [2025-03-03 02:00:17] Production.INFO: ProcessCDR(1,14595261,1,1,2) [2025-03-03 02:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:00:20] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:00:20] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:00:20] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:00:20] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:00:20] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:00:20] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:00:20] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:00:20] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:00:20] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:00:20] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:00:20] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:00:20] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:00:20] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:00:20] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:00:21] Production.INFO: call_cost start [2025-03-03 02:00:21] Production.INFO: call_cost end [2025-03-03 02:00:21] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:00:21] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:00:21] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:00:21] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:00:21] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:00:21] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:00:21] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:00:21] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:00:21] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:00:21] Production.INFO: ==29051== Releasing lock... [2025-03-03 02:00:21] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595261', 'tblTempUsageDetail_20' ) start [2025-03-03 02:00:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595261', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:00:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:00:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:00:26] Production.INFO: ==29059== Releasing lock... [2025-03-03 02:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:00:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:01:01] Production.INFO: ==29222== Lock acquired, processing the job... [2025-03-03 07:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:01:01] Production.INFO: neon service started [2025-03-03 07:01:02] Production.INFO: neon service started [2025-03-03 07:01:02] Production.INFO: ==29222== Releasing lock... [2025-03-03 07:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:01:02] Production.INFO: ==29236== Lock acquired, processing the job... [2025-03-03 02:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:01:02] Production.INFO: ==29238== Lock acquired, processing the job... [2025-03-03 07:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:01:02] Production.INFO: ==29236== Releasing lock... [2025-03-03 02:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:01:02] Production.INFO: ==29238== Releasing lock... [2025-03-03 07:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:01:03] Production.INFO: ==29248== Lock acquired, processing the job... [2025-03-03 02:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:01:03] Production.INFO: ==29250== Lock acquired, processing the job... [2025-03-03 02:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:01:03] Production.INFO: ==29240== Lock acquired, processing the job... [2025-03-03 02:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:01:04] Production.INFO: ==29242== Lock acquired, processing the job... [2025-03-03 02:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:01:04] Production.INFO: ==29246== Lock acquired, processing the job... [2025-03-03 02:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:01:04] Production.INFO: ==29244== Lock acquired, processing the job... [2025-03-03 02:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:01:04] Production.INFO: count ==13 [2025-03-03 02:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:01:04] Production.INFO: count ==21 [2025-03-03 02:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595262') start [2025-03-03 02:01:04] Production.INFO: Account Balance Start. [2025-03-03 02:01:04] Production.INFO: CreateAllLog Start [2025-03-03 02:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:01:04] Production.INFO: 117 [2025-03-03 02:01:04] Production.ERROR: done [2025-03-03 02:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595262') end [2025-03-03 02:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:01:04] Production.INFO: 1 [2025-03-03 02:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.INFO: ==29250== Releasing lock... [2025-03-03 02:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:01:04] Production.INFO: ==29242== Releasing lock... [2025-03-03 02:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.ERROR: done [2025-03-03 02:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:01:05] Production.INFO: Total Charge 0 [2025-03-03 02:01:05] Production.INFO: CreateAllLog End [2025-03-03 02:01:05] Production.INFO: Account Balance End. [2025-03-03 02:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:01:05] Production.INFO: ==29246== Releasing lock... [2025-03-03 02:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:01:13] Production.ERROR: CronJobId end10 [2025-03-03 02:01:13] Production.INFO: ==29244== Releasing lock... [2025-03-03 02:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:01:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:01:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:01:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:01:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:01:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:01:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:01:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:01:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:01:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:01:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:01:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:01:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:01:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:01:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:01:16] Production.INFO: call_cost start [2025-03-03 02:01:16] Production.INFO: call_cost end [2025-03-03 02:01:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:01:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:01:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:01:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:01:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:01:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:01:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:01:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:01:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:01:16] Production.INFO: ==29240== Releasing lock... [2025-03-03 02:01:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:01:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:01:16] Production.INFO: count ==409 [2025-03-03 02:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595266', 'tblTempUsageDetail_20' ) start [2025-03-03 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595266', 'tblTempUsageDetail_20' ) end [2025-03-03 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595266', 'tblTempVendorCDR_20' ) start [2025-03-03 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595266', 'tblTempVendorCDR_20' ) end [2025-03-03 02:01:16] Production.INFO: ProcessCDR(1,14595266,1,1,2) [2025-03-03 02:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595266', 'tblTempUsageDetail_20' ) start [2025-03-03 02:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595266', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:01:25] Production.INFO: ==29248== Releasing lock... [2025-03-03 02:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:01:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:02:01] Production.INFO: ==29319== Lock acquired, processing the job... [2025-03-03 07:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:02:01] Production.INFO: neon service started [2025-03-03 07:02:01] Production.INFO: neon service started [2025-03-03 07:02:01] Production.INFO: ==29319== Releasing lock... [2025-03-03 07:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:02:02] Production.INFO: ==29321== Lock acquired, processing the job... [2025-03-03 02:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:02:02] Production.INFO: ==29323== Lock acquired, processing the job... [2025-03-03 07:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:02:02] Production.INFO: ==29323== Releasing lock... [2025-03-03 07:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:02:02] Production.INFO: ==29321== Releasing lock... [2025-03-03 02:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:02:03] Production.INFO: ==29326== Lock acquired, processing the job... [2025-03-03 02:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:02:03] Production.INFO: ==29328== Lock acquired, processing the job... [2025-03-03 02:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:02:03] Production.INFO: ==29334== Lock acquired, processing the job... [2025-03-03 02:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:02:03] Production.INFO: ==29330== Lock acquired, processing the job... [2025-03-03 02:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:02:03] Production.INFO: ==29328== Releasing lock... [2025-03-03 02:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:02:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:02:04] Production.INFO: ==29332== Lock acquired, processing the job... [2025-03-03 02:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:02:04] Production.INFO: Account Balance Start. [2025-03-03 02:02:04] Production.INFO: CreateAllLog Start [2025-03-03 02:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:02:04] Production.INFO: 117 [2025-03-03 02:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:02:04] Production.INFO: ==29336== Lock acquired, processing the job... [2025-03-03 02:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.ERROR: done [2025-03-03 02:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:02:04] Production.INFO: count ==13 [2025-03-03 02:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:02:04] Production.INFO: count ==21 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595270') start [2025-03-03 02:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.ERROR: done [2025-03-03 02:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595270') end [2025-03-03 02:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:02:04] Production.INFO: 1 [2025-03-03 02:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: ==29336== Releasing lock... [2025-03-03 02:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:02:05] Production.INFO: Total Charge 0 [2025-03-03 02:02:05] Production.INFO: CreateAllLog End [2025-03-03 02:02:05] Production.INFO: Account Balance End. [2025-03-03 02:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:02:05] Production.INFO: ==29332== Releasing lock... [2025-03-03 02:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:02:13] Production.ERROR: CronJobId end10 [2025-03-03 02:02:13] Production.INFO: ==29330== Releasing lock... [2025-03-03 02:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:02:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:02:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:02:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:02:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:02:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:02:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:02:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:02:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:02:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:02:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:02:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:02:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:02:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:02:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:02:15] Production.INFO: call_cost start [2025-03-03 02:02:15] Production.INFO: call_cost end [2025-03-03 02:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:02:15] Production.INFO: ==29326== Releasing lock... [2025-03-03 02:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:02:16] Production.INFO: count ==409 [2025-03-03 02:02:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595271', 'tblTempUsageDetail_20' ) start [2025-03-03 02:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595271', 'tblTempUsageDetail_20' ) end [2025-03-03 02:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595271', 'tblTempVendorCDR_20' ) start [2025-03-03 02:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595271', 'tblTempVendorCDR_20' ) end [2025-03-03 02:02:16] Production.INFO: ProcessCDR(1,14595271,1,1,2) [2025-03-03 02:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595271', 'tblTempUsageDetail_20' ) start [2025-03-03 02:02:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595271', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:02:25] Production.INFO: ==29334== Releasing lock... [2025-03-03 02:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:02:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:03:02] Production.INFO: ==29401== Lock acquired, processing the job... [2025-03-03 07:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:03:02] Production.INFO: neon service started [2025-03-03 07:03:02] Production.INFO: neon service started [2025-03-03 07:03:02] Production.INFO: ==29401== Releasing lock... [2025-03-03 07:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:03:02] Production.INFO: ==29406== Lock acquired, processing the job... [2025-03-03 07:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:03:02] Production.INFO: ==29406== Releasing lock... [2025-03-03 07:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:03:02] Production.INFO: ==29404== Lock acquired, processing the job... [2025-03-03 02:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:03:02] Production.INFO: ==29404== Releasing lock... [2025-03-03 02:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:03:03] Production.INFO: ==29415== Lock acquired, processing the job... [2025-03-03 02:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:03:04] Production.INFO: ==29419== Lock acquired, processing the job... [2025-03-03 02:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:03:04] Production.INFO: ==29408== Lock acquired, processing the job... [2025-03-03 02:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:03:04] Production.INFO: ==29410== Lock acquired, processing the job... [2025-03-03 02:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:03:04] Production.INFO: Account Balance Start. [2025-03-03 02:03:04] Production.INFO: CreateAllLog Start [2025-03-03 02:03:04] Production.INFO: 117 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:03:04] Production.INFO: ==29413== Lock acquired, processing the job... [2025-03-03 02:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:03:04] Production.INFO: count ==13 [2025-03-03 02:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:03:04] Production.INFO: count ==21 [2025-03-03 02:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595273') start [2025-03-03 02:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: ==29417== Lock acquired, processing the job... [2025-03-03 02:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595273') end [2025-03-03 02:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:03:04] Production.INFO: 1 [2025-03-03 02:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:03:04] Production.INFO: ==29419== Releasing lock... [2025-03-03 02:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: ==29410== Releasing lock... [2025-03-03 02:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:03:04] Production.ERROR: done [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:04] Production.ERROR: done [2025-03-03 02:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:03:05] Production.INFO: Total Charge 0 [2025-03-03 02:03:05] Production.INFO: CreateAllLog End [2025-03-03 02:03:05] Production.INFO: Account Balance End. [2025-03-03 02:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:03:05] Production.INFO: ==29415== Releasing lock... [2025-03-03 02:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:03:12] Production.ERROR: CronJobId end10 [2025-03-03 02:03:12] Production.INFO: ==29413== Releasing lock... [2025-03-03 02:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:03:15] Production.INFO: call_cost start [2025-03-03 02:03:15] Production.INFO: call_cost end [2025-03-03 02:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:03:15] Production.INFO: ==29408== Releasing lock... [2025-03-03 02:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:03:17] Production.INFO: count ==409 [2025-03-03 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595276', 'tblTempUsageDetail_20' ) start [2025-03-03 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595276', 'tblTempUsageDetail_20' ) end [2025-03-03 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595276', 'tblTempVendorCDR_20' ) start [2025-03-03 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595276', 'tblTempVendorCDR_20' ) end [2025-03-03 02:03:17] Production.INFO: ProcessCDR(1,14595276,1,1,2) [2025-03-03 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595276', 'tblTempUsageDetail_20' ) start [2025-03-03 02:03:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595276', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:03:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:03:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:03:26] Production.INFO: ==29417== Releasing lock... [2025-03-03 02:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:03:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:04:01] Production.INFO: ==29490== Lock acquired, processing the job... [2025-03-03 07:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:04:01] Production.INFO: neon service started [2025-03-03 07:04:01] Production.INFO: neon service started [2025-03-03 07:04:01] Production.INFO: ==29490== Releasing lock... [2025-03-03 07:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:04:02] Production.INFO: ==29494== Lock acquired, processing the job... [2025-03-03 02:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:04:02] Production.INFO: ==29494== Releasing lock... [2025-03-03 02:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:04:02] Production.INFO: ==29496== Lock acquired, processing the job... [2025-03-03 07:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:04:02] Production.INFO: ==29496== Releasing lock... [2025-03-03 07:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:04:03] Production.INFO: ==29502== Lock acquired, processing the job... [2025-03-03 02:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:04:03] Production.INFO: ==29506== Lock acquired, processing the job... [2025-03-03 02:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:04:03] Production.INFO: ==29498== Lock acquired, processing the job... [2025-03-03 02:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:04:03] Production.INFO: ==29500== Lock acquired, processing the job... [2025-03-03 02:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:04:03] Production.INFO: ==29504== Lock acquired, processing the job... [2025-03-03 02:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:04:03] Production.INFO: ==29508== Lock acquired, processing the job... [2025-03-03 02:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:04:03] Production.ERROR: done [2025-03-03 02:04:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:04:04] Production.INFO: Account Balance Start. [2025-03-03 02:04:04] Production.INFO: CreateAllLog Start [2025-03-03 02:04:04] Production.INFO: 117 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:04:04] Production.ERROR: done [2025-03-03 02:04:04] Production.INFO: count ==13 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:04:04] Production.INFO: count ==21 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595278') start [2025-03-03 02:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595278') end [2025-03-03 02:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:04:04] Production.INFO: 1 [2025-03-03 02:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: ==29508== Releasing lock... [2025-03-03 02:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:04:04] Production.INFO: ==29500== Releasing lock... [2025-03-03 02:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:04:05] Production.INFO: Total Charge 0 [2025-03-03 02:04:05] Production.INFO: CreateAllLog End [2025-03-03 02:04:05] Production.INFO: Account Balance End. [2025-03-03 02:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:04:05] Production.INFO: ==29504== Releasing lock... [2025-03-03 02:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:04:13] Production.ERROR: CronJobId end10 [2025-03-03 02:04:13] Production.INFO: ==29502== Releasing lock... [2025-03-03 02:04:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:04:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:04:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:04:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:04:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:04:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:04:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:04:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:04:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:04:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:04:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:04:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:04:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:04:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:04:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:04:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:04:16] Production.INFO: count ==409 [2025-03-03 02:04:16] Production.INFO: call_cost start [2025-03-03 02:04:16] Production.INFO: call_cost end [2025-03-03 02:04:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:04:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:04:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:04:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:04:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:04:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:04:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:04:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:04:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595281', 'tblTempUsageDetail_20' ) start [2025-03-03 02:04:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595281', 'tblTempUsageDetail_20' ) end [2025-03-03 02:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595281', 'tblTempVendorCDR_20' ) start [2025-03-03 02:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595281', 'tblTempVendorCDR_20' ) end [2025-03-03 02:04:16] Production.INFO: ProcessCDR(1,14595281,1,1,2) [2025-03-03 02:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:04:16] Production.INFO: ==29498== Releasing lock... [2025-03-03 02:04:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:04:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595281', 'tblTempUsageDetail_20' ) start [2025-03-03 02:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595281', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:04:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:04:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:04:25] Production.INFO: ==29506== Releasing lock... [2025-03-03 02:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:04:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:05:02] Production.INFO: ==29584== Lock acquired, processing the job... [2025-03-03 07:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:05:02] Production.INFO: neon service started [2025-03-03 07:05:02] Production.INFO: neon service started [2025-03-03 07:05:02] Production.INFO: ==29584== Releasing lock... [2025-03-03 07:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:05:02] Production.INFO: ==29586== Lock acquired, processing the job... [2025-03-03 02:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:05:02] Production.INFO: ==29586== Releasing lock... [2025-03-03 02:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:05:03] Production.INFO: ==29588== Lock acquired, processing the job... [2025-03-03 07:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:05:03] Production.INFO: ==29588== Releasing lock... [2025-03-03 07:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:05:03] Production.INFO: ==29590== Lock acquired, processing the job... [2025-03-03 02:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:05:04] Production.INFO: ==29595== Lock acquired, processing the job... [2025-03-03 02:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:05:04] Production.INFO: ==29592== Lock acquired, processing the job... [2025-03-03 02:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:05:04] Production.INFO: ==29599== Lock acquired, processing the job... [2025-03-03 02:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:05:04] Production.INFO: ==29597== Lock acquired, processing the job... [2025-03-03 02:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:05:04] Production.INFO: Account Balance Start. [2025-03-03 02:05:04] Production.INFO: CreateAllLog Start [2025-03-03 02:05:04] Production.INFO: 117 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:05:04] Production.INFO: ==29601== Lock acquired, processing the job... [2025-03-03 02:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: ==29592== Releasing lock... [2025-03-03 02:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: count ==13 [2025-03-03 02:05:04] Production.ERROR: done [2025-03-03 02:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:05:04] Production.INFO: count ==21 [2025-03-03 02:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595285') start [2025-03-03 02:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595285') end [2025-03-03 02:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:05:04] Production.INFO: 1 [2025-03-03 02:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:05:04] Production.INFO: ==29601== Releasing lock... [2025-03-03 02:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:04] Production.ERROR: done [2025-03-03 02:05:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:05:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:05:05] Production.INFO: Total Charge 0 [2025-03-03 02:05:05] Production.INFO: CreateAllLog End [2025-03-03 02:05:05] Production.INFO: Account Balance End. [2025-03-03 02:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:05:05] Production.INFO: ==29597== Releasing lock... [2025-03-03 02:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:05:14] Production.ERROR: CronJobId end10 [2025-03-03 02:05:14] Production.INFO: ==29595== Releasing lock... [2025-03-03 02:05:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:05:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:05:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:05:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:05:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:05:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:05:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:05:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:05:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:05:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:05:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:05:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:05:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:05:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:05:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:05:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:05:17] Production.INFO: count ==409 [2025-03-03 02:05:17] Production.INFO: call_cost start [2025-03-03 02:05:17] Production.INFO: call_cost end [2025-03-03 02:05:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:05:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:05:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:05:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:05:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:05:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:05:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:05:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:05:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:05:17] Production.INFO: ==29590== Releasing lock... [2025-03-03 02:05:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:05:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595286', 'tblTempUsageDetail_20' ) start [2025-03-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595286', 'tblTempUsageDetail_20' ) end [2025-03-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595286', 'tblTempVendorCDR_20' ) start [2025-03-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595286', 'tblTempVendorCDR_20' ) end [2025-03-03 02:05:17] Production.INFO: ProcessCDR(1,14595286,1,1,2) [2025-03-03 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595286', 'tblTempUsageDetail_20' ) start [2025-03-03 02:05:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595286', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:05:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:05:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:05:26] Production.INFO: ==29599== Releasing lock... [2025-03-03 02:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:05:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:06:01] Production.INFO: ==29668== Lock acquired, processing the job... [2025-03-03 07:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:06:01] Production.INFO: neon service started [2025-03-03 07:06:01] Production.INFO: neon service started [2025-03-03 07:06:01] Production.INFO: ==29668== Releasing lock... [2025-03-03 07:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:06:02] Production.INFO: ==29670== Lock acquired, processing the job... [2025-03-03 02:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:06:02] Production.INFO: ==29672== Lock acquired, processing the job... [2025-03-03 07:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:06:02] Production.INFO: ==29670== Releasing lock... [2025-03-03 02:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:06:02] Production.INFO: ==29672== Releasing lock... [2025-03-03 07:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:06:03] Production.INFO: ==29675== Lock acquired, processing the job... [2025-03-03 02:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:06:03] Production.INFO: ==29677== Lock acquired, processing the job... [2025-03-03 02:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:06:03] Production.INFO: ==29679== Lock acquired, processing the job... [2025-03-03 02:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:06:03] Production.INFO: ==29681== Lock acquired, processing the job... [2025-03-03 02:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:06:03] Production.INFO: ==29683== Lock acquired, processing the job... [2025-03-03 02:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:06:03] Production.INFO: ==29685== Lock acquired, processing the job... [2025-03-03 02:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:06:03] Production.INFO: Account Balance Start. [2025-03-03 02:06:03] Production.INFO: CreateAllLog Start [2025-03-03 02:06:03] Production.INFO: 117 [2025-03-03 02:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: count ==13 [2025-03-03 02:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:06:04] Production.INFO: count ==21 [2025-03-03 02:06:04] Production.INFO: ==29677== Releasing lock... [2025-03-03 02:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595290') start [2025-03-03 02:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595290') end [2025-03-03 02:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:06:04] Production.INFO: 1 [2025-03-03 02:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:06:04] Production.INFO: ==29685== Releasing lock... [2025-03-03 02:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.ERROR: done [2025-03-03 02:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.ERROR: done [2025-03-03 02:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:06:05] Production.INFO: Total Charge 0 [2025-03-03 02:06:05] Production.INFO: CreateAllLog End [2025-03-03 02:06:05] Production.INFO: Account Balance End. [2025-03-03 02:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:06:05] Production.INFO: ==29681== Releasing lock... [2025-03-03 02:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:06:13] Production.ERROR: CronJobId end10 [2025-03-03 02:06:13] Production.INFO: ==29679== Releasing lock... [2025-03-03 02:06:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:06:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:06:15] Production.INFO: call_cost start [2025-03-03 02:06:15] Production.INFO: call_cost end [2025-03-03 02:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:06:15] Production.INFO: ==29675== Releasing lock... [2025-03-03 02:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:06:16] Production.INFO: count ==409 [2025-03-03 02:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595291', 'tblTempUsageDetail_20' ) start [2025-03-03 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595291', 'tblTempUsageDetail_20' ) end [2025-03-03 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595291', 'tblTempVendorCDR_20' ) start [2025-03-03 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595291', 'tblTempVendorCDR_20' ) end [2025-03-03 02:06:16] Production.INFO: ProcessCDR(1,14595291,1,1,2) [2025-03-03 02:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595291', 'tblTempUsageDetail_20' ) start [2025-03-03 02:06:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595291', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:06:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:06:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:06:25] Production.INFO: ==29683== Releasing lock... [2025-03-03 02:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:06:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:07:02] Production.INFO: ==29750== Lock acquired, processing the job... [2025-03-03 07:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:07:02] Production.INFO: neon service started [2025-03-03 07:07:02] Production.INFO: neon service started [2025-03-03 07:07:02] Production.INFO: ==29750== Releasing lock... [2025-03-03 07:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:07:02] Production.INFO: ==29755== Lock acquired, processing the job... [2025-03-03 07:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:07:02] Production.INFO: ==29755== Releasing lock... [2025-03-03 07:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:07:02] Production.INFO: ==29753== Lock acquired, processing the job... [2025-03-03 02:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:07:03] Production.INFO: ==29753== Releasing lock... [2025-03-03 02:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:07:04] Production.INFO: ==29759== Lock acquired, processing the job... [2025-03-03 02:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:07:04] Production.INFO: ==29761== Lock acquired, processing the job... [2025-03-03 02:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:07:04] Production.INFO: ==29763== Lock acquired, processing the job... [2025-03-03 02:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:07:04] Production.INFO: Account Balance Start. [2025-03-03 02:07:04] Production.INFO: CreateAllLog Start [2025-03-03 02:07:04] Production.INFO: 117 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: ==29757== Lock acquired, processing the job... [2025-03-03 02:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: ==29759== Releasing lock... [2025-03-03 02:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: ==29765== Lock acquired, processing the job... [2025-03-03 02:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:07:04] Production.INFO: ==29767== Lock acquired, processing the job... [2025-03-03 02:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:07:04] Production.INFO: count ==13 [2025-03-03 02:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:07:04] Production.INFO: count ==21 [2025-03-03 02:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595295') start [2025-03-03 02:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:07:04] Production.ERROR: done [2025-03-03 02:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595295') end [2025-03-03 02:07:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:07:05] Production.INFO: 1 [2025-03-03 02:07:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: ==29767== Releasing lock... [2025-03-03 02:07:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:07:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:07:05] Production.ERROR: done [2025-03-03 02:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:07:05] Production.INFO: Total Charge 0 [2025-03-03 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:07:05] Production.INFO: CreateAllLog End [2025-03-03 02:07:05] Production.INFO: Account Balance End. [2025-03-03 02:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:07:05] Production.INFO: ==29763== Releasing lock... [2025-03-03 02:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:07:12] Production.ERROR: CronJobId end10 [2025-03-03 02:07:12] Production.INFO: ==29761== Releasing lock... [2025-03-03 02:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:07:15] Production.INFO: call_cost start [2025-03-03 02:07:15] Production.INFO: call_cost end [2025-03-03 02:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:07:15] Production.INFO: ==29757== Releasing lock... [2025-03-03 02:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:07:17] Production.INFO: count ==409 [2025-03-03 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595296', 'tblTempUsageDetail_20' ) start [2025-03-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595296', 'tblTempUsageDetail_20' ) end [2025-03-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595296', 'tblTempVendorCDR_20' ) start [2025-03-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595296', 'tblTempVendorCDR_20' ) end [2025-03-03 02:07:17] Production.INFO: ProcessCDR(1,14595296,1,1,2) [2025-03-03 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595296', 'tblTempUsageDetail_20' ) start [2025-03-03 02:07:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595296', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:07:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:07:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:07:26] Production.INFO: ==29765== Releasing lock... [2025-03-03 02:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:07:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:08:01] Production.INFO: ==29823== Lock acquired, processing the job... [2025-03-03 07:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:08:01] Production.INFO: neon service started [2025-03-03 07:08:01] Production.INFO: neon service started [2025-03-03 07:08:01] Production.INFO: ==29823== Releasing lock... [2025-03-03 07:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:08:02] Production.INFO: ==29825== Lock acquired, processing the job... [2025-03-03 02:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:08:02] Production.INFO: ==29825== Releasing lock... [2025-03-03 02:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:08:02] Production.INFO: ==29827== Lock acquired, processing the job... [2025-03-03 07:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:08:02] Production.INFO: ==29827== Releasing lock... [2025-03-03 07:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:08:03] Production.INFO: ==29830== Lock acquired, processing the job... [2025-03-03 02:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:08:03] Production.INFO: ==29832== Lock acquired, processing the job... [2025-03-03 02:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:08:03] Production.INFO: ==29836== Lock acquired, processing the job... [2025-03-03 02:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:08:03] Production.INFO: Account Balance Start. [2025-03-03 02:08:03] Production.INFO: CreateAllLog Start [2025-03-03 02:08:03] Production.INFO: 117 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: ==29834== Lock acquired, processing the job... [2025-03-03 02:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: ==29832== Releasing lock... [2025-03-03 02:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:08:03] Production.INFO: ==29838== Lock acquired, processing the job... [2025-03-03 02:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:08:03] Production.INFO: ==29840== Lock acquired, processing the job... [2025-03-03 02:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:08:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:08:03] Production.INFO: Date 2025-02-17 [2025-03-03 02:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:03] Production.INFO: count ==13 [2025-03-03 02:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:08:04] Production.INFO: count ==21 [2025-03-03 02:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595300') start [2025-03-03 02:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.ERROR: done [2025-03-03 02:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595300') end [2025-03-03 02:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:08:04] Production.INFO: 1 [2025-03-03 02:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: ==29840== Releasing lock... [2025-03-03 02:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:08:04] Production.ERROR: done [2025-03-03 02:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:08:04] Production.INFO: Total Charge 0 [2025-03-03 02:08:04] Production.INFO: CreateAllLog End [2025-03-03 02:08:04] Production.INFO: Account Balance End. [2025-03-03 02:08:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:08:04] Production.INFO: ==29836== Releasing lock... [2025-03-03 02:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:08:12] Production.ERROR: CronJobId end10 [2025-03-03 02:08:12] Production.INFO: ==29834== Releasing lock... [2025-03-03 02:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:08:14] Production.INFO: call_cost start [2025-03-03 02:08:14] Production.INFO: call_cost end [2025-03-03 02:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:08:14] Production.INFO: ==29830== Releasing lock... [2025-03-03 02:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:08:16] Production.INFO: count ==409 [2025-03-03 02:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595301', 'tblTempUsageDetail_20' ) start [2025-03-03 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595301', 'tblTempUsageDetail_20' ) end [2025-03-03 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595301', 'tblTempVendorCDR_20' ) start [2025-03-03 02:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595301', 'tblTempVendorCDR_20' ) end [2025-03-03 02:08:16] Production.INFO: ProcessCDR(1,14595301,1,1,2) [2025-03-03 02:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595301', 'tblTempUsageDetail_20' ) start [2025-03-03 02:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595301', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:08:24] Production.INFO: ==29838== Releasing lock... [2025-03-03 02:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:08:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:09:02] Production.INFO: ==29948== Lock acquired, processing the job... [2025-03-03 07:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:09:02] Production.INFO: neon service started [2025-03-03 07:09:02] Production.INFO: neon service started [2025-03-03 07:09:02] Production.INFO: ==29948== Releasing lock... [2025-03-03 07:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:09:02] Production.INFO: ==29952== Lock acquired, processing the job... [2025-03-03 07:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:09:02] Production.INFO: ==29950== Lock acquired, processing the job... [2025-03-03 02:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:09:02] Production.INFO: ==29952== Releasing lock... [2025-03-03 07:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:09:03] Production.INFO: ==29950== Releasing lock... [2025-03-03 02:09:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:09:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:09:04] Production.INFO: ==29955== Lock acquired, processing the job... [2025-03-03 02:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:09:04] Production.INFO: ==29959== Lock acquired, processing the job... [2025-03-03 02:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:09:04] Production.INFO: ==29961== Lock acquired, processing the job... [2025-03-03 02:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:09:04] Production.INFO: Account Balance Start. [2025-03-03 02:09:04] Production.INFO: CreateAllLog Start [2025-03-03 02:09:04] Production.INFO: 117 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: ==29957== Lock acquired, processing the job... [2025-03-03 02:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: ==29965== Lock acquired, processing the job... [2025-03-03 02:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: ==29963== Lock acquired, processing the job... [2025-03-03 02:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:09:04] Production.INFO: count ==13 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:09:04] Production.INFO: count ==21 [2025-03-03 02:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595305') start [2025-03-03 02:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:04] Production.INFO: ==29957== Releasing lock... [2025-03-03 02:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595305') end [2025-03-03 02:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:09:04] Production.INFO: 1 [2025-03-03 02:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: ==29965== Releasing lock... [2025-03-03 02:09:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:09:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:09:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.ERROR: done [2025-03-03 02:09:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.ERROR: done [2025-03-03 02:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:09:05] Production.INFO: Total Charge 0 [2025-03-03 02:09:05] Production.INFO: CreateAllLog End [2025-03-03 02:09:05] Production.INFO: Account Balance End. [2025-03-03 02:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:09:05] Production.INFO: ==29961== Releasing lock... [2025-03-03 02:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:09:11] Production.ERROR: CronJobId end10 [2025-03-03 02:09:11] Production.INFO: ==29959== Releasing lock... [2025-03-03 02:09:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:09:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:09:14] Production.INFO: call_cost start [2025-03-03 02:09:14] Production.INFO: call_cost end [2025-03-03 02:09:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:09:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:09:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:09:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:09:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:09:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:09:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:09:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:09:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:09:14] Production.INFO: ==29955== Releasing lock... [2025-03-03 02:09:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:09:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:09:17] Production.INFO: count ==409 [2025-03-03 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595306', 'tblTempUsageDetail_20' ) start [2025-03-03 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595306', 'tblTempUsageDetail_20' ) end [2025-03-03 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595306', 'tblTempVendorCDR_20' ) start [2025-03-03 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595306', 'tblTempVendorCDR_20' ) end [2025-03-03 02:09:17] Production.INFO: ProcessCDR(1,14595306,1,1,2) [2025-03-03 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595306', 'tblTempUsageDetail_20' ) start [2025-03-03 02:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595306', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:09:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:09:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:09:25] Production.INFO: ==29963== Releasing lock... [2025-03-03 02:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:09:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:10:01] Production.INFO: ==30020== Lock acquired, processing the job... [2025-03-03 07:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:10:01] Production.INFO: neon service started [2025-03-03 07:10:01] Production.INFO: neon service started [2025-03-03 07:10:01] Production.INFO: ==30020== Releasing lock... [2025-03-03 07:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:10:02] Production.INFO: ==30022== Lock acquired, processing the job... [2025-03-03 02:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:10:02] Production.INFO: ==30024== Lock acquired, processing the job... [2025-03-03 07:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:10:02] Production.INFO: ==30024== Releasing lock... [2025-03-03 07:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:10:02] Production.INFO: ==30022== Releasing lock... [2025-03-03 02:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:10:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:10:03] Production.INFO: ==30026== Lock acquired, processing the job... [2025-03-03 02:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 02:10:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 02:10:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 02:10:03] Production.INFO: ==30026== Releasing lock... [2025-03-03 02:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 02:10:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:10:03] Production.INFO: ==30031== Lock acquired, processing the job... [2025-03-03 02:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:10:03] Production.INFO: ==30028== Lock acquired, processing the job... [2025-03-03 02:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:10:03] Production.INFO: ==30035== Lock acquired, processing the job... [2025-03-03 02:10:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:10:03] Production.INFO: ==30037== Lock acquired, processing the job... [2025-03-03 02:10:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:10:03] Production.INFO: Account Balance Start. [2025-03-03 02:10:03] Production.INFO: CreateAllLog Start [2025-03-03 02:10:03] Production.INFO: 117 [2025-03-03 02:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:10:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: ==30033== Lock acquired, processing the job... [2025-03-03 02:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: ==30031== Releasing lock... [2025-03-03 02:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: ==30041== Lock acquired, processing the job... [2025-03-03 02:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: ==30039== Lock acquired, processing the job... [2025-03-03 02:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 02:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:10:04] Production.INFO: count ==13 [2025-03-03 02:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:10:04] Production.INFO: count ==21 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595310') start [2025-03-03 02:10:04] Production.ERROR: done [2025-03-03 02:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595310') end [2025-03-03 02:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:10:04] Production.INFO: 1 [2025-03-03 02:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: ==30041== Releasing lock... [2025-03-03 02:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:10:04] Production.ERROR: done [2025-03-03 02:10:04] Production.ERROR: done [2025-03-03 02:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 02:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595312', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 02:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:10:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:10:05] Production.INFO: Total Charge 0 [2025-03-03 02:10:05] Production.INFO: CreateAllLog End [2025-03-03 02:10:05] Production.INFO: Account Balance End. [2025-03-03 02:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:10:05] Production.INFO: ==30035== Releasing lock... [2025-03-03 02:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:10:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595312', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 02:10:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 02:10:08] Production.INFO: ProcessCDR(1,14595312,1,1,2) [2025-03-03 02:10:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595312,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:10:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595312,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:10:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 02:10:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 02:10:08] Production.INFO: ==30039== Releasing lock... [2025-03-03 02:10:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 02:10:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 02:10:15] Production.ERROR: CronJobId end10 [2025-03-03 02:10:15] Production.INFO: ==30033== Releasing lock... [2025-03-03 02:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:10:16] Production.INFO: count ==409 [2025-03-03 02:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595311', 'tblTempUsageDetail_20' ) start [2025-03-03 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595311', 'tblTempUsageDetail_20' ) end [2025-03-03 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595311', 'tblTempVendorCDR_20' ) start [2025-03-03 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595311', 'tblTempVendorCDR_20' ) end [2025-03-03 02:10:17] Production.INFO: ProcessCDR(1,14595311,1,1,2) [2025-03-03 02:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:10:17] Production.INFO: call_cost start [2025-03-03 02:10:17] Production.INFO: call_cost end [2025-03-03 02:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:10:17] Production.INFO: ==30028== Releasing lock... [2025-03-03 02:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595311', 'tblTempUsageDetail_20' ) start [2025-03-03 02:10:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595311', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:10:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:10:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:10:24] Production.INFO: ==30037== Releasing lock... [2025-03-03 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:10:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:11:02] Production.INFO: ==30096== Lock acquired, processing the job... [2025-03-03 07:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:11:02] Production.INFO: neon service started [2025-03-03 07:11:02] Production.INFO: neon service started [2025-03-03 07:11:02] Production.INFO: ==30096== Releasing lock... [2025-03-03 07:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:11:02] Production.INFO: ==30100== Lock acquired, processing the job... [2025-03-03 07:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:11:02] Production.INFO: ==30100== Releasing lock... [2025-03-03 07:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:11:02] Production.INFO: ==30098== Lock acquired, processing the job... [2025-03-03 02:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:11:02] Production.INFO: ==30098== Releasing lock... [2025-03-03 02:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:11:03] Production.INFO: ==30103== Lock acquired, processing the job... [2025-03-03 02:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:11:03] Production.INFO: ==30109== Lock acquired, processing the job... [2025-03-03 02:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:11:03] Production.INFO: ==30113== Lock acquired, processing the job... [2025-03-03 02:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:11:04] Production.INFO: Account Balance Start. [2025-03-03 02:11:04] Production.INFO: CreateAllLog Start [2025-03-03 02:11:04] Production.INFO: 117 [2025-03-03 02:11:04] Production.INFO: count ==13 [2025-03-03 02:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:11:04] Production.INFO: count ==21 [2025-03-03 02:11:04] Production.INFO: ==30107== Lock acquired, processing the job... [2025-03-03 02:11:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: ==30105== Lock acquired, processing the job... [2025-03-03 02:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595314') start [2025-03-03 02:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: ==30111== Lock acquired, processing the job... [2025-03-03 02:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595314') end [2025-03-03 02:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:11:04] Production.INFO: 1 [2025-03-03 02:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:11:04] Production.INFO: ==30113== Releasing lock... [2025-03-03 02:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: ==30105== Releasing lock... [2025-03-03 02:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.ERROR: done [2025-03-03 02:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.ERROR: done [2025-03-03 02:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:11:05] Production.INFO: Total Charge 0 [2025-03-03 02:11:05] Production.INFO: CreateAllLog End [2025-03-03 02:11:05] Production.INFO: Account Balance End. [2025-03-03 02:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:11:05] Production.INFO: ==30109== Releasing lock... [2025-03-03 02:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:11:13] Production.ERROR: CronJobId end10 [2025-03-03 02:11:13] Production.INFO: ==30107== Releasing lock... [2025-03-03 02:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:11:15] Production.INFO: call_cost start [2025-03-03 02:11:15] Production.INFO: call_cost end [2025-03-03 02:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:11:15] Production.INFO: ==30103== Releasing lock... [2025-03-03 02:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:11:17] Production.INFO: count ==409 [2025-03-03 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595317', 'tblTempUsageDetail_20' ) start [2025-03-03 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595317', 'tblTempUsageDetail_20' ) end [2025-03-03 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595317', 'tblTempVendorCDR_20' ) start [2025-03-03 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595317', 'tblTempVendorCDR_20' ) end [2025-03-03 02:11:17] Production.INFO: ProcessCDR(1,14595317,1,1,2) [2025-03-03 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595317', 'tblTempUsageDetail_20' ) start [2025-03-03 02:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595317', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:11:24] Production.INFO: ==30111== Releasing lock... [2025-03-03 02:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:12:01] Production.INFO: ==30172== Lock acquired, processing the job... [2025-03-03 07:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:12:01] Production.INFO: neon service started [2025-03-03 07:12:01] Production.INFO: neon service started [2025-03-03 07:12:01] Production.INFO: ==30172== Releasing lock... [2025-03-03 07:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:12:02] Production.INFO: ==30174== Lock acquired, processing the job... [2025-03-03 02:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:12:02] Production.INFO: ==30176== Lock acquired, processing the job... [2025-03-03 07:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:12:02] Production.INFO: ==30176== Releasing lock... [2025-03-03 07:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:12:02] Production.INFO: ==30174== Releasing lock... [2025-03-03 02:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:12:03] Production.INFO: ==30183== Lock acquired, processing the job... [2025-03-03 02:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:12:03] Production.INFO: ==30181== Lock acquired, processing the job... [2025-03-03 02:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:12:03] Production.INFO: ==30179== Lock acquired, processing the job... [2025-03-03 02:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:12:03] Production.INFO: ==30185== Lock acquired, processing the job... [2025-03-03 02:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:12:03] Production.INFO: ==30187== Lock acquired, processing the job... [2025-03-03 02:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:12:04] Production.INFO: Account Balance Start. [2025-03-03 02:12:04] Production.INFO: CreateAllLog Start [2025-03-03 02:12:04] Production.INFO: 117 [2025-03-03 02:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:12:04] Production.INFO: ==30181== Releasing lock... [2025-03-03 02:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: ==30189== Lock acquired, processing the job... [2025-03-03 02:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: count ==13 [2025-03-03 02:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:12:04] Production.INFO: count ==21 [2025-03-03 02:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595321') start [2025-03-03 02:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595321') end [2025-03-03 02:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:12:04] Production.INFO: 1 [2025-03-03 02:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: ==30189== Releasing lock... [2025-03-03 02:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.ERROR: done [2025-03-03 02:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.ERROR: done [2025-03-03 02:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:12:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:12:05] Production.INFO: Total Charge 0 [2025-03-03 02:12:05] Production.INFO: CreateAllLog End [2025-03-03 02:12:05] Production.INFO: Account Balance End. [2025-03-03 02:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:12:05] Production.INFO: ==30185== Releasing lock... [2025-03-03 02:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:12:11] Production.ERROR: CronJobId end10 [2025-03-03 02:12:11] Production.INFO: ==30183== Releasing lock... [2025-03-03 02:12:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:12:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:12:14] Production.INFO: call_cost start [2025-03-03 02:12:14] Production.INFO: call_cost end [2025-03-03 02:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:12:14] Production.INFO: ==30179== Releasing lock... [2025-03-03 02:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:12:16] Production.INFO: count ==409 [2025-03-03 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595322', 'tblTempUsageDetail_20' ) start [2025-03-03 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595322', 'tblTempUsageDetail_20' ) end [2025-03-03 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595322', 'tblTempVendorCDR_20' ) start [2025-03-03 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595322', 'tblTempVendorCDR_20' ) end [2025-03-03 02:12:17] Production.INFO: ProcessCDR(1,14595322,1,1,2) [2025-03-03 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595322', 'tblTempUsageDetail_20' ) start [2025-03-03 02:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595322', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:12:24] Production.INFO: ==30187== Releasing lock... [2025-03-03 02:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:12:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:13:02] Production.INFO: ==30255== Lock acquired, processing the job... [2025-03-03 07:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:13:02] Production.INFO: neon service started [2025-03-03 07:13:02] Production.INFO: neon service started [2025-03-03 07:13:02] Production.INFO: ==30255== Releasing lock... [2025-03-03 07:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:13:02] Production.INFO: ==30257== Lock acquired, processing the job... [2025-03-03 02:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:13:02] Production.INFO: ==30257== Releasing lock... [2025-03-03 02:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:13:02] Production.INFO: ==30259== Lock acquired, processing the job... [2025-03-03 07:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:13:02] Production.INFO: ==30259== Releasing lock... [2025-03-03 07:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:13:03] Production.INFO: ==30265== Lock acquired, processing the job... [2025-03-03 02:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:13:03] Production.INFO: ==30263== Lock acquired, processing the job... [2025-03-03 02:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:13:03] Production.INFO: ==30273== Lock acquired, processing the job... [2025-03-03 02:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:13:03] Production.INFO: ==30267== Lock acquired, processing the job... [2025-03-03 02:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:13:03] Production.INFO: count ==13 [2025-03-03 02:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:13:03] Production.INFO: ==30269== Lock acquired, processing the job... [2025-03-03 02:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:13:03] Production.INFO: count ==21 [2025-03-03 02:13:03] Production.INFO: ==30271== Lock acquired, processing the job... [2025-03-03 02:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595325') start [2025-03-03 02:13:03] Production.INFO: ==30265== Releasing lock... [2025-03-03 02:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:13:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:13:04] Production.INFO: Account Balance Start. [2025-03-03 02:13:04] Production.INFO: CreateAllLog Start [2025-03-03 02:13:04] Production.INFO: 117 [2025-03-03 02:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595325') end [2025-03-03 02:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:13:04] Production.INFO: 1 [2025-03-03 02:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: ==30273== Releasing lock... [2025-03-03 02:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:13:04] Production.ERROR: done [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.ERROR: done [2025-03-03 02:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:13:05] Production.INFO: Total Charge 0 [2025-03-03 02:13:05] Production.INFO: CreateAllLog End [2025-03-03 02:13:05] Production.INFO: Account Balance End. [2025-03-03 02:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:13:05] Production.INFO: ==30269== Releasing lock... [2025-03-03 02:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:13:11] Production.ERROR: CronJobId end10 [2025-03-03 02:13:11] Production.INFO: ==30267== Releasing lock... [2025-03-03 02:13:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:13:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:13:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:13:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:13:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:13:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:13:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:13:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:13:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:13:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:13:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:13:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:13:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:13:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:13:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:13:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:13:14] Production.INFO: call_cost start [2025-03-03 02:13:14] Production.INFO: call_cost end [2025-03-03 02:13:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:13:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:13:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:13:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:13:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:13:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:13:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:13:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:13:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:13:14] Production.INFO: ==30263== Releasing lock... [2025-03-03 02:13:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:13:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:13:16] Production.INFO: count ==409 [2025-03-03 02:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595327', 'tblTempUsageDetail_20' ) start [2025-03-03 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595327', 'tblTempUsageDetail_20' ) end [2025-03-03 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595327', 'tblTempVendorCDR_20' ) start [2025-03-03 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595327', 'tblTempVendorCDR_20' ) end [2025-03-03 02:13:16] Production.INFO: ProcessCDR(1,14595327,1,1,2) [2025-03-03 02:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595327', 'tblTempUsageDetail_20' ) start [2025-03-03 02:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595327', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:13:24] Production.INFO: ==30271== Releasing lock... [2025-03-03 02:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:13:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:14:01] Production.INFO: ==30344== Lock acquired, processing the job... [2025-03-03 07:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:14:01] Production.INFO: neon service started [2025-03-03 07:14:01] Production.INFO: neon service started [2025-03-03 07:14:01] Production.INFO: ==30344== Releasing lock... [2025-03-03 07:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:14:01] Production.INFO: ==30349== Lock acquired, processing the job... [2025-03-03 07:14:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:14:01] Production.INFO: ==30349== Releasing lock... [2025-03-03 07:14:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:14:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:14:02] Production.INFO: ==30347== Lock acquired, processing the job... [2025-03-03 02:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:14:02] Production.INFO: ==30347== Releasing lock... [2025-03-03 02:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:14:03] Production.INFO: ==30355== Lock acquired, processing the job... [2025-03-03 02:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:14:03] Production.INFO: ==30351== Lock acquired, processing the job... [2025-03-03 02:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:14:03] Production.INFO: ==30361== Lock acquired, processing the job... [2025-03-03 02:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:14:03] Production.INFO: ==30353== Lock acquired, processing the job... [2025-03-03 02:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:14:03] Production.INFO: count ==13 [2025-03-03 02:14:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:14:03] Production.INFO: count ==21 [2025-03-03 02:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595328') start [2025-03-03 02:14:03] Production.INFO: ==30357== Lock acquired, processing the job... [2025-03-03 02:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:14:03] Production.INFO: ==30359== Lock acquired, processing the job... [2025-03-03 02:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595328') end [2025-03-03 02:14:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:14:03] Production.INFO: 1 [2025-03-03 02:14:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:14:03] Production.INFO: ==30361== Releasing lock... [2025-03-03 02:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:14:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:14:03] Production.INFO: Account Balance Start. [2025-03-03 02:14:03] Production.INFO: CreateAllLog Start [2025-03-03 02:14:03] Production.INFO: 117 [2025-03-03 02:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: ==30353== Releasing lock... [2025-03-03 02:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.ERROR: done [2025-03-03 02:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.ERROR: done [2025-03-03 02:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:14:04] Production.INFO: Total Charge 0 [2025-03-03 02:14:05] Production.INFO: CreateAllLog End [2025-03-03 02:14:05] Production.INFO: Account Balance End. [2025-03-03 02:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:14:05] Production.INFO: ==30357== Releasing lock... [2025-03-03 02:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:14:12] Production.ERROR: CronJobId end10 [2025-03-03 02:14:12] Production.INFO: ==30355== Releasing lock... [2025-03-03 02:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:14:15] Production.INFO: call_cost start [2025-03-03 02:14:15] Production.INFO: call_cost end [2025-03-03 02:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:14:15] Production.INFO: ==30351== Releasing lock... [2025-03-03 02:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:14:16] Production.INFO: count ==409 [2025-03-03 02:14:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595332', 'tblTempUsageDetail_20' ) start [2025-03-03 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595332', 'tblTempUsageDetail_20' ) end [2025-03-03 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595332', 'tblTempVendorCDR_20' ) start [2025-03-03 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595332', 'tblTempVendorCDR_20' ) end [2025-03-03 02:14:16] Production.INFO: ProcessCDR(1,14595332,1,1,2) [2025-03-03 02:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595332', 'tblTempUsageDetail_20' ) start [2025-03-03 02:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595332', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:14:24] Production.INFO: ==30359== Releasing lock... [2025-03-03 02:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:15:01] Production.INFO: ==30419== Lock acquired, processing the job... [2025-03-03 07:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:15:01] Production.INFO: neon service started [2025-03-03 07:15:01] Production.INFO: neon service started [2025-03-03 07:15:01] Production.INFO: ==30419== Releasing lock... [2025-03-03 07:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:15:02] Production.INFO: ==30423== Lock acquired, processing the job... [2025-03-03 07:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:15:02] Production.INFO: ==30423== Releasing lock... [2025-03-03 07:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:15:02] Production.INFO: ==30421== Lock acquired, processing the job... [2025-03-03 02:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:15:02] Production.INFO: ==30421== Releasing lock... [2025-03-03 02:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:15:03] Production.INFO: ==30426== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:15:03] Production.INFO: ==30428== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:15:03] Production.INFO: ==30434== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:15:03] Production.INFO: ==30430== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:15:03] Production.INFO: ==30436== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:15:03] Production.INFO: ==30432== Lock acquired, processing the job... [2025-03-03 02:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:15:04] Production.INFO: Account Balance Start. [2025-03-03 02:15:04] Production.INFO: CreateAllLog Start [2025-03-03 02:15:04] Production.INFO: 117 [2025-03-03 02:15:04] Production.INFO: count ==13 [2025-03-03 02:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:15:04] Production.INFO: count ==21 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:15:04] Production.INFO: ==30428== Releasing lock... [2025-03-03 02:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:15:04] Production.ERROR: done [2025-03-03 02:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595335') start [2025-03-03 02:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595335') end [2025-03-03 02:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:15:04] Production.INFO: 1 [2025-03-03 02:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: ==30436== Releasing lock... [2025-03-03 02:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:15:04] Production.ERROR: done [2025-03-03 02:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:15:05] Production.INFO: Total Charge 0 [2025-03-03 02:15:05] Production.INFO: CreateAllLog End [2025-03-03 02:15:05] Production.INFO: Account Balance End. [2025-03-03 02:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:15:05] Production.INFO: ==30432== Releasing lock... [2025-03-03 02:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:15:11] Production.ERROR: CronJobId end10 [2025-03-03 02:15:11] Production.INFO: ==30430== Releasing lock... [2025-03-03 02:15:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:15:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:15:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:15:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:15:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:15:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:15:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:15:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:15:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:15:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:15:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:15:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:15:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:15:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:15:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:15:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:15:14] Production.INFO: call_cost start [2025-03-03 02:15:14] Production.INFO: call_cost end [2025-03-03 02:15:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:15:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:15:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:15:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:15:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:15:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:15:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:15:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:15:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:15:14] Production.INFO: ==30426== Releasing lock... [2025-03-03 02:15:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:15:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:15:16] Production.INFO: count ==409 [2025-03-03 02:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595337', 'tblTempUsageDetail_20' ) start [2025-03-03 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595337', 'tblTempUsageDetail_20' ) end [2025-03-03 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595337', 'tblTempVendorCDR_20' ) start [2025-03-03 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595337', 'tblTempVendorCDR_20' ) end [2025-03-03 02:15:16] Production.INFO: ProcessCDR(1,14595337,1,1,2) [2025-03-03 02:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595337', 'tblTempUsageDetail_20' ) start [2025-03-03 02:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595337', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:15:24] Production.INFO: ==30434== Releasing lock... [2025-03-03 02:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:16:01] Production.INFO: ==30494== Lock acquired, processing the job... [2025-03-03 07:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:16:01] Production.INFO: neon service started [2025-03-03 07:16:01] Production.INFO: neon service started [2025-03-03 07:16:01] Production.INFO: ==30494== Releasing lock... [2025-03-03 07:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:16:02] Production.INFO: ==30496== Lock acquired, processing the job... [2025-03-03 02:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:16:02] Production.INFO: ==30498== Lock acquired, processing the job... [2025-03-03 07:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:16:02] Production.INFO: ==30498== Releasing lock... [2025-03-03 07:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:16:02] Production.INFO: ==30496== Releasing lock... [2025-03-03 02:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:16:03] Production.INFO: ==30501== Lock acquired, processing the job... [2025-03-03 02:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:16:03] Production.INFO: ==30505== Lock acquired, processing the job... [2025-03-03 02:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:16:03] Production.INFO: ==30509== Lock acquired, processing the job... [2025-03-03 02:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:16:03] Production.INFO: ==30503== Lock acquired, processing the job... [2025-03-03 02:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:16:03] Production.INFO: ==30507== Lock acquired, processing the job... [2025-03-03 02:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:16:03] Production.INFO: Account Balance Start. [2025-03-03 02:16:03] Production.INFO: CreateAllLog Start [2025-03-03 02:16:03] Production.INFO: 117 [2025-03-03 02:16:03] Production.INFO: ==30511== Lock acquired, processing the job... [2025-03-03 02:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:16:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:03] Production.ERROR: done [2025-03-03 02:16:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:16:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:16:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:03] Production.INFO: count ==13 [2025-03-03 02:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:16:03] Production.INFO: count ==21 [2025-03-03 02:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595341') start [2025-03-03 02:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:16:04] Production.INFO: ==30503== Releasing lock... [2025-03-03 02:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595341') end [2025-03-03 02:16:04] Production.ERROR: done [2025-03-03 02:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:16:04] Production.INFO: 1 [2025-03-03 02:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:16:04] Production.INFO: ==30511== Releasing lock... [2025-03-03 02:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:16:04] Production.INFO: Total Charge 0 [2025-03-03 02:16:04] Production.INFO: CreateAllLog End [2025-03-03 02:16:04] Production.INFO: Account Balance End. [2025-03-03 02:16:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:16:04] Production.INFO: ==30507== Releasing lock... [2025-03-03 02:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:16:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:16:11] Production.ERROR: CronJobId end10 [2025-03-03 02:16:11] Production.INFO: ==30505== Releasing lock... [2025-03-03 02:16:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:16:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:16:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:16:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:16:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:16:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:16:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:16:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:16:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:16:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:16:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:16:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:16:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:16:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:16:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:16:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:16:13] Production.INFO: call_cost start [2025-03-03 02:16:13] Production.INFO: call_cost end [2025-03-03 02:16:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:16:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:16:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:16:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:16:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:16:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:16:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:16:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:16:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:16:13] Production.INFO: ==30501== Releasing lock... [2025-03-03 02:16:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:16:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:16:16] Production.INFO: count ==409 [2025-03-03 02:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595342', 'tblTempUsageDetail_20' ) start [2025-03-03 02:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595342', 'tblTempUsageDetail_20' ) end [2025-03-03 02:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595342', 'tblTempVendorCDR_20' ) start [2025-03-03 02:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595342', 'tblTempVendorCDR_20' ) end [2025-03-03 02:16:16] Production.INFO: ProcessCDR(1,14595342,1,1,2) [2025-03-03 02:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595342', 'tblTempUsageDetail_20' ) start [2025-03-03 02:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595342', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:16:24] Production.INFO: ==30509== Releasing lock... [2025-03-03 02:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:17:01] Production.INFO: ==30570== Lock acquired, processing the job... [2025-03-03 07:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:17:01] Production.INFO: neon service started [2025-03-03 07:17:01] Production.INFO: neon service started [2025-03-03 07:17:01] Production.INFO: ==30570== Releasing lock... [2025-03-03 07:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:17:02] Production.INFO: ==30573== Lock acquired, processing the job... [2025-03-03 02:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:17:02] Production.INFO: ==30575== Lock acquired, processing the job... [2025-03-03 07:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:17:02] Production.INFO: ==30575== Releasing lock... [2025-03-03 07:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:17:02] Production.INFO: ==30573== Releasing lock... [2025-03-03 02:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:17:03] Production.INFO: ==30583== Lock acquired, processing the job... [2025-03-03 02:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:17:03] Production.INFO: ==30585== Lock acquired, processing the job... [2025-03-03 02:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:17:03] Production.INFO: Account Balance Start. [2025-03-03 02:17:03] Production.INFO: CreateAllLog Start [2025-03-03 02:17:03] Production.INFO: 117 [2025-03-03 02:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: ==30577== Lock acquired, processing the job... [2025-03-03 02:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:17:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:17:03] Production.INFO: ==30579== Lock acquired, processing the job... [2025-03-03 02:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:17:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: ==30581== Lock acquired, processing the job... [2025-03-03 02:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:17:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:03] Production.INFO: ==30587== Lock acquired, processing the job... [2025-03-03 02:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:17:04] Production.INFO: count ==13 [2025-03-03 02:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:17:04] Production.INFO: count ==21 [2025-03-03 02:17:04] Production.ERROR: done [2025-03-03 02:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595346') start [2025-03-03 02:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.ERROR: done [2025-03-03 02:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595346') end [2025-03-03 02:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:17:04] Production.INFO: 1 [2025-03-03 02:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: ==30587== Releasing lock... [2025-03-03 02:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:17:04] Production.INFO: ==30579== Releasing lock... [2025-03-03 02:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:17:04] Production.INFO: Total Charge 0 [2025-03-03 02:17:05] Production.INFO: CreateAllLog End [2025-03-03 02:17:05] Production.INFO: Account Balance End. [2025-03-03 02:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:17:05] Production.INFO: ==30583== Releasing lock... [2025-03-03 02:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:17:11] Production.ERROR: CronJobId end10 [2025-03-03 02:17:11] Production.INFO: ==30581== Releasing lock... [2025-03-03 02:17:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:17:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:17:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:17:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:17:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:17:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:17:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:17:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:17:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:17:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:17:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:17:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:17:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:17:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:17:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:17:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:17:14] Production.INFO: call_cost start [2025-03-03 02:17:14] Production.INFO: call_cost end [2025-03-03 02:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:17:14] Production.INFO: ==30577== Releasing lock... [2025-03-03 02:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:17:16] Production.INFO: count ==409 [2025-03-03 02:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595347', 'tblTempUsageDetail_20' ) start [2025-03-03 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595347', 'tblTempUsageDetail_20' ) end [2025-03-03 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595347', 'tblTempVendorCDR_20' ) start [2025-03-03 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595347', 'tblTempVendorCDR_20' ) end [2025-03-03 02:17:16] Production.INFO: ProcessCDR(1,14595347,1,1,2) [2025-03-03 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595347', 'tblTempUsageDetail_20' ) start [2025-03-03 02:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595347', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:17:24] Production.INFO: ==30585== Releasing lock... [2025-03-03 02:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:18:02] Production.INFO: ==30659== Lock acquired, processing the job... [2025-03-03 07:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:18:02] Production.INFO: neon service started [2025-03-03 07:18:02] Production.INFO: neon service started [2025-03-03 07:18:02] Production.INFO: ==30659== Releasing lock... [2025-03-03 07:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:18:02] Production.INFO: ==30661== Lock acquired, processing the job... [2025-03-03 02:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:18:03] Production.INFO: ==30663== Lock acquired, processing the job... [2025-03-03 07:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:18:03] Production.INFO: ==30663== Releasing lock... [2025-03-03 07:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:18:03] Production.INFO: ==30661== Releasing lock... [2025-03-03 02:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:18:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:18:04] Production.INFO: ==30668== Lock acquired, processing the job... [2025-03-03 02:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:18:04] Production.INFO: ==30674== Lock acquired, processing the job... [2025-03-03 02:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:18:04] Production.INFO: ==30666== Lock acquired, processing the job... [2025-03-03 02:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:18:04] Production.INFO: ==30670== Lock acquired, processing the job... [2025-03-03 02:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:18:04] Production.INFO: ==30672== Lock acquired, processing the job... [2025-03-03 02:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:18:04] Production.INFO: ==30676== Lock acquired, processing the job... [2025-03-03 02:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:18:04] Production.INFO: Account Balance Start. [2025-03-03 02:18:04] Production.INFO: CreateAllLog Start [2025-03-03 02:18:04] Production.INFO: 117 [2025-03-03 02:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:18:04] Production.INFO: count ==13 [2025-03-03 02:18:04] Production.INFO: ==30668== Releasing lock... [2025-03-03 02:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:18:04] Production.INFO: count ==21 [2025-03-03 02:18:04] Production.ERROR: done [2025-03-03 02:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595351') start [2025-03-03 02:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:04] Production.ERROR: done [2025-03-03 02:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595351') end [2025-03-03 02:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:18:04] Production.INFO: 1 [2025-03-03 02:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:18:05] Production.INFO: ==30676== Releasing lock... [2025-03-03 02:18:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:18:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:18:05] Production.INFO: Date 2025-02-13 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-14 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:18:05] Production.INFO: Total Charge 0 [2025-03-03 02:18:05] Production.INFO: CreateAllLog End [2025-03-03 02:18:05] Production.INFO: Account Balance End. [2025-03-03 02:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:18:05] Production.INFO: ==30672== Releasing lock... [2025-03-03 02:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:18:11] Production.ERROR: CronJobId end10 [2025-03-03 02:18:11] Production.INFO: ==30670== Releasing lock... [2025-03-03 02:18:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:18:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:18:14] Production.INFO: call_cost start [2025-03-03 02:18:14] Production.INFO: call_cost end [2025-03-03 02:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:18:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:18:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:18:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:18:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:18:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:18:14] Production.INFO: ==30666== Releasing lock... [2025-03-03 02:18:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:18:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:18:16] Production.INFO: count ==409 [2025-03-03 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595352', 'tblTempUsageDetail_20' ) start [2025-03-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595352', 'tblTempUsageDetail_20' ) end [2025-03-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595352', 'tblTempVendorCDR_20' ) start [2025-03-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595352', 'tblTempVendorCDR_20' ) end [2025-03-03 02:18:17] Production.INFO: ProcessCDR(1,14595352,1,1,2) [2025-03-03 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595352', 'tblTempUsageDetail_20' ) start [2025-03-03 02:18:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595352', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:18:24] Production.INFO: ==30674== Releasing lock... [2025-03-03 02:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:19:01] Production.INFO: ==30731== Lock acquired, processing the job... [2025-03-03 07:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:19:01] Production.INFO: neon service started [2025-03-03 07:19:01] Production.INFO: neon service started [2025-03-03 07:19:01] Production.INFO: ==30731== Releasing lock... [2025-03-03 07:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:19:02] Production.INFO: ==30734== Lock acquired, processing the job... [2025-03-03 02:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:19:02] Production.INFO: ==30734== Releasing lock... [2025-03-03 02:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:19:02] Production.INFO: ==30736== Lock acquired, processing the job... [2025-03-03 07:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:19:02] Production.INFO: ==30736== Releasing lock... [2025-03-03 07:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:19:03] Production.INFO: ==30748== Lock acquired, processing the job... [2025-03-03 02:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:19:03] Production.INFO: ==30746== Lock acquired, processing the job... [2025-03-03 02:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:19:03] Production.INFO: ==30740== Lock acquired, processing the job... [2025-03-03 02:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:19:03] Production.INFO: ==30738== Lock acquired, processing the job... [2025-03-03 02:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:19:03] Production.INFO: count ==13 [2025-03-03 02:19:03] Production.INFO: ==30742== Lock acquired, processing the job... [2025-03-03 02:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:19:03] Production.INFO: count ==21 [2025-03-03 02:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595353') start [2025-03-03 02:19:03] Production.INFO: ==30744== Lock acquired, processing the job... [2025-03-03 02:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595353') end [2025-03-03 02:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:19:03] Production.INFO: 1 [2025-03-03 02:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:19:03] Production.INFO: ==30748== Releasing lock... [2025-03-03 02:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:19:04] Production.INFO: Account Balance Start. [2025-03-03 02:19:04] Production.INFO: CreateAllLog Start [2025-03-03 02:19:04] Production.INFO: 117 [2025-03-03 02:19:04] Production.ERROR: done [2025-03-03 02:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: ==30740== Releasing lock... [2025-03-03 02:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.ERROR: done [2025-03-03 02:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:19:05] Production.INFO: Total Charge 0 [2025-03-03 02:19:05] Production.INFO: CreateAllLog End [2025-03-03 02:19:05] Production.INFO: Account Balance End. [2025-03-03 02:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:19:05] Production.INFO: ==30744== Releasing lock... [2025-03-03 02:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:19:11] Production.ERROR: CronJobId end10 [2025-03-03 02:19:11] Production.INFO: ==30742== Releasing lock... [2025-03-03 02:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:19:14] Production.INFO: call_cost start [2025-03-03 02:19:14] Production.INFO: call_cost end [2025-03-03 02:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:19:14] Production.INFO: ==30738== Releasing lock... [2025-03-03 02:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:19:16] Production.INFO: count ==409 [2025-03-03 02:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595357', 'tblTempUsageDetail_20' ) start [2025-03-03 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595357', 'tblTempUsageDetail_20' ) end [2025-03-03 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595357', 'tblTempVendorCDR_20' ) start [2025-03-03 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595357', 'tblTempVendorCDR_20' ) end [2025-03-03 02:19:16] Production.INFO: ProcessCDR(1,14595357,1,1,2) [2025-03-03 02:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595357', 'tblTempUsageDetail_20' ) start [2025-03-03 02:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595357', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:19:24] Production.INFO: ==30746== Releasing lock... [2025-03-03 02:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:20:02] Production.INFO: ==30816== Lock acquired, processing the job... [2025-03-03 07:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:20:02] Production.INFO: neon service started [2025-03-03 07:20:02] Production.INFO: neon service started [2025-03-03 07:20:02] Production.INFO: ==30816== Releasing lock... [2025-03-03 07:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:20:02] Production.INFO: ==30819== Lock acquired, processing the job... [2025-03-03 02:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:20:03] Production.INFO: ==30821== Lock acquired, processing the job... [2025-03-03 07:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:20:03] Production.INFO: ==30819== Releasing lock... [2025-03-03 02:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:20:03] Production.INFO: ==30821== Releasing lock... [2025-03-03 07:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:20:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:20:04] Production.INFO: ==30823== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 02:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 02:20:04] Production.INFO: ==30825== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 02:20:04] Production.INFO: ==30823== Releasing lock... [2025-03-03 02:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 02:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:20:04] Production.INFO: ==30827== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:20:04] Production.INFO: ==30831== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:20:04] Production.INFO: Account Balance Start. [2025-03-03 02:20:04] Production.INFO: CreateAllLog Start [2025-03-03 02:20:04] Production.INFO: 117 [2025-03-03 02:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:04] Production.INFO: ==30829== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:04] Production.INFO: ==30833== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:20:04] Production.INFO: ==30827== Releasing lock... [2025-03-03 02:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:20:04] Production.INFO: ==30835== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 02:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:04] Production.INFO: ==30837== Lock acquired, processing the job... [2025-03-03 02:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:20:05] Production.INFO: count ==13 [2025-03-03 02:20:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:20:05] Production.INFO: count ==21 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595361') start [2025-03-03 02:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595361') end [2025-03-03 02:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:20:05] Production.INFO: 1 [2025-03-03 02:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: done [2025-03-03 02:20:05] Production.INFO: ==30837== Releasing lock... [2025-03-03 02:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:20:05] Production.ERROR: done [2025-03-03 02:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 02:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595362', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 02:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: done [2025-03-03 02:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:20:05] Production.INFO: Total Charge 0 [2025-03-03 02:20:05] Production.INFO: CreateAllLog End [2025-03-03 02:20:06] Production.INFO: Account Balance End. [2025-03-03 02:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 02:20:06] Production.INFO: ==30831== Releasing lock... [2025-03-03 02:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595362', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 02:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 02:20:09] Production.INFO: ProcessCDR(1,14595362,1,1,2) [2025-03-03 02:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595362,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595362,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 02:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 02:20:09] Production.INFO: ==30835== Releasing lock... [2025-03-03 02:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 02:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 02:20:14] Production.ERROR: CronJobId end10 [2025-03-03 02:20:14] Production.INFO: ==30829== Releasing lock... [2025-03-03 02:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:20:16] Production.INFO: call_cost start [2025-03-03 02:20:16] Production.INFO: call_cost end [2025-03-03 02:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:20:16] Production.INFO: ==30825== Releasing lock... [2025-03-03 02:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:20:17] Production.INFO: count ==409 [2025-03-03 02:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595363', 'tblTempUsageDetail_20' ) start [2025-03-03 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595363', 'tblTempUsageDetail_20' ) end [2025-03-03 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595363', 'tblTempVendorCDR_20' ) start [2025-03-03 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595363', 'tblTempVendorCDR_20' ) end [2025-03-03 02:20:17] Production.INFO: ProcessCDR(1,14595363,1,1,2) [2025-03-03 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595363', 'tblTempUsageDetail_20' ) start [2025-03-03 02:20:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595363', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:20:25] Production.INFO: ==30833== Releasing lock... [2025-03-03 02:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:21:01] Production.INFO: ==30910== Lock acquired, processing the job... [2025-03-03 07:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:21:01] Production.INFO: neon service started [2025-03-03 07:21:01] Production.INFO: neon service started [2025-03-03 07:21:01] Production.INFO: ==30910== Releasing lock... [2025-03-03 07:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:21:02] Production.INFO: ==30912== Lock acquired, processing the job... [2025-03-03 02:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:21:02] Production.INFO: ==30912== Releasing lock... [2025-03-03 02:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:21:02] Production.INFO: ==30914== Lock acquired, processing the job... [2025-03-03 07:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:21:02] Production.INFO: ==30914== Releasing lock... [2025-03-03 07:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:21:03] Production.INFO: ==30917== Lock acquired, processing the job... [2025-03-03 02:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:21:03] Production.INFO: ==30921== Lock acquired, processing the job... [2025-03-03 02:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:21:03] Production.INFO: ==30919== Lock acquired, processing the job... [2025-03-03 02:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:21:03] Production.INFO: ==30923== Lock acquired, processing the job... [2025-03-03 02:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:21:03] Production.INFO: ==30919== Releasing lock... [2025-03-03 02:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:21:03] Production.INFO: ==30925== Lock acquired, processing the job... [2025-03-03 02:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:21:03] Production.INFO: Account Balance Start. [2025-03-03 02:21:03] Production.INFO: CreateAllLog Start [2025-03-03 02:21:03] Production.INFO: 117 [2025-03-03 02:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:21:03] Production.INFO: ==30927== Lock acquired, processing the job... [2025-03-03 02:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: count ==13 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.ERROR: done [2025-03-03 02:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:21:04] Production.INFO: count ==21 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595367') start [2025-03-03 02:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.ERROR: done [2025-03-03 02:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595367') end [2025-03-03 02:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:21:04] Production.INFO: 1 [2025-03-03 02:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: ==30927== Releasing lock... [2025-03-03 02:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:21:04] Production.INFO: Total Charge 0 [2025-03-03 02:21:04] Production.INFO: CreateAllLog End [2025-03-03 02:21:05] Production.INFO: Account Balance End. [2025-03-03 02:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:21:05] Production.INFO: ==30923== Releasing lock... [2025-03-03 02:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:21:13] Production.ERROR: CronJobId end10 [2025-03-03 02:21:13] Production.INFO: ==30921== Releasing lock... [2025-03-03 02:21:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:21:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:21:15] Production.INFO: call_cost start [2025-03-03 02:21:15] Production.INFO: call_cost end [2025-03-03 02:21:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:21:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:21:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:21:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:21:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:21:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:21:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:21:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:21:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:21:15] Production.INFO: ==30917== Releasing lock... [2025-03-03 02:21:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:21:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:21:16] Production.INFO: count ==409 [2025-03-03 02:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595368', 'tblTempUsageDetail_20' ) start [2025-03-03 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595368', 'tblTempUsageDetail_20' ) end [2025-03-03 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595368', 'tblTempVendorCDR_20' ) start [2025-03-03 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595368', 'tblTempVendorCDR_20' ) end [2025-03-03 02:21:16] Production.INFO: ProcessCDR(1,14595368,1,1,2) [2025-03-03 02:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595368', 'tblTempUsageDetail_20' ) start [2025-03-03 02:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595368', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:21:24] Production.INFO: ==30925== Releasing lock... [2025-03-03 02:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:21:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:22:02] Production.INFO: ==30999== Lock acquired, processing the job... [2025-03-03 07:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:22:02] Production.INFO: neon service started [2025-03-03 07:22:02] Production.INFO: neon service started [2025-03-03 07:22:02] Production.INFO: ==30999== Releasing lock... [2025-03-03 07:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:22:02] Production.INFO: ==31003== Lock acquired, processing the job... [2025-03-03 07:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:22:02] Production.INFO: ==31003== Releasing lock... [2025-03-03 07:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:22:02] Production.INFO: ==31001== Lock acquired, processing the job... [2025-03-03 02:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:22:03] Production.INFO: ==31001== Releasing lock... [2025-03-03 02:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:22:03] Production.INFO: ==31011== Lock acquired, processing the job... [2025-03-03 02:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:22:03] Production.INFO: ==31013== Lock acquired, processing the job... [2025-03-03 02:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:22:04] Production.INFO: Account Balance Start. [2025-03-03 02:22:04] Production.INFO: CreateAllLog Start [2025-03-03 02:22:04] Production.INFO: 117 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: ==31005== Lock acquired, processing the job... [2025-03-03 02:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: ==31007== Lock acquired, processing the job... [2025-03-03 02:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:22:04] Production.INFO: ==31009== Lock acquired, processing the job... [2025-03-03 02:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: ==31016== Lock acquired, processing the job... [2025-03-03 02:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.ERROR: done [2025-03-03 02:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: count ==13 [2025-03-03 02:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:22:04] Production.INFO: count ==21 [2025-03-03 02:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595372') start [2025-03-03 02:22:04] Production.ERROR: done [2025-03-03 02:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595372') end [2025-03-03 02:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:22:04] Production.INFO: 1 [2025-03-03 02:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:22:04] Production.INFO: ==31016== Releasing lock... [2025-03-03 02:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:22:04] Production.INFO: ==31007== Releasing lock... [2025-03-03 02:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:22:05] Production.INFO: Total Charge 0 [2025-03-03 02:22:05] Production.INFO: CreateAllLog End [2025-03-03 02:22:05] Production.INFO: Account Balance End. [2025-03-03 02:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:22:05] Production.INFO: ==31011== Releasing lock... [2025-03-03 02:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:22:11] Production.ERROR: CronJobId end10 [2025-03-03 02:22:11] Production.INFO: ==31009== Releasing lock... [2025-03-03 02:22:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:22:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:22:15] Production.INFO: call_cost start [2025-03-03 02:22:15] Production.INFO: call_cost end [2025-03-03 02:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:22:15] Production.INFO: ==31005== Releasing lock... [2025-03-03 02:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:22:16] Production.INFO: count ==409 [2025-03-03 02:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595373', 'tblTempUsageDetail_20' ) start [2025-03-03 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595373', 'tblTempUsageDetail_20' ) end [2025-03-03 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595373', 'tblTempVendorCDR_20' ) start [2025-03-03 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595373', 'tblTempVendorCDR_20' ) end [2025-03-03 02:22:16] Production.INFO: ProcessCDR(1,14595373,1,1,2) [2025-03-03 02:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595373', 'tblTempUsageDetail_20' ) start [2025-03-03 02:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595373', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:22:24] Production.INFO: ==31013== Releasing lock... [2025-03-03 02:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:23:01] Production.INFO: ==31081== Lock acquired, processing the job... [2025-03-03 07:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:23:01] Production.INFO: neon service started [2025-03-03 07:23:01] Production.INFO: neon service started [2025-03-03 07:23:01] Production.INFO: ==31081== Releasing lock... [2025-03-03 07:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:23:01] Production.INFO: ==31083== Lock acquired, processing the job... [2025-03-03 02:23:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:23:02] Production.INFO: ==31083== Releasing lock... [2025-03-03 02:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:23:02] Production.INFO: ==31085== Lock acquired, processing the job... [2025-03-03 07:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:23:02] Production.INFO: ==31085== Releasing lock... [2025-03-03 07:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:23:03] Production.INFO: ==31091== Lock acquired, processing the job... [2025-03-03 02:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:23:03] Production.INFO: ==31096== Lock acquired, processing the job... [2025-03-03 02:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:23:03] Production.INFO: ==31087== Lock acquired, processing the job... [2025-03-03 02:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:23:03] Production.INFO: ==31089== Lock acquired, processing the job... [2025-03-03 02:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:23:03] Production.INFO: ==31094== Lock acquired, processing the job... [2025-03-03 02:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:23:03] Production.INFO: ==31099== Lock acquired, processing the job... [2025-03-03 02:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:23:03] Production.ERROR: done [2025-03-03 02:23:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:23:03] Production.INFO: Account Balance Start. [2025-03-03 02:23:03] Production.INFO: CreateAllLog Start [2025-03-03 02:23:03] Production.INFO: 117 [2025-03-03 02:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:03] Production.INFO: count ==13 [2025-03-03 02:23:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:23:03] Production.INFO: count ==21 [2025-03-03 02:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595376') start [2025-03-03 02:23:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:03] Production.ERROR: done [2025-03-03 02:23:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595376') end [2025-03-03 02:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:23:04] Production.INFO: 1 [2025-03-03 02:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: ==31099== Releasing lock... [2025-03-03 02:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: ==31089== Releasing lock... [2025-03-03 02:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:23:04] Production.INFO: Total Charge 0 [2025-03-03 02:23:05] Production.INFO: CreateAllLog End [2025-03-03 02:23:05] Production.INFO: Account Balance End. [2025-03-03 02:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:23:05] Production.INFO: ==31094== Releasing lock... [2025-03-03 02:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:23:11] Production.ERROR: CronJobId end10 [2025-03-03 02:23:11] Production.INFO: ==31091== Releasing lock... [2025-03-03 02:23:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:23:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:23:14] Production.INFO: call_cost start [2025-03-03 02:23:14] Production.INFO: call_cost end [2025-03-03 02:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:23:14] Production.INFO: ==31087== Releasing lock... [2025-03-03 02:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:23:15] Production.INFO: count ==409 [2025-03-03 02:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595378', 'tblTempUsageDetail_20' ) start [2025-03-03 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595378', 'tblTempUsageDetail_20' ) end [2025-03-03 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595378', 'tblTempVendorCDR_20' ) start [2025-03-03 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595378', 'tblTempVendorCDR_20' ) end [2025-03-03 02:23:16] Production.INFO: ProcessCDR(1,14595378,1,1,2) [2025-03-03 02:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595378', 'tblTempUsageDetail_20' ) start [2025-03-03 02:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595378', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:23:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:23:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:23:23] Production.INFO: ==31096== Releasing lock... [2025-03-03 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:23:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:24:02] Production.INFO: ==31212== Lock acquired, processing the job... [2025-03-03 07:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:24:02] Production.INFO: neon service started [2025-03-03 07:24:02] Production.INFO: neon service started [2025-03-03 07:24:02] Production.INFO: ==31212== Releasing lock... [2025-03-03 07:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:24:02] Production.INFO: ==31214== Lock acquired, processing the job... [2025-03-03 02:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:24:03] Production.INFO: ==31214== Releasing lock... [2025-03-03 02:24:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:24:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:24:03] Production.INFO: ==31216== Lock acquired, processing the job... [2025-03-03 07:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:24:03] Production.INFO: ==31216== Releasing lock... [2025-03-03 07:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:24:04] Production.INFO: ==31219== Lock acquired, processing the job... [2025-03-03 02:24:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:24:04] Production.INFO: ==31221== Lock acquired, processing the job... [2025-03-03 02:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:24:04] Production.INFO: ==31225== Lock acquired, processing the job... [2025-03-03 02:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:24:04] Production.INFO: ==31223== Lock acquired, processing the job... [2025-03-03 02:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:24:04] Production.INFO: ==31227== Lock acquired, processing the job... [2025-03-03 02:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:24:04] Production.INFO: Account Balance Start. [2025-03-03 02:24:04] Production.INFO: CreateAllLog Start [2025-03-03 02:24:04] Production.INFO: 117 [2025-03-03 02:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:24:04] Production.INFO: ==31229== Lock acquired, processing the job... [2025-03-03 02:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:04] Production.INFO: ==31221== Releasing lock... [2025-03-03 02:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:24:04] Production.INFO: count ==13 [2025-03-03 02:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:24:04] Production.INFO: count ==21 [2025-03-03 02:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595382') start [2025-03-03 02:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595382') end [2025-03-03 02:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:24:04] Production.INFO: 1 [2025-03-03 02:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:24:04] Production.ERROR: done [2025-03-03 02:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: ==31229== Releasing lock... [2025-03-03 02:24:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:24:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:24:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.ERROR: done [2025-03-03 02:24:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:24:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:24:05] Production.INFO: Total Charge 0 [2025-03-03 02:24:05] Production.INFO: CreateAllLog End [2025-03-03 02:24:05] Production.INFO: Account Balance End. [2025-03-03 02:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:24:05] Production.INFO: ==31225== Releasing lock... [2025-03-03 02:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:24:13] Production.ERROR: CronJobId end10 [2025-03-03 02:24:13] Production.INFO: ==31223== Releasing lock... [2025-03-03 02:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:24:15] Production.INFO: call_cost start [2025-03-03 02:24:15] Production.INFO: call_cost end [2025-03-03 02:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:24:15] Production.INFO: ==31219== Releasing lock... [2025-03-03 02:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:24:17] Production.INFO: count ==409 [2025-03-03 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595383', 'tblTempUsageDetail_20' ) start [2025-03-03 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595383', 'tblTempUsageDetail_20' ) end [2025-03-03 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595383', 'tblTempVendorCDR_20' ) start [2025-03-03 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595383', 'tblTempVendorCDR_20' ) end [2025-03-03 02:24:17] Production.INFO: ProcessCDR(1,14595383,1,1,2) [2025-03-03 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595383', 'tblTempUsageDetail_20' ) start [2025-03-03 02:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595383', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:24:24] Production.INFO: ==31227== Releasing lock... [2025-03-03 02:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:25:01] Production.INFO: ==31297== Lock acquired, processing the job... [2025-03-03 07:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:25:01] Production.INFO: neon service started [2025-03-03 07:25:01] Production.INFO: neon service started [2025-03-03 07:25:01] Production.INFO: ==31297== Releasing lock... [2025-03-03 07:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:25:02] Production.INFO: ==31301== Lock acquired, processing the job... [2025-03-03 07:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:25:02] Production.INFO: ==31301== Releasing lock... [2025-03-03 07:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:25:02] Production.INFO: ==31299== Lock acquired, processing the job... [2025-03-03 02:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:25:02] Production.INFO: ==31299== Releasing lock... [2025-03-03 02:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:25:03] Production.INFO: ==31306== Lock acquired, processing the job... [2025-03-03 02:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:25:03] Production.INFO: ==31310== Lock acquired, processing the job... [2025-03-03 02:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:25:03] Production.INFO: ==31314== Lock acquired, processing the job... [2025-03-03 02:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:25:03] Production.INFO: Account Balance Start. [2025-03-03 02:25:03] Production.INFO: CreateAllLog Start [2025-03-03 02:25:03] Production.INFO: 117 [2025-03-03 02:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:25:03] Production.INFO: ==31304== Lock acquired, processing the job... [2025-03-03 02:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:03] Production.INFO: count ==13 [2025-03-03 02:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:25:03] Production.INFO: count ==21 [2025-03-03 02:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595386') start [2025-03-03 02:25:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:03] Production.INFO: ==31312== Lock acquired, processing the job... [2025-03-03 02:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:25:03] Production.INFO: ==31308== Lock acquired, processing the job... [2025-03-03 02:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:25:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:03] Production.INFO: ==31306== Releasing lock... [2025-03-03 02:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:25:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595386') end [2025-03-03 02:25:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:25:03] Production.INFO: 1 [2025-03-03 02:25:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:25:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: ==31314== Releasing lock... [2025-03-03 02:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.ERROR: done [2025-03-03 02:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.ERROR: done [2025-03-03 02:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:25:05] Production.INFO: Total Charge 0 [2025-03-03 02:25:05] Production.INFO: CreateAllLog End [2025-03-03 02:25:05] Production.INFO: Account Balance End. [2025-03-03 02:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:25:05] Production.INFO: ==31310== Releasing lock... [2025-03-03 02:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:25:11] Production.ERROR: CronJobId end10 [2025-03-03 02:25:11] Production.INFO: ==31308== Releasing lock... [2025-03-03 02:25:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:25:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:25:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:25:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:25:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:25:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:25:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:25:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:25:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:25:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:25:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:25:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:25:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:25:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:25:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:25:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:25:14] Production.INFO: call_cost start [2025-03-03 02:25:14] Production.INFO: call_cost end [2025-03-03 02:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:25:14] Production.INFO: ==31304== Releasing lock... [2025-03-03 02:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:25:16] Production.INFO: count ==409 [2025-03-03 02:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595388', 'tblTempUsageDetail_20' ) start [2025-03-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595388', 'tblTempUsageDetail_20' ) end [2025-03-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595388', 'tblTempVendorCDR_20' ) start [2025-03-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595388', 'tblTempVendorCDR_20' ) end [2025-03-03 02:25:17] Production.INFO: ProcessCDR(1,14595388,1,1,2) [2025-03-03 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595388', 'tblTempUsageDetail_20' ) start [2025-03-03 02:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595388', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:25:24] Production.INFO: ==31312== Releasing lock... [2025-03-03 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:26:02] Production.INFO: ==31380== Lock acquired, processing the job... [2025-03-03 07:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:26:02] Production.INFO: neon service started [2025-03-03 07:26:02] Production.INFO: neon service started [2025-03-03 07:26:02] Production.INFO: ==31380== Releasing lock... [2025-03-03 07:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:26:02] Production.INFO: ==31382== Lock acquired, processing the job... [2025-03-03 02:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:26:03] Production.INFO: ==31382== Releasing lock... [2025-03-03 02:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:26:03] Production.INFO: ==31384== Lock acquired, processing the job... [2025-03-03 07:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:26:03] Production.INFO: ==31384== Releasing lock... [2025-03-03 07:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:26:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:26:04] Production.INFO: ==31389== Lock acquired, processing the job... [2025-03-03 02:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:26:04] Production.INFO: ==31387== Lock acquired, processing the job... [2025-03-03 02:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:26:04] Production.INFO: ==31397== Lock acquired, processing the job... [2025-03-03 02:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:26:04] Production.INFO: ==31391== Lock acquired, processing the job... [2025-03-03 02:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:26:04] Production.INFO: ==31393== Lock acquired, processing the job... [2025-03-03 02:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:26:04] Production.INFO: count ==13 [2025-03-03 02:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:26:04] Production.INFO: count ==21 [2025-03-03 02:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595390') start [2025-03-03 02:26:04] Production.INFO: Account Balance Start. [2025-03-03 02:26:04] Production.INFO: CreateAllLog Start [2025-03-03 02:26:04] Production.INFO: 117 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:26:04] Production.INFO: ==31389== Releasing lock... [2025-03-03 02:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: ==31395== Lock acquired, processing the job... [2025-03-03 02:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595390') end [2025-03-03 02:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:26:04] Production.INFO: 1 [2025-03-03 02:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:26:04] Production.INFO: ==31397== Releasing lock... [2025-03-03 02:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.ERROR: done [2025-03-03 02:26:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.ERROR: done [2025-03-03 02:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:26:05] Production.INFO: Total Charge 0 [2025-03-03 02:26:05] Production.INFO: CreateAllLog End [2025-03-03 02:26:05] Production.INFO: Account Balance End. [2025-03-03 02:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:26:05] Production.INFO: ==31393== Releasing lock... [2025-03-03 02:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:26:13] Production.ERROR: CronJobId end10 [2025-03-03 02:26:13] Production.INFO: ==31391== Releasing lock... [2025-03-03 02:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:26:15] Production.INFO: call_cost start [2025-03-03 02:26:15] Production.INFO: call_cost end [2025-03-03 02:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:26:15] Production.INFO: ==31387== Releasing lock... [2025-03-03 02:26:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:26:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:26:17] Production.INFO: count ==409 [2025-03-03 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595393', 'tblTempUsageDetail_20' ) start [2025-03-03 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595393', 'tblTempUsageDetail_20' ) end [2025-03-03 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595393', 'tblTempVendorCDR_20' ) start [2025-03-03 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595393', 'tblTempVendorCDR_20' ) end [2025-03-03 02:26:17] Production.INFO: ProcessCDR(1,14595393,1,1,2) [2025-03-03 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595393', 'tblTempUsageDetail_20' ) start [2025-03-03 02:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595393', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:26:25] Production.INFO: ==31395== Releasing lock... [2025-03-03 02:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:26:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:27:01] Production.INFO: ==31458== Lock acquired, processing the job... [2025-03-03 07:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:27:01] Production.INFO: neon service started [2025-03-03 07:27:01] Production.INFO: neon service started [2025-03-03 07:27:01] Production.INFO: ==31458== Releasing lock... [2025-03-03 07:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:27:02] Production.INFO: ==31462== Lock acquired, processing the job... [2025-03-03 07:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:27:02] Production.INFO: ==31462== Releasing lock... [2025-03-03 07:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:27:02] Production.INFO: ==31460== Lock acquired, processing the job... [2025-03-03 02:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:27:02] Production.INFO: ==31460== Releasing lock... [2025-03-03 02:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:27:03] Production.INFO: ==31465== Lock acquired, processing the job... [2025-03-03 02:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:27:03] Production.INFO: ==31467== Lock acquired, processing the job... [2025-03-03 02:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:27:03] Production.INFO: ==31471== Lock acquired, processing the job... [2025-03-03 02:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:27:03] Production.INFO: ==31469== Lock acquired, processing the job... [2025-03-03 02:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:27:03] Production.INFO: Account Balance Start. [2025-03-03 02:27:03] Production.INFO: CreateAllLog Start [2025-03-03 02:27:03] Production.INFO: 117 [2025-03-03 02:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:03] Production.INFO: ==31467== Releasing lock... [2025-03-03 02:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: ==31473== Lock acquired, processing the job... [2025-03-03 02:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: ==31475== Lock acquired, processing the job... [2025-03-03 02:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:27:04] Production.INFO: count ==13 [2025-03-03 02:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:27:04] Production.INFO: count ==21 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595397') start [2025-03-03 02:27:04] Production.ERROR: done [2025-03-03 02:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595397') end [2025-03-03 02:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:27:04] Production.INFO: 1 [2025-03-03 02:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: ==31475== Releasing lock... [2025-03-03 02:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.ERROR: done [2025-03-03 02:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:27:05] Production.INFO: Total Charge 0 [2025-03-03 02:27:05] Production.INFO: CreateAllLog End [2025-03-03 02:27:05] Production.INFO: Account Balance End. [2025-03-03 02:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:27:05] Production.INFO: ==31471== Releasing lock... [2025-03-03 02:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:27:13] Production.ERROR: CronJobId end10 [2025-03-03 02:27:13] Production.INFO: ==31469== Releasing lock... [2025-03-03 02:27:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:27:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:27:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:27:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:27:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:27:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:27:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:27:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:27:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:27:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:27:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:27:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:27:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:27:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:27:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:27:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:27:14] Production.INFO: call_cost start [2025-03-03 02:27:14] Production.INFO: call_cost end [2025-03-03 02:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:27:14] Production.INFO: ==31465== Releasing lock... [2025-03-03 02:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:27:16] Production.INFO: count ==409 [2025-03-03 02:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595398', 'tblTempUsageDetail_20' ) start [2025-03-03 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595398', 'tblTempUsageDetail_20' ) end [2025-03-03 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595398', 'tblTempVendorCDR_20' ) start [2025-03-03 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595398', 'tblTempVendorCDR_20' ) end [2025-03-03 02:27:16] Production.INFO: ProcessCDR(1,14595398,1,1,2) [2025-03-03 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595398', 'tblTempUsageDetail_20' ) start [2025-03-03 02:27:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595398', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:27:24] Production.INFO: ==31473== Releasing lock... [2025-03-03 02:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:28:02] Production.INFO: ==31550== Lock acquired, processing the job... [2025-03-03 07:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:28:02] Production.INFO: neon service started [2025-03-03 07:28:02] Production.INFO: neon service started [2025-03-03 07:28:02] Production.INFO: ==31550== Releasing lock... [2025-03-03 07:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:28:02] Production.INFO: ==31554== Lock acquired, processing the job... [2025-03-03 07:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:28:02] Production.INFO: ==31554== Releasing lock... [2025-03-03 07:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:28:02] Production.INFO: ==31552== Lock acquired, processing the job... [2025-03-03 02:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:28:03] Production.INFO: ==31552== Releasing lock... [2025-03-03 02:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:28:03] Production.INFO: ==31561== Lock acquired, processing the job... [2025-03-03 02:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:28:03] Production.INFO: ==31557== Lock acquired, processing the job... [2025-03-03 02:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:28:03] Production.INFO: ==31565== Lock acquired, processing the job... [2025-03-03 02:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:28:04] Production.INFO: ==31559== Lock acquired, processing the job... [2025-03-03 02:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:28:04] Production.INFO: ==31563== Lock acquired, processing the job... [2025-03-03 02:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:28:04] Production.INFO: ==31567== Lock acquired, processing the job... [2025-03-03 02:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:28:04] Production.INFO: Account Balance Start. [2025-03-03 02:28:04] Production.INFO: CreateAllLog Start [2025-03-03 02:28:04] Production.INFO: 117 [2025-03-03 02:28:04] Production.ERROR: done [2025-03-03 02:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.INFO: count ==13 [2025-03-03 02:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:28:04] Production.INFO: count ==21 [2025-03-03 02:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595402') start [2025-03-03 02:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595402') end [2025-03-03 02:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:28:04] Production.INFO: 1 [2025-03-03 02:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:28:04] Production.ERROR: done [2025-03-03 02:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.INFO: ==31559== Releasing lock... [2025-03-03 02:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:28:04] Production.INFO: ==31567== Releasing lock... [2025-03-03 02:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:28:05] Production.INFO: Total Charge 0 [2025-03-03 02:28:05] Production.INFO: CreateAllLog End [2025-03-03 02:28:05] Production.INFO: Account Balance End. [2025-03-03 02:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:28:05] Production.INFO: ==31563== Releasing lock... [2025-03-03 02:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:28:13] Production.ERROR: CronJobId end10 [2025-03-03 02:28:13] Production.INFO: ==31561== Releasing lock... [2025-03-03 02:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:28:15] Production.INFO: call_cost start [2025-03-03 02:28:15] Production.INFO: call_cost end [2025-03-03 02:28:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:28:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:28:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:28:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:28:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:28:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:28:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:28:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:28:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:28:15] Production.INFO: ==31557== Releasing lock... [2025-03-03 02:28:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:28:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:28:16] Production.INFO: count ==409 [2025-03-03 02:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595403', 'tblTempUsageDetail_20' ) start [2025-03-03 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595403', 'tblTempUsageDetail_20' ) end [2025-03-03 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595403', 'tblTempVendorCDR_20' ) start [2025-03-03 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595403', 'tblTempVendorCDR_20' ) end [2025-03-03 02:28:16] Production.INFO: ProcessCDR(1,14595403,1,1,2) [2025-03-03 02:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595403', 'tblTempUsageDetail_20' ) start [2025-03-03 02:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595403', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:28:24] Production.INFO: ==31565== Releasing lock... [2025-03-03 02:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:29:01] Production.INFO: ==31648== Lock acquired, processing the job... [2025-03-03 07:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:29:01] Production.INFO: neon service started [2025-03-03 07:29:01] Production.INFO: neon service started [2025-03-03 07:29:01] Production.INFO: ==31648== Releasing lock... [2025-03-03 07:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:29:02] Production.INFO: ==31650== Lock acquired, processing the job... [2025-03-03 02:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:29:02] Production.INFO: ==31650== Releasing lock... [2025-03-03 02:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:29:02] Production.INFO: ==31652== Lock acquired, processing the job... [2025-03-03 07:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:29:02] Production.INFO: ==31652== Releasing lock... [2025-03-03 07:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:29:03] Production.INFO: ==31654== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:29:03] Production.INFO: ==31656== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:29:03] Production.INFO: ==31661== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:29:03] Production.INFO: ==31663== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:29:03] Production.INFO: ==31658== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:29:03] Production.INFO: ==31665== Lock acquired, processing the job... [2025-03-03 02:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:29:03] Production.INFO: Account Balance Start. [2025-03-03 02:29:03] Production.INFO: CreateAllLog Start [2025-03-03 02:29:03] Production.INFO: 117 [2025-03-03 02:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.INFO: ==31656== Releasing lock... [2025-03-03 02:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:03] Production.INFO: count ==13 [2025-03-03 02:29:03] Production.ERROR: done [2025-03-03 02:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:29:04] Production.INFO: count ==21 [2025-03-03 02:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595407') start [2025-03-03 02:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595407') end [2025-03-03 02:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:29:04] Production.INFO: 1 [2025-03-03 02:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: ==31665== Releasing lock... [2025-03-03 02:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.ERROR: done [2025-03-03 02:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:29:04] Production.INFO: Total Charge 0 [2025-03-03 02:29:04] Production.INFO: CreateAllLog End [2025-03-03 02:29:05] Production.INFO: Account Balance End. [2025-03-03 02:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:29:05] Production.INFO: ==31661== Releasing lock... [2025-03-03 02:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:29:13] Production.ERROR: CronJobId end10 [2025-03-03 02:29:13] Production.INFO: ==31658== Releasing lock... [2025-03-03 02:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:29:14] Production.INFO: call_cost start [2025-03-03 02:29:14] Production.INFO: call_cost end [2025-03-03 02:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:29:14] Production.INFO: ==31654== Releasing lock... [2025-03-03 02:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:29:16] Production.INFO: count ==409 [2025-03-03 02:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595408', 'tblTempUsageDetail_20' ) start [2025-03-03 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595408', 'tblTempUsageDetail_20' ) end [2025-03-03 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595408', 'tblTempVendorCDR_20' ) start [2025-03-03 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595408', 'tblTempVendorCDR_20' ) end [2025-03-03 02:29:16] Production.INFO: ProcessCDR(1,14595408,1,1,2) [2025-03-03 02:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595408', 'tblTempUsageDetail_20' ) start [2025-03-03 02:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595408', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:29:24] Production.INFO: ==31663== Releasing lock... [2025-03-03 02:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:30:02] Production.INFO: ==31732== Lock acquired, processing the job... [2025-03-03 07:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:30:02] Production.INFO: neon service started [2025-03-03 07:30:02] Production.INFO: neon service started [2025-03-03 07:30:02] Production.INFO: ==31732== Releasing lock... [2025-03-03 07:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:30:02] Production.INFO: ==31734== Lock acquired, processing the job... [2025-03-03 02:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:30:02] Production.INFO: ==31734== Releasing lock... [2025-03-03 02:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:30:02] Production.INFO: ==31736== Lock acquired, processing the job... [2025-03-03 07:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:30:03] Production.INFO: ==31736== Releasing lock... [2025-03-03 07:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:30:03] Production.INFO: ==31739== Lock acquired, processing the job... [2025-03-03 02:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 02:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 02:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 02:30:04] Production.INFO: ==31739== Releasing lock... [2025-03-03 02:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 02:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:30:04] Production.INFO: ==31747== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:30:04] Production.INFO: ==31741== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:30:04] Production.INFO: ==31751== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 02:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:30:04] Production.INFO: ==31743== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:30:04] Production.INFO: ==31753== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:30:04] Production.INFO: ==31749== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:30:04] Production.INFO: ==31745== Lock acquired, processing the job... [2025-03-03 02:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:30:04] Production.INFO: Account Balance Start. [2025-03-03 02:30:04] Production.INFO: CreateAllLog Start [2025-03-03 02:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:30:04] Production.INFO: 117 [2025-03-03 02:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:30:04] Production.ERROR: done [2025-03-03 02:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 02:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595413', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 02:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: count ==13 [2025-03-03 02:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:30:04] Production.INFO: count ==21 [2025-03-03 02:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595411') start [2025-03-03 02:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:30:04] Production.ERROR: done [2025-03-03 02:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595411') end [2025-03-03 02:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:30:04] Production.INFO: 1 [2025-03-03 02:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: ==31753== Releasing lock... [2025-03-03 02:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:04] Production.INFO: ==31743== Releasing lock... [2025-03-03 02:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:30:04] Production.ERROR: done [2025-03-03 02:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:30:05] Production.INFO: Total Charge 0 [2025-03-03 02:30:05] Production.INFO: CreateAllLog End [2025-03-03 02:30:05] Production.INFO: Account Balance End. [2025-03-03 02:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:30:05] Production.INFO: ==31747== Releasing lock... [2025-03-03 02:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:30:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595413', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 02:30:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 02:30:08] Production.INFO: ProcessCDR(1,14595413,1,1,2) [2025-03-03 02:30:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595413,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:30:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595413,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:30:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 02:30:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 02:30:08] Production.INFO: ==31751== Releasing lock... [2025-03-03 02:30:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 02:30:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 02:30:14] Production.ERROR: CronJobId end10 [2025-03-03 02:30:14] Production.INFO: ==31745== Releasing lock... [2025-03-03 02:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:30:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:30:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:30:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:30:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:30:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:30:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:30:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:30:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:30:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:30:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:30:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:30:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:30:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:30:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:30:15] Production.INFO: call_cost start [2025-03-03 02:30:15] Production.INFO: call_cost end [2025-03-03 02:30:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:30:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:30:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:30:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:30:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:30:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:30:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:30:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:30:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:30:15] Production.INFO: ==31741== Releasing lock... [2025-03-03 02:30:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:30:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:30:17] Production.INFO: count ==409 [2025-03-03 02:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595414', 'tblTempUsageDetail_20' ) start [2025-03-03 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595414', 'tblTempUsageDetail_20' ) end [2025-03-03 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595414', 'tblTempVendorCDR_20' ) start [2025-03-03 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595414', 'tblTempVendorCDR_20' ) end [2025-03-03 02:30:17] Production.INFO: ProcessCDR(1,14595414,1,1,2) [2025-03-03 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595414', 'tblTempUsageDetail_20' ) start [2025-03-03 02:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595414', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:30:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:30:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:30:24] Production.INFO: ==31749== Releasing lock... [2025-03-03 02:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:30:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:31:01] Production.INFO: ==31818== Lock acquired, processing the job... [2025-03-03 07:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:31:01] Production.INFO: neon service started [2025-03-03 07:31:01] Production.INFO: neon service started [2025-03-03 07:31:01] Production.INFO: ==31818== Releasing lock... [2025-03-03 07:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:31:01] Production.INFO: ==31820== Lock acquired, processing the job... [2025-03-03 02:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:31:02] Production.INFO: ==31820== Releasing lock... [2025-03-03 02:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:31:02] Production.INFO: ==31822== Lock acquired, processing the job... [2025-03-03 07:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:31:02] Production.INFO: ==31822== Releasing lock... [2025-03-03 07:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:31:03] Production.INFO: ==31825== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:31:03] Production.INFO: ==31829== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:31:03] Production.INFO: ==31827== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:31:03] Production.INFO: ==31835== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:31:03] Production.INFO: ==31831== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:31:03] Production.INFO: ==31833== Lock acquired, processing the job... [2025-03-03 02:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:31:03] Production.INFO: count ==13 [2025-03-03 02:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:31:03] Production.INFO: count ==21 [2025-03-03 02:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595417') start [2025-03-03 02:31:03] Production.INFO: Account Balance Start. [2025-03-03 02:31:03] Production.INFO: CreateAllLog Start [2025-03-03 02:31:03] Production.INFO: 117 [2025-03-03 02:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:03] Production.INFO: ==31827== Releasing lock... [2025-03-03 02:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:31:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:31:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595417') end [2025-03-03 02:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:31:03] Production.INFO: 1 [2025-03-03 02:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:31:03] Production.INFO: ==31835== Releasing lock... [2025-03-03 02:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:31:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:31:03] Production.ERROR: done [2025-03-03 02:31:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:31:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.ERROR: done [2025-03-03 02:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:31:04] Production.INFO: Total Charge 0 [2025-03-03 02:31:04] Production.INFO: CreateAllLog End [2025-03-03 02:31:04] Production.INFO: Account Balance End. [2025-03-03 02:31:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:31:04] Production.INFO: ==31831== Releasing lock... [2025-03-03 02:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:31:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:31:12] Production.ERROR: CronJobId end10 [2025-03-03 02:31:12] Production.INFO: ==31829== Releasing lock... [2025-03-03 02:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:31:14] Production.INFO: call_cost start [2025-03-03 02:31:14] Production.INFO: call_cost end [2025-03-03 02:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:31:14] Production.INFO: ==31825== Releasing lock... [2025-03-03 02:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:31:16] Production.INFO: count ==409 [2025-03-03 02:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595419', 'tblTempUsageDetail_20' ) start [2025-03-03 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595419', 'tblTempUsageDetail_20' ) end [2025-03-03 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595419', 'tblTempVendorCDR_20' ) start [2025-03-03 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595419', 'tblTempVendorCDR_20' ) end [2025-03-03 02:31:16] Production.INFO: ProcessCDR(1,14595419,1,1,2) [2025-03-03 02:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595419', 'tblTempUsageDetail_20' ) start [2025-03-03 02:31:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595419', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:31:24] Production.INFO: ==31833== Releasing lock... [2025-03-03 02:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:31:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:32:02] Production.INFO: ==31902== Lock acquired, processing the job... [2025-03-03 07:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:32:02] Production.INFO: neon service started [2025-03-03 07:32:02] Production.INFO: neon service started [2025-03-03 07:32:02] Production.INFO: ==31902== Releasing lock... [2025-03-03 07:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:32:02] Production.INFO: ==31904== Lock acquired, processing the job... [2025-03-03 02:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:32:02] Production.INFO: ==31904== Releasing lock... [2025-03-03 02:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:32:02] Production.INFO: ==31906== Lock acquired, processing the job... [2025-03-03 07:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:32:02] Production.INFO: ==31906== Releasing lock... [2025-03-03 07:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:32:03] Production.INFO: ==31908== Lock acquired, processing the job... [2025-03-03 02:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:32:03] Production.INFO: ==31911== Lock acquired, processing the job... [2025-03-03 02:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:32:03] Production.INFO: ==31913== Lock acquired, processing the job... [2025-03-03 02:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:32:03] Production.INFO: ==31915== Lock acquired, processing the job... [2025-03-03 02:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:32:03] Production.INFO: ==31917== Lock acquired, processing the job... [2025-03-03 02:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:32:03] Production.INFO: ==31911== Releasing lock... [2025-03-03 02:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:32:04] Production.INFO: ==31919== Lock acquired, processing the job... [2025-03-03 02:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:32:04] Production.INFO: Account Balance Start. [2025-03-03 02:32:04] Production.INFO: CreateAllLog Start [2025-03-03 02:32:04] Production.INFO: 117 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: count ==13 [2025-03-03 02:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:32:04] Production.INFO: count ==21 [2025-03-03 02:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595423') start [2025-03-03 02:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595423') end [2025-03-03 02:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:32:04] Production.INFO: 1 [2025-03-03 02:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:32:04] Production.ERROR: done [2025-03-03 02:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: ==31919== Releasing lock... [2025-03-03 02:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:32:04] Production.ERROR: done [2025-03-03 02:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:32:05] Production.INFO: Total Charge 0 [2025-03-03 02:32:05] Production.INFO: CreateAllLog End [2025-03-03 02:32:05] Production.INFO: Account Balance End. [2025-03-03 02:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:32:05] Production.INFO: ==31915== Releasing lock... [2025-03-03 02:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:32:11] Production.ERROR: CronJobId end10 [2025-03-03 02:32:11] Production.INFO: ==31913== Releasing lock... [2025-03-03 02:32:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:32:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:32:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:32:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:32:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:32:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:32:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:32:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:32:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:32:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:32:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:32:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:32:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:32:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:32:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:32:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:32:14] Production.INFO: call_cost start [2025-03-03 02:32:14] Production.INFO: call_cost end [2025-03-03 02:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:32:14] Production.INFO: ==31908== Releasing lock... [2025-03-03 02:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:32:16] Production.INFO: count ==409 [2025-03-03 02:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595424', 'tblTempUsageDetail_20' ) start [2025-03-03 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595424', 'tblTempUsageDetail_20' ) end [2025-03-03 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595424', 'tblTempVendorCDR_20' ) start [2025-03-03 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595424', 'tblTempVendorCDR_20' ) end [2025-03-03 02:32:16] Production.INFO: ProcessCDR(1,14595424,1,1,2) [2025-03-03 02:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595424', 'tblTempUsageDetail_20' ) start [2025-03-03 02:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595424', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:32:24] Production.INFO: ==31917== Releasing lock... [2025-03-03 02:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:33:01] Production.INFO: ==31977== Lock acquired, processing the job... [2025-03-03 07:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:33:01] Production.INFO: neon service started [2025-03-03 07:33:01] Production.INFO: neon service started [2025-03-03 07:33:01] Production.INFO: ==31977== Releasing lock... [2025-03-03 07:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:33:01] Production.INFO: ==31979== Lock acquired, processing the job... [2025-03-03 02:33:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:33:02] Production.INFO: ==31981== Lock acquired, processing the job... [2025-03-03 07:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:33:02] Production.INFO: ==31979== Releasing lock... [2025-03-03 02:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:33:02] Production.INFO: ==31981== Releasing lock... [2025-03-03 07:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:33:03] Production.INFO: ==31993== Lock acquired, processing the job... [2025-03-03 02:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:33:03] Production.INFO: ==31991== Lock acquired, processing the job... [2025-03-03 02:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:33:03] Production.INFO: ==31983== Lock acquired, processing the job... [2025-03-03 02:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:33:03] Production.INFO: ==31987== Lock acquired, processing the job... [2025-03-03 02:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:33:03] Production.INFO: ==31985== Lock acquired, processing the job... [2025-03-03 02:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:33:03] Production.INFO: count ==13 [2025-03-03 02:33:03] Production.INFO: ==31989== Lock acquired, processing the job... [2025-03-03 02:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:33:03] Production.INFO: count ==21 [2025-03-03 02:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595425') start [2025-03-03 02:33:03] Production.INFO: Account Balance Start. [2025-03-03 02:33:03] Production.INFO: CreateAllLog Start [2025-03-03 02:33:03] Production.INFO: 117 [2025-03-03 02:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595425') end [2025-03-03 02:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:33:03] Production.INFO: 1 [2025-03-03 02:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: ==31993== Releasing lock... [2025-03-03 02:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:33:03] Production.ERROR: done [2025-03-03 02:33:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: ==31985== Releasing lock... [2025-03-03 02:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:33:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:33:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.ERROR: done [2025-03-03 02:33:03] Production.INFO: Date 2025-02-17 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:03] Production.INFO: Date 2025-02-18 [2025-03-03 02:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:33:04] Production.INFO: Total Charge 0 [2025-03-03 02:33:04] Production.INFO: CreateAllLog End [2025-03-03 02:33:04] Production.INFO: Account Balance End. [2025-03-03 02:33:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:33:04] Production.INFO: ==31989== Releasing lock... [2025-03-03 02:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:33:12] Production.ERROR: CronJobId end10 [2025-03-03 02:33:12] Production.INFO: ==31987== Releasing lock... [2025-03-03 02:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:33:14] Production.INFO: call_cost start [2025-03-03 02:33:14] Production.INFO: call_cost end [2025-03-03 02:33:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:33:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:33:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:33:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:33:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:33:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:33:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:33:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:33:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:33:14] Production.INFO: ==31983== Releasing lock... [2025-03-03 02:33:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:33:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:33:16] Production.INFO: count ==409 [2025-03-03 02:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595429', 'tblTempUsageDetail_20' ) start [2025-03-03 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595429', 'tblTempUsageDetail_20' ) end [2025-03-03 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595429', 'tblTempVendorCDR_20' ) start [2025-03-03 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595429', 'tblTempVendorCDR_20' ) end [2025-03-03 02:33:16] Production.INFO: ProcessCDR(1,14595429,1,1,2) [2025-03-03 02:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595429', 'tblTempUsageDetail_20' ) start [2025-03-03 02:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595429', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:33:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:33:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:33:24] Production.INFO: ==31991== Releasing lock... [2025-03-03 02:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:33:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:34:01] Production.INFO: ==32064== Lock acquired, processing the job... [2025-03-03 07:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:34:01] Production.INFO: neon service started [2025-03-03 07:34:01] Production.INFO: neon service started [2025-03-03 07:34:01] Production.INFO: ==32064== Releasing lock... [2025-03-03 07:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:34:02] Production.INFO: ==32068== Lock acquired, processing the job... [2025-03-03 07:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:34:02] Production.INFO: ==32068== Releasing lock... [2025-03-03 07:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:34:02] Production.INFO: ==32066== Lock acquired, processing the job... [2025-03-03 02:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:34:02] Production.INFO: ==32066== Releasing lock... [2025-03-03 02:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:34:03] Production.INFO: ==32071== Lock acquired, processing the job... [2025-03-03 02:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:34:03] Production.INFO: ==32073== Lock acquired, processing the job... [2025-03-03 02:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:34:03] Production.INFO: ==32081== Lock acquired, processing the job... [2025-03-03 02:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:34:03] Production.INFO: ==32073== Releasing lock... [2025-03-03 02:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:34:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:34:03] Production.INFO: count ==13 [2025-03-03 02:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:34:03] Production.INFO: ==32075== Lock acquired, processing the job... [2025-03-03 02:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:34:03] Production.INFO: count ==21 [2025-03-03 02:34:03] Production.INFO: ==32077== Lock acquired, processing the job... [2025-03-03 02:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595432') start [2025-03-03 02:34:04] Production.INFO: ==32079== Lock acquired, processing the job... [2025-03-03 02:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:34:04] Production.INFO: Account Balance Start. [2025-03-03 02:34:04] Production.INFO: CreateAllLog Start [2025-03-03 02:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:34:04] Production.INFO: 117 [2025-03-03 02:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595432') end [2025-03-03 02:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:34:04] Production.INFO: 1 [2025-03-03 02:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: ==32081== Releasing lock... [2025-03-03 02:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.ERROR: done [2025-03-03 02:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.ERROR: done [2025-03-03 02:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:34:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:34:04] Production.INFO: Total Charge 0 [2025-03-03 02:34:04] Production.INFO: CreateAllLog End [2025-03-03 02:34:05] Production.INFO: Account Balance End. [2025-03-03 02:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:34:05] Production.INFO: ==32077== Releasing lock... [2025-03-03 02:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:34:11] Production.ERROR: CronJobId end10 [2025-03-03 02:34:11] Production.INFO: ==32075== Releasing lock... [2025-03-03 02:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:34:15] Production.INFO: call_cost start [2025-03-03 02:34:15] Production.INFO: call_cost end [2025-03-03 02:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:34:15] Production.INFO: ==32071== Releasing lock... [2025-03-03 02:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:34:16] Production.INFO: count ==409 [2025-03-03 02:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595434', 'tblTempUsageDetail_20' ) start [2025-03-03 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595434', 'tblTempUsageDetail_20' ) end [2025-03-03 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595434', 'tblTempVendorCDR_20' ) start [2025-03-03 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595434', 'tblTempVendorCDR_20' ) end [2025-03-03 02:34:16] Production.INFO: ProcessCDR(1,14595434,1,1,2) [2025-03-03 02:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595434', 'tblTempUsageDetail_20' ) start [2025-03-03 02:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595434', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:34:24] Production.INFO: ==32079== Releasing lock... [2025-03-03 02:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:35:02] Production.INFO: ==32151== Lock acquired, processing the job... [2025-03-03 07:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:35:02] Production.INFO: neon service started [2025-03-03 07:35:02] Production.INFO: neon service started [2025-03-03 07:35:02] Production.INFO: ==32151== Releasing lock... [2025-03-03 07:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:35:03] Production.INFO: ==32154== Lock acquired, processing the job... [2025-03-03 02:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:35:03] Production.INFO: ==32156== Lock acquired, processing the job... [2025-03-03 07:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:35:03] Production.INFO: ==32156== Releasing lock... [2025-03-03 07:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:35:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:35:03] Production.INFO: ==32154== Releasing lock... [2025-03-03 02:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:35:04] Production.INFO: ==32158== Lock acquired, processing the job... [2025-03-03 02:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:35:04] Production.INFO: ==32162== Lock acquired, processing the job... [2025-03-03 02:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:35:04] Production.INFO: ==32166== Lock acquired, processing the job... [2025-03-03 02:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:35:04] Production.INFO: ==32160== Lock acquired, processing the job... [2025-03-03 02:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:35:04] Production.INFO: ==32164== Lock acquired, processing the job... [2025-03-03 02:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:35:04] Production.INFO: ==32168== Lock acquired, processing the job... [2025-03-03 02:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:35:04] Production.ERROR: done [2025-03-03 02:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:35:04] Production.INFO: Account Balance Start. [2025-03-03 02:35:04] Production.INFO: CreateAllLog Start [2025-03-03 02:35:04] Production.INFO: 117 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-08 [2025-03-03 02:35:05] Production.INFO: count ==13 [2025-03-03 02:35:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: count ==21 [2025-03-03 02:35:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595438') start [2025-03-03 02:35:05] Production.INFO: Date 2025-02-09 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.ERROR: done [2025-03-03 02:35:05] Production.INFO: ==32160== Releasing lock... [2025-03-03 02:35:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:35:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:35:05] Production.INFO: Date 2025-02-10 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595438') end [2025-03-03 02:35:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:35:05] Production.INFO: 1 [2025-03-03 02:35:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:35:05] Production.INFO: Date 2025-02-11 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:35:05] Production.INFO: ==32168== Releasing lock... [2025-03-03 02:35:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:35:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:35:05] Production.INFO: Date 2025-02-12 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-13 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-14 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-21 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-22 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-23 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-24 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-25 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-26 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-27 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-02-28 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-03-01 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-03-02 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Date 2025-03-03 [2025-03-03 02:35:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:35:06] Production.INFO: Total Charge 0 [2025-03-03 02:35:06] Production.INFO: CreateAllLog End [2025-03-03 02:35:06] Production.INFO: Account Balance End. [2025-03-03 02:35:06] Production.ERROR: CronJobId end 12 [2025-03-03 02:35:06] Production.INFO: ==32164== Releasing lock... [2025-03-03 02:35:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:35:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:35:12] Production.ERROR: CronJobId end10 [2025-03-03 02:35:12] Production.INFO: ==32162== Releasing lock... [2025-03-03 02:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:35:15] Production.INFO: call_cost start [2025-03-03 02:35:15] Production.INFO: call_cost end [2025-03-03 02:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:35:15] Production.INFO: ==32158== Releasing lock... [2025-03-03 02:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:35:17] Production.INFO: count ==409 [2025-03-03 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595439', 'tblTempUsageDetail_20' ) start [2025-03-03 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595439', 'tblTempUsageDetail_20' ) end [2025-03-03 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595439', 'tblTempVendorCDR_20' ) start [2025-03-03 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595439', 'tblTempVendorCDR_20' ) end [2025-03-03 02:35:17] Production.INFO: ProcessCDR(1,14595439,1,1,2) [2025-03-03 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595439', 'tblTempUsageDetail_20' ) start [2025-03-03 02:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595439', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:35:24] Production.INFO: ==32166== Releasing lock... [2025-03-03 02:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:36:01] Production.INFO: ==32234== Lock acquired, processing the job... [2025-03-03 07:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:36:01] Production.INFO: neon service started [2025-03-03 07:36:01] Production.INFO: neon service started [2025-03-03 07:36:01] Production.INFO: ==32234== Releasing lock... [2025-03-03 07:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:36:02] Production.INFO: ==32238== Lock acquired, processing the job... [2025-03-03 07:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:36:02] Production.INFO: ==32238== Releasing lock... [2025-03-03 07:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:36:02] Production.INFO: ==32236== Lock acquired, processing the job... [2025-03-03 02:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:36:02] Production.INFO: ==32236== Releasing lock... [2025-03-03 02:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:36:03] Production.INFO: ==32243== Lock acquired, processing the job... [2025-03-03 02:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:36:03] Production.INFO: ==32247== Lock acquired, processing the job... [2025-03-03 02:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:36:03] Production.INFO: ==32251== Lock acquired, processing the job... [2025-03-03 02:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:36:03] Production.INFO: Account Balance Start. [2025-03-03 02:36:03] Production.INFO: CreateAllLog Start [2025-03-03 02:36:03] Production.INFO: 117 [2025-03-03 02:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.INFO: count ==13 [2025-03-03 02:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:36:03] Production.INFO: count ==21 [2025-03-03 02:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595442') start [2025-03-03 02:36:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.INFO: ==32241== Lock acquired, processing the job... [2025-03-03 02:36:03] Production.INFO: ==32245== Lock acquired, processing the job... [2025-03-03 02:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:36:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595442') end [2025-03-03 02:36:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:36:03] Production.INFO: 1 [2025-03-03 02:36:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:36:03] Production.INFO: ==32243== Releasing lock... [2025-03-03 02:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:36:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:36:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.INFO: ==32251== Releasing lock... [2025-03-03 02:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:36:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:36:03] Production.INFO: ==32249== Lock acquired, processing the job... [2025-03-03 02:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:36:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:36:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:36:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.ERROR: done [2025-03-03 02:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.ERROR: done [2025-03-03 02:36:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:36:04] Production.INFO: Total Charge 0 [2025-03-03 02:36:04] Production.INFO: CreateAllLog End [2025-03-03 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:36:04] Production.INFO: Account Balance End. [2025-03-03 02:36:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:36:04] Production.INFO: ==32247== Releasing lock... [2025-03-03 02:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:36:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:36:10] Production.ERROR: CronJobId end10 [2025-03-03 02:36:10] Production.INFO: ==32245== Releasing lock... [2025-03-03 02:36:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:36:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:36:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:36:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:36:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:36:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:36:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:36:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:36:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:36:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:36:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:36:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:36:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:36:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:36:14] Production.INFO: call_cost start [2025-03-03 02:36:14] Production.INFO: call_cost end [2025-03-03 02:36:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:36:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:36:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:36:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:36:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:36:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:36:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:36:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:36:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:36:14] Production.INFO: ==32241== Releasing lock... [2025-03-03 02:36:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:36:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:36:16] Production.INFO: count ==409 [2025-03-03 02:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595444', 'tblTempUsageDetail_20' ) start [2025-03-03 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595444', 'tblTempUsageDetail_20' ) end [2025-03-03 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595444', 'tblTempVendorCDR_20' ) start [2025-03-03 02:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595444', 'tblTempVendorCDR_20' ) end [2025-03-03 02:36:16] Production.INFO: ProcessCDR(1,14595444,1,1,2) [2025-03-03 02:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595444', 'tblTempUsageDetail_20' ) start [2025-03-03 02:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595444', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:36:24] Production.INFO: ==32249== Releasing lock... [2025-03-03 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:37:01] Production.INFO: ==32318== Lock acquired, processing the job... [2025-03-03 07:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:37:01] Production.INFO: neon service started [2025-03-03 07:37:01] Production.INFO: neon service started [2025-03-03 07:37:01] Production.INFO: ==32318== Releasing lock... [2025-03-03 07:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:37:02] Production.INFO: ==32320== Lock acquired, processing the job... [2025-03-03 02:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:37:02] Production.INFO: ==32322== Lock acquired, processing the job... [2025-03-03 07:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:37:02] Production.INFO: ==32322== Releasing lock... [2025-03-03 07:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:37:02] Production.INFO: ==32320== Releasing lock... [2025-03-03 02:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:37:03] Production.INFO: ==32325== Lock acquired, processing the job... [2025-03-03 02:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:37:03] Production.INFO: ==32331== Lock acquired, processing the job... [2025-03-03 02:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:37:03] Production.INFO: Account Balance Start. [2025-03-03 02:37:03] Production.INFO: CreateAllLog Start [2025-03-03 02:37:03] Production.INFO: 117 [2025-03-03 02:37:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: ==32327== Lock acquired, processing the job... [2025-03-03 02:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:37:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: ==32329== Lock acquired, processing the job... [2025-03-03 02:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:37:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: ==32333== Lock acquired, processing the job... [2025-03-03 02:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:37:03] Production.INFO: ==32335== Lock acquired, processing the job... [2025-03-03 02:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:37:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:37:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:37:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:37:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:03] Production.INFO: count ==13 [2025-03-03 02:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:37:04] Production.INFO: count ==21 [2025-03-03 02:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595448') start [2025-03-03 02:37:04] Production.INFO: ==32327== Releasing lock... [2025-03-03 02:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595448') end [2025-03-03 02:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:37:04] Production.INFO: 1 [2025-03-03 02:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: ==32335== Releasing lock... [2025-03-03 02:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:37:04] Production.ERROR: done [2025-03-03 02:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.ERROR: done [2025-03-03 02:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:37:04] Production.INFO: Total Charge 0 [2025-03-03 02:37:04] Production.INFO: CreateAllLog End [2025-03-03 02:37:05] Production.INFO: Account Balance End. [2025-03-03 02:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:37:05] Production.INFO: ==32331== Releasing lock... [2025-03-03 02:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:37:12] Production.ERROR: CronJobId end10 [2025-03-03 02:37:12] Production.INFO: ==32329== Releasing lock... [2025-03-03 02:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:37:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:37:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:37:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:37:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:37:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:37:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:37:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:37:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:37:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:37:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:37:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:37:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:37:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:37:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:37:13] Production.INFO: call_cost start [2025-03-03 02:37:13] Production.INFO: call_cost end [2025-03-03 02:37:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:37:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:37:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:37:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:37:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:37:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:37:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:37:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:37:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:37:13] Production.INFO: ==32325== Releasing lock... [2025-03-03 02:37:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:37:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:37:16] Production.INFO: count ==409 [2025-03-03 02:37:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595449', 'tblTempUsageDetail_20' ) start [2025-03-03 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595449', 'tblTempUsageDetail_20' ) end [2025-03-03 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595449', 'tblTempVendorCDR_20' ) start [2025-03-03 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595449', 'tblTempVendorCDR_20' ) end [2025-03-03 02:37:16] Production.INFO: ProcessCDR(1,14595449,1,1,2) [2025-03-03 02:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595449', 'tblTempUsageDetail_20' ) start [2025-03-03 02:37:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595449', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:37:24] Production.INFO: ==32333== Releasing lock... [2025-03-03 02:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:38:01] Production.INFO: ==32410== Lock acquired, processing the job... [2025-03-03 07:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:38:01] Production.INFO: neon service started [2025-03-03 07:38:01] Production.INFO: neon service started [2025-03-03 07:38:01] Production.INFO: ==32410== Releasing lock... [2025-03-03 07:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:38:02] Production.INFO: ==32412== Lock acquired, processing the job... [2025-03-03 02:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:38:02] Production.INFO: ==32414== Lock acquired, processing the job... [2025-03-03 07:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:38:02] Production.INFO: ==32414== Releasing lock... [2025-03-03 07:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:38:02] Production.INFO: ==32412== Releasing lock... [2025-03-03 02:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:38:03] Production.INFO: ==32423== Lock acquired, processing the job... [2025-03-03 02:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:38:03] Production.INFO: ==32427== Lock acquired, processing the job... [2025-03-03 02:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:38:04] Production.INFO: Account Balance Start. [2025-03-03 02:38:04] Production.INFO: CreateAllLog Start [2025-03-03 02:38:04] Production.INFO: 117 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: count ==13 [2025-03-03 02:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:38:04] Production.INFO: ==32417== Lock acquired, processing the job... [2025-03-03 02:38:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:38:04] Production.INFO: count ==21 [2025-03-03 02:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595451') start [2025-03-03 02:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:38:04] Production.INFO: ==32419== Lock acquired, processing the job... [2025-03-03 02:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: ==32421== Lock acquired, processing the job... [2025-03-03 02:38:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595451') end [2025-03-03 02:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:38:04] Production.INFO: 1 [2025-03-03 02:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: ==32427== Releasing lock... [2025-03-03 02:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: ==32425== Lock acquired, processing the job... [2025-03-03 02:38:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:38:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:38:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: ==32419== Releasing lock... [2025-03-03 02:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.ERROR: done [2025-03-03 02:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:38:04] Production.INFO: Total Charge 0 [2025-03-03 02:38:05] Production.ERROR: done [2025-03-03 02:38:05] Production.INFO: CreateAllLog End [2025-03-03 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:38:05] Production.INFO: Account Balance End. [2025-03-03 02:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:38:05] Production.INFO: ==32423== Releasing lock... [2025-03-03 02:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:38:11] Production.ERROR: CronJobId end10 [2025-03-03 02:38:11] Production.INFO: ==32421== Releasing lock... [2025-03-03 02:38:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:38:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:38:13] Production.INFO: call_cost start [2025-03-03 02:38:13] Production.INFO: call_cost end [2025-03-03 02:38:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:38:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:38:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:38:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:38:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:38:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:38:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:38:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:38:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:38:13] Production.INFO: ==32417== Releasing lock... [2025-03-03 02:38:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:38:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:38:16] Production.INFO: count ==409 [2025-03-03 02:38:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595454', 'tblTempUsageDetail_20' ) start [2025-03-03 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595454', 'tblTempUsageDetail_20' ) end [2025-03-03 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595454', 'tblTempVendorCDR_20' ) start [2025-03-03 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595454', 'tblTempVendorCDR_20' ) end [2025-03-03 02:38:17] Production.INFO: ProcessCDR(1,14595454,1,1,2) [2025-03-03 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595454', 'tblTempUsageDetail_20' ) start [2025-03-03 02:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595454', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:38:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:38:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:38:25] Production.INFO: ==32425== Releasing lock... [2025-03-03 02:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:38:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:39:01] Production.INFO: ==32490== Lock acquired, processing the job... [2025-03-03 07:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:39:01] Production.INFO: neon service started [2025-03-03 07:39:01] Production.INFO: neon service started [2025-03-03 07:39:01] Production.INFO: ==32490== Releasing lock... [2025-03-03 07:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:39:02] Production.INFO: ==32492== Lock acquired, processing the job... [2025-03-03 02:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:39:02] Production.INFO: ==32494== Lock acquired, processing the job... [2025-03-03 07:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:39:02] Production.INFO: ==32494== Releasing lock... [2025-03-03 07:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:39:02] Production.INFO: ==32492== Releasing lock... [2025-03-03 02:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:39:03] Production.INFO: ==32499== Lock acquired, processing the job... [2025-03-03 02:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:39:03] Production.INFO: ==32505== Lock acquired, processing the job... [2025-03-03 02:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:39:03] Production.INFO: ==32497== Lock acquired, processing the job... [2025-03-03 02:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:39:03] Production.INFO: ==32501== Lock acquired, processing the job... [2025-03-03 02:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:39:03] Production.INFO: ==32503== Lock acquired, processing the job... [2025-03-03 02:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:39:03] Production.INFO: ==32507== Lock acquired, processing the job... [2025-03-03 02:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:39:03] Production.INFO: ==32499== Releasing lock... [2025-03-03 02:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:39:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:39:03] Production.INFO: Account Balance Start. [2025-03-03 02:39:03] Production.INFO: CreateAllLog Start [2025-03-03 02:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:39:03] Production.INFO: 117 [2025-03-03 02:39:03] Production.INFO: count ==13 [2025-03-03 02:39:03] Production.ERROR: done [2025-03-03 02:39:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:39:03] Production.INFO: count ==21 [2025-03-03 02:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595458') start [2025-03-03 02:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.ERROR: done [2025-03-03 02:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595458') end [2025-03-03 02:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:39:04] Production.INFO: 1 [2025-03-03 02:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:39:04] Production.INFO: ==32507== Releasing lock... [2025-03-03 02:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:39:05] Production.INFO: Total Charge 0 [2025-03-03 02:39:05] Production.INFO: CreateAllLog End [2025-03-03 02:39:05] Production.INFO: Account Balance End. [2025-03-03 02:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:39:05] Production.INFO: ==32503== Releasing lock... [2025-03-03 02:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:39:11] Production.ERROR: CronJobId end10 [2025-03-03 02:39:11] Production.INFO: ==32501== Releasing lock... [2025-03-03 02:39:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:39:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:39:14] Production.INFO: call_cost start [2025-03-03 02:39:14] Production.INFO: call_cost end [2025-03-03 02:39:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:39:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:39:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:39:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:39:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:39:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:39:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:39:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:39:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:39:14] Production.INFO: ==32497== Releasing lock... [2025-03-03 02:39:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:39:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:39:16] Production.INFO: count ==409 [2025-03-03 02:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595459', 'tblTempUsageDetail_20' ) start [2025-03-03 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595459', 'tblTempUsageDetail_20' ) end [2025-03-03 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595459', 'tblTempVendorCDR_20' ) start [2025-03-03 02:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595459', 'tblTempVendorCDR_20' ) end [2025-03-03 02:39:16] Production.INFO: ProcessCDR(1,14595459,1,1,2) [2025-03-03 02:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595459', 'tblTempUsageDetail_20' ) start [2025-03-03 02:39:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595459', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:39:24] Production.INFO: ==32505== Releasing lock... [2025-03-03 02:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:39:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:40:01] Production.INFO: ==32622== Lock acquired, processing the job... [2025-03-03 07:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:40:02] Production.INFO: neon service started [2025-03-03 07:40:02] Production.INFO: neon service started [2025-03-03 07:40:02] Production.INFO: ==32622== Releasing lock... [2025-03-03 07:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:40:02] Production.INFO: ==32624== Lock acquired, processing the job... [2025-03-03 02:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:40:02] Production.INFO: ==32626== Lock acquired, processing the job... [2025-03-03 07:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:40:02] Production.INFO: ==32626== Releasing lock... [2025-03-03 07:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:40:03] Production.INFO: ==32624== Releasing lock... [2025-03-03 02:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:40:04] Production.INFO: ==32631== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:40:04] Production.INFO: ==32629== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 02:40:04] Production.INFO: ==32641== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 02:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 02:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:40:04] Production.ERROR: CronJob PID - 32631 [2025-03-03 02:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 02:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 02:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 02:40:00 [2025-03-03 02:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:40:04] Production.ERROR: CronJob PID - 32641 [2025-03-03 02:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 02:40:04] Production.ERROR: CronJob ID - 17 [2025-03-03 02:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 02:40:00 [2025-03-03 02:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 02:40:04] Production.INFO: ==32629== Releasing lock... [2025-03-03 02:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 02:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:40:04] Production.INFO: ==32643== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:40:04] Production.INFO: ==32633== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:40:04] Production.INFO: ==32635== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:40:04] Production.INFO: ==32637== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:40:04] Production.INFO: count ==13 [2025-03-03 02:40:04] Production.INFO: ==32639== Lock acquired, processing the job... [2025-03-03 02:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:40:04] Production.INFO: count ==21 [2025-03-03 02:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595461') start [2025-03-03 02:40:04] Production.INFO: Account Balance Start. [2025-03-03 02:40:04] Production.INFO: CreateAllLog Start [2025-03-03 02:40:04] Production.INFO: 117 [2025-03-03 02:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:40:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:40:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:40:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:40:05] Production.INFO: Date 2025-02-09 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595461') end [2025-03-03 02:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:40:05] Production.INFO: 1 [2025-03-03 02:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:40:05] Production.INFO: Date 2025-02-10 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: ==32643== Releasing lock... [2025-03-03 02:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:40:05] Production.ERROR: done [2025-03-03 02:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 02:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595464', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 02:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.ERROR: done [2025-03-03 02:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: ==32633== Releasing lock... [2025-03-03 02:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.ERROR: done [2025-03-03 02:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:06] Production.INFO: Date 2025-02-28 [2025-03-03 02:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:06] Production.INFO: Date 2025-03-01 [2025-03-03 02:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:06] Production.INFO: Date 2025-03-02 [2025-03-03 02:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:06] Production.INFO: Date 2025-03-03 [2025-03-03 02:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:40:06] Production.INFO: Total Charge 0 [2025-03-03 02:40:06] Production.INFO: CreateAllLog End [2025-03-03 02:40:06] Production.INFO: Account Balance End. [2025-03-03 02:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 02:40:06] Production.INFO: ==32637== Releasing lock... [2025-03-03 02:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595464', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 02:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 02:40:09] Production.INFO: ProcessCDR(1,14595464,1,1,2) [2025-03-03 02:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595464,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595464,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 02:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 02:40:09] Production.INFO: ==32641== Releasing lock... [2025-03-03 02:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 02:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 02:40:15] Production.ERROR: CronJobId end10 [2025-03-03 02:40:15] Production.INFO: ==32635== Releasing lock... [2025-03-03 02:40:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:40:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:40:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:40:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:40:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:40:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:40:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:40:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:40:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:40:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:40:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:40:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:40:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:40:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:40:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:40:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:40:17] Production.INFO: call_cost start [2025-03-03 02:40:17] Production.INFO: call_cost end [2025-03-03 02:40:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:40:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:40:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:40:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:40:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:40:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:40:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:40:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:40:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:40:17] Production.INFO: ==32631== Releasing lock... [2025-03-03 02:40:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:40:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:40:17] Production.INFO: count ==409 [2025-03-03 02:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595465', 'tblTempUsageDetail_20' ) start [2025-03-03 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595465', 'tblTempUsageDetail_20' ) end [2025-03-03 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595465', 'tblTempVendorCDR_20' ) start [2025-03-03 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595465', 'tblTempVendorCDR_20' ) end [2025-03-03 02:40:17] Production.INFO: ProcessCDR(1,14595465,1,1,2) [2025-03-03 02:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595465', 'tblTempUsageDetail_20' ) start [2025-03-03 02:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595465', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:40:25] Production.INFO: ==32639== Releasing lock... [2025-03-03 02:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:40:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:41:01] Production.INFO: ==32710== Lock acquired, processing the job... [2025-03-03 07:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:41:01] Production.INFO: neon service started [2025-03-03 07:41:01] Production.INFO: neon service started [2025-03-03 07:41:01] Production.INFO: ==32710== Releasing lock... [2025-03-03 07:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:41:01] Production.INFO: ==32714== Lock acquired, processing the job... [2025-03-03 07:41:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:41:01] Production.INFO: ==32714== Releasing lock... [2025-03-03 07:41:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:41:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:41:02] Production.INFO: ==32712== Lock acquired, processing the job... [2025-03-03 02:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:41:02] Production.INFO: ==32712== Releasing lock... [2025-03-03 02:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:41:03] Production.INFO: ==32717== Lock acquired, processing the job... [2025-03-03 02:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:41:03] Production.INFO: ==32719== Lock acquired, processing the job... [2025-03-03 02:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:41:03] Production.INFO: ==32725== Lock acquired, processing the job... [2025-03-03 02:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:41:03] Production.INFO: ==32723== Lock acquired, processing the job... [2025-03-03 02:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:41:03] Production.INFO: ==32721== Lock acquired, processing the job... [2025-03-03 02:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:41:03] Production.INFO: ==32727== Lock acquired, processing the job... [2025-03-03 02:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:41:03] Production.INFO: Account Balance Start. [2025-03-03 02:41:03] Production.INFO: CreateAllLog Start [2025-03-03 02:41:03] Production.INFO: 117 [2025-03-03 02:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.ERROR: done [2025-03-03 02:41:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.INFO: ==32719== Releasing lock... [2025-03-03 02:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.INFO: count ==13 [2025-03-03 02:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:41:03] Production.INFO: count ==21 [2025-03-03 02:41:03] Production.ERROR: done [2025-03-03 02:41:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595469') start [2025-03-03 02:41:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595469') end [2025-03-03 02:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:41:04] Production.INFO: 1 [2025-03-03 02:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:41:04] Production.INFO: ==32727== Releasing lock... [2025-03-03 02:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:41:04] Production.INFO: Total Charge 0 [2025-03-03 02:41:04] Production.INFO: CreateAllLog End [2025-03-03 02:41:04] Production.INFO: Account Balance End. [2025-03-03 02:41:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:41:04] Production.INFO: ==32723== Releasing lock... [2025-03-03 02:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:41:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:41:11] Production.ERROR: CronJobId end10 [2025-03-03 02:41:11] Production.INFO: ==32721== Releasing lock... [2025-03-03 02:41:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:41:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:41:14] Production.INFO: call_cost start [2025-03-03 02:41:14] Production.INFO: call_cost end [2025-03-03 02:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:41:14] Production.INFO: ==32717== Releasing lock... [2025-03-03 02:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:41:15] Production.INFO: count ==409 [2025-03-03 02:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595470', 'tblTempUsageDetail_20' ) start [2025-03-03 02:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595470', 'tblTempUsageDetail_20' ) end [2025-03-03 02:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595470', 'tblTempVendorCDR_20' ) start [2025-03-03 02:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595470', 'tblTempVendorCDR_20' ) end [2025-03-03 02:41:16] Production.INFO: ProcessCDR(1,14595470,1,1,2) [2025-03-03 02:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595470', 'tblTempUsageDetail_20' ) start [2025-03-03 02:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595470', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:41:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:41:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:41:23] Production.INFO: ==32725== Releasing lock... [2025-03-03 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:41:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:42:01] Production.INFO: ==327== Lock acquired, processing the job... [2025-03-03 07:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:42:01] Production.INFO: neon service started [2025-03-03 07:42:01] Production.INFO: neon service started [2025-03-03 07:42:01] Production.INFO: ==327== Releasing lock... [2025-03-03 07:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:42:02] Production.INFO: ==329== Lock acquired, processing the job... [2025-03-03 02:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:42:02] Production.INFO: ==331== Lock acquired, processing the job... [2025-03-03 07:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:42:02] Production.INFO: ==331== Releasing lock... [2025-03-03 07:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:42:02] Production.INFO: ==329== Releasing lock... [2025-03-03 02:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:42:03] Production.INFO: ==338== Lock acquired, processing the job... [2025-03-03 02:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:42:03] Production.INFO: ==334== Lock acquired, processing the job... [2025-03-03 02:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:42:03] Production.INFO: ==336== Lock acquired, processing the job... [2025-03-03 02:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:42:03] Production.INFO: ==356== Lock acquired, processing the job... [2025-03-03 02:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:42:04] Production.INFO: ==352== Lock acquired, processing the job... [2025-03-03 02:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:42:04] Production.INFO: ==354== Lock acquired, processing the job... [2025-03-03 02:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:42:04] Production.INFO: Account Balance Start. [2025-03-03 02:42:04] Production.INFO: CreateAllLog Start [2025-03-03 02:42:04] Production.INFO: 117 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: count ==13 [2025-03-03 02:42:04] Production.INFO: ==336== Releasing lock... [2025-03-03 02:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:42:04] Production.INFO: count ==21 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595473') start [2025-03-03 02:42:04] Production.ERROR: done [2025-03-03 02:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595473') end [2025-03-03 02:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:42:04] Production.INFO: 1 [2025-03-03 02:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:42:04] Production.ERROR: done [2025-03-03 02:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: ==356== Releasing lock... [2025-03-03 02:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:42:05] Production.INFO: Total Charge 0 [2025-03-03 02:42:05] Production.INFO: CreateAllLog End [2025-03-03 02:42:05] Production.INFO: Account Balance End. [2025-03-03 02:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:42:05] Production.INFO: ==352== Releasing lock... [2025-03-03 02:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:42:11] Production.ERROR: CronJobId end10 [2025-03-03 02:42:11] Production.INFO: ==338== Releasing lock... [2025-03-03 02:42:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:42:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:42:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:42:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:42:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:42:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:42:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:42:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:42:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:42:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:42:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:42:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:42:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:42:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:42:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:42:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:42:13] Production.INFO: call_cost start [2025-03-03 02:42:13] Production.INFO: call_cost end [2025-03-03 02:42:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:42:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:42:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:42:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:42:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:42:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:42:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:42:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:42:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:42:13] Production.INFO: ==334== Releasing lock... [2025-03-03 02:42:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:42:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:42:16] Production.INFO: count ==409 [2025-03-03 02:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595475', 'tblTempUsageDetail_20' ) start [2025-03-03 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595475', 'tblTempUsageDetail_20' ) end [2025-03-03 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595475', 'tblTempVendorCDR_20' ) start [2025-03-03 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595475', 'tblTempVendorCDR_20' ) end [2025-03-03 02:42:16] Production.INFO: ProcessCDR(1,14595475,1,1,2) [2025-03-03 02:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595475', 'tblTempUsageDetail_20' ) start [2025-03-03 02:42:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595475', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:42:24] Production.INFO: ==354== Releasing lock... [2025-03-03 02:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:43:02] Production.INFO: ==409== Lock acquired, processing the job... [2025-03-03 07:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:43:02] Production.INFO: neon service started [2025-03-03 07:43:02] Production.INFO: neon service started [2025-03-03 07:43:02] Production.INFO: ==409== Releasing lock... [2025-03-03 07:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:43:02] Production.INFO: ==412== Lock acquired, processing the job... [2025-03-03 02:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:43:02] Production.INFO: ==412== Releasing lock... [2025-03-03 02:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:43:03] Production.INFO: ==414== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:43:03] Production.INFO: ==414== Releasing lock... [2025-03-03 07:43:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:43:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:43:03] Production.INFO: ==418== Lock acquired, processing the job... [2025-03-03 02:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:43:03] Production.INFO: ==416== Lock acquired, processing the job... [2025-03-03 02:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:43:04] Production.INFO: ==424== Lock acquired, processing the job... [2025-03-03 02:43:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:43:04] Production.INFO: ==420== Lock acquired, processing the job... [2025-03-03 02:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:43:04] Production.INFO: ==422== Lock acquired, processing the job... [2025-03-03 02:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:43:04] Production.INFO: ==426== Lock acquired, processing the job... [2025-03-03 02:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:43:04] Production.INFO: Account Balance Start. [2025-03-03 02:43:04] Production.INFO: CreateAllLog Start [2025-03-03 02:43:04] Production.INFO: 117 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: ==418== Releasing lock... [2025-03-03 02:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:43:04] Production.ERROR: done [2025-03-03 02:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: count ==13 [2025-03-03 02:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:43:04] Production.INFO: count ==21 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.ERROR: done [2025-03-03 02:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595479') start [2025-03-03 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595479') end [2025-03-03 02:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:43:04] Production.INFO: 1 [2025-03-03 02:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: ==426== Releasing lock... [2025-03-03 02:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:43:05] Production.INFO: Total Charge 0 [2025-03-03 02:43:05] Production.INFO: CreateAllLog End [2025-03-03 02:43:05] Production.INFO: Account Balance End. [2025-03-03 02:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:43:05] Production.INFO: ==422== Releasing lock... [2025-03-03 02:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:43:12] Production.ERROR: CronJobId end10 [2025-03-03 02:43:12] Production.INFO: ==420== Releasing lock... [2025-03-03 02:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:43:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:43:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:43:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:43:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:43:15] Production.INFO: call_cost start [2025-03-03 02:43:15] Production.INFO: call_cost end [2025-03-03 02:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:43:15] Production.INFO: ==416== Releasing lock... [2025-03-03 02:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:43:16] Production.INFO: count ==409 [2025-03-03 02:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595480', 'tblTempUsageDetail_20' ) start [2025-03-03 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595480', 'tblTempUsageDetail_20' ) end [2025-03-03 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595480', 'tblTempVendorCDR_20' ) start [2025-03-03 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595480', 'tblTempVendorCDR_20' ) end [2025-03-03 02:43:16] Production.INFO: ProcessCDR(1,14595480,1,1,2) [2025-03-03 02:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595480', 'tblTempUsageDetail_20' ) start [2025-03-03 02:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595480', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:43:24] Production.INFO: ==424== Releasing lock... [2025-03-03 02:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:44:01] Production.INFO: ==499== Lock acquired, processing the job... [2025-03-03 07:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:44:01] Production.INFO: neon service started [2025-03-03 07:44:01] Production.INFO: neon service started [2025-03-03 07:44:01] Production.INFO: ==499== Releasing lock... [2025-03-03 07:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:44:02] Production.INFO: ==502== Lock acquired, processing the job... [2025-03-03 02:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:44:02] Production.INFO: ==504== Lock acquired, processing the job... [2025-03-03 07:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:44:02] Production.INFO: ==502== Releasing lock... [2025-03-03 02:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:44:02] Production.INFO: ==504== Releasing lock... [2025-03-03 07:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:44:03] Production.INFO: ==507== Lock acquired, processing the job... [2025-03-03 02:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:44:03] Production.INFO: ==511== Lock acquired, processing the job... [2025-03-03 02:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:44:03] Production.INFO: ==513== Lock acquired, processing the job... [2025-03-03 02:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:44:03] Production.INFO: Account Balance Start. [2025-03-03 02:44:03] Production.INFO: CreateAllLog Start [2025-03-03 02:44:03] Production.INFO: 117 [2025-03-03 02:44:03] Production.INFO: ==509== Lock acquired, processing the job... [2025-03-03 02:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: ==517== Lock acquired, processing the job... [2025-03-03 02:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:44:03] Production.INFO: ==515== Lock acquired, processing the job... [2025-03-03 02:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:44:04] Production.INFO: count ==13 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:44:04] Production.INFO: count ==21 [2025-03-03 02:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595484') start [2025-03-03 02:44:04] Production.INFO: ==509== Releasing lock... [2025-03-03 02:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595484') end [2025-03-03 02:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:44:04] Production.INFO: 1 [2025-03-03 02:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: ==517== Releasing lock... [2025-03-03 02:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.ERROR: done [2025-03-03 02:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.ERROR: done [2025-03-03 02:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:44:05] Production.INFO: Total Charge 0 [2025-03-03 02:44:05] Production.INFO: CreateAllLog End [2025-03-03 02:44:05] Production.INFO: Account Balance End. [2025-03-03 02:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:44:05] Production.INFO: ==513== Releasing lock... [2025-03-03 02:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:44:11] Production.ERROR: CronJobId end10 [2025-03-03 02:44:11] Production.INFO: ==511== Releasing lock... [2025-03-03 02:44:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:44:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:44:14] Production.INFO: call_cost start [2025-03-03 02:44:14] Production.INFO: call_cost end [2025-03-03 02:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:44:14] Production.INFO: ==507== Releasing lock... [2025-03-03 02:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:44:16] Production.INFO: count ==409 [2025-03-03 02:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595485', 'tblTempUsageDetail_20' ) start [2025-03-03 02:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595485', 'tblTempUsageDetail_20' ) end [2025-03-03 02:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595485', 'tblTempVendorCDR_20' ) start [2025-03-03 02:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595485', 'tblTempVendorCDR_20' ) end [2025-03-03 02:44:16] Production.INFO: ProcessCDR(1,14595485,1,1,2) [2025-03-03 02:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595485', 'tblTempUsageDetail_20' ) start [2025-03-03 02:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595485', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:44:24] Production.INFO: ==515== Releasing lock... [2025-03-03 02:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:44:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:45:02] Production.INFO: ==576== Lock acquired, processing the job... [2025-03-03 07:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:45:02] Production.INFO: neon service started [2025-03-03 07:45:02] Production.INFO: neon service started [2025-03-03 07:45:02] Production.INFO: ==576== Releasing lock... [2025-03-03 07:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:45:02] Production.INFO: ==581== Lock acquired, processing the job... [2025-03-03 07:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:45:02] Production.INFO: ==581== Releasing lock... [2025-03-03 07:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:45:02] Production.INFO: ==579== Lock acquired, processing the job... [2025-03-03 02:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:45:03] Production.INFO: ==579== Releasing lock... [2025-03-03 02:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:45:03] Production.INFO: ==584== Lock acquired, processing the job... [2025-03-03 02:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:45:04] Production.INFO: ==595== Lock acquired, processing the job... [2025-03-03 02:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:45:04] Production.INFO: ==586== Lock acquired, processing the job... [2025-03-03 02:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:45:04] Production.INFO: count ==13 [2025-03-03 02:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:45:04] Production.INFO: ==588== Lock acquired, processing the job... [2025-03-03 02:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:45:04] Production.INFO: count ==21 [2025-03-03 02:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595487') start [2025-03-03 02:45:04] Production.INFO: ==590== Lock acquired, processing the job... [2025-03-03 02:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:45:04] Production.INFO: ==592== Lock acquired, processing the job... [2025-03-03 02:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595487') end [2025-03-03 02:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:45:04] Production.INFO: 1 [2025-03-03 02:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:45:04] Production.INFO: Account Balance Start. [2025-03-03 02:45:04] Production.INFO: CreateAllLog Start [2025-03-03 02:45:04] Production.INFO: 117 [2025-03-03 02:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:45:04] Production.INFO: ==595== Releasing lock... [2025-03-03 02:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:45:04] Production.INFO: ==586== Releasing lock... [2025-03-03 02:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:04] Production.ERROR: done [2025-03-03 02:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:04] Production.ERROR: done [2025-03-03 02:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:45:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:45:05] Production.INFO: Total Charge 0 [2025-03-03 02:45:05] Production.INFO: CreateAllLog End [2025-03-03 02:45:05] Production.INFO: Account Balance End. [2025-03-03 02:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:45:05] Production.INFO: ==590== Releasing lock... [2025-03-03 02:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:45:12] Production.ERROR: CronJobId end10 [2025-03-03 02:45:12] Production.INFO: ==588== Releasing lock... [2025-03-03 02:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:45:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:45:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:45:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:45:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:45:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:45:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:45:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:45:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:45:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:45:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:45:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:45:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:45:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:45:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:45:15] Production.INFO: call_cost start [2025-03-03 02:45:15] Production.INFO: call_cost end [2025-03-03 02:45:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:45:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:45:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:45:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:45:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:45:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:45:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:45:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:45:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:45:15] Production.INFO: ==584== Releasing lock... [2025-03-03 02:45:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:45:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:45:16] Production.INFO: count ==409 [2025-03-03 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595490', 'tblTempUsageDetail_20' ) start [2025-03-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595490', 'tblTempUsageDetail_20' ) end [2025-03-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595490', 'tblTempVendorCDR_20' ) start [2025-03-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595490', 'tblTempVendorCDR_20' ) end [2025-03-03 02:45:17] Production.INFO: ProcessCDR(1,14595490,1,1,2) [2025-03-03 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595490', 'tblTempUsageDetail_20' ) start [2025-03-03 02:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595490', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:45:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:45:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:45:25] Production.INFO: ==592== Releasing lock... [2025-03-03 02:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:45:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:46:01] Production.INFO: ==664== Lock acquired, processing the job... [2025-03-03 07:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:46:01] Production.INFO: neon service started [2025-03-03 07:46:01] Production.INFO: neon service started [2025-03-03 07:46:01] Production.INFO: ==664== Releasing lock... [2025-03-03 07:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:46:02] Production.INFO: ==668== Lock acquired, processing the job... [2025-03-03 02:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:46:02] Production.INFO: ==668== Releasing lock... [2025-03-03 02:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:46:02] Production.INFO: ==673== Lock acquired, processing the job... [2025-03-03 07:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:46:02] Production.INFO: ==673== Releasing lock... [2025-03-03 07:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:46:03] Production.INFO: ==681== Lock acquired, processing the job... [2025-03-03 02:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:46:03] Production.INFO: ==679== Lock acquired, processing the job... [2025-03-03 02:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:46:03] Production.INFO: ==676== Lock acquired, processing the job... [2025-03-03 02:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:46:03] Production.INFO: ==691== Lock acquired, processing the job... [2025-03-03 02:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:46:03] Production.INFO: ==684== Lock acquired, processing the job... [2025-03-03 02:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:46:03] Production.INFO: ==694== Lock acquired, processing the job... [2025-03-03 02:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:46:03] Production.INFO: Account Balance Start. [2025-03-03 02:46:03] Production.INFO: CreateAllLog Start [2025-03-03 02:46:03] Production.INFO: 117 [2025-03-03 02:46:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:46:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.INFO: count ==13 [2025-03-03 02:46:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:46:03] Production.INFO: count ==21 [2025-03-03 02:46:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595494') start [2025-03-03 02:46:03] Production.ERROR: done [2025-03-03 02:46:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:46:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:46:03] Production.INFO: ==679== Releasing lock... [2025-03-03 02:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595494') end [2025-03-03 02:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:46:04] Production.INFO: 1 [2025-03-03 02:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: ==694== Releasing lock... [2025-03-03 02:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:46:04] Production.ERROR: done [2025-03-03 02:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:46:04] Production.INFO: Total Charge 0 [2025-03-03 02:46:04] Production.INFO: CreateAllLog End [2025-03-03 02:46:04] Production.INFO: Account Balance End. [2025-03-03 02:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:46:05] Production.INFO: ==684== Releasing lock... [2025-03-03 02:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:46:11] Production.ERROR: CronJobId end10 [2025-03-03 02:46:11] Production.INFO: ==681== Releasing lock... [2025-03-03 02:46:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:46:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:46:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:46:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:46:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:46:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:46:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:46:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:46:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:46:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:46:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:46:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:46:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:46:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:46:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:46:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:46:14] Production.INFO: call_cost start [2025-03-03 02:46:14] Production.INFO: call_cost end [2025-03-03 02:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:46:14] Production.INFO: ==676== Releasing lock... [2025-03-03 02:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:46:16] Production.INFO: count ==409 [2025-03-03 02:46:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595495', 'tblTempUsageDetail_20' ) start [2025-03-03 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595495', 'tblTempUsageDetail_20' ) end [2025-03-03 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595495', 'tblTempVendorCDR_20' ) start [2025-03-03 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595495', 'tblTempVendorCDR_20' ) end [2025-03-03 02:46:16] Production.INFO: ProcessCDR(1,14595495,1,1,2) [2025-03-03 02:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595495', 'tblTempUsageDetail_20' ) start [2025-03-03 02:46:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595495', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:46:24] Production.INFO: ==691== Releasing lock... [2025-03-03 02:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:46:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:47:02] Production.INFO: ==761== Lock acquired, processing the job... [2025-03-03 07:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:47:02] Production.INFO: neon service started [2025-03-03 07:47:02] Production.INFO: neon service started [2025-03-03 07:47:02] Production.INFO: ==761== Releasing lock... [2025-03-03 07:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:47:02] Production.INFO: ==765== Lock acquired, processing the job... [2025-03-03 07:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:47:02] Production.INFO: ==765== Releasing lock... [2025-03-03 07:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:47:02] Production.INFO: ==763== Lock acquired, processing the job... [2025-03-03 02:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:47:03] Production.INFO: ==763== Releasing lock... [2025-03-03 02:47:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:47:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:47:03] Production.INFO: ==772== Lock acquired, processing the job... [2025-03-03 02:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:47:04] Production.INFO: ==768== Lock acquired, processing the job... [2025-03-03 02:47:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:47:04] Production.INFO: ==770== Lock acquired, processing the job... [2025-03-03 02:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:47:04] Production.INFO: ==776== Lock acquired, processing the job... [2025-03-03 02:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:47:04] Production.INFO: ==774== Lock acquired, processing the job... [2025-03-03 02:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:47:04] Production.INFO: Account Balance Start. [2025-03-03 02:47:04] Production.INFO: CreateAllLog Start [2025-03-03 02:47:04] Production.INFO: 117 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: ==778== Lock acquired, processing the job... [2025-03-03 02:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.ERROR: done [2025-03-03 02:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:47:04] Production.INFO: ==770== Releasing lock... [2025-03-03 02:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: count ==13 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.ERROR: done [2025-03-03 02:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:47:04] Production.INFO: count ==21 [2025-03-03 02:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595499') start [2025-03-03 02:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595499') end [2025-03-03 02:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:47:04] Production.INFO: 1 [2025-03-03 02:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:04] Production.INFO: ==778== Releasing lock... [2025-03-03 02:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:47:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:47:05] Production.INFO: Total Charge 0 [2025-03-03 02:47:05] Production.INFO: CreateAllLog End [2025-03-03 02:47:05] Production.INFO: Account Balance End. [2025-03-03 02:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:47:05] Production.INFO: ==774== Releasing lock... [2025-03-03 02:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:47:12] Production.ERROR: CronJobId end10 [2025-03-03 02:47:12] Production.INFO: ==772== Releasing lock... [2025-03-03 02:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:47:14] Production.INFO: call_cost start [2025-03-03 02:47:14] Production.INFO: call_cost end [2025-03-03 02:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:47:14] Production.INFO: ==768== Releasing lock... [2025-03-03 02:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:47:16] Production.INFO: count ==409 [2025-03-03 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595500', 'tblTempUsageDetail_20' ) start [2025-03-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595500', 'tblTempUsageDetail_20' ) end [2025-03-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595500', 'tblTempVendorCDR_20' ) start [2025-03-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595500', 'tblTempVendorCDR_20' ) end [2025-03-03 02:47:17] Production.INFO: ProcessCDR(1,14595500,1,1,2) [2025-03-03 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595500', 'tblTempUsageDetail_20' ) start [2025-03-03 02:47:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595500', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:47:24] Production.INFO: ==776== Releasing lock... [2025-03-03 02:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:47:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:48:01] Production.INFO: ==855== Lock acquired, processing the job... [2025-03-03 07:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:48:01] Production.INFO: neon service started [2025-03-03 07:48:01] Production.INFO: neon service started [2025-03-03 07:48:01] Production.INFO: ==855== Releasing lock... [2025-03-03 07:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:48:01] Production.INFO: ==860== Lock acquired, processing the job... [2025-03-03 07:48:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:48:02] Production.INFO: ==860== Releasing lock... [2025-03-03 07:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:48:02] Production.INFO: ==858== Lock acquired, processing the job... [2025-03-03 02:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:48:02] Production.INFO: ==858== Releasing lock... [2025-03-03 02:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:48:03] Production.INFO: ==866== Lock acquired, processing the job... [2025-03-03 02:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:48:03] Production.INFO: ==870== Lock acquired, processing the job... [2025-03-03 02:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:48:03] Production.INFO: ==862== Lock acquired, processing the job... [2025-03-03 02:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:48:03] Production.INFO: ==872== Lock acquired, processing the job... [2025-03-03 02:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:48:03] Production.INFO: ==864== Lock acquired, processing the job... [2025-03-03 02:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:48:03] Production.INFO: ==868== Lock acquired, processing the job... [2025-03-03 02:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:48:03] Production.INFO: Account Balance Start. [2025-03-03 02:48:03] Production.INFO: CreateAllLog Start [2025-03-03 02:48:03] Production.INFO: 117 [2025-03-03 02:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.ERROR: done [2025-03-03 02:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:48:04] Production.INFO: count ==13 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:48:04] Production.INFO: count ==21 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595501') start [2025-03-03 02:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: ==864== Releasing lock... [2025-03-03 02:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:48:04] Production.ERROR: done [2025-03-03 02:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595501') end [2025-03-03 02:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:48:04] Production.INFO: 1 [2025-03-03 02:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: ==872== Releasing lock... [2025-03-03 02:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:48:05] Production.INFO: Total Charge 0 [2025-03-03 02:48:05] Production.INFO: CreateAllLog End [2025-03-03 02:48:05] Production.INFO: Account Balance End. [2025-03-03 02:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:48:05] Production.INFO: ==868== Releasing lock... [2025-03-03 02:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:48:12] Production.ERROR: CronJobId end10 [2025-03-03 02:48:12] Production.INFO: ==866== Releasing lock... [2025-03-03 02:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:48:15] Production.INFO: call_cost start [2025-03-03 02:48:15] Production.INFO: call_cost end [2025-03-03 02:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:48:15] Production.INFO: ==862== Releasing lock... [2025-03-03 02:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:48:16] Production.INFO: count ==409 [2025-03-03 02:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595505', 'tblTempUsageDetail_20' ) start [2025-03-03 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595505', 'tblTempUsageDetail_20' ) end [2025-03-03 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595505', 'tblTempVendorCDR_20' ) start [2025-03-03 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595505', 'tblTempVendorCDR_20' ) end [2025-03-03 02:48:16] Production.INFO: ProcessCDR(1,14595505,1,1,2) [2025-03-03 02:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595505', 'tblTempUsageDetail_20' ) start [2025-03-03 02:48:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595505', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:48:24] Production.INFO: ==870== Releasing lock... [2025-03-03 02:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:49:02] Production.INFO: ==950== Lock acquired, processing the job... [2025-03-03 07:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:49:02] Production.INFO: neon service started [2025-03-03 07:49:02] Production.INFO: neon service started [2025-03-03 07:49:02] Production.INFO: ==950== Releasing lock... [2025-03-03 07:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:49:02] Production.INFO: ==954== Lock acquired, processing the job... [2025-03-03 07:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:49:02] Production.INFO: ==952== Lock acquired, processing the job... [2025-03-03 02:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:49:02] Production.INFO: ==954== Releasing lock... [2025-03-03 07:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:49:03] Production.INFO: ==952== Releasing lock... [2025-03-03 02:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:49:03] Production.INFO: ==960== Lock acquired, processing the job... [2025-03-03 02:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:49:03] Production.INFO: ==962== Lock acquired, processing the job... [2025-03-03 02:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:49:03] Production.INFO: ==965== Lock acquired, processing the job... [2025-03-03 02:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:49:03] Production.INFO: ==958== Lock acquired, processing the job... [2025-03-03 02:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:49:03] Production.INFO: Account Balance Start. [2025-03-03 02:49:03] Production.INFO: CreateAllLog Start [2025-03-03 02:49:03] Production.INFO: 117 [2025-03-03 02:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: ==967== Lock acquired, processing the job... [2025-03-03 02:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: ==960== Releasing lock... [2025-03-03 02:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: ==969== Lock acquired, processing the job... [2025-03-03 02:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: count ==13 [2025-03-03 02:49:04] Production.ERROR: done [2025-03-03 02:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:49:04] Production.INFO: count ==21 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595509') start [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595509') end [2025-03-03 02:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:49:04] Production.INFO: 1 [2025-03-03 02:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:49:04] Production.ERROR: done [2025-03-03 02:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: ==969== Releasing lock... [2025-03-03 02:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:49:05] Production.INFO: Total Charge 0 [2025-03-03 02:49:05] Production.INFO: CreateAllLog End [2025-03-03 02:49:05] Production.INFO: Account Balance End. [2025-03-03 02:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:49:05] Production.INFO: ==965== Releasing lock... [2025-03-03 02:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:49:12] Production.ERROR: CronJobId end10 [2025-03-03 02:49:12] Production.INFO: ==962== Releasing lock... [2025-03-03 02:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:49:15] Production.INFO: call_cost start [2025-03-03 02:49:15] Production.INFO: call_cost end [2025-03-03 02:49:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:49:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:49:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:49:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:49:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:49:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:49:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:49:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:49:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:49:15] Production.INFO: ==958== Releasing lock... [2025-03-03 02:49:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:49:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:49:16] Production.INFO: count ==409 [2025-03-03 02:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595510', 'tblTempUsageDetail_20' ) start [2025-03-03 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595510', 'tblTempUsageDetail_20' ) end [2025-03-03 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595510', 'tblTempVendorCDR_20' ) start [2025-03-03 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595510', 'tblTempVendorCDR_20' ) end [2025-03-03 02:49:16] Production.INFO: ProcessCDR(1,14595510,1,1,2) [2025-03-03 02:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595510', 'tblTempUsageDetail_20' ) start [2025-03-03 02:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595510', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:49:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:49:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:49:24] Production.INFO: ==967== Releasing lock... [2025-03-03 02:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:49:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:50:01] Production.INFO: ==1028== Lock acquired, processing the job... [2025-03-03 07:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:50:01] Production.INFO: neon service started [2025-03-03 07:50:01] Production.INFO: neon service started [2025-03-03 07:50:01] Production.INFO: ==1028== Releasing lock... [2025-03-03 07:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:50:01] Production.INFO: ==1030== Lock acquired, processing the job... [2025-03-03 02:50:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:50:02] Production.INFO: ==1032== Lock acquired, processing the job... [2025-03-03 07:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:50:02] Production.INFO: ==1030== Releasing lock... [2025-03-03 02:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:50:02] Production.INFO: ==1032== Releasing lock... [2025-03-03 07:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:50:03] Production.INFO: ==1043== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:50:03] Production.INFO: ==1045== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:50:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:50:03] Production.INFO: ==1035== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 02:50:03] Production.INFO: Account Balance Start. [2025-03-03 02:50:03] Production.INFO: CreateAllLog Start [2025-03-03 02:50:03] Production.INFO: 117 [2025-03-03 02:50:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:03] Production.INFO: ==1037== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:50:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:03] Production.INFO: ==1049== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:50:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:03] Production.INFO: ==1039== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:50:03] Production.INFO: ==1047== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:50:03] Production.ERROR: CronJob PID - 1037 [2025-03-03 02:50:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 02:50:03] Production.ERROR: CronJob ID - 5 [2025-03-03 02:50:03] Production.ERROR: CronJob Last Run Time 2025-03-03 02:50:00 [2025-03-03 02:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:50:03] Production.ERROR: CronJob PID - 1043 [2025-03-03 02:50:03] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 02:50:03] Production.ERROR: CronJob ID - 12 [2025-03-03 02:50:03] Production.ERROR: CronJob Last Run Time 2025-03-03 02:50:00 [2025-03-03 02:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:50:03] Production.ERROR: CronJob PID - 1045 [2025-03-03 02:50:03] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 02:50:03] Production.ERROR: CronJob ID - 16 [2025-03-03 02:50:03] Production.ERROR: CronJob Last Run Time 2025-03-03 02:50:00 [2025-03-03 02:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 02:50:03] Production.ERROR: CronJob PID - 1049 [2025-03-03 02:50:03] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 02:50:03] Production.ERROR: CronJob ID - 19 [2025-03-03 02:50:03] Production.ERROR: CronJob Last Run Time 2025-03-03 02:50:00 [2025-03-03 02:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 02:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 02:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:50:03] Production.INFO: ==1041== Lock acquired, processing the job... [2025-03-03 02:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:50:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: count ==13 [2025-03-03 02:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 02:50:04] Production.INFO: ==1035== Releasing lock... [2025-03-03 02:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 02:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:50:04] Production.ERROR: done [2025-03-03 02:50:04] Production.INFO: count ==21 [2025-03-03 02:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595512') start [2025-03-03 02:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595512') end [2025-03-03 02:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:50:04] Production.INFO: 1 [2025-03-03 02:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:50:04] Production.ERROR: done [2025-03-03 02:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: ==1049== Releasing lock... [2025-03-03 02:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:50:04] Production.ERROR: done [2025-03-03 02:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:50:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:50:04] Production.INFO: ==1039== Releasing lock... [2025-03-03 02:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 02:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595516', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 02:50:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:50:05] Production.INFO: Total Charge 0 [2025-03-03 02:50:05] Production.INFO: CreateAllLog End [2025-03-03 02:50:05] Production.INFO: Account Balance End. [2025-03-03 02:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:50:05] Production.INFO: ==1043== Releasing lock... [2025-03-03 02:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:50:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595516', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 02:50:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 02:50:08] Production.INFO: ProcessCDR(1,14595516,1,1,2) [2025-03-03 02:50:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595516,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:50:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595516,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:50:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 02:50:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 02:50:08] Production.INFO: ==1047== Releasing lock... [2025-03-03 02:50:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 02:50:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 02:50:13] Production.ERROR: CronJobId end10 [2025-03-03 02:50:13] Production.INFO: ==1041== Releasing lock... [2025-03-03 02:50:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:50:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:50:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:50:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:50:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:50:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:50:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:50:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:50:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:50:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:50:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:50:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:50:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:50:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:50:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:50:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:50:16] Production.INFO: call_cost start [2025-03-03 02:50:16] Production.INFO: call_cost end [2025-03-03 02:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:50:16] Production.INFO: ==1037== Releasing lock... [2025-03-03 02:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:50:16] Production.INFO: count ==409 [2025-03-03 02:50:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:50:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595515', 'tblTempUsageDetail_20' ) start [2025-03-03 02:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595515', 'tblTempUsageDetail_20' ) end [2025-03-03 02:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595515', 'tblTempVendorCDR_20' ) start [2025-03-03 02:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595515', 'tblTempVendorCDR_20' ) end [2025-03-03 02:50:16] Production.INFO: ProcessCDR(1,14595515,1,1,2) [2025-03-03 02:50:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595515', 'tblTempUsageDetail_20' ) start [2025-03-03 02:50:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595515', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:50:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:50:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:50:24] Production.INFO: ==1045== Releasing lock... [2025-03-03 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:51:01] Production.INFO: ==1105== Lock acquired, processing the job... [2025-03-03 07:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:51:01] Production.INFO: neon service started [2025-03-03 07:51:02] Production.INFO: neon service started [2025-03-03 07:51:02] Production.INFO: ==1105== Releasing lock... [2025-03-03 07:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:51:02] Production.INFO: ==1107== Lock acquired, processing the job... [2025-03-03 02:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:51:02] Production.INFO: ==1107== Releasing lock... [2025-03-03 02:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:51:02] Production.INFO: ==1109== Lock acquired, processing the job... [2025-03-03 07:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:51:02] Production.INFO: ==1109== Releasing lock... [2025-03-03 07:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:51:03] Production.INFO: ==1116== Lock acquired, processing the job... [2025-03-03 02:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:51:03] Production.INFO: ==1122== Lock acquired, processing the job... [2025-03-03 02:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:51:03] Production.INFO: ==1112== Lock acquired, processing the job... [2025-03-03 02:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:51:03] Production.INFO: ==1114== Lock acquired, processing the job... [2025-03-03 02:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:51:03] Production.INFO: count ==13 [2025-03-03 02:51:03] Production.INFO: ==1118== Lock acquired, processing the job... [2025-03-03 02:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:51:04] Production.INFO: ==1120== Lock acquired, processing the job... [2025-03-03 02:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:51:04] Production.INFO: count ==21 [2025-03-03 02:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595517') start [2025-03-03 02:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:51:04] Production.INFO: Account Balance Start. [2025-03-03 02:51:04] Production.INFO: CreateAllLog Start [2025-03-03 02:51:04] Production.INFO: 117 [2025-03-03 02:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595517') end [2025-03-03 02:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:51:04] Production.INFO: 1 [2025-03-03 02:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:51:04] Production.INFO: ==1122== Releasing lock... [2025-03-03 02:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: ==1114== Releasing lock... [2025-03-03 02:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.ERROR: done [2025-03-03 02:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.ERROR: done [2025-03-03 02:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:51:05] Production.INFO: Total Charge 0 [2025-03-03 02:51:05] Production.INFO: CreateAllLog End [2025-03-03 02:51:05] Production.INFO: Account Balance End. [2025-03-03 02:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:51:05] Production.INFO: ==1118== Releasing lock... [2025-03-03 02:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:51:11] Production.ERROR: CronJobId end10 [2025-03-03 02:51:11] Production.INFO: ==1116== Releasing lock... [2025-03-03 02:51:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:51:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:51:14] Production.INFO: call_cost start [2025-03-03 02:51:14] Production.INFO: call_cost end [2025-03-03 02:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:51:14] Production.INFO: ==1112== Releasing lock... [2025-03-03 02:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:51:17] Production.INFO: count ==409 [2025-03-03 02:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595521', 'tblTempUsageDetail_20' ) start [2025-03-03 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595521', 'tblTempUsageDetail_20' ) end [2025-03-03 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595521', 'tblTempVendorCDR_20' ) start [2025-03-03 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595521', 'tblTempVendorCDR_20' ) end [2025-03-03 02:51:17] Production.INFO: ProcessCDR(1,14595521,1,1,2) [2025-03-03 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595521', 'tblTempUsageDetail_20' ) start [2025-03-03 02:51:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595521', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:51:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:51:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:51:25] Production.INFO: ==1120== Releasing lock... [2025-03-03 02:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:51:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:52:01] Production.INFO: ==1195== Lock acquired, processing the job... [2025-03-03 07:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:52:01] Production.INFO: neon service started [2025-03-03 07:52:01] Production.INFO: neon service started [2025-03-03 07:52:01] Production.INFO: ==1195== Releasing lock... [2025-03-03 07:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:52:01] Production.INFO: ==1197== Lock acquired, processing the job... [2025-03-03 02:52:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:52:02] Production.INFO: ==1199== Lock acquired, processing the job... [2025-03-03 07:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:52:02] Production.INFO: ==1199== Releasing lock... [2025-03-03 07:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:52:02] Production.INFO: ==1197== Releasing lock... [2025-03-03 02:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:52:03] Production.INFO: ==1204== Lock acquired, processing the job... [2025-03-03 02:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:52:03] Production.INFO: ==1210== Lock acquired, processing the job... [2025-03-03 02:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:52:03] Production.INFO: ==1206== Lock acquired, processing the job... [2025-03-03 02:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:52:03] Production.INFO: ==1208== Lock acquired, processing the job... [2025-03-03 02:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:52:03] Production.INFO: Account Balance Start. [2025-03-03 02:52:03] Production.INFO: CreateAllLog Start [2025-03-03 02:52:03] Production.INFO: 117 [2025-03-03 02:52:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:03] Production.INFO: ==1212== Lock acquired, processing the job... [2025-03-03 02:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:52:03] Production.INFO: ==1214== Lock acquired, processing the job... [2025-03-03 02:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:52:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:52:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:52:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:03] Production.INFO: count ==13 [2025-03-03 02:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:52:03] Production.INFO: count ==21 [2025-03-03 02:52:04] Production.INFO: ==1206== Releasing lock... [2025-03-03 02:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595525') start [2025-03-03 02:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.ERROR: done [2025-03-03 02:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595525') end [2025-03-03 02:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:52:04] Production.INFO: 1 [2025-03-03 02:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.ERROR: done [2025-03-03 02:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: ==1214== Releasing lock... [2025-03-03 02:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:52:04] Production.INFO: Total Charge 0 [2025-03-03 02:52:04] Production.INFO: CreateAllLog End [2025-03-03 02:52:04] Production.INFO: Account Balance End. [2025-03-03 02:52:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:52:04] Production.INFO: ==1210== Releasing lock... [2025-03-03 02:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:52:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:52:11] Production.ERROR: CronJobId end10 [2025-03-03 02:52:11] Production.INFO: ==1208== Releasing lock... [2025-03-03 02:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:52:14] Production.INFO: call_cost start [2025-03-03 02:52:14] Production.INFO: call_cost end [2025-03-03 02:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:52:14] Production.INFO: ==1204== Releasing lock... [2025-03-03 02:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:52:16] Production.INFO: count ==409 [2025-03-03 02:52:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595526', 'tblTempUsageDetail_20' ) start [2025-03-03 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595526', 'tblTempUsageDetail_20' ) end [2025-03-03 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595526', 'tblTempVendorCDR_20' ) start [2025-03-03 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595526', 'tblTempVendorCDR_20' ) end [2025-03-03 02:52:16] Production.INFO: ProcessCDR(1,14595526,1,1,2) [2025-03-03 02:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595526', 'tblTempUsageDetail_20' ) start [2025-03-03 02:52:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595526', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:52:24] Production.INFO: ==1212== Releasing lock... [2025-03-03 02:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:53:01] Production.INFO: ==1293== Lock acquired, processing the job... [2025-03-03 07:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:53:01] Production.INFO: neon service started [2025-03-03 07:53:01] Production.INFO: neon service started [2025-03-03 07:53:01] Production.INFO: ==1293== Releasing lock... [2025-03-03 07:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:53:02] Production.INFO: ==1295== Lock acquired, processing the job... [2025-03-03 02:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:53:02] Production.INFO: ==1297== Lock acquired, processing the job... [2025-03-03 07:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:53:02] Production.INFO: ==1297== Releasing lock... [2025-03-03 07:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:53:02] Production.INFO: ==1295== Releasing lock... [2025-03-03 02:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:53:03] Production.INFO: ==1302== Lock acquired, processing the job... [2025-03-03 02:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:53:03] Production.INFO: ==1300== Lock acquired, processing the job... [2025-03-03 02:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:53:04] Production.INFO: ==1310== Lock acquired, processing the job... [2025-03-03 02:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:53:04] Production.INFO: ==1304== Lock acquired, processing the job... [2025-03-03 02:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:53:04] Production.INFO: ==1306== Lock acquired, processing the job... [2025-03-03 02:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:53:04] Production.INFO: ==1308== Lock acquired, processing the job... [2025-03-03 02:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:53:04] Production.INFO: ==1302== Releasing lock... [2025-03-03 02:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:53:04] Production.INFO: count ==13 [2025-03-03 02:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:53:04] Production.INFO: count ==21 [2025-03-03 02:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595529') start [2025-03-03 02:53:04] Production.INFO: Account Balance Start. [2025-03-03 02:53:04] Production.INFO: CreateAllLog Start [2025-03-03 02:53:04] Production.INFO: 117 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595529') end [2025-03-03 02:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:53:04] Production.INFO: 1 [2025-03-03 02:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: ==1310== Releasing lock... [2025-03-03 02:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:53:04] Production.ERROR: done [2025-03-03 02:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.ERROR: done [2025-03-03 02:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:53:05] Production.INFO: Total Charge 0 [2025-03-03 02:53:05] Production.INFO: CreateAllLog End [2025-03-03 02:53:05] Production.INFO: Account Balance End. [2025-03-03 02:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:53:05] Production.INFO: ==1306== Releasing lock... [2025-03-03 02:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:53:11] Production.ERROR: CronJobId end10 [2025-03-03 02:53:11] Production.INFO: ==1304== Releasing lock... [2025-03-03 02:53:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:53:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:53:14] Production.INFO: call_cost start [2025-03-03 02:53:14] Production.INFO: call_cost end [2025-03-03 02:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:53:14] Production.INFO: ==1300== Releasing lock... [2025-03-03 02:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:53:16] Production.INFO: count ==409 [2025-03-03 02:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595531', 'tblTempUsageDetail_20' ) start [2025-03-03 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595531', 'tblTempUsageDetail_20' ) end [2025-03-03 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595531', 'tblTempVendorCDR_20' ) start [2025-03-03 02:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595531', 'tblTempVendorCDR_20' ) end [2025-03-03 02:53:16] Production.INFO: ProcessCDR(1,14595531,1,1,2) [2025-03-03 02:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595531', 'tblTempUsageDetail_20' ) start [2025-03-03 02:53:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595531', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:53:24] Production.INFO: ==1308== Releasing lock... [2025-03-03 02:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:54:01] Production.INFO: ==1366== Lock acquired, processing the job... [2025-03-03 07:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:54:01] Production.INFO: neon service started [2025-03-03 07:54:01] Production.INFO: neon service started [2025-03-03 07:54:01] Production.INFO: ==1366== Releasing lock... [2025-03-03 07:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:54:01] Production.INFO: ==1368== Lock acquired, processing the job... [2025-03-03 02:54:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:54:02] Production.INFO: ==1368== Releasing lock... [2025-03-03 02:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:54:02] Production.INFO: ==1370== Lock acquired, processing the job... [2025-03-03 07:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:54:02] Production.INFO: ==1370== Releasing lock... [2025-03-03 07:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:54:03] Production.INFO: ==1373== Lock acquired, processing the job... [2025-03-03 02:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:54:03] Production.INFO: ==1383== Lock acquired, processing the job... [2025-03-03 02:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:54:03] Production.INFO: ==1375== Lock acquired, processing the job... [2025-03-03 02:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:54:03] Production.INFO: ==1377== Lock acquired, processing the job... [2025-03-03 02:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:54:03] Production.INFO: ==1379== Lock acquired, processing the job... [2025-03-03 02:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:54:03] Production.INFO: count ==13 [2025-03-03 02:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:54:03] Production.INFO: count ==21 [2025-03-03 02:54:03] Production.INFO: ==1381== Lock acquired, processing the job... [2025-03-03 02:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595533') start [2025-03-03 02:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:54:03] Production.INFO: Account Balance Start. [2025-03-03 02:54:03] Production.INFO: CreateAllLog Start [2025-03-03 02:54:03] Production.INFO: 117 [2025-03-03 02:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595533') end [2025-03-03 02:54:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:54:03] Production.INFO: 1 [2025-03-03 02:54:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.INFO: ==1375== Releasing lock... [2025-03-03 02:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:54:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:54:03] Production.INFO: Date 2025-02-09 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.INFO: ==1383== Releasing lock... [2025-03-03 02:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:54:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:54:03] Production.INFO: Date 2025-02-10 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.INFO: Date 2025-02-11 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.INFO: Date 2025-02-12 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.INFO: Date 2025-02-13 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.ERROR: done [2025-03-03 02:54:03] Production.INFO: Date 2025-02-14 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:54:03] Production.INFO: Date 2025-02-15 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:03] Production.INFO: Date 2025-02-16 [2025-03-03 02:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.ERROR: done [2025-03-03 02:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:54:04] Production.INFO: Total Charge 0 [2025-03-03 02:54:04] Production.INFO: CreateAllLog End [2025-03-03 02:54:04] Production.INFO: Account Balance End. [2025-03-03 02:54:04] Production.ERROR: CronJobId end 12 [2025-03-03 02:54:04] Production.INFO: ==1379== Releasing lock... [2025-03-03 02:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:54:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:54:11] Production.ERROR: CronJobId end10 [2025-03-03 02:54:11] Production.INFO: ==1377== Releasing lock... [2025-03-03 02:54:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:54:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:54:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:54:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:54:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:54:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:54:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:54:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:54:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:54:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:54:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:54:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:54:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:54:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:54:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:54:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:54:14] Production.INFO: call_cost start [2025-03-03 02:54:14] Production.INFO: call_cost end [2025-03-03 02:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:54:14] Production.INFO: ==1373== Releasing lock... [2025-03-03 02:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:54:16] Production.INFO: count ==409 [2025-03-03 02:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595536', 'tblTempUsageDetail_20' ) start [2025-03-03 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595536', 'tblTempUsageDetail_20' ) end [2025-03-03 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595536', 'tblTempVendorCDR_20' ) start [2025-03-03 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595536', 'tblTempVendorCDR_20' ) end [2025-03-03 02:54:16] Production.INFO: ProcessCDR(1,14595536,1,1,2) [2025-03-03 02:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595536', 'tblTempUsageDetail_20' ) start [2025-03-03 02:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595536', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:54:24] Production.INFO: ==1381== Releasing lock... [2025-03-03 02:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:55:01] Production.INFO: ==1486== Lock acquired, processing the job... [2025-03-03 07:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:55:01] Production.INFO: neon service started [2025-03-03 07:55:01] Production.INFO: neon service started [2025-03-03 07:55:01] Production.INFO: ==1486== Releasing lock... [2025-03-03 07:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:55:02] Production.INFO: ==1488== Lock acquired, processing the job... [2025-03-03 02:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:55:02] Production.INFO: ==1490== Lock acquired, processing the job... [2025-03-03 07:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:55:02] Production.INFO: ==1490== Releasing lock... [2025-03-03 07:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:55:02] Production.INFO: ==1488== Releasing lock... [2025-03-03 02:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:55:03] Production.INFO: ==1493== Lock acquired, processing the job... [2025-03-03 02:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:55:03] Production.INFO: ==1499== Lock acquired, processing the job... [2025-03-03 02:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:55:03] Production.INFO: ==1495== Lock acquired, processing the job... [2025-03-03 02:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:55:03] Production.INFO: ==1520== Lock acquired, processing the job... [2025-03-03 02:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:55:03] Production.INFO: ==1497== Lock acquired, processing the job... [2025-03-03 02:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:55:04] Production.INFO: Account Balance Start. [2025-03-03 02:55:04] Production.INFO: CreateAllLog Start [2025-03-03 02:55:04] Production.INFO: 117 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:55:04] Production.INFO: ==1501== Lock acquired, processing the job... [2025-03-03 02:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:55:04] Production.INFO: count ==13 [2025-03-03 02:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:55:04] Production.INFO: count ==21 [2025-03-03 02:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595540') start [2025-03-03 02:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595540') end [2025-03-03 02:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:55:04] Production.INFO: 1 [2025-03-03 02:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: ==1520== Releasing lock... [2025-03-03 02:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:55:04] Production.INFO: ==1495== Releasing lock... [2025-03-03 02:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.ERROR: done [2025-03-03 02:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.ERROR: done [2025-03-03 02:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:55:05] Production.INFO: Total Charge 0 [2025-03-03 02:55:05] Production.INFO: CreateAllLog End [2025-03-03 02:55:05] Production.INFO: Account Balance End. [2025-03-03 02:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:55:05] Production.INFO: ==1499== Releasing lock... [2025-03-03 02:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:55:12] Production.ERROR: CronJobId end10 [2025-03-03 02:55:12] Production.INFO: ==1497== Releasing lock... [2025-03-03 02:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:55:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:55:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:55:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:55:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:55:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:55:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:55:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:55:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:55:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:55:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:55:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:55:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:55:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:55:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:55:14] Production.INFO: call_cost start [2025-03-03 02:55:14] Production.INFO: call_cost end [2025-03-03 02:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:55:14] Production.INFO: ==1493== Releasing lock... [2025-03-03 02:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:55:16] Production.INFO: count ==409 [2025-03-03 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595541', 'tblTempUsageDetail_20' ) start [2025-03-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595541', 'tblTempUsageDetail_20' ) end [2025-03-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595541', 'tblTempVendorCDR_20' ) start [2025-03-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595541', 'tblTempVendorCDR_20' ) end [2025-03-03 02:55:17] Production.INFO: ProcessCDR(1,14595541,1,1,2) [2025-03-03 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595541', 'tblTempUsageDetail_20' ) start [2025-03-03 02:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595541', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:55:24] Production.INFO: ==1501== Releasing lock... [2025-03-03 02:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:55:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:56:02] Production.INFO: ==1604== Lock acquired, processing the job... [2025-03-03 07:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:56:02] Production.INFO: neon service started [2025-03-03 07:56:02] Production.INFO: neon service started [2025-03-03 07:56:02] Production.INFO: ==1604== Releasing lock... [2025-03-03 07:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 02:56:02] Production.INFO: ==1606== Lock acquired, processing the job... [2025-03-03 02:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:56:03] Production.INFO: ==1606== Releasing lock... [2025-03-03 02:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:56:03] Production.INFO: ==1608== Lock acquired, processing the job... [2025-03-03 07:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:56:03] Production.INFO: ==1608== Releasing lock... [2025-03-03 07:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:56:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:56:04] Production.INFO: ==1610== Lock acquired, processing the job... [2025-03-03 02:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:56:04] Production.INFO: ==1620== Lock acquired, processing the job... [2025-03-03 02:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:56:04] Production.INFO: ==1612== Lock acquired, processing the job... [2025-03-03 02:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:56:04] Production.INFO: ==1614== Lock acquired, processing the job... [2025-03-03 02:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:56:04] Production.INFO: ==1616== Lock acquired, processing the job... [2025-03-03 02:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:56:04] Production.INFO: count ==13 [2025-03-03 02:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:56:04] Production.INFO: count ==21 [2025-03-03 02:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595543') start [2025-03-03 02:56:04] Production.INFO: ==1618== Lock acquired, processing the job... [2025-03-03 02:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:56:04] Production.INFO: Account Balance Start. [2025-03-03 02:56:04] Production.INFO: CreateAllLog Start [2025-03-03 02:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:56:04] Production.INFO: 117 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595543') end [2025-03-03 02:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:56:04] Production.INFO: 1 [2025-03-03 02:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: ==1620== Releasing lock... [2025-03-03 02:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:56:04] Production.INFO: ==1612== Releasing lock... [2025-03-03 02:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:04] Production.ERROR: done [2025-03-03 02:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:56:05] Production.ERROR: done [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:56:05] Production.INFO: Total Charge 0 [2025-03-03 02:56:05] Production.INFO: CreateAllLog End [2025-03-03 02:56:05] Production.INFO: Account Balance End. [2025-03-03 02:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:56:05] Production.INFO: ==1616== Releasing lock... [2025-03-03 02:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:56:13] Production.ERROR: CronJobId end10 [2025-03-03 02:56:13] Production.INFO: ==1614== Releasing lock... [2025-03-03 02:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:56:15] Production.INFO: call_cost start [2025-03-03 02:56:15] Production.INFO: call_cost end [2025-03-03 02:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:56:15] Production.INFO: ==1610== Releasing lock... [2025-03-03 02:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:56:17] Production.INFO: count ==409 [2025-03-03 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595546', 'tblTempUsageDetail_20' ) start [2025-03-03 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595546', 'tblTempUsageDetail_20' ) end [2025-03-03 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595546', 'tblTempVendorCDR_20' ) start [2025-03-03 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595546', 'tblTempVendorCDR_20' ) end [2025-03-03 02:56:17] Production.INFO: ProcessCDR(1,14595546,1,1,2) [2025-03-03 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595546', 'tblTempUsageDetail_20' ) start [2025-03-03 02:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595546', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:56:25] Production.INFO: ==1618== Releasing lock... [2025-03-03 02:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:57:01] Production.INFO: ==1696== Lock acquired, processing the job... [2025-03-03 07:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:57:01] Production.INFO: neon service started [2025-03-03 07:57:01] Production.INFO: neon service started [2025-03-03 07:57:01] Production.INFO: ==1696== Releasing lock... [2025-03-03 07:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:57:02] Production.INFO: ==1699== Lock acquired, processing the job... [2025-03-03 02:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:57:02] Production.INFO: ==1701== Lock acquired, processing the job... [2025-03-03 07:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:57:02] Production.INFO: ==1699== Releasing lock... [2025-03-03 02:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:57:02] Production.INFO: ==1701== Releasing lock... [2025-03-03 07:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:57:03] Production.INFO: ==1709== Lock acquired, processing the job... [2025-03-03 02:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:57:03] Production.INFO: ==1715== Lock acquired, processing the job... [2025-03-03 02:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:57:03] Production.INFO: ==1705== Lock acquired, processing the job... [2025-03-03 02:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:57:03] Production.INFO: ==1707== Lock acquired, processing the job... [2025-03-03 02:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:57:03] Production.INFO: count ==13 [2025-03-03 02:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:57:03] Production.INFO: ==1711== Lock acquired, processing the job... [2025-03-03 02:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:57:03] Production.INFO: ==1713== Lock acquired, processing the job... [2025-03-03 02:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:57:03] Production.INFO: count ==21 [2025-03-03 02:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595547') start [2025-03-03 02:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595547') end [2025-03-03 02:57:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:57:03] Production.INFO: 1 [2025-03-03 02:57:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:57:03] Production.INFO: Account Balance Start. [2025-03-03 02:57:03] Production.INFO: CreateAllLog Start [2025-03-03 02:57:03] Production.INFO: 117 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: ==1715== Releasing lock... [2025-03-03 02:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.ERROR: done [2025-03-03 02:57:04] Production.INFO: ==1707== Releasing lock... [2025-03-03 02:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.ERROR: done [2025-03-03 02:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 02:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:57:05] Production.INFO: Total Charge 0 [2025-03-03 02:57:05] Production.INFO: CreateAllLog End [2025-03-03 02:57:05] Production.INFO: Account Balance End. [2025-03-03 02:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:57:05] Production.INFO: ==1711== Releasing lock... [2025-03-03 02:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:57:11] Production.ERROR: CronJobId end10 [2025-03-03 02:57:11] Production.INFO: ==1709== Releasing lock... [2025-03-03 02:57:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:57:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:57:14] Production.INFO: call_cost start [2025-03-03 02:57:14] Production.INFO: call_cost end [2025-03-03 02:57:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:57:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:57:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:57:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:57:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:57:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:57:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:57:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:57:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:57:14] Production.INFO: ==1705== Releasing lock... [2025-03-03 02:57:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:57:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:57:16] Production.INFO: count ==409 [2025-03-03 02:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595551', 'tblTempUsageDetail_20' ) start [2025-03-03 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595551', 'tblTempUsageDetail_20' ) end [2025-03-03 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595551', 'tblTempVendorCDR_20' ) start [2025-03-03 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595551', 'tblTempVendorCDR_20' ) end [2025-03-03 02:57:16] Production.INFO: ProcessCDR(1,14595551,1,1,2) [2025-03-03 02:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595551', 'tblTempUsageDetail_20' ) start [2025-03-03 02:57:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595551', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:57:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:57:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:57:23] Production.INFO: ==1713== Releasing lock... [2025-03-03 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:57:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:58:02] Production.INFO: ==1786== Lock acquired, processing the job... [2025-03-03 07:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:58:02] Production.INFO: neon service started [2025-03-03 07:58:02] Production.INFO: neon service started [2025-03-03 07:58:02] Production.INFO: ==1786== Releasing lock... [2025-03-03 07:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 02:58:02] Production.INFO: ==1789== Lock acquired, processing the job... [2025-03-03 02:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 02:58:03] Production.INFO: ==1789== Releasing lock... [2025-03-03 02:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:58:03] Production.INFO: ==1792== Lock acquired, processing the job... [2025-03-03 07:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:58:03] Production.INFO: ==1792== Releasing lock... [2025-03-03 07:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:58:04] Production.INFO: ==1804== Lock acquired, processing the job... [2025-03-03 02:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:58:04] Production.INFO: ==1802== Lock acquired, processing the job... [2025-03-03 02:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:58:04] Production.INFO: ==1794== Lock acquired, processing the job... [2025-03-03 02:58:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:58:04] Production.INFO: count ==13 [2025-03-03 02:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:58:04] Production.INFO: ==1796== Lock acquired, processing the job... [2025-03-03 02:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:58:04] Production.INFO: count ==21 [2025-03-03 02:58:04] Production.INFO: ==1800== Lock acquired, processing the job... [2025-03-03 02:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595552') start [2025-03-03 02:58:04] Production.INFO: ==1798== Lock acquired, processing the job... [2025-03-03 02:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:58:04] Production.INFO: Account Balance Start. [2025-03-03 02:58:04] Production.INFO: CreateAllLog Start [2025-03-03 02:58:04] Production.INFO: 117 [2025-03-03 02:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595552') end [2025-03-03 02:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:58:04] Production.INFO: 1 [2025-03-03 02:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:04] Production.INFO: ==1804== Releasing lock... [2025-03-03 02:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:04] Production.ERROR: done [2025-03-03 02:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-14 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: ==1796== Releasing lock... [2025-03-03 02:58:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:58:05] Production.ERROR: done [2025-03-03 02:58:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:58:05] Production.INFO: Date 2025-02-15 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-16 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:58:05] Production.INFO: Date 2025-02-17 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-18 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 02:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:06] Production.INFO: Date 2025-03-03 [2025-03-03 02:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 02:58:06] Production.INFO: Total Charge 0 [2025-03-03 02:58:06] Production.INFO: CreateAllLog End [2025-03-03 02:58:06] Production.INFO: Account Balance End. [2025-03-03 02:58:06] Production.ERROR: CronJobId end 12 [2025-03-03 02:58:06] Production.INFO: ==1800== Releasing lock... [2025-03-03 02:58:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:58:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:58:13] Production.ERROR: CronJobId end10 [2025-03-03 02:58:13] Production.INFO: ==1798== Releasing lock... [2025-03-03 02:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:58:15] Production.INFO: call_cost start [2025-03-03 02:58:15] Production.INFO: call_cost end [2025-03-03 02:58:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:58:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:58:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:58:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:58:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:58:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:58:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:58:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:58:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:58:15] Production.INFO: ==1794== Releasing lock... [2025-03-03 02:58:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:58:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:58:17] Production.INFO: count ==409 [2025-03-03 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595556', 'tblTempUsageDetail_20' ) start [2025-03-03 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595556', 'tblTempUsageDetail_20' ) end [2025-03-03 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595556', 'tblTempVendorCDR_20' ) start [2025-03-03 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595556', 'tblTempVendorCDR_20' ) end [2025-03-03 02:58:17] Production.INFO: ProcessCDR(1,14595556,1,1,2) [2025-03-03 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595556', 'tblTempUsageDetail_20' ) start [2025-03-03 02:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595556', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:58:25] Production.INFO: ==1802== Releasing lock... [2025-03-03 02:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:58:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 07:59:01] Production.INFO: ==1900== Lock acquired, processing the job... [2025-03-03 07:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 07:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 07:59:01] Production.INFO: neon service started [2025-03-03 07:59:01] Production.INFO: neon service started [2025-03-03 07:59:01] Production.INFO: ==1900== Releasing lock... [2025-03-03 07:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 07:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:59:02] Production.INFO: ==1906== Lock acquired, processing the job... [2025-03-03 07:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 02:59:02] Production.INFO: ==1904== Lock acquired, processing the job... [2025-03-03 02:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:59:02] Production.INFO: ==1906== Releasing lock... [2025-03-03 07:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 07:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 02:59:02] Production.INFO: ==1904== Releasing lock... [2025-03-03 02:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 02:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 02:59:03] Production.INFO: ==1910== Lock acquired, processing the job... [2025-03-03 02:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 02:59:03] Production.INFO: ==1912== Lock acquired, processing the job... [2025-03-03 02:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 02:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 02:59:03] Production.INFO: ==1916== Lock acquired, processing the job... [2025-03-03 02:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 02:59:03] Production.INFO: ==1914== Lock acquired, processing the job... [2025-03-03 02:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 02:59:04] Production.INFO: Account Balance Start. [2025-03-03 02:59:04] Production.INFO: CreateAllLog Start [2025-03-03 02:59:04] Production.INFO: 117 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 02:59:04] Production.INFO: ==1912== Releasing lock... [2025-03-03 02:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 02:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 02:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 02:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 02:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 02:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: ==1918== Lock acquired, processing the job... [2025-03-03 02:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 02:59:04] Production.INFO: ==1920== Lock acquired, processing the job... [2025-03-03 02:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 02:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: count ==13 [2025-03-03 02:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 02:59:04] Production.INFO: count ==21 [2025-03-03 02:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595560') start [2025-03-03 02:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.ERROR: done [2025-03-03 02:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 02:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595560') end [2025-03-03 02:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 02:59:04] Production.INFO: 1 [2025-03-03 02:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 02:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: ==1920== Releasing lock... [2025-03-03 02:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 02:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 02:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.ERROR: done [2025-03-03 02:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 02:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-03-02 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Date 2025-03-03 [2025-03-03 02:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 02:59:04] Production.INFO: Total Charge 0 [2025-03-03 02:59:04] Production.INFO: CreateAllLog End [2025-03-03 02:59:05] Production.INFO: Account Balance End. [2025-03-03 02:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 02:59:05] Production.INFO: ==1916== Releasing lock... [2025-03-03 02:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 02:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 02:59:11] Production.ERROR: CronJobId end10 [2025-03-03 02:59:11] Production.INFO: ==1914== Releasing lock... [2025-03-03 02:59:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 02:59:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 02:59:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 02:59:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 02:59:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 02:59:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 02:59:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 02:59:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 02:59:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 02:59:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 02:59:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 02:59:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 02:59:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 02:59:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 02:59:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 02:59:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 02:59:14] Production.INFO: call_cost start [2025-03-03 02:59:14] Production.INFO: call_cost end [2025-03-03 02:59:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 02:59:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 02:59:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 02:59:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 02:59:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 02:59:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 02:59:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 02:59:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 02:59:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 02:59:14] Production.INFO: ==1910== Releasing lock... [2025-03-03 02:59:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 02:59:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 02:59:16] Production.INFO: count ==409 [2025-03-03 02:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 02:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595561', 'tblTempUsageDetail_20' ) start [2025-03-03 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595561', 'tblTempUsageDetail_20' ) end [2025-03-03 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595561', 'tblTempVendorCDR_20' ) start [2025-03-03 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595561', 'tblTempVendorCDR_20' ) end [2025-03-03 02:59:16] Production.INFO: ProcessCDR(1,14595561,1,1,2) [2025-03-03 02:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595561', 'tblTempUsageDetail_20' ) start [2025-03-03 02:59:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595561', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 02:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 02:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 02:59:24] Production.INFO: ==1918== Releasing lock... [2025-03-03 02:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 02:59:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:00:02] Production.INFO: ==1996== Lock acquired, processing the job... [2025-03-03 08:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:00:02] Production.INFO: neon service started [2025-03-03 08:00:02] Production.INFO: neon service started [2025-03-03 08:00:02] Production.INFO: ==1996== Releasing lock... [2025-03-03 08:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:00:02] Production.INFO: ==1998== Lock acquired, processing the job... [2025-03-03 03:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:00:03] Production.INFO: ==1998== Releasing lock... [2025-03-03 03:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:00:03] Production.INFO: ==2000== Lock acquired, processing the job... [2025-03-03 08:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:00:03] Production.INFO: ==2000== Releasing lock... [2025-03-03 08:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:00:04] Production.INFO: ==2013== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:00:04] Production.INFO: ==2002== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 03:00:04] Production.INFO: ==2017== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:00:04] Production.INFO: ==2015== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 03:00:04] Production.INFO: ==2004== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:00:04] Production.INFO: ==2006== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:00:04] Production.INFO: ==2008== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:00:04] Production.INFO: ==2011== Lock acquired, processing the job... [2025-03-03 03:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:00:04] Production.ERROR: CronJob PID - 2004 [2025-03-03 03:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 03:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:00:04] Production.ERROR: CronJob ID - 5 [2025-03-03 03:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:00:00 [2025-03-03 03:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:00:04] Production.ERROR: CronJob PID - 2013 [2025-03-03 03:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 03:00:04] Production.ERROR: CronJob ID - 16 [2025-03-03 03:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:00:00 [2025-03-03 03:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:00:04] Production.ERROR: CronJob PID - 2015 [2025-03-03 03:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 03:00:04] Production.ERROR: CronJob ID - 17 [2025-03-03 03:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:00:00 [2025-03-03 03:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:00:04] Production.ERROR: CronJob PID - 2017 [2025-03-03 03:00:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 03:00:04] Production.ERROR: CronJob ID - 19 [2025-03-03 03:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:00:00 [2025-03-03 03:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 03:00:04] Production.INFO: ==2002== Releasing lock... [2025-03-03 03:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 03:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:00:04] Production.INFO: count ==13 [2025-03-03 03:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:00:04] Production.INFO: count ==21 [2025-03-03 03:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595563') start [2025-03-03 03:00:04] Production.ERROR: done [2025-03-03 03:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:00:04] Production.INFO: Account Balance Start. [2025-03-03 03:00:04] Production.INFO: CreateAllLog Start [2025-03-03 03:00:04] Production.INFO: 117 [2025-03-03 03:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-09 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.ERROR: done [2025-03-03 03:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: ==2006== Releasing lock... [2025-03-03 03:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595563') end [2025-03-03 03:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:00:05] Production.INFO: 1 [2025-03-03 03:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:00:05] Production.ERROR: done [2025-03-03 03:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:00:05] Production.INFO: ==2017== Releasing lock... [2025-03-03 03:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 03:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595567', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 03:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:00:05] Production.INFO: Total Charge 0 [2025-03-03 03:00:05] Production.INFO: CreateAllLog End [2025-03-03 03:00:06] Production.INFO: Account Balance End. [2025-03-03 03:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 03:00:06] Production.INFO: ==2011== Releasing lock... [2025-03-03 03:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595567', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 03:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 03:00:10] Production.INFO: ProcessCDR(1,14595567,1,1,2) [2025-03-03 03:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595567,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595567,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 03:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 03:00:10] Production.INFO: ==2015== Releasing lock... [2025-03-03 03:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 03:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 03:00:16] Production.ERROR: CronJobId end10 [2025-03-03 03:00:16] Production.INFO: ==2008== Releasing lock... [2025-03-03 03:00:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:00:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:00:17] Production.INFO: count ==409 [2025-03-03 03:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595566', 'tblTempUsageDetail_20' ) start [2025-03-03 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595566', 'tblTempUsageDetail_20' ) end [2025-03-03 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595566', 'tblTempVendorCDR_20' ) start [2025-03-03 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595566', 'tblTempVendorCDR_20' ) end [2025-03-03 03:00:17] Production.INFO: ProcessCDR(1,14595566,1,1,2) [2025-03-03 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:00:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:00:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:00:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:00:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:00:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:00:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:00:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:00:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:00:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:00:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:00:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:00:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:00:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:00:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:00:18] Production.INFO: call_cost start [2025-03-03 03:00:18] Production.INFO: call_cost end [2025-03-03 03:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:00:18] Production.INFO: ==2004== Releasing lock... [2025-03-03 03:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595566', 'tblTempUsageDetail_20' ) start [2025-03-03 03:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595566', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:00:25] Production.INFO: ==2013== Releasing lock... [2025-03-03 03:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:00:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:01:01] Production.INFO: ==2092== Lock acquired, processing the job... [2025-03-03 08:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:01:01] Production.INFO: neon service started [2025-03-03 08:01:01] Production.INFO: neon service started [2025-03-03 08:01:01] Production.INFO: ==2092== Releasing lock... [2025-03-03 08:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:01:02] Production.INFO: ==2105== Lock acquired, processing the job... [2025-03-03 03:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:01:02] Production.INFO: ==2105== Releasing lock... [2025-03-03 03:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:01:02] Production.INFO: ==2107== Lock acquired, processing the job... [2025-03-03 08:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:01:02] Production.INFO: ==2107== Releasing lock... [2025-03-03 08:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:01:03] Production.INFO: ==2118== Lock acquired, processing the job... [2025-03-03 03:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:01:03] Production.INFO: ==2116== Lock acquired, processing the job... [2025-03-03 03:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:01:03] Production.INFO: Account Balance Start. [2025-03-03 03:01:03] Production.INFO: CreateAllLog Start [2025-03-03 03:01:03] Production.INFO: 117 [2025-03-03 03:01:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.INFO: ==2110== Lock acquired, processing the job... [2025-03-03 03:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:01:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.INFO: ==2112== Lock acquired, processing the job... [2025-03-03 03:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:01:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.INFO: ==2114== Lock acquired, processing the job... [2025-03-03 03:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:01:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.INFO: ==2120== Lock acquired, processing the job... [2025-03-03 03:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:01:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:01:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:01:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.ERROR: done [2025-03-03 03:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:01:04] Production.INFO: count ==13 [2025-03-03 03:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:01:04] Production.INFO: count ==21 [2025-03-03 03:01:04] Production.ERROR: done [2025-03-03 03:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595571') start [2025-03-03 03:01:04] Production.INFO: ==2112== Releasing lock... [2025-03-03 03:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595571') end [2025-03-03 03:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:01:04] Production.INFO: 1 [2025-03-03 03:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: ==2120== Releasing lock... [2025-03-03 03:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:01:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:01:04] Production.INFO: Total Charge 0 [2025-03-03 03:01:04] Production.INFO: CreateAllLog End [2025-03-03 03:01:04] Production.INFO: Account Balance End. [2025-03-03 03:01:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:01:04] Production.INFO: ==2116== Releasing lock... [2025-03-03 03:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:01:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:01:12] Production.ERROR: CronJobId end10 [2025-03-03 03:01:12] Production.INFO: ==2114== Releasing lock... [2025-03-03 03:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:01:15] Production.INFO: call_cost start [2025-03-03 03:01:15] Production.INFO: call_cost end [2025-03-03 03:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:01:15] Production.INFO: ==2110== Releasing lock... [2025-03-03 03:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:01:16] Production.INFO: count ==409 [2025-03-03 03:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595572', 'tblTempUsageDetail_20' ) start [2025-03-03 03:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595572', 'tblTempUsageDetail_20' ) end [2025-03-03 03:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595572', 'tblTempVendorCDR_20' ) start [2025-03-03 03:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595572', 'tblTempVendorCDR_20' ) end [2025-03-03 03:01:16] Production.INFO: ProcessCDR(1,14595572,1,1,2) [2025-03-03 03:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595572', 'tblTempUsageDetail_20' ) start [2025-03-03 03:01:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595572', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:01:24] Production.INFO: ==2118== Releasing lock... [2025-03-03 03:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:02:02] Production.INFO: ==2259== Lock acquired, processing the job... [2025-03-03 08:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:02:02] Production.INFO: neon service started [2025-03-03 08:02:02] Production.INFO: neon service started [2025-03-03 08:02:02] Production.INFO: ==2259== Releasing lock... [2025-03-03 08:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:02:02] Production.INFO: ==2261== Lock acquired, processing the job... [2025-03-03 03:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:02:03] Production.INFO: ==2261== Releasing lock... [2025-03-03 03:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:02:03] Production.INFO: ==2263== Lock acquired, processing the job... [2025-03-03 08:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:02:03] Production.INFO: ==2263== Releasing lock... [2025-03-03 08:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:02:03] Production.INFO: ==2266== Lock acquired, processing the job... [2025-03-03 03:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:02:03] Production.INFO: ==2274== Lock acquired, processing the job... [2025-03-03 03:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:02:04] Production.INFO: ==2268== Lock acquired, processing the job... [2025-03-03 03:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:02:04] Production.INFO: ==2276== Lock acquired, processing the job... [2025-03-03 03:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:02:04] Production.INFO: ==2272== Lock acquired, processing the job... [2025-03-03 03:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:02:04] Production.INFO: ==2270== Lock acquired, processing the job... [2025-03-03 03:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:02:04] Production.INFO: Account Balance Start. [2025-03-03 03:02:04] Production.INFO: CreateAllLog Start [2025-03-03 03:02:04] Production.INFO: 117 [2025-03-03 03:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: count ==13 [2025-03-03 03:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:02:04] Production.INFO: count ==21 [2025-03-03 03:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595576') start [2025-03-03 03:02:04] Production.ERROR: done [2025-03-03 03:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595576') end [2025-03-03 03:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:02:04] Production.INFO: 1 [2025-03-03 03:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:02:04] Production.INFO: ==2276== Releasing lock... [2025-03-03 03:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: ==2268== Releasing lock... [2025-03-03 03:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:02:04] Production.ERROR: done [2025-03-03 03:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:02:05] Production.INFO: Total Charge 0 [2025-03-03 03:02:05] Production.INFO: CreateAllLog End [2025-03-03 03:02:05] Production.INFO: Account Balance End. [2025-03-03 03:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:02:05] Production.INFO: ==2272== Releasing lock... [2025-03-03 03:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:02:11] Production.ERROR: CronJobId end10 [2025-03-03 03:02:11] Production.INFO: ==2270== Releasing lock... [2025-03-03 03:02:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:02:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:02:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:02:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:02:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:02:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:02:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:02:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:02:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:02:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:02:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:02:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:02:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:02:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:02:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:02:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:02:14] Production.INFO: call_cost start [2025-03-03 03:02:14] Production.INFO: call_cost end [2025-03-03 03:02:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:02:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:02:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:02:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:02:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:02:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:02:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:02:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:02:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:02:14] Production.INFO: ==2266== Releasing lock... [2025-03-03 03:02:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:02:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:02:16] Production.INFO: count ==409 [2025-03-03 03:02:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595577', 'tblTempUsageDetail_20' ) start [2025-03-03 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595577', 'tblTempUsageDetail_20' ) end [2025-03-03 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595577', 'tblTempVendorCDR_20' ) start [2025-03-03 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595577', 'tblTempVendorCDR_20' ) end [2025-03-03 03:02:16] Production.INFO: ProcessCDR(1,14595577,1,1,2) [2025-03-03 03:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595577', 'tblTempUsageDetail_20' ) start [2025-03-03 03:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595577', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:02:24] Production.INFO: ==2274== Releasing lock... [2025-03-03 03:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:03:01] Production.INFO: ==2333== Lock acquired, processing the job... [2025-03-03 08:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:03:01] Production.INFO: neon service started [2025-03-03 08:03:01] Production.INFO: neon service started [2025-03-03 08:03:01] Production.INFO: ==2333== Releasing lock... [2025-03-03 08:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:03:02] Production.INFO: ==2335== Lock acquired, processing the job... [2025-03-03 03:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:03:02] Production.INFO: ==2335== Releasing lock... [2025-03-03 03:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:03:02] Production.INFO: ==2337== Lock acquired, processing the job... [2025-03-03 08:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:03:02] Production.INFO: ==2337== Releasing lock... [2025-03-03 08:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:03:03] Production.INFO: ==2339== Lock acquired, processing the job... [2025-03-03 03:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:03:03] Production.INFO: ==2341== Lock acquired, processing the job... [2025-03-03 03:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:03:03] Production.INFO: ==2343== Lock acquired, processing the job... [2025-03-03 03:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:03:03] Production.INFO: ==2345== Lock acquired, processing the job... [2025-03-03 03:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:03:03] Production.INFO: ==2341== Releasing lock... [2025-03-03 03:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:03:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:03:03] Production.INFO: ==2349== Lock acquired, processing the job... [2025-03-03 03:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:03:03] Production.INFO: ==2347== Lock acquired, processing the job... [2025-03-03 03:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:03:03] Production.INFO: Account Balance Start. [2025-03-03 03:03:03] Production.INFO: CreateAllLog Start [2025-03-03 03:03:03] Production.INFO: 117 [2025-03-03 03:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:03:04] Production.INFO: count ==13 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:03:04] Production.INFO: count ==21 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595581') start [2025-03-03 03:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595581') end [2025-03-03 03:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:03:04] Production.INFO: 1 [2025-03-03 03:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: ==2349== Releasing lock... [2025-03-03 03:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.ERROR: done [2025-03-03 03:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:03:04] Production.ERROR: done [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:03:05] Production.INFO: Total Charge 0 [2025-03-03 03:03:05] Production.INFO: CreateAllLog End [2025-03-03 03:03:05] Production.INFO: Account Balance End. [2025-03-03 03:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:03:05] Production.INFO: ==2345== Releasing lock... [2025-03-03 03:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:03:12] Production.ERROR: CronJobId end10 [2025-03-03 03:03:12] Production.INFO: ==2343== Releasing lock... [2025-03-03 03:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:03:14] Production.INFO: call_cost start [2025-03-03 03:03:14] Production.INFO: call_cost end [2025-03-03 03:03:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:03:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:03:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:03:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:03:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:03:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:03:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:03:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:03:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:03:14] Production.INFO: ==2339== Releasing lock... [2025-03-03 03:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:03:16] Production.INFO: count ==409 [2025-03-03 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595582', 'tblTempUsageDetail_20' ) start [2025-03-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595582', 'tblTempUsageDetail_20' ) end [2025-03-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595582', 'tblTempVendorCDR_20' ) start [2025-03-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595582', 'tblTempVendorCDR_20' ) end [2025-03-03 03:03:17] Production.INFO: ProcessCDR(1,14595582,1,1,2) [2025-03-03 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595582', 'tblTempUsageDetail_20' ) start [2025-03-03 03:03:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595582', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:03:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:03:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:03:25] Production.INFO: ==2347== Releasing lock... [2025-03-03 03:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:03:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:04:02] Production.INFO: ==2405== Lock acquired, processing the job... [2025-03-03 08:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:04:02] Production.INFO: neon service started [2025-03-03 08:04:02] Production.INFO: neon service started [2025-03-03 08:04:02] Production.INFO: ==2405== Releasing lock... [2025-03-03 08:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:04:02] Production.INFO: ==2407== Lock acquired, processing the job... [2025-03-03 03:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:04:02] Production.INFO: ==2407== Releasing lock... [2025-03-03 03:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:04:03] Production.INFO: ==2409== Lock acquired, processing the job... [2025-03-03 08:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:04:03] Production.INFO: ==2409== Releasing lock... [2025-03-03 08:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:04:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:04:03] Production.INFO: ==2413== Lock acquired, processing the job... [2025-03-03 03:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:04:03] Production.INFO: ==2421== Lock acquired, processing the job... [2025-03-03 03:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:04:03] Production.INFO: count ==13 [2025-03-03 03:04:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:04:03] Production.INFO: count ==21 [2025-03-03 03:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595583') start [2025-03-03 03:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595583') end [2025-03-03 03:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:04:04] Production.INFO: 1 [2025-03-03 03:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:04:04] Production.INFO: ==2421== Releasing lock... [2025-03-03 03:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:04:04] Production.INFO: ==2413== Releasing lock... [2025-03-03 03:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:04:04] Production.INFO: ==2411== Lock acquired, processing the job... [2025-03-03 03:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:04:04] Production.INFO: ==2415== Lock acquired, processing the job... [2025-03-03 03:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:04:04] Production.INFO: ==2417== Lock acquired, processing the job... [2025-03-03 03:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:04:04] Production.INFO: ==2419== Lock acquired, processing the job... [2025-03-03 03:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:04:04] Production.INFO: Account Balance Start. [2025-03-03 03:04:04] Production.INFO: CreateAllLog Start [2025-03-03 03:04:04] Production.INFO: 117 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.ERROR: done [2025-03-03 03:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.ERROR: done [2025-03-03 03:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:04:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:04:05] Production.INFO: Total Charge 0 [2025-03-03 03:04:05] Production.INFO: CreateAllLog End [2025-03-03 03:04:05] Production.INFO: Account Balance End. [2025-03-03 03:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:04:05] Production.INFO: ==2417== Releasing lock... [2025-03-03 03:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:04:12] Production.ERROR: CronJobId end10 [2025-03-03 03:04:12] Production.INFO: ==2415== Releasing lock... [2025-03-03 03:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:04:15] Production.INFO: call_cost start [2025-03-03 03:04:15] Production.INFO: call_cost end [2025-03-03 03:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:04:15] Production.INFO: ==2411== Releasing lock... [2025-03-03 03:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:04:16] Production.INFO: count ==409 [2025-03-03 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595587', 'tblTempUsageDetail_20' ) start [2025-03-03 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595587', 'tblTempUsageDetail_20' ) end [2025-03-03 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595587', 'tblTempVendorCDR_20' ) start [2025-03-03 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595587', 'tblTempVendorCDR_20' ) end [2025-03-03 03:04:17] Production.INFO: ProcessCDR(1,14595587,1,1,2) [2025-03-03 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595587', 'tblTempUsageDetail_20' ) start [2025-03-03 03:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595587', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:04:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:04:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:04:25] Production.INFO: ==2419== Releasing lock... [2025-03-03 03:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:04:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:05:01] Production.INFO: ==2477== Lock acquired, processing the job... [2025-03-03 08:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:05:01] Production.INFO: neon service started [2025-03-03 08:05:01] Production.INFO: neon service started [2025-03-03 08:05:01] Production.INFO: ==2477== Releasing lock... [2025-03-03 08:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:05:02] Production.INFO: ==2481== Lock acquired, processing the job... [2025-03-03 03:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:05:02] Production.INFO: ==2483== Lock acquired, processing the job... [2025-03-03 08:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:05:02] Production.INFO: ==2483== Releasing lock... [2025-03-03 08:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:05:02] Production.INFO: ==2481== Releasing lock... [2025-03-03 03:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:05:03] Production.INFO: ==2491== Lock acquired, processing the job... [2025-03-03 03:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:05:03] Production.INFO: ==2488== Lock acquired, processing the job... [2025-03-03 03:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:05:03] Production.INFO: ==2495== Lock acquired, processing the job... [2025-03-03 03:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:05:03] Production.INFO: ==2500== Lock acquired, processing the job... [2025-03-03 03:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:05:03] Production.INFO: Account Balance Start. [2025-03-03 03:05:03] Production.INFO: CreateAllLog Start [2025-03-03 03:05:03] Production.INFO: 117 [2025-03-03 03:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:05:03] Production.INFO: ==2508== Lock acquired, processing the job... [2025-03-03 03:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:03] Production.INFO: ==2503== Lock acquired, processing the job... [2025-03-03 03:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:03] Production.INFO: ==2491== Releasing lock... [2025-03-03 03:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:05:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:05:03] Production.INFO: count ==13 [2025-03-03 03:05:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: count ==21 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595591') start [2025-03-03 03:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595591') end [2025-03-03 03:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:05:04] Production.INFO: 1 [2025-03-03 03:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: ==2508== Releasing lock... [2025-03-03 03:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:05:04] Production.ERROR: done [2025-03-03 03:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.ERROR: done [2025-03-03 03:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:05:05] Production.INFO: Total Charge 0 [2025-03-03 03:05:05] Production.INFO: CreateAllLog End [2025-03-03 03:05:05] Production.INFO: Account Balance End. [2025-03-03 03:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:05:05] Production.INFO: ==2500== Releasing lock... [2025-03-03 03:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:05:11] Production.ERROR: CronJobId end10 [2025-03-03 03:05:11] Production.INFO: ==2495== Releasing lock... [2025-03-03 03:05:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:05:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:05:15] Production.INFO: call_cost start [2025-03-03 03:05:15] Production.INFO: call_cost end [2025-03-03 03:05:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:05:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:05:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:05:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:05:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:05:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:05:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:05:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:05:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:05:15] Production.INFO: ==2488== Releasing lock... [2025-03-03 03:05:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:05:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:05:16] Production.INFO: count ==409 [2025-03-03 03:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595592', 'tblTempUsageDetail_20' ) start [2025-03-03 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595592', 'tblTempUsageDetail_20' ) end [2025-03-03 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595592', 'tblTempVendorCDR_20' ) start [2025-03-03 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595592', 'tblTempVendorCDR_20' ) end [2025-03-03 03:05:16] Production.INFO: ProcessCDR(1,14595592,1,1,2) [2025-03-03 03:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595592', 'tblTempUsageDetail_20' ) start [2025-03-03 03:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595592', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:05:24] Production.INFO: ==2503== Releasing lock... [2025-03-03 03:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:06:02] Production.INFO: ==2642== Lock acquired, processing the job... [2025-03-03 08:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:06:02] Production.INFO: neon service started [2025-03-03 08:06:02] Production.INFO: neon service started [2025-03-03 08:06:02] Production.INFO: ==2642== Releasing lock... [2025-03-03 08:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:06:02] Production.INFO: ==2644== Lock acquired, processing the job... [2025-03-03 03:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:06:02] Production.INFO: ==2644== Releasing lock... [2025-03-03 03:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:06:03] Production.INFO: ==2646== Lock acquired, processing the job... [2025-03-03 08:06:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:06:03] Production.INFO: ==2646== Releasing lock... [2025-03-03 08:06:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:06:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:06:03] Production.INFO: ==2648== Lock acquired, processing the job... [2025-03-03 03:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:06:03] Production.INFO: ==2650== Lock acquired, processing the job... [2025-03-03 03:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:06:03] Production.INFO: ==2652== Lock acquired, processing the job... [2025-03-03 03:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:06:03] Production.INFO: ==2655== Lock acquired, processing the job... [2025-03-03 03:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:06:04] Production.INFO: ==2657== Lock acquired, processing the job... [2025-03-03 03:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:06:04] Production.INFO: ==2659== Lock acquired, processing the job... [2025-03-03 03:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:06:04] Production.INFO: Account Balance Start. [2025-03-03 03:06:04] Production.INFO: CreateAllLog Start [2025-03-03 03:06:04] Production.INFO: 117 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: count ==13 [2025-03-03 03:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:06:04] Production.INFO: count ==21 [2025-03-03 03:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595596') start [2025-03-03 03:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:06:04] Production.INFO: ==2650== Releasing lock... [2025-03-03 03:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595596') end [2025-03-03 03:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:06:04] Production.INFO: 1 [2025-03-03 03:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.ERROR: done [2025-03-03 03:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:06:04] Production.INFO: ==2659== Releasing lock... [2025-03-03 03:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.ERROR: done [2025-03-03 03:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:06:05] Production.INFO: Total Charge 0 [2025-03-03 03:06:05] Production.INFO: CreateAllLog End [2025-03-03 03:06:05] Production.INFO: Account Balance End. [2025-03-03 03:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:06:05] Production.INFO: ==2655== Releasing lock... [2025-03-03 03:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:06:11] Production.ERROR: CronJobId end10 [2025-03-03 03:06:11] Production.INFO: ==2652== Releasing lock... [2025-03-03 03:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:06:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:06:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:06:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:06:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:06:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:06:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:06:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:06:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:06:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:06:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:06:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:06:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:06:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:06:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:06:14] Production.INFO: call_cost start [2025-03-03 03:06:14] Production.INFO: call_cost end [2025-03-03 03:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:06:14] Production.INFO: ==2648== Releasing lock... [2025-03-03 03:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:06:16] Production.INFO: count ==409 [2025-03-03 03:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595597', 'tblTempUsageDetail_20' ) start [2025-03-03 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595597', 'tblTempUsageDetail_20' ) end [2025-03-03 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595597', 'tblTempVendorCDR_20' ) start [2025-03-03 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595597', 'tblTempVendorCDR_20' ) end [2025-03-03 03:06:16] Production.INFO: ProcessCDR(1,14595597,1,1,2) [2025-03-03 03:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595597', 'tblTempUsageDetail_20' ) start [2025-03-03 03:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595597', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:06:24] Production.INFO: ==2657== Releasing lock... [2025-03-03 03:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:07:01] Production.INFO: ==2713== Lock acquired, processing the job... [2025-03-03 08:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:07:01] Production.INFO: neon service started [2025-03-03 08:07:01] Production.INFO: neon service started [2025-03-03 08:07:01] Production.INFO: ==2713== Releasing lock... [2025-03-03 08:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:07:01] Production.INFO: ==2715== Lock acquired, processing the job... [2025-03-03 03:07:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:07:02] Production.INFO: ==2715== Releasing lock... [2025-03-03 03:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:07:02] Production.INFO: ==2717== Lock acquired, processing the job... [2025-03-03 08:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:07:02] Production.INFO: ==2717== Releasing lock... [2025-03-03 08:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:07:03] Production.INFO: ==2719== Lock acquired, processing the job... [2025-03-03 03:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:07:03] Production.INFO: ==2721== Lock acquired, processing the job... [2025-03-03 03:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:07:03] Production.INFO: ==2729== Lock acquired, processing the job... [2025-03-03 03:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:07:03] Production.INFO: count ==13 [2025-03-03 03:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:07:03] Production.INFO: count ==21 [2025-03-03 03:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595599') start [2025-03-03 03:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595599') end [2025-03-03 03:07:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:07:03] Production.INFO: 1 [2025-03-03 03:07:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:07:03] Production.INFO: ==2729== Releasing lock... [2025-03-03 03:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:07:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:07:03] Production.INFO: ==2723== Lock acquired, processing the job... [2025-03-03 03:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:07:03] Production.INFO: ==2727== Lock acquired, processing the job... [2025-03-03 03:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:07:03] Production.INFO: ==2725== Lock acquired, processing the job... [2025-03-03 03:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:07:03] Production.INFO: ==2721== Releasing lock... [2025-03-03 03:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:07:03] Production.INFO: Account Balance Start. [2025-03-03 03:07:03] Production.INFO: CreateAllLog Start [2025-03-03 03:07:03] Production.INFO: 117 [2025-03-03 03:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.ERROR: done [2025-03-03 03:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.ERROR: done [2025-03-03 03:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:07:04] Production.INFO: Total Charge 0 [2025-03-03 03:07:04] Production.INFO: CreateAllLog End [2025-03-03 03:07:04] Production.INFO: Account Balance End. [2025-03-03 03:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:07:05] Production.INFO: ==2725== Releasing lock... [2025-03-03 03:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:07:11] Production.ERROR: CronJobId end10 [2025-03-03 03:07:11] Production.INFO: ==2723== Releasing lock... [2025-03-03 03:07:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:07:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:07:14] Production.INFO: call_cost start [2025-03-03 03:07:14] Production.INFO: call_cost end [2025-03-03 03:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:07:14] Production.INFO: ==2719== Releasing lock... [2025-03-03 03:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:07:16] Production.INFO: count ==409 [2025-03-03 03:07:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595602', 'tblTempUsageDetail_20' ) start [2025-03-03 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595602', 'tblTempUsageDetail_20' ) end [2025-03-03 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595602', 'tblTempVendorCDR_20' ) start [2025-03-03 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595602', 'tblTempVendorCDR_20' ) end [2025-03-03 03:07:16] Production.INFO: ProcessCDR(1,14595602,1,1,2) [2025-03-03 03:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595602', 'tblTempUsageDetail_20' ) start [2025-03-03 03:07:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595602', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:07:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:07:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:07:24] Production.INFO: ==2727== Releasing lock... [2025-03-03 03:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:07:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:08:02] Production.INFO: ==2795== Lock acquired, processing the job... [2025-03-03 08:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:08:02] Production.INFO: neon service started [2025-03-03 08:08:02] Production.INFO: neon service started [2025-03-03 08:08:02] Production.INFO: ==2795== Releasing lock... [2025-03-03 08:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:08:02] Production.INFO: ==2797== Lock acquired, processing the job... [2025-03-03 03:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:08:02] Production.INFO: ==2799== Lock acquired, processing the job... [2025-03-03 08:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:08:02] Production.INFO: ==2797== Releasing lock... [2025-03-03 03:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:08:02] Production.INFO: ==2799== Releasing lock... [2025-03-03 08:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:08:03] Production.INFO: ==2805== Lock acquired, processing the job... [2025-03-03 03:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:08:03] Production.INFO: ==2810== Lock acquired, processing the job... [2025-03-03 03:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:08:03] Production.INFO: ==2807== Lock acquired, processing the job... [2025-03-03 03:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:08:03] Production.INFO: ==2801== Lock acquired, processing the job... [2025-03-03 03:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:08:03] Production.INFO: Account Balance Start. [2025-03-03 03:08:03] Production.INFO: CreateAllLog Start [2025-03-03 03:08:03] Production.INFO: 117 [2025-03-03 03:08:03] Production.INFO: ==2812== Lock acquired, processing the job... [2025-03-03 03:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:08:04] Production.INFO: ==2803== Lock acquired, processing the job... [2025-03-03 03:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: count ==13 [2025-03-03 03:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:08:04] Production.INFO: count ==21 [2025-03-03 03:08:04] Production.ERROR: done [2025-03-03 03:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595604') start [2025-03-03 03:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.ERROR: done [2025-03-03 03:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: ==2803== Releasing lock... [2025-03-03 03:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595604') end [2025-03-03 03:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:08:04] Production.INFO: 1 [2025-03-03 03:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: ==2812== Releasing lock... [2025-03-03 03:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:08:05] Production.INFO: Total Charge 0 [2025-03-03 03:08:05] Production.INFO: CreateAllLog End [2025-03-03 03:08:05] Production.INFO: Account Balance End. [2025-03-03 03:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:08:05] Production.INFO: ==2807== Releasing lock... [2025-03-03 03:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:08:12] Production.ERROR: CronJobId end10 [2025-03-03 03:08:12] Production.INFO: ==2805== Releasing lock... [2025-03-03 03:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:08:15] Production.INFO: call_cost start [2025-03-03 03:08:15] Production.INFO: call_cost end [2025-03-03 03:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:08:15] Production.INFO: ==2801== Releasing lock... [2025-03-03 03:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:08:16] Production.INFO: count ==409 [2025-03-03 03:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595607', 'tblTempUsageDetail_20' ) start [2025-03-03 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595607', 'tblTempUsageDetail_20' ) end [2025-03-03 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595607', 'tblTempVendorCDR_20' ) start [2025-03-03 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595607', 'tblTempVendorCDR_20' ) end [2025-03-03 03:08:16] Production.INFO: ProcessCDR(1,14595607,1,1,2) [2025-03-03 03:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595607', 'tblTempUsageDetail_20' ) start [2025-03-03 03:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595607', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:08:24] Production.INFO: ==2810== Releasing lock... [2025-03-03 03:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:08:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:09:01] Production.INFO: ==2947== Lock acquired, processing the job... [2025-03-03 08:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:09:01] Production.INFO: neon service started [2025-03-03 08:09:01] Production.INFO: neon service started [2025-03-03 08:09:01] Production.INFO: ==2947== Releasing lock... [2025-03-03 08:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:09:01] Production.INFO: ==2949== Lock acquired, processing the job... [2025-03-03 03:09:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:09:02] Production.INFO: ==2951== Lock acquired, processing the job... [2025-03-03 08:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:09:02] Production.INFO: ==2949== Releasing lock... [2025-03-03 03:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:09:02] Production.INFO: ==2951== Releasing lock... [2025-03-03 08:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:09:03] Production.INFO: ==2957== Lock acquired, processing the job... [2025-03-03 03:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:09:03] Production.INFO: ==2953== Lock acquired, processing the job... [2025-03-03 03:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:09:03] Production.INFO: ==2955== Lock acquired, processing the job... [2025-03-03 03:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:09:03] Production.INFO: ==2964== Lock acquired, processing the job... [2025-03-03 03:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:09:03] Production.INFO: ==2959== Lock acquired, processing the job... [2025-03-03 03:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:09:03] Production.INFO: ==2961== Lock acquired, processing the job... [2025-03-03 03:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:09:03] Production.INFO: Account Balance Start. [2025-03-03 03:09:03] Production.INFO: CreateAllLog Start [2025-03-03 03:09:03] Production.INFO: 117 [2025-03-03 03:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:09:03] Production.INFO: count ==13 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:09:03] Production.INFO: count ==21 [2025-03-03 03:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595611') start [2025-03-03 03:09:03] Production.INFO: ==2955== Releasing lock... [2025-03-03 03:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:09:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:03] Production.ERROR: done [2025-03-03 03:09:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:09:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595611') end [2025-03-03 03:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:09:03] Production.INFO: 1 [2025-03-03 03:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:09:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: ==2964== Releasing lock... [2025-03-03 03:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:09:04] Production.ERROR: done [2025-03-03 03:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:09:04] Production.INFO: Total Charge 0 [2025-03-03 03:09:04] Production.INFO: CreateAllLog End [2025-03-03 03:09:04] Production.INFO: Account Balance End. [2025-03-03 03:09:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:09:04] Production.INFO: ==2959== Releasing lock... [2025-03-03 03:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:09:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:09:11] Production.ERROR: CronJobId end10 [2025-03-03 03:09:11] Production.INFO: ==2957== Releasing lock... [2025-03-03 03:09:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:09:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:09:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:09:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:09:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:09:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:09:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:09:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:09:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:09:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:09:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:09:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:09:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:09:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:09:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:09:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:09:13] Production.INFO: call_cost start [2025-03-03 03:09:13] Production.INFO: call_cost end [2025-03-03 03:09:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:09:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:09:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:09:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:09:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:09:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:09:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:09:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:09:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:09:13] Production.INFO: ==2953== Releasing lock... [2025-03-03 03:09:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:09:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:09:16] Production.INFO: count ==409 [2025-03-03 03:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595612', 'tblTempUsageDetail_20' ) start [2025-03-03 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595612', 'tblTempUsageDetail_20' ) end [2025-03-03 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595612', 'tblTempVendorCDR_20' ) start [2025-03-03 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595612', 'tblTempVendorCDR_20' ) end [2025-03-03 03:09:16] Production.INFO: ProcessCDR(1,14595612,1,1,2) [2025-03-03 03:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595612', 'tblTempUsageDetail_20' ) start [2025-03-03 03:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595612', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:09:24] Production.INFO: ==2961== Releasing lock... [2025-03-03 03:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:09:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:10:02] Production.INFO: ==3057== Lock acquired, processing the job... [2025-03-03 08:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:10:02] Production.INFO: neon service started [2025-03-03 08:10:02] Production.INFO: neon service started [2025-03-03 08:10:02] Production.INFO: ==3057== Releasing lock... [2025-03-03 08:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:10:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:10:02] Production.INFO: ==3069== Lock acquired, processing the job... [2025-03-03 03:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:10:02] Production.INFO: ==3073== Lock acquired, processing the job... [2025-03-03 08:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:10:02] Production.INFO: ==3073== Releasing lock... [2025-03-03 08:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:10:03] Production.INFO: ==3069== Releasing lock... [2025-03-03 03:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:10:03] Production.INFO: ==3080== Lock acquired, processing the job... [2025-03-03 03:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 03:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 03:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 03:10:04] Production.INFO: ==3080== Releasing lock... [2025-03-03 03:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 03:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:10:04] Production.INFO: ==3086== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:10:04] Production.INFO: ==3092== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 03:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:10:04] Production.INFO: ==3094== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:10:04] Production.INFO: ==3084== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:10:04] Production.INFO: ==3082== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:10:04] Production.INFO: count ==13 [2025-03-03 03:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:10:04] Production.INFO: count ==21 [2025-03-03 03:10:04] Production.INFO: ==3090== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595613') start [2025-03-03 03:10:04] Production.INFO: ==3088== Lock acquired, processing the job... [2025-03-03 03:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595613') end [2025-03-03 03:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:10:04] Production.INFO: 1 [2025-03-03 03:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:10:04] Production.INFO: Account Balance Start. [2025-03-03 03:10:04] Production.INFO: CreateAllLog Start [2025-03-03 03:10:04] Production.INFO: 117 [2025-03-03 03:10:04] Production.ERROR: done [2025-03-03 03:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 03:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595617', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 03:10:04] Production.INFO: ==3094== Releasing lock... [2025-03-03 03:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:10:05] Production.INFO: Date 2025-02-09 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-10 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-11 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: ==3084== Releasing lock... [2025-03-03 03:10:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:10:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:10:05] Production.INFO: Date 2025-02-12 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.ERROR: done [2025-03-03 03:10:05] Production.INFO: Date 2025-02-13 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.ERROR: done [2025-03-03 03:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:10:06] Production.INFO: Total Charge 0 [2025-03-03 03:10:06] Production.INFO: CreateAllLog End [2025-03-03 03:10:06] Production.INFO: Account Balance End. [2025-03-03 03:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 03:10:06] Production.INFO: ==3088== Releasing lock... [2025-03-03 03:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:10:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595617', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 03:10:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 03:10:08] Production.INFO: ProcessCDR(1,14595617,1,1,2) [2025-03-03 03:10:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595617,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:10:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595617,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:10:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 03:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 03:10:09] Production.INFO: ==3092== Releasing lock... [2025-03-03 03:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 03:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 03:10:15] Production.ERROR: CronJobId end10 [2025-03-03 03:10:15] Production.INFO: ==3086== Releasing lock... [2025-03-03 03:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:10:17] Production.INFO: count ==409 [2025-03-03 03:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595618', 'tblTempUsageDetail_20' ) start [2025-03-03 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595618', 'tblTempUsageDetail_20' ) end [2025-03-03 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595618', 'tblTempVendorCDR_20' ) start [2025-03-03 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595618', 'tblTempVendorCDR_20' ) end [2025-03-03 03:10:18] Production.INFO: ProcessCDR(1,14595618,1,1,2) [2025-03-03 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:10:18] Production.INFO: call_cost start [2025-03-03 03:10:18] Production.INFO: call_cost end [2025-03-03 03:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:10:18] Production.INFO: ==3082== Releasing lock... [2025-03-03 03:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595618', 'tblTempUsageDetail_20' ) start [2025-03-03 03:10:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595618', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:10:25] Production.INFO: ==3090== Releasing lock... [2025-03-03 03:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:10:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:11:01] Production.INFO: ==3183== Lock acquired, processing the job... [2025-03-03 08:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:11:01] Production.INFO: neon service started [2025-03-03 08:11:01] Production.INFO: neon service started [2025-03-03 08:11:01] Production.INFO: ==3183== Releasing lock... [2025-03-03 08:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:11:01] Production.INFO: ==3187== Lock acquired, processing the job... [2025-03-03 08:11:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:11:02] Production.INFO: ==3187== Releasing lock... [2025-03-03 08:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:11:02] Production.INFO: ==3185== Lock acquired, processing the job... [2025-03-03 03:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:11:02] Production.INFO: ==3185== Releasing lock... [2025-03-03 03:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:11:03] Production.INFO: ==3190== Lock acquired, processing the job... [2025-03-03 03:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:11:03] Production.INFO: ==3192== Lock acquired, processing the job... [2025-03-03 03:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:11:03] Production.INFO: ==3198== Lock acquired, processing the job... [2025-03-03 03:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:11:03] Production.INFO: ==3194== Lock acquired, processing the job... [2025-03-03 03:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:11:03] Production.INFO: ==3196== Lock acquired, processing the job... [2025-03-03 03:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:11:03] Production.INFO: ==3200== Lock acquired, processing the job... [2025-03-03 03:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:11:03] Production.INFO: ==3192== Releasing lock... [2025-03-03 03:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:11:03] Production.INFO: Account Balance Start. [2025-03-03 03:11:03] Production.INFO: CreateAllLog Start [2025-03-03 03:11:03] Production.INFO: 117 [2025-03-03 03:11:03] Production.ERROR: done [2025-03-03 03:11:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:03] Production.INFO: count ==13 [2025-03-03 03:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:11:03] Production.INFO: count ==21 [2025-03-03 03:11:04] Production.ERROR: done [2025-03-03 03:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595622') start [2025-03-03 03:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595622') end [2025-03-03 03:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:11:04] Production.INFO: 1 [2025-03-03 03:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: ==3200== Releasing lock... [2025-03-03 03:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:11:04] Production.INFO: Total Charge 0 [2025-03-03 03:11:04] Production.INFO: CreateAllLog End [2025-03-03 03:11:05] Production.INFO: Account Balance End. [2025-03-03 03:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:11:05] Production.INFO: ==3196== Releasing lock... [2025-03-03 03:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:11:11] Production.ERROR: CronJobId end10 [2025-03-03 03:11:11] Production.INFO: ==3194== Releasing lock... [2025-03-03 03:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:11:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:11:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:11:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:11:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:11:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:11:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:11:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:11:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:11:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:11:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:11:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:11:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:11:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:11:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:11:13] Production.INFO: call_cost start [2025-03-03 03:11:13] Production.INFO: call_cost end [2025-03-03 03:11:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:11:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:11:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:11:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:11:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:11:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:11:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:11:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:11:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:11:13] Production.INFO: ==3190== Releasing lock... [2025-03-03 03:11:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:11:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:11:16] Production.INFO: count ==409 [2025-03-03 03:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595623', 'tblTempUsageDetail_20' ) start [2025-03-03 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595623', 'tblTempUsageDetail_20' ) end [2025-03-03 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595623', 'tblTempVendorCDR_20' ) start [2025-03-03 03:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595623', 'tblTempVendorCDR_20' ) end [2025-03-03 03:11:16] Production.INFO: ProcessCDR(1,14595623,1,1,2) [2025-03-03 03:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595623', 'tblTempUsageDetail_20' ) start [2025-03-03 03:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595623', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:11:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:11:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:11:23] Production.INFO: ==3198== Releasing lock... [2025-03-03 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:11:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:12:01] Production.INFO: ==3259== Lock acquired, processing the job... [2025-03-03 08:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:12:01] Production.INFO: neon service started [2025-03-03 08:12:02] Production.INFO: neon service started [2025-03-03 08:12:02] Production.INFO: ==3259== Releasing lock... [2025-03-03 08:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:12:02] Production.INFO: ==3261== Lock acquired, processing the job... [2025-03-03 03:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:12:02] Production.INFO: ==3261== Releasing lock... [2025-03-03 03:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:12:02] Production.INFO: ==3263== Lock acquired, processing the job... [2025-03-03 08:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:12:02] Production.INFO: ==3263== Releasing lock... [2025-03-03 08:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:12:03] Production.INFO: ==3272== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:12:03] Production.INFO: ==3266== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:12:03] Production.INFO: Account Balance Start. [2025-03-03 03:12:03] Production.INFO: CreateAllLog Start [2025-03-03 03:12:03] Production.INFO: 117 [2025-03-03 03:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:12:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: ==3268== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:12:03] Production.INFO: ==3270== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:12:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: ==3274== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:12:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:03] Production.INFO: ==3276== Lock acquired, processing the job... [2025-03-03 03:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:12:03] Production.INFO: Date 2025-02-16 [2025-03-03 03:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: count ==13 [2025-03-03 03:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:12:04] Production.INFO: count ==21 [2025-03-03 03:12:04] Production.INFO: ==3268== Releasing lock... [2025-03-03 03:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595627') start [2025-03-03 03:12:04] Production.ERROR: done [2025-03-03 03:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595627') end [2025-03-03 03:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:12:04] Production.INFO: 1 [2025-03-03 03:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:12:04] Production.ERROR: done [2025-03-03 03:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: ==3276== Releasing lock... [2025-03-03 03:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:12:04] Production.INFO: Total Charge 0 [2025-03-03 03:12:04] Production.INFO: CreateAllLog End [2025-03-03 03:12:04] Production.INFO: Account Balance End. [2025-03-03 03:12:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:12:04] Production.INFO: ==3272== Releasing lock... [2025-03-03 03:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:12:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:12:11] Production.ERROR: CronJobId end10 [2025-03-03 03:12:11] Production.INFO: ==3270== Releasing lock... [2025-03-03 03:12:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:12:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:12:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:12:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:12:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:12:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:12:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:12:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:12:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:12:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:12:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:12:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:12:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:12:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:12:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:12:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:12:14] Production.INFO: call_cost start [2025-03-03 03:12:14] Production.INFO: call_cost end [2025-03-03 03:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:12:14] Production.INFO: ==3266== Releasing lock... [2025-03-03 03:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:12:16] Production.INFO: count ==409 [2025-03-03 03:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595628', 'tblTempUsageDetail_20' ) start [2025-03-03 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595628', 'tblTempUsageDetail_20' ) end [2025-03-03 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595628', 'tblTempVendorCDR_20' ) start [2025-03-03 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595628', 'tblTempVendorCDR_20' ) end [2025-03-03 03:12:16] Production.INFO: ProcessCDR(1,14595628,1,1,2) [2025-03-03 03:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595628', 'tblTempUsageDetail_20' ) start [2025-03-03 03:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595628', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:12:24] Production.INFO: ==3274== Releasing lock... [2025-03-03 03:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:12:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:13:01] Production.INFO: ==3425== Lock acquired, processing the job... [2025-03-03 08:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:13:01] Production.INFO: neon service started [2025-03-03 08:13:01] Production.INFO: neon service started [2025-03-03 08:13:01] Production.INFO: ==3425== Releasing lock... [2025-03-03 08:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:13:01] Production.INFO: ==3427== Lock acquired, processing the job... [2025-03-03 03:13:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:13:02] Production.INFO: ==3427== Releasing lock... [2025-03-03 03:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:13:02] Production.INFO: ==3429== Lock acquired, processing the job... [2025-03-03 08:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:13:02] Production.INFO: ==3429== Releasing lock... [2025-03-03 08:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:13:03] Production.INFO: ==3432== Lock acquired, processing the job... [2025-03-03 03:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:13:03] Production.INFO: ==3436== Lock acquired, processing the job... [2025-03-03 03:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:13:03] Production.INFO: ==3438== Lock acquired, processing the job... [2025-03-03 03:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:13:03] Production.INFO: Account Balance Start. [2025-03-03 03:13:03] Production.INFO: CreateAllLog Start [2025-03-03 03:13:03] Production.INFO: 117 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:13:03] Production.INFO: ==3434== Lock acquired, processing the job... [2025-03-03 03:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: ==3440== Lock acquired, processing the job... [2025-03-03 03:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:13:03] Production.INFO: ==3442== Lock acquired, processing the job... [2025-03-03 03:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:13:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: count ==13 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:13:03] Production.INFO: count ==21 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595631') start [2025-03-03 03:13:03] Production.INFO: Date 2025-02-16 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:03] Production.INFO: Date 2025-02-17 [2025-03-03 03:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595631') end [2025-03-03 03:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:13:04] Production.INFO: 1 [2025-03-03 03:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: ==3442== Releasing lock... [2025-03-03 03:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:13:04] Production.ERROR: done [2025-03-03 03:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:13:04] Production.INFO: ==3434== Releasing lock... [2025-03-03 03:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.ERROR: done [2025-03-03 03:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:13:04] Production.INFO: Total Charge 0 [2025-03-03 03:13:04] Production.INFO: CreateAllLog End [2025-03-03 03:13:04] Production.INFO: Account Balance End. [2025-03-03 03:13:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:13:04] Production.INFO: ==3438== Releasing lock... [2025-03-03 03:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:13:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:13:13] Production.ERROR: CronJobId end10 [2025-03-03 03:13:13] Production.INFO: ==3436== Releasing lock... [2025-03-03 03:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:13:16] Production.INFO: call_cost start [2025-03-03 03:13:16] Production.INFO: call_cost end [2025-03-03 03:13:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:13:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:13:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:13:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:13:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:13:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:13:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:13:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:13:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:13:16] Production.INFO: ==3432== Releasing lock... [2025-03-03 03:13:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:13:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:13:16] Production.INFO: count ==409 [2025-03-03 03:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595633', 'tblTempUsageDetail_20' ) start [2025-03-03 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595633', 'tblTempUsageDetail_20' ) end [2025-03-03 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595633', 'tblTempVendorCDR_20' ) start [2025-03-03 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595633', 'tblTempVendorCDR_20' ) end [2025-03-03 03:13:16] Production.INFO: ProcessCDR(1,14595633,1,1,2) [2025-03-03 03:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595633', 'tblTempUsageDetail_20' ) start [2025-03-03 03:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595633', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:13:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:13:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:13:25] Production.INFO: ==3440== Releasing lock... [2025-03-03 03:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:13:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:14:01] Production.INFO: ==3497== Lock acquired, processing the job... [2025-03-03 08:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:14:01] Production.INFO: neon service started [2025-03-03 08:14:01] Production.INFO: neon service started [2025-03-03 08:14:01] Production.INFO: ==3497== Releasing lock... [2025-03-03 08:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:14:02] Production.INFO: ==3501== Lock acquired, processing the job... [2025-03-03 08:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:14:02] Production.INFO: ==3499== Lock acquired, processing the job... [2025-03-03 03:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:14:02] Production.INFO: ==3501== Releasing lock... [2025-03-03 08:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:14:03] Production.INFO: ==3499== Releasing lock... [2025-03-03 03:14:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:14:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:14:03] Production.INFO: ==3508== Lock acquired, processing the job... [2025-03-03 03:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:14:04] Production.INFO: ==3514== Lock acquired, processing the job... [2025-03-03 03:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:14:04] Production.INFO: count ==13 [2025-03-03 03:14:04] Production.INFO: ==3504== Lock acquired, processing the job... [2025-03-03 03:14:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:14:04] Production.INFO: count ==21 [2025-03-03 03:14:04] Production.INFO: ==3510== Lock acquired, processing the job... [2025-03-03 03:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595634') start [2025-03-03 03:14:04] Production.INFO: ==3506== Lock acquired, processing the job... [2025-03-03 03:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:14:04] Production.INFO: ==3512== Lock acquired, processing the job... [2025-03-03 03:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595634') end [2025-03-03 03:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:14:04] Production.INFO: 1 [2025-03-03 03:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:14:04] Production.INFO: Account Balance Start. [2025-03-03 03:14:04] Production.INFO: CreateAllLog Start [2025-03-03 03:14:04] Production.INFO: 117 [2025-03-03 03:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:04] Production.INFO: ==3514== Releasing lock... [2025-03-03 03:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: ==3506== Releasing lock... [2025-03-03 03:14:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:14:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:14:05] Production.ERROR: done [2025-03-03 03:14:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-13 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.ERROR: done [2025-03-03 03:14:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:14:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:14:05] Production.INFO: Total Charge 0 [2025-03-03 03:14:05] Production.INFO: CreateAllLog End [2025-03-03 03:14:05] Production.INFO: Account Balance End. [2025-03-03 03:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:14:05] Production.INFO: ==3510== Releasing lock... [2025-03-03 03:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:14:12] Production.ERROR: CronJobId end10 [2025-03-03 03:14:12] Production.INFO: ==3508== Releasing lock... [2025-03-03 03:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:14:16] Production.INFO: call_cost start [2025-03-03 03:14:16] Production.INFO: call_cost end [2025-03-03 03:14:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:14:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:14:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:14:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:14:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:14:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:14:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:14:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:14:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:14:16] Production.INFO: ==3504== Releasing lock... [2025-03-03 03:14:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:14:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:14:17] Production.INFO: count ==409 [2025-03-03 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595638', 'tblTempUsageDetail_20' ) start [2025-03-03 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595638', 'tblTempUsageDetail_20' ) end [2025-03-03 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595638', 'tblTempVendorCDR_20' ) start [2025-03-03 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595638', 'tblTempVendorCDR_20' ) end [2025-03-03 03:14:17] Production.INFO: ProcessCDR(1,14595638,1,1,2) [2025-03-03 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595638', 'tblTempUsageDetail_20' ) start [2025-03-03 03:14:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595638', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:14:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:14:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:14:26] Production.INFO: ==3512== Releasing lock... [2025-03-03 03:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:14:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:15:01] Production.INFO: ==3576== Lock acquired, processing the job... [2025-03-03 08:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:15:01] Production.INFO: neon service started [2025-03-03 08:15:01] Production.INFO: neon service started [2025-03-03 08:15:01] Production.INFO: ==3576== Releasing lock... [2025-03-03 08:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:15:02] Production.INFO: ==3578== Lock acquired, processing the job... [2025-03-03 03:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:15:02] Production.INFO: ==3580== Lock acquired, processing the job... [2025-03-03 08:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:15:02] Production.INFO: ==3580== Releasing lock... [2025-03-03 08:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:15:02] Production.INFO: ==3578== Releasing lock... [2025-03-03 03:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:15:03] Production.INFO: ==3589== Lock acquired, processing the job... [2025-03-03 03:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:15:03] Production.INFO: ==3587== Lock acquired, processing the job... [2025-03-03 03:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:15:03] Production.INFO: Account Balance Start. [2025-03-03 03:15:03] Production.INFO: CreateAllLog Start [2025-03-03 03:15:03] Production.INFO: 117 [2025-03-03 03:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:03] Production.INFO: ==3585== Lock acquired, processing the job... [2025-03-03 03:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:15:03] Production.INFO: ==3583== Lock acquired, processing the job... [2025-03-03 03:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:03] Production.INFO: ==3593== Lock acquired, processing the job... [2025-03-03 03:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:15:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:15:03] Production.INFO: count ==13 [2025-03-03 03:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:15:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:15:03] Production.INFO: count ==21 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595641') start [2025-03-03 03:15:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595641') end [2025-03-03 03:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:15:04] Production.INFO: 1 [2025-03-03 03:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: ==3593== Releasing lock... [2025-03-03 03:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:15:04] Production.INFO: ==3591== Lock acquired, processing the job... [2025-03-03 03:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:15:04] Production.INFO: ==3585== Releasing lock... [2025-03-03 03:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.ERROR: done [2025-03-03 03:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:15:04] Production.ERROR: done [2025-03-03 03:15:04] Production.INFO: Total Charge 0 [2025-03-03 03:15:04] Production.INFO: CreateAllLog End [2025-03-03 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:15:04] Production.INFO: Account Balance End. [2025-03-03 03:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:15:05] Production.INFO: ==3589== Releasing lock... [2025-03-03 03:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:15:12] Production.ERROR: CronJobId end10 [2025-03-03 03:15:12] Production.INFO: ==3587== Releasing lock... [2025-03-03 03:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:15:15] Production.INFO: call_cost start [2025-03-03 03:15:15] Production.INFO: call_cost end [2025-03-03 03:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:15:15] Production.INFO: ==3583== Releasing lock... [2025-03-03 03:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:15:16] Production.INFO: count ==409 [2025-03-03 03:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595643', 'tblTempUsageDetail_20' ) start [2025-03-03 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595643', 'tblTempUsageDetail_20' ) end [2025-03-03 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595643', 'tblTempVendorCDR_20' ) start [2025-03-03 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595643', 'tblTempVendorCDR_20' ) end [2025-03-03 03:15:16] Production.INFO: ProcessCDR(1,14595643,1,1,2) [2025-03-03 03:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595643', 'tblTempUsageDetail_20' ) start [2025-03-03 03:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595643', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:15:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:15:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:15:25] Production.INFO: ==3591== Releasing lock... [2025-03-03 03:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:15:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:16:02] Production.INFO: ==3659== Lock acquired, processing the job... [2025-03-03 08:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:16:02] Production.INFO: neon service started [2025-03-03 08:16:02] Production.INFO: neon service started [2025-03-03 08:16:02] Production.INFO: ==3659== Releasing lock... [2025-03-03 08:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:16:02] Production.INFO: ==3663== Lock acquired, processing the job... [2025-03-03 08:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:16:02] Production.INFO: ==3663== Releasing lock... [2025-03-03 08:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:16:02] Production.INFO: ==3661== Lock acquired, processing the job... [2025-03-03 03:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:16:02] Production.INFO: ==3661== Releasing lock... [2025-03-03 03:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:16:03] Production.INFO: ==3666== Lock acquired, processing the job... [2025-03-03 03:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:16:03] Production.INFO: ==3668== Lock acquired, processing the job... [2025-03-03 03:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:16:03] Production.INFO: ==3670== Lock acquired, processing the job... [2025-03-03 03:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:16:04] Production.INFO: ==3672== Lock acquired, processing the job... [2025-03-03 03:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:16:04] Production.INFO: ==3674== Lock acquired, processing the job... [2025-03-03 03:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:16:04] Production.INFO: ==3676== Lock acquired, processing the job... [2025-03-03 03:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:16:04] Production.INFO: Account Balance Start. [2025-03-03 03:16:04] Production.INFO: CreateAllLog Start [2025-03-03 03:16:04] Production.INFO: 117 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: ==3668== Releasing lock... [2025-03-03 03:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: count ==13 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.ERROR: done [2025-03-03 03:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:16:04] Production.INFO: count ==21 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595647') start [2025-03-03 03:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.ERROR: done [2025-03-03 03:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595647') end [2025-03-03 03:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:16:04] Production.INFO: 1 [2025-03-03 03:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:16:04] Production.INFO: ==3676== Releasing lock... [2025-03-03 03:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:16:05] Production.INFO: Total Charge 0 [2025-03-03 03:16:05] Production.INFO: CreateAllLog End [2025-03-03 03:16:05] Production.INFO: Account Balance End. [2025-03-03 03:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:16:05] Production.INFO: ==3672== Releasing lock... [2025-03-03 03:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:16:12] Production.ERROR: CronJobId end10 [2025-03-03 03:16:12] Production.INFO: ==3670== Releasing lock... [2025-03-03 03:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:16:14] Production.INFO: call_cost start [2025-03-03 03:16:14] Production.INFO: call_cost end [2025-03-03 03:16:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:16:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:16:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:16:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:16:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:16:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:16:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:16:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:16:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:16:14] Production.INFO: ==3666== Releasing lock... [2025-03-03 03:16:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:16:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:16:16] Production.INFO: count ==409 [2025-03-03 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595648', 'tblTempUsageDetail_20' ) start [2025-03-03 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595648', 'tblTempUsageDetail_20' ) end [2025-03-03 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595648', 'tblTempVendorCDR_20' ) start [2025-03-03 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595648', 'tblTempVendorCDR_20' ) end [2025-03-03 03:16:17] Production.INFO: ProcessCDR(1,14595648,1,1,2) [2025-03-03 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595648', 'tblTempUsageDetail_20' ) start [2025-03-03 03:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595648', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:16:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:16:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:16:25] Production.INFO: ==3674== Releasing lock... [2025-03-03 03:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:16:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:17:01] Production.INFO: ==3805== Lock acquired, processing the job... [2025-03-03 08:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:17:01] Production.INFO: neon service started [2025-03-03 08:17:01] Production.INFO: neon service started [2025-03-03 08:17:01] Production.INFO: ==3805== Releasing lock... [2025-03-03 08:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:17:02] Production.INFO: ==3807== Lock acquired, processing the job... [2025-03-03 03:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:17:02] Production.INFO: ==3809== Lock acquired, processing the job... [2025-03-03 08:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:17:02] Production.INFO: ==3809== Releasing lock... [2025-03-03 08:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:17:02] Production.INFO: ==3807== Releasing lock... [2025-03-03 03:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:17:03] Production.INFO: ==3812== Lock acquired, processing the job... [2025-03-03 03:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:17:03] Production.INFO: ==3818== Lock acquired, processing the job... [2025-03-03 03:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:17:03] Production.INFO: Account Balance Start. [2025-03-03 03:17:03] Production.INFO: CreateAllLog Start [2025-03-03 03:17:03] Production.INFO: 117 [2025-03-03 03:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:17:03] Production.INFO: ==3822== Lock acquired, processing the job... [2025-03-03 03:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:17:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: count ==13 [2025-03-03 03:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:17:03] Production.INFO: count ==21 [2025-03-03 03:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595651') start [2025-03-03 03:17:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: ==3814== Lock acquired, processing the job... [2025-03-03 03:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595651') end [2025-03-03 03:17:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:17:03] Production.INFO: 1 [2025-03-03 03:17:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:17:03] Production.INFO: ==3822== Releasing lock... [2025-03-03 03:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:17:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:17:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: ==3816== Lock acquired, processing the job... [2025-03-03 03:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:17:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:03] Production.INFO: ==3820== Lock acquired, processing the job... [2025-03-03 03:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:17:03] Production.INFO: Date 2025-02-16 [2025-03-03 03:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: ==3814== Releasing lock... [2025-03-03 03:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.ERROR: done [2025-03-03 03:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.ERROR: done [2025-03-03 03:17:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:17:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:17:04] Production.INFO: Total Charge 0 [2025-03-03 03:17:04] Production.INFO: CreateAllLog End [2025-03-03 03:17:05] Production.INFO: Account Balance End. [2025-03-03 03:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:17:05] Production.INFO: ==3818== Releasing lock... [2025-03-03 03:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:17:11] Production.ERROR: CronJobId end10 [2025-03-03 03:17:11] Production.INFO: ==3816== Releasing lock... [2025-03-03 03:17:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:17:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:17:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:17:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:17:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:17:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:17:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:17:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:17:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:17:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:17:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:17:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:17:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:17:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:17:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:17:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:17:13] Production.INFO: call_cost start [2025-03-03 03:17:13] Production.INFO: call_cost end [2025-03-03 03:17:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:17:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:17:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:17:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:17:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:17:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:17:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:17:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:17:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:17:13] Production.INFO: ==3812== Releasing lock... [2025-03-03 03:17:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:17:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:17:16] Production.INFO: count ==409 [2025-03-03 03:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595653', 'tblTempUsageDetail_20' ) start [2025-03-03 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595653', 'tblTempUsageDetail_20' ) end [2025-03-03 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595653', 'tblTempVendorCDR_20' ) start [2025-03-03 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595653', 'tblTempVendorCDR_20' ) end [2025-03-03 03:17:16] Production.INFO: ProcessCDR(1,14595653,1,1,2) [2025-03-03 03:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595653', 'tblTempUsageDetail_20' ) start [2025-03-03 03:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595653', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:17:24] Production.INFO: ==3820== Releasing lock... [2025-03-03 03:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:18:02] Production.INFO: ==3901== Lock acquired, processing the job... [2025-03-03 08:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:18:02] Production.INFO: neon service started [2025-03-03 08:18:02] Production.INFO: neon service started [2025-03-03 08:18:02] Production.INFO: ==3901== Releasing lock... [2025-03-03 08:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:18:02] Production.INFO: ==3904== Lock acquired, processing the job... [2025-03-03 03:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:18:02] Production.INFO: ==3904== Releasing lock... [2025-03-03 03:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:18:02] Production.INFO: ==3906== Lock acquired, processing the job... [2025-03-03 08:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:18:03] Production.INFO: ==3906== Releasing lock... [2025-03-03 08:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:18:03] Production.INFO: ==3908== Lock acquired, processing the job... [2025-03-03 03:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:18:03] Production.INFO: ==3918== Lock acquired, processing the job... [2025-03-03 03:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:18:04] Production.INFO: ==3910== Lock acquired, processing the job... [2025-03-03 03:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:18:04] Production.INFO: ==3912== Lock acquired, processing the job... [2025-03-03 03:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:18:04] Production.INFO: ==3914== Lock acquired, processing the job... [2025-03-03 03:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:18:04] Production.INFO: ==3916== Lock acquired, processing the job... [2025-03-03 03:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:18:04] Production.INFO: count ==13 [2025-03-03 03:18:04] Production.INFO: Account Balance Start. [2025-03-03 03:18:04] Production.INFO: CreateAllLog Start [2025-03-03 03:18:04] Production.INFO: 117 [2025-03-03 03:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:18:04] Production.INFO: count ==21 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.INFO: ==3910== Releasing lock... [2025-03-03 03:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595655') start [2025-03-03 03:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595655') end [2025-03-03 03:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:18:04] Production.INFO: 1 [2025-03-03 03:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.INFO: ==3918== Releasing lock... [2025-03-03 03:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:18:04] Production.ERROR: done [2025-03-03 03:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:04] Production.ERROR: done [2025-03-03 03:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:18:05] Production.INFO: Total Charge 0 [2025-03-03 03:18:05] Production.INFO: CreateAllLog End [2025-03-03 03:18:05] Production.INFO: Account Balance End. [2025-03-03 03:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:18:05] Production.INFO: ==3914== Releasing lock... [2025-03-03 03:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:18:12] Production.ERROR: CronJobId end10 [2025-03-03 03:18:12] Production.INFO: ==3912== Releasing lock... [2025-03-03 03:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:18:15] Production.INFO: call_cost start [2025-03-03 03:18:15] Production.INFO: call_cost end [2025-03-03 03:18:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:18:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:18:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:18:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:18:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:18:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:18:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:18:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:18:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:18:15] Production.INFO: ==3908== Releasing lock... [2025-03-03 03:18:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:18:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:18:17] Production.INFO: count ==409 [2025-03-03 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595658', 'tblTempUsageDetail_20' ) start [2025-03-03 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595658', 'tblTempUsageDetail_20' ) end [2025-03-03 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595658', 'tblTempVendorCDR_20' ) start [2025-03-03 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595658', 'tblTempVendorCDR_20' ) end [2025-03-03 03:18:17] Production.INFO: ProcessCDR(1,14595658,1,1,2) [2025-03-03 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595658', 'tblTempUsageDetail_20' ) start [2025-03-03 03:18:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595658', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:18:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:18:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:18:25] Production.INFO: ==3916== Releasing lock... [2025-03-03 03:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:18:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:19:01] Production.INFO: ==3976== Lock acquired, processing the job... [2025-03-03 08:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:19:01] Production.INFO: neon service started [2025-03-03 08:19:01] Production.INFO: neon service started [2025-03-03 08:19:01] Production.INFO: ==3976== Releasing lock... [2025-03-03 08:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:19:01] Production.INFO: ==3978== Lock acquired, processing the job... [2025-03-03 03:19:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:19:02] Production.INFO: ==3978== Releasing lock... [2025-03-03 03:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:19:02] Production.INFO: ==3980== Lock acquired, processing the job... [2025-03-03 08:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:19:02] Production.INFO: ==3980== Releasing lock... [2025-03-03 08:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:19:03] Production.INFO: ==3987== Lock acquired, processing the job... [2025-03-03 03:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:19:03] Production.INFO: ==3989== Lock acquired, processing the job... [2025-03-03 03:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:19:03] Production.INFO: ==3983== Lock acquired, processing the job... [2025-03-03 03:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:19:03] Production.INFO: ==3985== Lock acquired, processing the job... [2025-03-03 03:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:19:03] Production.INFO: Account Balance Start. [2025-03-03 03:19:03] Production.INFO: CreateAllLog Start [2025-03-03 03:19:03] Production.INFO: 117 [2025-03-03 03:19:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: ==3991== Lock acquired, processing the job... [2025-03-03 03:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:19:03] Production.INFO: ==3993== Lock acquired, processing the job... [2025-03-03 03:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:19:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:19:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:19:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: count ==13 [2025-03-03 03:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:19:03] Production.INFO: count ==21 [2025-03-03 03:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595662') start [2025-03-03 03:19:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: ==3985== Releasing lock... [2025-03-03 03:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:19:03] Production.ERROR: done [2025-03-03 03:19:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:19:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595662') end [2025-03-03 03:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:19:03] Production.INFO: 1 [2025-03-03 03:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:19:03] Production.INFO: Date 2025-02-16 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.INFO: ==3993== Releasing lock... [2025-03-03 03:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:19:03] Production.INFO: Date 2025-02-17 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.ERROR: done [2025-03-03 03:19:03] Production.INFO: Date 2025-02-18 [2025-03-03 03:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:19:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:19:04] Production.INFO: Total Charge 0 [2025-03-03 03:19:04] Production.INFO: CreateAllLog End [2025-03-03 03:19:04] Production.INFO: Account Balance End. [2025-03-03 03:19:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:19:04] Production.INFO: ==3989== Releasing lock... [2025-03-03 03:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:19:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:19:11] Production.ERROR: CronJobId end10 [2025-03-03 03:19:11] Production.INFO: ==3987== Releasing lock... [2025-03-03 03:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:19:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:19:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:19:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:19:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:19:14] Production.INFO: call_cost start [2025-03-03 03:19:14] Production.INFO: call_cost end [2025-03-03 03:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:19:14] Production.INFO: ==3983== Releasing lock... [2025-03-03 03:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:19:16] Production.INFO: count ==409 [2025-03-03 03:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595663', 'tblTempUsageDetail_20' ) start [2025-03-03 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595663', 'tblTempUsageDetail_20' ) end [2025-03-03 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595663', 'tblTempVendorCDR_20' ) start [2025-03-03 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595663', 'tblTempVendorCDR_20' ) end [2025-03-03 03:19:16] Production.INFO: ProcessCDR(1,14595663,1,1,2) [2025-03-03 03:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595663', 'tblTempUsageDetail_20' ) start [2025-03-03 03:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595663', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:19:24] Production.INFO: ==3991== Releasing lock... [2025-03-03 03:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:20:01] Production.INFO: ==4048== Lock acquired, processing the job... [2025-03-03 08:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:20:01] Production.INFO: neon service started [2025-03-03 08:20:01] Production.INFO: neon service started [2025-03-03 08:20:01] Production.INFO: ==4048== Releasing lock... [2025-03-03 08:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:20:02] Production.INFO: ==4050== Lock acquired, processing the job... [2025-03-03 03:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:20:02] Production.INFO: ==4052== Lock acquired, processing the job... [2025-03-03 08:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:20:02] Production.INFO: ==4052== Releasing lock... [2025-03-03 08:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:20:02] Production.INFO: ==4050== Releasing lock... [2025-03-03 03:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:20:03] Production.INFO: ==4055== Lock acquired, processing the job... [2025-03-03 03:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 03:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 03:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 03:20:03] Production.INFO: ==4055== Releasing lock... [2025-03-03 03:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 03:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:20:03] Production.INFO: ==4057== Lock acquired, processing the job... [2025-03-03 03:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:20:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:20:03] Production.INFO: ==4059== Lock acquired, processing the job... [2025-03-03 03:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:20:03] Production.INFO: ==4061== Lock acquired, processing the job... [2025-03-03 03:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:20:04] Production.INFO: ==4067== Lock acquired, processing the job... [2025-03-03 03:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 03:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:20:04] Production.INFO: ==4063== Lock acquired, processing the job... [2025-03-03 03:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:20:04] Production.INFO: ==4065== Lock acquired, processing the job... [2025-03-03 03:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:20:04] Production.INFO: ==4069== Lock acquired, processing the job... [2025-03-03 03:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:20:04] Production.INFO: Account Balance Start. [2025-03-03 03:20:04] Production.INFO: CreateAllLog Start [2025-03-03 03:20:04] Production.INFO: 117 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: ==4059== Releasing lock... [2025-03-03 03:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: count ==13 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:20:04] Production.INFO: count ==21 [2025-03-03 03:20:04] Production.ERROR: done [2025-03-03 03:20:04] Production.ERROR: done [2025-03-03 03:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595667') start [2025-03-03 03:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595667') end [2025-03-03 03:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:20:04] Production.INFO: 1 [2025-03-03 03:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 03:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595668', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 03:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: ==4069== Releasing lock... [2025-03-03 03:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:20:05] Production.ERROR: done [2025-03-03 03:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:20:05] Production.INFO: Total Charge 0 [2025-03-03 03:20:05] Production.INFO: CreateAllLog End [2025-03-03 03:20:05] Production.INFO: Account Balance End. [2025-03-03 03:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:20:05] Production.INFO: ==4063== Releasing lock... [2025-03-03 03:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595668', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 03:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 03:20:09] Production.INFO: ProcessCDR(1,14595668,1,1,2) [2025-03-03 03:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595668,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595668,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 03:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 03:20:09] Production.INFO: ==4067== Releasing lock... [2025-03-03 03:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 03:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 03:20:15] Production.ERROR: CronJobId end10 [2025-03-03 03:20:15] Production.INFO: ==4061== Releasing lock... [2025-03-03 03:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:20:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:20:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:20:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:20:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:20:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:20:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:20:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:20:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:20:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:20:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:20:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:20:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:20:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:20:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:20:16] Production.INFO: call_cost start [2025-03-03 03:20:16] Production.INFO: call_cost end [2025-03-03 03:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:20:16] Production.INFO: ==4057== Releasing lock... [2025-03-03 03:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:20:17] Production.INFO: count ==409 [2025-03-03 03:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595669', 'tblTempUsageDetail_20' ) start [2025-03-03 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595669', 'tblTempUsageDetail_20' ) end [2025-03-03 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595669', 'tblTempVendorCDR_20' ) start [2025-03-03 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595669', 'tblTempVendorCDR_20' ) end [2025-03-03 03:20:17] Production.INFO: ProcessCDR(1,14595669,1,1,2) [2025-03-03 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595669', 'tblTempUsageDetail_20' ) start [2025-03-03 03:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595669', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:20:25] Production.INFO: ==4065== Releasing lock... [2025-03-03 03:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:21:01] Production.INFO: ==4133== Lock acquired, processing the job... [2025-03-03 08:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:21:01] Production.INFO: neon service started [2025-03-03 08:21:01] Production.INFO: neon service started [2025-03-03 08:21:01] Production.INFO: ==4133== Releasing lock... [2025-03-03 08:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:21:01] Production.INFO: ==4135== Lock acquired, processing the job... [2025-03-03 03:21:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:21:02] Production.INFO: ==4135== Releasing lock... [2025-03-03 03:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:21:02] Production.INFO: ==4137== Lock acquired, processing the job... [2025-03-03 08:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:21:02] Production.INFO: ==4137== Releasing lock... [2025-03-03 08:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:21:03] Production.INFO: ==4142== Lock acquired, processing the job... [2025-03-03 03:21:03] Production.INFO: ==4144== Lock acquired, processing the job... [2025-03-03 03:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:21:03] Production.INFO: ==4140== Lock acquired, processing the job... [2025-03-03 03:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:21:03] Production.INFO: ==4148== Lock acquired, processing the job... [2025-03-03 03:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:21:03] Production.INFO: ==4150== Lock acquired, processing the job... [2025-03-03 03:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:21:03] Production.INFO: ==4146== Lock acquired, processing the job... [2025-03-03 03:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:21:03] Production.INFO: count ==13 [2025-03-03 03:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:21:03] Production.INFO: Account Balance Start. [2025-03-03 03:21:03] Production.INFO: count ==21 [2025-03-03 03:21:03] Production.INFO: CreateAllLog Start [2025-03-03 03:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595672') start [2025-03-03 03:21:03] Production.INFO: 117 [2025-03-03 03:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.INFO: ==4142== Releasing lock... [2025-03-03 03:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595672') end [2025-03-03 03:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:21:03] Production.INFO: 1 [2025-03-03 03:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:21:03] Production.ERROR: done [2025-03-03 03:21:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.INFO: ==4150== Releasing lock... [2025-03-03 03:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:21:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.ERROR: done [2025-03-03 03:21:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:21:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:21:04] Production.INFO: Total Charge 0 [2025-03-03 03:21:04] Production.INFO: CreateAllLog End [2025-03-03 03:21:04] Production.INFO: Account Balance End. [2025-03-03 03:21:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:21:04] Production.INFO: ==4146== Releasing lock... [2025-03-03 03:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:21:11] Production.ERROR: CronJobId end10 [2025-03-03 03:21:11] Production.INFO: ==4144== Releasing lock... [2025-03-03 03:21:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:21:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:21:14] Production.INFO: call_cost start [2025-03-03 03:21:14] Production.INFO: call_cost end [2025-03-03 03:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:21:14] Production.INFO: ==4140== Releasing lock... [2025-03-03 03:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:21:15] Production.INFO: count ==409 [2025-03-03 03:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595674', 'tblTempUsageDetail_20' ) start [2025-03-03 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595674', 'tblTempUsageDetail_20' ) end [2025-03-03 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595674', 'tblTempVendorCDR_20' ) start [2025-03-03 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595674', 'tblTempVendorCDR_20' ) end [2025-03-03 03:21:16] Production.INFO: ProcessCDR(1,14595674,1,1,2) [2025-03-03 03:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595674', 'tblTempUsageDetail_20' ) start [2025-03-03 03:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595674', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:21:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:21:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:21:23] Production.INFO: ==4148== Releasing lock... [2025-03-03 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:22:01] Production.INFO: ==4205== Lock acquired, processing the job... [2025-03-03 08:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:22:01] Production.INFO: neon service started [2025-03-03 08:22:01] Production.INFO: neon service started [2025-03-03 08:22:01] Production.INFO: ==4205== Releasing lock... [2025-03-03 08:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:22:02] Production.INFO: ==4209== Lock acquired, processing the job... [2025-03-03 08:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:22:02] Production.INFO: ==4209== Releasing lock... [2025-03-03 08:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:22:02] Production.INFO: ==4207== Lock acquired, processing the job... [2025-03-03 03:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:22:02] Production.INFO: ==4207== Releasing lock... [2025-03-03 03:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:22:03] Production.INFO: ==4216== Lock acquired, processing the job... [2025-03-03 03:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:22:03] Production.INFO: ==4220== Lock acquired, processing the job... [2025-03-03 03:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:22:03] Production.INFO: ==4218== Lock acquired, processing the job... [2025-03-03 03:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:22:03] Production.INFO: Account Balance Start. [2025-03-03 03:22:03] Production.INFO: CreateAllLog Start [2025-03-03 03:22:03] Production.INFO: 117 [2025-03-03 03:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:03] Production.INFO: ==4212== Lock acquired, processing the job... [2025-03-03 03:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:22:03] Production.INFO: ==4214== Lock acquired, processing the job... [2025-03-03 03:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:22:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: ==4222== Lock acquired, processing the job... [2025-03-03 03:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.ERROR: done [2025-03-03 03:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: count ==13 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:22:04] Production.INFO: count ==21 [2025-03-03 03:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595676') start [2025-03-03 03:22:04] Production.ERROR: done [2025-03-03 03:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: ==4214== Releasing lock... [2025-03-03 03:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595676') end [2025-03-03 03:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:22:04] Production.INFO: 1 [2025-03-03 03:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:22:04] Production.INFO: ==4222== Releasing lock... [2025-03-03 03:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:22:05] Production.INFO: Total Charge 0 [2025-03-03 03:22:05] Production.INFO: CreateAllLog End [2025-03-03 03:22:05] Production.INFO: Account Balance End. [2025-03-03 03:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:22:05] Production.INFO: ==4218== Releasing lock... [2025-03-03 03:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:22:12] Production.ERROR: CronJobId end10 [2025-03-03 03:22:12] Production.INFO: ==4216== Releasing lock... [2025-03-03 03:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:22:15] Production.INFO: call_cost start [2025-03-03 03:22:15] Production.INFO: call_cost end [2025-03-03 03:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:22:15] Production.INFO: ==4212== Releasing lock... [2025-03-03 03:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:22:16] Production.INFO: count ==409 [2025-03-03 03:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595679', 'tblTempUsageDetail_20' ) start [2025-03-03 03:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595679', 'tblTempUsageDetail_20' ) end [2025-03-03 03:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595679', 'tblTempVendorCDR_20' ) start [2025-03-03 03:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595679', 'tblTempVendorCDR_20' ) end [2025-03-03 03:22:16] Production.INFO: ProcessCDR(1,14595679,1,1,2) [2025-03-03 03:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595679', 'tblTempUsageDetail_20' ) start [2025-03-03 03:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595679', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:22:24] Production.INFO: ==4220== Releasing lock... [2025-03-03 03:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:23:02] Production.INFO: ==4288== Lock acquired, processing the job... [2025-03-03 08:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:23:02] Production.INFO: neon service started [2025-03-03 08:23:02] Production.INFO: neon service started [2025-03-03 08:23:02] Production.INFO: ==4288== Releasing lock... [2025-03-03 08:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:23:02] Production.INFO: ==4292== Lock acquired, processing the job... [2025-03-03 08:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:23:02] Production.INFO: ==4292== Releasing lock... [2025-03-03 08:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:23:02] Production.INFO: ==4290== Lock acquired, processing the job... [2025-03-03 03:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:23:03] Production.INFO: ==4290== Releasing lock... [2025-03-03 03:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:23:03] Production.INFO: ==4295== Lock acquired, processing the job... [2025-03-03 03:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:23:04] Production.INFO: ==4297== Lock acquired, processing the job... [2025-03-03 03:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:23:04] Production.INFO: ==4303== Lock acquired, processing the job... [2025-03-03 03:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:23:04] Production.INFO: ==4299== Lock acquired, processing the job... [2025-03-03 03:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:23:04] Production.INFO: ==4301== Lock acquired, processing the job... [2025-03-03 03:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:23:04] Production.INFO: ==4305== Lock acquired, processing the job... [2025-03-03 03:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:23:04] Production.INFO: ==4297== Releasing lock... [2025-03-03 03:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:23:04] Production.INFO: Account Balance Start. [2025-03-03 03:23:04] Production.INFO: CreateAllLog Start [2025-03-03 03:23:04] Production.INFO: 117 [2025-03-03 03:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:23:04] Production.INFO: count ==13 [2025-03-03 03:23:04] Production.ERROR: done [2025-03-03 03:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:23:04] Production.INFO: count ==21 [2025-03-03 03:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595683') start [2025-03-03 03:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:04] Production.ERROR: done [2025-03-03 03:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595683') end [2025-03-03 03:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:23:04] Production.INFO: 1 [2025-03-03 03:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:23:05] Production.INFO: ==4305== Releasing lock... [2025-03-03 03:23:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:23:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:23:05] Production.INFO: Date 2025-02-13 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:23:05] Production.INFO: Total Charge 0 [2025-03-03 03:23:05] Production.INFO: CreateAllLog End [2025-03-03 03:23:05] Production.INFO: Account Balance End. [2025-03-03 03:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:23:05] Production.INFO: ==4301== Releasing lock... [2025-03-03 03:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:23:13] Production.ERROR: CronJobId end10 [2025-03-03 03:23:13] Production.INFO: ==4299== Releasing lock... [2025-03-03 03:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:23:14] Production.INFO: call_cost start [2025-03-03 03:23:14] Production.INFO: call_cost end [2025-03-03 03:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:23:14] Production.INFO: ==4295== Releasing lock... [2025-03-03 03:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:23:16] Production.INFO: count ==409 [2025-03-03 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595684', 'tblTempUsageDetail_20' ) start [2025-03-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595684', 'tblTempUsageDetail_20' ) end [2025-03-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595684', 'tblTempVendorCDR_20' ) start [2025-03-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595684', 'tblTempVendorCDR_20' ) end [2025-03-03 03:23:17] Production.INFO: ProcessCDR(1,14595684,1,1,2) [2025-03-03 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595684', 'tblTempUsageDetail_20' ) start [2025-03-03 03:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595684', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:23:24] Production.INFO: ==4303== Releasing lock... [2025-03-03 03:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:23:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:24:01] Production.INFO: ==4377== Lock acquired, processing the job... [2025-03-03 08:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:24:01] Production.INFO: neon service started [2025-03-03 08:24:01] Production.INFO: neon service started [2025-03-03 08:24:01] Production.INFO: ==4377== Releasing lock... [2025-03-03 08:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:24:02] Production.INFO: ==4379== Lock acquired, processing the job... [2025-03-03 03:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:24:02] Production.INFO: ==4381== Lock acquired, processing the job... [2025-03-03 08:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:24:02] Production.INFO: ==4381== Releasing lock... [2025-03-03 08:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:24:02] Production.INFO: ==4379== Releasing lock... [2025-03-03 03:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:24:03] Production.INFO: ==4388== Lock acquired, processing the job... [2025-03-03 03:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:24:03] Production.INFO: ==4394== Lock acquired, processing the job... [2025-03-03 03:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:24:03] Production.INFO: ==4384== Lock acquired, processing the job... [2025-03-03 03:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:24:04] Production.INFO: ==4386== Lock acquired, processing the job... [2025-03-03 03:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:24:04] Production.INFO: count ==13 [2025-03-03 03:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:24:04] Production.INFO: count ==21 [2025-03-03 03:24:04] Production.INFO: ==4390== Lock acquired, processing the job... [2025-03-03 03:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595685') start [2025-03-03 03:24:04] Production.INFO: ==4392== Lock acquired, processing the job... [2025-03-03 03:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:24:04] Production.INFO: Account Balance Start. [2025-03-03 03:24:04] Production.INFO: CreateAllLog Start [2025-03-03 03:24:04] Production.INFO: 117 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595685') end [2025-03-03 03:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:24:04] Production.INFO: 1 [2025-03-03 03:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: ==4394== Releasing lock... [2025-03-03 03:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: ==4386== Releasing lock... [2025-03-03 03:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.ERROR: done [2025-03-03 03:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:04] Production.ERROR: done [2025-03-03 03:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:24:05] Production.INFO: Total Charge 0 [2025-03-03 03:24:05] Production.INFO: CreateAllLog End [2025-03-03 03:24:05] Production.INFO: Account Balance End. [2025-03-03 03:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:24:05] Production.INFO: ==4390== Releasing lock... [2025-03-03 03:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:24:12] Production.ERROR: CronJobId end10 [2025-03-03 03:24:12] Production.INFO: ==4388== Releasing lock... [2025-03-03 03:24:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:24:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:24:15] Production.INFO: call_cost start [2025-03-03 03:24:15] Production.INFO: call_cost end [2025-03-03 03:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:24:15] Production.INFO: ==4384== Releasing lock... [2025-03-03 03:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:24:17] Production.INFO: count ==409 [2025-03-03 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595689', 'tblTempUsageDetail_20' ) start [2025-03-03 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595689', 'tblTempUsageDetail_20' ) end [2025-03-03 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595689', 'tblTempVendorCDR_20' ) start [2025-03-03 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595689', 'tblTempVendorCDR_20' ) end [2025-03-03 03:24:17] Production.INFO: ProcessCDR(1,14595689,1,1,2) [2025-03-03 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595689', 'tblTempUsageDetail_20' ) start [2025-03-03 03:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595689', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:24:24] Production.INFO: ==4392== Releasing lock... [2025-03-03 03:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:25:02] Production.INFO: ==4460== Lock acquired, processing the job... [2025-03-03 08:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:25:02] Production.INFO: neon service started [2025-03-03 08:25:02] Production.INFO: neon service started [2025-03-03 08:25:02] Production.INFO: ==4460== Releasing lock... [2025-03-03 08:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:25:02] Production.INFO: ==4464== Lock acquired, processing the job... [2025-03-03 08:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:25:02] Production.INFO: ==4464== Releasing lock... [2025-03-03 08:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:25:02] Production.INFO: ==4462== Lock acquired, processing the job... [2025-03-03 03:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:25:03] Production.INFO: ==4462== Releasing lock... [2025-03-03 03:25:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:25:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:25:04] Production.INFO: ==4466== Lock acquired, processing the job... [2025-03-03 03:25:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:25:04] Production.INFO: ==4468== Lock acquired, processing the job... [2025-03-03 03:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:25:04] Production.INFO: ==4477== Lock acquired, processing the job... [2025-03-03 03:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:25:04] Production.INFO: ==4470== Lock acquired, processing the job... [2025-03-03 03:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:25:04] Production.INFO: ==4475== Lock acquired, processing the job... [2025-03-03 03:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:25:04] Production.INFO: count ==13 [2025-03-03 03:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:25:04] Production.INFO: count ==21 [2025-03-03 03:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595692') start [2025-03-03 03:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:25:04] Production.INFO: ==4473== Lock acquired, processing the job... [2025-03-03 03:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595692') end [2025-03-03 03:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:25:04] Production.INFO: 1 [2025-03-03 03:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:25:04] Production.INFO: ==4477== Releasing lock... [2025-03-03 03:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:25:04] Production.INFO: ==4468== Releasing lock... [2025-03-03 03:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:25:04] Production.INFO: Account Balance Start. [2025-03-03 03:25:04] Production.INFO: CreateAllLog Start [2025-03-03 03:25:04] Production.INFO: 117 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.ERROR: done [2025-03-03 03:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.ERROR: done [2025-03-03 03:25:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:25:05] Production.INFO: Total Charge 0 [2025-03-03 03:25:05] Production.INFO: CreateAllLog End [2025-03-03 03:25:05] Production.INFO: Account Balance End. [2025-03-03 03:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:25:05] Production.INFO: ==4473== Releasing lock... [2025-03-03 03:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:25:11] Production.ERROR: CronJobId end10 [2025-03-03 03:25:11] Production.INFO: ==4470== Releasing lock... [2025-03-03 03:25:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:25:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:25:14] Production.INFO: call_cost start [2025-03-03 03:25:14] Production.INFO: call_cost end [2025-03-03 03:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:25:14] Production.INFO: ==4466== Releasing lock... [2025-03-03 03:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:25:16] Production.INFO: count ==409 [2025-03-03 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595694', 'tblTempUsageDetail_20' ) start [2025-03-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595694', 'tblTempUsageDetail_20' ) end [2025-03-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595694', 'tblTempVendorCDR_20' ) start [2025-03-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595694', 'tblTempVendorCDR_20' ) end [2025-03-03 03:25:17] Production.INFO: ProcessCDR(1,14595694,1,1,2) [2025-03-03 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595694', 'tblTempUsageDetail_20' ) start [2025-03-03 03:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595694', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:25:24] Production.INFO: ==4475== Releasing lock... [2025-03-03 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:26:01] Production.INFO: ==4550== Lock acquired, processing the job... [2025-03-03 08:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:26:01] Production.INFO: neon service started [2025-03-03 08:26:01] Production.INFO: neon service started [2025-03-03 08:26:01] Production.INFO: ==4550== Releasing lock... [2025-03-03 08:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:26:02] Production.INFO: ==4554== Lock acquired, processing the job... [2025-03-03 08:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:26:02] Production.INFO: ==4554== Releasing lock... [2025-03-03 08:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:26:02] Production.INFO: ==4552== Lock acquired, processing the job... [2025-03-03 03:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:26:02] Production.INFO: ==4552== Releasing lock... [2025-03-03 03:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:26:03] Production.INFO: ==4563== Lock acquired, processing the job... [2025-03-03 03:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:26:03] Production.INFO: ==4567== Lock acquired, processing the job... [2025-03-03 03:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:26:03] Production.INFO: Account Balance Start. [2025-03-03 03:26:03] Production.INFO: CreateAllLog Start [2025-03-03 03:26:03] Production.INFO: 117 [2025-03-03 03:26:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:26:03] Production.INFO: count ==13 [2025-03-03 03:26:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:26:03] Production.INFO: count ==21 [2025-03-03 03:26:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595696') start [2025-03-03 03:26:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.INFO: ==4559== Lock acquired, processing the job... [2025-03-03 03:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:26:03] Production.INFO: ==4557== Lock acquired, processing the job... [2025-03-03 03:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:26:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.INFO: ==4561== Lock acquired, processing the job... [2025-03-03 03:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595696') end [2025-03-03 03:26:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:26:03] Production.INFO: 1 [2025-03-03 03:26:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:26:03] Production.INFO: ==4565== Lock acquired, processing the job... [2025-03-03 03:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:26:03] Production.INFO: ==4567== Releasing lock... [2025-03-03 03:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:26:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:26:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:26:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: ==4559== Releasing lock... [2025-03-03 03:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:26:04] Production.ERROR: done [2025-03-03 03:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.ERROR: done [2025-03-03 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:26:04] Production.INFO: Total Charge 0 [2025-03-03 03:26:05] Production.INFO: CreateAllLog End [2025-03-03 03:26:05] Production.INFO: Account Balance End. [2025-03-03 03:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:26:05] Production.INFO: ==4563== Releasing lock... [2025-03-03 03:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:26:11] Production.ERROR: CronJobId end10 [2025-03-03 03:26:11] Production.INFO: ==4561== Releasing lock... [2025-03-03 03:26:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:26:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:26:14] Production.INFO: call_cost start [2025-03-03 03:26:14] Production.INFO: call_cost end [2025-03-03 03:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:26:14] Production.INFO: ==4557== Releasing lock... [2025-03-03 03:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:26:16] Production.INFO: count ==409 [2025-03-03 03:26:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595699', 'tblTempUsageDetail_20' ) start [2025-03-03 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595699', 'tblTempUsageDetail_20' ) end [2025-03-03 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595699', 'tblTempVendorCDR_20' ) start [2025-03-03 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595699', 'tblTempVendorCDR_20' ) end [2025-03-03 03:26:16] Production.INFO: ProcessCDR(1,14595699,1,1,2) [2025-03-03 03:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595699', 'tblTempUsageDetail_20' ) start [2025-03-03 03:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595699', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:26:25] Production.INFO: ==4565== Releasing lock... [2025-03-03 03:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:26:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:27:02] Production.INFO: ==4683== Lock acquired, processing the job... [2025-03-03 08:27:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:27:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:27:02] Production.INFO: neon service started [2025-03-03 08:27:02] Production.INFO: neon service started [2025-03-03 08:27:02] Production.INFO: ==4683== Releasing lock... [2025-03-03 08:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:27:02] Production.INFO: ==4685== Lock acquired, processing the job... [2025-03-03 03:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:27:02] Production.INFO: ==4687== Lock acquired, processing the job... [2025-03-03 08:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:27:02] Production.INFO: ==4687== Releasing lock... [2025-03-03 08:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:27:02] Production.INFO: ==4685== Releasing lock... [2025-03-03 03:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:27:03] Production.INFO: ==4690== Lock acquired, processing the job... [2025-03-03 03:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:27:03] Production.INFO: ==4692== Lock acquired, processing the job... [2025-03-03 03:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:27:03] Production.INFO: ==4696== Lock acquired, processing the job... [2025-03-03 03:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:27:03] Production.INFO: ==4694== Lock acquired, processing the job... [2025-03-03 03:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:27:03] Production.INFO: ==4698== Lock acquired, processing the job... [2025-03-03 03:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:27:04] Production.INFO: ==4700== Lock acquired, processing the job... [2025-03-03 03:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:27:04] Production.INFO: Account Balance Start. [2025-03-03 03:27:04] Production.INFO: CreateAllLog Start [2025-03-03 03:27:04] Production.INFO: 117 [2025-03-03 03:27:04] Production.INFO: ==4692== Releasing lock... [2025-03-03 03:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:27:04] Production.INFO: count ==13 [2025-03-03 03:27:04] Production.ERROR: done [2025-03-03 03:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:27:04] Production.INFO: count ==21 [2025-03-03 03:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595703') start [2025-03-03 03:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.ERROR: done [2025-03-03 03:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595703') end [2025-03-03 03:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:27:04] Production.INFO: 1 [2025-03-03 03:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:27:04] Production.INFO: ==4700== Releasing lock... [2025-03-03 03:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:27:05] Production.INFO: Total Charge 0 [2025-03-03 03:27:05] Production.INFO: CreateAllLog End [2025-03-03 03:27:05] Production.INFO: Account Balance End. [2025-03-03 03:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:27:05] Production.INFO: ==4696== Releasing lock... [2025-03-03 03:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:27:11] Production.ERROR: CronJobId end10 [2025-03-03 03:27:11] Production.INFO: ==4694== Releasing lock... [2025-03-03 03:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:27:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:27:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:27:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:27:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:27:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:27:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:27:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:27:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:27:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:27:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:27:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:27:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:27:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:27:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:27:14] Production.INFO: call_cost start [2025-03-03 03:27:14] Production.INFO: call_cost end [2025-03-03 03:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:27:14] Production.INFO: ==4690== Releasing lock... [2025-03-03 03:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:27:16] Production.INFO: count ==409 [2025-03-03 03:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595704', 'tblTempUsageDetail_20' ) start [2025-03-03 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595704', 'tblTempUsageDetail_20' ) end [2025-03-03 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595704', 'tblTempVendorCDR_20' ) start [2025-03-03 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595704', 'tblTempVendorCDR_20' ) end [2025-03-03 03:27:16] Production.INFO: ProcessCDR(1,14595704,1,1,2) [2025-03-03 03:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595704', 'tblTempUsageDetail_20' ) start [2025-03-03 03:27:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595704', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:27:24] Production.INFO: ==4698== Releasing lock... [2025-03-03 03:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:28:01] Production.INFO: ==4764== Lock acquired, processing the job... [2025-03-03 08:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:28:01] Production.INFO: neon service started [2025-03-03 08:28:01] Production.INFO: neon service started [2025-03-03 08:28:01] Production.INFO: ==4764== Releasing lock... [2025-03-03 08:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:28:02] Production.INFO: ==4766== Lock acquired, processing the job... [2025-03-03 03:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:28:02] Production.INFO: ==4766== Releasing lock... [2025-03-03 03:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:28:02] Production.INFO: ==4768== Lock acquired, processing the job... [2025-03-03 08:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:28:02] Production.INFO: ==4768== Releasing lock... [2025-03-03 08:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:28:03] Production.INFO: ==4772== Lock acquired, processing the job... [2025-03-03 03:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:28:03] Production.INFO: ==4779== Lock acquired, processing the job... [2025-03-03 03:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:28:03] Production.INFO: ==4770== Lock acquired, processing the job... [2025-03-03 03:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:28:03] Production.INFO: ==4775== Lock acquired, processing the job... [2025-03-03 03:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:28:03] Production.INFO: ==4772== Releasing lock... [2025-03-03 03:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:28:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:28:03] Production.INFO: ==4777== Lock acquired, processing the job... [2025-03-03 03:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:28:03] Production.INFO: ==4781== Lock acquired, processing the job... [2025-03-03 03:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:28:03] Production.ERROR: done [2025-03-03 03:28:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:28:03] Production.INFO: Account Balance Start. [2025-03-03 03:28:03] Production.INFO: CreateAllLog Start [2025-03-03 03:28:03] Production.INFO: 117 [2025-03-03 03:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:28:03] Production.INFO: count ==13 [2025-03-03 03:28:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:28:03] Production.INFO: count ==21 [2025-03-03 03:28:04] Production.ERROR: done [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595707') start [2025-03-03 03:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595707') end [2025-03-03 03:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:28:04] Production.INFO: 1 [2025-03-03 03:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: ==4781== Releasing lock... [2025-03-03 03:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:28:04] Production.INFO: Total Charge 0 [2025-03-03 03:28:04] Production.INFO: CreateAllLog End [2025-03-03 03:28:04] Production.INFO: Account Balance End. [2025-03-03 03:28:04] Production.ERROR: CronJobId end 12 [2025-03-03 03:28:04] Production.INFO: ==4777== Releasing lock... [2025-03-03 03:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:28:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:28:10] Production.ERROR: CronJobId end10 [2025-03-03 03:28:10] Production.INFO: ==4775== Releasing lock... [2025-03-03 03:28:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:28:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:28:13] Production.INFO: call_cost start [2025-03-03 03:28:13] Production.INFO: call_cost end [2025-03-03 03:28:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:28:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:28:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:28:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:28:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:28:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:28:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:28:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:28:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:28:13] Production.INFO: ==4770== Releasing lock... [2025-03-03 03:28:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:28:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:28:16] Production.INFO: count ==409 [2025-03-03 03:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595709', 'tblTempUsageDetail_20' ) start [2025-03-03 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595709', 'tblTempUsageDetail_20' ) end [2025-03-03 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595709', 'tblTempVendorCDR_20' ) start [2025-03-03 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595709', 'tblTempVendorCDR_20' ) end [2025-03-03 03:28:16] Production.INFO: ProcessCDR(1,14595709,1,1,2) [2025-03-03 03:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595709', 'tblTempUsageDetail_20' ) start [2025-03-03 03:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595709', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:28:24] Production.INFO: ==4779== Releasing lock... [2025-03-03 03:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:29:02] Production.INFO: ==4841== Lock acquired, processing the job... [2025-03-03 08:29:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:29:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:29:02] Production.INFO: neon service started [2025-03-03 08:29:02] Production.INFO: neon service started [2025-03-03 08:29:02] Production.INFO: ==4841== Releasing lock... [2025-03-03 08:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:29:02] Production.INFO: ==4845== Lock acquired, processing the job... [2025-03-03 08:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:29:02] Production.INFO: ==4845== Releasing lock... [2025-03-03 08:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:29:02] Production.INFO: ==4843== Lock acquired, processing the job... [2025-03-03 03:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:29:02] Production.INFO: ==4843== Releasing lock... [2025-03-03 03:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:29:03] Production.INFO: ==4857== Lock acquired, processing the job... [2025-03-03 03:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:29:03] Production.INFO: ==4854== Lock acquired, processing the job... [2025-03-03 03:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:29:03] Production.INFO: ==4847== Lock acquired, processing the job... [2025-03-03 03:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:29:03] Production.INFO: Account Balance Start. [2025-03-03 03:29:03] Production.INFO: CreateAllLog Start [2025-03-03 03:29:03] Production.INFO: 117 [2025-03-03 03:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: ==4849== Lock acquired, processing the job... [2025-03-03 03:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:29:04] Production.INFO: ==4852== Lock acquired, processing the job... [2025-03-03 03:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: ==4859== Lock acquired, processing the job... [2025-03-03 03:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:29:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:29:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:29:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.ERROR: done [2025-03-03 03:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:29:04] Production.INFO: count ==13 [2025-03-03 03:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:29:04] Production.INFO: count ==21 [2025-03-03 03:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595713') start [2025-03-03 03:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: ==4849== Releasing lock... [2025-03-03 03:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:29:04] Production.ERROR: done [2025-03-03 03:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595713') end [2025-03-03 03:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:29:04] Production.INFO: 1 [2025-03-03 03:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: ==4859== Releasing lock... [2025-03-03 03:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:29:04] Production.INFO: Total Charge 0 [2025-03-03 03:29:05] Production.INFO: CreateAllLog End [2025-03-03 03:29:05] Production.INFO: Account Balance End. [2025-03-03 03:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:29:05] Production.INFO: ==4854== Releasing lock... [2025-03-03 03:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:29:11] Production.ERROR: CronJobId end10 [2025-03-03 03:29:11] Production.INFO: ==4852== Releasing lock... [2025-03-03 03:29:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:29:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:29:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:29:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:29:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:29:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:29:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:29:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:29:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:29:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:29:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:29:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:29:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:29:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:29:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:29:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:29:13] Production.INFO: call_cost start [2025-03-03 03:29:13] Production.INFO: call_cost end [2025-03-03 03:29:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:29:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:29:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:29:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:29:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:29:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:29:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:29:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:29:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:29:13] Production.INFO: ==4847== Releasing lock... [2025-03-03 03:29:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:29:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:29:16] Production.INFO: count ==409 [2025-03-03 03:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595714', 'tblTempUsageDetail_20' ) start [2025-03-03 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595714', 'tblTempUsageDetail_20' ) end [2025-03-03 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595714', 'tblTempVendorCDR_20' ) start [2025-03-03 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595714', 'tblTempVendorCDR_20' ) end [2025-03-03 03:29:16] Production.INFO: ProcessCDR(1,14595714,1,1,2) [2025-03-03 03:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595714', 'tblTempUsageDetail_20' ) start [2025-03-03 03:29:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595714', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:29:24] Production.INFO: ==4857== Releasing lock... [2025-03-03 03:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:30:01] Production.INFO: ==4923== Lock acquired, processing the job... [2025-03-03 08:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:30:01] Production.INFO: neon service started [2025-03-03 08:30:01] Production.INFO: neon service started [2025-03-03 08:30:01] Production.INFO: ==4923== Releasing lock... [2025-03-03 08:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:30:01] Production.INFO: ==4925== Lock acquired, processing the job... [2025-03-03 03:30:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:30:02] Production.INFO: ==4925== Releasing lock... [2025-03-03 03:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:30:02] Production.INFO: ==4927== Lock acquired, processing the job... [2025-03-03 08:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:30:02] Production.INFO: ==4927== Releasing lock... [2025-03-03 08:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:30:03] Production.INFO: ==4929== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 03:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 03:30:03] Production.INFO: ==4933== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:30:03] Production.INFO: ==4931== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 03:30:03] Production.INFO: ==4929== Releasing lock... [2025-03-03 03:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 03:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:30:03] Production.INFO: ==4940== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:30:03] Production.INFO: ==4935== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:30:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:30:03] Production.INFO: ==4942== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 03:30:03] Production.INFO: ==4937== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:30:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:30:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:30:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:30:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:30:03] Production.INFO: ==4944== Lock acquired, processing the job... [2025-03-03 03:30:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:30:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:30:03] Production.INFO: ==4933== Releasing lock... [2025-03-03 03:30:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:30:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:30:03] Production.INFO: Account Balance Start. [2025-03-03 03:30:03] Production.INFO: CreateAllLog Start [2025-03-03 03:30:03] Production.INFO: 117 [2025-03-03 03:30:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:30:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:03] Production.INFO: count ==13 [2025-03-03 03:30:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:30:03] Production.INFO: count ==21 [2025-03-03 03:30:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595717') start [2025-03-03 03:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.ERROR: done [2025-03-03 03:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595717') end [2025-03-03 03:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:30:04] Production.INFO: 1 [2025-03-03 03:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: ==4944== Releasing lock... [2025-03-03 03:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:30:04] Production.ERROR: done [2025-03-03 03:30:04] Production.ERROR: done [2025-03-03 03:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 03:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595719', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 03:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:30:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:30:04] Production.INFO: Total Charge 0 [2025-03-03 03:30:04] Production.INFO: CreateAllLog End [2025-03-03 03:30:05] Production.INFO: Account Balance End. [2025-03-03 03:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:30:05] Production.INFO: ==4937== Releasing lock... [2025-03-03 03:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595719', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 03:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 03:30:09] Production.INFO: ProcessCDR(1,14595719,1,1,2) [2025-03-03 03:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595719,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595719,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 03:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 03:30:09] Production.INFO: ==4942== Releasing lock... [2025-03-03 03:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 03:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 03:30:12] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,7))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 03:30:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:30:12] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:30:12] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:30:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:30:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:30:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:30:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:30:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:30:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:30:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:30:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:30:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:30:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:30:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:30:12] Production.INFO: call_cost start [2025-03-03 03:30:12] Production.INFO: call_cost end [2025-03-03 03:30:12] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:30:12] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:30:12] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:30:12] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:30:12] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:30:12] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:30:12] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:30:12] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:30:12] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:30:12] Production.INFO: ==4931== Releasing lock... [2025-03-03 03:30:12] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:30:12] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:30:13] Production.ERROR: CronJobId end10 [2025-03-03 03:30:13] Production.INFO: ==4935== Releasing lock... [2025-03-03 03:30:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:30:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:30:16] Production.INFO: count ==409 [2025-03-03 03:30:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:30:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595720', 'tblTempUsageDetail_20' ) start [2025-03-03 03:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595720', 'tblTempUsageDetail_20' ) end [2025-03-03 03:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595720', 'tblTempVendorCDR_20' ) start [2025-03-03 03:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595720', 'tblTempVendorCDR_20' ) end [2025-03-03 03:30:16] Production.INFO: ProcessCDR(1,14595720,1,1,2) [2025-03-03 03:30:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595720', 'tblTempUsageDetail_20' ) start [2025-03-03 03:30:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595720', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:30:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:30:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:30:24] Production.INFO: ==4940== Releasing lock... [2025-03-03 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:30:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:31:01] Production.INFO: ==5020== Lock acquired, processing the job... [2025-03-03 08:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:31:02] Production.INFO: neon service started [2025-03-03 08:31:02] Production.INFO: neon service started [2025-03-03 08:31:02] Production.INFO: ==5020== Releasing lock... [2025-03-03 08:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:31:02] Production.INFO: ==5025== Lock acquired, processing the job... [2025-03-03 03:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:31:02] Production.INFO: ==5027== Lock acquired, processing the job... [2025-03-03 08:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:31:02] Production.INFO: ==5027== Releasing lock... [2025-03-03 08:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:31:03] Production.INFO: ==5025== Releasing lock... [2025-03-03 03:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:31:03] Production.INFO: ==5031== Lock acquired, processing the job... [2025-03-03 03:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:31:04] Production.INFO: ==5035== Lock acquired, processing the job... [2025-03-03 03:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:31:04] Production.INFO: ==5039== Lock acquired, processing the job... [2025-03-03 03:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:31:04] Production.INFO: Account Balance Start. [2025-03-03 03:31:04] Production.INFO: CreateAllLog Start [2025-03-03 03:31:04] Production.INFO: 117 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: ==5029== Lock acquired, processing the job... [2025-03-03 03:31:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:31:04] Production.INFO: count ==13 [2025-03-03 03:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:31:04] Production.INFO: count ==21 [2025-03-03 03:31:04] Production.INFO: ==5033== Lock acquired, processing the job... [2025-03-03 03:31:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595723') start [2025-03-03 03:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595723') end [2025-03-03 03:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:31:04] Production.INFO: 1 [2025-03-03 03:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:31:04] Production.INFO: ==5039== Releasing lock... [2025-03-03 03:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: ==5037== Lock acquired, processing the job... [2025-03-03 03:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:31:04] Production.INFO: ==5031== Releasing lock... [2025-03-03 03:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:31:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:31:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:31:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.ERROR: done [2025-03-03 03:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:31:05] Production.ERROR: done [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:31:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:31:05] Production.INFO: Total Charge 0 [2025-03-03 03:31:05] Production.INFO: CreateAllLog End [2025-03-03 03:31:05] Production.INFO: Account Balance End. [2025-03-03 03:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:31:05] Production.INFO: ==5035== Releasing lock... [2025-03-03 03:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:31:12] Production.ERROR: CronJobId end10 [2025-03-03 03:31:12] Production.INFO: ==5033== Releasing lock... [2025-03-03 03:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:31:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:31:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:31:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:31:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:31:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:31:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:31:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:31:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:31:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:31:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:31:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:31:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:31:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:31:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:31:15] Production.INFO: call_cost start [2025-03-03 03:31:16] Production.INFO: call_cost end [2025-03-03 03:31:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:31:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:31:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:31:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:31:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:31:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:31:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:31:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:31:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:31:16] Production.INFO: ==5029== Releasing lock... [2025-03-03 03:31:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:31:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:31:17] Production.INFO: count ==409 [2025-03-03 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595725', 'tblTempUsageDetail_20' ) start [2025-03-03 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595725', 'tblTempUsageDetail_20' ) end [2025-03-03 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595725', 'tblTempVendorCDR_20' ) start [2025-03-03 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595725', 'tblTempVendorCDR_20' ) end [2025-03-03 03:31:17] Production.INFO: ProcessCDR(1,14595725,1,1,2) [2025-03-03 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595725', 'tblTempUsageDetail_20' ) start [2025-03-03 03:31:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595725', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:31:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:31:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:31:25] Production.INFO: ==5037== Releasing lock... [2025-03-03 03:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:31:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:32:01] Production.INFO: ==5100== Lock acquired, processing the job... [2025-03-03 08:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:32:01] Production.INFO: neon service started [2025-03-03 08:32:01] Production.INFO: neon service started [2025-03-03 08:32:01] Production.INFO: ==5100== Releasing lock... [2025-03-03 08:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:32:01] Production.INFO: ==5104== Lock acquired, processing the job... [2025-03-03 08:32:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:32:01] Production.INFO: ==5104== Releasing lock... [2025-03-03 08:32:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:32:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:32:02] Production.INFO: ==5102== Lock acquired, processing the job... [2025-03-03 03:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:32:02] Production.INFO: ==5102== Releasing lock... [2025-03-03 03:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:32:03] Production.INFO: ==5111== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:32:03] Production.INFO: ==5117== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:32:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:32:03] Production.INFO: count ==13 [2025-03-03 03:32:03] Production.INFO: ==5106== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:32:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:32:03] Production.INFO: count ==21 [2025-03-03 03:32:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595726') start [2025-03-03 03:32:03] Production.INFO: ==5109== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:32:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595726') end [2025-03-03 03:32:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:32:03] Production.INFO: 1 [2025-03-03 03:32:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:32:03] Production.INFO: ==5113== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:32:03] Production.INFO: ==5115== Lock acquired, processing the job... [2025-03-03 03:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:32:03] Production.INFO: ==5117== Releasing lock... [2025-03-03 03:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:32:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:32:03] Production.INFO: Account Balance Start. [2025-03-03 03:32:03] Production.INFO: CreateAllLog Start [2025-03-03 03:32:03] Production.INFO: 117 [2025-03-03 03:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:32:04] Production.INFO: ==5109== Releasing lock... [2025-03-03 03:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.ERROR: done [2025-03-03 03:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.ERROR: done [2025-03-03 03:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:32:04] Production.INFO: Total Charge 0 [2025-03-03 03:32:05] Production.INFO: CreateAllLog End [2025-03-03 03:32:05] Production.INFO: Account Balance End. [2025-03-03 03:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:32:05] Production.INFO: ==5113== Releasing lock... [2025-03-03 03:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:32:11] Production.ERROR: CronJobId end10 [2025-03-03 03:32:11] Production.INFO: ==5111== Releasing lock... [2025-03-03 03:32:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:32:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:32:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:32:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:32:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:32:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:32:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:32:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:32:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:32:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:32:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:32:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:32:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:32:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:32:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:32:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:32:14] Production.INFO: call_cost start [2025-03-03 03:32:14] Production.INFO: call_cost end [2025-03-03 03:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:32:14] Production.INFO: ==5106== Releasing lock... [2025-03-03 03:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:32:16] Production.INFO: count ==409 [2025-03-03 03:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595730', 'tblTempUsageDetail_20' ) start [2025-03-03 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595730', 'tblTempUsageDetail_20' ) end [2025-03-03 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595730', 'tblTempVendorCDR_20' ) start [2025-03-03 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595730', 'tblTempVendorCDR_20' ) end [2025-03-03 03:32:16] Production.INFO: ProcessCDR(1,14595730,1,1,2) [2025-03-03 03:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595730', 'tblTempUsageDetail_20' ) start [2025-03-03 03:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595730', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:32:24] Production.INFO: ==5115== Releasing lock... [2025-03-03 03:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:33:01] Production.INFO: ==5178== Lock acquired, processing the job... [2025-03-03 08:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:33:01] Production.INFO: neon service started [2025-03-03 08:33:02] Production.INFO: neon service started [2025-03-03 08:33:02] Production.INFO: ==5178== Releasing lock... [2025-03-03 08:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:33:02] Production.INFO: ==5180== Lock acquired, processing the job... [2025-03-03 03:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:33:02] Production.INFO: ==5180== Releasing lock... [2025-03-03 03:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:33:02] Production.INFO: ==5182== Lock acquired, processing the job... [2025-03-03 08:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:33:02] Production.INFO: ==5182== Releasing lock... [2025-03-03 08:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:33:03] Production.INFO: ==5189== Lock acquired, processing the job... [2025-03-03 03:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:33:03] Production.INFO: ==5195== Lock acquired, processing the job... [2025-03-03 03:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:33:03] Production.INFO: ==5185== Lock acquired, processing the job... [2025-03-03 03:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:33:03] Production.INFO: ==5187== Lock acquired, processing the job... [2025-03-03 03:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:33:04] Production.INFO: count ==13 [2025-03-03 03:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:33:04] Production.INFO: ==5191== Lock acquired, processing the job... [2025-03-03 03:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:33:04] Production.INFO: count ==21 [2025-03-03 03:33:04] Production.INFO: ==5193== Lock acquired, processing the job... [2025-03-03 03:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595731') start [2025-03-03 03:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595731') end [2025-03-03 03:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:33:04] Production.INFO: 1 [2025-03-03 03:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:33:04] Production.INFO: Account Balance Start. [2025-03-03 03:33:04] Production.INFO: CreateAllLog Start [2025-03-03 03:33:04] Production.INFO: 117 [2025-03-03 03:33:04] Production.INFO: ==5195== Releasing lock... [2025-03-03 03:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: ==5187== Releasing lock... [2025-03-03 03:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:33:04] Production.ERROR: done [2025-03-03 03:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.ERROR: done [2025-03-03 03:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:33:05] Production.INFO: Total Charge 0 [2025-03-03 03:33:05] Production.INFO: CreateAllLog End [2025-03-03 03:33:05] Production.INFO: Account Balance End. [2025-03-03 03:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:33:05] Production.INFO: ==5191== Releasing lock... [2025-03-03 03:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:33:11] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,8))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 03:33:11] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:33:11] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:33:11] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:33:11] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:33:11] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:33:11] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:33:11] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:33:11] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:33:11] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:33:11] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:33:11] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:33:11] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:33:11] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:33:11] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:33:11] Production.INFO: call_cost start [2025-03-03 03:33:11] Production.INFO: call_cost end [2025-03-03 03:33:11] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:33:11] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:33:11] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:33:11] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:33:11] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:33:11] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:33:11] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:33:11] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:33:11] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:33:11] Production.INFO: ==5185== Releasing lock... [2025-03-03 03:33:11] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:33:11] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:33:12] Production.ERROR: CronJobId end10 [2025-03-03 03:33:12] Production.INFO: ==5189== Releasing lock... [2025-03-03 03:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:33:16] Production.INFO: count ==409 [2025-03-03 03:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595735', 'tblTempUsageDetail_20' ) start [2025-03-03 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595735', 'tblTempUsageDetail_20' ) end [2025-03-03 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595735', 'tblTempVendorCDR_20' ) start [2025-03-03 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595735', 'tblTempVendorCDR_20' ) end [2025-03-03 03:33:16] Production.INFO: ProcessCDR(1,14595735,1,1,2) [2025-03-03 03:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595735', 'tblTempUsageDetail_20' ) start [2025-03-03 03:33:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595735', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:33:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:33:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:33:25] Production.INFO: ==5193== Releasing lock... [2025-03-03 03:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:33:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:34:01] Production.INFO: ==5256== Lock acquired, processing the job... [2025-03-03 08:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:34:01] Production.INFO: neon service started [2025-03-03 08:34:01] Production.INFO: neon service started [2025-03-03 08:34:01] Production.INFO: ==5256== Releasing lock... [2025-03-03 08:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:34:01] Production.INFO: ==5258== Lock acquired, processing the job... [2025-03-03 03:34:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:34:02] Production.INFO: ==5258== Releasing lock... [2025-03-03 03:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:34:02] Production.INFO: ==5260== Lock acquired, processing the job... [2025-03-03 08:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:34:02] Production.INFO: ==5260== Releasing lock... [2025-03-03 08:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:34:03] Production.INFO: ==5269== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:34:03] Production.INFO: ==5263== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:34:03] Production.INFO: ==5273== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:34:03] Production.INFO: Account Balance Start. [2025-03-03 03:34:03] Production.INFO: CreateAllLog Start [2025-03-03 03:34:03] Production.INFO: 117 [2025-03-03 03:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:03] Production.INFO: ==5265== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:34:03] Production.INFO: ==5267== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:34:03] Production.INFO: count ==13 [2025-03-03 03:34:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:34:03] Production.INFO: count ==21 [2025-03-03 03:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595737') start [2025-03-03 03:34:03] Production.INFO: ==5271== Lock acquired, processing the job... [2025-03-03 03:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:34:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595737') end [2025-03-03 03:34:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:34:03] Production.INFO: 1 [2025-03-03 03:34:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:34:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: ==5265== Releasing lock... [2025-03-03 03:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:34:04] Production.INFO: ==5273== Releasing lock... [2025-03-03 03:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.ERROR: done [2025-03-03 03:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:34:04] Production.ERROR: done [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:34:05] Production.INFO: Total Charge 0 [2025-03-03 03:34:05] Production.INFO: CreateAllLog End [2025-03-03 03:34:05] Production.INFO: Account Balance End. [2025-03-03 03:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:34:05] Production.INFO: ==5269== Releasing lock... [2025-03-03 03:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:34:12] Production.ERROR: CronJobId end10 [2025-03-03 03:34:12] Production.INFO: ==5267== Releasing lock... [2025-03-03 03:34:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:34:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:34:15] Production.INFO: call_cost start [2025-03-03 03:34:15] Production.INFO: call_cost end [2025-03-03 03:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:34:15] Production.INFO: ==5263== Releasing lock... [2025-03-03 03:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:34:16] Production.INFO: count ==409 [2025-03-03 03:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595740', 'tblTempUsageDetail_20' ) start [2025-03-03 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595740', 'tblTempUsageDetail_20' ) end [2025-03-03 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595740', 'tblTempVendorCDR_20' ) start [2025-03-03 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595740', 'tblTempVendorCDR_20' ) end [2025-03-03 03:34:16] Production.INFO: ProcessCDR(1,14595740,1,1,2) [2025-03-03 03:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595740', 'tblTempUsageDetail_20' ) start [2025-03-03 03:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595740', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:34:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:34:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:34:25] Production.INFO: ==5271== Releasing lock... [2025-03-03 03:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:34:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:35:02] Production.INFO: ==5331== Lock acquired, processing the job... [2025-03-03 08:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:35:02] Production.INFO: neon service started [2025-03-03 08:35:02] Production.INFO: neon service started [2025-03-03 08:35:02] Production.INFO: ==5331== Releasing lock... [2025-03-03 08:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:35:02] Production.INFO: ==5336== Lock acquired, processing the job... [2025-03-03 08:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:35:02] Production.INFO: ==5336== Releasing lock... [2025-03-03 08:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:35:02] Production.INFO: ==5334== Lock acquired, processing the job... [2025-03-03 03:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:35:03] Production.INFO: ==5334== Releasing lock... [2025-03-03 03:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:35:03] Production.INFO: ==5344== Lock acquired, processing the job... [2025-03-03 03:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:35:03] Production.INFO: Account Balance Start. [2025-03-03 03:35:03] Production.INFO: CreateAllLog Start [2025-03-03 03:35:03] Production.INFO: 117 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-14 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-15 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:03] Production.INFO: Date 2025-02-16 [2025-03-03 03:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: ==5338== Lock acquired, processing the job... [2025-03-03 03:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: ==5340== Lock acquired, processing the job... [2025-03-03 03:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:35:04] Production.INFO: ==5342== Lock acquired, processing the job... [2025-03-03 03:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: ==5346== Lock acquired, processing the job... [2025-03-03 03:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:35:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: ==5348== Lock acquired, processing the job... [2025-03-03 03:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:35:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:35:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:35:04] Production.INFO: Total Charge 0 [2025-03-03 03:35:04] Production.INFO: CreateAllLog End [2025-03-03 03:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:35:04] Production.INFO: ==5340== Releasing lock... [2025-03-03 03:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:35:04] Production.INFO: count ==13 [2025-03-03 03:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:35:04] Production.INFO: count ==21 [2025-03-03 03:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595744') start [2025-03-03 03:35:05] Production.ERROR: done [2025-03-03 03:35:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595744') end [2025-03-03 03:35:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:35:05] Production.INFO: 1 [2025-03-03 03:35:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:35:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:35:05] Production.INFO: ==5348== Releasing lock... [2025-03-03 03:35:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:35:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:35:05] Production.ERROR: done [2025-03-03 03:35:05] Production.INFO: Account Balance End. [2025-03-03 03:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:35:05] Production.INFO: ==5344== Releasing lock... [2025-03-03 03:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:35:12] Production.ERROR: CronJobId end10 [2025-03-03 03:35:12] Production.INFO: ==5342== Releasing lock... [2025-03-03 03:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:35:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:35:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:35:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:35:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:35:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:35:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:35:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:35:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:35:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:35:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:35:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:35:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:35:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:35:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:35:15] Production.INFO: call_cost start [2025-03-03 03:35:15] Production.INFO: call_cost end [2025-03-03 03:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:35:15] Production.INFO: ==5338== Releasing lock... [2025-03-03 03:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:35:17] Production.INFO: count ==409 [2025-03-03 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595745', 'tblTempUsageDetail_20' ) start [2025-03-03 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595745', 'tblTempUsageDetail_20' ) end [2025-03-03 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595745', 'tblTempVendorCDR_20' ) start [2025-03-03 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595745', 'tblTempVendorCDR_20' ) end [2025-03-03 03:35:17] Production.INFO: ProcessCDR(1,14595745,1,1,2) [2025-03-03 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595745', 'tblTempUsageDetail_20' ) start [2025-03-03 03:35:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595745', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:35:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:35:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:35:26] Production.INFO: ==5346== Releasing lock... [2025-03-03 03:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:35:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:36:01] Production.INFO: ==5403== Lock acquired, processing the job... [2025-03-03 08:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:36:01] Production.INFO: neon service started [2025-03-03 08:36:01] Production.INFO: neon service started [2025-03-03 08:36:01] Production.INFO: ==5403== Releasing lock... [2025-03-03 08:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:36:01] Production.INFO: ==5405== Lock acquired, processing the job... [2025-03-03 03:36:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:36:02] Production.INFO: ==5405== Releasing lock... [2025-03-03 03:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:36:02] Production.INFO: ==5407== Lock acquired, processing the job... [2025-03-03 08:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:36:02] Production.INFO: ==5407== Releasing lock... [2025-03-03 08:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:36:03] Production.INFO: ==5415== Lock acquired, processing the job... [2025-03-03 03:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:36:03] Production.INFO: ==5420== Lock acquired, processing the job... [2025-03-03 03:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:36:03] Production.INFO: ==5409== Lock acquired, processing the job... [2025-03-03 03:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:36:03] Production.INFO: Account Balance Start. [2025-03-03 03:36:03] Production.INFO: CreateAllLog Start [2025-03-03 03:36:03] Production.INFO: 117 [2025-03-03 03:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:36:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:03] Production.INFO: count ==13 [2025-03-03 03:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:36:03] Production.INFO: count ==21 [2025-03-03 03:36:03] Production.INFO: ==5411== Lock acquired, processing the job... [2025-03-03 03:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:36:03] Production.INFO: ==5413== Lock acquired, processing the job... [2025-03-03 03:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595747') start [2025-03-03 03:36:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:03] Production.INFO: ==5417== Lock acquired, processing the job... [2025-03-03 03:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:36:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:36:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595747') end [2025-03-03 03:36:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:36:03] Production.INFO: 1 [2025-03-03 03:36:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: ==5420== Releasing lock... [2025-03-03 03:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: ==5411== Releasing lock... [2025-03-03 03:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.ERROR: done [2025-03-03 03:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.ERROR: done [2025-03-03 03:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:36:05] Production.INFO: Total Charge 0 [2025-03-03 03:36:05] Production.INFO: CreateAllLog End [2025-03-03 03:36:05] Production.INFO: Account Balance End. [2025-03-03 03:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:36:05] Production.INFO: ==5415== Releasing lock... [2025-03-03 03:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:36:12] Production.ERROR: CronJobId end10 [2025-03-03 03:36:12] Production.INFO: ==5413== Releasing lock... [2025-03-03 03:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:36:15] Production.INFO: call_cost start [2025-03-03 03:36:15] Production.INFO: call_cost end [2025-03-03 03:36:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:36:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:36:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:36:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:36:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:36:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:36:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:36:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:36:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:36:15] Production.INFO: ==5409== Releasing lock... [2025-03-03 03:36:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:36:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:36:16] Production.INFO: count ==409 [2025-03-03 03:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595750', 'tblTempUsageDetail_20' ) start [2025-03-03 03:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595750', 'tblTempUsageDetail_20' ) end [2025-03-03 03:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595750', 'tblTempVendorCDR_20' ) start [2025-03-03 03:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595750', 'tblTempVendorCDR_20' ) end [2025-03-03 03:36:16] Production.INFO: ProcessCDR(1,14595750,1,1,2) [2025-03-03 03:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595750', 'tblTempUsageDetail_20' ) start [2025-03-03 03:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595750', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:36:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:36:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:36:25] Production.INFO: ==5417== Releasing lock... [2025-03-03 03:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:36:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:37:01] Production.INFO: ==5472== Lock acquired, processing the job... [2025-03-03 08:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:37:02] Production.INFO: neon service started [2025-03-03 08:37:02] Production.INFO: neon service started [2025-03-03 08:37:02] Production.INFO: ==5472== Releasing lock... [2025-03-03 08:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:37:02] Production.INFO: ==5474== Lock acquired, processing the job... [2025-03-03 03:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:37:02] Production.INFO: ==5476== Lock acquired, processing the job... [2025-03-03 08:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:37:02] Production.INFO: ==5476== Releasing lock... [2025-03-03 08:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:37:03] Production.INFO: ==5474== Releasing lock... [2025-03-03 03:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:37:04] Production.INFO: ==5481== Lock acquired, processing the job... [2025-03-03 03:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:37:04] Production.INFO: ==5483== Lock acquired, processing the job... [2025-03-03 03:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:37:04] Production.INFO: ==5485== Lock acquired, processing the job... [2025-03-03 03:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:37:04] Production.INFO: ==5479== Lock acquired, processing the job... [2025-03-03 03:37:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:37:04] Production.INFO: Account Balance Start. [2025-03-03 03:37:04] Production.INFO: CreateAllLog Start [2025-03-03 03:37:04] Production.INFO: 117 [2025-03-03 03:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:37:04] Production.INFO: ==5487== Lock acquired, processing the job... [2025-03-03 03:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:37:04] Production.INFO: ==5481== Releasing lock... [2025-03-03 03:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: ==5489== Lock acquired, processing the job... [2025-03-03 03:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:37:04] Production.INFO: count ==13 [2025-03-03 03:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: count ==21 [2025-03-03 03:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595754') start [2025-03-03 03:37:04] Production.ERROR: done [2025-03-03 03:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595754') end [2025-03-03 03:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:37:04] Production.INFO: 1 [2025-03-03 03:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:37:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:37:05] Production.INFO: ==5489== Releasing lock... [2025-03-03 03:37:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:37:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.ERROR: done [2025-03-03 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:37:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:37:05] Production.INFO: Total Charge 0 [2025-03-03 03:37:05] Production.INFO: CreateAllLog End [2025-03-03 03:37:06] Production.INFO: Account Balance End. [2025-03-03 03:37:06] Production.ERROR: CronJobId end 12 [2025-03-03 03:37:06] Production.INFO: ==5485== Releasing lock... [2025-03-03 03:37:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:37:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:37:13] Production.ERROR: CronJobId end10 [2025-03-03 03:37:13] Production.INFO: ==5483== Releasing lock... [2025-03-03 03:37:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:37:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:37:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:37:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:37:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:37:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:37:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:37:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:37:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:37:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:37:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:37:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:37:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:37:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:37:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:37:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:37:15] Production.INFO: call_cost start [2025-03-03 03:37:15] Production.INFO: call_cost end [2025-03-03 03:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:37:15] Production.INFO: ==5479== Releasing lock... [2025-03-03 03:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:37:17] Production.INFO: count ==409 [2025-03-03 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595755', 'tblTempUsageDetail_20' ) start [2025-03-03 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595755', 'tblTempUsageDetail_20' ) end [2025-03-03 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595755', 'tblTempVendorCDR_20' ) start [2025-03-03 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595755', 'tblTempVendorCDR_20' ) end [2025-03-03 03:37:17] Production.INFO: ProcessCDR(1,14595755,1,1,2) [2025-03-03 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595755', 'tblTempUsageDetail_20' ) start [2025-03-03 03:37:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595755', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:37:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:37:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:37:25] Production.INFO: ==5487== Releasing lock... [2025-03-03 03:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:37:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:38:01] Production.INFO: ==5546== Lock acquired, processing the job... [2025-03-03 08:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:38:01] Production.INFO: neon service started [2025-03-03 08:38:01] Production.INFO: neon service started [2025-03-03 08:38:01] Production.INFO: ==5546== Releasing lock... [2025-03-03 08:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:38:01] Production.INFO: ==5550== Lock acquired, processing the job... [2025-03-03 08:38:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:38:01] Production.INFO: ==5550== Releasing lock... [2025-03-03 08:38:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:38:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:38:02] Production.INFO: ==5548== Lock acquired, processing the job... [2025-03-03 03:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:38:02] Production.INFO: ==5548== Releasing lock... [2025-03-03 03:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:38:03] Production.INFO: ==5559== Lock acquired, processing the job... [2025-03-03 03:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:38:03] Production.INFO: ==5561== Lock acquired, processing the job... [2025-03-03 03:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:38:03] Production.INFO: ==5553== Lock acquired, processing the job... [2025-03-03 03:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:38:03] Production.INFO: ==5555== Lock acquired, processing the job... [2025-03-03 03:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:38:03] Production.INFO: Account Balance Start. [2025-03-03 03:38:03] Production.INFO: CreateAllLog Start [2025-03-03 03:38:03] Production.INFO: 117 [2025-03-03 03:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:38:03] Production.INFO: ==5557== Lock acquired, processing the job... [2025-03-03 03:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:03] Production.INFO: ==5563== Lock acquired, processing the job... [2025-03-03 03:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:38:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:38:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:38:03] Production.INFO: count ==13 [2025-03-03 03:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:38:03] Production.INFO: count ==21 [2025-03-03 03:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595758') start [2025-03-03 03:38:03] Production.ERROR: done [2025-03-03 03:38:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: ==5555== Releasing lock... [2025-03-03 03:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:38:04] Production.ERROR: done [2025-03-03 03:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595758') end [2025-03-03 03:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:38:04] Production.INFO: 1 [2025-03-03 03:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:38:04] Production.INFO: ==5563== Releasing lock... [2025-03-03 03:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:38:04] Production.INFO: Total Charge 0 [2025-03-03 03:38:04] Production.INFO: CreateAllLog End [2025-03-03 03:38:05] Production.INFO: Account Balance End. [2025-03-03 03:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:38:05] Production.INFO: ==5559== Releasing lock... [2025-03-03 03:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:38:13] Production.ERROR: CronJobId end10 [2025-03-03 03:38:13] Production.INFO: ==5557== Releasing lock... [2025-03-03 03:38:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:38:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:38:16] Production.INFO: call_cost start [2025-03-03 03:38:16] Production.INFO: call_cost end [2025-03-03 03:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:38:16] Production.INFO: ==5553== Releasing lock... [2025-03-03 03:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:38:16] Production.INFO: count ==409 [2025-03-03 03:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595760', 'tblTempUsageDetail_20' ) start [2025-03-03 03:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595760', 'tblTempUsageDetail_20' ) end [2025-03-03 03:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595760', 'tblTempVendorCDR_20' ) start [2025-03-03 03:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595760', 'tblTempVendorCDR_20' ) end [2025-03-03 03:38:16] Production.INFO: ProcessCDR(1,14595760,1,1,2) [2025-03-03 03:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595760', 'tblTempUsageDetail_20' ) start [2025-03-03 03:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595760', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:38:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:38:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:38:25] Production.INFO: ==5561== Releasing lock... [2025-03-03 03:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:38:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:39:01] Production.INFO: ==5623== Lock acquired, processing the job... [2025-03-03 08:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:39:01] Production.INFO: neon service started [2025-03-03 08:39:02] Production.INFO: neon service started [2025-03-03 08:39:02] Production.INFO: ==5623== Releasing lock... [2025-03-03 08:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:39:02] Production.INFO: ==5627== Lock acquired, processing the job... [2025-03-03 08:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:39:02] Production.INFO: ==5627== Releasing lock... [2025-03-03 08:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:39:02] Production.INFO: ==5625== Lock acquired, processing the job... [2025-03-03 03:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:39:03] Production.INFO: ==5625== Releasing lock... [2025-03-03 03:39:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:39:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:39:03] Production.INFO: ==5632== Lock acquired, processing the job... [2025-03-03 03:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:39:04] Production.INFO: ==5638== Lock acquired, processing the job... [2025-03-03 03:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:39:04] Production.INFO: ==5640== Lock acquired, processing the job... [2025-03-03 03:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:39:04] Production.INFO: ==5632== Releasing lock... [2025-03-03 03:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:39:04] Production.INFO: ==5636== Lock acquired, processing the job... [2025-03-03 03:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:39:04] Production.INFO: count ==13 [2025-03-03 03:39:04] Production.INFO: ==5630== Lock acquired, processing the job... [2025-03-03 03:39:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:39:04] Production.INFO: count ==21 [2025-03-03 03:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595762') start [2025-03-03 03:39:04] Production.INFO: ==5634== Lock acquired, processing the job... [2025-03-03 03:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:39:04] Production.ERROR: done [2025-03-03 03:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595762') end [2025-03-03 03:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:39:04] Production.INFO: 1 [2025-03-03 03:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:39:04] Production.INFO: Account Balance Start. [2025-03-03 03:39:04] Production.INFO: CreateAllLog Start [2025-03-03 03:39:04] Production.INFO: 117 [2025-03-03 03:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.INFO: ==5640== Releasing lock... [2025-03-03 03:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.ERROR: done [2025-03-03 03:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:39:05] Production.INFO: Total Charge 0 [2025-03-03 03:39:05] Production.INFO: CreateAllLog End [2025-03-03 03:39:05] Production.INFO: Account Balance End. [2025-03-03 03:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:39:05] Production.INFO: ==5636== Releasing lock... [2025-03-03 03:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:39:13] Production.ERROR: CronJobId end10 [2025-03-03 03:39:13] Production.INFO: ==5634== Releasing lock... [2025-03-03 03:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:39:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:39:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:39:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:39:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:39:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:39:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:39:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:39:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:39:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:39:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:39:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:39:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:39:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:39:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:39:15] Production.INFO: call_cost start [2025-03-03 03:39:15] Production.INFO: call_cost end [2025-03-03 03:39:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:39:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:39:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:39:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:39:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:39:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:39:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:39:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:39:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:39:15] Production.INFO: ==5630== Releasing lock... [2025-03-03 03:39:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:39:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:39:16] Production.INFO: count ==409 [2025-03-03 03:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595765', 'tblTempUsageDetail_20' ) start [2025-03-03 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595765', 'tblTempUsageDetail_20' ) end [2025-03-03 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595765', 'tblTempVendorCDR_20' ) start [2025-03-03 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595765', 'tblTempVendorCDR_20' ) end [2025-03-03 03:39:16] Production.INFO: ProcessCDR(1,14595765,1,1,2) [2025-03-03 03:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595765', 'tblTempUsageDetail_20' ) start [2025-03-03 03:39:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595765', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:39:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:39:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:39:25] Production.INFO: ==5638== Releasing lock... [2025-03-03 03:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:39:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:40:01] Production.INFO: ==5693== Lock acquired, processing the job... [2025-03-03 08:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:40:01] Production.INFO: neon service started [2025-03-03 08:40:01] Production.INFO: neon service started [2025-03-03 08:40:01] Production.INFO: ==5693== Releasing lock... [2025-03-03 08:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:40:01] Production.INFO: ==5695== Lock acquired, processing the job... [2025-03-03 03:40:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:40:02] Production.INFO: ==5695== Releasing lock... [2025-03-03 03:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:40:02] Production.INFO: ==5698== Lock acquired, processing the job... [2025-03-03 08:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:40:02] Production.INFO: ==5698== Releasing lock... [2025-03-03 08:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:40:03] Production.INFO: ==5710== Lock acquired, processing the job... [2025-03-03 03:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:40:03] Production.INFO: ==5712== Lock acquired, processing the job... [2025-03-03 03:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 03:40:03] Production.INFO: ==5708== Lock acquired, processing the job... [2025-03-03 03:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:40:03] Production.INFO: Account Balance Start. [2025-03-03 03:40:03] Production.INFO: CreateAllLog Start [2025-03-03 03:40:03] Production.INFO: 117 [2025-03-03 03:40:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: ==5702== Lock acquired, processing the job... [2025-03-03 03:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: ==5700== Lock acquired, processing the job... [2025-03-03 03:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 03:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: ==5704== Lock acquired, processing the job... [2025-03-03 03:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:40:04] Production.INFO: ==5706== Lock acquired, processing the job... [2025-03-03 03:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:40:04] Production.ERROR: done [2025-03-03 03:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:40:04] Production.INFO: ==5714== Lock acquired, processing the job... [2025-03-03 03:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 03:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:40:04] Production.ERROR: CronJob PID - 5702 [2025-03-03 03:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 03:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 03:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:40:00 [2025-03-03 03:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:40:04] Production.ERROR: CronJob PID - 5704 [2025-03-03 03:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 03:40:04] Production.ERROR: CronJob ID - 7 [2025-03-03 03:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:40:00 [2025-03-03 03:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:40:04] Production.ERROR: CronJob PID - 5706 [2025-03-03 03:40:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 03:40:04] Production.ERROR: CronJob ID - 10 [2025-03-03 03:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:40:00 [2025-03-03 03:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:40:04] Production.ERROR: CronJob PID - 5708 [2025-03-03 03:40:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 03:40:04] Production.ERROR: CronJob ID - 12 [2025-03-03 03:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:40:00 [2025-03-03 03:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:40:04] Production.ERROR: CronJob PID - 5710 [2025-03-03 03:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 03:40:04] Production.ERROR: CronJob ID - 16 [2025-03-03 03:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:40:00 [2025-03-03 03:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 03:40:04] Production.ERROR: CronJob PID - 5712 [2025-03-03 03:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 03:40:04] Production.ERROR: CronJob ID - 17 [2025-03-03 03:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 03:40:00 [2025-03-03 03:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 03:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 03:40:04] Production.INFO: ==5700== Releasing lock... [2025-03-03 03:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 03:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:40:04] Production.ERROR: done [2025-03-03 03:40:04] Production.ERROR: done [2025-03-03 03:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 03:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595769', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 03:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:40:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: count ==13 [2025-03-03 03:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:40:04] Production.INFO: count ==21 [2025-03-03 03:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595770') start [2025-03-03 03:40:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:40:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595770') end [2025-03-03 03:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:40:04] Production.INFO: 1 [2025-03-03 03:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:40:04] Production.INFO: ==5704== Releasing lock... [2025-03-03 03:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:40:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:04] Production.INFO: ==5714== Releasing lock... [2025-03-03 03:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:40:05] Production.INFO: Total Charge 0 [2025-03-03 03:40:05] Production.INFO: CreateAllLog End [2025-03-03 03:40:05] Production.INFO: Account Balance End. [2025-03-03 03:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:40:05] Production.INFO: ==5708== Releasing lock... [2025-03-03 03:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595769', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 03:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 03:40:09] Production.INFO: ProcessCDR(1,14595769,1,1,2) [2025-03-03 03:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595769,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595769,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 03:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 03:40:09] Production.INFO: ==5712== Releasing lock... [2025-03-03 03:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 03:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 03:40:14] Production.ERROR: CronJobId end10 [2025-03-03 03:40:14] Production.INFO: ==5706== Releasing lock... [2025-03-03 03:40:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:40:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:40:16] Production.INFO: count ==409 [2025-03-03 03:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595771', 'tblTempUsageDetail_20' ) start [2025-03-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595771', 'tblTempUsageDetail_20' ) end [2025-03-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595771', 'tblTempVendorCDR_20' ) start [2025-03-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595771', 'tblTempVendorCDR_20' ) end [2025-03-03 03:40:17] Production.INFO: ProcessCDR(1,14595771,1,1,2) [2025-03-03 03:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:40:18] Production.INFO: call_cost start [2025-03-03 03:40:18] Production.INFO: call_cost end [2025-03-03 03:40:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:40:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:40:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:40:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:40:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:40:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:40:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:40:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:40:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:40:18] Production.INFO: ==5702== Releasing lock... [2025-03-03 03:40:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:40:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595771', 'tblTempUsageDetail_20' ) start [2025-03-03 03:40:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595771', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:40:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:40:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:40:26] Production.INFO: ==5710== Releasing lock... [2025-03-03 03:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:40:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:41:01] Production.INFO: ==5781== Lock acquired, processing the job... [2025-03-03 08:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:41:02] Production.INFO: neon service started [2025-03-03 08:41:02] Production.INFO: neon service started [2025-03-03 08:41:02] Production.INFO: ==5781== Releasing lock... [2025-03-03 08:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:41:02] Production.INFO: ==5783== Lock acquired, processing the job... [2025-03-03 03:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:41:02] Production.INFO: ==5783== Releasing lock... [2025-03-03 03:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:41:02] Production.INFO: ==5785== Lock acquired, processing the job... [2025-03-03 08:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:41:02] Production.INFO: ==5785== Releasing lock... [2025-03-03 08:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:41:03] Production.INFO: ==5795== Lock acquired, processing the job... [2025-03-03 03:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:41:03] Production.INFO: ==5797== Lock acquired, processing the job... [2025-03-03 03:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:41:03] Production.INFO: ==5787== Lock acquired, processing the job... [2025-03-03 03:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:41:04] Production.INFO: ==5789== Lock acquired, processing the job... [2025-03-03 03:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:41:04] Production.INFO: ==5791== Lock acquired, processing the job... [2025-03-03 03:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:41:04] Production.INFO: ==5793== Lock acquired, processing the job... [2025-03-03 03:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:41:04] Production.INFO: count ==13 [2025-03-03 03:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:41:04] Production.INFO: count ==21 [2025-03-03 03:41:04] Production.ERROR: done [2025-03-03 03:41:04] Production.INFO: Account Balance Start. [2025-03-03 03:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:41:04] Production.INFO: CreateAllLog Start [2025-03-03 03:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595772') start [2025-03-03 03:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:41:04] Production.INFO: 117 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: ==5789== Releasing lock... [2025-03-03 03:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:41:04] Production.ERROR: done [2025-03-03 03:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595772') end [2025-03-03 03:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:41:04] Production.INFO: 1 [2025-03-03 03:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: ==5797== Releasing lock... [2025-03-03 03:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:41:05] Production.INFO: Total Charge 0 [2025-03-03 03:41:05] Production.INFO: CreateAllLog End [2025-03-03 03:41:05] Production.INFO: Account Balance End. [2025-03-03 03:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:41:05] Production.INFO: ==5793== Releasing lock... [2025-03-03 03:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:41:13] Production.ERROR: CronJobId end10 [2025-03-03 03:41:13] Production.INFO: ==5791== Releasing lock... [2025-03-03 03:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:41:15] Production.INFO: call_cost start [2025-03-03 03:41:15] Production.INFO: call_cost end [2025-03-03 03:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:41:15] Production.INFO: ==5787== Releasing lock... [2025-03-03 03:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:41:16] Production.INFO: count ==409 [2025-03-03 03:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595776', 'tblTempUsageDetail_20' ) start [2025-03-03 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595776', 'tblTempUsageDetail_20' ) end [2025-03-03 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595776', 'tblTempVendorCDR_20' ) start [2025-03-03 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595776', 'tblTempVendorCDR_20' ) end [2025-03-03 03:41:16] Production.INFO: ProcessCDR(1,14595776,1,1,2) [2025-03-03 03:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595776', 'tblTempUsageDetail_20' ) start [2025-03-03 03:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595776', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:41:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:41:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:41:25] Production.INFO: ==5795== Releasing lock... [2025-03-03 03:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:41:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:42:01] Production.INFO: ==5862== Lock acquired, processing the job... [2025-03-03 08:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:42:01] Production.INFO: neon service started [2025-03-03 08:42:01] Production.INFO: neon service started [2025-03-03 08:42:01] Production.INFO: ==5862== Releasing lock... [2025-03-03 08:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:42:01] Production.INFO: ==5864== Lock acquired, processing the job... [2025-03-03 03:42:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:42:02] Production.INFO: ==5864== Releasing lock... [2025-03-03 03:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:42:02] Production.INFO: ==5866== Lock acquired, processing the job... [2025-03-03 08:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:42:02] Production.INFO: ==5866== Releasing lock... [2025-03-03 08:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:42:03] Production.INFO: ==5875== Lock acquired, processing the job... [2025-03-03 03:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:42:03] Production.INFO: ==5869== Lock acquired, processing the job... [2025-03-03 03:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:42:03] Production.INFO: ==5871== Lock acquired, processing the job... [2025-03-03 03:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:42:03] Production.INFO: Account Balance Start. [2025-03-03 03:42:03] Production.INFO: CreateAllLog Start [2025-03-03 03:42:03] Production.INFO: 117 [2025-03-03 03:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:03] Production.INFO: ==5873== Lock acquired, processing the job... [2025-03-03 03:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:42:03] Production.INFO: ==5877== Lock acquired, processing the job... [2025-03-03 03:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:42:03] Production.INFO: ==5879== Lock acquired, processing the job... [2025-03-03 03:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:42:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:42:03] Production.INFO: Date 2025-02-13 [2025-03-03 03:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:03] Production.INFO: count ==13 [2025-03-03 03:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:42:03] Production.INFO: count ==21 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595780') start [2025-03-03 03:42:04] Production.INFO: ==5871== Releasing lock... [2025-03-03 03:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595780') end [2025-03-03 03:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:42:04] Production.INFO: 1 [2025-03-03 03:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: ==5879== Releasing lock... [2025-03-03 03:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:42:04] Production.ERROR: done [2025-03-03 03:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.ERROR: done [2025-03-03 03:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:42:05] Production.INFO: Total Charge 0 [2025-03-03 03:42:05] Production.INFO: CreateAllLog End [2025-03-03 03:42:05] Production.INFO: Account Balance End. [2025-03-03 03:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:42:05] Production.INFO: ==5875== Releasing lock... [2025-03-03 03:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:42:13] Production.ERROR: CronJobId end10 [2025-03-03 03:42:13] Production.INFO: ==5873== Releasing lock... [2025-03-03 03:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:42:16] Production.INFO: call_cost start [2025-03-03 03:42:16] Production.INFO: call_cost end [2025-03-03 03:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:42:16] Production.INFO: ==5869== Releasing lock... [2025-03-03 03:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:42:16] Production.INFO: count ==409 [2025-03-03 03:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595781', 'tblTempUsageDetail_20' ) start [2025-03-03 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595781', 'tblTempUsageDetail_20' ) end [2025-03-03 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595781', 'tblTempVendorCDR_20' ) start [2025-03-03 03:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595781', 'tblTempVendorCDR_20' ) end [2025-03-03 03:42:16] Production.INFO: ProcessCDR(1,14595781,1,1,2) [2025-03-03 03:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595781', 'tblTempUsageDetail_20' ) start [2025-03-03 03:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595781', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:42:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:42:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:42:25] Production.INFO: ==5877== Releasing lock... [2025-03-03 03:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:42:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:43:02] Production.INFO: ==5981== Lock acquired, processing the job... [2025-03-03 08:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:43:02] Production.INFO: neon service started [2025-03-03 08:43:02] Production.INFO: neon service started [2025-03-03 08:43:02] Production.INFO: ==5981== Releasing lock... [2025-03-03 08:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:43:02] Production.INFO: ==5983== Lock acquired, processing the job... [2025-03-03 03:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:43:02] Production.INFO: ==5985== Lock acquired, processing the job... [2025-03-03 08:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:43:02] Production.INFO: ==5985== Releasing lock... [2025-03-03 08:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:43:02] Production.INFO: ==5983== Releasing lock... [2025-03-03 03:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:43:03] Production.INFO: ==5987== Lock acquired, processing the job... [2025-03-03 03:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:43:03] Production.INFO: ==5991== Lock acquired, processing the job... [2025-03-03 03:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:43:03] Production.INFO: ==5998== Lock acquired, processing the job... [2025-03-03 03:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:43:03] Production.INFO: count ==13 [2025-03-03 03:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:43:03] Production.INFO: count ==21 [2025-03-03 03:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595783') start [2025-03-03 03:43:04] Production.INFO: ==5989== Lock acquired, processing the job... [2025-03-03 03:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595783') end [2025-03-03 03:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:43:04] Production.INFO: 1 [2025-03-03 03:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:43:04] Production.INFO: ==5998== Releasing lock... [2025-03-03 03:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:43:04] Production.INFO: ==5993== Lock acquired, processing the job... [2025-03-03 03:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:43:04] Production.INFO: ==5995== Lock acquired, processing the job... [2025-03-03 03:43:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:43:04] Production.INFO: Account Balance Start. [2025-03-03 03:43:04] Production.INFO: CreateAllLog Start [2025-03-03 03:43:04] Production.INFO: 117 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: ==5989== Releasing lock... [2025-03-03 03:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:43:04] Production.ERROR: done [2025-03-03 03:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:04] Production.ERROR: done [2025-03-03 03:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:43:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:43:05] Production.INFO: Total Charge 0 [2025-03-03 03:43:05] Production.INFO: CreateAllLog End [2025-03-03 03:43:05] Production.INFO: Account Balance End. [2025-03-03 03:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:43:05] Production.INFO: ==5993== Releasing lock... [2025-03-03 03:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:43:11] Production.ERROR: CronJobId end10 [2025-03-03 03:43:11] Production.INFO: ==5991== Releasing lock... [2025-03-03 03:43:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:43:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:43:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:43:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:43:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:43:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:43:15] Production.INFO: call_cost start [2025-03-03 03:43:15] Production.INFO: call_cost end [2025-03-03 03:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:43:15] Production.INFO: ==5987== Releasing lock... [2025-03-03 03:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:43:16] Production.INFO: count ==409 [2025-03-03 03:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595786', 'tblTempUsageDetail_20' ) start [2025-03-03 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595786', 'tblTempUsageDetail_20' ) end [2025-03-03 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595786', 'tblTempVendorCDR_20' ) start [2025-03-03 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595786', 'tblTempVendorCDR_20' ) end [2025-03-03 03:43:17] Production.INFO: ProcessCDR(1,14595786,1,1,2) [2025-03-03 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595786', 'tblTempUsageDetail_20' ) start [2025-03-03 03:43:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595786', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:43:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:43:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:43:26] Production.INFO: ==5995== Releasing lock... [2025-03-03 03:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:43:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:44:01] Production.INFO: ==6059== Lock acquired, processing the job... [2025-03-03 08:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:44:01] Production.INFO: neon service started [2025-03-03 08:44:01] Production.INFO: neon service started [2025-03-03 08:44:01] Production.INFO: ==6059== Releasing lock... [2025-03-03 08:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:44:02] Production.INFO: ==6063== Lock acquired, processing the job... [2025-03-03 08:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:44:02] Production.INFO: ==6061== Lock acquired, processing the job... [2025-03-03 03:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:44:02] Production.INFO: ==6063== Releasing lock... [2025-03-03 08:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:44:02] Production.INFO: ==6061== Releasing lock... [2025-03-03 03:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:44:03] Production.INFO: ==6068== Lock acquired, processing the job... [2025-03-03 03:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:44:03] Production.INFO: ==6070== Lock acquired, processing the job... [2025-03-03 03:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:44:03] Production.INFO: ==6072== Lock acquired, processing the job... [2025-03-03 03:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:44:03] Production.INFO: Account Balance Start. [2025-03-03 03:44:03] Production.INFO: CreateAllLog Start [2025-03-03 03:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:44:03] Production.INFO: 117 [2025-03-03 03:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:44:03] Production.INFO: ==6074== Lock acquired, processing the job... [2025-03-03 03:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:03] Production.INFO: ==6066== Lock acquired, processing the job... [2025-03-03 03:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:44:03] Production.INFO: ==6068== Releasing lock... [2025-03-03 03:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:03] Production.INFO: ==6076== Lock acquired, processing the job... [2025-03-03 03:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:44:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:44:04] Production.INFO: count ==13 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.ERROR: done [2025-03-03 03:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:44:04] Production.INFO: count ==21 [2025-03-03 03:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595789') start [2025-03-03 03:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.ERROR: done [2025-03-03 03:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595789') end [2025-03-03 03:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:44:04] Production.INFO: 1 [2025-03-03 03:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:44:04] Production.INFO: ==6076== Releasing lock... [2025-03-03 03:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:44:04] Production.INFO: Total Charge 0 [2025-03-03 03:44:04] Production.INFO: CreateAllLog End [2025-03-03 03:44:05] Production.INFO: Account Balance End. [2025-03-03 03:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:44:05] Production.INFO: ==6072== Releasing lock... [2025-03-03 03:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:44:11] Production.ERROR: CronJobId end10 [2025-03-03 03:44:11] Production.INFO: ==6070== Releasing lock... [2025-03-03 03:44:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:44:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:44:14] Production.INFO: call_cost start [2025-03-03 03:44:14] Production.INFO: call_cost end [2025-03-03 03:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:44:14] Production.INFO: ==6066== Releasing lock... [2025-03-03 03:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:44:16] Production.INFO: count ==409 [2025-03-03 03:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595791', 'tblTempUsageDetail_20' ) start [2025-03-03 03:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595791', 'tblTempUsageDetail_20' ) end [2025-03-03 03:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595791', 'tblTempVendorCDR_20' ) start [2025-03-03 03:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595791', 'tblTempVendorCDR_20' ) end [2025-03-03 03:44:16] Production.INFO: ProcessCDR(1,14595791,1,1,2) [2025-03-03 03:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595791', 'tblTempUsageDetail_20' ) start [2025-03-03 03:44:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595791', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:44:25] Production.INFO: ==6074== Releasing lock... [2025-03-03 03:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:44:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:45:01] Production.INFO: ==6136== Lock acquired, processing the job... [2025-03-03 08:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:45:01] Production.INFO: neon service started [2025-03-03 08:45:01] Production.INFO: neon service started [2025-03-03 08:45:01] Production.INFO: ==6136== Releasing lock... [2025-03-03 08:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:45:02] Production.INFO: ==6138== Lock acquired, processing the job... [2025-03-03 03:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:45:02] Production.INFO: ==6138== Releasing lock... [2025-03-03 03:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:45:02] Production.INFO: ==6140== Lock acquired, processing the job... [2025-03-03 08:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:45:02] Production.INFO: ==6140== Releasing lock... [2025-03-03 08:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:45:03] Production.INFO: ==6142== Lock acquired, processing the job... [2025-03-03 03:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:45:03] Production.INFO: ==6144== Lock acquired, processing the job... [2025-03-03 03:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:45:03] Production.INFO: ==6148== Lock acquired, processing the job... [2025-03-03 03:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:45:03] Production.INFO: Account Balance Start. [2025-03-03 03:45:03] Production.INFO: CreateAllLog Start [2025-03-03 03:45:03] Production.INFO: 117 [2025-03-03 03:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:03] Production.INFO: ==6146== Lock acquired, processing the job... [2025-03-03 03:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:45:03] Production.INFO: ==6144== Releasing lock... [2025-03-03 03:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:45:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: ==6150== Lock acquired, processing the job... [2025-03-03 03:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: ==6152== Lock acquired, processing the job... [2025-03-03 03:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:45:04] Production.INFO: count ==13 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:45:04] Production.INFO: count ==21 [2025-03-03 03:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595795') start [2025-03-03 03:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595795') end [2025-03-03 03:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:45:04] Production.INFO: 1 [2025-03-03 03:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: ==6152== Releasing lock... [2025-03-03 03:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:45:04] Production.ERROR: done [2025-03-03 03:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.ERROR: done [2025-03-03 03:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:45:04] Production.INFO: Total Charge 0 [2025-03-03 03:45:04] Production.INFO: CreateAllLog End [2025-03-03 03:45:05] Production.INFO: Account Balance End. [2025-03-03 03:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:45:05] Production.INFO: ==6148== Releasing lock... [2025-03-03 03:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:45:13] Production.ERROR: CronJobId end10 [2025-03-03 03:45:13] Production.INFO: ==6146== Releasing lock... [2025-03-03 03:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:45:16] Production.INFO: call_cost start [2025-03-03 03:45:16] Production.INFO: call_cost end [2025-03-03 03:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:45:16] Production.INFO: ==6142== Releasing lock... [2025-03-03 03:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:45:16] Production.INFO: count ==409 [2025-03-03 03:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595796', 'tblTempUsageDetail_20' ) start [2025-03-03 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595796', 'tblTempUsageDetail_20' ) end [2025-03-03 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595796', 'tblTempVendorCDR_20' ) start [2025-03-03 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595796', 'tblTempVendorCDR_20' ) end [2025-03-03 03:45:16] Production.INFO: ProcessCDR(1,14595796,1,1,2) [2025-03-03 03:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595796', 'tblTempUsageDetail_20' ) start [2025-03-03 03:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595796', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:45:24] Production.INFO: ==6150== Releasing lock... [2025-03-03 03:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:45:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:46:02] Production.INFO: ==6222== Lock acquired, processing the job... [2025-03-03 08:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:46:02] Production.INFO: neon service started [2025-03-03 08:46:02] Production.INFO: neon service started [2025-03-03 08:46:02] Production.INFO: ==6222== Releasing lock... [2025-03-03 08:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:46:03] Production.INFO: ==6225== Lock acquired, processing the job... [2025-03-03 03:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:46:03] Production.INFO: ==6227== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:46:03] Production.INFO: ==6227== Releasing lock... [2025-03-03 08:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:46:03] Production.INFO: ==6225== Releasing lock... [2025-03-03 03:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:46:04] Production.INFO: ==6229== Lock acquired, processing the job... [2025-03-03 03:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:46:04] Production.INFO: ==6237== Lock acquired, processing the job... [2025-03-03 03:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:46:04] Production.INFO: ==6231== Lock acquired, processing the job... [2025-03-03 03:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:46:04] Production.INFO: ==6239== Lock acquired, processing the job... [2025-03-03 03:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:46:04] Production.INFO: ==6233== Lock acquired, processing the job... [2025-03-03 03:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:46:04] Production.INFO: ==6235== Lock acquired, processing the job... [2025-03-03 03:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:46:04] Production.INFO: Account Balance Start. [2025-03-03 03:46:04] Production.INFO: CreateAllLog Start [2025-03-03 03:46:04] Production.INFO: 117 [2025-03-03 03:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:04] Production.INFO: count ==13 [2025-03-03 03:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:46:04] Production.INFO: count ==21 [2025-03-03 03:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595800') start [2025-03-03 03:46:04] Production.ERROR: done [2025-03-03 03:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595800') end [2025-03-03 03:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:46:04] Production.INFO: 1 [2025-03-03 03:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:46:04] Production.INFO: ==6231== Releasing lock... [2025-03-03 03:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-13 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: ==6239== Releasing lock... [2025-03-03 03:46:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:46:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:46:05] Production.ERROR: done [2025-03-03 03:46:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:46:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:06] Production.INFO: Date 2025-03-03 [2025-03-03 03:46:06] Production.INFO: Reseller ==> 0 [2025-03-03 03:46:06] Production.INFO: Total Charge 0 [2025-03-03 03:46:06] Production.INFO: CreateAllLog End [2025-03-03 03:46:06] Production.INFO: Account Balance End. [2025-03-03 03:46:06] Production.ERROR: CronJobId end 12 [2025-03-03 03:46:06] Production.INFO: ==6235== Releasing lock... [2025-03-03 03:46:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:46:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:46:13] Production.ERROR: CronJobId end10 [2025-03-03 03:46:13] Production.INFO: ==6233== Releasing lock... [2025-03-03 03:46:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:46:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:46:15] Production.INFO: call_cost start [2025-03-03 03:46:15] Production.INFO: call_cost end [2025-03-03 03:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:46:15] Production.INFO: ==6229== Releasing lock... [2025-03-03 03:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:46:17] Production.INFO: count ==409 [2025-03-03 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595801', 'tblTempUsageDetail_20' ) start [2025-03-03 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595801', 'tblTempUsageDetail_20' ) end [2025-03-03 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595801', 'tblTempVendorCDR_20' ) start [2025-03-03 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595801', 'tblTempVendorCDR_20' ) end [2025-03-03 03:46:17] Production.INFO: ProcessCDR(1,14595801,1,1,2) [2025-03-03 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595801', 'tblTempUsageDetail_20' ) start [2025-03-03 03:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595801', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:46:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:46:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:46:25] Production.INFO: ==6237== Releasing lock... [2025-03-03 03:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:46:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:47:01] Production.INFO: ==6296== Lock acquired, processing the job... [2025-03-03 08:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:47:01] Production.INFO: neon service started [2025-03-03 08:47:01] Production.INFO: neon service started [2025-03-03 08:47:01] Production.INFO: ==6296== Releasing lock... [2025-03-03 08:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:47:02] Production.INFO: ==6299== Lock acquired, processing the job... [2025-03-03 03:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:47:02] Production.INFO: ==6299== Releasing lock... [2025-03-03 03:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:47:02] Production.INFO: ==6301== Lock acquired, processing the job... [2025-03-03 08:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:47:02] Production.INFO: ==6301== Releasing lock... [2025-03-03 08:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:47:03] Production.INFO: ==6309== Lock acquired, processing the job... [2025-03-03 03:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:47:03] Production.INFO: ==6303== Lock acquired, processing the job... [2025-03-03 03:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:47:03] Production.INFO: ==6313== Lock acquired, processing the job... [2025-03-03 03:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:47:03] Production.INFO: Account Balance Start. [2025-03-03 03:47:03] Production.INFO: CreateAllLog Start [2025-03-03 03:47:03] Production.INFO: 117 [2025-03-03 03:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:03] Production.INFO: ==6305== Lock acquired, processing the job... [2025-03-03 03:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 03:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:03] Production.INFO: ==6307== Lock acquired, processing the job... [2025-03-03 03:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:47:03] Production.INFO: count ==13 [2025-03-03 03:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:47:03] Production.INFO: count ==21 [2025-03-03 03:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595804') start [2025-03-03 03:47:03] Production.INFO: Date 2025-02-10 [2025-03-03 03:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:03] Production.INFO: ==6311== Lock acquired, processing the job... [2025-03-03 03:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:47:03] Production.INFO: Date 2025-02-11 [2025-03-03 03:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595804') end [2025-03-03 03:47:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:47:03] Production.INFO: 1 [2025-03-03 03:47:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:47:03] Production.INFO: ==6313== Releasing lock... [2025-03-03 03:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:47:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:47:03] Production.INFO: Date 2025-02-12 [2025-03-03 03:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: ==6305== Releasing lock... [2025-03-03 03:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.ERROR: done [2025-03-03 03:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.ERROR: done [2025-03-03 03:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 03:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:47:04] Production.INFO: Total Charge 0 [2025-03-03 03:47:04] Production.INFO: CreateAllLog End [2025-03-03 03:47:04] Production.INFO: Account Balance End. [2025-03-03 03:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:47:05] Production.INFO: ==6309== Releasing lock... [2025-03-03 03:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:47:13] Production.ERROR: CronJobId end10 [2025-03-03 03:47:13] Production.INFO: ==6307== Releasing lock... [2025-03-03 03:47:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:47:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:47:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:47:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:47:16] Production.INFO: call_cost start [2025-03-03 03:47:16] Production.INFO: call_cost end [2025-03-03 03:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:47:16] Production.INFO: ==6303== Releasing lock... [2025-03-03 03:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:47:16] Production.INFO: count ==409 [2025-03-03 03:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595806', 'tblTempUsageDetail_20' ) start [2025-03-03 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595806', 'tblTempUsageDetail_20' ) end [2025-03-03 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595806', 'tblTempVendorCDR_20' ) start [2025-03-03 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595806', 'tblTempVendorCDR_20' ) end [2025-03-03 03:47:16] Production.INFO: ProcessCDR(1,14595806,1,1,2) [2025-03-03 03:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595806', 'tblTempUsageDetail_20' ) start [2025-03-03 03:47:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595806', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:47:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:47:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:47:25] Production.INFO: ==6311== Releasing lock... [2025-03-03 03:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:47:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:48:02] Production.INFO: ==6384== Lock acquired, processing the job... [2025-03-03 08:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:48:02] Production.INFO: neon service started [2025-03-03 08:48:02] Production.INFO: neon service started [2025-03-03 08:48:02] Production.INFO: ==6384== Releasing lock... [2025-03-03 08:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:48:03] Production.INFO: ==6386== Lock acquired, processing the job... [2025-03-03 03:48:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:48:03] Production.INFO: ==6388== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:48:03] Production.INFO: ==6388== Releasing lock... [2025-03-03 08:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:48:03] Production.INFO: ==6386== Releasing lock... [2025-03-03 03:48:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:48:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:48:04] Production.INFO: ==6393== Lock acquired, processing the job... [2025-03-03 03:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:48:04] Production.INFO: ==6397== Lock acquired, processing the job... [2025-03-03 03:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:48:04] Production.INFO: ==6399== Lock acquired, processing the job... [2025-03-03 03:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:48:04] Production.INFO: Account Balance Start. [2025-03-03 03:48:04] Production.INFO: CreateAllLog Start [2025-03-03 03:48:04] Production.INFO: 117 [2025-03-03 03:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:04] Production.INFO: ==6391== Lock acquired, processing the job... [2025-03-03 03:48:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:04] Production.INFO: ==6395== Lock acquired, processing the job... [2025-03-03 03:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:04] Production.INFO: ==6393== Releasing lock... [2025-03-03 03:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:04] Production.INFO: ==6401== Lock acquired, processing the job... [2025-03-03 03:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:04] Production.ERROR: done [2025-03-03 03:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:48:05] Production.INFO: count ==13 [2025-03-03 03:48:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:48:05] Production.INFO: count ==21 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595810') start [2025-03-03 03:48:05] Production.ERROR: done [2025-03-03 03:48:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:48:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595810') end [2025-03-03 03:48:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:48:05] Production.INFO: 1 [2025-03-03 03:48:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:48:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: ==6401== Releasing lock... [2025-03-03 03:48:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:48:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:48:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:48:05] Production.INFO: Total Charge 0 [2025-03-03 03:48:05] Production.INFO: CreateAllLog End [2025-03-03 03:48:05] Production.INFO: Account Balance End. [2025-03-03 03:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:48:05] Production.INFO: ==6397== Releasing lock... [2025-03-03 03:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:48:12] Production.ERROR: CronJobId end10 [2025-03-03 03:48:12] Production.INFO: ==6395== Releasing lock... [2025-03-03 03:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:48:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:48:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:48:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:48:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:48:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:48:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:48:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:48:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:48:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:48:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:48:16] Production.INFO: call_cost start [2025-03-03 03:48:16] Production.INFO: call_cost end [2025-03-03 03:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:48:16] Production.INFO: ==6391== Releasing lock... [2025-03-03 03:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:48:17] Production.INFO: count ==409 [2025-03-03 03:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595811', 'tblTempUsageDetail_20' ) start [2025-03-03 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595811', 'tblTempUsageDetail_20' ) end [2025-03-03 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595811', 'tblTempVendorCDR_20' ) start [2025-03-03 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595811', 'tblTempVendorCDR_20' ) end [2025-03-03 03:48:17] Production.INFO: ProcessCDR(1,14595811,1,1,2) [2025-03-03 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595811', 'tblTempUsageDetail_20' ) start [2025-03-03 03:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595811', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:48:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:48:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:48:25] Production.INFO: ==6399== Releasing lock... [2025-03-03 03:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:48:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:49:01] Production.INFO: ==6463== Lock acquired, processing the job... [2025-03-03 08:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:49:01] Production.INFO: neon service started [2025-03-03 08:49:01] Production.INFO: neon service started [2025-03-03 08:49:01] Production.INFO: ==6463== Releasing lock... [2025-03-03 08:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:49:02] Production.INFO: ==6465== Lock acquired, processing the job... [2025-03-03 03:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:49:02] Production.INFO: ==6465== Releasing lock... [2025-03-03 03:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:49:02] Production.INFO: ==6467== Lock acquired, processing the job... [2025-03-03 08:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:49:02] Production.INFO: ==6467== Releasing lock... [2025-03-03 08:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:49:03] Production.INFO: ==6480== Lock acquired, processing the job... [2025-03-03 03:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:49:03] Production.INFO: ==6475== Lock acquired, processing the job... [2025-03-03 03:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:49:03] Production.INFO: count ==13 [2025-03-03 03:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:49:03] Production.INFO: count ==21 [2025-03-03 03:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595812') start [2025-03-03 03:49:03] Production.INFO: ==6469== Lock acquired, processing the job... [2025-03-03 03:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:49:03] Production.INFO: Account Balance Start. [2025-03-03 03:49:03] Production.INFO: CreateAllLog Start [2025-03-03 03:49:03] Production.INFO: 117 [2025-03-03 03:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:49:03] Production.INFO: ==6473== Lock acquired, processing the job... [2025-03-03 03:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595812') end [2025-03-03 03:49:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:49:03] Production.INFO: 1 [2025-03-03 03:49:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:49:03] Production.INFO: ==6471== Lock acquired, processing the job... [2025-03-03 03:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: ==6480== Releasing lock... [2025-03-03 03:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:49:04] Production.INFO: ==6477== Lock acquired, processing the job... [2025-03-03 03:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.ERROR: done [2025-03-03 03:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: ==6471== Releasing lock... [2025-03-03 03:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.ERROR: done [2025-03-03 03:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:49:05] Production.INFO: Total Charge 0 [2025-03-03 03:49:05] Production.INFO: CreateAllLog End [2025-03-03 03:49:05] Production.INFO: Account Balance End. [2025-03-03 03:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:49:05] Production.INFO: ==6475== Releasing lock... [2025-03-03 03:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:49:13] Production.ERROR: CronJobId end10 [2025-03-03 03:49:13] Production.INFO: ==6473== Releasing lock... [2025-03-03 03:49:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:49:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:49:16] Production.INFO: call_cost start [2025-03-03 03:49:16] Production.INFO: call_cost end [2025-03-03 03:49:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:49:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:49:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:49:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:49:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:49:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:49:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:49:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:49:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:49:16] Production.INFO: ==6469== Releasing lock... [2025-03-03 03:49:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:49:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:49:16] Production.INFO: count ==409 [2025-03-03 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595816', 'tblTempUsageDetail_20' ) start [2025-03-03 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595816', 'tblTempUsageDetail_20' ) end [2025-03-03 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595816', 'tblTempVendorCDR_20' ) start [2025-03-03 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595816', 'tblTempVendorCDR_20' ) end [2025-03-03 03:49:17] Production.INFO: ProcessCDR(1,14595816,1,1,2) [2025-03-03 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595816', 'tblTempUsageDetail_20' ) start [2025-03-03 03:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595816', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:49:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:49:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:49:25] Production.INFO: ==6477== Releasing lock... [2025-03-03 03:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:49:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:50:02] Production.INFO: ==6553== Lock acquired, processing the job... [2025-03-03 08:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:50:02] Production.INFO: neon service started [2025-03-03 08:50:02] Production.INFO: neon service started [2025-03-03 08:50:02] Production.INFO: ==6553== Releasing lock... [2025-03-03 08:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:50:02] Production.INFO: ==6555== Lock acquired, processing the job... [2025-03-03 03:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:50:02] Production.INFO: ==6557== Lock acquired, processing the job... [2025-03-03 08:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:50:02] Production.INFO: ==6557== Releasing lock... [2025-03-03 08:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:50:03] Production.INFO: ==6555== Releasing lock... [2025-03-03 03:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:50:04] Production.INFO: ==6559== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 03:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 03:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 03:50:04] Production.INFO: ==6559== Releasing lock... [2025-03-03 03:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 03:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 03:50:04] Production.INFO: ==6568== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:50:04] Production.INFO: ==6572== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 03:50:04] Production.INFO: Account Balance Start. [2025-03-03 03:50:04] Production.INFO: CreateAllLog Start [2025-03-03 03:50:04] Production.INFO: 117 [2025-03-03 03:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:50:04] Production.INFO: ==6574== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: ==6561== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: ==6563== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: ==6566== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: ==6570== Lock acquired, processing the job... [2025-03-03 03:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: count ==13 [2025-03-03 03:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:50:04] Production.INFO: count ==21 [2025-03-03 03:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595818') start [2025-03-03 03:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595818') end [2025-03-03 03:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:50:05] Production.ERROR: done [2025-03-03 03:50:05] Production.INFO: 1 [2025-03-03 03:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: ==6574== Releasing lock... [2025-03-03 03:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 03:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595821', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: ==6563== Releasing lock... [2025-03-03 03:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.ERROR: done [2025-03-03 03:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:50:05] Production.INFO: Total Charge 0 [2025-03-03 03:50:05] Production.ERROR: done [2025-03-03 03:50:05] Production.INFO: CreateAllLog End [2025-03-03 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:50:05] Production.INFO: Account Balance End. [2025-03-03 03:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:50:05] Production.INFO: ==6568== Releasing lock... [2025-03-03 03:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595821', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 03:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 03:50:10] Production.INFO: ProcessCDR(1,14595821,1,1,2) [2025-03-03 03:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595821,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595821,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 03:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 03:50:10] Production.INFO: ==6572== Releasing lock... [2025-03-03 03:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 03:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 03:50:14] Production.ERROR: CronJobId end10 [2025-03-03 03:50:14] Production.INFO: ==6566== Releasing lock... [2025-03-03 03:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:50:17] Production.INFO: count ==409 [2025-03-03 03:50:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595822', 'tblTempUsageDetail_20' ) start [2025-03-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595822', 'tblTempUsageDetail_20' ) end [2025-03-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595822', 'tblTempVendorCDR_20' ) start [2025-03-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595822', 'tblTempVendorCDR_20' ) end [2025-03-03 03:50:18] Production.INFO: ProcessCDR(1,14595822,1,1,2) [2025-03-03 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:50:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:50:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:50:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:50:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:50:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:50:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:50:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:50:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:50:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:50:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:50:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:50:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:50:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:50:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:50:18] Production.INFO: call_cost start [2025-03-03 03:50:18] Production.INFO: call_cost end [2025-03-03 03:50:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:50:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:50:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:50:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:50:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:50:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:50:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:50:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:50:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:50:18] Production.INFO: ==6561== Releasing lock... [2025-03-03 03:50:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:50:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595822', 'tblTempUsageDetail_20' ) start [2025-03-03 03:50:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595822', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:50:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:50:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:50:26] Production.INFO: ==6570== Releasing lock... [2025-03-03 03:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:50:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:51:01] Production.INFO: ==6633== Lock acquired, processing the job... [2025-03-03 08:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:51:01] Production.INFO: neon service started [2025-03-03 08:51:01] Production.INFO: neon service started [2025-03-03 08:51:01] Production.INFO: ==6633== Releasing lock... [2025-03-03 08:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:51:02] Production.INFO: ==6635== Lock acquired, processing the job... [2025-03-03 03:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:51:02] Production.INFO: ==6635== Releasing lock... [2025-03-03 03:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:51:02] Production.INFO: ==6637== Lock acquired, processing the job... [2025-03-03 08:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:51:02] Production.INFO: ==6637== Releasing lock... [2025-03-03 08:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:51:03] Production.INFO: ==6640== Lock acquired, processing the job... [2025-03-03 03:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:51:03] Production.INFO: ==6642== Lock acquired, processing the job... [2025-03-03 03:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:51:03] Production.INFO: ==6644== Lock acquired, processing the job... [2025-03-03 03:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:51:03] Production.INFO: ==6646== Lock acquired, processing the job... [2025-03-03 03:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:51:03] Production.INFO: ==6642== Releasing lock... [2025-03-03 03:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:51:03] Production.INFO: ==6648== Lock acquired, processing the job... [2025-03-03 03:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:51:03] Production.INFO: Account Balance Start. [2025-03-03 03:51:03] Production.INFO: CreateAllLog Start [2025-03-03 03:51:03] Production.INFO: 117 [2025-03-03 03:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 03:51:04] Production.INFO: ==6650== Lock acquired, processing the job... [2025-03-03 03:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: count ==13 [2025-03-03 03:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:51:04] Production.INFO: count ==21 [2025-03-03 03:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595826') start [2025-03-03 03:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595826') end [2025-03-03 03:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:51:04] Production.INFO: 1 [2025-03-03 03:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:51:04] Production.ERROR: done [2025-03-03 03:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: ==6650== Releasing lock... [2025-03-03 03:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:51:04] Production.ERROR: done [2025-03-03 03:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:51:05] Production.INFO: Total Charge 0 [2025-03-03 03:51:05] Production.INFO: CreateAllLog End [2025-03-03 03:51:05] Production.INFO: Account Balance End. [2025-03-03 03:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:51:05] Production.INFO: ==6646== Releasing lock... [2025-03-03 03:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:51:12] Production.ERROR: CronJobId end10 [2025-03-03 03:51:12] Production.INFO: ==6644== Releasing lock... [2025-03-03 03:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:51:14] Production.INFO: call_cost start [2025-03-03 03:51:14] Production.INFO: call_cost end [2025-03-03 03:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:51:14] Production.INFO: ==6640== Releasing lock... [2025-03-03 03:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:51:16] Production.INFO: count ==409 [2025-03-03 03:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595827', 'tblTempUsageDetail_20' ) start [2025-03-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595827', 'tblTempUsageDetail_20' ) end [2025-03-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595827', 'tblTempVendorCDR_20' ) start [2025-03-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595827', 'tblTempVendorCDR_20' ) end [2025-03-03 03:51:17] Production.INFO: ProcessCDR(1,14595827,1,1,2) [2025-03-03 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595827', 'tblTempUsageDetail_20' ) start [2025-03-03 03:51:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595827', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:51:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:51:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:51:25] Production.INFO: ==6648== Releasing lock... [2025-03-03 03:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:51:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:52:02] Production.INFO: ==6722== Lock acquired, processing the job... [2025-03-03 08:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:52:02] Production.INFO: neon service started [2025-03-03 08:52:02] Production.INFO: neon service started [2025-03-03 08:52:02] Production.INFO: ==6722== Releasing lock... [2025-03-03 08:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:52:02] Production.INFO: ==6725== Lock acquired, processing the job... [2025-03-03 03:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:52:03] Production.INFO: ==6725== Releasing lock... [2025-03-03 03:52:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:52:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:52:03] Production.INFO: ==6727== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:52:03] Production.INFO: ==6727== Releasing lock... [2025-03-03 08:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:52:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:52:04] Production.INFO: ==6733== Lock acquired, processing the job... [2025-03-03 03:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:52:04] Production.INFO: ==6739== Lock acquired, processing the job... [2025-03-03 03:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:52:04] Production.INFO: ==6729== Lock acquired, processing the job... [2025-03-03 03:52:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:52:04] Production.INFO: ==6731== Lock acquired, processing the job... [2025-03-03 03:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:52:04] Production.INFO: count ==13 [2025-03-03 03:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:52:04] Production.INFO: count ==21 [2025-03-03 03:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595828') start [2025-03-03 03:52:04] Production.INFO: ==6735== Lock acquired, processing the job... [2025-03-03 03:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:52:04] Production.INFO: ==6737== Lock acquired, processing the job... [2025-03-03 03:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595828') end [2025-03-03 03:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:52:04] Production.INFO: 1 [2025-03-03 03:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:52:04] Production.INFO: ==6739== Releasing lock... [2025-03-03 03:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:52:04] Production.INFO: Account Balance Start. [2025-03-03 03:52:04] Production.INFO: CreateAllLog Start [2025-03-03 03:52:04] Production.INFO: 117 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: ==6731== Releasing lock... [2025-03-03 03:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.ERROR: done [2025-03-03 03:52:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.ERROR: done [2025-03-03 03:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:52:05] Production.INFO: Total Charge 0 [2025-03-03 03:52:05] Production.INFO: CreateAllLog End [2025-03-03 03:52:05] Production.INFO: Account Balance End. [2025-03-03 03:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:52:05] Production.INFO: ==6735== Releasing lock... [2025-03-03 03:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:52:13] Production.ERROR: CronJobId end10 [2025-03-03 03:52:13] Production.INFO: ==6733== Releasing lock... [2025-03-03 03:52:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:52:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:52:16] Production.INFO: call_cost start [2025-03-03 03:52:16] Production.INFO: call_cost end [2025-03-03 03:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:52:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:52:16] Production.INFO: ==6729== Releasing lock... [2025-03-03 03:52:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:52:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:52:17] Production.INFO: count ==409 [2025-03-03 03:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595832', 'tblTempUsageDetail_20' ) start [2025-03-03 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595832', 'tblTempUsageDetail_20' ) end [2025-03-03 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595832', 'tblTempVendorCDR_20' ) start [2025-03-03 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595832', 'tblTempVendorCDR_20' ) end [2025-03-03 03:52:17] Production.INFO: ProcessCDR(1,14595832,1,1,2) [2025-03-03 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595832', 'tblTempUsageDetail_20' ) start [2025-03-03 03:52:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595832', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:52:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:52:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:52:26] Production.INFO: ==6737== Releasing lock... [2025-03-03 03:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:52:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:53:01] Production.INFO: ==6813== Lock acquired, processing the job... [2025-03-03 08:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:53:01] Production.INFO: neon service started [2025-03-03 08:53:01] Production.INFO: neon service started [2025-03-03 08:53:01] Production.INFO: ==6813== Releasing lock... [2025-03-03 08:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:53:02] Production.INFO: ==6817== Lock acquired, processing the job... [2025-03-03 08:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:53:02] Production.INFO: ==6817== Releasing lock... [2025-03-03 08:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:53:02] Production.INFO: ==6815== Lock acquired, processing the job... [2025-03-03 03:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:53:02] Production.INFO: ==6815== Releasing lock... [2025-03-03 03:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:53:03] Production.INFO: ==6820== Lock acquired, processing the job... [2025-03-03 03:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:53:03] Production.INFO: ==6822== Lock acquired, processing the job... [2025-03-03 03:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:53:03] Production.INFO: ==6826== Lock acquired, processing the job... [2025-03-03 03:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:53:03] Production.INFO: ==6824== Lock acquired, processing the job... [2025-03-03 03:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:53:03] Production.INFO: ==6828== Lock acquired, processing the job... [2025-03-03 03:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:53:03] Production.INFO: Account Balance Start. [2025-03-03 03:53:03] Production.INFO: CreateAllLog Start [2025-03-03 03:53:03] Production.INFO: 117 [2025-03-03 03:53:04] Production.INFO: ==6830== Lock acquired, processing the job... [2025-03-03 03:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: count ==13 [2025-03-03 03:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:53:04] Production.INFO: count ==21 [2025-03-03 03:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595836') start [2025-03-03 03:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: ==6822== Releasing lock... [2025-03-03 03:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595836') end [2025-03-03 03:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:53:04] Production.INFO: 1 [2025-03-03 03:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: ==6830== Releasing lock... [2025-03-03 03:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.ERROR: done [2025-03-03 03:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.ERROR: done [2025-03-03 03:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:53:05] Production.INFO: Total Charge 0 [2025-03-03 03:53:05] Production.INFO: CreateAllLog End [2025-03-03 03:53:05] Production.INFO: Account Balance End. [2025-03-03 03:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:53:05] Production.INFO: ==6826== Releasing lock... [2025-03-03 03:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:53:12] Production.ERROR: CronJobId end10 [2025-03-03 03:53:12] Production.INFO: ==6824== Releasing lock... [2025-03-03 03:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:53:14] Production.INFO: call_cost start [2025-03-03 03:53:14] Production.INFO: call_cost end [2025-03-03 03:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:53:14] Production.INFO: ==6820== Releasing lock... [2025-03-03 03:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:53:16] Production.INFO: count ==409 [2025-03-03 03:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595837', 'tblTempUsageDetail_20' ) start [2025-03-03 03:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595837', 'tblTempUsageDetail_20' ) end [2025-03-03 03:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595837', 'tblTempVendorCDR_20' ) start [2025-03-03 03:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595837', 'tblTempVendorCDR_20' ) end [2025-03-03 03:53:16] Production.INFO: ProcessCDR(1,14595837,1,1,2) [2025-03-03 03:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595837', 'tblTempUsageDetail_20' ) start [2025-03-03 03:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595837', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:53:24] Production.INFO: ==6828== Releasing lock... [2025-03-03 03:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:54:02] Production.INFO: ==6894== Lock acquired, processing the job... [2025-03-03 08:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:54:02] Production.INFO: neon service started [2025-03-03 08:54:02] Production.INFO: neon service started [2025-03-03 08:54:02] Production.INFO: ==6894== Releasing lock... [2025-03-03 08:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:54:02] Production.INFO: ==6896== Lock acquired, processing the job... [2025-03-03 03:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:54:03] Production.INFO: ==6896== Releasing lock... [2025-03-03 03:54:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:54:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:54:03] Production.INFO: ==6898== Lock acquired, processing the job... [2025-03-03 08:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:54:03] Production.INFO: ==6898== Releasing lock... [2025-03-03 08:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:54:04] Production.INFO: ==6909== Lock acquired, processing the job... [2025-03-03 03:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:54:04] Production.INFO: ==6900== Lock acquired, processing the job... [2025-03-03 03:54:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:54:04] Production.INFO: ==6911== Lock acquired, processing the job... [2025-03-03 03:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:54:04] Production.INFO: ==6902== Lock acquired, processing the job... [2025-03-03 03:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:54:04] Production.INFO: ==6905== Lock acquired, processing the job... [2025-03-03 03:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:54:04] Production.INFO: ==6907== Lock acquired, processing the job... [2025-03-03 03:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:54:04] Production.INFO: count ==13 [2025-03-03 03:54:04] Production.ERROR: done [2025-03-03 03:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:54:04] Production.INFO: count ==21 [2025-03-03 03:54:04] Production.INFO: Account Balance Start. [2025-03-03 03:54:04] Production.INFO: CreateAllLog Start [2025-03-03 03:54:04] Production.INFO: 117 [2025-03-03 03:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595838') start [2025-03-03 03:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595838') end [2025-03-03 03:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:54:04] Production.INFO: 1 [2025-03-03 03:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:54:04] Production.INFO: ==6911== Releasing lock... [2025-03-03 03:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:54:04] Production.INFO: ==6902== Releasing lock... [2025-03-03 03:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:54:04] Production.ERROR: done [2025-03-03 03:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:54:05] Production.INFO: Date 2025-02-12 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-13 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:54:05] Production.INFO: Total Charge 0 [2025-03-03 03:54:05] Production.INFO: CreateAllLog End [2025-03-03 03:54:05] Production.INFO: Account Balance End. [2025-03-03 03:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:54:05] Production.INFO: ==6907== Releasing lock... [2025-03-03 03:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:54:12] Production.ERROR: CronJobId end10 [2025-03-03 03:54:12] Production.INFO: ==6905== Releasing lock... [2025-03-03 03:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:54:15] Production.INFO: call_cost start [2025-03-03 03:54:15] Production.INFO: call_cost end [2025-03-03 03:54:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:54:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:54:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:54:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:54:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:54:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:54:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:54:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:54:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:54:15] Production.INFO: ==6900== Releasing lock... [2025-03-03 03:54:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:54:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:54:16] Production.INFO: count ==409 [2025-03-03 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595842', 'tblTempUsageDetail_20' ) start [2025-03-03 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595842', 'tblTempUsageDetail_20' ) end [2025-03-03 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595842', 'tblTempVendorCDR_20' ) start [2025-03-03 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595842', 'tblTempVendorCDR_20' ) end [2025-03-03 03:54:17] Production.INFO: ProcessCDR(1,14595842,1,1,2) [2025-03-03 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595842', 'tblTempUsageDetail_20' ) start [2025-03-03 03:54:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595842', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:54:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:54:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:54:25] Production.INFO: ==6909== Releasing lock... [2025-03-03 03:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:54:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:55:01] Production.INFO: ==6978== Lock acquired, processing the job... [2025-03-03 08:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:55:01] Production.INFO: neon service started [2025-03-03 08:55:01] Production.INFO: neon service started [2025-03-03 08:55:01] Production.INFO: ==6978== Releasing lock... [2025-03-03 08:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:55:02] Production.INFO: ==6980== Lock acquired, processing the job... [2025-03-03 03:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:55:02] Production.INFO: ==6980== Releasing lock... [2025-03-03 03:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:55:02] Production.INFO: ==6982== Lock acquired, processing the job... [2025-03-03 08:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:55:02] Production.INFO: ==6982== Releasing lock... [2025-03-03 08:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:55:03] Production.INFO: ==6986== Lock acquired, processing the job... [2025-03-03 03:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:55:03] Production.INFO: ==6994== Lock acquired, processing the job... [2025-03-03 03:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:55:03] Production.INFO: ==6984== Lock acquired, processing the job... [2025-03-03 03:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:55:03] Production.INFO: count ==13 [2025-03-03 03:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:55:03] Production.INFO: count ==21 [2025-03-03 03:55:03] Production.INFO: ==6988== Lock acquired, processing the job... [2025-03-03 03:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:55:03] Production.INFO: ==6986== Releasing lock... [2025-03-03 03:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:55:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595844') start [2025-03-03 03:55:03] Production.INFO: ==6990== Lock acquired, processing the job... [2025-03-03 03:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:55:03] Production.INFO: ==6992== Lock acquired, processing the job... [2025-03-03 03:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:55:04] Production.INFO: Account Balance Start. [2025-03-03 03:55:04] Production.INFO: CreateAllLog Start [2025-03-03 03:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:55:04] Production.INFO: 117 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595844') end [2025-03-03 03:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:55:04] Production.INFO: 1 [2025-03-03 03:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: ==6994== Releasing lock... [2025-03-03 03:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.ERROR: done [2025-03-03 03:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.ERROR: done [2025-03-03 03:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 03:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:55:05] Production.INFO: Total Charge 0 [2025-03-03 03:55:05] Production.INFO: CreateAllLog End [2025-03-03 03:55:05] Production.INFO: Account Balance End. [2025-03-03 03:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:55:05] Production.INFO: ==6990== Releasing lock... [2025-03-03 03:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:55:13] Production.ERROR: CronJobId end10 [2025-03-03 03:55:13] Production.INFO: ==6988== Releasing lock... [2025-03-03 03:55:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:55:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:55:15] Production.INFO: call_cost start [2025-03-03 03:55:15] Production.INFO: call_cost end [2025-03-03 03:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:55:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:55:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:55:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:55:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:55:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:55:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:55:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:55:15] Production.INFO: ==6984== Releasing lock... [2025-03-03 03:55:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:55:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:55:17] Production.INFO: count ==409 [2025-03-03 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595847', 'tblTempUsageDetail_20' ) start [2025-03-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595847', 'tblTempUsageDetail_20' ) end [2025-03-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595847', 'tblTempVendorCDR_20' ) start [2025-03-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595847', 'tblTempVendorCDR_20' ) end [2025-03-03 03:55:17] Production.INFO: ProcessCDR(1,14595847,1,1,2) [2025-03-03 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595847', 'tblTempUsageDetail_20' ) start [2025-03-03 03:55:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595847', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:55:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:55:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:55:26] Production.INFO: ==6992== Releasing lock... [2025-03-03 03:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:55:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:56:02] Production.INFO: ==7057== Lock acquired, processing the job... [2025-03-03 08:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:56:02] Production.INFO: neon service started [2025-03-03 08:56:02] Production.INFO: neon service started [2025-03-03 08:56:02] Production.INFO: ==7057== Releasing lock... [2025-03-03 08:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:56:02] Production.INFO: ==7062== Lock acquired, processing the job... [2025-03-03 08:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:56:02] Production.INFO: ==7062== Releasing lock... [2025-03-03 08:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:56:02] Production.INFO: ==7060== Lock acquired, processing the job... [2025-03-03 03:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:56:03] Production.INFO: ==7060== Releasing lock... [2025-03-03 03:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:56:04] Production.INFO: ==7070== Lock acquired, processing the job... [2025-03-03 03:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:56:04] Production.INFO: ==7072== Lock acquired, processing the job... [2025-03-03 03:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:56:04] Production.INFO: ==7064== Lock acquired, processing the job... [2025-03-03 03:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:56:04] Production.INFO: Account Balance Start. [2025-03-03 03:56:04] Production.INFO: CreateAllLog Start [2025-03-03 03:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:56:04] Production.INFO: 117 [2025-03-03 03:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:56:04] Production.INFO: ==7066== Lock acquired, processing the job... [2025-03-03 03:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.INFO: ==7068== Lock acquired, processing the job... [2025-03-03 03:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.INFO: ==7074== Lock acquired, processing the job... [2025-03-03 03:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:56:04] Production.INFO: count ==13 [2025-03-03 03:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:56:04] Production.INFO: count ==21 [2025-03-03 03:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595850') start [2025-03-03 03:56:04] Production.ERROR: done [2025-03-03 03:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595850') end [2025-03-03 03:56:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:56:05] Production.INFO: 1 [2025-03-03 03:56:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:56:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: ==7074== Releasing lock... [2025-03-03 03:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:56:05] Production.ERROR: done [2025-03-03 03:56:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: ==7066== Releasing lock... [2025-03-03 03:56:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:56:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:56:05] Production.INFO: Total Charge 0 [2025-03-03 03:56:05] Production.INFO: CreateAllLog End [2025-03-03 03:56:05] Production.INFO: Account Balance End. [2025-03-03 03:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:56:05] Production.INFO: ==7070== Releasing lock... [2025-03-03 03:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:56:12] Production.ERROR: CronJobId end10 [2025-03-03 03:56:12] Production.INFO: ==7068== Releasing lock... [2025-03-03 03:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:56:15] Production.INFO: call_cost start [2025-03-03 03:56:15] Production.INFO: call_cost end [2025-03-03 03:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:56:15] Production.INFO: ==7064== Releasing lock... [2025-03-03 03:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:56:17] Production.INFO: count ==409 [2025-03-03 03:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595852', 'tblTempUsageDetail_20' ) start [2025-03-03 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595852', 'tblTempUsageDetail_20' ) end [2025-03-03 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595852', 'tblTempVendorCDR_20' ) start [2025-03-03 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595852', 'tblTempVendorCDR_20' ) end [2025-03-03 03:56:17] Production.INFO: ProcessCDR(1,14595852,1,1,2) [2025-03-03 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595852', 'tblTempUsageDetail_20' ) start [2025-03-03 03:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595852', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:56:25] Production.INFO: ==7072== Releasing lock... [2025-03-03 03:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:57:01] Production.INFO: ==7136== Lock acquired, processing the job... [2025-03-03 08:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:57:01] Production.INFO: neon service started [2025-03-03 08:57:01] Production.INFO: neon service started [2025-03-03 08:57:01] Production.INFO: ==7136== Releasing lock... [2025-03-03 08:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:57:02] Production.INFO: ==7138== Lock acquired, processing the job... [2025-03-03 03:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:57:02] Production.INFO: ==7140== Lock acquired, processing the job... [2025-03-03 08:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 03:57:02] Production.INFO: ==7138== Releasing lock... [2025-03-03 03:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:57:02] Production.INFO: ==7140== Releasing lock... [2025-03-03 08:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:57:03] Production.INFO: ==7142== Lock acquired, processing the job... [2025-03-03 03:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:57:03] Production.INFO: ==7144== Lock acquired, processing the job... [2025-03-03 03:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:57:03] Production.INFO: ==7146== Lock acquired, processing the job... [2025-03-03 03:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:57:03] Production.INFO: ==7153== Lock acquired, processing the job... [2025-03-03 03:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:57:03] Production.INFO: ==7149== Lock acquired, processing the job... [2025-03-03 03:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:57:04] Production.INFO: ==7144== Releasing lock... [2025-03-03 03:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:57:04] Production.INFO: Account Balance Start. [2025-03-03 03:57:04] Production.INFO: CreateAllLog Start [2025-03-03 03:57:04] Production.INFO: 117 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: ==7151== Lock acquired, processing the job... [2025-03-03 03:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:57:04] Production.INFO: count ==13 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:57:04] Production.INFO: count ==21 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595855') start [2025-03-03 03:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595855') end [2025-03-03 03:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:57:04] Production.INFO: 1 [2025-03-03 03:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: ==7153== Releasing lock... [2025-03-03 03:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:57:04] Production.ERROR: done [2025-03-03 03:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.ERROR: done [2025-03-03 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:57:05] Production.INFO: Total Charge 0 [2025-03-03 03:57:05] Production.INFO: CreateAllLog End [2025-03-03 03:57:05] Production.INFO: Account Balance End. [2025-03-03 03:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:57:05] Production.INFO: ==7149== Releasing lock... [2025-03-03 03:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:57:13] Production.ERROR: CronJobId end10 [2025-03-03 03:57:13] Production.INFO: ==7146== Releasing lock... [2025-03-03 03:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:57:16] Production.INFO: call_cost start [2025-03-03 03:57:16] Production.INFO: call_cost end [2025-03-03 03:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:57:16] Production.INFO: ==7142== Releasing lock... [2025-03-03 03:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:57:16] Production.INFO: count ==409 [2025-03-03 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595857', 'tblTempUsageDetail_20' ) start [2025-03-03 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595857', 'tblTempUsageDetail_20' ) end [2025-03-03 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595857', 'tblTempVendorCDR_20' ) start [2025-03-03 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595857', 'tblTempVendorCDR_20' ) end [2025-03-03 03:57:17] Production.INFO: ProcessCDR(1,14595857,1,1,2) [2025-03-03 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595857', 'tblTempUsageDetail_20' ) start [2025-03-03 03:57:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595857', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:57:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:57:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:57:25] Production.INFO: ==7151== Releasing lock... [2025-03-03 03:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:58:02] Production.INFO: ==7246== Lock acquired, processing the job... [2025-03-03 08:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:58:02] Production.INFO: neon service started [2025-03-03 08:58:02] Production.INFO: neon service started [2025-03-03 08:58:02] Production.INFO: ==7246== Releasing lock... [2025-03-03 08:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:58:02] Production.INFO: ==7248== Lock acquired, processing the job... [2025-03-03 03:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 03:58:03] Production.INFO: ==7248== Releasing lock... [2025-03-03 03:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:58:03] Production.INFO: ==7250== Lock acquired, processing the job... [2025-03-03 08:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:58:03] Production.INFO: ==7250== Releasing lock... [2025-03-03 08:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:58:03] Production.INFO: ==7252== Lock acquired, processing the job... [2025-03-03 03:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:58:04] Production.INFO: ==7254== Lock acquired, processing the job... [2025-03-03 03:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:58:04] Production.INFO: ==7256== Lock acquired, processing the job... [2025-03-03 03:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:58:04] Production.INFO: ==7258== Lock acquired, processing the job... [2025-03-03 03:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:58:04] Production.INFO: ==7254== Releasing lock... [2025-03-03 03:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:58:04] Production.INFO: ==7261== Lock acquired, processing the job... [2025-03-03 03:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:58:04] Production.INFO: Account Balance Start. [2025-03-03 03:58:04] Production.INFO: CreateAllLog Start [2025-03-03 03:58:04] Production.INFO: 117 [2025-03-03 03:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:04] Production.INFO: ==7263== Lock acquired, processing the job... [2025-03-03 03:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:04] Production.INFO: count ==13 [2025-03-03 03:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:58:04] Production.INFO: count ==21 [2025-03-03 03:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595861') start [2025-03-03 03:58:05] Production.ERROR: done [2025-03-03 03:58:05] Production.INFO: Date 2025-02-14 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:58:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595861') end [2025-03-03 03:58:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:58:05] Production.INFO: 1 [2025-03-03 03:58:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:58:05] Production.INFO: Date 2025-02-15 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-16 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-17 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: ==7263== Releasing lock... [2025-03-03 03:58:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:58:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:58:05] Production.ERROR: done [2025-03-03 03:58:05] Production.INFO: Date 2025-02-18 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:58:05] Production.INFO: Total Charge 0 [2025-03-03 03:58:05] Production.INFO: CreateAllLog End [2025-03-03 03:58:05] Production.INFO: Account Balance End. [2025-03-03 03:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:58:05] Production.INFO: ==7258== Releasing lock... [2025-03-03 03:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:58:13] Production.ERROR: CronJobId end10 [2025-03-03 03:58:13] Production.INFO: ==7256== Releasing lock... [2025-03-03 03:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:58:16] Production.INFO: call_cost start [2025-03-03 03:58:16] Production.INFO: call_cost end [2025-03-03 03:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:58:16] Production.INFO: ==7252== Releasing lock... [2025-03-03 03:58:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:58:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:58:17] Production.INFO: count ==409 [2025-03-03 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595862', 'tblTempUsageDetail_20' ) start [2025-03-03 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595862', 'tblTempUsageDetail_20' ) end [2025-03-03 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595862', 'tblTempVendorCDR_20' ) start [2025-03-03 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595862', 'tblTempVendorCDR_20' ) end [2025-03-03 03:58:17] Production.INFO: ProcessCDR(1,14595862,1,1,2) [2025-03-03 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595862', 'tblTempUsageDetail_20' ) start [2025-03-03 03:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595862', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:58:25] Production.INFO: ==7261== Releasing lock... [2025-03-03 03:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:58:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 08:59:01] Production.INFO: ==7316== Lock acquired, processing the job... [2025-03-03 08:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 08:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 08:59:01] Production.INFO: neon service started [2025-03-03 08:59:01] Production.INFO: neon service started [2025-03-03 08:59:01] Production.INFO: ==7316== Releasing lock... [2025-03-03 08:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 08:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 03:59:02] Production.INFO: ==7318== Lock acquired, processing the job... [2025-03-03 03:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:59:02] Production.INFO: ==7320== Lock acquired, processing the job... [2025-03-03 08:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:59:02] Production.INFO: ==7320== Releasing lock... [2025-03-03 08:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 08:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 03:59:02] Production.INFO: ==7318== Releasing lock... [2025-03-03 03:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 03:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 03:59:03] Production.INFO: ==7323== Lock acquired, processing the job... [2025-03-03 03:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 03:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 03:59:03] Production.INFO: ==7325== Lock acquired, processing the job... [2025-03-03 03:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 03:59:03] Production.INFO: ==7329== Lock acquired, processing the job... [2025-03-03 03:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 03:59:03] Production.INFO: ==7327== Lock acquired, processing the job... [2025-03-03 03:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 03:59:03] Production.INFO: ==7331== Lock acquired, processing the job... [2025-03-03 03:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 03:59:04] Production.INFO: ==7333== Lock acquired, processing the job... [2025-03-03 03:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 03:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 03:59:04] Production.INFO: Account Balance Start. [2025-03-03 03:59:04] Production.INFO: CreateAllLog Start [2025-03-03 03:59:04] Production.INFO: 117 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 03:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 03:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 03:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 03:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:59:04] Production.INFO: count ==13 [2025-03-03 03:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 03:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: count ==21 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595866') start [2025-03-03 03:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: ==7325== Releasing lock... [2025-03-03 03:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 03:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 03:59:04] Production.ERROR: done [2025-03-03 03:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595866') end [2025-03-03 03:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 03:59:04] Production.INFO: 1 [2025-03-03 03:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 03:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: ==7333== Releasing lock... [2025-03-03 03:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 03:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 03:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.ERROR: done [2025-03-03 03:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 03:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 03:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-22 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 03:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 03:59:05] Production.INFO: Total Charge 0 [2025-03-03 03:59:05] Production.INFO: CreateAllLog End [2025-03-03 03:59:05] Production.INFO: Account Balance End. [2025-03-03 03:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 03:59:05] Production.INFO: ==7329== Releasing lock... [2025-03-03 03:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 03:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 03:59:12] Production.ERROR: CronJobId end10 [2025-03-03 03:59:12] Production.INFO: ==7327== Releasing lock... [2025-03-03 03:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 03:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 03:59:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 03:59:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 03:59:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 03:59:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 03:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 03:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 03:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 03:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 03:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 03:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 03:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 03:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 03:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 03:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 03:59:14] Production.INFO: call_cost start [2025-03-03 03:59:14] Production.INFO: call_cost end [2025-03-03 03:59:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 03:59:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 03:59:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 03:59:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 03:59:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 03:59:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 03:59:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 03:59:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 03:59:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 03:59:14] Production.INFO: ==7323== Releasing lock... [2025-03-03 03:59:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 03:59:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 03:59:16] Production.INFO: count ==409 [2025-03-03 03:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 03:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595867', 'tblTempUsageDetail_20' ) start [2025-03-03 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595867', 'tblTempUsageDetail_20' ) end [2025-03-03 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595867', 'tblTempVendorCDR_20' ) start [2025-03-03 03:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595867', 'tblTempVendorCDR_20' ) end [2025-03-03 03:59:16] Production.INFO: ProcessCDR(1,14595867,1,1,2) [2025-03-03 03:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595867', 'tblTempUsageDetail_20' ) start [2025-03-03 03:59:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595867', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 03:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 03:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 03:59:24] Production.INFO: ==7331== Releasing lock... [2025-03-03 03:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 03:59:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:00:02] Production.INFO: ==7386== Lock acquired, processing the job... [2025-03-03 09:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:00:02] Production.INFO: neon service started [2025-03-03 09:00:02] Production.INFO: neon service started [2025-03-03 09:00:02] Production.INFO: ==7386== Releasing lock... [2025-03-03 09:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:00:02] Production.INFO: ==7388== Lock acquired, processing the job... [2025-03-03 04:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:00:03] Production.INFO: ==7390== Lock acquired, processing the job... [2025-03-03 09:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:00:03] Production.INFO: ==7388== Releasing lock... [2025-03-03 04:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:00:03] Production.INFO: ==7390== Releasing lock... [2025-03-03 09:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:00:04] Production.INFO: ==7393== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 04:00:04] Production.INFO: ==7395== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: dbcleanup-command-dbcleanup-companyid-1-cronjobid-3 #Starts# [2025-03-03 04:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 04:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 04:00:04] Production.INFO: ==7393== Releasing lock... [2025-03-03 04:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 04:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:00:04] Production.INFO: ==7403== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:00:04] Production.INFO: ==7397== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:00:04] Production.INFO: ==7405== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:00:04] Production.INFO: DBcleanup Starts. [2025-03-03 04:00:04] Production.INFO: Usage Download Log Start. [2025-03-03 04:00:04] Production.INFO: Usage Download Log End. [2025-03-03 04:00:04] Production.INFO: Cronjob History Delete Start. [2025-03-03 04:00:04] Production.INFO: call prc_deleteJobOrCronJobLogByRetention(1,'2024-03-03','Cronjob') [2025-03-03 04:00:04] Production.INFO: ==7399== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:00:04] Production.INFO: Account Balance Start. [2025-03-03 04:00:04] Production.INFO: CreateAllLog Start [2025-03-03 04:00:04] Production.INFO: 117 [2025-03-03 04:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:00:04] Production.INFO: ==7401== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:04] Production.INFO: ==7409== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:04] Production.INFO: ==7407== Lock acquired, processing the job... [2025-03-03 04:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 04:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:00:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:00:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.ERROR: done [2025-03-03 04:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:00:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: count ==13 [2025-03-03 04:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:00:05] Production.INFO: count ==21 [2025-03-03 04:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595872') start [2025-03-03 04:00:05] Production.INFO: ==7399== Releasing lock... [2025-03-03 04:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:00:05] Production.ERROR: done [2025-03-03 04:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595872') end [2025-03-03 04:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:00:05] Production.INFO: 1 [2025-03-03 04:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: ==7409== Releasing lock... [2025-03-03 04:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:00:05] Production.ERROR: done [2025-03-03 04:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 04:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595874', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 04:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-21 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-22 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-23 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-24 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-25 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-26 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-27 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-02-28 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-03-01 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-03-02 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Date 2025-03-03 [2025-03-03 04:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:00:06] Production.INFO: Total Charge 0 [2025-03-03 04:00:06] Production.INFO: CreateAllLog End [2025-03-03 04:00:06] Production.INFO: Account Balance End. [2025-03-03 04:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 04:00:06] Production.INFO: ==7403== Releasing lock... [2025-03-03 04:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:00:12] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595874', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 04:00:12] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 04:00:12] Production.INFO: ProcessCDR(1,14595874,1,1,2) [2025-03-03 04:00:12] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595874,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:00:12] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595874,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:00:12] Production.ERROR: pbx prc_insertCDR start [2025-03-03 04:00:12] Production.ERROR: pbx prc_insertCDR end [2025-03-03 04:00:12] Production.INFO: ==7407== Releasing lock... [2025-03-03 04:00:12] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 04:00:12] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:00:17] Production.INFO: count ==409 [2025-03-03 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595873', 'tblTempUsageDetail_20' ) start [2025-03-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595873', 'tblTempUsageDetail_20' ) end [2025-03-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595873', 'tblTempVendorCDR_20' ) start [2025-03-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595873', 'tblTempVendorCDR_20' ) end [2025-03-03 04:00:18] Production.INFO: ProcessCDR(1,14595873,1,1,2) [2025-03-03 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:00:19] Production.INFO: Cronjob History Delete End. [2025-03-03 04:00:19] Production.INFO: Job Log Delete Start. [2025-03-03 04:00:19] Production.INFO: call prc_deleteJobOrCronJobLogByRetention(1,'2024-03-03','Job') [2025-03-03 04:00:19] Production.INFO: Job Log Delete End. [2025-03-03 04:00:19] Production.INFO: Customer RateSheet History Delete Starts. [2025-03-03 04:00:19] Production.INFO: Customer RateSheet History Delete End. [2025-03-03 04:00:19] Production.INFO: Vendor RateSheet History Delete Start. [2025-03-03 04:00:19] Production.INFO: Vendor RateSheet History Delete End. [2025-03-03 04:00:19] Production.INFO: All Old Rate Delete Start [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldVendorRate Start. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldVendorRate Done. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldCustomerRate Start. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldCustomerRate Done. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldRateTableRate Start. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldRateTableRate Done. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldRateSheetDetails Start. [2025-03-03 04:00:19] Production.INFO: DBcleanup: prc_WSCronJobDeleteOldRateSheetDetails Done. [2025-03-03 04:00:19] Production.INFO: All Old Rate Delete End [2025-03-03 04:00:19] Production.INFO: Customer CDR Delete Start. [2025-03-03 04:00:19] Production.INFO: Customer CDR Delete End. [2025-03-03 04:00:19] Production.INFO: Customer Failed Call Start. [2025-03-03 04:00:19] Production.INFO: Customer Failed Call Delete End. [2025-03-03 04:00:19] Production.INFO: Vendor CDR Delete Start. [2025-03-03 04:00:19] Production.INFO: Vendor CDR Delete End. [2025-03-03 04:00:19] Production.INFO: Vendor CDR Delete Start. [2025-03-03 04:00:19] Production.INFO: Vendor CDR Delete End. [2025-03-03 04:00:19] Production.INFO: RateLog Delete Start. [2025-03-03 04:00:19] Production.INFO: RateLog Delete End. [2025-03-03 04:00:19] Production.INFO: Archive Old Rate Delete Start. [2025-03-03 04:00:19] Production.INFO: Archive Old Rate Delete End. [2025-03-03 04:00:19] Production.INFO: Tickets Delete Start. [2025-03-03 04:00:19] Production.INFO: Tickets Delete End. [2025-03-03 04:00:19] Production.INFO: DBcleanup Done. [2025-03-03 04:00:20] Production.ERROR: CronJobId end 3 [2025-03-03 04:00:20] Production.INFO: ==7395== Releasing lock... [2025-03-03 04:00:20] Production.INFO: dbcleanup-command-dbcleanup-companyid-1-cronjobid-3 #Stops# [2025-03-03 04:00:20] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:00:21] Production.ERROR: CronJobId end10 [2025-03-03 04:00:21] Production.INFO: ==7401== Releasing lock... [2025-03-03 04:00:21] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:00:21] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:00:21] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:00:21] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:00:21] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:00:21] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:00:21] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:00:21] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:00:21] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:00:21] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:00:21] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:00:21] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:00:21] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:00:21] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:00:21] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:00:21] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:00:21] Production.INFO: call_cost start [2025-03-03 04:00:21] Production.INFO: call_cost end [2025-03-03 04:00:21] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:00:21] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:00:21] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:00:21] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:00:21] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:00:21] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:00:21] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:00:21] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:00:21] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:00:21] Production.INFO: ==7397== Releasing lock... [2025-03-03 04:00:21] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595873', 'tblTempUsageDetail_20' ) start [2025-03-03 04:00:27] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595873', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:00:28] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:00:28] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:00:28] Production.INFO: ==7405== Releasing lock... [2025-03-03 04:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:00:28] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:01:01] Production.INFO: ==7465== Lock acquired, processing the job... [2025-03-03 09:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:01:01] Production.INFO: neon service started [2025-03-03 09:01:01] Production.INFO: neon service started [2025-03-03 09:01:01] Production.INFO: ==7465== Releasing lock... [2025-03-03 09:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:01:02] Production.INFO: ==7477== Lock acquired, processing the job... [2025-03-03 04:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:01:02] Production.INFO: ==7479== Lock acquired, processing the job... [2025-03-03 09:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:01:02] Production.INFO: ==7479== Releasing lock... [2025-03-03 09:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:01:02] Production.INFO: ==7477== Releasing lock... [2025-03-03 04:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:01:03] Production.INFO: ==7482== Lock acquired, processing the job... [2025-03-03 04:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:01:03] Production.INFO: ==7490== Lock acquired, processing the job... [2025-03-03 04:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:01:03] Production.INFO: ==7488== Lock acquired, processing the job... [2025-03-03 04:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:01:04] Production.INFO: ==7484== Lock acquired, processing the job... [2025-03-03 04:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:01:04] Production.INFO: Account Balance Start. [2025-03-03 04:01:04] Production.INFO: CreateAllLog Start [2025-03-03 04:01:04] Production.INFO: 117 [2025-03-03 04:01:04] Production.INFO: ==7486== Lock acquired, processing the job... [2025-03-03 04:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:01:04] Production.INFO: ==7492== Lock acquired, processing the job... [2025-03-03 04:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:01:04] Production.INFO: count ==13 [2025-03-03 04:01:04] Production.ERROR: done [2025-03-03 04:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:01:04] Production.INFO: count ==21 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595878') start [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595878') end [2025-03-03 04:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:01:04] Production.INFO: 1 [2025-03-03 04:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:01:04] Production.ERROR: done [2025-03-03 04:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: ==7492== Releasing lock... [2025-03-03 04:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: ==7484== Releasing lock... [2025-03-03 04:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:01:05] Production.INFO: Total Charge 0 [2025-03-03 04:01:05] Production.INFO: CreateAllLog End [2025-03-03 04:01:05] Production.INFO: Account Balance End. [2025-03-03 04:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:01:05] Production.INFO: ==7488== Releasing lock... [2025-03-03 04:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:01:13] Production.ERROR: CronJobId end10 [2025-03-03 04:01:13] Production.INFO: ==7486== Releasing lock... [2025-03-03 04:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:01:15] Production.INFO: call_cost start [2025-03-03 04:01:15] Production.INFO: call_cost end [2025-03-03 04:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:01:16] Production.INFO: ==7482== Releasing lock... [2025-03-03 04:01:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:01:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:01:16] Production.INFO: count ==409 [2025-03-03 04:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595879', 'tblTempUsageDetail_20' ) start [2025-03-03 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595879', 'tblTempUsageDetail_20' ) end [2025-03-03 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595879', 'tblTempVendorCDR_20' ) start [2025-03-03 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595879', 'tblTempVendorCDR_20' ) end [2025-03-03 04:01:16] Production.INFO: ProcessCDR(1,14595879,1,1,2) [2025-03-03 04:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595879', 'tblTempUsageDetail_20' ) start [2025-03-03 04:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595879', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:01:25] Production.INFO: ==7490== Releasing lock... [2025-03-03 04:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:01:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:02:02] Production.INFO: ==7546== Lock acquired, processing the job... [2025-03-03 09:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:02:02] Production.INFO: neon service started [2025-03-03 09:02:02] Production.INFO: neon service started [2025-03-03 09:02:02] Production.INFO: ==7546== Releasing lock... [2025-03-03 09:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:02:02] Production.INFO: ==7548== Lock acquired, processing the job... [2025-03-03 04:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:02:03] Production.INFO: ==7548== Releasing lock... [2025-03-03 04:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:02:03] Production.INFO: ==7550== Lock acquired, processing the job... [2025-03-03 09:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:02:03] Production.INFO: ==7550== Releasing lock... [2025-03-03 09:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:02:04] Production.INFO: ==7557== Lock acquired, processing the job... [2025-03-03 04:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:02:04] Production.INFO: ==7563== Lock acquired, processing the job... [2025-03-03 04:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:02:04] Production.INFO: ==7553== Lock acquired, processing the job... [2025-03-03 04:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:02:04] Production.INFO: ==7555== Lock acquired, processing the job... [2025-03-03 04:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:02:04] Production.INFO: ==7559== Lock acquired, processing the job... [2025-03-03 04:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:02:04] Production.INFO: count ==13 [2025-03-03 04:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:02:04] Production.INFO: count ==21 [2025-03-03 04:02:04] Production.INFO: ==7561== Lock acquired, processing the job... [2025-03-03 04:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595880') start [2025-03-03 04:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:02:04] Production.INFO: Account Balance Start. [2025-03-03 04:02:04] Production.INFO: CreateAllLog Start [2025-03-03 04:02:04] Production.INFO: 117 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595880') end [2025-03-03 04:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:02:04] Production.INFO: 1 [2025-03-03 04:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: ==7563== Releasing lock... [2025-03-03 04:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:02:04] Production.INFO: ==7555== Releasing lock... [2025-03-03 04:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.ERROR: done [2025-03-03 04:02:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.ERROR: done [2025-03-03 04:02:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:02:05] Production.INFO: Total Charge 0 [2025-03-03 04:02:05] Production.INFO: CreateAllLog End [2025-03-03 04:02:06] Production.INFO: Account Balance End. [2025-03-03 04:02:06] Production.ERROR: CronJobId end 12 [2025-03-03 04:02:06] Production.INFO: ==7559== Releasing lock... [2025-03-03 04:02:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:02:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:02:13] Production.ERROR: CronJobId end10 [2025-03-03 04:02:13] Production.INFO: ==7557== Releasing lock... [2025-03-03 04:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:02:16] Production.INFO: call_cost start [2025-03-03 04:02:16] Production.INFO: call_cost end [2025-03-03 04:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:02:16] Production.INFO: ==7553== Releasing lock... [2025-03-03 04:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:02:17] Production.INFO: count ==409 [2025-03-03 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595884', 'tblTempUsageDetail_20' ) start [2025-03-03 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595884', 'tblTempUsageDetail_20' ) end [2025-03-03 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595884', 'tblTempVendorCDR_20' ) start [2025-03-03 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595884', 'tblTempVendorCDR_20' ) end [2025-03-03 04:02:17] Production.INFO: ProcessCDR(1,14595884,1,1,2) [2025-03-03 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595884', 'tblTempUsageDetail_20' ) start [2025-03-03 04:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595884', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:02:25] Production.INFO: ==7561== Releasing lock... [2025-03-03 04:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:02:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:03:01] Production.INFO: ==7618== Lock acquired, processing the job... [2025-03-03 09:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:03:01] Production.INFO: neon service started [2025-03-03 09:03:01] Production.INFO: neon service started [2025-03-03 09:03:01] Production.INFO: ==7618== Releasing lock... [2025-03-03 09:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:03:02] Production.INFO: ==7620== Lock acquired, processing the job... [2025-03-03 04:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:03:02] Production.INFO: ==7620== Releasing lock... [2025-03-03 04:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:03:02] Production.INFO: ==7622== Lock acquired, processing the job... [2025-03-03 09:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:03:02] Production.INFO: ==7622== Releasing lock... [2025-03-03 09:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:03:03] Production.INFO: ==7627== Lock acquired, processing the job... [2025-03-03 04:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:03:03] Production.INFO: ==7625== Lock acquired, processing the job... [2025-03-03 04:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:03:03] Production.INFO: ==7629== Lock acquired, processing the job... [2025-03-03 04:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:03:03] Production.INFO: ==7631== Lock acquired, processing the job... [2025-03-03 04:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:03:03] Production.INFO: ==7633== Lock acquired, processing the job... [2025-03-03 04:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:03:03] Production.INFO: ==7635== Lock acquired, processing the job... [2025-03-03 04:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:03:03] Production.INFO: count ==13 [2025-03-03 04:03:03] Production.INFO: Account Balance Start. [2025-03-03 04:03:03] Production.INFO: CreateAllLog Start [2025-03-03 04:03:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:03:03] Production.INFO: count ==21 [2025-03-03 04:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595888') start [2025-03-03 04:03:03] Production.INFO: 117 [2025-03-03 04:03:03] Production.INFO: ==7627== Releasing lock... [2025-03-03 04:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:03:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595888') end [2025-03-03 04:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:03:04] Production.INFO: 1 [2025-03-03 04:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.ERROR: done [2025-03-03 04:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:03:04] Production.INFO: ==7635== Releasing lock... [2025-03-03 04:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.ERROR: done [2025-03-03 04:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:03:05] Production.INFO: Total Charge 0 [2025-03-03 04:03:05] Production.INFO: CreateAllLog End [2025-03-03 04:03:05] Production.INFO: Account Balance End. [2025-03-03 04:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:03:05] Production.INFO: ==7631== Releasing lock... [2025-03-03 04:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:03:12] Production.ERROR: CronJobId end10 [2025-03-03 04:03:12] Production.INFO: ==7629== Releasing lock... [2025-03-03 04:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:03:14] Production.INFO: call_cost start [2025-03-03 04:03:14] Production.INFO: call_cost end [2025-03-03 04:03:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:03:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:03:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:03:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:03:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:03:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:03:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:03:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:03:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:03:14] Production.INFO: ==7625== Releasing lock... [2025-03-03 04:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:03:16] Production.INFO: count ==409 [2025-03-03 04:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595889', 'tblTempUsageDetail_20' ) start [2025-03-03 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595889', 'tblTempUsageDetail_20' ) end [2025-03-03 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595889', 'tblTempVendorCDR_20' ) start [2025-03-03 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595889', 'tblTempVendorCDR_20' ) end [2025-03-03 04:03:16] Production.INFO: ProcessCDR(1,14595889,1,1,2) [2025-03-03 04:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595889', 'tblTempUsageDetail_20' ) start [2025-03-03 04:03:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595889', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:03:24] Production.INFO: ==7633== Releasing lock... [2025-03-03 04:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:03:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:04:02] Production.INFO: ==7689== Lock acquired, processing the job... [2025-03-03 09:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:04:02] Production.INFO: neon service started [2025-03-03 09:04:02] Production.INFO: neon service started [2025-03-03 09:04:02] Production.INFO: ==7689== Releasing lock... [2025-03-03 09:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:04:02] Production.INFO: ==7692== Lock acquired, processing the job... [2025-03-03 04:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:04:03] Production.INFO: ==7694== Lock acquired, processing the job... [2025-03-03 09:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:04:03] Production.INFO: ==7694== Releasing lock... [2025-03-03 09:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:04:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:04:03] Production.INFO: ==7692== Releasing lock... [2025-03-03 04:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:04:03] Production.INFO: ==7700== Lock acquired, processing the job... [2025-03-03 04:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:04:04] Production.INFO: ==7702== Lock acquired, processing the job... [2025-03-03 04:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:04:04] Production.INFO: ==7696== Lock acquired, processing the job... [2025-03-03 04:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:04:04] Production.INFO: Account Balance Start. [2025-03-03 04:04:04] Production.INFO: CreateAllLog Start [2025-03-03 04:04:04] Production.INFO: 117 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: ==7698== Lock acquired, processing the job... [2025-03-03 04:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: ==7704== Lock acquired, processing the job... [2025-03-03 04:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: ==7706== Lock acquired, processing the job... [2025-03-03 04:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:04:04] Production.INFO: ==7698== Releasing lock... [2025-03-03 04:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:04:04] Production.INFO: count ==13 [2025-03-03 04:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:04:04] Production.INFO: count ==21 [2025-03-03 04:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595893') start [2025-03-03 04:04:04] Production.ERROR: done [2025-03-03 04:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595893') end [2025-03-03 04:04:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:04:05] Production.INFO: 1 [2025-03-03 04:04:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:04:05] Production.ERROR: done [2025-03-03 04:04:05] Production.INFO: ==7706== Releasing lock... [2025-03-03 04:04:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:04:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:04:05] Production.INFO: Total Charge 0 [2025-03-03 04:04:05] Production.INFO: CreateAllLog End [2025-03-03 04:04:05] Production.INFO: Account Balance End. [2025-03-03 04:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:04:05] Production.INFO: ==7702== Releasing lock... [2025-03-03 04:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:04:13] Production.ERROR: CronJobId end10 [2025-03-03 04:04:13] Production.INFO: ==7700== Releasing lock... [2025-03-03 04:04:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:04:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:04:16] Production.INFO: call_cost start [2025-03-03 04:04:16] Production.INFO: call_cost end [2025-03-03 04:04:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:04:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:04:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:04:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:04:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:04:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:04:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:04:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:04:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:04:16] Production.INFO: ==7696== Releasing lock... [2025-03-03 04:04:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:04:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:04:17] Production.INFO: count ==409 [2025-03-03 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595894', 'tblTempUsageDetail_20' ) start [2025-03-03 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595894', 'tblTempUsageDetail_20' ) end [2025-03-03 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595894', 'tblTempVendorCDR_20' ) start [2025-03-03 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595894', 'tblTempVendorCDR_20' ) end [2025-03-03 04:04:17] Production.INFO: ProcessCDR(1,14595894,1,1,2) [2025-03-03 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595894', 'tblTempUsageDetail_20' ) start [2025-03-03 04:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595894', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:04:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:04:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:04:25] Production.INFO: ==7704== Releasing lock... [2025-03-03 04:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:04:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:05:01] Production.INFO: ==7759== Lock acquired, processing the job... [2025-03-03 09:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:05:01] Production.INFO: neon service started [2025-03-03 09:05:01] Production.INFO: neon service started [2025-03-03 09:05:01] Production.INFO: ==7759== Releasing lock... [2025-03-03 09:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:05:02] Production.INFO: ==7763== Lock acquired, processing the job... [2025-03-03 09:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:05:02] Production.INFO: ==7763== Releasing lock... [2025-03-03 09:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:05:02] Production.INFO: ==7761== Lock acquired, processing the job... [2025-03-03 04:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:05:02] Production.INFO: ==7761== Releasing lock... [2025-03-03 04:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:05:03] Production.INFO: ==7766== Lock acquired, processing the job... [2025-03-03 04:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:05:03] Production.INFO: ==7768== Lock acquired, processing the job... [2025-03-03 04:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:05:03] Production.INFO: ==7772== Lock acquired, processing the job... [2025-03-03 04:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:05:03] Production.INFO: ==7770== Lock acquired, processing the job... [2025-03-03 04:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:05:03] Production.INFO: Account Balance Start. [2025-03-03 04:05:03] Production.INFO: CreateAllLog Start [2025-03-03 04:05:03] Production.INFO: 117 [2025-03-03 04:05:03] Production.INFO: ==7774== Lock acquired, processing the job... [2025-03-03 04:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: ==7776== Lock acquired, processing the job... [2025-03-03 04:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:05:04] Production.INFO: ==7768== Releasing lock... [2025-03-03 04:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:05:04] Production.INFO: count ==13 [2025-03-03 04:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:05:04] Production.INFO: count ==21 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595898') start [2025-03-03 04:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.ERROR: done [2025-03-03 04:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595898') end [2025-03-03 04:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:05:04] Production.INFO: 1 [2025-03-03 04:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: ==7776== Releasing lock... [2025-03-03 04:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:05:04] Production.ERROR: done [2025-03-03 04:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:05:05] Production.INFO: Total Charge 0 [2025-03-03 04:05:05] Production.INFO: CreateAllLog End [2025-03-03 04:05:05] Production.INFO: Account Balance End. [2025-03-03 04:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:05:05] Production.INFO: ==7772== Releasing lock... [2025-03-03 04:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:05:12] Production.ERROR: CronJobId end10 [2025-03-03 04:05:12] Production.INFO: ==7770== Releasing lock... [2025-03-03 04:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:05:15] Production.INFO: call_cost start [2025-03-03 04:05:15] Production.INFO: call_cost end [2025-03-03 04:05:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:05:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:05:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:05:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:05:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:05:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:05:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:05:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:05:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:05:15] Production.INFO: ==7766== Releasing lock... [2025-03-03 04:05:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:05:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:05:16] Production.INFO: count ==409 [2025-03-03 04:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595899', 'tblTempUsageDetail_20' ) start [2025-03-03 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595899', 'tblTempUsageDetail_20' ) end [2025-03-03 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595899', 'tblTempVendorCDR_20' ) start [2025-03-03 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595899', 'tblTempVendorCDR_20' ) end [2025-03-03 04:05:16] Production.INFO: ProcessCDR(1,14595899,1,1,2) [2025-03-03 04:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595899', 'tblTempUsageDetail_20' ) start [2025-03-03 04:05:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595899', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:05:24] Production.INFO: ==7774== Releasing lock... [2025-03-03 04:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:06:01] Production.INFO: ==7830== Lock acquired, processing the job... [2025-03-03 09:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:06:01] Production.INFO: neon service started [2025-03-03 09:06:01] Production.INFO: neon service started [2025-03-03 09:06:01] Production.INFO: ==7830== Releasing lock... [2025-03-03 09:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:06:01] Production.INFO: ==7834== Lock acquired, processing the job... [2025-03-03 09:06:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:06:01] Production.INFO: ==7834== Releasing lock... [2025-03-03 09:06:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:06:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:06:01] Production.INFO: ==7832== Lock acquired, processing the job... [2025-03-03 04:06:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:06:02] Production.INFO: ==7832== Releasing lock... [2025-03-03 04:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:06:03] Production.INFO: ==7840== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:06:03] Production.INFO: ==7842== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:06:03] Production.INFO: ==7836== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:06:03] Production.INFO: ==7838== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:06:03] Production.INFO: Account Balance Start. [2025-03-03 04:06:03] Production.INFO: CreateAllLog Start [2025-03-03 04:06:03] Production.INFO: 117 [2025-03-03 04:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: ==7844== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:06:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: ==7847== Lock acquired, processing the job... [2025-03-03 04:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:06:03] Production.INFO: Date 2025-02-14 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: ==7838== Releasing lock... [2025-03-03 04:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:06:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:06:03] Production.INFO: count ==13 [2025-03-03 04:06:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:06:03] Production.INFO: Date 2025-02-15 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: count ==21 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-16 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-17 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595903') start [2025-03-03 04:06:03] Production.INFO: Date 2025-02-18 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-19 [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.INFO: Date 2025-02-20 [2025-03-03 04:06:03] Production.ERROR: done [2025-03-03 04:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595903') end [2025-03-03 04:06:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:06:03] Production.INFO: 1 [2025-03-03 04:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: ==7847== Releasing lock... [2025-03-03 04:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.ERROR: done [2025-03-03 04:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:06:04] Production.INFO: Total Charge 0 [2025-03-03 04:06:05] Production.INFO: CreateAllLog End [2025-03-03 04:06:05] Production.INFO: Account Balance End. [2025-03-03 04:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:06:05] Production.INFO: ==7842== Releasing lock... [2025-03-03 04:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:06:12] Production.ERROR: CronJobId end10 [2025-03-03 04:06:12] Production.INFO: ==7840== Releasing lock... [2025-03-03 04:06:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:06:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:06:15] Production.INFO: call_cost start [2025-03-03 04:06:15] Production.INFO: call_cost end [2025-03-03 04:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:06:15] Production.INFO: ==7836== Releasing lock... [2025-03-03 04:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:06:16] Production.INFO: count ==409 [2025-03-03 04:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595904', 'tblTempUsageDetail_20' ) start [2025-03-03 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595904', 'tblTempUsageDetail_20' ) end [2025-03-03 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595904', 'tblTempVendorCDR_20' ) start [2025-03-03 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595904', 'tblTempVendorCDR_20' ) end [2025-03-03 04:06:16] Production.INFO: ProcessCDR(1,14595904,1,1,2) [2025-03-03 04:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595904', 'tblTempUsageDetail_20' ) start [2025-03-03 04:06:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595904', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:06:24] Production.INFO: ==7844== Releasing lock... [2025-03-03 04:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:07:01] Production.INFO: ==7907== Lock acquired, processing the job... [2025-03-03 09:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:07:01] Production.INFO: neon service started [2025-03-03 09:07:01] Production.INFO: neon service started [2025-03-03 09:07:01] Production.INFO: ==7907== Releasing lock... [2025-03-03 09:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:07:02] Production.INFO: ==7909== Lock acquired, processing the job... [2025-03-03 04:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:07:02] Production.INFO: ==7911== Lock acquired, processing the job... [2025-03-03 09:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:07:02] Production.INFO: ==7911== Releasing lock... [2025-03-03 09:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:07:03] Production.INFO: ==7909== Releasing lock... [2025-03-03 04:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:07:03] Production.INFO: ==7918== Lock acquired, processing the job... [2025-03-03 04:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:07:04] Production.INFO: ==7924== Lock acquired, processing the job... [2025-03-03 04:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:07:04] Production.INFO: ==7914== Lock acquired, processing the job... [2025-03-03 04:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:07:04] Production.INFO: ==7916== Lock acquired, processing the job... [2025-03-03 04:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:07:04] Production.INFO: count ==13 [2025-03-03 04:07:04] Production.INFO: ==7920== Lock acquired, processing the job... [2025-03-03 04:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:07:04] Production.INFO: ==7922== Lock acquired, processing the job... [2025-03-03 04:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:07:04] Production.INFO: count ==21 [2025-03-03 04:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595905') start [2025-03-03 04:07:04] Production.INFO: Account Balance Start. [2025-03-03 04:07:04] Production.INFO: CreateAllLog Start [2025-03-03 04:07:04] Production.INFO: 117 [2025-03-03 04:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.INFO: ==7916== Releasing lock... [2025-03-03 04:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595905') end [2025-03-03 04:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:07:04] Production.INFO: 1 [2025-03-03 04:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.INFO: ==7924== Releasing lock... [2025-03-03 04:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:07:04] Production.ERROR: done [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.ERROR: done [2025-03-03 04:07:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:07:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:07:05] Production.INFO: Total Charge 0 [2025-03-03 04:07:05] Production.INFO: CreateAllLog End [2025-03-03 04:07:05] Production.INFO: Account Balance End. [2025-03-03 04:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:07:05] Production.INFO: ==7920== Releasing lock... [2025-03-03 04:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:07:11] Production.ERROR: CronJobId end10 [2025-03-03 04:07:11] Production.INFO: ==7918== Releasing lock... [2025-03-03 04:07:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:07:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:07:14] Production.INFO: call_cost start [2025-03-03 04:07:14] Production.INFO: call_cost end [2025-03-03 04:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:07:14] Production.INFO: ==7914== Releasing lock... [2025-03-03 04:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:07:16] Production.INFO: count ==409 [2025-03-03 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595909', 'tblTempUsageDetail_20' ) start [2025-03-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595909', 'tblTempUsageDetail_20' ) end [2025-03-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595909', 'tblTempVendorCDR_20' ) start [2025-03-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595909', 'tblTempVendorCDR_20' ) end [2025-03-03 04:07:17] Production.INFO: ProcessCDR(1,14595909,1,1,2) [2025-03-03 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595909', 'tblTempUsageDetail_20' ) start [2025-03-03 04:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595909', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:07:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:07:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:07:25] Production.INFO: ==7922== Releasing lock... [2025-03-03 04:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:07:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:08:01] Production.INFO: ==7980== Lock acquired, processing the job... [2025-03-03 09:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:08:01] Production.INFO: neon service started [2025-03-03 09:08:01] Production.INFO: neon service started [2025-03-03 09:08:01] Production.INFO: ==7980== Releasing lock... [2025-03-03 09:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:08:01] Production.INFO: ==7984== Lock acquired, processing the job... [2025-03-03 09:08:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:08:01] Production.INFO: ==7984== Releasing lock... [2025-03-03 09:08:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:08:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:08:02] Production.INFO: ==7982== Lock acquired, processing the job... [2025-03-03 04:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:08:02] Production.INFO: ==7982== Releasing lock... [2025-03-03 04:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:08:03] Production.INFO: ==7987== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:08:03] Production.INFO: ==7989== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:08:03] Production.INFO: ==7991== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:08:03] Production.INFO: ==7993== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:08:03] Production.INFO: ==7989== Releasing lock... [2025-03-03 04:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:08:03] Production.INFO: ==7995== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:08:03] Production.INFO: ==7997== Lock acquired, processing the job... [2025-03-03 04:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:08:03] Production.INFO: Account Balance Start. [2025-03-03 04:08:03] Production.INFO: CreateAllLog Start [2025-03-03 04:08:03] Production.INFO: 117 [2025-03-03 04:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:08:03] Production.INFO: count ==13 [2025-03-03 04:08:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:08:03] Production.INFO: count ==21 [2025-03-03 04:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595913') start [2025-03-03 04:08:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.ERROR: done [2025-03-03 04:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595913') end [2025-03-03 04:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:08:04] Production.INFO: 1 [2025-03-03 04:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: ==7997== Releasing lock... [2025-03-03 04:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.ERROR: done [2025-03-03 04:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:08:04] Production.INFO: Total Charge 0 [2025-03-03 04:08:04] Production.INFO: CreateAllLog End [2025-03-03 04:08:04] Production.INFO: Account Balance End. [2025-03-03 04:08:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:08:04] Production.INFO: ==7993== Releasing lock... [2025-03-03 04:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:08:11] Production.ERROR: CronJobId end10 [2025-03-03 04:08:11] Production.INFO: ==7991== Releasing lock... [2025-03-03 04:08:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:08:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:08:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:08:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:08:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:08:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:08:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:08:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:08:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:08:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:08:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:08:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:08:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:08:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:08:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:08:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:08:13] Production.INFO: call_cost start [2025-03-03 04:08:13] Production.INFO: call_cost end [2025-03-03 04:08:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:08:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:08:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:08:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:08:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:08:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:08:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:08:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:08:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:08:13] Production.INFO: ==7987== Releasing lock... [2025-03-03 04:08:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:08:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:08:16] Production.INFO: count ==409 [2025-03-03 04:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595914', 'tblTempUsageDetail_20' ) start [2025-03-03 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595914', 'tblTempUsageDetail_20' ) end [2025-03-03 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595914', 'tblTempVendorCDR_20' ) start [2025-03-03 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595914', 'tblTempVendorCDR_20' ) end [2025-03-03 04:08:16] Production.INFO: ProcessCDR(1,14595914,1,1,2) [2025-03-03 04:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595914', 'tblTempUsageDetail_20' ) start [2025-03-03 04:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595914', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:08:24] Production.INFO: ==7995== Releasing lock... [2025-03-03 04:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:08:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:09:01] Production.INFO: ==8050== Lock acquired, processing the job... [2025-03-03 09:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:09:01] Production.INFO: neon service started [2025-03-03 09:09:01] Production.INFO: neon service started [2025-03-03 09:09:01] Production.INFO: ==8050== Releasing lock... [2025-03-03 09:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:09:02] Production.INFO: ==8054== Lock acquired, processing the job... [2025-03-03 09:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:09:02] Production.INFO: ==8054== Releasing lock... [2025-03-03 09:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:09:02] Production.INFO: ==8052== Lock acquired, processing the job... [2025-03-03 04:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:09:02] Production.INFO: ==8052== Releasing lock... [2025-03-03 04:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:09:03] Production.INFO: ==8061== Lock acquired, processing the job... [2025-03-03 04:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:09:03] Production.INFO: ==8065== Lock acquired, processing the job... [2025-03-03 04:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:09:03] Production.INFO: ==8067== Lock acquired, processing the job... [2025-03-03 04:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:09:03] Production.INFO: ==8057== Lock acquired, processing the job... [2025-03-03 04:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:09:03] Production.INFO: count ==13 [2025-03-03 04:09:03] Production.INFO: ==8063== Lock acquired, processing the job... [2025-03-03 04:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:09:03] Production.INFO: ==8059== Lock acquired, processing the job... [2025-03-03 04:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:09:03] Production.INFO: count ==21 [2025-03-03 04:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595915') start [2025-03-03 04:09:03] Production.INFO: Account Balance Start. [2025-03-03 04:09:03] Production.INFO: CreateAllLog Start [2025-03-03 04:09:03] Production.INFO: 117 [2025-03-03 04:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595915') end [2025-03-03 04:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:09:03] Production.INFO: 1 [2025-03-03 04:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:09:03] Production.ERROR: done [2025-03-03 04:09:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:09:04] Production.INFO: ==8067== Releasing lock... [2025-03-03 04:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.ERROR: done [2025-03-03 04:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: ==8059== Releasing lock... [2025-03-03 04:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:09:04] Production.INFO: Total Charge 0 [2025-03-03 04:09:04] Production.INFO: CreateAllLog End [2025-03-03 04:09:04] Production.INFO: Account Balance End. [2025-03-03 04:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:09:05] Production.INFO: ==8063== Releasing lock... [2025-03-03 04:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:09:10] Production.ERROR: CronJobId end10 [2025-03-03 04:09:10] Production.INFO: ==8061== Releasing lock... [2025-03-03 04:09:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:09:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:09:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:09:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:09:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:09:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:09:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:09:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:09:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:09:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:09:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:09:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:09:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:09:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:09:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:09:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:09:13] Production.INFO: call_cost start [2025-03-03 04:09:13] Production.INFO: call_cost end [2025-03-03 04:09:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:09:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:09:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:09:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:09:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:09:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:09:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:09:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:09:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:09:13] Production.INFO: ==8057== Releasing lock... [2025-03-03 04:09:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:09:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:09:16] Production.INFO: count ==409 [2025-03-03 04:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595919', 'tblTempUsageDetail_20' ) start [2025-03-03 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595919', 'tblTempUsageDetail_20' ) end [2025-03-03 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595919', 'tblTempVendorCDR_20' ) start [2025-03-03 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595919', 'tblTempVendorCDR_20' ) end [2025-03-03 04:09:16] Production.INFO: ProcessCDR(1,14595919,1,1,2) [2025-03-03 04:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595919', 'tblTempUsageDetail_20' ) start [2025-03-03 04:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595919', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:09:24] Production.INFO: ==8065== Releasing lock... [2025-03-03 04:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:09:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:10:02] Production.INFO: ==8122== Lock acquired, processing the job... [2025-03-03 09:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:10:02] Production.INFO: neon service started [2025-03-03 09:10:02] Production.INFO: neon service started [2025-03-03 09:10:02] Production.INFO: ==8122== Releasing lock... [2025-03-03 09:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:10:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:10:02] Production.INFO: ==8124== Lock acquired, processing the job... [2025-03-03 04:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:10:03] Production.INFO: ==8126== Lock acquired, processing the job... [2025-03-03 09:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:10:03] Production.INFO: ==8124== Releasing lock... [2025-03-03 04:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:10:03] Production.INFO: ==8126== Releasing lock... [2025-03-03 09:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:10:04] Production.INFO: ==8133== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:10:04] Production.INFO: ==8129== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 04:10:04] Production.INFO: ==8131== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 04:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:10:04] Production.ERROR: CronJob PID - 8131 [2025-03-03 04:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 04:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 04:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:10:00 [2025-03-03 04:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:10:04] Production.ERROR: CronJob PID - 8133 [2025-03-03 04:10:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 04:10:04] Production.ERROR: CronJob ID - 7 [2025-03-03 04:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:10:00 [2025-03-03 04:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:10:04] Production.INFO: ==8141== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 04:10:04] Production.INFO: ==8135== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 04:10:04] Production.INFO: ==8129== Releasing lock... [2025-03-03 04:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 04:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:10:04] Production.INFO: ==8137== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:10:04] Production.INFO: ==8143== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:10:04] Production.INFO: ==8139== Lock acquired, processing the job... [2025-03-03 04:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:10:04] Production.INFO: ==8133== Releasing lock... [2025-03-03 04:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:10:04] Production.INFO: Account Balance Start. [2025-03-03 04:10:04] Production.INFO: CreateAllLog Start [2025-03-03 04:10:04] Production.INFO: 117 [2025-03-03 04:10:04] Production.ERROR: done [2025-03-03 04:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:04] Production.INFO: count ==13 [2025-03-03 04:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 04:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595924', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 04:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:10:04] Production.INFO: count ==21 [2025-03-03 04:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595923') start [2025-03-03 04:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595923') end [2025-03-03 04:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:10:05] Production.INFO: 1 [2025-03-03 04:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:10:05] Production.INFO: Date 2025-02-10 [2025-03-03 04:10:05] Production.INFO: ==8143== Releasing lock... [2025-03-03 04:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.ERROR: done [2025-03-03 04:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-11 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-12 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-13 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.ERROR: done [2025-03-03 04:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:06] Production.INFO: Date 2025-03-02 [2025-03-03 04:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:06] Production.INFO: Date 2025-03-03 [2025-03-03 04:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:10:06] Production.INFO: Total Charge 0 [2025-03-03 04:10:06] Production.INFO: CreateAllLog End [2025-03-03 04:10:06] Production.INFO: Account Balance End. [2025-03-03 04:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 04:10:06] Production.INFO: ==8137== Releasing lock... [2025-03-03 04:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:10:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595924', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 04:10:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 04:10:08] Production.INFO: ProcessCDR(1,14595924,1,1,2) [2025-03-03 04:10:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595924,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:10:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595924,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:10:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 04:10:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 04:10:08] Production.INFO: ==8141== Releasing lock... [2025-03-03 04:10:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 04:10:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:10:13] Production.ERROR: CronJobId end10 [2025-03-03 04:10:13] Production.INFO: ==8135== Releasing lock... [2025-03-03 04:10:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:10:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:10:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:10:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:10:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:10:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:10:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:10:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:10:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:10:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:10:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:10:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:10:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:10:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:10:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:10:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:10:15] Production.INFO: call_cost start [2025-03-03 04:10:15] Production.INFO: call_cost end [2025-03-03 04:10:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:10:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:10:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:10:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:10:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:10:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:10:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:10:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:10:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:10:15] Production.INFO: ==8131== Releasing lock... [2025-03-03 04:10:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:10:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:10:17] Production.INFO: count ==409 [2025-03-03 04:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595925', 'tblTempUsageDetail_20' ) start [2025-03-03 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595925', 'tblTempUsageDetail_20' ) end [2025-03-03 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595925', 'tblTempVendorCDR_20' ) start [2025-03-03 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595925', 'tblTempVendorCDR_20' ) end [2025-03-03 04:10:17] Production.INFO: ProcessCDR(1,14595925,1,1,2) [2025-03-03 04:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595925', 'tblTempUsageDetail_20' ) start [2025-03-03 04:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595925', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:10:25] Production.INFO: ==8139== Releasing lock... [2025-03-03 04:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:10:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:11:01] Production.INFO: ==8198== Lock acquired, processing the job... [2025-03-03 09:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:11:01] Production.INFO: neon service started [2025-03-03 09:11:01] Production.INFO: neon service started [2025-03-03 09:11:01] Production.INFO: ==8198== Releasing lock... [2025-03-03 09:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:11:02] Production.INFO: ==8200== Lock acquired, processing the job... [2025-03-03 04:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:11:02] Production.INFO: ==8200== Releasing lock... [2025-03-03 04:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:11:02] Production.INFO: ==8202== Lock acquired, processing the job... [2025-03-03 09:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:11:02] Production.INFO: ==8202== Releasing lock... [2025-03-03 09:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:11:03] Production.INFO: ==8207== Lock acquired, processing the job... [2025-03-03 04:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:11:03] Production.INFO: ==8215== Lock acquired, processing the job... [2025-03-03 04:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:11:03] Production.INFO: ==8207== Releasing lock... [2025-03-03 04:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:11:03] Production.INFO: ==8205== Lock acquired, processing the job... [2025-03-03 04:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:11:03] Production.INFO: count ==13 [2025-03-03 04:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:11:03] Production.INFO: count ==21 [2025-03-03 04:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595927') start [2025-03-03 04:11:03] Production.INFO: ==8209== Lock acquired, processing the job... [2025-03-03 04:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595927') end [2025-03-03 04:11:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:11:03] Production.INFO: 1 [2025-03-03 04:11:03] Production.INFO: ==8213== Lock acquired, processing the job... [2025-03-03 04:11:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:11:03] Production.INFO: ==8211== Lock acquired, processing the job... [2025-03-03 04:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:11:03] Production.INFO: ==8215== Releasing lock... [2025-03-03 04:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:11:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:11:03] Production.INFO: Account Balance Start. [2025-03-03 04:11:03] Production.INFO: CreateAllLog Start [2025-03-03 04:11:03] Production.INFO: 117 [2025-03-03 04:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.ERROR: done [2025-03-03 04:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.ERROR: done [2025-03-03 04:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:11:04] Production.INFO: Total Charge 0 [2025-03-03 04:11:04] Production.INFO: CreateAllLog End [2025-03-03 04:11:05] Production.INFO: Account Balance End. [2025-03-03 04:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:11:05] Production.INFO: ==8211== Releasing lock... [2025-03-03 04:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:11:11] Production.ERROR: CronJobId end10 [2025-03-03 04:11:11] Production.INFO: ==8209== Releasing lock... [2025-03-03 04:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:11:14] Production.INFO: call_cost start [2025-03-03 04:11:14] Production.INFO: call_cost end [2025-03-03 04:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:11:14] Production.INFO: ==8205== Releasing lock... [2025-03-03 04:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:11:16] Production.INFO: count ==409 [2025-03-03 04:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595930', 'tblTempUsageDetail_20' ) start [2025-03-03 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595930', 'tblTempUsageDetail_20' ) end [2025-03-03 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595930', 'tblTempVendorCDR_20' ) start [2025-03-03 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595930', 'tblTempVendorCDR_20' ) end [2025-03-03 04:11:16] Production.INFO: ProcessCDR(1,14595930,1,1,2) [2025-03-03 04:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595930', 'tblTempUsageDetail_20' ) start [2025-03-03 04:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595930', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:11:24] Production.INFO: ==8213== Releasing lock... [2025-03-03 04:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:12:02] Production.INFO: ==8270== Lock acquired, processing the job... [2025-03-03 09:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:12:02] Production.INFO: neon service started [2025-03-03 09:12:02] Production.INFO: neon service started [2025-03-03 09:12:02] Production.INFO: ==8270== Releasing lock... [2025-03-03 09:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:12:02] Production.INFO: ==8272== Lock acquired, processing the job... [2025-03-03 04:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:12:03] Production.INFO: ==8272== Releasing lock... [2025-03-03 04:12:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:12:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:12:03] Production.INFO: ==8274== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:12:03] Production.INFO: ==8274== Releasing lock... [2025-03-03 09:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:12:04] Production.INFO: ==8284== Lock acquired, processing the job... [2025-03-03 04:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:12:04] Production.INFO: ==8276== Lock acquired, processing the job... [2025-03-03 04:12:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:12:04] Production.INFO: ==8287== Lock acquired, processing the job... [2025-03-03 04:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:12:04] Production.INFO: ==8278== Lock acquired, processing the job... [2025-03-03 04:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:12:04] Production.INFO: ==8280== Lock acquired, processing the job... [2025-03-03 04:12:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:12:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:12:04] Production.INFO: ==8282== Lock acquired, processing the job... [2025-03-03 04:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:12:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:12:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:12:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:12:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:12:04] Production.INFO: count ==13 [2025-03-03 04:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:12:04] Production.INFO: Account Balance Start. [2025-03-03 04:12:04] Production.INFO: CreateAllLog Start [2025-03-03 04:12:04] Production.INFO: count ==21 [2025-03-03 04:12:04] Production.INFO: 117 [2025-03-03 04:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595932') start [2025-03-03 04:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595932') end [2025-03-03 04:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:12:04] Production.INFO: 1 [2025-03-03 04:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.ERROR: done [2025-03-03 04:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:12:04] Production.INFO: ==8287== Releasing lock... [2025-03-03 04:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:12:04] Production.ERROR: done [2025-03-03 04:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: ==8278== Releasing lock... [2025-03-03 04:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:12:05] Production.INFO: Total Charge 0 [2025-03-03 04:12:05] Production.INFO: CreateAllLog End [2025-03-03 04:12:05] Production.INFO: Account Balance End. [2025-03-03 04:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:12:05] Production.INFO: ==8282== Releasing lock... [2025-03-03 04:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:12:13] Production.ERROR: CronJobId end10 [2025-03-03 04:12:13] Production.INFO: ==8280== Releasing lock... [2025-03-03 04:12:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:12:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:12:15] Production.INFO: call_cost start [2025-03-03 04:12:15] Production.INFO: call_cost end [2025-03-03 04:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:12:15] Production.INFO: ==8276== Releasing lock... [2025-03-03 04:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:12:16] Production.INFO: count ==409 [2025-03-03 04:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595935', 'tblTempUsageDetail_20' ) start [2025-03-03 04:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595935', 'tblTempUsageDetail_20' ) end [2025-03-03 04:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595935', 'tblTempVendorCDR_20' ) start [2025-03-03 04:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595935', 'tblTempVendorCDR_20' ) end [2025-03-03 04:12:16] Production.INFO: ProcessCDR(1,14595935,1,1,2) [2025-03-03 04:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595935', 'tblTempUsageDetail_20' ) start [2025-03-03 04:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595935', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:12:24] Production.INFO: ==8284== Releasing lock... [2025-03-03 04:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:12:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:13:01] Production.INFO: ==8339== Lock acquired, processing the job... [2025-03-03 09:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:13:01] Production.INFO: neon service started [2025-03-03 09:13:01] Production.INFO: neon service started [2025-03-03 09:13:01] Production.INFO: ==8339== Releasing lock... [2025-03-03 09:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:13:02] Production.INFO: ==8344== Lock acquired, processing the job... [2025-03-03 09:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:13:02] Production.INFO: ==8344== Releasing lock... [2025-03-03 09:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:13:02] Production.INFO: ==8342== Lock acquired, processing the job... [2025-03-03 04:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:13:02] Production.INFO: ==8342== Releasing lock... [2025-03-03 04:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:13:03] Production.INFO: ==8354== Lock acquired, processing the job... [2025-03-03 04:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:13:03] Production.INFO: ==8356== Lock acquired, processing the job... [2025-03-03 04:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:13:03] Production.INFO: ==8346== Lock acquired, processing the job... [2025-03-03 04:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:13:03] Production.INFO: count ==13 [2025-03-03 04:13:03] Production.INFO: ==8348== Lock acquired, processing the job... [2025-03-03 04:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:13:03] Production.INFO: ==8350== Lock acquired, processing the job... [2025-03-03 04:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:13:03] Production.INFO: count ==21 [2025-03-03 04:13:03] Production.INFO: ==8352== Lock acquired, processing the job... [2025-03-03 04:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595936') start [2025-03-03 04:13:03] Production.ERROR: done [2025-03-03 04:13:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595936') end [2025-03-03 04:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:13:04] Production.INFO: 1 [2025-03-03 04:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:13:04] Production.INFO: Account Balance Start. [2025-03-03 04:13:04] Production.INFO: CreateAllLog Start [2025-03-03 04:13:04] Production.INFO: 117 [2025-03-03 04:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: ==8356== Releasing lock... [2025-03-03 04:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:13:04] Production.ERROR: done [2025-03-03 04:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:13:04] Production.INFO: ==8348== Releasing lock... [2025-03-03 04:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:13:04] Production.INFO: Total Charge 0 [2025-03-03 04:13:04] Production.INFO: CreateAllLog End [2025-03-03 04:13:04] Production.INFO: Account Balance End. [2025-03-03 04:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:13:05] Production.INFO: ==8352== Releasing lock... [2025-03-03 04:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:13:11] Production.ERROR: CronJobId end10 [2025-03-03 04:13:11] Production.INFO: ==8350== Releasing lock... [2025-03-03 04:13:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:13:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:13:15] Production.INFO: call_cost start [2025-03-03 04:13:15] Production.INFO: call_cost end [2025-03-03 04:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:13:15] Production.INFO: ==8346== Releasing lock... [2025-03-03 04:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:13:16] Production.INFO: count ==409 [2025-03-03 04:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595940', 'tblTempUsageDetail_20' ) start [2025-03-03 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595940', 'tblTempUsageDetail_20' ) end [2025-03-03 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595940', 'tblTempVendorCDR_20' ) start [2025-03-03 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595940', 'tblTempVendorCDR_20' ) end [2025-03-03 04:13:16] Production.INFO: ProcessCDR(1,14595940,1,1,2) [2025-03-03 04:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595940', 'tblTempUsageDetail_20' ) start [2025-03-03 04:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595940', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:13:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:13:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:13:23] Production.INFO: ==8354== Releasing lock... [2025-03-03 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:13:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:14:02] Production.INFO: ==8448== Lock acquired, processing the job... [2025-03-03 09:14:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:14:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:14:02] Production.INFO: neon service started [2025-03-03 09:14:02] Production.INFO: neon service started [2025-03-03 09:14:02] Production.INFO: ==8448== Releasing lock... [2025-03-03 09:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:14:02] Production.INFO: ==8450== Lock acquired, processing the job... [2025-03-03 04:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:14:02] Production.INFO: ==8450== Releasing lock... [2025-03-03 04:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:14:03] Production.INFO: ==8452== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:14:03] Production.INFO: ==8452== Releasing lock... [2025-03-03 09:14:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:14:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:14:03] Production.INFO: ==8455== Lock acquired, processing the job... [2025-03-03 04:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:14:03] Production.INFO: ==8457== Lock acquired, processing the job... [2025-03-03 04:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:14:03] Production.INFO: ==8459== Lock acquired, processing the job... [2025-03-03 04:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:14:03] Production.INFO: ==8461== Lock acquired, processing the job... [2025-03-03 04:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:14:04] Production.INFO: Account Balance Start. [2025-03-03 04:14:04] Production.INFO: CreateAllLog Start [2025-03-03 04:14:04] Production.INFO: ==8463== Lock acquired, processing the job... [2025-03-03 04:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:14:04] Production.INFO: 117 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:14:04] Production.INFO: ==8465== Lock acquired, processing the job... [2025-03-03 04:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.INFO: ==8457== Releasing lock... [2025-03-03 04:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.INFO: count ==13 [2025-03-03 04:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:14:04] Production.INFO: count ==21 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595944') start [2025-03-03 04:14:04] Production.ERROR: done [2025-03-03 04:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595944') end [2025-03-03 04:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:14:04] Production.INFO: 1 [2025-03-03 04:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.INFO: ==8465== Releasing lock... [2025-03-03 04:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:14:04] Production.ERROR: done [2025-03-03 04:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:14:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:14:05] Production.INFO: Total Charge 0 [2025-03-03 04:14:05] Production.INFO: CreateAllLog End [2025-03-03 04:14:05] Production.INFO: Account Balance End. [2025-03-03 04:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:14:05] Production.INFO: ==8461== Releasing lock... [2025-03-03 04:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:14:12] Production.ERROR: CronJobId end10 [2025-03-03 04:14:12] Production.INFO: ==8459== Releasing lock... [2025-03-03 04:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:14:14] Production.INFO: call_cost start [2025-03-03 04:14:14] Production.INFO: call_cost end [2025-03-03 04:14:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:14:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:14:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:14:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:14:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:14:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:14:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:14:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:14:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:14:14] Production.INFO: ==8455== Releasing lock... [2025-03-03 04:14:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:14:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:14:16] Production.INFO: count ==409 [2025-03-03 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595945', 'tblTempUsageDetail_20' ) start [2025-03-03 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595945', 'tblTempUsageDetail_20' ) end [2025-03-03 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595945', 'tblTempVendorCDR_20' ) start [2025-03-03 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595945', 'tblTempVendorCDR_20' ) end [2025-03-03 04:14:17] Production.INFO: ProcessCDR(1,14595945,1,1,2) [2025-03-03 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595945', 'tblTempUsageDetail_20' ) start [2025-03-03 04:14:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595945', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:14:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:14:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:14:25] Production.INFO: ==8463== Releasing lock... [2025-03-03 04:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:14:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:15:01] Production.INFO: ==8521== Lock acquired, processing the job... [2025-03-03 09:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:15:01] Production.INFO: neon service started [2025-03-03 09:15:01] Production.INFO: neon service started [2025-03-03 09:15:01] Production.INFO: ==8521== Releasing lock... [2025-03-03 09:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:15:02] Production.INFO: ==8523== Lock acquired, processing the job... [2025-03-03 04:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:15:02] Production.INFO: ==8523== Releasing lock... [2025-03-03 04:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:15:02] Production.INFO: ==8525== Lock acquired, processing the job... [2025-03-03 09:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:15:02] Production.INFO: ==8525== Releasing lock... [2025-03-03 09:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:15:03] Production.INFO: ==8532== Lock acquired, processing the job... [2025-03-03 04:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:15:03] Production.INFO: ==8528== Lock acquired, processing the job... [2025-03-03 04:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:15:03] Production.INFO: ==8536== Lock acquired, processing the job... [2025-03-03 04:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:15:03] Production.INFO: ==8530== Lock acquired, processing the job... [2025-03-03 04:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:15:03] Production.INFO: ==8534== Lock acquired, processing the job... [2025-03-03 04:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:15:03] Production.INFO: ==8538== Lock acquired, processing the job... [2025-03-03 04:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:15:04] Production.INFO: Account Balance Start. [2025-03-03 04:15:04] Production.INFO: CreateAllLog Start [2025-03-03 04:15:04] Production.INFO: 117 [2025-03-03 04:15:04] Production.INFO: count ==13 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:15:04] Production.INFO: count ==21 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.ERROR: done [2025-03-03 04:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595948') start [2025-03-03 04:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:15:04] Production.INFO: ==8530== Releasing lock... [2025-03-03 04:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595948') end [2025-03-03 04:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:15:04] Production.INFO: 1 [2025-03-03 04:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:15:04] Production.INFO: ==8538== Releasing lock... [2025-03-03 04:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.ERROR: done [2025-03-03 04:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:15:04] Production.INFO: Total Charge 0 [2025-03-03 04:15:04] Production.INFO: CreateAllLog End [2025-03-03 04:15:05] Production.INFO: Account Balance End. [2025-03-03 04:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:15:05] Production.INFO: ==8534== Releasing lock... [2025-03-03 04:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:15:12] Production.ERROR: CronJobId end10 [2025-03-03 04:15:12] Production.INFO: ==8532== Releasing lock... [2025-03-03 04:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:15:15] Production.INFO: call_cost start [2025-03-03 04:15:15] Production.INFO: call_cost end [2025-03-03 04:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:15:15] Production.INFO: ==8528== Releasing lock... [2025-03-03 04:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:15:16] Production.INFO: count ==409 [2025-03-03 04:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595950', 'tblTempUsageDetail_20' ) start [2025-03-03 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595950', 'tblTempUsageDetail_20' ) end [2025-03-03 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595950', 'tblTempVendorCDR_20' ) start [2025-03-03 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595950', 'tblTempVendorCDR_20' ) end [2025-03-03 04:15:16] Production.INFO: ProcessCDR(1,14595950,1,1,2) [2025-03-03 04:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595950', 'tblTempUsageDetail_20' ) start [2025-03-03 04:15:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595950', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:15:24] Production.INFO: ==8536== Releasing lock... [2025-03-03 04:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:16:02] Production.INFO: ==8598== Lock acquired, processing the job... [2025-03-03 09:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:16:02] Production.INFO: neon service started [2025-03-03 09:16:02] Production.INFO: neon service started [2025-03-03 09:16:02] Production.INFO: ==8598== Releasing lock... [2025-03-03 09:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:16:02] Production.INFO: ==8600== Lock acquired, processing the job... [2025-03-03 04:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:16:02] Production.INFO: ==8600== Releasing lock... [2025-03-03 04:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:16:03] Production.INFO: ==8602== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:16:03] Production.INFO: ==8602== Releasing lock... [2025-03-03 09:16:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:16:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:16:03] Production.INFO: ==8605== Lock acquired, processing the job... [2025-03-03 04:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:16:03] Production.INFO: ==8607== Lock acquired, processing the job... [2025-03-03 04:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:16:03] Production.INFO: ==8611== Lock acquired, processing the job... [2025-03-03 04:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:16:04] Production.INFO: Account Balance Start. [2025-03-03 04:16:04] Production.INFO: CreateAllLog Start [2025-03-03 04:16:04] Production.INFO: 117 [2025-03-03 04:16:04] Production.INFO: ==8607== Releasing lock... [2025-03-03 04:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: ==8609== Lock acquired, processing the job... [2025-03-03 04:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: ==8613== Lock acquired, processing the job... [2025-03-03 04:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:16:04] Production.INFO: ==8615== Lock acquired, processing the job... [2025-03-03 04:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:16:04] Production.INFO: count ==13 [2025-03-03 04:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:16:04] Production.INFO: count ==21 [2025-03-03 04:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595954') start [2025-03-03 04:16:04] Production.ERROR: done [2025-03-03 04:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595954') end [2025-03-03 04:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:16:04] Production.INFO: 1 [2025-03-03 04:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:16:04] Production.INFO: ==8615== Releasing lock... [2025-03-03 04:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:16:04] Production.ERROR: done [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:16:05] Production.INFO: Total Charge 0 [2025-03-03 04:16:05] Production.INFO: CreateAllLog End [2025-03-03 04:16:05] Production.INFO: Account Balance End. [2025-03-03 04:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:16:05] Production.INFO: ==8611== Releasing lock... [2025-03-03 04:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:16:12] Production.ERROR: CronJobId end10 [2025-03-03 04:16:12] Production.INFO: ==8609== Releasing lock... [2025-03-03 04:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:16:15] Production.INFO: call_cost start [2025-03-03 04:16:15] Production.INFO: call_cost end [2025-03-03 04:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:16:15] Production.INFO: ==8605== Releasing lock... [2025-03-03 04:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:16:16] Production.INFO: count ==409 [2025-03-03 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595955', 'tblTempUsageDetail_20' ) start [2025-03-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595955', 'tblTempUsageDetail_20' ) end [2025-03-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595955', 'tblTempVendorCDR_20' ) start [2025-03-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595955', 'tblTempVendorCDR_20' ) end [2025-03-03 04:16:17] Production.INFO: ProcessCDR(1,14595955,1,1,2) [2025-03-03 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595955', 'tblTempUsageDetail_20' ) start [2025-03-03 04:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595955', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:16:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:16:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:16:25] Production.INFO: ==8613== Releasing lock... [2025-03-03 04:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:16:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:17:01] Production.INFO: ==8669== Lock acquired, processing the job... [2025-03-03 09:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:17:01] Production.INFO: neon service started [2025-03-03 09:17:01] Production.INFO: neon service started [2025-03-03 09:17:01] Production.INFO: ==8669== Releasing lock... [2025-03-03 09:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:17:02] Production.INFO: ==8671== Lock acquired, processing the job... [2025-03-03 04:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:17:02] Production.INFO: ==8673== Lock acquired, processing the job... [2025-03-03 09:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:17:02] Production.INFO: ==8671== Releasing lock... [2025-03-03 04:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:17:02] Production.INFO: ==8673== Releasing lock... [2025-03-03 09:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:17:03] Production.INFO: ==8684== Lock acquired, processing the job... [2025-03-03 04:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:17:03] Production.INFO: ==8686== Lock acquired, processing the job... [2025-03-03 04:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:17:03] Production.INFO: ==8675== Lock acquired, processing the job... [2025-03-03 04:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:17:03] Production.INFO: ==8677== Lock acquired, processing the job... [2025-03-03 04:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:17:03] Production.INFO: ==8679== Lock acquired, processing the job... [2025-03-03 04:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:17:03] Production.INFO: ==8681== Lock acquired, processing the job... [2025-03-03 04:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:17:03] Production.INFO: count ==13 [2025-03-03 04:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:17:03] Production.INFO: count ==21 [2025-03-03 04:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595956') start [2025-03-03 04:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595956') end [2025-03-03 04:17:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:17:03] Production.INFO: 1 [2025-03-03 04:17:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:17:03] Production.INFO: Account Balance Start. [2025-03-03 04:17:03] Production.INFO: CreateAllLog Start [2025-03-03 04:17:03] Production.INFO: 117 [2025-03-03 04:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:03] Production.INFO: ==8686== Releasing lock... [2025-03-03 04:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:17:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:17:03] Production.INFO: ==8677== Releasing lock... [2025-03-03 04:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:17:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:17:03] Production.ERROR: done [2025-03-03 04:17:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.ERROR: done [2025-03-03 04:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:17:04] Production.INFO: Total Charge 0 [2025-03-03 04:17:04] Production.INFO: CreateAllLog End [2025-03-03 04:17:04] Production.INFO: Account Balance End. [2025-03-03 04:17:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:17:04] Production.INFO: ==8681== Releasing lock... [2025-03-03 04:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:17:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:17:12] Production.ERROR: CronJobId end10 [2025-03-03 04:17:12] Production.INFO: ==8679== Releasing lock... [2025-03-03 04:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:17:14] Production.INFO: call_cost start [2025-03-03 04:17:14] Production.INFO: call_cost end [2025-03-03 04:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:17:14] Production.INFO: ==8675== Releasing lock... [2025-03-03 04:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:17:16] Production.INFO: count ==409 [2025-03-03 04:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595960', 'tblTempUsageDetail_20' ) start [2025-03-03 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595960', 'tblTempUsageDetail_20' ) end [2025-03-03 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595960', 'tblTempVendorCDR_20' ) start [2025-03-03 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595960', 'tblTempVendorCDR_20' ) end [2025-03-03 04:17:16] Production.INFO: ProcessCDR(1,14595960,1,1,2) [2025-03-03 04:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595960', 'tblTempUsageDetail_20' ) start [2025-03-03 04:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595960', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:17:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:17:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:17:23] Production.INFO: ==8684== Releasing lock... [2025-03-03 04:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:18:02] Production.INFO: ==8751== Lock acquired, processing the job... [2025-03-03 09:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:18:02] Production.INFO: neon service started [2025-03-03 09:18:02] Production.INFO: neon service started [2025-03-03 09:18:02] Production.INFO: ==8751== Releasing lock... [2025-03-03 09:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:18:02] Production.INFO: ==8753== Lock acquired, processing the job... [2025-03-03 04:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:18:02] Production.INFO: ==8753== Releasing lock... [2025-03-03 04:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:18:02] Production.INFO: ==8755== Lock acquired, processing the job... [2025-03-03 09:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:18:03] Production.INFO: ==8755== Releasing lock... [2025-03-03 09:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:18:03] Production.INFO: ==8758== Lock acquired, processing the job... [2025-03-03 04:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:18:03] Production.INFO: ==8766== Lock acquired, processing the job... [2025-03-03 04:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:18:03] Production.INFO: ==8768== Lock acquired, processing the job... [2025-03-03 04:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:18:03] Production.INFO: ==8760== Lock acquired, processing the job... [2025-03-03 04:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:18:03] Production.INFO: ==8762== Lock acquired, processing the job... [2025-03-03 04:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:18:03] Production.INFO: ==8764== Lock acquired, processing the job... [2025-03-03 04:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:18:04] Production.INFO: count ==13 [2025-03-03 04:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:18:04] Production.INFO: count ==21 [2025-03-03 04:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595961') start [2025-03-03 04:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595961') end [2025-03-03 04:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:18:04] Production.INFO: 1 [2025-03-03 04:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:18:04] Production.INFO: Account Balance Start. [2025-03-03 04:18:04] Production.INFO: CreateAllLog Start [2025-03-03 04:18:04] Production.INFO: 117 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: ==8768== Releasing lock... [2025-03-03 04:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.ERROR: done [2025-03-03 04:18:04] Production.INFO: ==8760== Releasing lock... [2025-03-03 04:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.ERROR: done [2025-03-03 04:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:18:05] Production.INFO: Total Charge 0 [2025-03-03 04:18:05] Production.INFO: CreateAllLog End [2025-03-03 04:18:05] Production.INFO: Account Balance End. [2025-03-03 04:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:18:05] Production.INFO: ==8764== Releasing lock... [2025-03-03 04:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:18:12] Production.ERROR: CronJobId end10 [2025-03-03 04:18:12] Production.INFO: ==8762== Releasing lock... [2025-03-03 04:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:18:14] Production.INFO: call_cost start [2025-03-03 04:18:14] Production.INFO: call_cost end [2025-03-03 04:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:18:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:18:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:18:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:18:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:18:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:18:14] Production.INFO: ==8758== Releasing lock... [2025-03-03 04:18:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:18:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:18:16] Production.INFO: count ==409 [2025-03-03 04:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595965', 'tblTempUsageDetail_20' ) start [2025-03-03 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595965', 'tblTempUsageDetail_20' ) end [2025-03-03 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595965', 'tblTempVendorCDR_20' ) start [2025-03-03 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595965', 'tblTempVendorCDR_20' ) end [2025-03-03 04:18:16] Production.INFO: ProcessCDR(1,14595965,1,1,2) [2025-03-03 04:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595965', 'tblTempUsageDetail_20' ) start [2025-03-03 04:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595965', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:18:24] Production.INFO: ==8766== Releasing lock... [2025-03-03 04:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:19:01] Production.INFO: ==8824== Lock acquired, processing the job... [2025-03-03 09:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:19:01] Production.INFO: neon service started [2025-03-03 09:19:01] Production.INFO: neon service started [2025-03-03 09:19:01] Production.INFO: ==8824== Releasing lock... [2025-03-03 09:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:19:01] Production.INFO: ==8826== Lock acquired, processing the job... [2025-03-03 04:19:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:19:02] Production.INFO: ==8826== Releasing lock... [2025-03-03 04:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:19:02] Production.INFO: ==8828== Lock acquired, processing the job... [2025-03-03 09:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:19:02] Production.INFO: ==8828== Releasing lock... [2025-03-03 09:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:19:03] Production.INFO: ==8833== Lock acquired, processing the job... [2025-03-03 04:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:19:03] Production.INFO: ==8841== Lock acquired, processing the job... [2025-03-03 04:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:19:03] Production.INFO: ==8831== Lock acquired, processing the job... [2025-03-03 04:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:19:03] Production.INFO: ==8835== Lock acquired, processing the job... [2025-03-03 04:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:19:03] Production.INFO: count ==13 [2025-03-03 04:19:03] Production.INFO: ==8839== Lock acquired, processing the job... [2025-03-03 04:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:19:03] Production.INFO: ==8837== Lock acquired, processing the job... [2025-03-03 04:19:03] Production.INFO: count ==21 [2025-03-03 04:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595967') start [2025-03-03 04:19:03] Production.INFO: ==8833== Releasing lock... [2025-03-03 04:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595967') end [2025-03-03 04:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:19:03] Production.INFO: 1 [2025-03-03 04:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:19:03] Production.INFO: Account Balance Start. [2025-03-03 04:19:03] Production.INFO: CreateAllLog Start [2025-03-03 04:19:03] Production.INFO: 117 [2025-03-03 04:19:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:03] Production.INFO: ==8841== Releasing lock... [2025-03-03 04:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:19:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.ERROR: done [2025-03-03 04:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.ERROR: done [2025-03-03 04:19:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:19:04] Production.INFO: Total Charge 0 [2025-03-03 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:19:04] Production.INFO: CreateAllLog End [2025-03-03 04:19:04] Production.INFO: Account Balance End. [2025-03-03 04:19:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:19:04] Production.INFO: ==8837== Releasing lock... [2025-03-03 04:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:19:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:19:11] Production.ERROR: CronJobId end10 [2025-03-03 04:19:11] Production.INFO: ==8835== Releasing lock... [2025-03-03 04:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:19:14] Production.INFO: call_cost start [2025-03-03 04:19:14] Production.INFO: call_cost end [2025-03-03 04:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:19:14] Production.INFO: ==8831== Releasing lock... [2025-03-03 04:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:19:16] Production.INFO: count ==409 [2025-03-03 04:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595970', 'tblTempUsageDetail_20' ) start [2025-03-03 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595970', 'tblTempUsageDetail_20' ) end [2025-03-03 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595970', 'tblTempVendorCDR_20' ) start [2025-03-03 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595970', 'tblTempVendorCDR_20' ) end [2025-03-03 04:19:16] Production.INFO: ProcessCDR(1,14595970,1,1,2) [2025-03-03 04:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595970', 'tblTempUsageDetail_20' ) start [2025-03-03 04:19:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595970', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:19:24] Production.INFO: ==8839== Releasing lock... [2025-03-03 04:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:20:02] Production.INFO: ==8897== Lock acquired, processing the job... [2025-03-03 09:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:20:02] Production.INFO: neon service started [2025-03-03 09:20:02] Production.INFO: neon service started [2025-03-03 09:20:02] Production.INFO: ==8897== Releasing lock... [2025-03-03 09:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:20:02] Production.INFO: ==8902== Lock acquired, processing the job... [2025-03-03 09:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:20:02] Production.INFO: ==8902== Releasing lock... [2025-03-03 09:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:20:02] Production.INFO: ==8900== Lock acquired, processing the job... [2025-03-03 04:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:20:02] Production.INFO: ==8900== Releasing lock... [2025-03-03 04:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:20:04] Production.INFO: ==8904== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 04:20:04] Production.INFO: ==8906== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 04:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:20:04] Production.ERROR: CronJob PID - 8906 [2025-03-03 04:20:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 04:20:04] Production.ERROR: CronJob ID - 5 [2025-03-03 04:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:20:00 [2025-03-03 04:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 04:20:04] Production.INFO: ==8904== Releasing lock... [2025-03-03 04:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 04:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:20:04] Production.INFO: ==8908== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:20:04] Production.INFO: ==8910== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:20:04] Production.INFO: ==8912== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:20:04] Production.INFO: Account Balance Start. [2025-03-03 04:20:04] Production.INFO: CreateAllLog Start [2025-03-03 04:20:04] Production.INFO: 117 [2025-03-03 04:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.INFO: ==8917== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 04:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.INFO: ==8914== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.INFO: ==8919== Lock acquired, processing the job... [2025-03-03 04:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:20:04] Production.INFO: ==8908== Releasing lock... [2025-03-03 04:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:20:04] Production.INFO: count ==13 [2025-03-03 04:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.INFO: count ==21 [2025-03-03 04:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595974') start [2025-03-03 04:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:04] Production.ERROR: done [2025-03-03 04:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 04:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595975', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 04:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14595974') end [2025-03-03 04:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:20:05] Production.INFO: 1 [2025-03-03 04:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: ==8919== Releasing lock... [2025-03-03 04:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:20:05] Production.ERROR: done [2025-03-03 04:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.ERROR: done [2025-03-03 04:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:20:05] Production.INFO: Total Charge 0 [2025-03-03 04:20:05] Production.INFO: CreateAllLog End [2025-03-03 04:20:05] Production.INFO: Account Balance End. [2025-03-03 04:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:20:05] Production.INFO: ==8912== Releasing lock... [2025-03-03 04:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:20:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14595975', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 04:20:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 04:20:08] Production.INFO: ProcessCDR(1,14595975,1,1,2) [2025-03-03 04:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14595975,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14595975,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 04:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 04:20:09] Production.INFO: ==8917== Releasing lock... [2025-03-03 04:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 04:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:20:15] Production.ERROR: CronJobId end10 [2025-03-03 04:20:15] Production.INFO: ==8910== Releasing lock... [2025-03-03 04:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:20:16] Production.INFO: call_cost start [2025-03-03 04:20:16] Production.INFO: call_cost end [2025-03-03 04:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:20:16] Production.INFO: ==8906== Releasing lock... [2025-03-03 04:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:20:17] Production.INFO: count ==409 [2025-03-03 04:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595976', 'tblTempUsageDetail_20' ) start [2025-03-03 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595976', 'tblTempUsageDetail_20' ) end [2025-03-03 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595976', 'tblTempVendorCDR_20' ) start [2025-03-03 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595976', 'tblTempVendorCDR_20' ) end [2025-03-03 04:20:17] Production.INFO: ProcessCDR(1,14595976,1,1,2) [2025-03-03 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595976', 'tblTempUsageDetail_20' ) start [2025-03-03 04:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595976', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:20:25] Production.INFO: ==8914== Releasing lock... [2025-03-03 04:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:21:01] Production.INFO: ==8977== Lock acquired, processing the job... [2025-03-03 09:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:21:01] Production.INFO: neon service started [2025-03-03 09:21:01] Production.INFO: neon service started [2025-03-03 09:21:01] Production.INFO: ==8977== Releasing lock... [2025-03-03 09:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:21:01] Production.INFO: ==8981== Lock acquired, processing the job... [2025-03-03 09:21:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:21:01] Production.INFO: ==8981== Releasing lock... [2025-03-03 09:21:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:21:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:21:01] Production.INFO: ==8979== Lock acquired, processing the job... [2025-03-03 04:21:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:21:02] Production.INFO: ==8979== Releasing lock... [2025-03-03 04:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:21:03] Production.INFO: ==8985== Lock acquired, processing the job... [2025-03-03 04:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:21:03] Production.INFO: ==8987== Lock acquired, processing the job... [2025-03-03 04:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:21:03] Production.INFO: ==8983== Lock acquired, processing the job... [2025-03-03 04:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:21:03] Production.INFO: ==8989== Lock acquired, processing the job... [2025-03-03 04:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:21:03] Production.INFO: ==8993== Lock acquired, processing the job... [2025-03-03 04:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:21:03] Production.INFO: ==8991== Lock acquired, processing the job... [2025-03-03 04:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:21:03] Production.INFO: ==8985== Releasing lock... [2025-03-03 04:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:21:03] Production.INFO: Account Balance Start. [2025-03-03 04:21:03] Production.INFO: CreateAllLog Start [2025-03-03 04:21:03] Production.INFO: 117 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: count ==13 [2025-03-03 04:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:21:03] Production.INFO: count ==21 [2025-03-03 04:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595980') start [2025-03-03 04:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595980') end [2025-03-03 04:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:21:03] Production.INFO: 1 [2025-03-03 04:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:21:03] Production.ERROR: done [2025-03-03 04:21:03] Production.INFO: ==8993== Releasing lock... [2025-03-03 04:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:21:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:21:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-14 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-15 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:03] Production.INFO: Date 2025-02-16 [2025-03-03 04:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.ERROR: done [2025-03-03 04:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:21:04] Production.INFO: Total Charge 0 [2025-03-03 04:21:04] Production.INFO: CreateAllLog End [2025-03-03 04:21:04] Production.INFO: Account Balance End. [2025-03-03 04:21:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:21:04] Production.INFO: ==8989== Releasing lock... [2025-03-03 04:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:21:12] Production.ERROR: CronJobId end10 [2025-03-03 04:21:12] Production.INFO: ==8987== Releasing lock... [2025-03-03 04:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:21:14] Production.INFO: call_cost start [2025-03-03 04:21:14] Production.INFO: call_cost end [2025-03-03 04:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:21:14] Production.INFO: ==8983== Releasing lock... [2025-03-03 04:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:21:16] Production.INFO: count ==409 [2025-03-03 04:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595981', 'tblTempUsageDetail_20' ) start [2025-03-03 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595981', 'tblTempUsageDetail_20' ) end [2025-03-03 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595981', 'tblTempVendorCDR_20' ) start [2025-03-03 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595981', 'tblTempVendorCDR_20' ) end [2025-03-03 04:21:16] Production.INFO: ProcessCDR(1,14595981,1,1,2) [2025-03-03 04:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595981', 'tblTempUsageDetail_20' ) start [2025-03-03 04:21:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595981', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:21:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:21:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:21:23] Production.INFO: ==8991== Releasing lock... [2025-03-03 04:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:22:01] Production.INFO: ==9047== Lock acquired, processing the job... [2025-03-03 09:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:22:01] Production.INFO: neon service started [2025-03-03 09:22:01] Production.INFO: neon service started [2025-03-03 09:22:01] Production.INFO: ==9047== Releasing lock... [2025-03-03 09:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:22:02] Production.INFO: ==9052== Lock acquired, processing the job... [2025-03-03 09:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:22:02] Production.INFO: ==9052== Releasing lock... [2025-03-03 09:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:22:02] Production.INFO: ==9049== Lock acquired, processing the job... [2025-03-03 04:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:22:02] Production.INFO: ==9049== Releasing lock... [2025-03-03 04:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:22:03] Production.INFO: ==9063== Lock acquired, processing the job... [2025-03-03 04:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:22:03] Production.INFO: Account Balance Start. [2025-03-03 04:22:03] Production.INFO: CreateAllLog Start [2025-03-03 04:22:03] Production.INFO: 117 [2025-03-03 04:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:03] Production.INFO: ==9057== Lock acquired, processing the job... [2025-03-03 04:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:03] Production.INFO: ==9059== Lock acquired, processing the job... [2025-03-03 04:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:22:03] Production.INFO: ==9067== Lock acquired, processing the job... [2025-03-03 04:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:22:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:22:03] Production.INFO: ==9065== Lock acquired, processing the job... [2025-03-03 04:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:22:03] Production.INFO: ==9061== Lock acquired, processing the job... [2025-03-03 04:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:22:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:22:03] Production.INFO: count ==13 [2025-03-03 04:22:03] Production.INFO: Date 2025-02-14 [2025-03-03 04:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:22:03] Production.INFO: count ==21 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595985') start [2025-03-03 04:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595985') end [2025-03-03 04:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:22:04] Production.INFO: 1 [2025-03-03 04:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: ==9067== Releasing lock... [2025-03-03 04:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:22:04] Production.INFO: ==9059== Releasing lock... [2025-03-03 04:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.ERROR: done [2025-03-03 04:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.ERROR: done [2025-03-03 04:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:22:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:22:04] Production.INFO: Total Charge 0 [2025-03-03 04:22:04] Production.INFO: CreateAllLog End [2025-03-03 04:22:05] Production.INFO: Account Balance End. [2025-03-03 04:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:22:05] Production.INFO: ==9063== Releasing lock... [2025-03-03 04:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:22:12] Production.ERROR: CronJobId end10 [2025-03-03 04:22:12] Production.INFO: ==9061== Releasing lock... [2025-03-03 04:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:22:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:22:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:22:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:22:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:22:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:22:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:22:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:22:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:22:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:22:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:22:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:22:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:22:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:22:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:22:13] Production.INFO: call_cost start [2025-03-03 04:22:13] Production.INFO: call_cost end [2025-03-03 04:22:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:22:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:22:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:22:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:22:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:22:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:22:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:22:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:22:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:22:13] Production.INFO: ==9057== Releasing lock... [2025-03-03 04:22:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:22:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:22:16] Production.INFO: count ==409 [2025-03-03 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595986', 'tblTempUsageDetail_20' ) start [2025-03-03 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595986', 'tblTempUsageDetail_20' ) end [2025-03-03 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595986', 'tblTempVendorCDR_20' ) start [2025-03-03 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595986', 'tblTempVendorCDR_20' ) end [2025-03-03 04:22:17] Production.INFO: ProcessCDR(1,14595986,1,1,2) [2025-03-03 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595986', 'tblTempUsageDetail_20' ) start [2025-03-03 04:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595986', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:22:24] Production.INFO: ==9065== Releasing lock... [2025-03-03 04:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:23:02] Production.INFO: ==9122== Lock acquired, processing the job... [2025-03-03 09:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:23:02] Production.INFO: neon service started [2025-03-03 09:23:02] Production.INFO: neon service started [2025-03-03 09:23:02] Production.INFO: ==9122== Releasing lock... [2025-03-03 09:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:23:02] Production.INFO: ==9125== Lock acquired, processing the job... [2025-03-03 04:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:23:02] Production.INFO: ==9127== Lock acquired, processing the job... [2025-03-03 09:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:23:03] Production.INFO: ==9125== Releasing lock... [2025-03-03 04:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:23:03] Production.INFO: ==9127== Releasing lock... [2025-03-03 09:23:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:23:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:23:03] Production.INFO: ==9129== Lock acquired, processing the job... [2025-03-03 04:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:23:03] Production.INFO: ==9135== Lock acquired, processing the job... [2025-03-03 04:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:23:03] Production.INFO: ==9139== Lock acquired, processing the job... [2025-03-03 04:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:23:03] Production.INFO: Account Balance Start. [2025-03-03 04:23:03] Production.INFO: CreateAllLog Start [2025-03-03 04:23:03] Production.INFO: 117 [2025-03-03 04:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:23:04] Production.INFO: ==9131== Lock acquired, processing the job... [2025-03-03 04:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:23:04] Production.INFO: ==9133== Lock acquired, processing the job... [2025-03-03 04:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:23:04] Production.INFO: count ==13 [2025-03-03 04:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:23:04] Production.INFO: count ==21 [2025-03-03 04:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595989') start [2025-03-03 04:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: ==9137== Lock acquired, processing the job... [2025-03-03 04:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595989') end [2025-03-03 04:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:23:04] Production.INFO: 1 [2025-03-03 04:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: ==9139== Releasing lock... [2025-03-03 04:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.INFO: ==9131== Releasing lock... [2025-03-03 04:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.ERROR: done [2025-03-03 04:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:04] Production.ERROR: done [2025-03-03 04:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:23:05] Production.INFO: Total Charge 0 [2025-03-03 04:23:05] Production.INFO: CreateAllLog End [2025-03-03 04:23:05] Production.INFO: Account Balance End. [2025-03-03 04:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:23:05] Production.INFO: ==9135== Releasing lock... [2025-03-03 04:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:23:12] Production.ERROR: CronJobId end10 [2025-03-03 04:23:12] Production.INFO: ==9133== Releasing lock... [2025-03-03 04:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:23:15] Production.INFO: call_cost start [2025-03-03 04:23:15] Production.INFO: call_cost end [2025-03-03 04:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:23:15] Production.INFO: ==9129== Releasing lock... [2025-03-03 04:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:23:16] Production.INFO: count ==409 [2025-03-03 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595991', 'tblTempUsageDetail_20' ) start [2025-03-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595991', 'tblTempUsageDetail_20' ) end [2025-03-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595991', 'tblTempVendorCDR_20' ) start [2025-03-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595991', 'tblTempVendorCDR_20' ) end [2025-03-03 04:23:17] Production.INFO: ProcessCDR(1,14595991,1,1,2) [2025-03-03 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595991', 'tblTempUsageDetail_20' ) start [2025-03-03 04:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595991', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:23:24] Production.INFO: ==9137== Releasing lock... [2025-03-03 04:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:23:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:24:01] Production.INFO: ==9196== Lock acquired, processing the job... [2025-03-03 09:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:24:01] Production.INFO: neon service started [2025-03-03 09:24:01] Production.INFO: neon service started [2025-03-03 09:24:01] Production.INFO: ==9196== Releasing lock... [2025-03-03 09:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:24:02] Production.INFO: ==9199== Lock acquired, processing the job... [2025-03-03 04:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:24:02] Production.INFO: ==9199== Releasing lock... [2025-03-03 04:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:24:02] Production.INFO: ==9201== Lock acquired, processing the job... [2025-03-03 09:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:24:02] Production.INFO: ==9201== Releasing lock... [2025-03-03 09:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:24:03] Production.INFO: ==9213== Lock acquired, processing the job... [2025-03-03 04:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:24:03] Production.INFO: ==9211== Lock acquired, processing the job... [2025-03-03 04:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:24:03] Production.INFO: ==9203== Lock acquired, processing the job... [2025-03-03 04:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:24:03] Production.INFO: ==9205== Lock acquired, processing the job... [2025-03-03 04:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:24:03] Production.INFO: ==9207== Lock acquired, processing the job... [2025-03-03 04:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:24:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:24:03] Production.INFO: ==9209== Lock acquired, processing the job... [2025-03-03 04:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:24:03] Production.INFO: count ==13 [2025-03-03 04:24:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:24:03] Production.INFO: count ==21 [2025-03-03 04:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:24:03] Production.ERROR: PBX CALL prc_importPBXExtension('14595992') start [2025-03-03 04:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:24:04] Production.INFO: Account Balance Start. [2025-03-03 04:24:04] Production.INFO: CreateAllLog Start [2025-03-03 04:24:04] Production.INFO: 117 [2025-03-03 04:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595992') end [2025-03-03 04:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:24:04] Production.INFO: 1 [2025-03-03 04:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:24:04] Production.ERROR: done [2025-03-03 04:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: ==9213== Releasing lock... [2025-03-03 04:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: ==9205== Releasing lock... [2025-03-03 04:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:24:04] Production.ERROR: done [2025-03-03 04:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:24:04] Production.INFO: Total Charge 0 [2025-03-03 04:24:04] Production.INFO: CreateAllLog End [2025-03-03 04:24:05] Production.INFO: Account Balance End. [2025-03-03 04:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:24:05] Production.INFO: ==9209== Releasing lock... [2025-03-03 04:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:24:11] Production.ERROR: CronJobId end10 [2025-03-03 04:24:11] Production.INFO: ==9207== Releasing lock... [2025-03-03 04:24:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:24:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:24:15] Production.INFO: call_cost start [2025-03-03 04:24:15] Production.INFO: call_cost end [2025-03-03 04:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:24:15] Production.INFO: ==9203== Releasing lock... [2025-03-03 04:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:24:16] Production.INFO: count ==409 [2025-03-03 04:24:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595996', 'tblTempUsageDetail_20' ) start [2025-03-03 04:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14595996', 'tblTempUsageDetail_20' ) end [2025-03-03 04:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595996', 'tblTempVendorCDR_20' ) start [2025-03-03 04:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14595996', 'tblTempVendorCDR_20' ) end [2025-03-03 04:24:16] Production.INFO: ProcessCDR(1,14595996,1,1,2) [2025-03-03 04:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14595996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14595996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14595996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14595996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14595996', 'tblTempUsageDetail_20' ) start [2025-03-03 04:24:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14595996', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:24:24] Production.INFO: ==9211== Releasing lock... [2025-03-03 04:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:25:02] Production.INFO: ==9267== Lock acquired, processing the job... [2025-03-03 09:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:25:02] Production.INFO: neon service started [2025-03-03 09:25:02] Production.INFO: neon service started [2025-03-03 09:25:02] Production.INFO: ==9267== Releasing lock... [2025-03-03 09:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:25:02] Production.INFO: ==9271== Lock acquired, processing the job... [2025-03-03 09:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:25:02] Production.INFO: ==9271== Releasing lock... [2025-03-03 09:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:25:02] Production.INFO: ==9269== Lock acquired, processing the job... [2025-03-03 04:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:25:03] Production.INFO: ==9269== Releasing lock... [2025-03-03 04:25:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:25:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:25:03] Production.INFO: ==9280== Lock acquired, processing the job... [2025-03-03 04:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:25:04] Production.INFO: ==9284== Lock acquired, processing the job... [2025-03-03 04:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:25:04] Production.INFO: ==9274== Lock acquired, processing the job... [2025-03-03 04:25:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:25:04] Production.INFO: Account Balance Start. [2025-03-03 04:25:04] Production.INFO: CreateAllLog Start [2025-03-03 04:25:04] Production.INFO: 117 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: ==9276== Lock acquired, processing the job... [2025-03-03 04:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:25:04] Production.INFO: ==9278== Lock acquired, processing the job... [2025-03-03 04:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: count ==13 [2025-03-03 04:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:25:04] Production.INFO: count ==21 [2025-03-03 04:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595998') start [2025-03-03 04:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: ==9282== Lock acquired, processing the job... [2025-03-03 04:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14595998') end [2025-03-03 04:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:25:04] Production.INFO: 1 [2025-03-03 04:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: ==9284== Releasing lock... [2025-03-03 04:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: ==9276== Releasing lock... [2025-03-03 04:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:25:04] Production.ERROR: done [2025-03-03 04:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.ERROR: done [2025-03-03 04:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:25:05] Production.INFO: Total Charge 0 [2025-03-03 04:25:05] Production.INFO: CreateAllLog End [2025-03-03 04:25:05] Production.INFO: Account Balance End. [2025-03-03 04:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:25:05] Production.INFO: ==9280== Releasing lock... [2025-03-03 04:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:25:12] Production.ERROR: CronJobId end10 [2025-03-03 04:25:12] Production.INFO: ==9278== Releasing lock... [2025-03-03 04:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:25:15] Production.INFO: call_cost start [2025-03-03 04:25:15] Production.INFO: call_cost end [2025-03-03 04:25:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:25:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:25:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:25:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:25:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:25:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:25:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:25:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:25:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:25:15] Production.INFO: ==9274== Releasing lock... [2025-03-03 04:25:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:25:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:25:17] Production.INFO: count ==409 [2025-03-03 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596001', 'tblTempUsageDetail_20' ) start [2025-03-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596001', 'tblTempUsageDetail_20' ) end [2025-03-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596001', 'tblTempVendorCDR_20' ) start [2025-03-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596001', 'tblTempVendorCDR_20' ) end [2025-03-03 04:25:17] Production.INFO: ProcessCDR(1,14596001,1,1,2) [2025-03-03 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596001', 'tblTempUsageDetail_20' ) start [2025-03-03 04:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596001', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:25:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:25:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:25:25] Production.INFO: ==9282== Releasing lock... [2025-03-03 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:26:01] Production.INFO: ==9337== Lock acquired, processing the job... [2025-03-03 09:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:26:01] Production.INFO: neon service started [2025-03-03 09:26:01] Production.INFO: neon service started [2025-03-03 09:26:01] Production.INFO: ==9337== Releasing lock... [2025-03-03 09:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:26:02] Production.INFO: ==9339== Lock acquired, processing the job... [2025-03-03 04:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:26:02] Production.INFO: ==9339== Releasing lock... [2025-03-03 04:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:26:02] Production.INFO: ==9341== Lock acquired, processing the job... [2025-03-03 09:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:26:02] Production.INFO: ==9341== Releasing lock... [2025-03-03 09:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:26:03] Production.INFO: ==9350== Lock acquired, processing the job... [2025-03-03 04:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:26:03] Production.INFO: ==9344== Lock acquired, processing the job... [2025-03-03 04:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:26:03] Production.INFO: Account Balance Start. [2025-03-03 04:26:03] Production.INFO: CreateAllLog Start [2025-03-03 04:26:03] Production.INFO: 117 [2025-03-03 04:26:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: ==9346== Lock acquired, processing the job... [2025-03-03 04:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:26:03] Production.INFO: ==9354== Lock acquired, processing the job... [2025-03-03 04:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:26:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:26:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: ==9348== Lock acquired, processing the job... [2025-03-03 04:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:26:03] Production.INFO: ==9352== Lock acquired, processing the job... [2025-03-03 04:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:26:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:26:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:26:03] Production.INFO: count ==13 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:26:03] Production.INFO: count ==21 [2025-03-03 04:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596005') start [2025-03-03 04:26:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: Date 2025-02-14 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:03] Production.INFO: ==9346== Releasing lock... [2025-03-03 04:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:26:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596005') end [2025-03-03 04:26:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:26:03] Production.INFO: 1 [2025-03-03 04:26:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:26:03] Production.INFO: Date 2025-02-15 [2025-03-03 04:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: ==9354== Releasing lock... [2025-03-03 04:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.ERROR: done [2025-03-03 04:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.ERROR: done [2025-03-03 04:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:26:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:26:04] Production.INFO: Total Charge 0 [2025-03-03 04:26:04] Production.INFO: CreateAllLog End [2025-03-03 04:26:04] Production.INFO: Account Balance End. [2025-03-03 04:26:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:26:04] Production.INFO: ==9350== Releasing lock... [2025-03-03 04:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:26:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:26:12] Production.ERROR: CronJobId end10 [2025-03-03 04:26:12] Production.INFO: ==9348== Releasing lock... [2025-03-03 04:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:26:14] Production.INFO: call_cost start [2025-03-03 04:26:14] Production.INFO: call_cost end [2025-03-03 04:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:26:14] Production.INFO: ==9344== Releasing lock... [2025-03-03 04:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:26:16] Production.INFO: count ==409 [2025-03-03 04:26:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596006', 'tblTempUsageDetail_20' ) start [2025-03-03 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596006', 'tblTempUsageDetail_20' ) end [2025-03-03 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596006', 'tblTempVendorCDR_20' ) start [2025-03-03 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596006', 'tblTempVendorCDR_20' ) end [2025-03-03 04:26:16] Production.INFO: ProcessCDR(1,14596006,1,1,2) [2025-03-03 04:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596006', 'tblTempUsageDetail_20' ) start [2025-03-03 04:26:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596006', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:26:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:26:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:26:24] Production.INFO: ==9352== Releasing lock... [2025-03-03 04:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:27:02] Production.INFO: ==9410== Lock acquired, processing the job... [2025-03-03 09:27:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:27:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:27:02] Production.INFO: neon service started [2025-03-03 09:27:02] Production.INFO: neon service started [2025-03-03 09:27:02] Production.INFO: ==9410== Releasing lock... [2025-03-03 09:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:27:02] Production.INFO: ==9412== Lock acquired, processing the job... [2025-03-03 04:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:27:02] Production.INFO: ==9414== Lock acquired, processing the job... [2025-03-03 09:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:27:02] Production.INFO: ==9414== Releasing lock... [2025-03-03 09:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:27:03] Production.INFO: ==9412== Releasing lock... [2025-03-03 04:27:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:27:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:27:04] Production.INFO: ==9419== Lock acquired, processing the job... [2025-03-03 04:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:27:04] Production.INFO: ==9423== Lock acquired, processing the job... [2025-03-03 04:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:27:04] Production.INFO: ==9417== Lock acquired, processing the job... [2025-03-03 04:27:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:27:04] Production.INFO: Account Balance Start. [2025-03-03 04:27:04] Production.INFO: CreateAllLog Start [2025-03-03 04:27:04] Production.INFO: 117 [2025-03-03 04:27:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:27:04] Production.INFO: ==9421== Lock acquired, processing the job... [2025-03-03 04:27:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: ==9419== Releasing lock... [2025-03-03 04:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:27:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:27:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:27:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:27:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: ==9425== Lock acquired, processing the job... [2025-03-03 04:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: ==9427== Lock acquired, processing the job... [2025-03-03 04:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:27:04] Production.INFO: count ==13 [2025-03-03 04:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:27:04] Production.INFO: count ==21 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596010') start [2025-03-03 04:27:04] Production.ERROR: done [2025-03-03 04:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596010') end [2025-03-03 04:27:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:27:05] Production.INFO: 1 [2025-03-03 04:27:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:27:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.ERROR: done [2025-03-03 04:27:05] Production.INFO: ==9427== Releasing lock... [2025-03-03 04:27:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:27:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:27:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:27:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:27:05] Production.INFO: Total Charge 0 [2025-03-03 04:27:05] Production.INFO: CreateAllLog End [2025-03-03 04:27:05] Production.INFO: Account Balance End. [2025-03-03 04:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:27:05] Production.INFO: ==9423== Releasing lock... [2025-03-03 04:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:27:12] Production.ERROR: CronJobId end10 [2025-03-03 04:27:12] Production.INFO: ==9421== Releasing lock... [2025-03-03 04:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:27:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:27:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:27:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:27:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:27:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:27:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:27:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:27:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:27:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:27:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:27:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:27:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:27:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:27:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:27:14] Production.INFO: call_cost start [2025-03-03 04:27:14] Production.INFO: call_cost end [2025-03-03 04:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:27:14] Production.INFO: ==9417== Releasing lock... [2025-03-03 04:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:27:17] Production.INFO: count ==409 [2025-03-03 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596011', 'tblTempUsageDetail_20' ) start [2025-03-03 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596011', 'tblTempUsageDetail_20' ) end [2025-03-03 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596011', 'tblTempVendorCDR_20' ) start [2025-03-03 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596011', 'tblTempVendorCDR_20' ) end [2025-03-03 04:27:17] Production.INFO: ProcessCDR(1,14596011,1,1,2) [2025-03-03 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596011', 'tblTempUsageDetail_20' ) start [2025-03-03 04:27:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596011', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:27:24] Production.INFO: ==9425== Releasing lock... [2025-03-03 04:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:28:01] Production.INFO: ==9481== Lock acquired, processing the job... [2025-03-03 09:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:28:01] Production.INFO: neon service started [2025-03-03 09:28:01] Production.INFO: neon service started [2025-03-03 09:28:01] Production.INFO: ==9481== Releasing lock... [2025-03-03 09:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:28:02] Production.INFO: ==9483== Lock acquired, processing the job... [2025-03-03 04:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:28:02] Production.INFO: ==9485== Lock acquired, processing the job... [2025-03-03 09:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:28:02] Production.INFO: ==9485== Releasing lock... [2025-03-03 09:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:28:02] Production.INFO: ==9483== Releasing lock... [2025-03-03 04:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:28:03] Production.INFO: ==9496== Lock acquired, processing the job... [2025-03-03 04:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:28:03] Production.INFO: ==9498== Lock acquired, processing the job... [2025-03-03 04:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:28:03] Production.INFO: ==9488== Lock acquired, processing the job... [2025-03-03 04:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:28:03] Production.INFO: ==9494== Lock acquired, processing the job... [2025-03-03 04:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:28:04] Production.INFO: count ==13 [2025-03-03 04:28:04] Production.INFO: ==9490== Lock acquired, processing the job... [2025-03-03 04:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:28:04] Production.INFO: count ==21 [2025-03-03 04:28:04] Production.INFO: ==9492== Lock acquired, processing the job... [2025-03-03 04:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596012') start [2025-03-03 04:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:28:04] Production.INFO: Account Balance Start. [2025-03-03 04:28:04] Production.INFO: CreateAllLog Start [2025-03-03 04:28:04] Production.INFO: 117 [2025-03-03 04:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596012') end [2025-03-03 04:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:28:04] Production.INFO: 1 [2025-03-03 04:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:28:04] Production.INFO: ==9498== Releasing lock... [2025-03-03 04:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.ERROR: done [2025-03-03 04:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: ==9490== Releasing lock... [2025-03-03 04:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.ERROR: done [2025-03-03 04:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:28:05] Production.INFO: Total Charge 0 [2025-03-03 04:28:05] Production.INFO: CreateAllLog End [2025-03-03 04:28:05] Production.INFO: Account Balance End. [2025-03-03 04:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:28:05] Production.INFO: ==9494== Releasing lock... [2025-03-03 04:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:28:11] Production.ERROR: CronJobId end10 [2025-03-03 04:28:11] Production.INFO: ==9492== Releasing lock... [2025-03-03 04:28:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:28:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:28:14] Production.INFO: call_cost start [2025-03-03 04:28:14] Production.INFO: call_cost end [2025-03-03 04:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:28:14] Production.INFO: ==9488== Releasing lock... [2025-03-03 04:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:28:16] Production.INFO: count ==409 [2025-03-03 04:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596016', 'tblTempUsageDetail_20' ) start [2025-03-03 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596016', 'tblTempUsageDetail_20' ) end [2025-03-03 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596016', 'tblTempVendorCDR_20' ) start [2025-03-03 04:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596016', 'tblTempVendorCDR_20' ) end [2025-03-03 04:28:16] Production.INFO: ProcessCDR(1,14596016,1,1,2) [2025-03-03 04:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596016', 'tblTempUsageDetail_20' ) start [2025-03-03 04:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596016', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:28:24] Production.INFO: ==9496== Releasing lock... [2025-03-03 04:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:29:02] Production.INFO: ==9596== Lock acquired, processing the job... [2025-03-03 09:29:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:29:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:29:02] Production.INFO: neon service started [2025-03-03 09:29:02] Production.INFO: neon service started [2025-03-03 09:29:02] Production.INFO: ==9596== Releasing lock... [2025-03-03 09:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:29:02] Production.INFO: ==9598== Lock acquired, processing the job... [2025-03-03 04:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:29:02] Production.INFO: ==9598== Releasing lock... [2025-03-03 04:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:29:03] Production.INFO: ==9600== Lock acquired, processing the job... [2025-03-03 09:29:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:29:03] Production.INFO: ==9600== Releasing lock... [2025-03-03 09:29:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:29:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:29:03] Production.INFO: ==9611== Lock acquired, processing the job... [2025-03-03 04:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:29:03] Production.INFO: ==9609== Lock acquired, processing the job... [2025-03-03 04:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:29:03] Production.INFO: ==9602== Lock acquired, processing the job... [2025-03-03 04:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:29:04] Production.INFO: ==9604== Lock acquired, processing the job... [2025-03-03 04:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:29:04] Production.INFO: Account Balance Start. [2025-03-03 04:29:04] Production.INFO: CreateAllLog Start [2025-03-03 04:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:29:04] Production.INFO: 117 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:29:04] Production.INFO: ==9607== Lock acquired, processing the job... [2025-03-03 04:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: ==9613== Lock acquired, processing the job... [2025-03-03 04:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:29:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.ERROR: done [2025-03-03 04:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:29:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:29:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:29:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:29:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:29:04] Production.INFO: count ==13 [2025-03-03 04:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: count ==21 [2025-03-03 04:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596020') start [2025-03-03 04:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: ==9604== Releasing lock... [2025-03-03 04:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596020') end [2025-03-03 04:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:29:04] Production.INFO: 1 [2025-03-03 04:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:29:04] Production.ERROR: done [2025-03-03 04:29:04] Production.INFO: ==9613== Releasing lock... [2025-03-03 04:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:29:05] Production.INFO: Total Charge 0 [2025-03-03 04:29:05] Production.INFO: CreateAllLog End [2025-03-03 04:29:05] Production.INFO: Account Balance End. [2025-03-03 04:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:29:05] Production.INFO: ==9609== Releasing lock... [2025-03-03 04:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:29:11] Production.ERROR: CronJobId end10 [2025-03-03 04:29:11] Production.INFO: ==9607== Releasing lock... [2025-03-03 04:29:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:29:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:29:14] Production.INFO: call_cost start [2025-03-03 04:29:14] Production.INFO: call_cost end [2025-03-03 04:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:29:14] Production.INFO: ==9602== Releasing lock... [2025-03-03 04:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:29:16] Production.INFO: count ==409 [2025-03-03 04:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596021', 'tblTempUsageDetail_20' ) start [2025-03-03 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596021', 'tblTempUsageDetail_20' ) end [2025-03-03 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596021', 'tblTempVendorCDR_20' ) start [2025-03-03 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596021', 'tblTempVendorCDR_20' ) end [2025-03-03 04:29:16] Production.INFO: ProcessCDR(1,14596021,1,1,2) [2025-03-03 04:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596021', 'tblTempUsageDetail_20' ) start [2025-03-03 04:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596021', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:29:24] Production.INFO: ==9611== Releasing lock... [2025-03-03 04:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:30:01] Production.INFO: ==9667== Lock acquired, processing the job... [2025-03-03 09:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:30:01] Production.INFO: neon service started [2025-03-03 09:30:01] Production.INFO: neon service started [2025-03-03 09:30:01] Production.INFO: ==9667== Releasing lock... [2025-03-03 09:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:30:02] Production.INFO: ==9669== Lock acquired, processing the job... [2025-03-03 04:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:30:02] Production.INFO: ==9671== Lock acquired, processing the job... [2025-03-03 09:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:30:02] Production.INFO: ==9671== Releasing lock... [2025-03-03 09:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:30:02] Production.INFO: ==9669== Releasing lock... [2025-03-03 04:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:30:03] Production.INFO: ==9675== Lock acquired, processing the job... [2025-03-03 04:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:30:03] Production.INFO: ==9677== Lock acquired, processing the job... [2025-03-03 04:30:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:30:04] Production.INFO: ==9673== Lock acquired, processing the job... [2025-03-03 04:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 04:30:04] Production.INFO: ==9688== Lock acquired, processing the job... [2025-03-03 04:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:30:04] Production.INFO: ==9686== Lock acquired, processing the job... [2025-03-03 04:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 04:30:04] Production.INFO: ==9679== Lock acquired, processing the job... [2025-03-03 04:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 04:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:30:04] Production.ERROR: CronJob PID - 9675 [2025-03-03 04:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 04:30:04] Production.ERROR: CronJob ID - 5 [2025-03-03 04:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:30:00 [2025-03-03 04:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:30:04] Production.ERROR: CronJob PID - 9677 [2025-03-03 04:30:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 04:30:04] Production.ERROR: CronJob ID - 7 [2025-03-03 04:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:30:00 [2025-03-03 04:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 04:30:04] Production.INFO: ==9673== Releasing lock... [2025-03-03 04:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 04:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:30:04] Production.INFO: ==9682== Lock acquired, processing the job... [2025-03-03 04:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:30:04] Production.INFO: ==9684== Lock acquired, processing the job... [2025-03-03 04:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:30:04] Production.INFO: Account Balance Start. [2025-03-03 04:30:04] Production.INFO: CreateAllLog Start [2025-03-03 04:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:30:04] Production.INFO: 117 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:30:04] Production.INFO: count ==13 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:30:04] Production.INFO: count ==21 [2025-03-03 04:30:04] Production.INFO: ==9677== Releasing lock... [2025-03-03 04:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596024') start [2025-03-03 04:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.ERROR: done [2025-03-03 04:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596024') end [2025-03-03 04:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:30:04] Production.INFO: 1 [2025-03-03 04:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 04:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596026', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 04:30:04] Production.INFO: ==9688== Releasing lock... [2025-03-03 04:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.ERROR: done [2025-03-03 04:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.ERROR: done [2025-03-03 04:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:30:05] Production.INFO: Total Charge 0 [2025-03-03 04:30:05] Production.INFO: CreateAllLog End [2025-03-03 04:30:05] Production.INFO: Account Balance End. [2025-03-03 04:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:30:05] Production.INFO: ==9682== Releasing lock... [2025-03-03 04:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596026', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 04:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 04:30:09] Production.INFO: ProcessCDR(1,14596026,1,1,2) [2025-03-03 04:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596026,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596026,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 04:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 04:30:09] Production.INFO: ==9686== Releasing lock... [2025-03-03 04:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 04:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:30:14] Production.ERROR: CronJobId end10 [2025-03-03 04:30:14] Production.INFO: ==9679== Releasing lock... [2025-03-03 04:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:30:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:30:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:30:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:30:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:30:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:30:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:30:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:30:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:30:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:30:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:30:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:30:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:30:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:30:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:30:16] Production.INFO: call_cost start [2025-03-03 04:30:16] Production.INFO: call_cost end [2025-03-03 04:30:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:30:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:30:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:30:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:30:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:30:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:30:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:30:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:30:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:30:16] Production.INFO: ==9675== Releasing lock... [2025-03-03 04:30:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:30:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:30:17] Production.INFO: count ==409 [2025-03-03 04:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596027', 'tblTempUsageDetail_20' ) start [2025-03-03 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596027', 'tblTempUsageDetail_20' ) end [2025-03-03 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596027', 'tblTempVendorCDR_20' ) start [2025-03-03 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596027', 'tblTempVendorCDR_20' ) end [2025-03-03 04:30:17] Production.INFO: ProcessCDR(1,14596027,1,1,2) [2025-03-03 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596027', 'tblTempUsageDetail_20' ) start [2025-03-03 04:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596027', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:30:25] Production.INFO: ==9684== Releasing lock... [2025-03-03 04:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:30:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:31:02] Production.INFO: ==9744== Lock acquired, processing the job... [2025-03-03 09:31:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:31:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:31:02] Production.INFO: neon service started [2025-03-03 09:31:02] Production.INFO: neon service started [2025-03-03 09:31:02] Production.INFO: ==9744== Releasing lock... [2025-03-03 09:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:31:02] Production.INFO: ==9748== Lock acquired, processing the job... [2025-03-03 09:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:31:02] Production.INFO: ==9748== Releasing lock... [2025-03-03 09:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:31:02] Production.INFO: ==9746== Lock acquired, processing the job... [2025-03-03 04:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:31:03] Production.INFO: ==9746== Releasing lock... [2025-03-03 04:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:31:04] Production.INFO: ==9751== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:31:04] Production.INFO: ==9757== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:31:04] Production.INFO: ==9753== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: invoicegenerator-command-invoicegenerator-companyid-1-cronjobid-6 #Starts# [2025-03-03 04:31:04] Production.INFO: ==9755== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:31:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:31:04] Production.INFO: ==9761== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:31:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:31:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:31:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:31:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:31:04] Production.INFO: ==9759== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:31:04] Production.INFO: Call prc_getBillingAccounts(1,2025-03-03,'','0') [2025-03-03 04:31:04] Production.INFO: Array ( [0] => stdClass Object ( [AccountID] => 8 [NextInvoiceDate] => 2025-03-03 [AccountName] => Dominos 10354 (Vijitharan Kanagasingam) [ServiceID] => 0 ) [1] => stdClass Object ( [AccountID] => 45 [NextInvoiceDate] => 2025-03-03 [AccountName] => Metro Toronto Collision Centre [ServiceID] => 0 ) [2] => stdClass Object ( [AccountID] => 63 [NextInvoiceDate] => 2025-03-03 [AccountName] => Clek Inc. [ServiceID] => 0 ) [3] => stdClass Object ( [AccountID] => 208 [NextInvoiceDate] => 2025-03-03 [AccountName] => Lions Auto Protection [ServiceID] => 0 ) ) [2025-03-03 04:31:04] Production.INFO: ==9763== Lock acquired, processing the job... [2025-03-03 04:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:31:04] Production.INFO: AccountID =8 FirstInvoiceSend 0 [2025-03-03 04:31:04] Production.INFO: LastInvoiceDate 2025-02-03 NextInvoiceDate 2025-03-03 [2025-03-03 04:31:04] Production.INFO: LastChargeDate 2025-02-03 NextChargeDate 2025-03-02 [2025-03-03 04:31:04] Production.INFO: Account Balance Start. [2025-03-03 04:31:04] Production.INFO: CreateAllLog Start [2025-03-03 04:31:04] Production.INFO: 117 [2025-03-03 04:31:04] Production.INFO: isCDRLoaded Array ( [0] => stdClass Object ( [isLoaded] => 1 ) ) [2025-03-03 04:31:04] Production.INFO: ========================== Invoice Send Start ============================= [2025-03-03 04:31:04] Production.INFO: Invoice::sendInvoice(1,8,2025-02-03,2025-03-03,billing@onswitchit.ca) [2025-03-03 04:31:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: start Date =2025-02-03 EndDate =2025-03-02 23:59:59 [2025-03-03 04:31:04] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV [2025-03-03 04:31:04] Production.INFO: InvoiceTemplate->Terms =



This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.


[2025-03-03 04:31:04] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled [2025-03-03 04:31:04] Production.INFO: AlreadyBilled [2025-03-03 04:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: count ==13 [2025-03-03 04:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:31:04] Production.INFO: count ==21 [2025-03-03 04:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596032') start [2025-03-03 04:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: ==9755== Releasing lock... [2025-03-03 04:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596032') end [2025-03-03 04:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:31:04] Production.INFO: 1 [2025-03-03 04:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:31:04] Production.INFO: original start date ==>2025-02-03 changed start date ==>2025-02-03 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:04] Production.ERROR: done [2025-03-03 04:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: ==9763== Releasing lock... [2025-03-03 04:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:31:04] Production.INFO: Invoice::getAccountUsageTotal(1,8,2025-02-03,2025-03-02 23:59:59) [2025-03-03 04:31:04] Production.INFO: TotalCharges - 0 [2025-03-03 04:31:04] Production.INFO: TotalUsageCharges - 0.00 [2025-03-03 04:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: Usage Over [2025-03-03 04:31:04] Production.INFO: Call prc_getAccountSubscription(8,0) [2025-03-03 04:31:04] Production.INFO: SUBSCRIPTION 2 [2025-03-03 04:31:04] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:04] Production.INFO: SubscriptionID - 5 [2025-03-03 04:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:04] Production.INFO: isAdvanceSubscription - 5 [2025-03-03 04:31:05] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-04-02 [2025-03-03 04:31:05] Production.INFO: NewNextChargeDate =2025-04-02 00:00:00 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: EndDate =2024-02-02 00:00:00 [2025-03-03 04:31:05] Production.INFO: NewEndDate1 =2024-02-03 [2025-03-03 04:31:05] Production.INFO: SubscriptionDate [2025-03-03 04:31:05] Production.INFO: Array ( [StartDate] => 2024-02-03 [EndDate] => 2025-04-02 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:05] Production.INFO: AccountSubscription StartDate 2017-04-03 StartDate 2025-02-03 [2025-03-03 04:31:05] Production.INFO: SubscriptionID - 2024-02-03=====2025-04-02 00:00:00 [2025-03-03 04:31:05] Production.INFO: AccountSubscriptionID - 10 === 2017-04-03=====2023-12-14 [2025-03-03 04:31:05] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:05] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:05] Production.INFO: SubscriptionID - 4 [2025-03-03 04:31:05] Production.ERROR: done [2025-03-03 04:31:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:31:05] Production.INFO: isAdvanceSubscription - 4 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-04-02 [2025-03-03 04:31:05] Production.INFO: NewNextChargeDate =2025-04-02 00:00:00 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: EndDate =2024-02-02 00:00:00 [2025-03-03 04:31:05] Production.INFO: NewEndDate1 =2024-02-03 [2025-03-03 04:31:05] Production.INFO: SubscriptionDate [2025-03-03 04:31:05] Production.INFO: Array ( [StartDate] => 2024-02-03 [EndDate] => 2025-04-02 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:05] Production.INFO: AccountSubscription StartDate 2017-04-03 StartDate 2025-02-03 [2025-03-03 04:31:05] Production.INFO: SubscriptionID - 2024-02-03=====2025-04-02 00:00:00 [2025-03-03 04:31:05] Production.INFO: AccountSubscriptionID - 11 === 2017-04-03=====2023-12-14 [2025-03-03 04:31:05] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:05] Production.INFO: SUBSCRIPTION Over [2025-03-03 04:31:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Call prc_getAccountOneOffCharge(8,0,2025-02-03,2025-03-03 23:59:59) [2025-03-03 04:31:05] Production.INFO: AccountOneOffCharge 0 [2025-03-03 04:31:05] Production.INFO: AccountOneOffCharge Over [2025-03-03 04:31:05] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start [2025-03-03 04:31:05] Production.INFO: New UsageDates 2025-02-03 - 2025-03-02 23:59:59 [2025-03-03 04:31:05] Production.INFO: SubTotal 0 [2025-03-03 04:31:05] Production.INFO: SubTotalWithouttaxTotal 0 [2025-03-03 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:31:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: AccountOneOffCharge Tax Over [2025-03-03 04:31:05] Production.INFO: TotalTax 0 [2025-03-03 04:31:05] Production.INFO: InvoiceGrandTotal 0 [2025-03-03 04:31:05] Production.INFO: InvoiceTaxAmount 0 [2025-03-03 04:31:05] Production.INFO: GrandTotal 0 [2025-03-03 04:31:05] Production.INFO: SubTotal 0.00 [2025-03-03 04:31:05] Production.INFO: TotalDue 0.00 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: original start date ==>2025-02-03 changed start date ==>2025-02-03 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:05] Production.INFO: CALL prc_getInvoiceUsage(1,'8','0','1','2025-02-03 00:00:00','2025-03-02 23:59:59',0) [2025-03-03 04:31:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: PDF Generation start [2025-03-03 04:31:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/8/Invoices/2025/03/03/Invoice-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.pdf [2025-03-03 04:31:05] Production.INFO: On Linux [2025-03-03 04:31:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:05] Production.INFO: Total Charge 0 [2025-03-03 04:31:05] Production.INFO: CreateAllLog End [2025-03-03 04:31:06] Production.INFO: Account Balance End. [2025-03-03 04:31:06] Production.ERROR: CronJobId end 12 [2025-03-03 04:31:06] Production.INFO: ==9759== Releasing lock... [2025-03-03 04:31:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:31:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:31:07] Production.INFO: /var/www/html/onswitch.neon.service/wkhtmltox/bin/wkhtmltopdf --header-spacing 3 --footer-spacing 1 --header-html --footer-html "/var/www/tmp/1/8/Invoices/2025/03/03/footer-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.html" "/var/www/tmp/1/8/Invoices/2025/03/03/Invoice-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.html" "/var/www/tmp/1/8/Invoices/2025/03/03/Invoice-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.pdf" [2025-03-03 04:31:07] Production.INFO: [2025-03-03 04:31:07] Production.INFO: /var/www/tmp/1/8/Invoices/2025/03/03/Invoice-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.html [2025-03-03 04:31:07] Production.INFO: /var/www/tmp/1/8/Invoices/2025/03/03/header-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.html [2025-03-03 04:31:07] Production.INFO: /var/www/tmp/1/8/Invoices/2025/03/03/footer-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.html [2025-03-03 04:31:07] Production.INFO: Invoice generation PDF path [2025-03-03 04:31:07] Production.INFO: PDF fullPath 1/8/Invoices/2025/03/03/Invoice-dominos-10354-vijitharan-kanagasingam-inv11631-from-02-03-2025-to-03-02-2025-10569.pdf [2025-03-03 04:31:07] Production.INFO: Generate Usage File Start [2025-03-03 04:31:07] Production.INFO: Usage File fullPath 1/8/InvoiceUsageFile/2025/03/03/dominos-10354-vijitharan-kanagasingam-03-02-2025-00-00-00-TO-02-03-2025-23-59-59_5779__3c002040-f812-11ef-bee5-83b22aee4197.csv [2025-03-03 04:31:08] Production.INFO: Sending Email to Staff over [2025-03-03 04:31:08] Production.INFO: Email Status 1 [2025-03-03 04:31:08] Production.INFO: Sending Email to Customer [2025-03-03 04:31:08] Production.INFO: =========== Email Sending over =========== [2025-03-03 04:31:08] Production.INFO: =========== Returning as Success =========== AccountID 8 [2025-03-03 04:31:08] Production.INFO: Invoice::sendInvoice done [2025-03-03 04:31:08] Production.INFO: Invoice created - Array ( [status] => success [message] => Invoice Created Successfully. [accounts] => ) [2025-03-03 04:31:08] Production.INFO: Invoice Committed AccountID = 8 [2025-03-03 04:31:08] Production.INFO: =========== Updating InvoiceDate =========== [2025-03-03 04:31:08] Production.INFO: NextInvoice 2025-03-03 2025-04-02 [2025-03-03 04:31:08] Production.INFO: new dates [2025-03-03 04:31:08] Production.INFO: LastInvoiceDate 2025-03-03 NextInvoiceDate 2025-04-03 [2025-03-03 04:31:08] Production.INFO: LastChargeDate 2025-03-03 NextChargeDate 2025-04-02 [2025-03-03 04:31:08] Production.INFO: =========== Updated InvoiceDate =========== [2025-03-03 04:31:08] Production.INFO: ========================== Invoice Send End ============================= [2025-03-03 04:31:09] Production.INFO: AccountID =45 FirstInvoiceSend 0 [2025-03-03 04:31:09] Production.INFO: LastInvoiceDate 2025-02-03 NextInvoiceDate 2025-03-03 [2025-03-03 04:31:09] Production.INFO: LastChargeDate 2025-02-03 NextChargeDate 2025-03-02 [2025-03-03 04:31:09] Production.INFO: isCDRLoaded Array ( [0] => stdClass Object ( [isLoaded] => 1 ) ) [2025-03-03 04:31:09] Production.INFO: ========================== Invoice Send Start ============================= [2025-03-03 04:31:09] Production.INFO: Invoice::sendInvoice(1,45,2025-02-03,2025-03-03,billing@onswitchit.ca) [2025-03-03 04:31:09] Production.INFO: start Date =2025-02-03 EndDate =2025-03-02 23:59:59 [2025-03-03 04:31:09] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV [2025-03-03 04:31:09] Production.INFO: InvoiceTemplate->Terms =



This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.


[2025-03-03 04:31:09] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled [2025-03-03 04:31:09] Production.INFO: AlreadyBilled [2025-03-03 04:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:09] Production.INFO: original start date ==>2025-02-03 changed start date ==>2025-02-03 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:09] Production.INFO: CompanyGatewayID 1 TotalCharges ==>3.51000000 [2025-03-03 04:31:09] Production.INFO: Invoice::getAccountUsageTotal(1,45,2025-02-03,2025-03-02 23:59:59) [2025-03-03 04:31:09] Production.INFO: TotalCharges - 3.51 [2025-03-03 04:31:09] Production.INFO: TotalUsageCharges - 3.51 [2025-03-03 04:31:09] Production.INFO: Usage Over [2025-03-03 04:31:09] Production.INFO: Call prc_getAccountSubscription(45,0) [2025-03-03 04:31:09] Production.INFO: SUBSCRIPTION 3 [2025-03-03 04:31:09] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:09] Production.INFO: SubscriptionID - 1 [2025-03-03 04:31:09] Production.INFO: isAdvanceSubscription - 1 [2025-03-03 04:31:09] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-04-02 [2025-03-03 04:31:09] Production.INFO: NewNextChargeDate =2025-04-02 00:00:00 [2025-03-03 04:31:09] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:09] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:09] Production.INFO: SubscriptionDate [2025-03-03 04:31:09] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-04-02 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:09] Production.INFO: AccountSubscription StartDate 2017-11-03 StartDate 2025-02-03 [2025-03-03 04:31:09] Production.INFO: SubscriptionID - 2025-03-03=====2025-04-02 00:00:00 [2025-03-03 04:31:09] Production.INFO: AccountSubscriptionID - 98 === 2017-11-03=====2026-03-03 [2025-03-03 04:31:09] Production.INFO: regular Advance Subscription [2025-03-03 04:31:09] Production.INFO: First Time False 2017-11-03 2025-03-03 [2025-03-03 04:31:09] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2017-11-03 EndDate 2025-04-02 00:00:00 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:09] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:09] Production.INFO: AccountSubscription::getSubscriptionAmount(98,2025-03-03,2025-04-02 00:00:00,,0) [2025-03-03 04:31:09] Production.INFO: SubscriptionCharge - 7 [2025-03-03 04:31:09] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:09] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(45,1,1,2025-03-03,2025-04-02 00:00:00,License for a Pay As You Go Cloud Phone extension,28,7,4,98) [2025-03-03 04:31:09] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:09] Production.INFO: DiscountType [2025-03-03 04:31:09] Production.INFO: SubscriptionCharge 28 [2025-03-03 04:31:09] Production.INFO: New SubscriptionCharge 28 [2025-03-03 04:31:09] Production.INFO: TotalSubscriptionCharge - 28.00 [2025-03-03 04:31:09] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:09] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:09] Production.INFO: SubscriptionID - 4 [2025-03-03 04:31:09] Production.INFO: isAdvanceSubscription - 4 [2025-03-03 04:31:09] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-04-02 [2025-03-03 04:31:09] Production.INFO: NewNextChargeDate =2025-04-02 00:00:00 [2025-03-03 04:31:09] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:09] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:09] Production.INFO: SubscriptionDate [2025-03-03 04:31:09] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-04-02 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:09] Production.INFO: AccountSubscription StartDate 2017-11-03 StartDate 2025-02-03 [2025-03-03 04:31:09] Production.INFO: SubscriptionID - 2025-03-03=====2025-04-02 00:00:00 [2025-03-03 04:31:09] Production.INFO: AccountSubscriptionID - 99 === 2017-11-03=====2026-03-03 [2025-03-03 04:31:09] Production.INFO: regular Advance Subscription [2025-03-03 04:31:09] Production.INFO: First Time False 2017-11-03 2025-03-03 [2025-03-03 04:31:09] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2017-11-03 EndDate 2025-04-02 00:00:00 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:09] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:09] Production.INFO: AccountSubscription::getSubscriptionAmount(99,2025-03-03,2025-04-02 00:00:00,,0) [2025-03-03 04:31:09] Production.INFO: SubscriptionCharge - 2.5 [2025-03-03 04:31:09] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:09] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(45,1,4,2025-03-03,2025-04-02 00:00:00,e911 address registration (16475609483 - 19 VANLEY CRES NORTH YORK, ON M3J2B7),2.5,2.5,1,99) [2025-03-03 04:31:09] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:09] Production.INFO: DiscountType [2025-03-03 04:31:09] Production.INFO: SubscriptionCharge 2.5 [2025-03-03 04:31:09] Production.INFO: New SubscriptionCharge 2.5 [2025-03-03 04:31:09] Production.INFO: TotalSubscriptionCharge - 2.50 [2025-03-03 04:31:09] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:09] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:09] Production.INFO: SubscriptionID - 24 [2025-03-03 04:31:09] Production.INFO: SubscriptionID - 2025-02-03=====2025-03-02 [2025-03-03 04:31:09] Production.INFO: AccountSubscriptionID - 600 === 2021-07-08=====2022-07-08 [2025-03-03 04:31:09] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:09] Production.INFO: SUBSCRIPTION Over [2025-03-03 04:31:09] Production.INFO: Call prc_getAccountOneOffCharge(45,0,2025-02-03,2025-03-03 23:59:59) [2025-03-03 04:31:09] Production.INFO: AccountOneOffCharge 0 [2025-03-03 04:31:09] Production.INFO: AccountOneOffCharge Over [2025-03-03 04:31:09] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start [2025-03-03 04:31:09] Production.INFO: New UsageDates 2025-02-03 - 2025-03-02 23:59:59 [2025-03-03 04:31:09] Production.INFO: SubTotal 34.01 [2025-03-03 04:31:09] Production.INFO: SubTotalWithouttaxTotal 0 [2025-03-03 04:31:09] Production.INFO: AccountOneOffCharge Tax Over [2025-03-03 04:31:09] Production.INFO: TotalTax 4.4213 [2025-03-03 04:31:09] Production.INFO: InvoiceGrandTotal 38.4313 [2025-03-03 04:31:09] Production.INFO: InvoiceTaxAmount 4.42 [2025-03-03 04:31:09] Production.INFO: GrandTotal 38.43 [2025-03-03 04:31:09] Production.INFO: SubTotal 34.01 [2025-03-03 04:31:09] Production.INFO: TotalDue 38.43 [2025-03-03 04:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:09] Production.INFO: original start date ==>2025-02-03 changed start date ==>2025-02-03 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:09] Production.INFO: CALL prc_getInvoiceUsage(1,'45','0','1','2025-02-03 00:00:00','2025-03-02 23:59:59',0) [2025-03-03 04:31:09] Production.INFO: PDF Generation start [2025-03-03 04:31:09] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/45/Invoices/2025/03/03/Invoice-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.pdf [2025-03-03 04:31:09] Production.INFO: On Linux [2025-03-03 04:31:11] Production.INFO: /var/www/html/onswitch.neon.service/wkhtmltox/bin/wkhtmltopdf --header-spacing 3 --footer-spacing 1 --header-html --footer-html "/var/www/tmp/1/45/Invoices/2025/03/03/footer-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.html" "/var/www/tmp/1/45/Invoices/2025/03/03/Invoice-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.html" "/var/www/tmp/1/45/Invoices/2025/03/03/Invoice-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.pdf" [2025-03-03 04:31:11] Production.INFO: [2025-03-03 04:31:11] Production.INFO: /var/www/tmp/1/45/Invoices/2025/03/03/Invoice-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.html [2025-03-03 04:31:11] Production.INFO: /var/www/tmp/1/45/Invoices/2025/03/03/header-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.html [2025-03-03 04:31:11] Production.INFO: /var/www/tmp/1/45/Invoices/2025/03/03/footer-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.html [2025-03-03 04:31:11] Production.INFO: Invoice generation PDF path [2025-03-03 04:31:11] Production.INFO: PDF fullPath 1/45/Invoices/2025/03/03/Invoice-metro-toronto-collision-centre-inv11632-from-02-03-2025-to-03-02-2025-10570.pdf [2025-03-03 04:31:11] Production.INFO: Generate Usage File Start [2025-03-03 04:31:11] Production.INFO: Usage File fullPath 1/45/InvoiceUsageFile/2025/03/03/metro-toronto-collision-centre-03-02-2025-00-00-00-TO-02-03-2025-23-59-59_596__3ea15420-f812-11ef-8bf9-cb08a75ebab1.csv [2025-03-03 04:31:12] Production.INFO: Sending Email to Staff over [2025-03-03 04:31:12] Production.INFO: Email Status 1 [2025-03-03 04:31:12] Production.INFO: Sending Email to Customer [2025-03-03 04:31:13] Production.INFO: Email Try 10570 1 [2025-03-03 04:31:13] Production.INFO: =========== Email Sending over =========== [2025-03-03 04:31:13] Production.INFO: =========== Returning as Success =========== AccountID 45 [2025-03-03 04:31:13] Production.INFO: Invoice::sendInvoice done [2025-03-03 04:31:13] Production.INFO: Invoice created - Array ( [status] => success [message] => Invoice Created Successfully. [accounts] => ) [2025-03-03 04:31:13] Production.INFO: Invoice Committed AccountID = 45 [2025-03-03 04:31:13] Production.INFO: =========== Updating InvoiceDate =========== [2025-03-03 04:31:13] Production.INFO: NextInvoice 2025-03-03 2025-04-02 [2025-03-03 04:31:13] Production.INFO: new dates [2025-03-03 04:31:13] Production.INFO: LastInvoiceDate 2025-03-03 NextInvoiceDate 2025-04-03 [2025-03-03 04:31:13] Production.INFO: LastChargeDate 2025-03-03 NextChargeDate 2025-04-02 [2025-03-03 04:31:13] Production.INFO: =========== Updated InvoiceDate =========== [2025-03-03 04:31:13] Production.INFO: ========================== Invoice Send End ============================= [2025-03-03 04:31:13] Production.INFO: AccountID =63 FirstInvoiceSend 0 [2025-03-03 04:31:13] Production.INFO: LastInvoiceDate 2025-01-31 NextInvoiceDate 2025-03-03 [2025-03-03 04:31:13] Production.INFO: LastChargeDate 2025-01-31 NextChargeDate 2025-03-02 [2025-03-03 04:31:13] Production.INFO: isCDRLoaded Array ( [0] => stdClass Object ( [isLoaded] => 1 ) ) [2025-03-03 04:31:13] Production.INFO: ========================== Invoice Send Start ============================= [2025-03-03 04:31:13] Production.INFO: Invoice::sendInvoice(1,63,2025-01-31,2025-03-03,billing@onswitchit.ca) [2025-03-03 04:31:13] Production.INFO: start Date =2025-01-31 EndDate =2025-03-02 23:59:59 [2025-03-03 04:31:13] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV [2025-03-03 04:31:13] Production.INFO: InvoiceTemplate->Terms =


This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.


[2025-03-03 04:31:13] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled [2025-03-03 04:31:13] Production.INFO: AlreadyBilled [2025-03-03 04:31:13] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:13] Production.INFO: original start date ==>2025-01-31 changed start date ==>2025-01-31 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:13] Production.INFO: CompanyGatewayID 1 TotalCharges ==>4.34000000 [2025-03-03 04:31:13] Production.INFO: Invoice::getAccountUsageTotal(1,63,2025-01-31,2025-03-02 23:59:59) [2025-03-03 04:31:13] Production.INFO: TotalCharges - 4.34 [2025-03-03 04:31:13] Production.INFO: TotalUsageCharges - 4.34 [2025-03-03 04:31:13] Production.INFO: Usage Over [2025-03-03 04:31:13] Production.INFO: Call prc_getAccountSubscription(63,0) [2025-03-03 04:31:13] Production.INFO: SUBSCRIPTION 20 [2025-03-03 04:31:13] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:13] Production.INFO: SubscriptionID - 1 [2025-03-03 04:31:13] Production.INFO: isAdvanceSubscription - 1 [2025-03-03 04:31:13] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:13] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:13] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:13] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:13] Production.INFO: SubscriptionDate [2025-03-03 04:31:13] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:13] Production.INFO: AccountSubscription StartDate 2018-02-16 StartDate 2025-01-31 [2025-03-03 04:31:13] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 00:00:00 [2025-03-03 04:31:13] Production.INFO: AccountSubscriptionID - 223 === 2018-02-16=====2026-03-03 [2025-03-03 04:31:13] Production.INFO: regular Advance Subscription [2025-03-03 04:31:13] Production.INFO: First Time False 2018-02-16 2025-03-03 [2025-03-03 04:31:13] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2018-02-16 EndDate 2025-03-30 00:00:00 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:13] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:13] Production.INFO: AccountSubscription::getSubscriptionAmount(223,2025-03-03,2025-03-30 00:00:00,,0) [2025-03-03 04:31:13] Production.INFO: SubscriptionCharge - 7 [2025-03-03 04:31:13] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:13] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,1,1,2025-03-03,2025-03-30 00:00:00,License for a Pay As You Go Cloud Phone extension,259,7,37,223) [2025-03-03 04:31:13] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:13] Production.INFO: DiscountType [2025-03-03 04:31:13] Production.INFO: SubscriptionCharge 259 [2025-03-03 04:31:13] Production.INFO: New SubscriptionCharge 259 [2025-03-03 04:31:13] Production.INFO: TotalSubscriptionCharge - 259.00 [2025-03-03 04:31:13] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:13] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:13] Production.INFO: SubscriptionID - 54 [2025-03-03 04:31:13] Production.INFO: isAdvanceSubscription - 54 [2025-03-03 04:31:13] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:13] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:13] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:13] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:13] Production.INFO: SubscriptionDate [2025-03-03 04:31:13] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:13] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:13] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:13] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:13] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:13] Production.INFO: regular Subscription if advance [2025-03-03 04:31:13] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:13] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:13] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:13] Production.INFO: AccountSubscription::getSubscriptionAmount(1252,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:13] Production.INFO: SubscriptionCharge - 9.24 [2025-03-03 04:31:13] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:13] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,54,2025-01-31,2025-03-02,Azure AD P1,415.8,9.24,45,1252) [2025-03-03 04:31:13] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:13] Production.INFO: DiscountType Flat [2025-03-03 04:31:13] Production.INFO: SubscriptionCharge 415.8 [2025-03-03 04:31:13] Production.INFO: New SubscriptionCharge 415.8 [2025-03-03 04:31:13] Production.INFO: TotalSubscriptionCharge - 415.80 [2025-03-03 04:31:13] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:13] Production.INFO: AccountSubscriptionID - 1252 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:13] Production.INFO: regular Advance Subscription [2025-03-03 04:31:13] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:13] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:13] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:13] Production.INFO: AccountSubscription::getSubscriptionAmount(1252,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:13] Production.INFO: SubscriptionCharge - 8.68 [2025-03-03 04:31:13] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:13] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,54,2025-03-03,2025-03-30,Azure AD P1,390.6,8.68,45,1252) [2025-03-03 04:31:13] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:13] Production.INFO: DiscountType Flat [2025-03-03 04:31:13] Production.INFO: SubscriptionCharge 390.6 [2025-03-03 04:31:13] Production.INFO: New SubscriptionCharge 390.6 [2025-03-03 04:31:13] Production.INFO: TotalSubscriptionCharge - 390.60 [2025-03-03 04:31:13] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:13] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:13] Production.INFO: SubscriptionID - 4 [2025-03-03 04:31:13] Production.INFO: isAdvanceSubscription - 4 [2025-03-03 04:31:13] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:13] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2018-02-16 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 224 === 2018-02-16=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2018-02-16 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2018-02-16 EndDate 2025-03-30 00:00:00 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(224,2025-03-03,2025-03-30 00:00:00,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 2.52 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,1,4,2025-03-03,2025-03-30 00:00:00,e911 address registration (14164793951 - 226 LESMILL RD TORONTO, ON M3B2T5),2.52,2.52,1,224) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Percentage [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 2.52 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 2.52 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 2.52 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 31 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 31 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1275,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.84 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,31,2025-01-31,2025-03-02,Dropsuite Business Backup License,176.64,3.84,46,1275) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 176.64 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 176.64 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 176.64 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1275 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1275,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.64 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,31,2025-03-03,2025-03-30,Dropsuite Business Backup License,167.44,3.64,46,1275) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 167.44 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 167.44 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 167.44 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 36 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 36 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1157,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.85 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,36,2025-01-31,2025-03-02,Ironscales Basic Email Phishing Protection,169.4,3.85,44,1157) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 169.4 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 169.4 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 169.40 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1157 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1157,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.64 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,36,2025-03-03,2025-03-30,Ironscales Basic Email Phishing Protection,160.16,3.64,44,1157) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 160.16 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 160.16 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 160.16 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 41 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 41 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1158,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 19.1 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,41,2025-01-31,2025-03-02,M365 Power Automate subscription,19.1,19.1,1,1158) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 19.1 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 19.1 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 19.10 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1158 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1158,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 17.92 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,41,2025-03-03,2025-03-30,M365 Power Automate subscription,17.92,17.92,1,1158) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 17.92 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 17.92 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 17.92 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 55 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 55 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1159,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 10.5 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,55,2025-01-31,2025-03-02,Managed Network Device,136.5,10.5,13,1159) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 136.5 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 136.5 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 136.50 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1159 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1159,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 9.8 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,55,2025-03-03,2025-03-30,Managed Network Device,127.4,9.8,13,1159) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 127.4 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 127.4 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 127.40 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 40 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 40 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1160,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 120 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,40,2025-01-31,2025-03-02,Management of server,120,120,1,1160) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 120 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 120 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 120.00 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1160 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1160,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 112 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,40,2025-03-03,2025-03-30,Management of server,112,112,1,1160) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 112 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 112 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 112.00 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 33 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 33 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1274,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 58 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,33,2025-01-31,2025-03-02,Managed Workstation,2204,58,38,1274) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 2204 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 2204 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 2204.00 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1274 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1274,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 54.04 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,33,2025-03-03,2025-03-30,Managed Workstation,2053.52,54.04,38,1274) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 2053.52 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 2053.52 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 2053.52 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 56 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 56 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1162,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 6.15 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,56,2025-01-31,2025-03-02,Microsoft 365 Audio Conferencing,6.15,6.15,1,1162) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 6.15 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 6.15 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 6.15 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1162 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1162,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 5.88 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,56,2025-03-03,2025-03-30,Microsoft 365 Audio Conferencing,5.88,5.88,1,1162) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 5.88 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 5.88 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 5.88 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 7 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 7 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1163,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 8.1 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,7,2025-01-31,2025-03-02,Microsoft 365 Basic collaboration and productivity suite,137.7,8.1,17,1163) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 137.7 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 137.7 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 137.70 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1163 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1163,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 7.56 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,7,2025-03-03,2025-03-30,Microsoft 365 Basic collaboration and productivity suite,128.52,7.56,17,1163) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 128.52 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 128.52 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 128.52 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 6 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 6 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1164,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 17 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,6,2025-01-31,2025-03-02,Microsoft 365 Standard collaboration and productivity suite,714,17,42,1164) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 714 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 714 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 714.00 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1164 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1164,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 15.96 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,6,2025-03-03,2025-03-30,Microsoft 365 Standard collaboration and productivity suite,670.32,15.96,42,1164) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 670.32 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 670.32 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 670.32 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 57 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 57 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1165,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 4.15 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,57,2025-01-31,2025-03-02,Microsoft Azure Information Protection P1,4.15,4.15,1,1165) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 4.15 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 4.15 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 4.15 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1165 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1165,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.92 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,57,2025-03-03,2025-03-30,Microsoft Azure Information Protection P1,3.92,3.92,1,1165) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 3.92 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 3.92 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 3.92 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 58 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 58 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1166,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 5 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,58,2025-01-31,2025-03-02,Microsoft Exchange Online Archiving,20,5,4,1166) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 20 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 20 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 20.00 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1166 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1166,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 4.76 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,58,2025-03-03,2025-03-30,Microsoft Exchange Online Archiving,19.04,4.76,4,1166) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 19.04 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 19.04 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 19.04 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 59 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 59 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1167,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.4 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,59,2025-01-31,2025-03-02,Microsoft Intune Per Device,3.4,3.4,1,1167) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 3.4 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 3.4 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 3.40 [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:14] Production.INFO: AccountSubscriptionID - 1167 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Advance Subscription [2025-03-03 04:31:14] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:14] Production.INFO: AccountSubscription::getSubscriptionAmount(1167,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge - 3.08 [2025-03-03 04:31:14] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,59,2025-03-03,2025-03-30,Microsoft Intune Per Device,3.08,3.08,1,1167) [2025-03-03 04:31:14] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:14] Production.INFO: DiscountType Flat [2025-03-03 04:31:14] Production.INFO: SubscriptionCharge 3.08 [2025-03-03 04:31:14] Production.INFO: New SubscriptionCharge 3.08 [2025-03-03 04:31:14] Production.INFO: TotalSubscriptionCharge - 3.08 [2025-03-03 04:31:14] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:14] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:14] Production.INFO: SubscriptionID - 60 [2025-03-03 04:31:14] Production.INFO: isAdvanceSubscription - 60 [2025-03-03 04:31:14] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:14] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:14] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:14] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:14] Production.INFO: SubscriptionDate [2025-03-03 04:31:14] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:14] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:14] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:14] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: regular Subscription if advance [2025-03-03 04:31:14] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:14] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1168,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 20.28 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,60,2025-01-31,2025-03-02,Microsoft 365 Visio,20.28,20.28,1,1168) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 20.28 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 20.28 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 20.28 [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:15] Production.INFO: AccountSubscriptionID - 1168 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Advance Subscription [2025-03-03 04:31:15] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1168,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 19.04 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,60,2025-03-03,2025-03-30,Microsoft 365 Visio,19.04,19.04,1,1168) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 19.04 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 19.04 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 19.04 [2025-03-03 04:31:15] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:15] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 61 [2025-03-03 04:31:15] Production.INFO: isAdvanceSubscription - 61 [2025-03-03 04:31:15] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:15] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:15] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:15] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:15] Production.INFO: SubscriptionDate [2025-03-03 04:31:15] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:15] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:15] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:15] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Subscription if advance [2025-03-03 04:31:15] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1169,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 40.55 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,61,2025-01-31,2025-03-02,Microsoft 365 Project Pro,40.55,40.55,1,1169) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 40.55 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 40.55 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 40.55 [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:15] Production.INFO: AccountSubscriptionID - 1169 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Advance Subscription [2025-03-03 04:31:15] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1169,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 37.8 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,61,2025-03-03,2025-03-30,Microsoft 365 Project Pro,37.8,37.8,1,1169) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 37.8 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 37.8 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 37.80 [2025-03-03 04:31:15] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:15] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 62 [2025-03-03 04:31:15] Production.INFO: isAdvanceSubscription - 62 [2025-03-03 04:31:15] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:15] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:15] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:15] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:15] Production.INFO: SubscriptionDate [2025-03-03 04:31:15] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:15] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:15] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:15] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Subscription if advance [2025-03-03 04:31:15] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1253,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 16.9 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,62,2025-01-31,2025-03-02,Microsoft 365 ProPlus,16.9,16.9,1,1253) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 16.9 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 16.9 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 16.90 [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:15] Production.INFO: AccountSubscriptionID - 1253 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Advance Subscription [2025-03-03 04:31:15] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1253,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 15.68 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,62,2025-03-03,2025-03-30,Microsoft 365 ProPlus,15.68,15.68,1,1253) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 15.68 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 15.68 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 15.68 [2025-03-03 04:31:15] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:15] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 46 [2025-03-03 04:31:15] Production.INFO: isAdvanceSubscription - 46 [2025-03-03 04:31:15] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:15] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:15] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:15] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:15] Production.INFO: SubscriptionDate [2025-03-03 04:31:15] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:15] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:15] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:15] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Subscription if advance [2025-03-03 04:31:15] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1254,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 0.32 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,46,2025-01-31,2025-03-02,Microsoft 365 Extra File Storage (per GB),64,0.32,200,1254) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 64 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 64 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 64.00 [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:15] Production.INFO: AccountSubscriptionID - 1254 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Advance Subscription [2025-03-03 04:31:15] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1254,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 0.28 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,46,2025-03-03,2025-03-30,Microsoft 365 Extra File Storage (per GB),56,0.28,200,1254) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 56 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 56 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 56.00 [2025-03-03 04:31:15] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:15] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 63 [2025-03-03 04:31:15] Production.INFO: isAdvanceSubscription - 63 [2025-03-03 04:31:15] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:15] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:15] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:15] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:15] Production.INFO: SubscriptionDate [2025-03-03 04:31:15] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 [AlreadyCharged] => 0 ) [2025-03-03 04:31:15] Production.INFO: AccountSubscription StartDate 2025-01-31 StartDate 2025-01-31 [2025-03-03 04:31:15] Production.INFO: First Time + Advance Billing - Yes [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 - EndDate 2025-03-02 [2025-03-03 04:31:15] Production.INFO: ACStartDate 2025-01-31 - ACEndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Subscription if advance [2025-03-03 04:31:15] Production.INFO: First Time True 2025-01-31 2025-01-31 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-01-31 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-02 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 31 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1255,2025-01-31,2025-03-02,1,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 3.75 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 1 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,63,2025-01-31,2025-03-02,Production Line Machine Access,63.75,3.75,17,1255) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 63.75 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 63.75 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 63.75 [2025-03-03 04:31:15] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 [2025-03-03 04:31:15] Production.INFO: AccountSubscriptionID - 1255 === 2025-01-31=====2026-03-03 [2025-03-03 04:31:15] Production.INFO: regular Advance Subscription [2025-03-03 04:31:15] Production.INFO: First Time False 2025-01-31 2025-03-03 [2025-03-03 04:31:15] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2025-01-31 EndDate 2025-03-30 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:15] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:15] Production.INFO: AccountSubscription::getSubscriptionAmount(1255,2025-03-03,2025-03-30,,0) [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge - 3.64 [2025-03-03 04:31:15] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:15] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(63,4,63,2025-03-03,2025-03-30,Production Line Machine Access,61.88,3.64,17,1255) [2025-03-03 04:31:15] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:15] Production.INFO: DiscountType Flat [2025-03-03 04:31:15] Production.INFO: SubscriptionCharge 61.88 [2025-03-03 04:31:15] Production.INFO: New SubscriptionCharge 61.88 [2025-03-03 04:31:15] Production.INFO: TotalSubscriptionCharge - 61.88 [2025-03-03 04:31:15] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:15] Production.INFO: SUBSCRIPTION Over [2025-03-03 04:31:15] Production.INFO: Call prc_getAccountOneOffCharge(63,0,2025-01-31,2025-03-03 23:59:59) [2025-03-03 04:31:15] Production.INFO: AccountOneOffCharge 0 [2025-03-03 04:31:15] Production.INFO: AccountOneOffCharge Over [2025-03-03 04:31:15] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start [2025-03-03 04:31:15] Production.INFO: New UsageDates 2025-01-31 - 2025-03-02 23:59:59 [2025-03-03 04:31:15] Production.INFO: SubTotal 4316.06 [2025-03-03 04:31:15] Production.INFO: SubTotalWithouttaxTotal 0 [2025-03-03 04:31:15] Production.INFO: AccountOneOffCharge Tax Over [2025-03-03 04:31:15] Production.INFO: TotalTax 561.0878 [2025-03-03 04:31:15] Production.INFO: InvoiceGrandTotal 4877.1478 [2025-03-03 04:31:15] Production.INFO: InvoiceTaxAmount 561.09 [2025-03-03 04:31:15] Production.INFO: GrandTotal 4877.15 [2025-03-03 04:31:15] Production.INFO: SubTotal 4316.06 [2025-03-03 04:31:15] Production.INFO: TotalDue 4877.15 [2025-03-03 04:31:15] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:15] Production.INFO: original start date ==>2025-01-31 changed start date ==>2025-01-31 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:15] Production.INFO: CALL prc_getInvoiceUsage(1,'63','0','1','2025-01-31 00:00:00','2025-03-02 23:59:59',0) [2025-03-03 04:31:15] Production.INFO: PDF Generation start [2025-03-03 04:31:15] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/63/Invoices/2025/03/03/Invoice-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.pdf [2025-03-03 04:31:15] Production.INFO: On Linux [2025-03-03 04:31:16] Production.ERROR: CronJobId end10 [2025-03-03 04:31:16] Production.INFO: ==9757== Releasing lock... [2025-03-03 04:31:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:31:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:31:17] Production.INFO: count ==409 [2025-03-03 04:31:17] Production.INFO: /var/www/html/onswitch.neon.service/wkhtmltox/bin/wkhtmltopdf --header-spacing 3 --footer-spacing 1 --header-html --footer-html "/var/www/tmp/1/63/Invoices/2025/03/03/footer-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.html" "/var/www/tmp/1/63/Invoices/2025/03/03/Invoice-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.html" "/var/www/tmp/1/63/Invoices/2025/03/03/Invoice-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.pdf" [2025-03-03 04:31:17] Production.INFO: [2025-03-03 04:31:17] Production.INFO: /var/www/tmp/1/63/Invoices/2025/03/03/Invoice-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.html [2025-03-03 04:31:17] Production.INFO: /var/www/tmp/1/63/Invoices/2025/03/03/header-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.html [2025-03-03 04:31:17] Production.INFO: /var/www/tmp/1/63/Invoices/2025/03/03/footer-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.html [2025-03-03 04:31:17] Production.INFO: Invoice generation PDF path [2025-03-03 04:31:17] Production.INFO: PDF fullPath 1/63/Invoices/2025/03/03/Invoice-clek-inc-inv50022-from-31-01-2025-to-02-03-2025-10571.pdf [2025-03-03 04:31:17] Production.INFO: Generate Usage File Start [2025-03-03 04:31:17] Production.INFO: Usage File fullPath 1/63/InvoiceUsageFile/2025/03/03/phone-service-31-01-2025-00-00-00-TO-02-03-2025-23-59-59_1952__422270d0-f812-11ef-941d-d33e1c39e502.csv [2025-03-03 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596033', 'tblTempUsageDetail_20' ) start [2025-03-03 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596033', 'tblTempUsageDetail_20' ) end [2025-03-03 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596033', 'tblTempVendorCDR_20' ) start [2025-03-03 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596033', 'tblTempVendorCDR_20' ) end [2025-03-03 04:31:17] Production.INFO: ProcessCDR(1,14596033,1,1,2) [2025-03-03 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:31:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:31:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:31:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:31:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:31:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:31:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:31:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:31:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:31:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:31:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:31:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:31:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:31:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:31:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:31:18] Production.INFO: Sending Email to Staff over [2025-03-03 04:31:18] Production.INFO: Email Status 1 [2025-03-03 04:31:18] Production.INFO: Sending Email to Customer [2025-03-03 04:31:18] Production.INFO: =========== Email Sending over =========== [2025-03-03 04:31:18] Production.INFO: =========== Returning as Success =========== AccountID 63 [2025-03-03 04:31:18] Production.INFO: Invoice::sendInvoice done [2025-03-03 04:31:18] Production.INFO: Invoice created - Array ( [status] => success [message] => Invoice Created Successfully. [accounts] => ) [2025-03-03 04:31:18] Production.INFO: Invoice Committed AccountID = 63 [2025-03-03 04:31:18] Production.INFO: =========== Updating InvoiceDate =========== [2025-03-03 04:31:18] Production.INFO: NextInvoice 2025-03-03 2025-03-30 [2025-03-03 04:31:18] Production.INFO: new dates [2025-03-03 04:31:18] Production.INFO: LastInvoiceDate 2025-03-03 NextInvoiceDate 2025-03-31 [2025-03-03 04:31:18] Production.INFO: LastChargeDate 2025-03-03 NextChargeDate 2025-03-30 [2025-03-03 04:31:18] Production.INFO: =========== Updated InvoiceDate =========== [2025-03-03 04:31:18] Production.INFO: ========================== Invoice Send End ============================= [2025-03-03 04:31:18] Production.INFO: AccountID =208 FirstInvoiceSend 0 [2025-03-03 04:31:18] Production.INFO: LastInvoiceDate 2025-01-31 NextInvoiceDate 2025-03-03 [2025-03-03 04:31:18] Production.INFO: LastChargeDate 2025-01-31 NextChargeDate 2025-03-02 [2025-03-03 04:31:18] Production.INFO: isCDRLoaded Array ( [0] => stdClass Object ( [isLoaded] => 1 ) ) [2025-03-03 04:31:18] Production.INFO: ========================== Invoice Send Start ============================= [2025-03-03 04:31:18] Production.INFO: Invoice::sendInvoice(1,208,2025-01-31,2025-03-03,billing@onswitchit.ca) [2025-03-03 04:31:18] Production.INFO: start Date =2025-01-31 EndDate =2025-03-02 23:59:59 [2025-03-03 04:31:18] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV [2025-03-03 04:31:18] Production.INFO: InvoiceTemplate->Terms =



This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.


[2025-03-03 04:31:18] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled [2025-03-03 04:31:18] Production.INFO: AlreadyBilled [2025-03-03 04:31:18] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:18] Production.INFO: original start date ==>2025-01-31 changed start date ==>2025-01-31 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:18] Production.INFO: CompanyGatewayID 1 TotalCharges ==>28.45000000 [2025-03-03 04:31:18] Production.INFO: Invoice::getAccountUsageTotal(1,208,2025-01-31,2025-03-02 23:59:59) [2025-03-03 04:31:18] Production.INFO: TotalCharges - 28.45 [2025-03-03 04:31:18] Production.INFO: TotalUsageCharges - 28.45 [2025-03-03 04:31:18] Production.INFO: Usage Over [2025-03-03 04:31:18] Production.INFO: Call prc_getAccountSubscription(208,0) [2025-03-03 04:31:18] Production.INFO: SUBSCRIPTION 2 [2025-03-03 04:31:18] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:18] Production.INFO: SubscriptionID - 2 [2025-03-03 04:31:18] Production.INFO: isAdvanceSubscription - 2 [2025-03-03 04:31:18] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:18] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:18] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:18] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:18] Production.INFO: SubscriptionDate [2025-03-03 04:31:18] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:18] Production.INFO: AccountSubscription StartDate 2023-07-10 StartDate 2025-01-31 [2025-03-03 04:31:18] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 00:00:00 [2025-03-03 04:31:18] Production.INFO: AccountSubscriptionID - 719 === 2023-07-10=====2026-03-03 [2025-03-03 04:31:18] Production.INFO: regular Advance Subscription [2025-03-03 04:31:18] Production.INFO: First Time False 2023-07-10 2025-03-03 [2025-03-03 04:31:18] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2023-07-10 EndDate 2025-03-30 00:00:00 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:18] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:18] Production.INFO: AccountSubscription::getSubscriptionAmount(719,2025-03-03,2025-03-30 00:00:00,,0) [2025-03-03 04:31:18] Production.INFO: SubscriptionCharge - 9.24 [2025-03-03 04:31:18] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:18] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(208,1,2,2025-03-03,2025-03-30 00:00:00,License for an Unlimited Canada/US Cloud Phone extension,55.44,9.24,6,719) [2025-03-03 04:31:18] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:18] Production.INFO: DiscountType Flat [2025-03-03 04:31:18] Production.INFO: SubscriptionCharge 55.44 [2025-03-03 04:31:18] Production.INFO: New SubscriptionCharge 55.44 [2025-03-03 04:31:18] Production.INFO: TotalSubscriptionCharge - 55.44 [2025-03-03 04:31:18] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:18] Production.INFO: ============================Subscription Start ================= [2025-03-03 04:31:18] Production.INFO: SubscriptionID - 4 [2025-03-03 04:31:18] Production.INFO: isAdvanceSubscription - 4 [2025-03-03 04:31:18] Production.INFO: call_cost start [2025-03-03 04:31:18] Production.INFO: call_cost end [2025-03-03 04:31:18] Production.INFO: SubscriptionStartDate =2025-03-03 - SubscriptionEndDate = 2025-03-30 [2025-03-03 04:31:18] Production.INFO: NewNextChargeDate =2025-03-30 00:00:00 [2025-03-03 04:31:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:31:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:31:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:31:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:31:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:31:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:31:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:31:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:31:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:31:18] Production.INFO: EndDate =2025-03-02 00:00:00 [2025-03-03 04:31:18] Production.INFO: NewEndDate1 =2025-03-03 [2025-03-03 04:31:18] Production.INFO: SubscriptionDate [2025-03-03 04:31:18] Production.INFO: Array ( [StartDate] => 2025-03-03 [EndDate] => 2025-03-30 00:00:00 [AlreadyCharged] => 0 ) [2025-03-03 04:31:18] Production.INFO: AccountSubscription StartDate 2023-07-10 StartDate 2025-01-31 [2025-03-03 04:31:18] Production.INFO: SubscriptionID - 2025-03-03=====2025-03-30 00:00:00 [2025-03-03 04:31:18] Production.INFO: AccountSubscriptionID - 720 === 2023-07-10=====2026-03-03 [2025-03-03 04:31:18] Production.INFO: regular Advance Subscription [2025-03-03 04:31:18] Production.INFO: First Time False 2023-07-10 2025-03-03 [2025-03-03 04:31:18] Production.INFO: StartDate 2025-03-03 AccountSubscription->StartDate 2023-07-10 EndDate 2025-03-30 00:00:00 AccountSubscription->EndDate 2026-03-03 [2025-03-03 04:31:18] Production.INFO: days diff - 28 subscription days 31 quarter days 90 [2025-03-03 04:31:18] Production.INFO: AccountSubscription::getSubscriptionAmount(720,2025-03-03,2025-03-30 00:00:00,,0) [2025-03-03 04:31:18] Production.INFO: SubscriptionCharge - 2.24 [2025-03-03 04:31:18] Production.INFO: Already Invoice Subscription 0 [2025-03-03 04:31:18] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(208,1,4,2025-03-03,2025-03-30 00:00:00,e911 address registration (9056299698 - 1 Greensborough Drive, Suite 300, Etobicoke, ON M9W1C8),2.24,2.24,1,720) [2025-03-03 04:31:18] Production.INFO: DiscountAmount 0.000000 [2025-03-03 04:31:18] Production.INFO: DiscountType Flat [2025-03-03 04:31:18] Production.INFO: SubscriptionCharge 2.24 [2025-03-03 04:31:18] Production.INFO: New SubscriptionCharge 2.24 [2025-03-03 04:31:18] Production.INFO: TotalSubscriptionCharge - 2.24 [2025-03-03 04:31:18] Production.INFO: ============================Subscription End ================= [2025-03-03 04:31:18] Production.INFO: SUBSCRIPTION Over [2025-03-03 04:31:18] Production.INFO: Call prc_getAccountOneOffCharge(208,0,2025-01-31,2025-03-03 23:59:59) [2025-03-03 04:31:18] Production.INFO: AccountOneOffCharge 0 [2025-03-03 04:31:18] Production.INFO: AccountOneOffCharge Over [2025-03-03 04:31:18] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start [2025-03-03 04:31:18] Production.INFO: New UsageDates 2025-01-31 - 2025-03-02 23:59:59 [2025-03-03 04:31:18] Production.INFO: SubTotal 86.13 [2025-03-03 04:31:18] Production.INFO: SubTotalWithouttaxTotal 0 [2025-03-03 04:31:18] Production.INFO: ==9751== Releasing lock... [2025-03-03 04:31:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:31:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:31:18] Production.INFO: AccountOneOffCharge Tax Over [2025-03-03 04:31:18] Production.INFO: TotalTax 11.1969 [2025-03-03 04:31:18] Production.INFO: InvoiceGrandTotal 97.3269 [2025-03-03 04:31:18] Production.INFO: InvoiceTaxAmount 11.2 [2025-03-03 04:31:18] Production.INFO: GrandTotal 97.33 [2025-03-03 04:31:18] Production.INFO: SubTotal 86.13 [2025-03-03 04:31:18] Production.INFO: TotalDue 97.33 [2025-03-03 04:31:19] Production.INFO: Reseller ==> 0 [2025-03-03 04:31:19] Production.INFO: original start date ==>2025-01-31 changed start date ==>2025-01-31 00:00:00 original end date ==>2025-03-02 23:59:59 changed end date ==>2025-03-02 23:59:59 [2025-03-03 04:31:19] Production.INFO: CALL prc_getInvoiceUsage(1,'208','0','1','2025-01-31 00:00:00','2025-03-02 23:59:59',0) [2025-03-03 04:31:19] Production.INFO: PDF Generation start [2025-03-03 04:31:19] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/208/Invoices/2025/03/03/Invoice-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.pdf [2025-03-03 04:31:19] Production.INFO: On Linux [2025-03-03 04:31:21] Production.INFO: /var/www/html/onswitch.neon.service/wkhtmltox/bin/wkhtmltopdf --header-spacing 3 --footer-spacing 1 --header-html --footer-html "/var/www/tmp/1/208/Invoices/2025/03/03/footer-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.html" "/var/www/tmp/1/208/Invoices/2025/03/03/Invoice-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.html" "/var/www/tmp/1/208/Invoices/2025/03/03/Invoice-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.pdf" [2025-03-03 04:31:21] Production.INFO: [2025-03-03 04:31:21] Production.INFO: /var/www/tmp/1/208/Invoices/2025/03/03/Invoice-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.html [2025-03-03 04:31:21] Production.INFO: /var/www/tmp/1/208/Invoices/2025/03/03/header-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.html [2025-03-03 04:31:21] Production.INFO: /var/www/tmp/1/208/Invoices/2025/03/03/footer-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.html [2025-03-03 04:31:21] Production.INFO: Invoice generation PDF path [2025-03-03 04:31:21] Production.INFO: PDF fullPath 1/208/Invoices/2025/03/03/Invoice-lions-auto-protection-inv11633-from-01-31-2025-to-03-02-2025-10572.pdf [2025-03-03 04:31:21] Production.INFO: Generate Usage File Start [2025-03-03 04:31:21] Production.INFO: Usage File fullPath 1/208/InvoiceUsageFile/2025/03/03/lions-auto-protection-31-01-2025-00-00-00-TO-02-03-2025-23-59-59_5821__446f2bb0-f812-11ef-b186-091e4e577e9b.csv [2025-03-03 04:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:31:22] Production.INFO: Sending Email to Staff over [2025-03-03 04:31:22] Production.INFO: Email Status 1 [2025-03-03 04:31:22] Production.INFO: Sending Email to Customer [2025-03-03 04:31:23] Production.INFO: Email Try 10572 1 [2025-03-03 04:31:23] Production.INFO: Email Try 10572 1 [2025-03-03 04:31:23] Production.INFO: =========== Email Sending over =========== [2025-03-03 04:31:23] Production.INFO: =========== Returning as Success =========== AccountID 208 [2025-03-03 04:31:23] Production.INFO: Invoice::sendInvoice done [2025-03-03 04:31:23] Production.INFO: Invoice created - Array ( [status] => success [message] => Invoice Created Successfully. [accounts] => ) [2025-03-03 04:31:23] Production.INFO: Invoice Committed AccountID = 208 [2025-03-03 04:31:23] Production.INFO: =========== Updating InvoiceDate =========== [2025-03-03 04:31:23] Production.INFO: NextInvoice 2025-03-03 2025-03-30 [2025-03-03 04:31:23] Production.INFO: new dates [2025-03-03 04:31:23] Production.INFO: LastInvoiceDate 2025-03-03 NextInvoiceDate 2025-03-31 [2025-03-03 04:31:23] Production.INFO: LastChargeDate 2025-03-03 NextChargeDate 2025-03-30 [2025-03-03 04:31:23] Production.INFO: =========== Updated InvoiceDate =========== [2025-03-03 04:31:23] Production.INFO: ========================== Invoice Send End ============================= [2025-03-03 04:31:23] Production.INFO: ========================== Recurring invoice Start ============================= [2025-03-03 04:31:23] Production.INFO: recurring invoices ID [2025-03-03 04:31:23] Production.INFO: [2025-03-03 04:31:23] Production.INFO: recurring errorsArray ( ) [2025-03-03 04:31:23] Production.INFO: ========================== Recurring invoice End ============================= [2025-03-03 04:31:23] Production.INFO: ========================== Job Updated ============================= [2025-03-03 04:31:24] Production.INFO: ========================== Job Email Sent ============================= [2025-03-03 04:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596033', 'tblTempUsageDetail_20' ) start [2025-03-03 04:31:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:31:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:31:25] Production.ERROR: CronJobId end6 [2025-03-03 04:31:25] Production.INFO: ==9753== Releasing lock... [2025-03-03 04:31:25] Production.INFO: invoicegenerator-command-invoicegenerator-companyid-1-cronjobid-6 #Stops# [2025-03-03 04:31:25] Production.INFO: 40.75 MB #Memory Used# [2025-03-03 04:31:27] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596033', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:31:28] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:31:28] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:31:28] Production.INFO: ==9761== Releasing lock... [2025-03-03 04:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:31:28] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:32:01] Production.INFO: ==9879== Lock acquired, processing the job... [2025-03-03 09:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:32:01] Production.INFO: neon service started [2025-03-03 09:32:01] Production.INFO: neon service started [2025-03-03 09:32:01] Production.INFO: ==9879== Releasing lock... [2025-03-03 09:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:32:02] Production.INFO: ==9883== Lock acquired, processing the job... [2025-03-03 09:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:32:02] Production.INFO: ==9881== Lock acquired, processing the job... [2025-03-03 04:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:32:02] Production.INFO: ==9883== Releasing lock... [2025-03-03 09:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:32:02] Production.INFO: ==9881== Releasing lock... [2025-03-03 04:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:32:03] Production.INFO: ==9894== Lock acquired, processing the job... [2025-03-03 04:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:32:03] Production.INFO: ==9896== Lock acquired, processing the job... [2025-03-03 04:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:32:03] Production.INFO: ==9886== Lock acquired, processing the job... [2025-03-03 04:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:32:04] Production.INFO: ==9888== Lock acquired, processing the job... [2025-03-03 04:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:32:04] Production.INFO: ==9890== Lock acquired, processing the job... [2025-03-03 04:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:32:04] Production.INFO: ==9892== Lock acquired, processing the job... [2025-03-03 04:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:32:04] Production.INFO: count ==13 [2025-03-03 04:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:32:04] Production.INFO: count ==21 [2025-03-03 04:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596034') start [2025-03-03 04:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:32:04] Production.INFO: Account Balance Start. [2025-03-03 04:32:04] Production.INFO: CreateAllLog Start [2025-03-03 04:32:04] Production.ERROR: done [2025-03-03 04:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:32:04] Production.INFO: 117 [2025-03-03 04:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596034') end [2025-03-03 04:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:32:04] Production.INFO: 1 [2025-03-03 04:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: ==9896== Releasing lock... [2025-03-03 04:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.ERROR: done [2025-03-03 04:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: ==9888== Releasing lock... [2025-03-03 04:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:32:05] Production.INFO: Total Charge 0 [2025-03-03 04:32:05] Production.INFO: CreateAllLog End [2025-03-03 04:32:05] Production.INFO: Account Balance End. [2025-03-03 04:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:32:05] Production.INFO: ==9892== Releasing lock... [2025-03-03 04:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:32:11] Production.ERROR: CronJobId end10 [2025-03-03 04:32:11] Production.INFO: ==9890== Releasing lock... [2025-03-03 04:32:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:32:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:32:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:32:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:32:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:32:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:32:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:32:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:32:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:32:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:32:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:32:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:32:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:32:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:32:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:32:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:32:14] Production.INFO: call_cost start [2025-03-03 04:32:14] Production.INFO: call_cost end [2025-03-03 04:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:32:14] Production.INFO: ==9886== Releasing lock... [2025-03-03 04:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:32:16] Production.INFO: count ==409 [2025-03-03 04:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596038', 'tblTempUsageDetail_20' ) start [2025-03-03 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596038', 'tblTempUsageDetail_20' ) end [2025-03-03 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596038', 'tblTempVendorCDR_20' ) start [2025-03-03 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596038', 'tblTempVendorCDR_20' ) end [2025-03-03 04:32:16] Production.INFO: ProcessCDR(1,14596038,1,1,2) [2025-03-03 04:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596038', 'tblTempUsageDetail_20' ) start [2025-03-03 04:32:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596038', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:32:24] Production.INFO: ==9894== Releasing lock... [2025-03-03 04:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:33:02] Production.INFO: ==9957== Lock acquired, processing the job... [2025-03-03 09:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:33:02] Production.INFO: neon service started [2025-03-03 09:33:02] Production.INFO: neon service started [2025-03-03 09:33:02] Production.INFO: ==9957== Releasing lock... [2025-03-03 09:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:33:02] Production.INFO: ==9959== Lock acquired, processing the job... [2025-03-03 04:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:33:02] Production.INFO: ==9959== Releasing lock... [2025-03-03 04:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:33:03] Production.INFO: ==9961== Lock acquired, processing the job... [2025-03-03 09:33:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:33:03] Production.INFO: ==9961== Releasing lock... [2025-03-03 09:33:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:33:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:33:03] Production.INFO: ==9970== Lock acquired, processing the job... [2025-03-03 04:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:33:03] Production.INFO: ==9974== Lock acquired, processing the job... [2025-03-03 04:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:33:03] Production.INFO: Account Balance Start. [2025-03-03 04:33:03] Production.INFO: CreateAllLog Start [2025-03-03 04:33:03] Production.INFO: 117 [2025-03-03 04:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:33:03] Production.INFO: ==9964== Lock acquired, processing the job... [2025-03-03 04:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:33:03] Production.INFO: ==9966== Lock acquired, processing the job... [2025-03-03 04:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:03] Production.INFO: ==9968== Lock acquired, processing the job... [2025-03-03 04:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: ==9972== Lock acquired, processing the job... [2025-03-03 04:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:33:04] Production.INFO: count ==13 [2025-03-03 04:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:33:04] Production.INFO: count ==21 [2025-03-03 04:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596040') start [2025-03-03 04:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596040') end [2025-03-03 04:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:33:04] Production.INFO: 1 [2025-03-03 04:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:33:04] Production.INFO: ==9966== Releasing lock... [2025-03-03 04:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: ==9974== Releasing lock... [2025-03-03 04:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:33:04] Production.ERROR: done [2025-03-03 04:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.ERROR: done [2025-03-03 04:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:33:05] Production.INFO: Total Charge 0 [2025-03-03 04:33:05] Production.INFO: CreateAllLog End [2025-03-03 04:33:05] Production.INFO: Account Balance End. [2025-03-03 04:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:33:05] Production.INFO: ==9970== Releasing lock... [2025-03-03 04:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:33:12] Production.ERROR: CronJobId end10 [2025-03-03 04:33:12] Production.INFO: ==9968== Releasing lock... [2025-03-03 04:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:33:15] Production.INFO: call_cost start [2025-03-03 04:33:15] Production.INFO: call_cost end [2025-03-03 04:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:33:15] Production.INFO: ==9964== Releasing lock... [2025-03-03 04:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:33:16] Production.INFO: count ==409 [2025-03-03 04:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596043', 'tblTempUsageDetail_20' ) start [2025-03-03 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596043', 'tblTempUsageDetail_20' ) end [2025-03-03 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596043', 'tblTempVendorCDR_20' ) start [2025-03-03 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596043', 'tblTempVendorCDR_20' ) end [2025-03-03 04:33:16] Production.INFO: ProcessCDR(1,14596043,1,1,2) [2025-03-03 04:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596043', 'tblTempUsageDetail_20' ) start [2025-03-03 04:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596043', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:33:24] Production.INFO: ==9972== Releasing lock... [2025-03-03 04:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:33:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:34:01] Production.INFO: ==10030== Lock acquired, processing the job... [2025-03-03 09:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:34:01] Production.INFO: neon service started [2025-03-03 09:34:01] Production.INFO: neon service started [2025-03-03 09:34:01] Production.INFO: ==10030== Releasing lock... [2025-03-03 09:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:34:02] Production.INFO: ==10032== Lock acquired, processing the job... [2025-03-03 04:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:34:02] Production.INFO: ==10034== Lock acquired, processing the job... [2025-03-03 09:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:34:02] Production.INFO: ==10032== Releasing lock... [2025-03-03 04:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:34:02] Production.INFO: ==10034== Releasing lock... [2025-03-03 09:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:34:03] Production.INFO: ==10037== Lock acquired, processing the job... [2025-03-03 04:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:34:03] Production.INFO: ==10045== Lock acquired, processing the job... [2025-03-03 04:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:34:03] Production.INFO: ==10047== Lock acquired, processing the job... [2025-03-03 04:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:34:03] Production.INFO: ==10039== Lock acquired, processing the job... [2025-03-03 04:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:34:03] Production.INFO: ==10041== Lock acquired, processing the job... [2025-03-03 04:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:34:03] Production.INFO: ==10043== Lock acquired, processing the job... [2025-03-03 04:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:34:03] Production.INFO: count ==13 [2025-03-03 04:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:34:03] Production.INFO: count ==21 [2025-03-03 04:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596045') start [2025-03-03 04:34:03] Production.INFO: Account Balance Start. [2025-03-03 04:34:03] Production.INFO: CreateAllLog Start [2025-03-03 04:34:03] Production.INFO: 117 [2025-03-03 04:34:03] Production.ERROR: done [2025-03-03 04:34:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596045') end [2025-03-03 04:34:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:34:03] Production.INFO: 1 [2025-03-03 04:34:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:34:04] Production.ERROR: done [2025-03-03 04:34:04] Production.INFO: ==10047== Releasing lock... [2025-03-03 04:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: ==10039== Releasing lock... [2025-03-03 04:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:34:04] Production.INFO: Total Charge 0 [2025-03-03 04:34:05] Production.INFO: CreateAllLog End [2025-03-03 04:34:05] Production.INFO: Account Balance End. [2025-03-03 04:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:34:05] Production.INFO: ==10043== Releasing lock... [2025-03-03 04:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:34:11] Production.ERROR: CronJobId end10 [2025-03-03 04:34:11] Production.INFO: ==10041== Releasing lock... [2025-03-03 04:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:34:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:34:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:34:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:34:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:34:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:34:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:34:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:34:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:34:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:34:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:34:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:34:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:34:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:34:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:34:13] Production.INFO: call_cost start [2025-03-03 04:34:13] Production.INFO: call_cost end [2025-03-03 04:34:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:34:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:34:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:34:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:34:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:34:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:34:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:34:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:34:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:34:13] Production.INFO: ==10037== Releasing lock... [2025-03-03 04:34:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:34:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:34:15] Production.INFO: count ==409 [2025-03-03 04:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596048', 'tblTempUsageDetail_20' ) start [2025-03-03 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596048', 'tblTempUsageDetail_20' ) end [2025-03-03 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596048', 'tblTempVendorCDR_20' ) start [2025-03-03 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596048', 'tblTempVendorCDR_20' ) end [2025-03-03 04:34:16] Production.INFO: ProcessCDR(1,14596048,1,1,2) [2025-03-03 04:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596048', 'tblTempUsageDetail_20' ) start [2025-03-03 04:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596048', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:34:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:34:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:34:23] Production.INFO: ==10045== Releasing lock... [2025-03-03 04:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:34:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:35:02] Production.INFO: ==10103== Lock acquired, processing the job... [2025-03-03 09:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:35:02] Production.INFO: neon service started [2025-03-03 09:35:02] Production.INFO: neon service started [2025-03-03 09:35:02] Production.INFO: ==10103== Releasing lock... [2025-03-03 09:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:35:02] Production.INFO: ==10107== Lock acquired, processing the job... [2025-03-03 09:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:35:02] Production.INFO: ==10107== Releasing lock... [2025-03-03 09:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:35:02] Production.INFO: ==10105== Lock acquired, processing the job... [2025-03-03 04:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:35:02] Production.INFO: ==10105== Releasing lock... [2025-03-03 04:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:35:03] Production.INFO: ==10109== Lock acquired, processing the job... [2025-03-03 04:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:35:03] Production.INFO: ==10113== Lock acquired, processing the job... [2025-03-03 04:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:35:03] Production.INFO: ==10117== Lock acquired, processing the job... [2025-03-03 04:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:35:03] Production.INFO: ==10111== Lock acquired, processing the job... [2025-03-03 04:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:35:04] Production.INFO: ==10115== Lock acquired, processing the job... [2025-03-03 04:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:35:04] Production.INFO: ==10119== Lock acquired, processing the job... [2025-03-03 04:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:35:04] Production.INFO: Account Balance Start. [2025-03-03 04:35:04] Production.INFO: CreateAllLog Start [2025-03-03 04:35:04] Production.INFO: 117 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.ERROR: done [2025-03-03 04:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: count ==13 [2025-03-03 04:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:35:04] Production.INFO: count ==21 [2025-03-03 04:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596052') start [2025-03-03 04:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:35:04] Production.ERROR: done [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: ==10111== Releasing lock... [2025-03-03 04:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596052') end [2025-03-03 04:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:35:04] Production.INFO: 1 [2025-03-03 04:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: ==10119== Releasing lock... [2025-03-03 04:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:35:05] Production.INFO: Total Charge 0 [2025-03-03 04:35:05] Production.INFO: CreateAllLog End [2025-03-03 04:35:05] Production.INFO: Account Balance End. [2025-03-03 04:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:35:05] Production.INFO: ==10115== Releasing lock... [2025-03-03 04:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:35:11] Production.ERROR: CronJobId end10 [2025-03-03 04:35:11] Production.INFO: ==10113== Releasing lock... [2025-03-03 04:35:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:35:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:35:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:35:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:35:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:35:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:35:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:35:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:35:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:35:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:35:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:35:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:35:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:35:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:35:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:35:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:35:14] Production.INFO: call_cost start [2025-03-03 04:35:14] Production.INFO: call_cost end [2025-03-03 04:35:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:35:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:35:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:35:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:35:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:35:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:35:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:35:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:35:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:35:14] Production.INFO: ==10109== Releasing lock... [2025-03-03 04:35:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:35:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:35:16] Production.INFO: count ==409 [2025-03-03 04:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596053', 'tblTempUsageDetail_20' ) start [2025-03-03 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596053', 'tblTempUsageDetail_20' ) end [2025-03-03 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596053', 'tblTempVendorCDR_20' ) start [2025-03-03 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596053', 'tblTempVendorCDR_20' ) end [2025-03-03 04:35:16] Production.INFO: ProcessCDR(1,14596053,1,1,2) [2025-03-03 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596053', 'tblTempUsageDetail_20' ) start [2025-03-03 04:35:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596053', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:35:24] Production.INFO: ==10117== Releasing lock... [2025-03-03 04:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:36:01] Production.INFO: ==10179== Lock acquired, processing the job... [2025-03-03 09:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:36:01] Production.INFO: neon service started [2025-03-03 09:36:01] Production.INFO: neon service started [2025-03-03 09:36:01] Production.INFO: ==10179== Releasing lock... [2025-03-03 09:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:36:02] Production.INFO: ==10181== Lock acquired, processing the job... [2025-03-03 04:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:36:02] Production.INFO: ==10183== Lock acquired, processing the job... [2025-03-03 09:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:36:02] Production.INFO: ==10183== Releasing lock... [2025-03-03 09:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:36:02] Production.INFO: ==10181== Releasing lock... [2025-03-03 04:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:36:03] Production.INFO: ==10188== Lock acquired, processing the job... [2025-03-03 04:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:36:03] Production.INFO: ==10186== Lock acquired, processing the job... [2025-03-03 04:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:36:03] Production.INFO: ==10194== Lock acquired, processing the job... [2025-03-03 04:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:36:03] Production.INFO: ==10190== Lock acquired, processing the job... [2025-03-03 04:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:36:03] Production.INFO: ==10192== Lock acquired, processing the job... [2025-03-03 04:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:36:03] Production.INFO: ==10196== Lock acquired, processing the job... [2025-03-03 04:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:36:03] Production.INFO: ==10188== Releasing lock... [2025-03-03 04:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:36:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:36:03] Production.INFO: Account Balance Start. [2025-03-03 04:36:03] Production.INFO: CreateAllLog Start [2025-03-03 04:36:03] Production.INFO: 117 [2025-03-03 04:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:03] Production.INFO: count ==13 [2025-03-03 04:36:03] Production.ERROR: done [2025-03-03 04:36:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:36:03] Production.INFO: count ==21 [2025-03-03 04:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596057') start [2025-03-03 04:36:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596057') end [2025-03-03 04:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:36:04] Production.INFO: 1 [2025-03-03 04:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: ==10196== Releasing lock... [2025-03-03 04:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:36:04] Production.ERROR: done [2025-03-03 04:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:36:04] Production.INFO: Total Charge 0 [2025-03-03 04:36:04] Production.INFO: CreateAllLog End [2025-03-03 04:36:04] Production.INFO: Account Balance End. [2025-03-03 04:36:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:36:04] Production.INFO: ==10192== Releasing lock... [2025-03-03 04:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:36:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:36:12] Production.ERROR: CronJobId end10 [2025-03-03 04:36:12] Production.INFO: ==10190== Releasing lock... [2025-03-03 04:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:36:15] Production.INFO: call_cost start [2025-03-03 04:36:15] Production.INFO: call_cost end [2025-03-03 04:36:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:36:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:36:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:36:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:36:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:36:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:36:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:36:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:36:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:36:15] Production.INFO: ==10186== Releasing lock... [2025-03-03 04:36:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:36:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:36:16] Production.INFO: count ==409 [2025-03-03 04:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596058', 'tblTempUsageDetail_20' ) start [2025-03-03 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596058', 'tblTempUsageDetail_20' ) end [2025-03-03 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596058', 'tblTempVendorCDR_20' ) start [2025-03-03 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596058', 'tblTempVendorCDR_20' ) end [2025-03-03 04:36:16] Production.INFO: ProcessCDR(1,14596058,1,1,2) [2025-03-03 04:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596058', 'tblTempUsageDetail_20' ) start [2025-03-03 04:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596058', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:36:24] Production.INFO: ==10194== Releasing lock... [2025-03-03 04:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:37:02] Production.INFO: ==10252== Lock acquired, processing the job... [2025-03-03 09:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:37:02] Production.INFO: neon service started [2025-03-03 09:37:02] Production.INFO: neon service started [2025-03-03 09:37:02] Production.INFO: ==10252== Releasing lock... [2025-03-03 09:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:37:02] Production.INFO: ==10254== Lock acquired, processing the job... [2025-03-03 04:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:37:02] Production.INFO: ==10254== Releasing lock... [2025-03-03 04:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:37:02] Production.INFO: ==10256== Lock acquired, processing the job... [2025-03-03 09:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:37:02] Production.INFO: ==10256== Releasing lock... [2025-03-03 09:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:37:03] Production.INFO: ==10258== Lock acquired, processing the job... [2025-03-03 04:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:37:03] Production.INFO: ==10260== Lock acquired, processing the job... [2025-03-03 04:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:37:03] Production.INFO: ==10264== Lock acquired, processing the job... [2025-03-03 04:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:37:03] Production.INFO: ==10262== Lock acquired, processing the job... [2025-03-03 04:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:37:03] Production.INFO: ==10266== Lock acquired, processing the job... [2025-03-03 04:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:37:03] Production.INFO: ==10268== Lock acquired, processing the job... [2025-03-03 04:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:37:03] Production.INFO: Account Balance Start. [2025-03-03 04:37:03] Production.INFO: CreateAllLog Start [2025-03-03 04:37:03] Production.INFO: 117 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: count ==13 [2025-03-03 04:37:04] Production.INFO: ==10260== Releasing lock... [2025-03-03 04:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:37:04] Production.INFO: count ==21 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596062') start [2025-03-03 04:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596062') end [2025-03-03 04:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:37:04] Production.INFO: 1 [2025-03-03 04:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.ERROR: done [2025-03-03 04:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:37:04] Production.INFO: ==10268== Releasing lock... [2025-03-03 04:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.ERROR: done [2025-03-03 04:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:37:05] Production.INFO: Total Charge 0 [2025-03-03 04:37:05] Production.INFO: CreateAllLog End [2025-03-03 04:37:05] Production.INFO: Account Balance End. [2025-03-03 04:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:37:05] Production.INFO: ==10264== Releasing lock... [2025-03-03 04:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:37:12] Production.ERROR: CronJobId end10 [2025-03-03 04:37:12] Production.INFO: ==10262== Releasing lock... [2025-03-03 04:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:37:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:37:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:37:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:37:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:37:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:37:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:37:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:37:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:37:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:37:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:37:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:37:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:37:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:37:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:37:16] Production.INFO: call_cost start [2025-03-03 04:37:16] Production.INFO: call_cost end [2025-03-03 04:37:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:37:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:37:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:37:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:37:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:37:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:37:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:37:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:37:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:37:16] Production.INFO: ==10258== Releasing lock... [2025-03-03 04:37:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:37:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:37:16] Production.INFO: count ==409 [2025-03-03 04:37:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596063', 'tblTempUsageDetail_20' ) start [2025-03-03 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596063', 'tblTempUsageDetail_20' ) end [2025-03-03 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596063', 'tblTempVendorCDR_20' ) start [2025-03-03 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596063', 'tblTempVendorCDR_20' ) end [2025-03-03 04:37:16] Production.INFO: ProcessCDR(1,14596063,1,1,2) [2025-03-03 04:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596063', 'tblTempUsageDetail_20' ) start [2025-03-03 04:37:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596063', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:37:24] Production.INFO: ==10266== Releasing lock... [2025-03-03 04:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:38:01] Production.INFO: ==10321== Lock acquired, processing the job... [2025-03-03 09:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:38:01] Production.INFO: neon service started [2025-03-03 09:38:01] Production.INFO: neon service started [2025-03-03 09:38:01] Production.INFO: ==10321== Releasing lock... [2025-03-03 09:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:38:02] Production.INFO: ==10323== Lock acquired, processing the job... [2025-03-03 04:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:38:02] Production.INFO: ==10325== Lock acquired, processing the job... [2025-03-03 09:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:38:02] Production.INFO: ==10325== Releasing lock... [2025-03-03 09:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:38:02] Production.INFO: ==10323== Releasing lock... [2025-03-03 04:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:38:03] Production.INFO: ==10328== Lock acquired, processing the job... [2025-03-03 04:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:38:03] Production.INFO: ==10330== Lock acquired, processing the job... [2025-03-03 04:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:38:03] Production.INFO: ==10336== Lock acquired, processing the job... [2025-03-03 04:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:38:03] Production.INFO: ==10332== Lock acquired, processing the job... [2025-03-03 04:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:38:03] Production.INFO: ==10334== Lock acquired, processing the job... [2025-03-03 04:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:38:03] Production.INFO: Account Balance Start. [2025-03-03 04:38:03] Production.INFO: CreateAllLog Start [2025-03-03 04:38:03] Production.INFO: 117 [2025-03-03 04:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:38:03] Production.INFO: ==10330== Releasing lock... [2025-03-03 04:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:38:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:03] Production.ERROR: done [2025-03-03 04:38:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:38:03] Production.INFO: ==10338== Lock acquired, processing the job... [2025-03-03 04:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:38:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.ERROR: done [2025-03-03 04:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:38:04] Production.INFO: count ==13 [2025-03-03 04:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:38:04] Production.INFO: count ==21 [2025-03-03 04:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596067') start [2025-03-03 04:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596067') end [2025-03-03 04:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:38:04] Production.INFO: 1 [2025-03-03 04:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:38:04] Production.INFO: ==10338== Releasing lock... [2025-03-03 04:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:38:04] Production.INFO: Total Charge 0 [2025-03-03 04:38:04] Production.INFO: CreateAllLog End [2025-03-03 04:38:05] Production.INFO: Account Balance End. [2025-03-03 04:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:38:05] Production.INFO: ==10334== Releasing lock... [2025-03-03 04:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:38:11] Production.ERROR: CronJobId end10 [2025-03-03 04:38:11] Production.INFO: ==10332== Releasing lock... [2025-03-03 04:38:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:38:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:38:14] Production.INFO: call_cost start [2025-03-03 04:38:14] Production.INFO: call_cost end [2025-03-03 04:38:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:38:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:38:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:38:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:38:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:38:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:38:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:38:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:38:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:38:14] Production.INFO: ==10328== Releasing lock... [2025-03-03 04:38:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:38:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:38:15] Production.INFO: count ==409 [2025-03-03 04:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596068', 'tblTempUsageDetail_20' ) start [2025-03-03 04:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596068', 'tblTempUsageDetail_20' ) end [2025-03-03 04:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596068', 'tblTempVendorCDR_20' ) start [2025-03-03 04:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596068', 'tblTempVendorCDR_20' ) end [2025-03-03 04:38:16] Production.INFO: ProcessCDR(1,14596068,1,1,2) [2025-03-03 04:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596068', 'tblTempUsageDetail_20' ) start [2025-03-03 04:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596068', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:38:24] Production.INFO: ==10336== Releasing lock... [2025-03-03 04:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:38:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:39:01] Production.INFO: ==10396== Lock acquired, processing the job... [2025-03-03 09:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:39:01] Production.INFO: neon service started [2025-03-03 09:39:01] Production.INFO: neon service started [2025-03-03 09:39:01] Production.INFO: ==10396== Releasing lock... [2025-03-03 09:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:39:02] Production.INFO: ==10400== Lock acquired, processing the job... [2025-03-03 09:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:39:02] Production.INFO: ==10400== Releasing lock... [2025-03-03 09:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:39:02] Production.INFO: ==10398== Lock acquired, processing the job... [2025-03-03 04:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:39:02] Production.INFO: ==10398== Releasing lock... [2025-03-03 04:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:39:03] Production.INFO: ==10403== Lock acquired, processing the job... [2025-03-03 04:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:39:03] Production.INFO: ==10411== Lock acquired, processing the job... [2025-03-03 04:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:39:03] Production.INFO: ==10405== Lock acquired, processing the job... [2025-03-03 04:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:39:03] Production.INFO: ==10407== Lock acquired, processing the job... [2025-03-03 04:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:39:03] Production.INFO: ==10409== Lock acquired, processing the job... [2025-03-03 04:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:39:03] Production.INFO: ==10413== Lock acquired, processing the job... [2025-03-03 04:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:39:03] Production.INFO: Account Balance Start. [2025-03-03 04:39:03] Production.INFO: CreateAllLog Start [2025-03-03 04:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:39:03] Production.INFO: 117 [2025-03-03 04:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.ERROR: done [2025-03-03 04:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:39:04] Production.INFO: count ==13 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:39:04] Production.INFO: count ==21 [2025-03-03 04:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596072') start [2025-03-03 04:39:04] Production.ERROR: done [2025-03-03 04:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: ==10405== Releasing lock... [2025-03-03 04:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596072') end [2025-03-03 04:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:39:04] Production.INFO: 1 [2025-03-03 04:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: ==10413== Releasing lock... [2025-03-03 04:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:39:05] Production.INFO: Total Charge 0 [2025-03-03 04:39:05] Production.INFO: CreateAllLog End [2025-03-03 04:39:05] Production.INFO: Account Balance End. [2025-03-03 04:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:39:05] Production.INFO: ==10409== Releasing lock... [2025-03-03 04:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:39:11] Production.ERROR: CronJobId end10 [2025-03-03 04:39:11] Production.INFO: ==10407== Releasing lock... [2025-03-03 04:39:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:39:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:39:14] Production.INFO: call_cost start [2025-03-03 04:39:14] Production.INFO: call_cost end [2025-03-03 04:39:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:39:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:39:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:39:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:39:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:39:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:39:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:39:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:39:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:39:14] Production.INFO: ==10403== Releasing lock... [2025-03-03 04:39:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:39:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:39:16] Production.INFO: count ==409 [2025-03-03 04:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596073', 'tblTempUsageDetail_20' ) start [2025-03-03 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596073', 'tblTempUsageDetail_20' ) end [2025-03-03 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596073', 'tblTempVendorCDR_20' ) start [2025-03-03 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596073', 'tblTempVendorCDR_20' ) end [2025-03-03 04:39:16] Production.INFO: ProcessCDR(1,14596073,1,1,2) [2025-03-03 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596073', 'tblTempUsageDetail_20' ) start [2025-03-03 04:39:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596073', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:39:24] Production.INFO: ==10411== Releasing lock... [2025-03-03 04:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:39:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:40:02] Production.INFO: ==10467== Lock acquired, processing the job... [2025-03-03 09:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:40:02] Production.INFO: neon service started [2025-03-03 09:40:02] Production.INFO: neon service started [2025-03-03 09:40:02] Production.INFO: ==10467== Releasing lock... [2025-03-03 09:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:40:02] Production.INFO: ==10469== Lock acquired, processing the job... [2025-03-03 04:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:40:03] Production.INFO: ==10469== Releasing lock... [2025-03-03 04:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:40:03] Production.INFO: ==10471== Lock acquired, processing the job... [2025-03-03 09:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:40:03] Production.INFO: ==10471== Releasing lock... [2025-03-03 09:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:40:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:40:04] Production.INFO: ==10473== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 04:40:04] Production.INFO: ==10481== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:40:04] Production.INFO: ==10475== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:40:04] Production.INFO: ==10488== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:40:04] Production.INFO: ==10485== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 04:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 04:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:40:04] Production.ERROR: CronJob PID - 10481 [2025-03-03 04:40:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 04:40:04] Production.ERROR: CronJob ID - 12 [2025-03-03 04:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:40:00 [2025-03-03 04:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:40:04] Production.INFO: ==10479== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:40:04] Production.INFO: Account Balance Start. [2025-03-03 04:40:04] Production.INFO: CreateAllLog Start [2025-03-03 04:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:40:04] Production.INFO: ==10477== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 04:40:04] Production.INFO: ==10473== Releasing lock... [2025-03-03 04:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 04:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:40:04] Production.INFO: 117 [2025-03-03 04:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:04] Production.INFO: ==10483== Lock acquired, processing the job... [2025-03-03 04:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:40:04] Production.INFO: count ==13 [2025-03-03 04:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:04] Production.INFO: count ==21 [2025-03-03 04:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596076') start [2025-03-03 04:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596076') end [2025-03-03 04:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:40:05] Production.INFO: 1 [2025-03-03 04:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:40:05] Production.ERROR: done [2025-03-03 04:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: ==10477== Releasing lock... [2025-03-03 04:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 04:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596078', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 04:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: ==10488== Releasing lock... [2025-03-03 04:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:40:05] Production.ERROR: done [2025-03-03 04:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.ERROR: done [2025-03-03 04:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Date 2025-02-26 [2025-03-03 04:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Date 2025-02-27 [2025-03-03 04:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Date 2025-02-28 [2025-03-03 04:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Date 2025-03-01 [2025-03-03 04:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Date 2025-03-02 [2025-03-03 04:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Date 2025-03-03 [2025-03-03 04:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:40:06] Production.INFO: Total Charge 0 [2025-03-03 04:40:06] Production.INFO: CreateAllLog End [2025-03-03 04:40:06] Production.INFO: Account Balance End. [2025-03-03 04:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 04:40:06] Production.INFO: ==10481== Releasing lock... [2025-03-03 04:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596078', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 04:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 04:40:09] Production.INFO: ProcessCDR(1,14596078,1,1,2) [2025-03-03 04:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596078,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596078,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 04:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 04:40:09] Production.INFO: ==10485== Releasing lock... [2025-03-03 04:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 04:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:40:14] Production.ERROR: CronJobId end10 [2025-03-03 04:40:14] Production.INFO: ==10479== Releasing lock... [2025-03-03 04:40:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:40:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:40:17] Production.INFO: call_cost start [2025-03-03 04:40:17] Production.INFO: call_cost end [2025-03-03 04:40:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:40:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:40:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:40:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:40:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:40:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:40:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:40:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:40:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:40:17] Production.INFO: ==10475== Releasing lock... [2025-03-03 04:40:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:40:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:40:17] Production.INFO: count ==409 [2025-03-03 04:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596079', 'tblTempUsageDetail_20' ) start [2025-03-03 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596079', 'tblTempUsageDetail_20' ) end [2025-03-03 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596079', 'tblTempVendorCDR_20' ) start [2025-03-03 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596079', 'tblTempVendorCDR_20' ) end [2025-03-03 04:40:17] Production.INFO: ProcessCDR(1,14596079,1,1,2) [2025-03-03 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596079', 'tblTempUsageDetail_20' ) start [2025-03-03 04:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596079', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:40:25] Production.INFO: ==10483== Releasing lock... [2025-03-03 04:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:40:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:41:01] Production.INFO: ==10545== Lock acquired, processing the job... [2025-03-03 09:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:41:01] Production.INFO: neon service started [2025-03-03 09:41:01] Production.INFO: neon service started [2025-03-03 09:41:01] Production.INFO: ==10545== Releasing lock... [2025-03-03 09:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:41:02] Production.INFO: ==10547== Lock acquired, processing the job... [2025-03-03 04:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:41:02] Production.INFO: ==10549== Lock acquired, processing the job... [2025-03-03 09:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:41:02] Production.INFO: ==10549== Releasing lock... [2025-03-03 09:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:41:02] Production.INFO: ==10547== Releasing lock... [2025-03-03 04:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:41:03] Production.INFO: ==10552== Lock acquired, processing the job... [2025-03-03 04:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:41:03] Production.INFO: ==10554== Lock acquired, processing the job... [2025-03-03 04:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:41:03] Production.INFO: ==10558== Lock acquired, processing the job... [2025-03-03 04:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:41:03] Production.INFO: ==10556== Lock acquired, processing the job... [2025-03-03 04:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:41:03] Production.INFO: ==10562== Lock acquired, processing the job... [2025-03-03 04:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:41:04] Production.INFO: ==10560== Lock acquired, processing the job... [2025-03-03 04:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:41:04] Production.INFO: Account Balance Start. [2025-03-03 04:41:04] Production.INFO: CreateAllLog Start [2025-03-03 04:41:04] Production.INFO: 117 [2025-03-03 04:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: ==10554== Releasing lock... [2025-03-03 04:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:41:04] Production.INFO: count ==13 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: count ==21 [2025-03-03 04:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596083') start [2025-03-03 04:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596083') end [2025-03-03 04:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:41:04] Production.INFO: 1 [2025-03-03 04:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:41:04] Production.ERROR: done [2025-03-03 04:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: ==10562== Releasing lock... [2025-03-03 04:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:41:04] Production.ERROR: done [2025-03-03 04:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:41:05] Production.INFO: Total Charge 0 [2025-03-03 04:41:05] Production.INFO: CreateAllLog End [2025-03-03 04:41:05] Production.INFO: Account Balance End. [2025-03-03 04:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:41:05] Production.INFO: ==10558== Releasing lock... [2025-03-03 04:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:41:12] Production.ERROR: CronJobId end10 [2025-03-03 04:41:12] Production.INFO: ==10556== Releasing lock... [2025-03-03 04:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:41:14] Production.INFO: call_cost start [2025-03-03 04:41:14] Production.INFO: call_cost end [2025-03-03 04:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:41:14] Production.INFO: ==10552== Releasing lock... [2025-03-03 04:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:41:16] Production.INFO: count ==409 [2025-03-03 04:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596084', 'tblTempUsageDetail_20' ) start [2025-03-03 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596084', 'tblTempUsageDetail_20' ) end [2025-03-03 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596084', 'tblTempVendorCDR_20' ) start [2025-03-03 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596084', 'tblTempVendorCDR_20' ) end [2025-03-03 04:41:16] Production.INFO: ProcessCDR(1,14596084,1,1,2) [2025-03-03 04:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596084', 'tblTempUsageDetail_20' ) start [2025-03-03 04:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596084', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:41:24] Production.INFO: ==10560== Releasing lock... [2025-03-03 04:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:41:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:42:02] Production.INFO: ==10616== Lock acquired, processing the job... [2025-03-03 09:42:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:42:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:42:02] Production.INFO: neon service started [2025-03-03 09:42:02] Production.INFO: neon service started [2025-03-03 09:42:02] Production.INFO: ==10616== Releasing lock... [2025-03-03 09:42:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:42:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:42:02] Production.INFO: ==10620== Lock acquired, processing the job... [2025-03-03 09:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:42:02] Production.INFO: ==10618== Lock acquired, processing the job... [2025-03-03 04:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:42:03] Production.INFO: ==10620== Releasing lock... [2025-03-03 09:42:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:42:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:42:03] Production.INFO: ==10618== Releasing lock... [2025-03-03 04:42:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:42:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:42:04] Production.INFO: ==10623== Lock acquired, processing the job... [2025-03-03 04:42:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:42:04] Production.INFO: ==10625== Lock acquired, processing the job... [2025-03-03 04:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:42:04] Production.INFO: ==10631== Lock acquired, processing the job... [2025-03-03 04:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:42:04] Production.INFO: ==10627== Lock acquired, processing the job... [2025-03-03 04:42:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:42:04] Production.INFO: ==10625== Releasing lock... [2025-03-03 04:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:42:04] Production.ERROR: done [2025-03-03 04:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:42:04] Production.INFO: ==10629== Lock acquired, processing the job... [2025-03-03 04:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:42:04] Production.INFO: ==10633== Lock acquired, processing the job... [2025-03-03 04:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:42:04] Production.INFO: Account Balance Start. [2025-03-03 04:42:04] Production.INFO: CreateAllLog Start [2025-03-03 04:42:04] Production.INFO: 117 [2025-03-03 04:42:04] Production.ERROR: done [2025-03-03 04:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:42:04] Production.INFO: count ==13 [2025-03-03 04:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:42:04] Production.INFO: count ==21 [2025-03-03 04:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596088') start [2025-03-03 04:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596088') end [2025-03-03 04:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:42:04] Production.INFO: 1 [2025-03-03 04:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:42:05] Production.INFO: Date 2025-02-13 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: ==10633== Releasing lock... [2025-03-03 04:42:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:42:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:42:05] Production.INFO: Date 2025-02-14 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-15 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:42:05] Production.INFO: Total Charge 0 [2025-03-03 04:42:05] Production.INFO: CreateAllLog End [2025-03-03 04:42:05] Production.INFO: Account Balance End. [2025-03-03 04:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:42:05] Production.INFO: ==10629== Releasing lock... [2025-03-03 04:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:42:13] Production.ERROR: CronJobId end10 [2025-03-03 04:42:13] Production.INFO: ==10627== Releasing lock... [2025-03-03 04:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:42:15] Production.INFO: call_cost start [2025-03-03 04:42:15] Production.INFO: call_cost end [2025-03-03 04:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:42:15] Production.INFO: ==10623== Releasing lock... [2025-03-03 04:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:42:16] Production.INFO: count ==409 [2025-03-03 04:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596089', 'tblTempUsageDetail_20' ) start [2025-03-03 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596089', 'tblTempUsageDetail_20' ) end [2025-03-03 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596089', 'tblTempVendorCDR_20' ) start [2025-03-03 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596089', 'tblTempVendorCDR_20' ) end [2025-03-03 04:42:16] Production.INFO: ProcessCDR(1,14596089,1,1,2) [2025-03-03 04:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596089', 'tblTempUsageDetail_20' ) start [2025-03-03 04:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596089', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:42:24] Production.INFO: ==10631== Releasing lock... [2025-03-03 04:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:43:01] Production.INFO: ==10686== Lock acquired, processing the job... [2025-03-03 09:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:43:01] Production.INFO: neon service started [2025-03-03 09:43:01] Production.INFO: neon service started [2025-03-03 09:43:01] Production.INFO: ==10686== Releasing lock... [2025-03-03 09:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:43:02] Production.INFO: ==10691== Lock acquired, processing the job... [2025-03-03 09:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:43:02] Production.INFO: ==10691== Releasing lock... [2025-03-03 09:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:43:02] Production.INFO: ==10689== Lock acquired, processing the job... [2025-03-03 04:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:43:02] Production.INFO: ==10689== Releasing lock... [2025-03-03 04:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:43:03] Production.INFO: ==10693== Lock acquired, processing the job... [2025-03-03 04:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:43:03] Production.INFO: ==10699== Lock acquired, processing the job... [2025-03-03 04:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:43:03] Production.INFO: ==10701== Lock acquired, processing the job... [2025-03-03 04:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:43:03] Production.INFO: ==10695== Lock acquired, processing the job... [2025-03-03 04:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:43:03] Production.INFO: ==10697== Lock acquired, processing the job... [2025-03-03 04:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:43:03] Production.INFO: Account Balance Start. [2025-03-03 04:43:03] Production.INFO: CreateAllLog Start [2025-03-03 04:43:03] Production.INFO: 117 [2025-03-03 04:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:03] Production.INFO: ==10703== Lock acquired, processing the job... [2025-03-03 04:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.ERROR: done [2025-03-03 04:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:43:04] Production.INFO: ==10695== Releasing lock... [2025-03-03 04:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:43:04] Production.INFO: count ==13 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:43:04] Production.INFO: count ==21 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596093') start [2025-03-03 04:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.ERROR: done [2025-03-03 04:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596093') end [2025-03-03 04:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:43:04] Production.INFO: 1 [2025-03-03 04:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: ==10703== Releasing lock... [2025-03-03 04:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:43:04] Production.INFO: Total Charge 0 [2025-03-03 04:43:04] Production.INFO: CreateAllLog End [2025-03-03 04:43:05] Production.INFO: Account Balance End. [2025-03-03 04:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:43:05] Production.INFO: ==10699== Releasing lock... [2025-03-03 04:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:43:12] Production.ERROR: CronJobId end10 [2025-03-03 04:43:12] Production.INFO: ==10697== Releasing lock... [2025-03-03 04:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:43:14] Production.INFO: call_cost start [2025-03-03 04:43:14] Production.INFO: call_cost end [2025-03-03 04:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:43:14] Production.INFO: ==10693== Releasing lock... [2025-03-03 04:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:43:16] Production.INFO: count ==409 [2025-03-03 04:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596094', 'tblTempUsageDetail_20' ) start [2025-03-03 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596094', 'tblTempUsageDetail_20' ) end [2025-03-03 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596094', 'tblTempVendorCDR_20' ) start [2025-03-03 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596094', 'tblTempVendorCDR_20' ) end [2025-03-03 04:43:16] Production.INFO: ProcessCDR(1,14596094,1,1,2) [2025-03-03 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596094', 'tblTempUsageDetail_20' ) start [2025-03-03 04:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596094', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:43:24] Production.INFO: ==10701== Releasing lock... [2025-03-03 04:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:44:02] Production.INFO: ==10758== Lock acquired, processing the job... [2025-03-03 09:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:44:02] Production.INFO: neon service started [2025-03-03 09:44:02] Production.INFO: neon service started [2025-03-03 09:44:02] Production.INFO: ==10758== Releasing lock... [2025-03-03 09:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:44:02] Production.INFO: ==10762== Lock acquired, processing the job... [2025-03-03 09:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:44:02] Production.INFO: ==10762== Releasing lock... [2025-03-03 09:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:44:02] Production.INFO: ==10760== Lock acquired, processing the job... [2025-03-03 04:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:44:03] Production.INFO: ==10760== Releasing lock... [2025-03-03 04:44:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:44:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:44:03] Production.INFO: ==10771== Lock acquired, processing the job... [2025-03-03 04:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:44:04] Production.INFO: Account Balance Start. [2025-03-03 04:44:04] Production.INFO: CreateAllLog Start [2025-03-03 04:44:04] Production.INFO: 117 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: ==10765== Lock acquired, processing the job... [2025-03-03 04:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: ==10767== Lock acquired, processing the job... [2025-03-03 04:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:44:04] Production.INFO: ==10769== Lock acquired, processing the job... [2025-03-03 04:44:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: ==10773== Lock acquired, processing the job... [2025-03-03 04:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:44:04] Production.INFO: ==10775== Lock acquired, processing the job... [2025-03-03 04:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.INFO: count ==13 [2025-03-03 04:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:44:04] Production.INFO: count ==21 [2025-03-03 04:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596098') start [2025-03-03 04:44:05] Production.INFO: ==10767== Releasing lock... [2025-03-03 04:44:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:44:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:44:05] Production.INFO: Total Charge 0 [2025-03-03 04:44:05] Production.INFO: CreateAllLog End [2025-03-03 04:44:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596098') end [2025-03-03 04:44:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:44:05] Production.INFO: 1 [2025-03-03 04:44:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:44:05] Production.INFO: ==10775== Releasing lock... [2025-03-03 04:44:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:44:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:44:05] Production.ERROR: done [2025-03-03 04:44:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:44:05] Production.INFO: Account Balance End. [2025-03-03 04:44:05] Production.ERROR: done [2025-03-03 04:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:44:05] Production.INFO: ==10771== Releasing lock... [2025-03-03 04:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:44:13] Production.ERROR: CronJobId end10 [2025-03-03 04:44:13] Production.INFO: ==10769== Releasing lock... [2025-03-03 04:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:44:15] Production.INFO: call_cost start [2025-03-03 04:44:16] Production.INFO: call_cost end [2025-03-03 04:44:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:44:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:44:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:44:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:44:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:44:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:44:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:44:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:44:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:44:16] Production.INFO: ==10765== Releasing lock... [2025-03-03 04:44:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:44:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:44:17] Production.INFO: count ==409 [2025-03-03 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596099', 'tblTempUsageDetail_20' ) start [2025-03-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596099', 'tblTempUsageDetail_20' ) end [2025-03-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596099', 'tblTempVendorCDR_20' ) start [2025-03-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596099', 'tblTempVendorCDR_20' ) end [2025-03-03 04:44:17] Production.INFO: ProcessCDR(1,14596099,1,1,2) [2025-03-03 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596099', 'tblTempUsageDetail_20' ) start [2025-03-03 04:44:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596099', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:44:25] Production.INFO: ==10773== Releasing lock... [2025-03-03 04:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:44:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:45:01] Production.INFO: ==10870== Lock acquired, processing the job... [2025-03-03 09:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:45:01] Production.INFO: neon service started [2025-03-03 09:45:01] Production.INFO: neon service started [2025-03-03 09:45:01] Production.INFO: ==10870== Releasing lock... [2025-03-03 09:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:45:02] Production.INFO: ==10872== Lock acquired, processing the job... [2025-03-03 04:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:45:02] Production.INFO: ==10872== Releasing lock... [2025-03-03 04:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:45:02] Production.INFO: ==10874== Lock acquired, processing the job... [2025-03-03 09:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:45:02] Production.INFO: ==10874== Releasing lock... [2025-03-03 09:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:45:03] Production.INFO: ==10879== Lock acquired, processing the job... [2025-03-03 04:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:45:03] Production.INFO: ==10877== Lock acquired, processing the job... [2025-03-03 04:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:45:03] Production.INFO: ==10887== Lock acquired, processing the job... [2025-03-03 04:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:45:03] Production.INFO: ==10881== Lock acquired, processing the job... [2025-03-03 04:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:45:03] Production.INFO: ==10883== Lock acquired, processing the job... [2025-03-03 04:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:45:03] Production.INFO: ==10885== Lock acquired, processing the job... [2025-03-03 04:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:45:03] Production.INFO: Account Balance Start. [2025-03-03 04:45:03] Production.INFO: CreateAllLog Start [2025-03-03 04:45:03] Production.INFO: count ==13 [2025-03-03 04:45:03] Production.INFO: 117 [2025-03-03 04:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:45:03] Production.INFO: count ==21 [2025-03-03 04:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596102') start [2025-03-03 04:45:03] Production.INFO: ==10879== Releasing lock... [2025-03-03 04:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:45:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596102') end [2025-03-03 04:45:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:45:03] Production.INFO: 1 [2025-03-03 04:45:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:45:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:03] Production.INFO: Date 2025-02-14 [2025-03-03 04:45:03] Production.INFO: ==10887== Releasing lock... [2025-03-03 04:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:45:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.ERROR: done [2025-03-03 04:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:45:04] Production.ERROR: done [2025-03-03 04:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:45:04] Production.INFO: Total Charge 0 [2025-03-03 04:45:04] Production.INFO: CreateAllLog End [2025-03-03 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:45:04] Production.INFO: Account Balance End. [2025-03-03 04:45:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:45:04] Production.INFO: ==10883== Releasing lock... [2025-03-03 04:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:45:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:45:11] Production.ERROR: CronJobId end10 [2025-03-03 04:45:11] Production.INFO: ==10881== Releasing lock... [2025-03-03 04:45:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:45:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:45:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:45:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:45:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:45:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:45:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:45:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:45:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:45:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:45:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:45:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:45:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:45:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:45:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:45:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:45:14] Production.INFO: call_cost start [2025-03-03 04:45:14] Production.INFO: call_cost end [2025-03-03 04:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:45:14] Production.INFO: ==10877== Releasing lock... [2025-03-03 04:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:45:16] Production.INFO: count ==409 [2025-03-03 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596104', 'tblTempUsageDetail_20' ) start [2025-03-03 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596104', 'tblTempUsageDetail_20' ) end [2025-03-03 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596104', 'tblTempVendorCDR_20' ) start [2025-03-03 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596104', 'tblTempVendorCDR_20' ) end [2025-03-03 04:45:17] Production.INFO: ProcessCDR(1,14596104,1,1,2) [2025-03-03 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596104', 'tblTempUsageDetail_20' ) start [2025-03-03 04:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596104', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:45:24] Production.INFO: ==10885== Releasing lock... [2025-03-03 04:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:45:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:46:02] Production.INFO: ==10943== Lock acquired, processing the job... [2025-03-03 09:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:46:02] Production.INFO: neon service started [2025-03-03 09:46:02] Production.INFO: neon service started [2025-03-03 09:46:02] Production.INFO: ==10943== Releasing lock... [2025-03-03 09:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:46:02] Production.INFO: ==10945== Lock acquired, processing the job... [2025-03-03 04:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:46:02] Production.INFO: ==10945== Releasing lock... [2025-03-03 04:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:46:03] Production.INFO: ==10947== Lock acquired, processing the job... [2025-03-03 09:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:46:03] Production.INFO: ==10947== Releasing lock... [2025-03-03 09:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:46:03] Production.INFO: ==10951== Lock acquired, processing the job... [2025-03-03 04:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:46:03] Production.INFO: ==10957== Lock acquired, processing the job... [2025-03-03 04:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:46:04] Production.INFO: ==10949== Lock acquired, processing the job... [2025-03-03 04:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:46:04] Production.INFO: ==10953== Lock acquired, processing the job... [2025-03-03 04:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:46:04] Production.INFO: ==10955== Lock acquired, processing the job... [2025-03-03 04:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:46:04] Production.INFO: ==10959== Lock acquired, processing the job... [2025-03-03 04:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:46:04] Production.INFO: ==10951== Releasing lock... [2025-03-03 04:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:46:04] Production.INFO: Account Balance Start. [2025-03-03 04:46:04] Production.INFO: CreateAllLog Start [2025-03-03 04:46:04] Production.INFO: 117 [2025-03-03 04:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:46:04] Production.ERROR: done [2025-03-03 04:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:46:04] Production.INFO: count ==13 [2025-03-03 04:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: count ==21 [2025-03-03 04:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596108') start [2025-03-03 04:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596108') end [2025-03-03 04:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:46:04] Production.INFO: 1 [2025-03-03 04:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.ERROR: done [2025-03-03 04:46:04] Production.INFO: ==10959== Releasing lock... [2025-03-03 04:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:46:05] Production.INFO: Total Charge 0 [2025-03-03 04:46:05] Production.INFO: CreateAllLog End [2025-03-03 04:46:05] Production.INFO: Account Balance End. [2025-03-03 04:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:46:05] Production.INFO: ==10955== Releasing lock... [2025-03-03 04:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:46:12] Production.ERROR: CronJobId end10 [2025-03-03 04:46:12] Production.INFO: ==10953== Releasing lock... [2025-03-03 04:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:46:16] Production.INFO: call_cost start [2025-03-03 04:46:16] Production.INFO: call_cost end [2025-03-03 04:46:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:46:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:46:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:46:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:46:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:46:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:46:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:46:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:46:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:46:16] Production.INFO: ==10949== Releasing lock... [2025-03-03 04:46:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:46:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:46:16] Production.INFO: count ==409 [2025-03-03 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596109', 'tblTempUsageDetail_20' ) start [2025-03-03 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596109', 'tblTempUsageDetail_20' ) end [2025-03-03 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596109', 'tblTempVendorCDR_20' ) start [2025-03-03 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596109', 'tblTempVendorCDR_20' ) end [2025-03-03 04:46:17] Production.INFO: ProcessCDR(1,14596109,1,1,2) [2025-03-03 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596109', 'tblTempUsageDetail_20' ) start [2025-03-03 04:46:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596109', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:46:24] Production.INFO: ==10957== Releasing lock... [2025-03-03 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:46:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:47:01] Production.INFO: ==11020== Lock acquired, processing the job... [2025-03-03 09:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:47:01] Production.INFO: neon service started [2025-03-03 09:47:01] Production.INFO: neon service started [2025-03-03 09:47:01] Production.INFO: ==11020== Releasing lock... [2025-03-03 09:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:47:02] Production.INFO: ==11022== Lock acquired, processing the job... [2025-03-03 04:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:47:02] Production.INFO: ==11024== Lock acquired, processing the job... [2025-03-03 09:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 04:47:02] Production.INFO: ==11022== Releasing lock... [2025-03-03 04:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:47:02] Production.INFO: ==11024== Releasing lock... [2025-03-03 09:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:47:03] Production.INFO: ==11036== Lock acquired, processing the job... [2025-03-03 04:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:47:03] Production.INFO: count ==13 [2025-03-03 04:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:47:03] Production.INFO: count ==21 [2025-03-03 04:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596110') start [2025-03-03 04:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596110') end [2025-03-03 04:47:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:47:03] Production.INFO: 1 [2025-03-03 04:47:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:47:03] Production.INFO: ==11036== Releasing lock... [2025-03-03 04:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:47:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:47:03] Production.INFO: ==11026== Lock acquired, processing the job... [2025-03-03 04:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:47:03] Production.INFO: ==11034== Lock acquired, processing the job... [2025-03-03 04:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:47:03] Production.INFO: ==11028== Lock acquired, processing the job... [2025-03-03 04:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:47:03] Production.INFO: ==11030== Lock acquired, processing the job... [2025-03-03 04:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:47:03] Production.INFO: ==11032== Lock acquired, processing the job... [2025-03-03 04:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:47:04] Production.INFO: Account Balance Start. [2025-03-03 04:47:04] Production.INFO: CreateAllLog Start [2025-03-03 04:47:04] Production.INFO: 117 [2025-03-03 04:47:04] Production.INFO: ==11028== Releasing lock... [2025-03-03 04:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.ERROR: done [2025-03-03 04:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.ERROR: done [2025-03-03 04:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:47:05] Production.INFO: Total Charge 0 [2025-03-03 04:47:05] Production.INFO: CreateAllLog End [2025-03-03 04:47:05] Production.INFO: Account Balance End. [2025-03-03 04:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:47:05] Production.INFO: ==11032== Releasing lock... [2025-03-03 04:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:47:11] Production.ERROR: CronJobId end10 [2025-03-03 04:47:11] Production.INFO: ==11030== Releasing lock... [2025-03-03 04:47:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:47:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:47:14] Production.INFO: call_cost start [2025-03-03 04:47:14] Production.INFO: call_cost end [2025-03-03 04:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:47:14] Production.INFO: ==11026== Releasing lock... [2025-03-03 04:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:47:19] Production.INFO: count ==409 [2025-03-03 04:47:19] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596114', 'tblTempUsageDetail_20' ) start [2025-03-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596114', 'tblTempUsageDetail_20' ) end [2025-03-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596114', 'tblTempVendorCDR_20' ) start [2025-03-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596114', 'tblTempVendorCDR_20' ) end [2025-03-03 04:47:19] Production.INFO: ProcessCDR(1,14596114,1,1,2) [2025-03-03 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596114', 'tblTempUsageDetail_20' ) start [2025-03-03 04:47:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596114', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:47:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:47:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:47:26] Production.INFO: ==11034== Releasing lock... [2025-03-03 04:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:47:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:48:02] Production.INFO: ==11091== Lock acquired, processing the job... [2025-03-03 09:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:48:02] Production.INFO: neon service started [2025-03-03 09:48:02] Production.INFO: neon service started [2025-03-03 09:48:02] Production.INFO: ==11091== Releasing lock... [2025-03-03 09:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:48:02] Production.INFO: ==11093== Lock acquired, processing the job... [2025-03-03 04:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:48:02] Production.INFO: ==11093== Releasing lock... [2025-03-03 04:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:48:02] Production.INFO: ==11095== Lock acquired, processing the job... [2025-03-03 09:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:48:03] Production.INFO: ==11095== Releasing lock... [2025-03-03 09:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:48:03] Production.INFO: ==11097== Lock acquired, processing the job... [2025-03-03 04:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:48:03] Production.INFO: ==11099== Lock acquired, processing the job... [2025-03-03 04:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:48:03] Production.INFO: ==11101== Lock acquired, processing the job... [2025-03-03 04:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:48:04] Production.INFO: ==11103== Lock acquired, processing the job... [2025-03-03 04:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:48:04] Production.INFO: ==11099== Releasing lock... [2025-03-03 04:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:48:04] Production.INFO: ==11105== Lock acquired, processing the job... [2025-03-03 04:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:48:04] Production.INFO: ==11107== Lock acquired, processing the job... [2025-03-03 04:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:48:04] Production.INFO: Account Balance Start. [2025-03-03 04:48:04] Production.INFO: CreateAllLog Start [2025-03-03 04:48:04] Production.INFO: 117 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: count ==13 [2025-03-03 04:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:48:04] Production.INFO: count ==21 [2025-03-03 04:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596118') start [2025-03-03 04:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.ERROR: done [2025-03-03 04:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596118') end [2025-03-03 04:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:48:04] Production.INFO: 1 [2025-03-03 04:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:48:04] Production.INFO: ==11107== Releasing lock... [2025-03-03 04:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.ERROR: done [2025-03-03 04:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:48:05] Production.INFO: Total Charge 0 [2025-03-03 04:48:05] Production.INFO: CreateAllLog End [2025-03-03 04:48:05] Production.INFO: Account Balance End. [2025-03-03 04:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:48:05] Production.INFO: ==11103== Releasing lock... [2025-03-03 04:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:48:14] Production.ERROR: CronJobId end10 [2025-03-03 04:48:14] Production.INFO: ==11101== Releasing lock... [2025-03-03 04:48:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:48:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:48:16] Production.INFO: call_cost start [2025-03-03 04:48:16] Production.INFO: call_cost end [2025-03-03 04:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:48:16] Production.INFO: ==11097== Releasing lock... [2025-03-03 04:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:48:16] Production.INFO: count ==409 [2025-03-03 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596119', 'tblTempUsageDetail_20' ) start [2025-03-03 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596119', 'tblTempUsageDetail_20' ) end [2025-03-03 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596119', 'tblTempVendorCDR_20' ) start [2025-03-03 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596119', 'tblTempVendorCDR_20' ) end [2025-03-03 04:48:17] Production.INFO: ProcessCDR(1,14596119,1,1,2) [2025-03-03 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596119', 'tblTempUsageDetail_20' ) start [2025-03-03 04:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596119', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:48:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:48:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:48:25] Production.INFO: ==11105== Releasing lock... [2025-03-03 04:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:48:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:49:01] Production.INFO: ==11164== Lock acquired, processing the job... [2025-03-03 09:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:49:01] Production.INFO: neon service started [2025-03-03 09:49:01] Production.INFO: neon service started [2025-03-03 09:49:01] Production.INFO: ==11164== Releasing lock... [2025-03-03 09:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:49:02] Production.INFO: ==11166== Lock acquired, processing the job... [2025-03-03 04:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:49:02] Production.INFO: ==11166== Releasing lock... [2025-03-03 04:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:49:02] Production.INFO: ==11168== Lock acquired, processing the job... [2025-03-03 09:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:49:02] Production.INFO: ==11168== Releasing lock... [2025-03-03 09:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:49:02] Production.INFO: ==11178== Lock acquired, processing the job... [2025-03-03 04:49:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:49:03] Production.ERROR: done [2025-03-03 04:49:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:49:03] Production.INFO: ==11170== Lock acquired, processing the job... [2025-03-03 04:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:49:03] Production.ERROR: done [2025-03-03 04:49:03] Production.INFO: ==11172== Lock acquired, processing the job... [2025-03-03 04:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:49:03] Production.INFO: ==11174== Lock acquired, processing the job... [2025-03-03 04:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:49:03] Production.INFO: ==11181== Lock acquired, processing the job... [2025-03-03 04:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:49:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:49:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:49:03] Production.INFO: ==11176== Lock acquired, processing the job... [2025-03-03 04:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:49:03] Production.INFO: Account Balance Start. [2025-03-03 04:49:03] Production.INFO: CreateAllLog Start [2025-03-03 04:49:03] Production.INFO: 117 [2025-03-03 04:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:03] Production.INFO: count ==13 [2025-03-03 04:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:49:03] Production.INFO: count ==21 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596123') start [2025-03-03 04:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: ==11172== Releasing lock... [2025-03-03 04:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596123') end [2025-03-03 04:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:49:04] Production.INFO: 1 [2025-03-03 04:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: ==11181== Releasing lock... [2025-03-03 04:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:49:04] Production.INFO: Total Charge 0 [2025-03-03 04:49:04] Production.INFO: CreateAllLog End [2025-03-03 04:49:04] Production.INFO: Account Balance End. [2025-03-03 04:49:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:49:04] Production.INFO: ==11176== Releasing lock... [2025-03-03 04:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:49:12] Production.ERROR: CronJobId end10 [2025-03-03 04:49:12] Production.INFO: ==11174== Releasing lock... [2025-03-03 04:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:49:15] Production.INFO: call_cost start [2025-03-03 04:49:15] Production.INFO: call_cost end [2025-03-03 04:49:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:49:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:49:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:49:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:49:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:49:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:49:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:49:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:49:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:49:15] Production.INFO: ==11170== Releasing lock... [2025-03-03 04:49:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:49:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:49:15] Production.INFO: count ==409 [2025-03-03 04:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596120', 'tblTempUsageDetail_20' ) start [2025-03-03 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596120', 'tblTempUsageDetail_20' ) end [2025-03-03 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596120', 'tblTempVendorCDR_20' ) start [2025-03-03 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596120', 'tblTempVendorCDR_20' ) end [2025-03-03 04:49:16] Production.INFO: ProcessCDR(1,14596120,1,1,2) [2025-03-03 04:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596120', 'tblTempUsageDetail_20' ) start [2025-03-03 04:49:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596120', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:49:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:49:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:49:23] Production.INFO: ==11178== Releasing lock... [2025-03-03 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:49:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:50:02] Production.INFO: ==11233== Lock acquired, processing the job... [2025-03-03 09:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:50:02] Production.INFO: neon service started [2025-03-03 09:50:02] Production.INFO: neon service started [2025-03-03 09:50:02] Production.INFO: ==11233== Releasing lock... [2025-03-03 09:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:50:02] Production.INFO: ==11236== Lock acquired, processing the job... [2025-03-03 04:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:50:02] Production.INFO: ==11238== Lock acquired, processing the job... [2025-03-03 09:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:50:02] Production.INFO: ==11238== Releasing lock... [2025-03-03 09:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:50:03] Production.INFO: ==11236== Releasing lock... [2025-03-03 04:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:50:04] Production.INFO: ==11240== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 04:50:04] Production.INFO: ==11246== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:50:04] Production.INFO: ==11242== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:50:04] Production.INFO: ==11250== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 04:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 04:50:04] Production.ERROR: CronJob PID - 11246 [2025-03-03 04:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 04:50:04] Production.ERROR: CronJob ID - 10 [2025-03-03 04:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 04:50:00 [2025-03-03 04:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 04:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 04:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:50:04] Production.INFO: ==11244== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:50:04] Production.INFO: ==11255== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 04:50:04] Production.INFO: ==11240== Releasing lock... [2025-03-03 04:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 04:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:50:04] Production.INFO: ==11248== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:50:04] Production.INFO: ==11252== Lock acquired, processing the job... [2025-03-03 04:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 04:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:50:04] Production.INFO: count ==13 [2025-03-03 04:50:04] Production.INFO: Account Balance Start. [2025-03-03 04:50:04] Production.INFO: CreateAllLog Start [2025-03-03 04:50:04] Production.INFO: 117 [2025-03-03 04:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:50:05] Production.INFO: count ==21 [2025-03-03 04:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596127') start [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-09 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.ERROR: done [2025-03-03 04:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-10 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-11 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.ERROR: done [2025-03-03 04:50:05] Production.INFO: Date 2025-02-12 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596127') end [2025-03-03 04:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:50:05] Production.INFO: 1 [2025-03-03 04:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:50:05] Production.INFO: Date 2025-02-13 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: ==11255== Releasing lock... [2025-03-03 04:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:50:05] Production.INFO: Date 2025-02-14 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 04:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596129', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 04:50:05] Production.ERROR: done [2025-03-03 04:50:05] Production.INFO: ==11244== Releasing lock... [2025-03-03 04:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:06] Production.INFO: Date 2025-02-28 [2025-03-03 04:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:06] Production.INFO: Date 2025-03-01 [2025-03-03 04:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:06] Production.INFO: Date 2025-03-02 [2025-03-03 04:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 04:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 04:50:06] Production.INFO: Total Charge 0 [2025-03-03 04:50:06] Production.INFO: CreateAllLog End [2025-03-03 04:50:06] Production.INFO: Account Balance End. [2025-03-03 04:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 04:50:06] Production.INFO: ==11248== Releasing lock... [2025-03-03 04:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596129', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 04:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 04:50:10] Production.INFO: ProcessCDR(1,14596129,1,1,2) [2025-03-03 04:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596129,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596129,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 04:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 04:50:10] Production.INFO: ==11252== Releasing lock... [2025-03-03 04:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 04:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 04:50:14] Production.ERROR: CronJobId end10 [2025-03-03 04:50:14] Production.INFO: ==11246== Releasing lock... [2025-03-03 04:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:50:17] Production.INFO: call_cost start [2025-03-03 04:50:17] Production.INFO: call_cost end [2025-03-03 04:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:50:17] Production.INFO: ==11242== Releasing lock... [2025-03-03 04:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:50:17] Production.INFO: count ==409 [2025-03-03 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596130', 'tblTempUsageDetail_20' ) start [2025-03-03 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596130', 'tblTempUsageDetail_20' ) end [2025-03-03 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596130', 'tblTempVendorCDR_20' ) start [2025-03-03 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596130', 'tblTempVendorCDR_20' ) end [2025-03-03 04:50:18] Production.INFO: ProcessCDR(1,14596130,1,1,2) [2025-03-03 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596130', 'tblTempUsageDetail_20' ) start [2025-03-03 04:50:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596130', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:50:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:50:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:50:26] Production.INFO: ==11250== Releasing lock... [2025-03-03 04:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:50:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:51:01] Production.INFO: ==11311== Lock acquired, processing the job... [2025-03-03 09:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:51:01] Production.INFO: neon service started [2025-03-03 09:51:01] Production.INFO: neon service started [2025-03-03 09:51:01] Production.INFO: ==11311== Releasing lock... [2025-03-03 09:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:51:02] Production.INFO: ==11313== Lock acquired, processing the job... [2025-03-03 04:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:51:02] Production.INFO: ==11313== Releasing lock... [2025-03-03 04:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:51:02] Production.INFO: ==11315== Lock acquired, processing the job... [2025-03-03 09:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:51:02] Production.INFO: ==11315== Releasing lock... [2025-03-03 09:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:51:03] Production.INFO: ==11322== Lock acquired, processing the job... [2025-03-03 04:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:51:03] Production.INFO: ==11328== Lock acquired, processing the job... [2025-03-03 04:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:51:03] Production.INFO: ==11318== Lock acquired, processing the job... [2025-03-03 04:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:51:03] Production.INFO: count ==13 [2025-03-03 04:51:03] Production.INFO: ==11320== Lock acquired, processing the job... [2025-03-03 04:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:51:03] Production.INFO: count ==21 [2025-03-03 04:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596131') start [2025-03-03 04:51:03] Production.INFO: ==11324== Lock acquired, processing the job... [2025-03-03 04:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:51:03] Production.INFO: ==11326== Lock acquired, processing the job... [2025-03-03 04:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:51:03] Production.INFO: Account Balance Start. [2025-03-03 04:51:03] Production.INFO: CreateAllLog Start [2025-03-03 04:51:03] Production.INFO: 117 [2025-03-03 04:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596131') end [2025-03-03 04:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:51:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:51:03] Production.INFO: 1 [2025-03-03 04:51:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:03] Production.INFO: ==11328== Releasing lock... [2025-03-03 04:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:51:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:03] Production.INFO: ==11320== Releasing lock... [2025-03-03 04:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:03] Production.INFO: Date 2025-02-13 [2025-03-03 04:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.ERROR: done [2025-03-03 04:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.ERROR: done [2025-03-03 04:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:51:04] Production.INFO: Total Charge 0 [2025-03-03 04:51:04] Production.INFO: CreateAllLog End [2025-03-03 04:51:04] Production.INFO: Account Balance End. [2025-03-03 04:51:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:51:04] Production.INFO: ==11324== Releasing lock... [2025-03-03 04:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:51:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:51:12] Production.ERROR: CronJobId end10 [2025-03-03 04:51:12] Production.INFO: ==11322== Releasing lock... [2025-03-03 04:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:51:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:51:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:51:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:51:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:51:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:51:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:51:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:51:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:51:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:51:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:51:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:51:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:51:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:51:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:51:14] Production.INFO: call_cost start [2025-03-03 04:51:14] Production.INFO: call_cost end [2025-03-03 04:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:51:14] Production.INFO: ==11318== Releasing lock... [2025-03-03 04:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:51:16] Production.INFO: count ==409 [2025-03-03 04:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596135', 'tblTempUsageDetail_20' ) start [2025-03-03 04:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596135', 'tblTempUsageDetail_20' ) end [2025-03-03 04:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596135', 'tblTempVendorCDR_20' ) start [2025-03-03 04:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596135', 'tblTempVendorCDR_20' ) end [2025-03-03 04:51:16] Production.INFO: ProcessCDR(1,14596135,1,1,2) [2025-03-03 04:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596135', 'tblTempUsageDetail_20' ) start [2025-03-03 04:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596135', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:51:24] Production.INFO: ==11326== Releasing lock... [2025-03-03 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:51:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:52:02] Production.INFO: ==11382== Lock acquired, processing the job... [2025-03-03 09:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:52:02] Production.INFO: neon service started [2025-03-03 09:52:02] Production.INFO: neon service started [2025-03-03 09:52:02] Production.INFO: ==11382== Releasing lock... [2025-03-03 09:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:52:02] Production.INFO: ==11384== Lock acquired, processing the job... [2025-03-03 04:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:52:02] Production.INFO: ==11384== Releasing lock... [2025-03-03 04:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:52:02] Production.INFO: ==11386== Lock acquired, processing the job... [2025-03-03 09:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:52:03] Production.INFO: ==11386== Releasing lock... [2025-03-03 09:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:52:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:52:03] Production.INFO: ==11388== Lock acquired, processing the job... [2025-03-03 04:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:52:03] Production.INFO: ==11390== Lock acquired, processing the job... [2025-03-03 04:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:52:03] Production.INFO: ==11395== Lock acquired, processing the job... [2025-03-03 04:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:52:04] Production.INFO: ==11390== Releasing lock... [2025-03-03 04:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:52:04] Production.INFO: Account Balance Start. [2025-03-03 04:52:04] Production.INFO: CreateAllLog Start [2025-03-03 04:52:04] Production.INFO: 117 [2025-03-03 04:52:04] Production.INFO: ==11392== Lock acquired, processing the job... [2025-03-03 04:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: ==11397== Lock acquired, processing the job... [2025-03-03 04:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:52:04] Production.INFO: ==11399== Lock acquired, processing the job... [2025-03-03 04:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: count ==13 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:52:04] Production.INFO: count ==21 [2025-03-03 04:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596139') start [2025-03-03 04:52:04] Production.ERROR: done [2025-03-03 04:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596139') end [2025-03-03 04:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:52:04] Production.INFO: 1 [2025-03-03 04:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: ==11399== Releasing lock... [2025-03-03 04:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:52:04] Production.ERROR: done [2025-03-03 04:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:52:05] Production.INFO: Total Charge 0 [2025-03-03 04:52:05] Production.INFO: CreateAllLog End [2025-03-03 04:52:05] Production.INFO: Account Balance End. [2025-03-03 04:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:52:05] Production.INFO: ==11395== Releasing lock... [2025-03-03 04:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:52:13] Production.ERROR: CronJobId end10 [2025-03-03 04:52:13] Production.INFO: ==11392== Releasing lock... [2025-03-03 04:52:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:52:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:52:14] Production.INFO: call_cost start [2025-03-03 04:52:14] Production.INFO: call_cost end [2025-03-03 04:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:52:14] Production.INFO: ==11388== Releasing lock... [2025-03-03 04:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:52:17] Production.INFO: count ==409 [2025-03-03 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596140', 'tblTempUsageDetail_20' ) start [2025-03-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596140', 'tblTempUsageDetail_20' ) end [2025-03-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596140', 'tblTempVendorCDR_20' ) start [2025-03-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596140', 'tblTempVendorCDR_20' ) end [2025-03-03 04:52:18] Production.INFO: ProcessCDR(1,14596140,1,1,2) [2025-03-03 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596140', 'tblTempUsageDetail_20' ) start [2025-03-03 04:52:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596140', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:52:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:52:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:52:26] Production.INFO: ==11397== Releasing lock... [2025-03-03 04:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:52:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:53:01] Production.INFO: ==11455== Lock acquired, processing the job... [2025-03-03 09:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:53:01] Production.INFO: neon service started [2025-03-03 09:53:01] Production.INFO: neon service started [2025-03-03 09:53:01] Production.INFO: ==11455== Releasing lock... [2025-03-03 09:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:53:01] Production.INFO: ==11459== Lock acquired, processing the job... [2025-03-03 09:53:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:53:01] Production.INFO: ==11459== Releasing lock... [2025-03-03 09:53:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:53:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:53:02] Production.INFO: ==11457== Lock acquired, processing the job... [2025-03-03 04:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:53:02] Production.INFO: ==11457== Releasing lock... [2025-03-03 04:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:53:03] Production.INFO: ==11461== Lock acquired, processing the job... [2025-03-03 04:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:53:03] Production.INFO: ==11463== Lock acquired, processing the job... [2025-03-03 04:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:53:03] Production.INFO: ==11466== Lock acquired, processing the job... [2025-03-03 04:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:53:03] Production.INFO: ==11468== Lock acquired, processing the job... [2025-03-03 04:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:53:03] Production.INFO: ==11472== Lock acquired, processing the job... [2025-03-03 04:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:53:03] Production.INFO: ==11470== Lock acquired, processing the job... [2025-03-03 04:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:53:03] Production.INFO: ==11463== Releasing lock... [2025-03-03 04:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:53:03] Production.INFO: Account Balance Start. [2025-03-03 04:53:03] Production.INFO: CreateAllLog Start [2025-03-03 04:53:03] Production.INFO: 117 [2025-03-03 04:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:53:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:03] Production.INFO: count ==13 [2025-03-03 04:53:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:03] Production.INFO: count ==21 [2025-03-03 04:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596144') start [2025-03-03 04:53:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596144') end [2025-03-03 04:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:53:04] Production.INFO: 1 [2025-03-03 04:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: ==11472== Releasing lock... [2025-03-03 04:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:53:04] Production.ERROR: done [2025-03-03 04:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.ERROR: done [2025-03-03 04:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:53:04] Production.INFO: Total Charge 0 [2025-03-03 04:53:04] Production.INFO: CreateAllLog End [2025-03-03 04:53:04] Production.INFO: Account Balance End. [2025-03-03 04:53:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:53:04] Production.INFO: ==11468== Releasing lock... [2025-03-03 04:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:53:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:53:12] Production.ERROR: CronJobId end10 [2025-03-03 04:53:12] Production.INFO: ==11466== Releasing lock... [2025-03-03 04:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:53:15] Production.INFO: call_cost start [2025-03-03 04:53:15] Production.INFO: call_cost end [2025-03-03 04:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:53:15] Production.INFO: ==11461== Releasing lock... [2025-03-03 04:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:53:16] Production.INFO: count ==409 [2025-03-03 04:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596145', 'tblTempUsageDetail_20' ) start [2025-03-03 04:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596145', 'tblTempUsageDetail_20' ) end [2025-03-03 04:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596145', 'tblTempVendorCDR_20' ) start [2025-03-03 04:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596145', 'tblTempVendorCDR_20' ) end [2025-03-03 04:53:16] Production.INFO: ProcessCDR(1,14596145,1,1,2) [2025-03-03 04:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596145', 'tblTempUsageDetail_20' ) start [2025-03-03 04:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596145', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:53:24] Production.INFO: ==11470== Releasing lock... [2025-03-03 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:54:01] Production.INFO: ==11526== Lock acquired, processing the job... [2025-03-03 09:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:54:01] Production.INFO: neon service started [2025-03-03 09:54:01] Production.INFO: neon service started [2025-03-03 09:54:01] Production.INFO: ==11526== Releasing lock... [2025-03-03 09:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:54:02] Production.INFO: ==11530== Lock acquired, processing the job... [2025-03-03 09:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:54:02] Production.INFO: ==11530== Releasing lock... [2025-03-03 09:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:54:02] Production.INFO: ==11528== Lock acquired, processing the job... [2025-03-03 04:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:54:02] Production.INFO: ==11528== Releasing lock... [2025-03-03 04:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:54:03] Production.INFO: ==11539== Lock acquired, processing the job... [2025-03-03 04:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:54:03] Production.INFO: Account Balance Start. [2025-03-03 04:54:03] Production.INFO: CreateAllLog Start [2025-03-03 04:54:03] Production.INFO: 117 [2025-03-03 04:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:54:03] Production.INFO: ==11533== Lock acquired, processing the job... [2025-03-03 04:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:03] Production.INFO: ==11541== Lock acquired, processing the job... [2025-03-03 04:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:54:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:03] Production.INFO: ==11535== Lock acquired, processing the job... [2025-03-03 04:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:54:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: ==11537== Lock acquired, processing the job... [2025-03-03 04:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: ==11543== Lock acquired, processing the job... [2025-03-03 04:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:54:04] Production.ERROR: done [2025-03-03 04:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:54:04] Production.INFO: count ==13 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:54:04] Production.INFO: count ==21 [2025-03-03 04:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596149') start [2025-03-03 04:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.ERROR: done [2025-03-03 04:54:04] Production.INFO: ==11535== Releasing lock... [2025-03-03 04:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596149') end [2025-03-03 04:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:54:04] Production.INFO: 1 [2025-03-03 04:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:54:04] Production.INFO: ==11543== Releasing lock... [2025-03-03 04:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:54:04] Production.INFO: Total Charge 0 [2025-03-03 04:54:04] Production.INFO: CreateAllLog End [2025-03-03 04:54:05] Production.INFO: Account Balance End. [2025-03-03 04:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:54:05] Production.INFO: ==11539== Releasing lock... [2025-03-03 04:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:54:12] Production.ERROR: CronJobId end10 [2025-03-03 04:54:12] Production.INFO: ==11537== Releasing lock... [2025-03-03 04:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:54:15] Production.INFO: call_cost start [2025-03-03 04:54:15] Production.INFO: call_cost end [2025-03-03 04:54:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:54:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:54:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:54:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:54:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:54:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:54:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:54:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:54:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:54:15] Production.INFO: ==11533== Releasing lock... [2025-03-03 04:54:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:54:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:54:16] Production.INFO: count ==409 [2025-03-03 04:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596150', 'tblTempUsageDetail_20' ) start [2025-03-03 04:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596150', 'tblTempUsageDetail_20' ) end [2025-03-03 04:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596150', 'tblTempVendorCDR_20' ) start [2025-03-03 04:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596150', 'tblTempVendorCDR_20' ) end [2025-03-03 04:54:16] Production.INFO: ProcessCDR(1,14596150,1,1,2) [2025-03-03 04:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596150', 'tblTempUsageDetail_20' ) start [2025-03-03 04:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596150', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:54:24] Production.INFO: ==11541== Releasing lock... [2025-03-03 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:55:01] Production.INFO: ==11603== Lock acquired, processing the job... [2025-03-03 09:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:55:01] Production.INFO: neon service started [2025-03-03 09:55:01] Production.INFO: neon service started [2025-03-03 09:55:01] Production.INFO: ==11603== Releasing lock... [2025-03-03 09:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:55:01] Production.INFO: ==11605== Lock acquired, processing the job... [2025-03-03 04:55:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:55:02] Production.INFO: ==11605== Releasing lock... [2025-03-03 04:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:55:02] Production.INFO: ==11607== Lock acquired, processing the job... [2025-03-03 09:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:55:02] Production.INFO: ==11607== Releasing lock... [2025-03-03 09:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:55:03] Production.INFO: ==11610== Lock acquired, processing the job... [2025-03-03 04:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:55:03] Production.INFO: ==11618== Lock acquired, processing the job... [2025-03-03 04:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:55:03] Production.INFO: ==11614== Lock acquired, processing the job... [2025-03-03 04:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:55:03] Production.INFO: ==11612== Lock acquired, processing the job... [2025-03-03 04:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:55:03] Production.INFO: ==11616== Lock acquired, processing the job... [2025-03-03 04:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:55:03] Production.INFO: ==11620== Lock acquired, processing the job... [2025-03-03 04:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:55:03] Production.ERROR: done [2025-03-03 04:55:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:55:03] Production.INFO: Account Balance Start. [2025-03-03 04:55:03] Production.INFO: CreateAllLog Start [2025-03-03 04:55:03] Production.INFO: 117 [2025-03-03 04:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:03] Production.INFO: count ==13 [2025-03-03 04:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:55:03] Production.INFO: count ==21 [2025-03-03 04:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596153') start [2025-03-03 04:55:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596153') end [2025-03-03 04:55:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:55:03] Production.INFO: 1 [2025-03-03 04:55:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:55:03] Production.ERROR: done [2025-03-03 04:55:03] Production.INFO: ==11612== Releasing lock... [2025-03-03 04:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:55:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:55:03] Production.INFO: Date 2025-02-12 [2025-03-03 04:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: ==11620== Releasing lock... [2025-03-03 04:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:55:04] Production.INFO: Total Charge 0 [2025-03-03 04:55:04] Production.INFO: CreateAllLog End [2025-03-03 04:55:04] Production.INFO: Account Balance End. [2025-03-03 04:55:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:55:04] Production.INFO: ==11616== Releasing lock... [2025-03-03 04:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:55:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:55:12] Production.ERROR: CronJobId end10 [2025-03-03 04:55:12] Production.INFO: ==11614== Releasing lock... [2025-03-03 04:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:55:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:55:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:55:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:55:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:55:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:55:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:55:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:55:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:55:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:55:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:55:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:55:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:55:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:55:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:55:14] Production.INFO: call_cost start [2025-03-03 04:55:14] Production.INFO: call_cost end [2025-03-03 04:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:55:14] Production.INFO: ==11610== Releasing lock... [2025-03-03 04:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:55:16] Production.INFO: count ==409 [2025-03-03 04:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596155', 'tblTempUsageDetail_20' ) start [2025-03-03 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596155', 'tblTempUsageDetail_20' ) end [2025-03-03 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596155', 'tblTempVendorCDR_20' ) start [2025-03-03 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596155', 'tblTempVendorCDR_20' ) end [2025-03-03 04:55:16] Production.INFO: ProcessCDR(1,14596155,1,1,2) [2025-03-03 04:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596155', 'tblTempUsageDetail_20' ) start [2025-03-03 04:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596155', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:55:24] Production.INFO: ==11618== Releasing lock... [2025-03-03 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:55:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:56:02] Production.INFO: ==11675== Lock acquired, processing the job... [2025-03-03 09:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:56:02] Production.INFO: neon service started [2025-03-03 09:56:02] Production.INFO: neon service started [2025-03-03 09:56:02] Production.INFO: ==11675== Releasing lock... [2025-03-03 09:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 04:56:02] Production.INFO: ==11677== Lock acquired, processing the job... [2025-03-03 04:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:56:02] Production.INFO: ==11679== Lock acquired, processing the job... [2025-03-03 09:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:56:02] Production.INFO: ==11679== Releasing lock... [2025-03-03 09:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:56:03] Production.INFO: ==11677== Releasing lock... [2025-03-03 04:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:56:04] Production.INFO: ==11682== Lock acquired, processing the job... [2025-03-03 04:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:56:04] Production.INFO: ==11684== Lock acquired, processing the job... [2025-03-03 04:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:56:04] Production.INFO: ==11688== Lock acquired, processing the job... [2025-03-03 04:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:56:04] Production.INFO: Account Balance Start. [2025-03-03 04:56:04] Production.INFO: CreateAllLog Start [2025-03-03 04:56:04] Production.INFO: 117 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: ==11686== Lock acquired, processing the job... [2025-03-03 04:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: ==11690== Lock acquired, processing the job... [2025-03-03 04:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:56:04] Production.INFO: ==11684== Releasing lock... [2025-03-03 04:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: ==11692== Lock acquired, processing the job... [2025-03-03 04:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:04] Production.INFO: count ==13 [2025-03-03 04:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:56:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: count ==21 [2025-03-03 04:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.ERROR: done [2025-03-03 04:56:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596159') start [2025-03-03 04:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596159') end [2025-03-03 04:56:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:56:05] Production.INFO: 1 [2025-03-03 04:56:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:56:05] Production.ERROR: done [2025-03-03 04:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: ==11692== Releasing lock... [2025-03-03 04:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:56:05] Production.INFO: Total Charge 0 [2025-03-03 04:56:05] Production.INFO: CreateAllLog End [2025-03-03 04:56:05] Production.INFO: Account Balance End. [2025-03-03 04:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:56:05] Production.INFO: ==11688== Releasing lock... [2025-03-03 04:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:56:13] Production.ERROR: CronJobId end10 [2025-03-03 04:56:13] Production.INFO: ==11686== Releasing lock... [2025-03-03 04:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:56:15] Production.INFO: call_cost start [2025-03-03 04:56:15] Production.INFO: call_cost end [2025-03-03 04:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:56:15] Production.INFO: ==11682== Releasing lock... [2025-03-03 04:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:56:17] Production.INFO: count ==409 [2025-03-03 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596160', 'tblTempUsageDetail_20' ) start [2025-03-03 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596160', 'tblTempUsageDetail_20' ) end [2025-03-03 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596160', 'tblTempVendorCDR_20' ) start [2025-03-03 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596160', 'tblTempVendorCDR_20' ) end [2025-03-03 04:56:17] Production.INFO: ProcessCDR(1,14596160,1,1,2) [2025-03-03 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596160', 'tblTempUsageDetail_20' ) start [2025-03-03 04:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596160', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:56:25] Production.INFO: ==11690== Releasing lock... [2025-03-03 04:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:57:01] Production.INFO: ==11747== Lock acquired, processing the job... [2025-03-03 09:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:57:01] Production.INFO: neon service started [2025-03-03 09:57:01] Production.INFO: neon service started [2025-03-03 09:57:01] Production.INFO: ==11747== Releasing lock... [2025-03-03 09:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:57:01] Production.INFO: ==11751== Lock acquired, processing the job... [2025-03-03 09:57:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:57:01] Production.INFO: ==11751== Releasing lock... [2025-03-03 09:57:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:57:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:57:02] Production.INFO: ==11749== Lock acquired, processing the job... [2025-03-03 04:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:57:02] Production.INFO: ==11749== Releasing lock... [2025-03-03 04:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:57:03] Production.INFO: ==11757== Lock acquired, processing the job... [2025-03-03 04:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:57:03] Production.INFO: ==11764== Lock acquired, processing the job... [2025-03-03 04:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:57:03] Production.INFO: ==11753== Lock acquired, processing the job... [2025-03-03 04:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:57:03] Production.INFO: ==11755== Lock acquired, processing the job... [2025-03-03 04:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:57:03] Production.INFO: count ==13 [2025-03-03 04:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:57:03] Production.INFO: count ==21 [2025-03-03 04:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596161') start [2025-03-03 04:57:03] Production.INFO: ==11760== Lock acquired, processing the job... [2025-03-03 04:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:57:03] Production.INFO: ==11762== Lock acquired, processing the job... [2025-03-03 04:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596161') end [2025-03-03 04:57:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:57:03] Production.INFO: 1 [2025-03-03 04:57:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:57:03] Production.INFO: ==11764== Releasing lock... [2025-03-03 04:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:57:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:57:03] Production.INFO: Account Balance Start. [2025-03-03 04:57:03] Production.INFO: CreateAllLog Start [2025-03-03 04:57:03] Production.INFO: 117 [2025-03-03 04:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:03] Production.INFO: ==11755== Releasing lock... [2025-03-03 04:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.ERROR: done [2025-03-03 04:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.ERROR: done [2025-03-03 04:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:57:04] Production.INFO: Total Charge 0 [2025-03-03 04:57:04] Production.INFO: CreateAllLog End [2025-03-03 04:57:04] Production.INFO: Account Balance End. [2025-03-03 04:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:57:05] Production.INFO: ==11760== Releasing lock... [2025-03-03 04:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:57:11] Production.ERROR: CronJobId end10 [2025-03-03 04:57:11] Production.INFO: ==11757== Releasing lock... [2025-03-03 04:57:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:57:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:57:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:57:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:57:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:57:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:57:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:57:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:57:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:57:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:57:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:57:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:57:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:57:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:57:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:57:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:57:13] Production.INFO: call_cost start [2025-03-03 04:57:13] Production.INFO: call_cost end [2025-03-03 04:57:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:57:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:57:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:57:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:57:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:57:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:57:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:57:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:57:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:57:13] Production.INFO: ==11753== Releasing lock... [2025-03-03 04:57:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:57:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:57:16] Production.INFO: count ==409 [2025-03-03 04:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596165', 'tblTempUsageDetail_20' ) start [2025-03-03 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596165', 'tblTempUsageDetail_20' ) end [2025-03-03 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596165', 'tblTempVendorCDR_20' ) start [2025-03-03 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596165', 'tblTempVendorCDR_20' ) end [2025-03-03 04:57:16] Production.INFO: ProcessCDR(1,14596165,1,1,2) [2025-03-03 04:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596165', 'tblTempUsageDetail_20' ) start [2025-03-03 04:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596165', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:57:24] Production.INFO: ==11762== Releasing lock... [2025-03-03 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:57:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:58:01] Production.INFO: ==11817== Lock acquired, processing the job... [2025-03-03 09:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:58:02] Production.INFO: neon service started [2025-03-03 09:58:02] Production.INFO: neon service started [2025-03-03 09:58:02] Production.INFO: ==11817== Releasing lock... [2025-03-03 09:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 04:58:02] Production.INFO: ==11819== Lock acquired, processing the job... [2025-03-03 04:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:58:02] Production.INFO: ==11819== Releasing lock... [2025-03-03 04:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:58:02] Production.INFO: ==11821== Lock acquired, processing the job... [2025-03-03 09:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:58:02] Production.INFO: ==11821== Releasing lock... [2025-03-03 09:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:58:03] Production.INFO: ==11824== Lock acquired, processing the job... [2025-03-03 04:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:58:03] Production.INFO: ==11828== Lock acquired, processing the job... [2025-03-03 04:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:58:03] Production.INFO: ==11830== Lock acquired, processing the job... [2025-03-03 04:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:58:03] Production.INFO: ==11826== Lock acquired, processing the job... [2025-03-03 04:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:58:03] Production.INFO: Account Balance Start. [2025-03-03 04:58:03] Production.INFO: CreateAllLog Start [2025-03-03 04:58:03] Production.INFO: 117 [2025-03-03 04:58:04] Production.INFO: ==11832== Lock acquired, processing the job... [2025-03-03 04:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: ==11834== Lock acquired, processing the job... [2025-03-03 04:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: ==11826== Releasing lock... [2025-03-03 04:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:58:04] Production.INFO: count ==13 [2025-03-03 04:58:04] Production.ERROR: done [2025-03-03 04:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:58:04] Production.INFO: count ==21 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596169') start [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.ERROR: done [2025-03-03 04:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596169') end [2025-03-03 04:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:58:04] Production.INFO: 1 [2025-03-03 04:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:58:04] Production.INFO: ==11834== Releasing lock... [2025-03-03 04:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 04:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 04:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 04:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 04:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 04:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 04:58:05] Production.INFO: Total Charge 0 [2025-03-03 04:58:05] Production.INFO: CreateAllLog End [2025-03-03 04:58:05] Production.INFO: Account Balance End. [2025-03-03 04:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 04:58:05] Production.INFO: ==11830== Releasing lock... [2025-03-03 04:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:58:12] Production.ERROR: CronJobId end10 [2025-03-03 04:58:12] Production.INFO: ==11828== Releasing lock... [2025-03-03 04:58:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:58:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:58:15] Production.INFO: call_cost start [2025-03-03 04:58:15] Production.INFO: call_cost end [2025-03-03 04:58:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:58:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:58:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:58:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:58:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:58:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:58:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:58:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:58:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:58:15] Production.INFO: ==11824== Releasing lock... [2025-03-03 04:58:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:58:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:58:16] Production.INFO: count ==409 [2025-03-03 04:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596170', 'tblTempUsageDetail_20' ) start [2025-03-03 04:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596170', 'tblTempUsageDetail_20' ) end [2025-03-03 04:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596170', 'tblTempVendorCDR_20' ) start [2025-03-03 04:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596170', 'tblTempVendorCDR_20' ) end [2025-03-03 04:58:16] Production.INFO: ProcessCDR(1,14596170,1,1,2) [2025-03-03 04:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596170', 'tblTempUsageDetail_20' ) start [2025-03-03 04:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596170', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:58:25] Production.INFO: ==11832== Releasing lock... [2025-03-03 04:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:58:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 09:59:01] Production.INFO: ==11891== Lock acquired, processing the job... [2025-03-03 09:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 09:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 09:59:01] Production.INFO: neon service started [2025-03-03 09:59:01] Production.INFO: neon service started [2025-03-03 09:59:01] Production.INFO: ==11891== Releasing lock... [2025-03-03 09:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 09:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:59:01] Production.INFO: ==11895== Lock acquired, processing the job... [2025-03-03 09:59:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:59:01] Production.INFO: ==11895== Releasing lock... [2025-03-03 09:59:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 09:59:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 04:59:02] Production.INFO: ==11893== Lock acquired, processing the job... [2025-03-03 04:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 04:59:02] Production.INFO: ==11893== Releasing lock... [2025-03-03 04:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 04:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 04:59:03] Production.INFO: ==11898== Lock acquired, processing the job... [2025-03-03 04:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 04:59:03] Production.INFO: ==11900== Lock acquired, processing the job... [2025-03-03 04:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 04:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 04:59:03] Production.INFO: ==11906== Lock acquired, processing the job... [2025-03-03 04:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 04:59:03] Production.INFO: ==11902== Lock acquired, processing the job... [2025-03-03 04:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 04:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 04:59:03] Production.INFO: ==11904== Lock acquired, processing the job... [2025-03-03 04:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 04:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 04:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 04:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 04:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 04:59:03] Production.INFO: ==11908== Lock acquired, processing the job... [2025-03-03 04:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 04:59:03] Production.INFO: ==11900== Releasing lock... [2025-03-03 04:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 04:59:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 04:59:03] Production.INFO: Account Balance Start. [2025-03-03 04:59:03] Production.INFO: CreateAllLog Start [2025-03-03 04:59:03] Production.INFO: 117 [2025-03-03 04:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 04:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:59:03] Production.INFO: count ==13 [2025-03-03 04:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 04:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 04:59:03] Production.INFO: count ==21 [2025-03-03 04:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596174') start [2025-03-03 04:59:03] Production.ERROR: done [2025-03-03 04:59:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 04:59:03] Production.INFO: Date 2025-02-10 [2025-03-03 04:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:03] Production.INFO: Date 2025-02-11 [2025-03-03 04:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.ERROR: done [2025-03-03 04:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596174') end [2025-03-03 04:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 04:59:04] Production.INFO: 1 [2025-03-03 04:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 04:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 04:59:04] Production.INFO: ==11908== Releasing lock... [2025-03-03 04:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 04:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 04:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-03-02 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Date 2025-03-03 [2025-03-03 04:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 04:59:04] Production.INFO: Total Charge 0 [2025-03-03 04:59:04] Production.INFO: CreateAllLog End [2025-03-03 04:59:04] Production.INFO: Account Balance End. [2025-03-03 04:59:04] Production.ERROR: CronJobId end 12 [2025-03-03 04:59:04] Production.INFO: ==11904== Releasing lock... [2025-03-03 04:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 04:59:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 04:59:11] Production.ERROR: CronJobId end10 [2025-03-03 04:59:11] Production.INFO: ==11902== Releasing lock... [2025-03-03 04:59:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 04:59:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 04:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 04:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 04:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 04:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 04:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 04:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 04:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 04:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 04:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 04:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 04:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 04:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 04:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 04:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 04:59:15] Production.INFO: call_cost start [2025-03-03 04:59:15] Production.INFO: call_cost end [2025-03-03 04:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 04:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 04:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 04:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 04:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 04:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 04:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 04:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 04:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 04:59:15] Production.INFO: ==11898== Releasing lock... [2025-03-03 04:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 04:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 04:59:17] Production.INFO: count ==409 [2025-03-03 04:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596175', 'tblTempUsageDetail_20' ) start [2025-03-03 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596175', 'tblTempUsageDetail_20' ) end [2025-03-03 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596175', 'tblTempVendorCDR_20' ) start [2025-03-03 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596175', 'tblTempVendorCDR_20' ) end [2025-03-03 04:59:17] Production.INFO: ProcessCDR(1,14596175,1,1,2) [2025-03-03 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596175', 'tblTempUsageDetail_20' ) start [2025-03-03 04:59:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596175', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 04:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 04:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 04:59:24] Production.INFO: ==11906== Releasing lock... [2025-03-03 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 04:59:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:00:01] Production.INFO: ==12008== Lock acquired, processing the job... [2025-03-03 10:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:00:01] Production.INFO: neon service started [2025-03-03 10:00:01] Production.INFO: neon service started [2025-03-03 10:00:01] Production.INFO: ==12008== Releasing lock... [2025-03-03 10:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:00:02] Production.INFO: ==12012== Lock acquired, processing the job... [2025-03-03 10:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:00:02] Production.INFO: ==12012== Releasing lock... [2025-03-03 10:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:00:02] Production.INFO: ==12010== Lock acquired, processing the job... [2025-03-03 05:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:00:02] Production.INFO: ==12010== Releasing lock... [2025-03-03 05:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:00:03] Production.INFO: ==12015== Lock acquired, processing the job... [2025-03-03 05:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 05:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 05:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 05:00:03] Production.INFO: ==12015== Releasing lock... [2025-03-03 05:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 05:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:00:03] Production.INFO: ==12017== Lock acquired, processing the job... [2025-03-03 05:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:00:04] Production.INFO: ==12023== Lock acquired, processing the job... [2025-03-03 05:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:00:04] Production.INFO: ==12027== Lock acquired, processing the job... [2025-03-03 05:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 05:00:04] Production.INFO: ==12019== Lock acquired, processing the job... [2025-03-03 05:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:00:04] Production.INFO: Account Balance Start. [2025-03-03 05:00:04] Production.INFO: CreateAllLog Start [2025-03-03 05:00:04] Production.INFO: 117 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:00:04] Production.INFO: ==12021== Lock acquired, processing the job... [2025-03-03 05:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: ==12025== Lock acquired, processing the job... [2025-03-03 05:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: ==12029== Lock acquired, processing the job... [2025-03-03 05:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.ERROR: done [2025-03-03 05:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:00:04] Production.INFO: ==12019== Releasing lock... [2025-03-03 05:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:00:04] Production.INFO: count ==13 [2025-03-03 05:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.INFO: count ==21 [2025-03-03 05:00:04] Production.ERROR: done [2025-03-03 05:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596179') start [2025-03-03 05:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 05:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596180', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 05:00:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596179') end [2025-03-03 05:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:00:04] Production.INFO: 1 [2025-03-03 05:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:00:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.ERROR: done [2025-03-03 05:00:04] Production.INFO: ==12029== Releasing lock... [2025-03-03 05:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:00:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:00:05] Production.INFO: Total Charge 0 [2025-03-03 05:00:05] Production.INFO: CreateAllLog End [2025-03-03 05:00:05] Production.INFO: Account Balance End. [2025-03-03 05:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:00:05] Production.INFO: ==12023== Releasing lock... [2025-03-03 05:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596180', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 05:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 05:00:09] Production.INFO: ProcessCDR(1,14596180,1,1,2) [2025-03-03 05:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596180,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596180,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 05:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 05:00:09] Production.INFO: ==12027== Releasing lock... [2025-03-03 05:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 05:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 05:00:14] Production.ERROR: CronJobId end10 [2025-03-03 05:00:14] Production.INFO: ==12021== Releasing lock... [2025-03-03 05:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:00:16] Production.INFO: call_cost start [2025-03-03 05:00:16] Production.INFO: call_cost end [2025-03-03 05:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:00:16] Production.INFO: ==12017== Releasing lock... [2025-03-03 05:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:00:17] Production.INFO: count ==409 [2025-03-03 05:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596181', 'tblTempUsageDetail_20' ) start [2025-03-03 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596181', 'tblTempUsageDetail_20' ) end [2025-03-03 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596181', 'tblTempVendorCDR_20' ) start [2025-03-03 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596181', 'tblTempVendorCDR_20' ) end [2025-03-03 05:00:17] Production.INFO: ProcessCDR(1,14596181,1,1,2) [2025-03-03 05:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596181', 'tblTempUsageDetail_20' ) start [2025-03-03 05:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596181', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:00:25] Production.INFO: ==12025== Releasing lock... [2025-03-03 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:00:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:01:02] Production.INFO: ==12088== Lock acquired, processing the job... [2025-03-03 10:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:01:02] Production.INFO: neon service started [2025-03-03 10:01:02] Production.INFO: neon service started [2025-03-03 10:01:02] Production.INFO: ==12088== Releasing lock... [2025-03-03 10:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:01:02] Production.INFO: ==12099== Lock acquired, processing the job... [2025-03-03 05:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:01:03] Production.INFO: ==12099== Releasing lock... [2025-03-03 05:01:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:01:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:01:03] Production.INFO: ==12101== Lock acquired, processing the job... [2025-03-03 10:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:01:03] Production.INFO: ==12101== Releasing lock... [2025-03-03 10:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:01:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:01:03] Production.INFO: ==12104== Lock acquired, processing the job... [2025-03-03 05:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:01:04] Production.INFO: ==12110== Lock acquired, processing the job... [2025-03-03 05:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:01:04] Production.INFO: ==12106== Lock acquired, processing the job... [2025-03-03 05:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:01:04] Production.INFO: ==12108== Lock acquired, processing the job... [2025-03-03 05:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:01:04] Production.INFO: Account Balance Start. [2025-03-03 05:01:04] Production.INFO: CreateAllLog Start [2025-03-03 05:01:04] Production.INFO: 117 [2025-03-03 05:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:01:04] Production.INFO: ==12112== Lock acquired, processing the job... [2025-03-03 05:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:01:04] Production.INFO: ==12114== Lock acquired, processing the job... [2025-03-03 05:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.INFO: ==12106== Releasing lock... [2025-03-03 05:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:01:04] Production.ERROR: done [2025-03-03 05:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.INFO: count ==13 [2025-03-03 05:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:01:04] Production.INFO: count ==21 [2025-03-03 05:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596185') start [2025-03-03 05:01:04] Production.ERROR: done [2025-03-03 05:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596185') end [2025-03-03 05:01:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:01:05] Production.INFO: 1 [2025-03-03 05:01:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:01:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: ==12114== Releasing lock... [2025-03-03 05:01:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:01:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:01:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:01:05] Production.INFO: Total Charge 0 [2025-03-03 05:01:05] Production.INFO: CreateAllLog End [2025-03-03 05:01:05] Production.INFO: Account Balance End. [2025-03-03 05:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:01:05] Production.INFO: ==12110== Releasing lock... [2025-03-03 05:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:01:12] Production.ERROR: CronJobId end10 [2025-03-03 05:01:12] Production.INFO: ==12108== Releasing lock... [2025-03-03 05:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:01:15] Production.INFO: call_cost start [2025-03-03 05:01:15] Production.INFO: call_cost end [2025-03-03 05:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:01:15] Production.INFO: ==12104== Releasing lock... [2025-03-03 05:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:01:17] Production.INFO: count ==409 [2025-03-03 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596186', 'tblTempUsageDetail_20' ) start [2025-03-03 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596186', 'tblTempUsageDetail_20' ) end [2025-03-03 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596186', 'tblTempVendorCDR_20' ) start [2025-03-03 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596186', 'tblTempVendorCDR_20' ) end [2025-03-03 05:01:17] Production.INFO: ProcessCDR(1,14596186,1,1,2) [2025-03-03 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596186', 'tblTempUsageDetail_20' ) start [2025-03-03 05:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596186', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:01:25] Production.INFO: ==12112== Releasing lock... [2025-03-03 05:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:01:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:02:01] Production.INFO: ==12170== Lock acquired, processing the job... [2025-03-03 10:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:02:01] Production.INFO: neon service started [2025-03-03 10:02:01] Production.INFO: neon service started [2025-03-03 10:02:01] Production.INFO: ==12170== Releasing lock... [2025-03-03 10:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:02:02] Production.INFO: ==12174== Lock acquired, processing the job... [2025-03-03 10:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:02:02] Production.INFO: ==12174== Releasing lock... [2025-03-03 10:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:02:02] Production.INFO: ==12172== Lock acquired, processing the job... [2025-03-03 05:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:02:02] Production.INFO: ==12172== Releasing lock... [2025-03-03 05:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:02:03] Production.INFO: ==12181== Lock acquired, processing the job... [2025-03-03 05:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:02:03] Production.INFO: ==12187== Lock acquired, processing the job... [2025-03-03 05:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:02:04] Production.INFO: ==12177== Lock acquired, processing the job... [2025-03-03 05:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:02:04] Production.INFO: ==12179== Lock acquired, processing the job... [2025-03-03 05:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:02:04] Production.INFO: ==12183== Lock acquired, processing the job... [2025-03-03 05:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:02:04] Production.INFO: count ==13 [2025-03-03 05:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:02:04] Production.INFO: ==12185== Lock acquired, processing the job... [2025-03-03 05:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:02:04] Production.INFO: count ==21 [2025-03-03 05:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596187') start [2025-03-03 05:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:02:04] Production.INFO: Account Balance Start. [2025-03-03 05:02:04] Production.INFO: CreateAllLog Start [2025-03-03 05:02:04] Production.INFO: 117 [2025-03-03 05:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596187') end [2025-03-03 05:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:02:04] Production.INFO: 1 [2025-03-03 05:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:02:04] Production.INFO: ==12187== Releasing lock... [2025-03-03 05:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:02:04] Production.INFO: ==12179== Releasing lock... [2025-03-03 05:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.ERROR: done [2025-03-03 05:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.ERROR: done [2025-03-03 05:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:02:05] Production.INFO: Total Charge 0 [2025-03-03 05:02:05] Production.INFO: CreateAllLog End [2025-03-03 05:02:05] Production.INFO: Account Balance End. [2025-03-03 05:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:02:05] Production.INFO: ==12183== Releasing lock... [2025-03-03 05:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:02:13] Production.ERROR: CronJobId end10 [2025-03-03 05:02:13] Production.INFO: ==12181== Releasing lock... [2025-03-03 05:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:02:16] Production.INFO: call_cost start [2025-03-03 05:02:16] Production.INFO: call_cost end [2025-03-03 05:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:02:16] Production.INFO: ==12177== Releasing lock... [2025-03-03 05:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:02:16] Production.INFO: count ==409 [2025-03-03 05:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596191', 'tblTempUsageDetail_20' ) start [2025-03-03 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596191', 'tblTempUsageDetail_20' ) end [2025-03-03 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596191', 'tblTempVendorCDR_20' ) start [2025-03-03 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596191', 'tblTempVendorCDR_20' ) end [2025-03-03 05:02:17] Production.INFO: ProcessCDR(1,14596191,1,1,2) [2025-03-03 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596191', 'tblTempUsageDetail_20' ) start [2025-03-03 05:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596191', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:02:24] Production.INFO: ==12185== Releasing lock... [2025-03-03 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:03:02] Production.INFO: ==12243== Lock acquired, processing the job... [2025-03-03 10:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:03:02] Production.INFO: neon service started [2025-03-03 10:03:02] Production.INFO: neon service started [2025-03-03 10:03:02] Production.INFO: ==12243== Releasing lock... [2025-03-03 10:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:03:02] Production.INFO: ==12245== Lock acquired, processing the job... [2025-03-03 05:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:03:03] Production.INFO: ==12245== Releasing lock... [2025-03-03 05:03:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:03:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:03:03] Production.INFO: ==12247== Lock acquired, processing the job... [2025-03-03 10:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:03:03] Production.INFO: ==12247== Releasing lock... [2025-03-03 10:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:03:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:03:04] Production.INFO: ==12249== Lock acquired, processing the job... [2025-03-03 05:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:03:04] Production.INFO: ==12251== Lock acquired, processing the job... [2025-03-03 05:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:03:04] Production.INFO: ==12253== Lock acquired, processing the job... [2025-03-03 05:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:03:04] Production.INFO: ==12255== Lock acquired, processing the job... [2025-03-03 05:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:03:04] Production.INFO: ==12260== Lock acquired, processing the job... [2025-03-03 05:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:03:04] Production.INFO: Account Balance Start. [2025-03-03 05:03:04] Production.INFO: CreateAllLog Start [2025-03-03 05:03:04] Production.INFO: 117 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:03:04] Production.INFO: ==12258== Lock acquired, processing the job... [2025-03-03 05:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: count ==13 [2025-03-03 05:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: count ==21 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596195') start [2025-03-03 05:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596195') end [2025-03-03 05:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:03:04] Production.INFO: 1 [2025-03-03 05:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:03:04] Production.INFO: ==12251== Releasing lock... [2025-03-03 05:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: ==12260== Releasing lock... [2025-03-03 05:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.ERROR: done [2025-03-03 05:03:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.ERROR: done [2025-03-03 05:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:03:05] Production.INFO: Total Charge 0 [2025-03-03 05:03:05] Production.INFO: CreateAllLog End [2025-03-03 05:03:05] Production.INFO: Account Balance End. [2025-03-03 05:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:03:05] Production.INFO: ==12255== Releasing lock... [2025-03-03 05:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:03:12] Production.ERROR: CronJobId end10 [2025-03-03 05:03:12] Production.INFO: ==12253== Releasing lock... [2025-03-03 05:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:03:14] Production.INFO: call_cost start [2025-03-03 05:03:14] Production.INFO: call_cost end [2025-03-03 05:03:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:03:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:03:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:03:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:03:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:03:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:03:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:03:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:03:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:03:14] Production.INFO: ==12249== Releasing lock... [2025-03-03 05:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:03:17] Production.INFO: count ==409 [2025-03-03 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596196', 'tblTempUsageDetail_20' ) start [2025-03-03 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596196', 'tblTempUsageDetail_20' ) end [2025-03-03 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596196', 'tblTempVendorCDR_20' ) start [2025-03-03 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596196', 'tblTempVendorCDR_20' ) end [2025-03-03 05:03:17] Production.INFO: ProcessCDR(1,14596196,1,1,2) [2025-03-03 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596196', 'tblTempUsageDetail_20' ) start [2025-03-03 05:03:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596196', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:03:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:03:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:03:25] Production.INFO: ==12258== Releasing lock... [2025-03-03 05:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:03:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:04:01] Production.INFO: ==12314== Lock acquired, processing the job... [2025-03-03 10:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:04:01] Production.INFO: neon service started [2025-03-03 10:04:01] Production.INFO: neon service started [2025-03-03 10:04:01] Production.INFO: ==12314== Releasing lock... [2025-03-03 10:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:04:02] Production.INFO: ==12317== Lock acquired, processing the job... [2025-03-03 05:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:04:02] Production.INFO: ==12317== Releasing lock... [2025-03-03 05:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:04:02] Production.INFO: ==12319== Lock acquired, processing the job... [2025-03-03 10:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:04:02] Production.INFO: ==12319== Releasing lock... [2025-03-03 10:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:04:03] Production.INFO: ==12329== Lock acquired, processing the job... [2025-03-03 05:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:04:03] Production.INFO: ==12327== Lock acquired, processing the job... [2025-03-03 05:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:04:03] Production.INFO: ==12323== Lock acquired, processing the job... [2025-03-03 05:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:04:03] Production.INFO: ==12321== Lock acquired, processing the job... [2025-03-03 05:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:04:03] Production.INFO: ==12325== Lock acquired, processing the job... [2025-03-03 05:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:04:03] Production.INFO: Account Balance Start. [2025-03-03 05:04:03] Production.INFO: CreateAllLog Start [2025-03-03 05:04:03] Production.INFO: 117 [2025-03-03 05:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:03] Production.INFO: ==12331== Lock acquired, processing the job... [2025-03-03 05:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: ==12323== Releasing lock... [2025-03-03 05:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:04:04] Production.ERROR: done [2025-03-03 05:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: count ==13 [2025-03-03 05:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:04:04] Production.INFO: count ==21 [2025-03-03 05:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596200') start [2025-03-03 05:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.ERROR: done [2025-03-03 05:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596200') end [2025-03-03 05:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:04:04] Production.INFO: 1 [2025-03-03 05:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:04:04] Production.INFO: ==12331== Releasing lock... [2025-03-03 05:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:04:04] Production.INFO: Total Charge 0 [2025-03-03 05:04:04] Production.INFO: CreateAllLog End [2025-03-03 05:04:05] Production.INFO: Account Balance End. [2025-03-03 05:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:04:05] Production.INFO: ==12327== Releasing lock... [2025-03-03 05:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:04:12] Production.ERROR: CronJobId end10 [2025-03-03 05:04:12] Production.INFO: ==12325== Releasing lock... [2025-03-03 05:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:04:15] Production.INFO: call_cost start [2025-03-03 05:04:15] Production.INFO: call_cost end [2025-03-03 05:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:04:15] Production.INFO: ==12321== Releasing lock... [2025-03-03 05:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:04:16] Production.INFO: count ==409 [2025-03-03 05:04:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596201', 'tblTempUsageDetail_20' ) start [2025-03-03 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596201', 'tblTempUsageDetail_20' ) end [2025-03-03 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596201', 'tblTempVendorCDR_20' ) start [2025-03-03 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596201', 'tblTempVendorCDR_20' ) end [2025-03-03 05:04:16] Production.INFO: ProcessCDR(1,14596201,1,1,2) [2025-03-03 05:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596201', 'tblTempUsageDetail_20' ) start [2025-03-03 05:04:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596201', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:04:24] Production.INFO: ==12329== Releasing lock... [2025-03-03 05:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:04:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:05:02] Production.INFO: ==12386== Lock acquired, processing the job... [2025-03-03 10:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:05:02] Production.INFO: neon service started [2025-03-03 10:05:02] Production.INFO: neon service started [2025-03-03 10:05:02] Production.INFO: ==12386== Releasing lock... [2025-03-03 10:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:05:02] Production.INFO: ==12388== Lock acquired, processing the job... [2025-03-03 05:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:05:03] Production.INFO: ==12388== Releasing lock... [2025-03-03 05:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:05:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:05:03] Production.INFO: ==12390== Lock acquired, processing the job... [2025-03-03 10:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:05:03] Production.INFO: ==12390== Releasing lock... [2025-03-03 10:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:05:04] Production.INFO: ==12399== Lock acquired, processing the job... [2025-03-03 05:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:05:04] Production.INFO: ==12395== Lock acquired, processing the job... [2025-03-03 05:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:05:04] Production.INFO: ==12393== Lock acquired, processing the job... [2025-03-03 05:05:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:05:04] Production.INFO: ==12403== Lock acquired, processing the job... [2025-03-03 05:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:05:04] Production.INFO: ==12397== Lock acquired, processing the job... [2025-03-03 05:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:05:04] Production.INFO: Account Balance Start. [2025-03-03 05:05:04] Production.INFO: CreateAllLog Start [2025-03-03 05:05:04] Production.INFO: 117 [2025-03-03 05:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:05:04] Production.INFO: ==12401== Lock acquired, processing the job... [2025-03-03 05:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: count ==13 [2025-03-03 05:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:05:04] Production.INFO: count ==21 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596204') start [2025-03-03 05:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596204') end [2025-03-03 05:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:05:04] Production.INFO: 1 [2025-03-03 05:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: ==12403== Releasing lock... [2025-03-03 05:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: ==12395== Releasing lock... [2025-03-03 05:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.ERROR: done [2025-03-03 05:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:05] Production.ERROR: done [2025-03-03 05:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:05:05] Production.INFO: Total Charge 0 [2025-03-03 05:05:05] Production.INFO: CreateAllLog End [2025-03-03 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:05:05] Production.INFO: Account Balance End. [2025-03-03 05:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:05:05] Production.INFO: ==12399== Releasing lock... [2025-03-03 05:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:05:13] Production.ERROR: CronJobId end10 [2025-03-03 05:05:13] Production.INFO: ==12397== Releasing lock... [2025-03-03 05:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:05:15] Production.INFO: call_cost start [2025-03-03 05:05:15] Production.INFO: call_cost end [2025-03-03 05:05:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:05:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:05:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:05:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:05:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:05:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:05:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:05:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:05:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:05:15] Production.INFO: ==12393== Releasing lock... [2025-03-03 05:05:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:05:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:05:17] Production.INFO: count ==409 [2025-03-03 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596206', 'tblTempUsageDetail_20' ) start [2025-03-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596206', 'tblTempUsageDetail_20' ) end [2025-03-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596206', 'tblTempVendorCDR_20' ) start [2025-03-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596206', 'tblTempVendorCDR_20' ) end [2025-03-03 05:05:17] Production.INFO: ProcessCDR(1,14596206,1,1,2) [2025-03-03 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596206', 'tblTempUsageDetail_20' ) start [2025-03-03 05:05:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596206', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:05:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:05:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:05:25] Production.INFO: ==12401== Releasing lock... [2025-03-03 05:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:05:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:06:01] Production.INFO: ==12455== Lock acquired, processing the job... [2025-03-03 10:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:06:01] Production.INFO: neon service started [2025-03-03 10:06:01] Production.INFO: neon service started [2025-03-03 10:06:01] Production.INFO: ==12455== Releasing lock... [2025-03-03 10:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:06:02] Production.INFO: ==12457== Lock acquired, processing the job... [2025-03-03 05:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:06:02] Production.INFO: ==12457== Releasing lock... [2025-03-03 05:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:06:02] Production.INFO: ==12459== Lock acquired, processing the job... [2025-03-03 10:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:06:02] Production.INFO: ==12459== Releasing lock... [2025-03-03 10:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:06:03] Production.INFO: ==12468== Lock acquired, processing the job... [2025-03-03 05:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:06:03] Production.INFO: ==12464== Lock acquired, processing the job... [2025-03-03 05:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:06:03] Production.INFO: ==12470== Lock acquired, processing the job... [2025-03-03 05:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:06:03] Production.INFO: ==12462== Lock acquired, processing the job... [2025-03-03 05:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:06:03] Production.INFO: Account Balance Start. [2025-03-03 05:06:03] Production.INFO: CreateAllLog Start [2025-03-03 05:06:03] Production.INFO: 117 [2025-03-03 05:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:06:03] Production.INFO: ==12466== Lock acquired, processing the job... [2025-03-03 05:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:06:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:03] Production.INFO: ==12472== Lock acquired, processing the job... [2025-03-03 05:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:06:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:06:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:03] Production.INFO: ==12464== Releasing lock... [2025-03-03 05:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:06:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:06:03] Production.ERROR: done [2025-03-03 05:06:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:06:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:06:04] Production.INFO: count ==13 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:06:04] Production.INFO: count ==21 [2025-03-03 05:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596210') start [2025-03-03 05:06:04] Production.ERROR: done [2025-03-03 05:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596210') end [2025-03-03 05:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:06:04] Production.INFO: 1 [2025-03-03 05:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:06:04] Production.INFO: ==12472== Releasing lock... [2025-03-03 05:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:06:04] Production.INFO: Total Charge 0 [2025-03-03 05:06:04] Production.INFO: CreateAllLog End [2025-03-03 05:06:04] Production.INFO: Account Balance End. [2025-03-03 05:06:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:06:04] Production.INFO: ==12468== Releasing lock... [2025-03-03 05:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:06:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:06:11] Production.ERROR: CronJobId end10 [2025-03-03 05:06:11] Production.INFO: ==12466== Releasing lock... [2025-03-03 05:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:06:15] Production.INFO: call_cost start [2025-03-03 05:06:15] Production.INFO: call_cost end [2025-03-03 05:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:06:15] Production.INFO: ==12462== Releasing lock... [2025-03-03 05:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:06:16] Production.INFO: count ==409 [2025-03-03 05:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596211', 'tblTempUsageDetail_20' ) start [2025-03-03 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596211', 'tblTempUsageDetail_20' ) end [2025-03-03 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596211', 'tblTempVendorCDR_20' ) start [2025-03-03 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596211', 'tblTempVendorCDR_20' ) end [2025-03-03 05:06:17] Production.INFO: ProcessCDR(1,14596211,1,1,2) [2025-03-03 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596211', 'tblTempUsageDetail_20' ) start [2025-03-03 05:06:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596211', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:06:24] Production.INFO: ==12470== Releasing lock... [2025-03-03 05:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:07:02] Production.INFO: ==12528== Lock acquired, processing the job... [2025-03-03 10:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:07:02] Production.INFO: neon service started [2025-03-03 10:07:02] Production.INFO: neon service started [2025-03-03 10:07:02] Production.INFO: ==12528== Releasing lock... [2025-03-03 10:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:07:02] Production.INFO: ==12530== Lock acquired, processing the job... [2025-03-03 05:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:07:02] Production.INFO: ==12532== Lock acquired, processing the job... [2025-03-03 10:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:07:02] Production.INFO: ==12532== Releasing lock... [2025-03-03 10:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:07:03] Production.INFO: ==12530== Releasing lock... [2025-03-03 05:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:07:04] Production.INFO: ==12539== Lock acquired, processing the job... [2025-03-03 05:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:07:04] Production.INFO: ==12545== Lock acquired, processing the job... [2025-03-03 05:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:07:04] Production.INFO: ==12535== Lock acquired, processing the job... [2025-03-03 05:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:07:04] Production.INFO: count ==13 [2025-03-03 05:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:07:04] Production.INFO: count ==21 [2025-03-03 05:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596212') start [2025-03-03 05:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:07:04] Production.INFO: ==12537== Lock acquired, processing the job... [2025-03-03 05:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:07:04] Production.INFO: ==12541== Lock acquired, processing the job... [2025-03-03 05:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:07:04] Production.INFO: ==12543== Lock acquired, processing the job... [2025-03-03 05:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596212') end [2025-03-03 05:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:07:04] Production.INFO: 1 [2025-03-03 05:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:07:04] Production.INFO: ==12545== Releasing lock... [2025-03-03 05:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:07:04] Production.INFO: Account Balance Start. [2025-03-03 05:07:04] Production.INFO: CreateAllLog Start [2025-03-03 05:07:04] Production.INFO: 117 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.ERROR: done [2025-03-03 05:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:07:04] Production.INFO: ==12537== Releasing lock... [2025-03-03 05:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.ERROR: done [2025-03-03 05:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:07:05] Production.INFO: Total Charge 0 [2025-03-03 05:07:05] Production.INFO: CreateAllLog End [2025-03-03 05:07:05] Production.INFO: Account Balance End. [2025-03-03 05:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:07:05] Production.INFO: ==12541== Releasing lock... [2025-03-03 05:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:07:12] Production.ERROR: CronJobId end10 [2025-03-03 05:07:12] Production.INFO: ==12539== Releasing lock... [2025-03-03 05:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:07:15] Production.INFO: call_cost start [2025-03-03 05:07:15] Production.INFO: call_cost end [2025-03-03 05:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:07:15] Production.INFO: ==12535== Releasing lock... [2025-03-03 05:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:07:17] Production.INFO: count ==409 [2025-03-03 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596216', 'tblTempUsageDetail_20' ) start [2025-03-03 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596216', 'tblTempUsageDetail_20' ) end [2025-03-03 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596216', 'tblTempVendorCDR_20' ) start [2025-03-03 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596216', 'tblTempVendorCDR_20' ) end [2025-03-03 05:07:17] Production.INFO: ProcessCDR(1,14596216,1,1,2) [2025-03-03 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596216', 'tblTempUsageDetail_20' ) start [2025-03-03 05:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596216', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:07:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:07:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:07:24] Production.INFO: ==12543== Releasing lock... [2025-03-03 05:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:07:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:08:01] Production.INFO: ==12599== Lock acquired, processing the job... [2025-03-03 10:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:08:01] Production.INFO: neon service started [2025-03-03 10:08:01] Production.INFO: neon service started [2025-03-03 10:08:01] Production.INFO: ==12599== Releasing lock... [2025-03-03 10:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:08:02] Production.INFO: ==12601== Lock acquired, processing the job... [2025-03-03 05:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:08:02] Production.INFO: ==12601== Releasing lock... [2025-03-03 05:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:08:02] Production.INFO: ==12603== Lock acquired, processing the job... [2025-03-03 10:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:08:02] Production.INFO: ==12603== Releasing lock... [2025-03-03 10:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:08:03] Production.INFO: ==12607== Lock acquired, processing the job... [2025-03-03 05:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:08:03] Production.INFO: ==12605== Lock acquired, processing the job... [2025-03-03 05:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:08:03] Production.INFO: ==12615== Lock acquired, processing the job... [2025-03-03 05:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:08:03] Production.INFO: ==12607== Releasing lock... [2025-03-03 05:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:08:03] Production.INFO: ==12609== Lock acquired, processing the job... [2025-03-03 05:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:08:03] Production.INFO: count ==13 [2025-03-03 05:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:08:03] Production.INFO: ==12611== Lock acquired, processing the job... [2025-03-03 05:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:08:03] Production.INFO: count ==21 [2025-03-03 05:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596219') start [2025-03-03 05:08:03] Production.INFO: ==12613== Lock acquired, processing the job... [2025-03-03 05:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596219') end [2025-03-03 05:08:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:08:03] Production.INFO: 1 [2025-03-03 05:08:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:08:03] Production.INFO: Account Balance Start. [2025-03-03 05:08:03] Production.INFO: CreateAllLog Start [2025-03-03 05:08:03] Production.INFO: 117 [2025-03-03 05:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:03] Production.INFO: ==12615== Releasing lock... [2025-03-03 05:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:08:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.ERROR: done [2025-03-03 05:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:08:04] Production.ERROR: done [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:08:04] Production.INFO: Total Charge 0 [2025-03-03 05:08:04] Production.INFO: CreateAllLog End [2025-03-03 05:08:04] Production.INFO: Account Balance End. [2025-03-03 05:08:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:08:04] Production.INFO: ==12611== Releasing lock... [2025-03-03 05:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:08:12] Production.ERROR: CronJobId end10 [2025-03-03 05:08:12] Production.INFO: ==12609== Releasing lock... [2025-03-03 05:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:08:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:08:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:08:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:08:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:08:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:08:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:08:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:08:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:08:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:08:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:08:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:08:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:08:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:08:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:08:14] Production.INFO: call_cost start [2025-03-03 05:08:14] Production.INFO: call_cost end [2025-03-03 05:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:08:14] Production.INFO: ==12605== Releasing lock... [2025-03-03 05:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:08:16] Production.INFO: count ==409 [2025-03-03 05:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596221', 'tblTempUsageDetail_20' ) start [2025-03-03 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596221', 'tblTempUsageDetail_20' ) end [2025-03-03 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596221', 'tblTempVendorCDR_20' ) start [2025-03-03 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596221', 'tblTempVendorCDR_20' ) end [2025-03-03 05:08:16] Production.INFO: ProcessCDR(1,14596221,1,1,2) [2025-03-03 05:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596221', 'tblTempUsageDetail_20' ) start [2025-03-03 05:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596221', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:08:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:08:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:08:23] Production.INFO: ==12613== Releasing lock... [2025-03-03 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:08:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:09:02] Production.INFO: ==12672== Lock acquired, processing the job... [2025-03-03 10:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:09:02] Production.INFO: neon service started [2025-03-03 10:09:02] Production.INFO: neon service started [2025-03-03 10:09:02] Production.INFO: ==12672== Releasing lock... [2025-03-03 10:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:09:02] Production.INFO: ==12674== Lock acquired, processing the job... [2025-03-03 05:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:09:02] Production.INFO: ==12674== Releasing lock... [2025-03-03 05:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:09:02] Production.INFO: ==12676== Lock acquired, processing the job... [2025-03-03 10:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:09:02] Production.INFO: ==12676== Releasing lock... [2025-03-03 10:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:09:03] Production.INFO: ==12684== Lock acquired, processing the job... [2025-03-03 05:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:09:03] Production.INFO: ==12688== Lock acquired, processing the job... [2025-03-03 05:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:09:03] Production.INFO: Account Balance Start. [2025-03-03 05:09:03] Production.INFO: CreateAllLog Start [2025-03-03 05:09:03] Production.INFO: 117 [2025-03-03 05:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:09:03] Production.INFO: ==12678== Lock acquired, processing the job... [2025-03-03 05:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:09:03] Production.INFO: count ==13 [2025-03-03 05:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:09:04] Production.INFO: count ==21 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: ==12680== Lock acquired, processing the job... [2025-03-03 05:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596223') start [2025-03-03 05:09:04] Production.INFO: ==12682== Lock acquired, processing the job... [2025-03-03 05:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: ==12686== Lock acquired, processing the job... [2025-03-03 05:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596223') end [2025-03-03 05:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:09:04] Production.INFO: 1 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: ==12688== Releasing lock... [2025-03-03 05:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: ==12680== Releasing lock... [2025-03-03 05:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.ERROR: done [2025-03-03 05:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.ERROR: done [2025-03-03 05:09:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:09:05] Production.INFO: Total Charge 0 [2025-03-03 05:09:05] Production.INFO: CreateAllLog End [2025-03-03 05:09:05] Production.INFO: Account Balance End. [2025-03-03 05:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:09:05] Production.INFO: ==12684== Releasing lock... [2025-03-03 05:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:09:12] Production.ERROR: CronJobId end10 [2025-03-03 05:09:12] Production.INFO: ==12682== Releasing lock... [2025-03-03 05:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:09:15] Production.INFO: call_cost start [2025-03-03 05:09:15] Production.INFO: call_cost end [2025-03-03 05:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:09:15] Production.INFO: ==12678== Releasing lock... [2025-03-03 05:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:09:16] Production.INFO: count ==409 [2025-03-03 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596226', 'tblTempUsageDetail_20' ) start [2025-03-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596226', 'tblTempUsageDetail_20' ) end [2025-03-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596226', 'tblTempVendorCDR_20' ) start [2025-03-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596226', 'tblTempVendorCDR_20' ) end [2025-03-03 05:09:17] Production.INFO: ProcessCDR(1,14596226,1,1,2) [2025-03-03 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596226', 'tblTempUsageDetail_20' ) start [2025-03-03 05:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596226', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:09:24] Production.INFO: ==12686== Releasing lock... [2025-03-03 05:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:09:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:10:01] Production.INFO: ==12742== Lock acquired, processing the job... [2025-03-03 10:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:10:01] Production.INFO: neon service started [2025-03-03 10:10:01] Production.INFO: neon service started [2025-03-03 10:10:01] Production.INFO: ==12742== Releasing lock... [2025-03-03 10:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:10:01] Production.INFO: ==12746== Lock acquired, processing the job... [2025-03-03 10:10:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:10:01] Production.INFO: ==12746== Releasing lock... [2025-03-03 10:10:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:10:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:10:02] Production.INFO: ==12744== Lock acquired, processing the job... [2025-03-03 05:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:10:02] Production.INFO: ==12744== Releasing lock... [2025-03-03 05:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:10:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:10:03] Production.INFO: ==12749== Lock acquired, processing the job... [2025-03-03 05:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 05:10:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 05:10:03] Production.INFO: ==12753== Lock acquired, processing the job... [2025-03-03 05:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:10:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 05:10:03] Production.INFO: ==12749== Releasing lock... [2025-03-03 05:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 05:10:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:10:03] Production.INFO: ==12755== Lock acquired, processing the job... [2025-03-03 05:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:10:03] Production.INFO: ==12757== Lock acquired, processing the job... [2025-03-03 05:10:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:10:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:10:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:10:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:10:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:10:03] Production.INFO: Account Balance Start. [2025-03-03 05:10:03] Production.INFO: CreateAllLog Start [2025-03-03 05:10:03] Production.INFO: ==12751== Lock acquired, processing the job... [2025-03-03 05:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:10:03] Production.INFO: 117 [2025-03-03 05:10:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:10:03] Production.INFO: ==12761== Lock acquired, processing the job... [2025-03-03 05:10:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 05:10:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: ==12753== Releasing lock... [2025-03-03 05:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: ==12759== Lock acquired, processing the job... [2025-03-03 05:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: ==12763== Lock acquired, processing the job... [2025-03-03 05:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.ERROR: done [2025-03-03 05:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 05:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596231', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 05:10:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:10:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: count ==13 [2025-03-03 05:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:10:04] Production.INFO: count ==21 [2025-03-03 05:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596230') start [2025-03-03 05:10:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:10:04] Production.ERROR: done [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:10:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596230') end [2025-03-03 05:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:10:04] Production.INFO: 1 [2025-03-03 05:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:10:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.INFO: ==12763== Releasing lock... [2025-03-03 05:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:10:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:04] Production.ERROR: done [2025-03-03 05:10:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:10:05] Production.INFO: Total Charge 0 [2025-03-03 05:10:05] Production.INFO: CreateAllLog End [2025-03-03 05:10:05] Production.INFO: Account Balance End. [2025-03-03 05:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:10:05] Production.INFO: ==12757== Releasing lock... [2025-03-03 05:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596231', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 05:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 05:10:09] Production.INFO: ProcessCDR(1,14596231,1,1,2) [2025-03-03 05:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596231,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596231,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 05:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 05:10:09] Production.INFO: ==12761== Releasing lock... [2025-03-03 05:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 05:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 05:10:14] Production.ERROR: CronJobId end10 [2025-03-03 05:10:14] Production.INFO: ==12755== Releasing lock... [2025-03-03 05:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:10:16] Production.INFO: count ==409 [2025-03-03 05:10:17] Production.INFO: call_cost start [2025-03-03 05:10:17] Production.INFO: call_cost end [2025-03-03 05:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:10:17] Production.INFO: ==12751== Releasing lock... [2025-03-03 05:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596232', 'tblTempUsageDetail_20' ) start [2025-03-03 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596232', 'tblTempUsageDetail_20' ) end [2025-03-03 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596232', 'tblTempVendorCDR_20' ) start [2025-03-03 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596232', 'tblTempVendorCDR_20' ) end [2025-03-03 05:10:17] Production.INFO: ProcessCDR(1,14596232,1,1,2) [2025-03-03 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596232', 'tblTempUsageDetail_20' ) start [2025-03-03 05:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596232', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:10:25] Production.INFO: ==12759== Releasing lock... [2025-03-03 05:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:10:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:11:02] Production.INFO: ==12819== Lock acquired, processing the job... [2025-03-03 10:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:11:02] Production.INFO: neon service started [2025-03-03 10:11:02] Production.INFO: neon service started [2025-03-03 10:11:02] Production.INFO: ==12819== Releasing lock... [2025-03-03 10:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:11:02] Production.INFO: ==12822== Lock acquired, processing the job... [2025-03-03 05:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:11:02] Production.INFO: ==12822== Releasing lock... [2025-03-03 05:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:11:02] Production.INFO: ==12824== Lock acquired, processing the job... [2025-03-03 10:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:11:02] Production.INFO: ==12824== Releasing lock... [2025-03-03 10:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:11:03] Production.INFO: ==12832== Lock acquired, processing the job... [2025-03-03 05:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:11:03] Production.INFO: ==12826== Lock acquired, processing the job... [2025-03-03 05:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:11:03] Production.INFO: ==12836== Lock acquired, processing the job... [2025-03-03 05:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:11:03] Production.INFO: Account Balance Start. [2025-03-03 05:11:03] Production.INFO: CreateAllLog Start [2025-03-03 05:11:03] Production.INFO: 117 [2025-03-03 05:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:11:03] Production.INFO: ==12828== Lock acquired, processing the job... [2025-03-03 05:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:03] Production.INFO: ==12830== Lock acquired, processing the job... [2025-03-03 05:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: count ==13 [2025-03-03 05:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:11:04] Production.INFO: ==12834== Lock acquired, processing the job... [2025-03-03 05:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:11:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:11:04] Production.INFO: count ==21 [2025-03-03 05:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596234') start [2025-03-03 05:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596234') end [2025-03-03 05:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:11:04] Production.INFO: 1 [2025-03-03 05:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: ==12836== Releasing lock... [2025-03-03 05:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: ==12828== Releasing lock... [2025-03-03 05:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.ERROR: done [2025-03-03 05:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.ERROR: done [2025-03-03 05:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:11:05] Production.INFO: Total Charge 0 [2025-03-03 05:11:05] Production.INFO: CreateAllLog End [2025-03-03 05:11:05] Production.INFO: Account Balance End. [2025-03-03 05:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:11:05] Production.INFO: ==12832== Releasing lock... [2025-03-03 05:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:11:13] Production.ERROR: CronJobId end10 [2025-03-03 05:11:13] Production.INFO: ==12830== Releasing lock... [2025-03-03 05:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:11:15] Production.INFO: call_cost start [2025-03-03 05:11:15] Production.INFO: call_cost end [2025-03-03 05:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:11:15] Production.INFO: ==12826== Releasing lock... [2025-03-03 05:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:11:17] Production.INFO: count ==409 [2025-03-03 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596237', 'tblTempUsageDetail_20' ) start [2025-03-03 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596237', 'tblTempUsageDetail_20' ) end [2025-03-03 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596237', 'tblTempVendorCDR_20' ) start [2025-03-03 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596237', 'tblTempVendorCDR_20' ) end [2025-03-03 05:11:17] Production.INFO: ProcessCDR(1,14596237,1,1,2) [2025-03-03 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596237', 'tblTempUsageDetail_20' ) start [2025-03-03 05:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596237', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:11:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:11:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:11:25] Production.INFO: ==12834== Releasing lock... [2025-03-03 05:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:11:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:12:01] Production.INFO: ==12888== Lock acquired, processing the job... [2025-03-03 10:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:12:01] Production.INFO: neon service started [2025-03-03 10:12:01] Production.INFO: neon service started [2025-03-03 10:12:01] Production.INFO: ==12888== Releasing lock... [2025-03-03 10:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:12:01] Production.INFO: ==12892== Lock acquired, processing the job... [2025-03-03 10:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:12:01] Production.INFO: ==12892== Releasing lock... [2025-03-03 10:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:12:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:12:02] Production.INFO: ==12890== Lock acquired, processing the job... [2025-03-03 05:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:12:02] Production.INFO: ==12890== Releasing lock... [2025-03-03 05:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:12:03] Production.INFO: ==12903== Lock acquired, processing the job... [2025-03-03 05:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:12:03] Production.INFO: ==12905== Lock acquired, processing the job... [2025-03-03 05:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:12:03] Production.INFO: ==12895== Lock acquired, processing the job... [2025-03-03 05:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:12:03] Production.INFO: ==12897== Lock acquired, processing the job... [2025-03-03 05:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:12:03] Production.INFO: ==12899== Lock acquired, processing the job... [2025-03-03 05:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:12:03] Production.INFO: ==12901== Lock acquired, processing the job... [2025-03-03 05:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:12:03] Production.INFO: count ==13 [2025-03-03 05:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:12:03] Production.INFO: count ==21 [2025-03-03 05:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596238') start [2025-03-03 05:12:03] Production.INFO: Account Balance Start. [2025-03-03 05:12:03] Production.INFO: CreateAllLog Start [2025-03-03 05:12:03] Production.INFO: 117 [2025-03-03 05:12:03] Production.ERROR: done [2025-03-03 05:12:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596238') end [2025-03-03 05:12:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:12:03] Production.INFO: 1 [2025-03-03 05:12:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:03] Production.INFO: ==12905== Releasing lock... [2025-03-03 05:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:12:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:12:04] Production.INFO: ==12897== Releasing lock... [2025-03-03 05:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:12:04] Production.ERROR: done [2025-03-03 05:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:12:04] Production.INFO: Total Charge 0 [2025-03-03 05:12:04] Production.INFO: CreateAllLog End [2025-03-03 05:12:04] Production.INFO: Account Balance End. [2025-03-03 05:12:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:12:04] Production.INFO: ==12901== Releasing lock... [2025-03-03 05:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:12:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:12:12] Production.ERROR: CronJobId end10 [2025-03-03 05:12:12] Production.INFO: ==12899== Releasing lock... [2025-03-03 05:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:12:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:12:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:12:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:12:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:12:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:12:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:12:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:12:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:12:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:12:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:12:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:12:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:12:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:12:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:12:13] Production.INFO: call_cost start [2025-03-03 05:12:13] Production.INFO: call_cost end [2025-03-03 05:12:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:12:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:12:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:12:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:12:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:12:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:12:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:12:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:12:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:12:13] Production.INFO: ==12895== Releasing lock... [2025-03-03 05:12:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:12:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:12:16] Production.INFO: count ==409 [2025-03-03 05:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596242', 'tblTempUsageDetail_20' ) start [2025-03-03 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596242', 'tblTempUsageDetail_20' ) end [2025-03-03 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596242', 'tblTempVendorCDR_20' ) start [2025-03-03 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596242', 'tblTempVendorCDR_20' ) end [2025-03-03 05:12:16] Production.INFO: ProcessCDR(1,14596242,1,1,2) [2025-03-03 05:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596242', 'tblTempUsageDetail_20' ) start [2025-03-03 05:12:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596242', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:12:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:12:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:12:23] Production.INFO: ==12903== Releasing lock... [2025-03-03 05:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:12:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:13:01] Production.INFO: ==12964== Lock acquired, processing the job... [2025-03-03 10:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:13:01] Production.INFO: neon service started [2025-03-03 10:13:01] Production.INFO: neon service started [2025-03-03 10:13:01] Production.INFO: ==12964== Releasing lock... [2025-03-03 10:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:13:02] Production.INFO: ==12966== Lock acquired, processing the job... [2025-03-03 05:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:13:02] Production.INFO: ==12968== Lock acquired, processing the job... [2025-03-03 10:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:13:02] Production.INFO: ==12968== Releasing lock... [2025-03-03 10:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:13:02] Production.INFO: ==12966== Releasing lock... [2025-03-03 05:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:13:03] Production.INFO: ==12975== Lock acquired, processing the job... [2025-03-03 05:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:13:03] Production.INFO: ==12971== Lock acquired, processing the job... [2025-03-03 05:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:13:04] Production.INFO: ==12981== Lock acquired, processing the job... [2025-03-03 05:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:13:04] Production.INFO: ==12973== Lock acquired, processing the job... [2025-03-03 05:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:13:04] Production.INFO: ==12979== Lock acquired, processing the job... [2025-03-03 05:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:13:04] Production.INFO: ==12977== Lock acquired, processing the job... [2025-03-03 05:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:13:04] Production.INFO: count ==13 [2025-03-03 05:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:13:04] Production.INFO: count ==21 [2025-03-03 05:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596244') start [2025-03-03 05:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596244') end [2025-03-03 05:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:13:04] Production.INFO: 1 [2025-03-03 05:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:13:04] Production.INFO: Account Balance Start. [2025-03-03 05:13:04] Production.INFO: CreateAllLog Start [2025-03-03 05:13:04] Production.INFO: 117 [2025-03-03 05:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:13:04] Production.INFO: ==12981== Releasing lock... [2025-03-03 05:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:04] Production.INFO: ==12973== Releasing lock... [2025-03-03 05:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:13:04] Production.ERROR: done [2025-03-03 05:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:04] Production.ERROR: done [2025-03-03 05:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-14 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-15 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:13:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:13:05] Production.INFO: Total Charge 0 [2025-03-03 05:13:05] Production.INFO: CreateAllLog End [2025-03-03 05:13:05] Production.INFO: Account Balance End. [2025-03-03 05:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:13:05] Production.INFO: ==12977== Releasing lock... [2025-03-03 05:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:13:11] Production.ERROR: CronJobId end10 [2025-03-03 05:13:11] Production.INFO: ==12975== Releasing lock... [2025-03-03 05:13:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:13:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:13:14] Production.INFO: call_cost start [2025-03-03 05:13:14] Production.INFO: call_cost end [2025-03-03 05:13:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:13:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:13:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:13:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:13:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:13:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:13:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:13:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:13:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:13:14] Production.INFO: ==12971== Releasing lock... [2025-03-03 05:13:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:13:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:13:16] Production.INFO: count ==409 [2025-03-03 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596247', 'tblTempUsageDetail_20' ) start [2025-03-03 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596247', 'tblTempUsageDetail_20' ) end [2025-03-03 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596247', 'tblTempVendorCDR_20' ) start [2025-03-03 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596247', 'tblTempVendorCDR_20' ) end [2025-03-03 05:13:17] Production.INFO: ProcessCDR(1,14596247,1,1,2) [2025-03-03 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596247', 'tblTempUsageDetail_20' ) start [2025-03-03 05:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596247', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:13:24] Production.INFO: ==12979== Releasing lock... [2025-03-03 05:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:13:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:14:01] Production.INFO: ==13037== Lock acquired, processing the job... [2025-03-03 10:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:14:01] Production.INFO: neon service started [2025-03-03 10:14:01] Production.INFO: neon service started [2025-03-03 10:14:01] Production.INFO: ==13037== Releasing lock... [2025-03-03 10:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:14:01] Production.INFO: ==13046== Lock acquired, processing the job... [2025-03-03 10:14:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:14:01] Production.INFO: ==13046== Releasing lock... [2025-03-03 10:14:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:14:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:14:01] Production.INFO: ==13044== Lock acquired, processing the job... [2025-03-03 05:14:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:14:02] Production.INFO: ==13044== Releasing lock... [2025-03-03 05:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:14:03] Production.INFO: ==13049== Lock acquired, processing the job... [2025-03-03 05:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:14:03] Production.INFO: ==13051== Lock acquired, processing the job... [2025-03-03 05:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:14:03] Production.INFO: ==13053== Lock acquired, processing the job... [2025-03-03 05:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:14:03] Production.INFO: ==13057== Lock acquired, processing the job... [2025-03-03 05:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:14:03] Production.INFO: ==13055== Lock acquired, processing the job... [2025-03-03 05:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:14:03] Production.INFO: ==13059== Lock acquired, processing the job... [2025-03-03 05:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:14:03] Production.INFO: ==13051== Releasing lock... [2025-03-03 05:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:14:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:14:03] Production.INFO: Account Balance Start. [2025-03-03 05:14:03] Production.INFO: CreateAllLog Start [2025-03-03 05:14:03] Production.INFO: 117 [2025-03-03 05:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:03] Production.INFO: count ==13 [2025-03-03 05:14:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:14:03] Production.INFO: count ==21 [2025-03-03 05:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596251') start [2025-03-03 05:14:03] Production.ERROR: done [2025-03-03 05:14:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596251') end [2025-03-03 05:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:14:04] Production.INFO: 1 [2025-03-03 05:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: ==13059== Releasing lock... [2025-03-03 05:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:14:04] Production.ERROR: done [2025-03-03 05:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:14:04] Production.INFO: Total Charge 0 [2025-03-03 05:14:04] Production.INFO: CreateAllLog End [2025-03-03 05:14:05] Production.INFO: Account Balance End. [2025-03-03 05:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:14:05] Production.INFO: ==13055== Releasing lock... [2025-03-03 05:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:14:11] Production.ERROR: CronJobId end10 [2025-03-03 05:14:11] Production.INFO: ==13053== Releasing lock... [2025-03-03 05:14:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:14:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:14:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:14:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:14:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:14:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:14:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:14:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:14:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:14:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:14:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:14:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:14:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:14:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:14:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:14:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:14:13] Production.INFO: call_cost start [2025-03-03 05:14:13] Production.INFO: call_cost end [2025-03-03 05:14:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:14:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:14:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:14:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:14:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:14:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:14:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:14:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:14:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:14:13] Production.INFO: ==13049== Releasing lock... [2025-03-03 05:14:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:14:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:14:16] Production.INFO: count ==409 [2025-03-03 05:14:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596252', 'tblTempUsageDetail_20' ) start [2025-03-03 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596252', 'tblTempUsageDetail_20' ) end [2025-03-03 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596252', 'tblTempVendorCDR_20' ) start [2025-03-03 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596252', 'tblTempVendorCDR_20' ) end [2025-03-03 05:14:16] Production.INFO: ProcessCDR(1,14596252,1,1,2) [2025-03-03 05:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596252', 'tblTempUsageDetail_20' ) start [2025-03-03 05:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596252', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:14:24] Production.INFO: ==13057== Releasing lock... [2025-03-03 05:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:15:01] Production.INFO: ==13155== Lock acquired, processing the job... [2025-03-03 10:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:15:01] Production.INFO: neon service started [2025-03-03 10:15:01] Production.INFO: neon service started [2025-03-03 10:15:01] Production.INFO: ==13155== Releasing lock... [2025-03-03 10:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:15:02] Production.INFO: ==13159== Lock acquired, processing the job... [2025-03-03 10:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:15:02] Production.INFO: ==13159== Releasing lock... [2025-03-03 10:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:15:02] Production.INFO: ==13157== Lock acquired, processing the job... [2025-03-03 05:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:15:02] Production.INFO: ==13157== Releasing lock... [2025-03-03 05:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:15:03] Production.INFO: ==13168== Lock acquired, processing the job... [2025-03-03 05:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:15:03] Production.INFO: ==13170== Lock acquired, processing the job... [2025-03-03 05:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:15:04] Production.INFO: Account Balance Start. [2025-03-03 05:15:04] Production.INFO: CreateAllLog Start [2025-03-03 05:15:04] Production.INFO: 117 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: ==13162== Lock acquired, processing the job... [2025-03-03 05:15:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:15:04] Production.INFO: ==13166== Lock acquired, processing the job... [2025-03-03 05:15:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:15:04] Production.INFO: ==13164== Lock acquired, processing the job... [2025-03-03 05:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: ==13172== Lock acquired, processing the job... [2025-03-03 05:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:15:04] Production.ERROR: done [2025-03-03 05:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: count ==13 [2025-03-03 05:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: count ==21 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596254') start [2025-03-03 05:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.ERROR: done [2025-03-03 05:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596254') end [2025-03-03 05:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:15:04] Production.INFO: 1 [2025-03-03 05:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: ==13164== Releasing lock... [2025-03-03 05:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:15:04] Production.INFO: ==13172== Releasing lock... [2025-03-03 05:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:15:05] Production.INFO: Total Charge 0 [2025-03-03 05:15:05] Production.INFO: CreateAllLog End [2025-03-03 05:15:05] Production.INFO: Account Balance End. [2025-03-03 05:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:15:05] Production.INFO: ==13168== Releasing lock... [2025-03-03 05:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:15:13] Production.ERROR: CronJobId end10 [2025-03-03 05:15:13] Production.INFO: ==13166== Releasing lock... [2025-03-03 05:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:15:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:15:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:15:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:15:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:15:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:15:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:15:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:15:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:15:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:15:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:15:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:15:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:15:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:15:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:15:16] Production.INFO: call_cost start [2025-03-03 05:15:16] Production.INFO: call_cost end [2025-03-03 05:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:15:16] Production.INFO: ==13162== Releasing lock... [2025-03-03 05:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:15:16] Production.INFO: count ==409 [2025-03-03 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596257', 'tblTempUsageDetail_20' ) start [2025-03-03 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596257', 'tblTempUsageDetail_20' ) end [2025-03-03 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596257', 'tblTempVendorCDR_20' ) start [2025-03-03 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596257', 'tblTempVendorCDR_20' ) end [2025-03-03 05:15:17] Production.INFO: ProcessCDR(1,14596257,1,1,2) [2025-03-03 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596257', 'tblTempUsageDetail_20' ) start [2025-03-03 05:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596257', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:15:24] Production.INFO: ==13170== Releasing lock... [2025-03-03 05:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:16:02] Production.INFO: ==13226== Lock acquired, processing the job... [2025-03-03 10:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:16:02] Production.INFO: neon service started [2025-03-03 10:16:02] Production.INFO: neon service started [2025-03-03 10:16:02] Production.INFO: ==13226== Releasing lock... [2025-03-03 10:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:16:02] Production.INFO: ==13228== Lock acquired, processing the job... [2025-03-03 05:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:16:03] Production.INFO: ==13228== Releasing lock... [2025-03-03 05:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:16:03] Production.INFO: ==13230== Lock acquired, processing the job... [2025-03-03 10:16:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:16:03] Production.INFO: ==13230== Releasing lock... [2025-03-03 10:16:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:16:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:16:04] Production.INFO: ==13234== Lock acquired, processing the job... [2025-03-03 05:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:16:04] Production.INFO: ==13232== Lock acquired, processing the job... [2025-03-03 05:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:16:04] Production.INFO: ==13243== Lock acquired, processing the job... [2025-03-03 05:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:16:04] Production.INFO: ==13236== Lock acquired, processing the job... [2025-03-03 05:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:16:04] Production.INFO: ==13238== Lock acquired, processing the job... [2025-03-03 05:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:16:04] Production.INFO: ==13241== Lock acquired, processing the job... [2025-03-03 05:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:16:04] Production.INFO: count ==13 [2025-03-03 05:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:16:04] Production.INFO: ==13234== Releasing lock... [2025-03-03 05:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:16:04] Production.INFO: count ==21 [2025-03-03 05:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596260') start [2025-03-03 05:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596260') end [2025-03-03 05:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:16:04] Production.INFO: 1 [2025-03-03 05:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:16:04] Production.INFO: Account Balance Start. [2025-03-03 05:16:04] Production.INFO: CreateAllLog Start [2025-03-03 05:16:04] Production.INFO: 117 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: ==13243== Releasing lock... [2025-03-03 05:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:04] Production.ERROR: done [2025-03-03 05:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.ERROR: done [2025-03-03 05:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:16:05] Production.INFO: Total Charge 0 [2025-03-03 05:16:05] Production.INFO: CreateAllLog End [2025-03-03 05:16:05] Production.INFO: Account Balance End. [2025-03-03 05:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:16:05] Production.INFO: ==13238== Releasing lock... [2025-03-03 05:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:16:13] Production.ERROR: CronJobId end10 [2025-03-03 05:16:13] Production.INFO: ==13236== Releasing lock... [2025-03-03 05:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:16:15] Production.INFO: call_cost start [2025-03-03 05:16:15] Production.INFO: call_cost end [2025-03-03 05:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:16:15] Production.INFO: ==13232== Releasing lock... [2025-03-03 05:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:16:17] Production.INFO: count ==409 [2025-03-03 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596262', 'tblTempUsageDetail_20' ) start [2025-03-03 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596262', 'tblTempUsageDetail_20' ) end [2025-03-03 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596262', 'tblTempVendorCDR_20' ) start [2025-03-03 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596262', 'tblTempVendorCDR_20' ) end [2025-03-03 05:16:17] Production.INFO: ProcessCDR(1,14596262,1,1,2) [2025-03-03 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596262', 'tblTempUsageDetail_20' ) start [2025-03-03 05:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596262', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:16:24] Production.INFO: ==13241== Releasing lock... [2025-03-03 05:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:17:01] Production.INFO: ==13299== Lock acquired, processing the job... [2025-03-03 10:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:17:01] Production.INFO: neon service started [2025-03-03 10:17:01] Production.INFO: neon service started [2025-03-03 10:17:01] Production.INFO: ==13299== Releasing lock... [2025-03-03 10:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:17:02] Production.INFO: ==13301== Lock acquired, processing the job... [2025-03-03 05:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:17:02] Production.INFO: ==13301== Releasing lock... [2025-03-03 05:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:17:02] Production.INFO: ==13303== Lock acquired, processing the job... [2025-03-03 10:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:17:03] Production.INFO: ==13303== Releasing lock... [2025-03-03 10:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:17:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:17:03] Production.INFO: ==13305== Lock acquired, processing the job... [2025-03-03 05:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:17:03] Production.INFO: ==13309== Lock acquired, processing the job... [2025-03-03 05:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:17:03] Production.INFO: ==13314== Lock acquired, processing the job... [2025-03-03 05:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:17:03] Production.INFO: ==13316== Lock acquired, processing the job... [2025-03-03 05:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:17:03] Production.INFO: ==13307== Lock acquired, processing the job... [2025-03-03 05:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:17:03] Production.INFO: ==13311== Lock acquired, processing the job... [2025-03-03 05:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:17:03] Production.INFO: count ==13 [2025-03-03 05:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:17:03] Production.INFO: count ==21 [2025-03-03 05:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596264') start [2025-03-03 05:17:04] Production.INFO: Account Balance Start. [2025-03-03 05:17:04] Production.INFO: CreateAllLog Start [2025-03-03 05:17:04] Production.INFO: 117 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:17:04] Production.ERROR: done [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596264') end [2025-03-03 05:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:17:04] Production.INFO: 1 [2025-03-03 05:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: ==13316== Releasing lock... [2025-03-03 05:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.ERROR: done [2025-03-03 05:17:04] Production.INFO: ==13307== Releasing lock... [2025-03-03 05:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:17:05] Production.INFO: Total Charge 0 [2025-03-03 05:17:05] Production.INFO: CreateAllLog End [2025-03-03 05:17:05] Production.INFO: Account Balance End. [2025-03-03 05:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:17:05] Production.INFO: ==13311== Releasing lock... [2025-03-03 05:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:17:12] Production.ERROR: CronJobId end10 [2025-03-03 05:17:12] Production.INFO: ==13309== Releasing lock... [2025-03-03 05:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:17:14] Production.INFO: call_cost start [2025-03-03 05:17:14] Production.INFO: call_cost end [2025-03-03 05:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:17:14] Production.INFO: ==13305== Releasing lock... [2025-03-03 05:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:17:16] Production.INFO: count ==409 [2025-03-03 05:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596267', 'tblTempUsageDetail_20' ) start [2025-03-03 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596267', 'tblTempUsageDetail_20' ) end [2025-03-03 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596267', 'tblTempVendorCDR_20' ) start [2025-03-03 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596267', 'tblTempVendorCDR_20' ) end [2025-03-03 05:17:16] Production.INFO: ProcessCDR(1,14596267,1,1,2) [2025-03-03 05:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596267', 'tblTempUsageDetail_20' ) start [2025-03-03 05:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596267', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:17:24] Production.INFO: ==13314== Releasing lock... [2025-03-03 05:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:18:01] Production.INFO: ==13370== Lock acquired, processing the job... [2025-03-03 10:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:18:01] Production.INFO: neon service started [2025-03-03 10:18:01] Production.INFO: neon service started [2025-03-03 10:18:01] Production.INFO: ==13370== Releasing lock... [2025-03-03 10:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:18:01] Production.INFO: ==13372== Lock acquired, processing the job... [2025-03-03 05:18:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:18:02] Production.INFO: ==13374== Lock acquired, processing the job... [2025-03-03 10:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:18:02] Production.INFO: ==13372== Releasing lock... [2025-03-03 05:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:18:02] Production.INFO: ==13374== Releasing lock... [2025-03-03 10:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:18:02] Production.INFO: ==13376== Lock acquired, processing the job... [2025-03-03 05:18:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:18:03] Production.INFO: ==13378== Lock acquired, processing the job... [2025-03-03 05:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:18:03] Production.INFO: ==13380== Lock acquired, processing the job... [2025-03-03 05:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:18:03] Production.INFO: ==13387== Lock acquired, processing the job... [2025-03-03 05:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:18:03] Production.INFO: ==13383== Lock acquired, processing the job... [2025-03-03 05:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:18:03] Production.INFO: count ==13 [2025-03-03 05:18:03] Production.INFO: ==13385== Lock acquired, processing the job... [2025-03-03 05:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:18:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:18:03] Production.INFO: ==13378== Releasing lock... [2025-03-03 05:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:18:03] Production.INFO: count ==21 [2025-03-03 05:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596270') start [2025-03-03 05:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:18:03] Production.INFO: Account Balance Start. [2025-03-03 05:18:03] Production.INFO: CreateAllLog Start [2025-03-03 05:18:03] Production.INFO: 117 [2025-03-03 05:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596270') end [2025-03-03 05:18:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:18:03] Production.INFO: 1 [2025-03-03 05:18:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:18:03] Production.INFO: ==13387== Releasing lock... [2025-03-03 05:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:18:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:18:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:03] Production.ERROR: done [2025-03-03 05:18:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:18:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.ERROR: done [2025-03-03 05:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:18:04] Production.INFO: Total Charge 0 [2025-03-03 05:18:04] Production.INFO: CreateAllLog End [2025-03-03 05:18:04] Production.INFO: Account Balance End. [2025-03-03 05:18:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:18:04] Production.INFO: ==13383== Releasing lock... [2025-03-03 05:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:18:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:18:12] Production.ERROR: CronJobId end10 [2025-03-03 05:18:12] Production.INFO: ==13380== Releasing lock... [2025-03-03 05:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:18:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:18:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:18:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:18:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:18:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:18:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:18:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:18:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:18:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:18:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:18:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:18:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:18:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:18:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:18:13] Production.INFO: call_cost start [2025-03-03 05:18:13] Production.INFO: call_cost end [2025-03-03 05:18:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:18:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:18:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:18:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:18:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:18:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:18:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:18:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:18:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:18:13] Production.INFO: ==13376== Releasing lock... [2025-03-03 05:18:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:18:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:18:16] Production.INFO: count ==409 [2025-03-03 05:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596272', 'tblTempUsageDetail_20' ) start [2025-03-03 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596272', 'tblTempUsageDetail_20' ) end [2025-03-03 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596272', 'tblTempVendorCDR_20' ) start [2025-03-03 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596272', 'tblTempVendorCDR_20' ) end [2025-03-03 05:18:16] Production.INFO: ProcessCDR(1,14596272,1,1,2) [2025-03-03 05:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596272', 'tblTempUsageDetail_20' ) start [2025-03-03 05:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596272', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:18:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:18:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:18:23] Production.INFO: ==13385== Releasing lock... [2025-03-03 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:18:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:19:01] Production.INFO: ==13444== Lock acquired, processing the job... [2025-03-03 10:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:19:01] Production.INFO: neon service started [2025-03-03 10:19:01] Production.INFO: neon service started [2025-03-03 10:19:01] Production.INFO: ==13444== Releasing lock... [2025-03-03 10:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:19:02] Production.INFO: ==13449== Lock acquired, processing the job... [2025-03-03 10:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:19:02] Production.INFO: ==13449== Releasing lock... [2025-03-03 10:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:19:02] Production.INFO: ==13447== Lock acquired, processing the job... [2025-03-03 05:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:19:02] Production.INFO: ==13447== Releasing lock... [2025-03-03 05:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:19:03] Production.INFO: ==13455== Lock acquired, processing the job... [2025-03-03 05:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:19:03] Production.INFO: ==13461== Lock acquired, processing the job... [2025-03-03 05:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:19:03] Production.INFO: ==13451== Lock acquired, processing the job... [2025-03-03 05:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:19:03] Production.INFO: ==13453== Lock acquired, processing the job... [2025-03-03 05:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:19:03] Production.INFO: ==13457== Lock acquired, processing the job... [2025-03-03 05:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:19:03] Production.INFO: count ==13 [2025-03-03 05:19:03] Production.INFO: ==13459== Lock acquired, processing the job... [2025-03-03 05:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:19:03] Production.INFO: count ==21 [2025-03-03 05:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596273') start [2025-03-03 05:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:19:04] Production.INFO: Account Balance Start. [2025-03-03 05:19:04] Production.INFO: CreateAllLog Start [2025-03-03 05:19:04] Production.INFO: 117 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596273') end [2025-03-03 05:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:19:04] Production.INFO: 1 [2025-03-03 05:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:19:04] Production.INFO: ==13453== Releasing lock... [2025-03-03 05:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.ERROR: done [2025-03-03 05:19:04] Production.INFO: ==13461== Releasing lock... [2025-03-03 05:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.ERROR: done [2025-03-03 05:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:19:04] Production.INFO: Total Charge 0 [2025-03-03 05:19:04] Production.INFO: CreateAllLog End [2025-03-03 05:19:05] Production.INFO: Account Balance End. [2025-03-03 05:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:19:05] Production.INFO: ==13457== Releasing lock... [2025-03-03 05:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:19:11] Production.ERROR: CronJobId end10 [2025-03-03 05:19:11] Production.INFO: ==13455== Releasing lock... [2025-03-03 05:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:19:14] Production.INFO: call_cost start [2025-03-03 05:19:14] Production.INFO: call_cost end [2025-03-03 05:19:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:19:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:19:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:19:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:19:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:19:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:19:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:19:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:19:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:19:14] Production.INFO: ==13451== Releasing lock... [2025-03-03 05:19:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:19:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:19:16] Production.INFO: count ==409 [2025-03-03 05:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596277', 'tblTempUsageDetail_20' ) start [2025-03-03 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596277', 'tblTempUsageDetail_20' ) end [2025-03-03 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596277', 'tblTempVendorCDR_20' ) start [2025-03-03 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596277', 'tblTempVendorCDR_20' ) end [2025-03-03 05:19:16] Production.INFO: ProcessCDR(1,14596277,1,1,2) [2025-03-03 05:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596277', 'tblTempUsageDetail_20' ) start [2025-03-03 05:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596277', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:19:24] Production.INFO: ==13459== Releasing lock... [2025-03-03 05:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:20:02] Production.INFO: ==13514== Lock acquired, processing the job... [2025-03-03 10:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:20:02] Production.INFO: neon service started [2025-03-03 10:20:02] Production.INFO: neon service started [2025-03-03 10:20:02] Production.INFO: ==13514== Releasing lock... [2025-03-03 10:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:20:02] Production.INFO: ==13519== Lock acquired, processing the job... [2025-03-03 10:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:20:02] Production.INFO: ==13519== Releasing lock... [2025-03-03 10:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:20:02] Production.INFO: ==13517== Lock acquired, processing the job... [2025-03-03 05:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:20:03] Production.INFO: ==13517== Releasing lock... [2025-03-03 05:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:20:04] Production.INFO: ==13523== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:20:04] Production.INFO: ==13525== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:20:04] Production.INFO: ==13527== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:20:04] Production.INFO: ==13529== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:20:04] Production.INFO: ==13521== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 05:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:20:04] Production.INFO: Account Balance Start. [2025-03-03 05:20:04] Production.INFO: CreateAllLog Start [2025-03-03 05:20:04] Production.INFO: 117 [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:20:04] Production.ERROR: CronJob PID - 13523 [2025-03-03 05:20:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 05:20:04] Production.ERROR: CronJob ID - 5 [2025-03-03 05:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:20:00 [2025-03-03 05:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:20:04] Production.ERROR: CronJob PID - 13525 [2025-03-03 05:20:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 05:20:04] Production.ERROR: CronJob ID - 7 [2025-03-03 05:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:20:00 [2025-03-03 05:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:20:04] Production.ERROR: CronJob PID - 13527 [2025-03-03 05:20:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 05:20:04] Production.ERROR: CronJob ID - 10 [2025-03-03 05:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:20:00 [2025-03-03 05:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:20:04] Production.ERROR: CronJob PID - 13529 [2025-03-03 05:20:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 05:20:04] Production.ERROR: CronJob ID - 12 [2025-03-03 05:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:20:00 [2025-03-03 05:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 05:20:04] Production.INFO: ==13521== Releasing lock... [2025-03-03 05:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 05:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.INFO: ==13525== Releasing lock... [2025-03-03 05:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.INFO: ==13531== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.INFO: ==13533== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 05:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:20:04] Production.INFO: ==13535== Lock acquired, processing the job... [2025-03-03 05:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: count ==13 [2025-03-03 05:20:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:20:05] Production.INFO: count ==21 [2025-03-03 05:20:05] Production.ERROR: done [2025-03-03 05:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596281') start [2025-03-03 05:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.ERROR: done [2025-03-03 05:20:05] Production.ERROR: done [2025-03-03 05:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 05:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596282', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 05:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596281') end [2025-03-03 05:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:20:05] Production.INFO: 1 [2025-03-03 05:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: ==13535== Releasing lock... [2025-03-03 05:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:20:05] Production.INFO: Total Charge 0 [2025-03-03 05:20:05] Production.INFO: CreateAllLog End [2025-03-03 05:20:06] Production.INFO: Account Balance End. [2025-03-03 05:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 05:20:06] Production.INFO: ==13529== Releasing lock... [2025-03-03 05:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:20:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596282', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 05:20:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 05:20:10] Production.INFO: ProcessCDR(1,14596282,1,1,2) [2025-03-03 05:20:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596282,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:20:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596282,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:20:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 05:20:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 05:20:10] Production.INFO: ==13533== Releasing lock... [2025-03-03 05:20:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 05:20:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 05:20:14] Production.ERROR: CronJobId end10 [2025-03-03 05:20:14] Production.INFO: ==13527== Releasing lock... [2025-03-03 05:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:20:17] Production.INFO: call_cost start [2025-03-03 05:20:17] Production.INFO: call_cost end [2025-03-03 05:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:20:17] Production.INFO: ==13523== Releasing lock... [2025-03-03 05:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:20:17] Production.INFO: count ==409 [2025-03-03 05:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596283', 'tblTempUsageDetail_20' ) start [2025-03-03 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596283', 'tblTempUsageDetail_20' ) end [2025-03-03 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596283', 'tblTempVendorCDR_20' ) start [2025-03-03 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596283', 'tblTempVendorCDR_20' ) end [2025-03-03 05:20:17] Production.INFO: ProcessCDR(1,14596283,1,1,2) [2025-03-03 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596283', 'tblTempUsageDetail_20' ) start [2025-03-03 05:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596283', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:20:25] Production.INFO: ==13531== Releasing lock... [2025-03-03 05:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:21:01] Production.INFO: ==13589== Lock acquired, processing the job... [2025-03-03 10:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:21:01] Production.INFO: neon service started [2025-03-03 10:21:01] Production.INFO: neon service started [2025-03-03 10:21:01] Production.INFO: ==13589== Releasing lock... [2025-03-03 10:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:21:02] Production.INFO: ==13591== Lock acquired, processing the job... [2025-03-03 05:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:21:02] Production.INFO: ==13591== Releasing lock... [2025-03-03 05:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:21:02] Production.INFO: ==13593== Lock acquired, processing the job... [2025-03-03 10:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:21:02] Production.INFO: ==13593== Releasing lock... [2025-03-03 10:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:21:03] Production.INFO: ==13596== Lock acquired, processing the job... [2025-03-03 05:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:21:03] Production.INFO: ==13598== Lock acquired, processing the job... [2025-03-03 05:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:21:03] Production.INFO: ==13604== Lock acquired, processing the job... [2025-03-03 05:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:21:03] Production.INFO: ==13600== Lock acquired, processing the job... [2025-03-03 05:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:21:03] Production.INFO: ==13602== Lock acquired, processing the job... [2025-03-03 05:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:21:03] Production.INFO: ==13606== Lock acquired, processing the job... [2025-03-03 05:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:21:03] Production.INFO: ==13598== Releasing lock... [2025-03-03 05:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:21:03] Production.INFO: Account Balance Start. [2025-03-03 05:21:03] Production.INFO: CreateAllLog Start [2025-03-03 05:21:03] Production.INFO: 117 [2025-03-03 05:21:03] Production.INFO: count ==13 [2025-03-03 05:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:21:03] Production.ERROR: done [2025-03-03 05:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:21:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:21:03] Production.INFO: count ==21 [2025-03-03 05:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596286') start [2025-03-03 05:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596286') end [2025-03-03 05:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:21:03] Production.INFO: 1 [2025-03-03 05:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:21:03] Production.INFO: ==13606== Releasing lock... [2025-03-03 05:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.ERROR: done [2025-03-03 05:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:21:04] Production.INFO: Total Charge 0 [2025-03-03 05:21:04] Production.INFO: CreateAllLog End [2025-03-03 05:21:04] Production.INFO: Account Balance End. [2025-03-03 05:21:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:21:04] Production.INFO: ==13602== Releasing lock... [2025-03-03 05:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:21:12] Production.ERROR: CronJobId end10 [2025-03-03 05:21:12] Production.INFO: ==13600== Releasing lock... [2025-03-03 05:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:21:14] Production.INFO: call_cost start [2025-03-03 05:21:14] Production.INFO: call_cost end [2025-03-03 05:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:21:14] Production.INFO: ==13596== Releasing lock... [2025-03-03 05:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:21:16] Production.INFO: count ==409 [2025-03-03 05:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596288', 'tblTempUsageDetail_20' ) start [2025-03-03 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596288', 'tblTempUsageDetail_20' ) end [2025-03-03 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596288', 'tblTempVendorCDR_20' ) start [2025-03-03 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596288', 'tblTempVendorCDR_20' ) end [2025-03-03 05:21:16] Production.INFO: ProcessCDR(1,14596288,1,1,2) [2025-03-03 05:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596288', 'tblTempUsageDetail_20' ) start [2025-03-03 05:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596288', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:21:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:21:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:21:23] Production.INFO: ==13604== Releasing lock... [2025-03-03 05:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:22:02] Production.INFO: ==13661== Lock acquired, processing the job... [2025-03-03 10:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:22:02] Production.INFO: neon service started [2025-03-03 10:22:02] Production.INFO: neon service started [2025-03-03 10:22:02] Production.INFO: ==13661== Releasing lock... [2025-03-03 10:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:22:02] Production.INFO: ==13663== Lock acquired, processing the job... [2025-03-03 05:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:22:02] Production.INFO: ==13665== Lock acquired, processing the job... [2025-03-03 10:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:22:02] Production.INFO: ==13665== Releasing lock... [2025-03-03 10:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:22:03] Production.INFO: ==13663== Releasing lock... [2025-03-03 05:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:22:04] Production.INFO: ==13678== Lock acquired, processing the job... [2025-03-03 05:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:22:04] Production.INFO: ==13672== Lock acquired, processing the job... [2025-03-03 05:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:22:04] Production.INFO: ==13668== Lock acquired, processing the job... [2025-03-03 05:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:22:04] Production.INFO: ==13670== Lock acquired, processing the job... [2025-03-03 05:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:22:04] Production.INFO: count ==13 [2025-03-03 05:22:04] Production.INFO: ==13674== Lock acquired, processing the job... [2025-03-03 05:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:22:04] Production.INFO: count ==21 [2025-03-03 05:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596289') start [2025-03-03 05:22:04] Production.INFO: ==13676== Lock acquired, processing the job... [2025-03-03 05:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596289') end [2025-03-03 05:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:22:04] Production.INFO: 1 [2025-03-03 05:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:22:04] Production.INFO: Account Balance Start. [2025-03-03 05:22:04] Production.INFO: CreateAllLog Start [2025-03-03 05:22:04] Production.INFO: 117 [2025-03-03 05:22:04] Production.INFO: ==13678== Releasing lock... [2025-03-03 05:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-14 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-15 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: ==13670== Releasing lock... [2025-03-03 05:22:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:22:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:22:05] Production.ERROR: done [2025-03-03 05:22:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.ERROR: done [2025-03-03 05:22:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:22:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:22:05] Production.INFO: Total Charge 0 [2025-03-03 05:22:05] Production.INFO: CreateAllLog End [2025-03-03 05:22:05] Production.INFO: Account Balance End. [2025-03-03 05:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:22:05] Production.INFO: ==13674== Releasing lock... [2025-03-03 05:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:22:12] Production.ERROR: CronJobId end10 [2025-03-03 05:22:12] Production.INFO: ==13672== Releasing lock... [2025-03-03 05:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:22:14] Production.INFO: call_cost start [2025-03-03 05:22:14] Production.INFO: call_cost end [2025-03-03 05:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:22:14] Production.INFO: ==13668== Releasing lock... [2025-03-03 05:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:22:17] Production.INFO: count ==409 [2025-03-03 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596293', 'tblTempUsageDetail_20' ) start [2025-03-03 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596293', 'tblTempUsageDetail_20' ) end [2025-03-03 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596293', 'tblTempVendorCDR_20' ) start [2025-03-03 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596293', 'tblTempVendorCDR_20' ) end [2025-03-03 05:22:17] Production.INFO: ProcessCDR(1,14596293,1,1,2) [2025-03-03 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596293', 'tblTempUsageDetail_20' ) start [2025-03-03 05:22:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596293', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:22:24] Production.INFO: ==13676== Releasing lock... [2025-03-03 05:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:23:01] Production.INFO: ==13732== Lock acquired, processing the job... [2025-03-03 10:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:23:01] Production.INFO: neon service started [2025-03-03 10:23:01] Production.INFO: neon service started [2025-03-03 10:23:01] Production.INFO: ==13732== Releasing lock... [2025-03-03 10:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:23:02] Production.INFO: ==13734== Lock acquired, processing the job... [2025-03-03 05:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:23:02] Production.INFO: ==13734== Releasing lock... [2025-03-03 05:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:23:02] Production.INFO: ==13736== Lock acquired, processing the job... [2025-03-03 10:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:23:02] Production.INFO: ==13736== Releasing lock... [2025-03-03 10:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:23:03] Production.INFO: ==13747== Lock acquired, processing the job... [2025-03-03 05:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:23:03] Production.INFO: ==13749== Lock acquired, processing the job... [2025-03-03 05:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:23:03] Production.INFO: ==13738== Lock acquired, processing the job... [2025-03-03 05:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:23:03] Production.INFO: ==13740== Lock acquired, processing the job... [2025-03-03 05:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:23:03] Production.INFO: ==13742== Lock acquired, processing the job... [2025-03-03 05:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:23:03] Production.INFO: ==13744== Lock acquired, processing the job... [2025-03-03 05:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:23:03] Production.ERROR: done [2025-03-03 05:23:03] Production.INFO: count ==13 [2025-03-03 05:23:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:23:03] Production.INFO: Account Balance Start. [2025-03-03 05:23:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:23:03] Production.INFO: CreateAllLog Start [2025-03-03 05:23:03] Production.INFO: count ==21 [2025-03-03 05:23:03] Production.INFO: 117 [2025-03-03 05:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596295') start [2025-03-03 05:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596295') end [2025-03-03 05:23:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:23:03] Production.INFO: 1 [2025-03-03 05:23:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:23:03] Production.INFO: ==13749== Releasing lock... [2025-03-03 05:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:23:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:23:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:03] Production.ERROR: done [2025-03-03 05:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: ==13740== Releasing lock... [2025-03-03 05:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:23:04] Production.INFO: Total Charge 0 [2025-03-03 05:23:04] Production.INFO: CreateAllLog End [2025-03-03 05:23:04] Production.INFO: Account Balance End. [2025-03-03 05:23:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:23:04] Production.INFO: ==13744== Releasing lock... [2025-03-03 05:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:23:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:23:11] Production.ERROR: CronJobId end10 [2025-03-03 05:23:11] Production.INFO: ==13742== Releasing lock... [2025-03-03 05:23:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:23:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:23:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:23:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:23:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:23:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:23:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:23:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:23:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:23:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:23:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:23:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:23:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:23:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:23:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:23:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:23:14] Production.INFO: call_cost start [2025-03-03 05:23:14] Production.INFO: call_cost end [2025-03-03 05:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:23:14] Production.INFO: ==13738== Releasing lock... [2025-03-03 05:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:23:15] Production.INFO: count ==409 [2025-03-03 05:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596298', 'tblTempUsageDetail_20' ) start [2025-03-03 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596298', 'tblTempUsageDetail_20' ) end [2025-03-03 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596298', 'tblTempVendorCDR_20' ) start [2025-03-03 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596298', 'tblTempVendorCDR_20' ) end [2025-03-03 05:23:16] Production.INFO: ProcessCDR(1,14596298,1,1,2) [2025-03-03 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596298', 'tblTempUsageDetail_20' ) start [2025-03-03 05:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596298', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:23:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:23:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:23:23] Production.INFO: ==13747== Releasing lock... [2025-03-03 05:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:23:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:24:02] Production.INFO: ==13803== Lock acquired, processing the job... [2025-03-03 10:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:24:02] Production.INFO: neon service started [2025-03-03 10:24:02] Production.INFO: neon service started [2025-03-03 10:24:02] Production.INFO: ==13803== Releasing lock... [2025-03-03 10:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:24:02] Production.INFO: ==13805== Lock acquired, processing the job... [2025-03-03 05:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:24:02] Production.INFO: ==13807== Lock acquired, processing the job... [2025-03-03 10:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:24:02] Production.INFO: ==13807== Releasing lock... [2025-03-03 10:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:24:02] Production.INFO: ==13805== Releasing lock... [2025-03-03 05:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:24:03] Production.INFO: ==13814== Lock acquired, processing the job... [2025-03-03 05:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:24:03] Production.INFO: ==13816== Lock acquired, processing the job... [2025-03-03 05:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:24:03] Production.INFO: ==13810== Lock acquired, processing the job... [2025-03-03 05:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:24:04] Production.INFO: ==13812== Lock acquired, processing the job... [2025-03-03 05:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:24:04] Production.INFO: Account Balance Start. [2025-03-03 05:24:04] Production.INFO: CreateAllLog Start [2025-03-03 05:24:04] Production.INFO: 117 [2025-03-03 05:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: ==13818== Lock acquired, processing the job... [2025-03-03 05:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:24:04] Production.INFO: ==13820== Lock acquired, processing the job... [2025-03-03 05:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: count ==13 [2025-03-03 05:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:24:04] Production.INFO: count ==21 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596302') start [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: ==13812== Releasing lock... [2025-03-03 05:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596302') end [2025-03-03 05:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:24:04] Production.INFO: 1 [2025-03-03 05:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: ==13820== Releasing lock... [2025-03-03 05:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:24:04] Production.ERROR: done [2025-03-03 05:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.ERROR: done [2025-03-03 05:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:24:05] Production.INFO: Total Charge 0 [2025-03-03 05:24:05] Production.INFO: CreateAllLog End [2025-03-03 05:24:05] Production.INFO: Account Balance End. [2025-03-03 05:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:24:05] Production.INFO: ==13816== Releasing lock... [2025-03-03 05:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:24:13] Production.ERROR: CronJobId end10 [2025-03-03 05:24:13] Production.INFO: ==13814== Releasing lock... [2025-03-03 05:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:24:14] Production.INFO: call_cost start [2025-03-03 05:24:14] Production.INFO: call_cost end [2025-03-03 05:24:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:24:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:24:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:24:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:24:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:24:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:24:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:24:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:24:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:24:14] Production.INFO: ==13810== Releasing lock... [2025-03-03 05:24:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:24:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:24:17] Production.INFO: count ==409 [2025-03-03 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596303', 'tblTempUsageDetail_20' ) start [2025-03-03 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596303', 'tblTempUsageDetail_20' ) end [2025-03-03 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596303', 'tblTempVendorCDR_20' ) start [2025-03-03 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596303', 'tblTempVendorCDR_20' ) end [2025-03-03 05:24:17] Production.INFO: ProcessCDR(1,14596303,1,1,2) [2025-03-03 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596303', 'tblTempUsageDetail_20' ) start [2025-03-03 05:24:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596303', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:24:24] Production.INFO: ==13818== Releasing lock... [2025-03-03 05:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:25:01] Production.INFO: ==13873== Lock acquired, processing the job... [2025-03-03 10:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:25:01] Production.INFO: neon service started [2025-03-03 10:25:01] Production.INFO: neon service started [2025-03-03 10:25:01] Production.INFO: ==13873== Releasing lock... [2025-03-03 10:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:25:02] Production.INFO: ==13877== Lock acquired, processing the job... [2025-03-03 10:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:25:02] Production.INFO: ==13877== Releasing lock... [2025-03-03 10:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:25:02] Production.INFO: ==13875== Lock acquired, processing the job... [2025-03-03 05:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:25:02] Production.INFO: ==13875== Releasing lock... [2025-03-03 05:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:25:03] Production.INFO: ==13879== Lock acquired, processing the job... [2025-03-03 05:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:25:03] Production.INFO: ==13881== Lock acquired, processing the job... [2025-03-03 05:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:25:03] Production.INFO: ==13887== Lock acquired, processing the job... [2025-03-03 05:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:25:03] Production.INFO: ==13883== Lock acquired, processing the job... [2025-03-03 05:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:25:03] Production.INFO: ==13885== Lock acquired, processing the job... [2025-03-03 05:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:25:03] Production.INFO: ==13881== Releasing lock... [2025-03-03 05:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:25:03] Production.INFO: Account Balance Start. [2025-03-03 05:25:03] Production.INFO: CreateAllLog Start [2025-03-03 05:25:03] Production.INFO: 117 [2025-03-03 05:25:03] Production.INFO: ==13889== Lock acquired, processing the job... [2025-03-03 05:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:03] Production.ERROR: done [2025-03-03 05:25:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:25:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:25:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:03] Production.INFO: count ==13 [2025-03-03 05:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:25:04] Production.INFO: count ==21 [2025-03-03 05:25:04] Production.ERROR: done [2025-03-03 05:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596307') start [2025-03-03 05:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596307') end [2025-03-03 05:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:25:04] Production.INFO: 1 [2025-03-03 05:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:25:04] Production.INFO: ==13889== Releasing lock... [2025-03-03 05:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:25:04] Production.INFO: Total Charge 0 [2025-03-03 05:25:04] Production.INFO: CreateAllLog End [2025-03-03 05:25:04] Production.INFO: Account Balance End. [2025-03-03 05:25:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:25:04] Production.INFO: ==13885== Releasing lock... [2025-03-03 05:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:25:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:25:12] Production.ERROR: CronJobId end10 [2025-03-03 05:25:12] Production.INFO: ==13883== Releasing lock... [2025-03-03 05:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:25:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:25:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:25:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:25:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:25:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:25:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:25:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:25:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:25:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:25:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:25:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:25:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:25:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:25:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:25:14] Production.INFO: call_cost start [2025-03-03 05:25:14] Production.INFO: call_cost end [2025-03-03 05:25:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:25:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:25:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:25:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:25:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:25:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:25:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:25:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:25:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:25:14] Production.INFO: ==13879== Releasing lock... [2025-03-03 05:25:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:25:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:25:16] Production.INFO: count ==409 [2025-03-03 05:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596308', 'tblTempUsageDetail_20' ) start [2025-03-03 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596308', 'tblTempUsageDetail_20' ) end [2025-03-03 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596308', 'tblTempVendorCDR_20' ) start [2025-03-03 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596308', 'tblTempVendorCDR_20' ) end [2025-03-03 05:25:16] Production.INFO: ProcessCDR(1,14596308,1,1,2) [2025-03-03 05:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596308', 'tblTempUsageDetail_20' ) start [2025-03-03 05:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596308', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:25:24] Production.INFO: ==13887== Releasing lock... [2025-03-03 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:26:02] Production.INFO: ==13946== Lock acquired, processing the job... [2025-03-03 10:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:26:02] Production.INFO: neon service started [2025-03-03 10:26:02] Production.INFO: neon service started [2025-03-03 10:26:02] Production.INFO: ==13946== Releasing lock... [2025-03-03 10:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:26:02] Production.INFO: ==13950== Lock acquired, processing the job... [2025-03-03 10:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:26:02] Production.INFO: ==13950== Releasing lock... [2025-03-03 10:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:26:02] Production.INFO: ==13948== Lock acquired, processing the job... [2025-03-03 05:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:26:02] Production.INFO: ==13948== Releasing lock... [2025-03-03 05:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:26:03] Production.INFO: ==13953== Lock acquired, processing the job... [2025-03-03 05:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:26:03] Production.INFO: ==13957== Lock acquired, processing the job... [2025-03-03 05:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:26:03] Production.INFO: ==13961== Lock acquired, processing the job... [2025-03-03 05:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:26:03] Production.INFO: ==13955== Lock acquired, processing the job... [2025-03-03 05:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:26:03] Production.INFO: ==13963== Lock acquired, processing the job... [2025-03-03 05:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:26:03] Production.INFO: ==13959== Lock acquired, processing the job... [2025-03-03 05:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:26:04] Production.INFO: Account Balance Start. [2025-03-03 05:26:04] Production.INFO: CreateAllLog Start [2025-03-03 05:26:04] Production.INFO: 117 [2025-03-03 05:26:04] Production.INFO: count ==13 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:26:04] Production.INFO: count ==21 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596311') start [2025-03-03 05:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596311') end [2025-03-03 05:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:26:04] Production.INFO: 1 [2025-03-03 05:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: ==13955== Releasing lock... [2025-03-03 05:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:26:04] Production.ERROR: done [2025-03-03 05:26:04] Production.INFO: ==13963== Releasing lock... [2025-03-03 05:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.ERROR: done [2025-03-03 05:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:26:05] Production.INFO: Total Charge 0 [2025-03-03 05:26:05] Production.INFO: CreateAllLog End [2025-03-03 05:26:05] Production.INFO: Account Balance End. [2025-03-03 05:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:26:05] Production.INFO: ==13959== Releasing lock... [2025-03-03 05:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:26:11] Production.ERROR: CronJobId end10 [2025-03-03 05:26:11] Production.INFO: ==13957== Releasing lock... [2025-03-03 05:26:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:26:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:26:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:26:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:26:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:26:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:26:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:26:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:26:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:26:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:26:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:26:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:26:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:26:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:26:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:26:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:26:14] Production.INFO: call_cost start [2025-03-03 05:26:14] Production.INFO: call_cost end [2025-03-03 05:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:26:14] Production.INFO: ==13953== Releasing lock... [2025-03-03 05:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:26:16] Production.INFO: count ==409 [2025-03-03 05:26:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596313', 'tblTempUsageDetail_20' ) start [2025-03-03 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596313', 'tblTempUsageDetail_20' ) end [2025-03-03 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596313', 'tblTempVendorCDR_20' ) start [2025-03-03 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596313', 'tblTempVendorCDR_20' ) end [2025-03-03 05:26:16] Production.INFO: ProcessCDR(1,14596313,1,1,2) [2025-03-03 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596313', 'tblTempUsageDetail_20' ) start [2025-03-03 05:26:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596313', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:26:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:26:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:26:24] Production.INFO: ==13961== Releasing lock... [2025-03-03 05:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:27:01] Production.INFO: ==14022== Lock acquired, processing the job... [2025-03-03 10:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:27:01] Production.INFO: neon service started [2025-03-03 10:27:01] Production.INFO: neon service started [2025-03-03 10:27:01] Production.INFO: ==14022== Releasing lock... [2025-03-03 10:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:27:01] Production.INFO: ==14024== Lock acquired, processing the job... [2025-03-03 05:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:27:02] Production.INFO: ==14024== Releasing lock... [2025-03-03 05:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:27:02] Production.INFO: ==14026== Lock acquired, processing the job... [2025-03-03 10:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:27:02] Production.INFO: ==14026== Releasing lock... [2025-03-03 10:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:27:02] Production.INFO: ==14028== Lock acquired, processing the job... [2025-03-03 05:27:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:27:02] Production.INFO: ==14030== Lock acquired, processing the job... [2025-03-03 05:27:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:27:03] Production.INFO: ==14034== Lock acquired, processing the job... [2025-03-03 05:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:27:03] Production.INFO: Account Balance Start. [2025-03-03 05:27:03] Production.INFO: CreateAllLog Start [2025-03-03 05:27:03] Production.INFO: 117 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: ==14032== Lock acquired, processing the job... [2025-03-03 05:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: ==14038== Lock acquired, processing the job... [2025-03-03 05:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:27:03] Production.INFO: ==14030== Releasing lock... [2025-03-03 05:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: ==14036== Lock acquired, processing the job... [2025-03-03 05:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:27:03] Production.INFO: Date 2025-02-15 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-16 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: count ==13 [2025-03-03 05:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:27:03] Production.INFO: Date 2025-02-17 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: count ==21 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-18 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596317') start [2025-03-03 05:27:03] Production.INFO: Date 2025-02-19 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-20 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596317') end [2025-03-03 05:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:27:03] Production.INFO: 1 [2025-03-03 05:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:27:03] Production.INFO: Date 2025-02-21 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-22 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-23 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.INFO: ==14038== Releasing lock... [2025-03-03 05:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:27:03] Production.INFO: Date 2025-02-24 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:03] Production.ERROR: done [2025-03-03 05:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:27:03] Production.INFO: Date 2025-02-25 [2025-03-03 05:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.ERROR: done [2025-03-03 05:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:27:04] Production.INFO: Total Charge 0 [2025-03-03 05:27:04] Production.INFO: CreateAllLog End [2025-03-03 05:27:04] Production.INFO: Account Balance End. [2025-03-03 05:27:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:27:04] Production.INFO: ==14034== Releasing lock... [2025-03-03 05:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:27:10] Production.ERROR: CronJobId end10 [2025-03-03 05:27:10] Production.INFO: ==14032== Releasing lock... [2025-03-03 05:27:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:27:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:27:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:27:12] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:27:12] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:27:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:27:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:27:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:27:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:27:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:27:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:27:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:27:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:27:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:27:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:27:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:27:13] Production.INFO: call_cost start [2025-03-03 05:27:13] Production.INFO: call_cost end [2025-03-03 05:27:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:27:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:27:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:27:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:27:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:27:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:27:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:27:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:27:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:27:13] Production.INFO: ==14028== Releasing lock... [2025-03-03 05:27:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:27:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:27:16] Production.INFO: count ==409 [2025-03-03 05:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596318', 'tblTempUsageDetail_20' ) start [2025-03-03 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596318', 'tblTempUsageDetail_20' ) end [2025-03-03 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596318', 'tblTempVendorCDR_20' ) start [2025-03-03 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596318', 'tblTempVendorCDR_20' ) end [2025-03-03 05:27:16] Production.INFO: ProcessCDR(1,14596318,1,1,2) [2025-03-03 05:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596318', 'tblTempUsageDetail_20' ) start [2025-03-03 05:27:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596318', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:27:24] Production.INFO: ==14036== Releasing lock... [2025-03-03 05:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:28:02] Production.INFO: ==14093== Lock acquired, processing the job... [2025-03-03 10:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:28:02] Production.INFO: neon service started [2025-03-03 10:28:02] Production.INFO: neon service started [2025-03-03 10:28:02] Production.INFO: ==14093== Releasing lock... [2025-03-03 10:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:28:02] Production.INFO: ==14095== Lock acquired, processing the job... [2025-03-03 05:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:28:02] Production.INFO: ==14097== Lock acquired, processing the job... [2025-03-03 10:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:28:02] Production.INFO: ==14097== Releasing lock... [2025-03-03 10:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:28:03] Production.INFO: ==14095== Releasing lock... [2025-03-03 05:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:28:04] Production.INFO: ==14100== Lock acquired, processing the job... [2025-03-03 05:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:28:04] Production.INFO: ==14102== Lock acquired, processing the job... [2025-03-03 05:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:28:04] Production.INFO: ==14104== Lock acquired, processing the job... [2025-03-03 05:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:28:04] Production.INFO: ==14106== Lock acquired, processing the job... [2025-03-03 05:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:28:04] Production.INFO: ==14108== Lock acquired, processing the job... [2025-03-03 05:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:28:04] Production.INFO: ==14110== Lock acquired, processing the job... [2025-03-03 05:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:28:04] Production.INFO: Account Balance Start. [2025-03-03 05:28:04] Production.INFO: CreateAllLog Start [2025-03-03 05:28:04] Production.INFO: 117 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: count ==13 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:28:04] Production.INFO: count ==21 [2025-03-03 05:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596322') start [2025-03-03 05:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.ERROR: done [2025-03-03 05:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:28:04] Production.INFO: ==14102== Releasing lock... [2025-03-03 05:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596322') end [2025-03-03 05:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:28:04] Production.INFO: 1 [2025-03-03 05:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:04] Production.INFO: ==14110== Releasing lock... [2025-03-03 05:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:28:05] Production.ERROR: done [2025-03-03 05:28:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:28:05] Production.INFO: Total Charge 0 [2025-03-03 05:28:05] Production.INFO: CreateAllLog End [2025-03-03 05:28:05] Production.INFO: Account Balance End. [2025-03-03 05:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:28:05] Production.INFO: ==14106== Releasing lock... [2025-03-03 05:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:28:12] Production.ERROR: CronJobId end10 [2025-03-03 05:28:12] Production.INFO: ==14104== Releasing lock... [2025-03-03 05:28:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:28:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:28:15] Production.INFO: call_cost start [2025-03-03 05:28:15] Production.INFO: call_cost end [2025-03-03 05:28:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:28:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:28:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:28:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:28:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:28:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:28:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:28:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:28:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:28:15] Production.INFO: ==14100== Releasing lock... [2025-03-03 05:28:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:28:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:28:17] Production.INFO: count ==409 [2025-03-03 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596323', 'tblTempUsageDetail_20' ) start [2025-03-03 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596323', 'tblTempUsageDetail_20' ) end [2025-03-03 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596323', 'tblTempVendorCDR_20' ) start [2025-03-03 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596323', 'tblTempVendorCDR_20' ) end [2025-03-03 05:28:17] Production.INFO: ProcessCDR(1,14596323,1,1,2) [2025-03-03 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596323', 'tblTempUsageDetail_20' ) start [2025-03-03 05:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596323', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:28:24] Production.INFO: ==14108== Releasing lock... [2025-03-03 05:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:29:01] Production.INFO: ==14164== Lock acquired, processing the job... [2025-03-03 10:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:29:01] Production.INFO: neon service started [2025-03-03 10:29:01] Production.INFO: neon service started [2025-03-03 10:29:01] Production.INFO: ==14164== Releasing lock... [2025-03-03 10:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:29:02] Production.INFO: ==14166== Lock acquired, processing the job... [2025-03-03 05:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:29:02] Production.INFO: ==14166== Releasing lock... [2025-03-03 05:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:29:02] Production.INFO: ==14168== Lock acquired, processing the job... [2025-03-03 10:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:29:02] Production.INFO: ==14168== Releasing lock... [2025-03-03 10:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:29:03] Production.INFO: ==14170== Lock acquired, processing the job... [2025-03-03 05:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:29:03] Production.INFO: ==14176== Lock acquired, processing the job... [2025-03-03 05:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:29:03] Production.INFO: ==14172== Lock acquired, processing the job... [2025-03-03 05:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:29:03] Production.INFO: Account Balance Start. [2025-03-03 05:29:03] Production.INFO: CreateAllLog Start [2025-03-03 05:29:03] Production.INFO: 117 [2025-03-03 05:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:29:03] Production.INFO: ==14180== Lock acquired, processing the job... [2025-03-03 05:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:29:03] Production.INFO: ==14174== Lock acquired, processing the job... [2025-03-03 05:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:29:03] Production.INFO: ==14178== Lock acquired, processing the job... [2025-03-03 05:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.INFO: count ==13 [2025-03-03 05:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:29:03] Production.INFO: count ==21 [2025-03-03 05:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596327') start [2025-03-03 05:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 05:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: ==14172== Releasing lock... [2025-03-03 05:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596327') end [2025-03-03 05:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:29:04] Production.INFO: 1 [2025-03-03 05:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: ==14180== Releasing lock... [2025-03-03 05:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.ERROR: done [2025-03-03 05:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.ERROR: done [2025-03-03 05:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:29:04] Production.INFO: Total Charge 0 [2025-03-03 05:29:04] Production.INFO: CreateAllLog End [2025-03-03 05:29:04] Production.INFO: Account Balance End. [2025-03-03 05:29:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:29:04] Production.INFO: ==14176== Releasing lock... [2025-03-03 05:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:29:13] Production.ERROR: CronJobId end10 [2025-03-03 05:29:13] Production.INFO: ==14174== Releasing lock... [2025-03-03 05:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:29:14] Production.INFO: call_cost start [2025-03-03 05:29:14] Production.INFO: call_cost end [2025-03-03 05:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:29:14] Production.INFO: ==14170== Releasing lock... [2025-03-03 05:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:29:16] Production.INFO: count ==409 [2025-03-03 05:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596328', 'tblTempUsageDetail_20' ) start [2025-03-03 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596328', 'tblTempUsageDetail_20' ) end [2025-03-03 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596328', 'tblTempVendorCDR_20' ) start [2025-03-03 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596328', 'tblTempVendorCDR_20' ) end [2025-03-03 05:29:16] Production.INFO: ProcessCDR(1,14596328,1,1,2) [2025-03-03 05:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596328', 'tblTempUsageDetail_20' ) start [2025-03-03 05:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596328', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:29:24] Production.INFO: ==14178== Releasing lock... [2025-03-03 05:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:30:02] Production.INFO: ==14257== Lock acquired, processing the job... [2025-03-03 10:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:30:02] Production.INFO: neon service started [2025-03-03 10:30:02] Production.INFO: neon service started [2025-03-03 10:30:02] Production.INFO: ==14257== Releasing lock... [2025-03-03 10:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:30:02] Production.INFO: ==14259== Lock acquired, processing the job... [2025-03-03 05:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:30:02] Production.INFO: ==14261== Lock acquired, processing the job... [2025-03-03 10:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:30:03] Production.INFO: ==14261== Releasing lock... [2025-03-03 10:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:30:03] Production.INFO: ==14259== Releasing lock... [2025-03-03 05:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:30:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:30:04] Production.INFO: ==14266== Lock acquired, processing the job... [2025-03-03 05:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:30:04] Production.INFO: ==14273== Lock acquired, processing the job... [2025-03-03 05:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:30:04] Production.INFO: ==14275== Lock acquired, processing the job... [2025-03-03 05:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:30:04] Production.INFO: ==14264== Lock acquired, processing the job... [2025-03-03 05:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 05:30:04] Production.INFO: ==14268== Lock acquired, processing the job... [2025-03-03 05:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:30:04] Production.INFO: Account Balance Start. [2025-03-03 05:30:04] Production.INFO: CreateAllLog Start [2025-03-03 05:30:04] Production.INFO: 117 [2025-03-03 05:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:30:04] Production.INFO: ==14270== Lock acquired, processing the job... [2025-03-03 05:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:30:04] Production.ERROR: CronJob PID - 14266 [2025-03-03 05:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 05:30:04] Production.ERROR: CronJob ID - 5 [2025-03-03 05:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:30:00 [2025-03-03 05:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:30:04] Production.ERROR: CronJob PID - 14268 [2025-03-03 05:30:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 05:30:04] Production.ERROR: CronJob ID - 7 [2025-03-03 05:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:30:00 [2025-03-03 05:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:30:04] Production.ERROR: CronJob PID - 14273 [2025-03-03 05:30:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 05:30:04] Production.ERROR: CronJob ID - 12 [2025-03-03 05:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:30:00 [2025-03-03 05:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:30:04] Production.ERROR: CronJob PID - 14275 [2025-03-03 05:30:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 05:30:04] Production.ERROR: CronJob ID - 16 [2025-03-03 05:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:30:00 [2025-03-03 05:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 05:30:04] Production.INFO: ==14264== Releasing lock... [2025-03-03 05:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 05:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:30:05] Production.INFO: Date 2025-02-10 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-11 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-12 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-13 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-14 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: ==14279== Lock acquired, processing the job... [2025-03-03 05:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:30:05] Production.INFO: ==14277== Lock acquired, processing the job... [2025-03-03 05:30:05] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 05:30:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:30:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:30:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:30:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: count ==13 [2025-03-03 05:30:05] Production.ERROR: done [2025-03-03 05:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:30:05] Production.INFO: ==14268== Releasing lock... [2025-03-03 05:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:30:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:30:05] Production.INFO: count ==21 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596332') start [2025-03-03 05:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:30:05] Production.ERROR: done [2025-03-03 05:30:05] Production.ERROR: done [2025-03-03 05:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.INFO: Date 2025-02-26 [2025-03-03 05:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.INFO: Date 2025-02-27 [2025-03-03 05:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 05:30:06] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596333', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 05:30:06] Production.ERROR: PBX CALL prc_importPBXExtension('14596332') end [2025-03-03 05:30:06] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:30:06] Production.INFO: 1 [2025-03-03 05:30:06] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:30:06] Production.INFO: ==14279== Releasing lock... [2025-03-03 05:30:06] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:30:06] Production.INFO: Date 2025-02-28 [2025-03-03 05:30:06] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.INFO: Date 2025-03-01 [2025-03-03 05:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 05:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 05:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 05:30:06] Production.INFO: Total Charge 0 [2025-03-03 05:30:06] Production.INFO: CreateAllLog End [2025-03-03 05:30:06] Production.INFO: Account Balance End. [2025-03-03 05:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 05:30:06] Production.INFO: ==14273== Releasing lock... [2025-03-03 05:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:30:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596333', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 05:30:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 05:30:10] Production.INFO: ProcessCDR(1,14596333,1,1,2) [2025-03-03 05:30:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596333,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:30:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596333,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:30:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 05:30:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 05:30:11] Production.INFO: ==14277== Releasing lock... [2025-03-03 05:30:11] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 05:30:11] Production.INFO: 26 MB #Memory Used# [2025-03-03 05:30:15] Production.ERROR: CronJobId end10 [2025-03-03 05:30:15] Production.INFO: ==14270== Releasing lock... [2025-03-03 05:30:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:30:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:30:17] Production.INFO: call_cost start [2025-03-03 05:30:17] Production.INFO: call_cost end [2025-03-03 05:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:30:17] Production.INFO: ==14266== Releasing lock... [2025-03-03 05:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:30:17] Production.INFO: count ==409 [2025-03-03 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596334', 'tblTempUsageDetail_20' ) start [2025-03-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596334', 'tblTempUsageDetail_20' ) end [2025-03-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596334', 'tblTempVendorCDR_20' ) start [2025-03-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596334', 'tblTempVendorCDR_20' ) end [2025-03-03 05:30:18] Production.INFO: ProcessCDR(1,14596334,1,1,2) [2025-03-03 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596334', 'tblTempUsageDetail_20' ) start [2025-03-03 05:30:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596334', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:30:25] Production.INFO: ==14275== Releasing lock... [2025-03-03 05:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:30:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:31:01] Production.INFO: ==14371== Lock acquired, processing the job... [2025-03-03 10:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:31:01] Production.INFO: neon service started [2025-03-03 10:31:01] Production.INFO: neon service started [2025-03-03 10:31:01] Production.INFO: ==14371== Releasing lock... [2025-03-03 10:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:31:01] Production.INFO: ==14373== Lock acquired, processing the job... [2025-03-03 05:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:31:02] Production.INFO: ==14373== Releasing lock... [2025-03-03 05:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:31:02] Production.INFO: ==14375== Lock acquired, processing the job... [2025-03-03 10:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:31:02] Production.INFO: ==14375== Releasing lock... [2025-03-03 10:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:31:03] Production.INFO: ==14381== Lock acquired, processing the job... [2025-03-03 05:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:31:03] Production.INFO: ==14377== Lock acquired, processing the job... [2025-03-03 05:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:31:03] Production.INFO: ==14385== Lock acquired, processing the job... [2025-03-03 05:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:31:03] Production.INFO: ==14379== Lock acquired, processing the job... [2025-03-03 05:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:31:03] Production.INFO: ==14388== Lock acquired, processing the job... [2025-03-03 05:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:31:03] Production.INFO: ==14383== Lock acquired, processing the job... [2025-03-03 05:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:31:03] Production.INFO: Account Balance Start. [2025-03-03 05:31:03] Production.INFO: CreateAllLog Start [2025-03-03 05:31:03] Production.INFO: count ==13 [2025-03-03 05:31:03] Production.INFO: 117 [2025-03-03 05:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:31:03] Production.INFO: count ==21 [2025-03-03 05:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596336') start [2025-03-03 05:31:04] Production.ERROR: done [2025-03-03 05:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596336') end [2025-03-03 05:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:31:04] Production.INFO: 1 [2025-03-03 05:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: ==14388== Releasing lock... [2025-03-03 05:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:31:04] Production.ERROR: done [2025-03-03 05:31:04] Production.INFO: ==14379== Releasing lock... [2025-03-03 05:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:31:05] Production.INFO: Total Charge 0 [2025-03-03 05:31:05] Production.INFO: CreateAllLog End [2025-03-03 05:31:05] Production.INFO: Account Balance End. [2025-03-03 05:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:31:05] Production.INFO: ==14383== Releasing lock... [2025-03-03 05:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:31:12] Production.ERROR: CronJobId end10 [2025-03-03 05:31:12] Production.INFO: ==14381== Releasing lock... [2025-03-03 05:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:31:14] Production.INFO: call_cost start [2025-03-03 05:31:14] Production.INFO: call_cost end [2025-03-03 05:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:31:14] Production.INFO: ==14377== Releasing lock... [2025-03-03 05:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:31:16] Production.INFO: count ==409 [2025-03-03 05:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596339', 'tblTempUsageDetail_20' ) start [2025-03-03 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596339', 'tblTempUsageDetail_20' ) end [2025-03-03 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596339', 'tblTempVendorCDR_20' ) start [2025-03-03 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596339', 'tblTempVendorCDR_20' ) end [2025-03-03 05:31:16] Production.INFO: ProcessCDR(1,14596339,1,1,2) [2025-03-03 05:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596339', 'tblTempUsageDetail_20' ) start [2025-03-03 05:31:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596339', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:31:24] Production.INFO: ==14385== Releasing lock... [2025-03-03 05:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:31:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:32:02] Production.INFO: ==14441== Lock acquired, processing the job... [2025-03-03 10:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:32:02] Production.INFO: neon service started [2025-03-03 10:32:02] Production.INFO: neon service started [2025-03-03 10:32:02] Production.INFO: ==14441== Releasing lock... [2025-03-03 10:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:32:02] Production.INFO: ==14443== Lock acquired, processing the job... [2025-03-03 05:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:32:02] Production.INFO: ==14445== Lock acquired, processing the job... [2025-03-03 10:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:32:02] Production.INFO: ==14445== Releasing lock... [2025-03-03 10:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:32:03] Production.INFO: ==14443== Releasing lock... [2025-03-03 05:32:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:32:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:32:04] Production.INFO: ==14452== Lock acquired, processing the job... [2025-03-03 05:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:32:04] Production.INFO: ==14456== Lock acquired, processing the job... [2025-03-03 05:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:32:04] Production.INFO: ==14448== Lock acquired, processing the job... [2025-03-03 05:32:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:32:04] Production.INFO: ==14450== Lock acquired, processing the job... [2025-03-03 05:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:32:04] Production.INFO: ==14454== Lock acquired, processing the job... [2025-03-03 05:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:32:04] Production.INFO: ==14458== Lock acquired, processing the job... [2025-03-03 05:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:32:04] Production.ERROR: done [2025-03-03 05:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:32:04] Production.INFO: Account Balance Start. [2025-03-03 05:32:04] Production.INFO: CreateAllLog Start [2025-03-03 05:32:04] Production.INFO: 117 [2025-03-03 05:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:32:04] Production.INFO: count ==13 [2025-03-03 05:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:32:04] Production.ERROR: done [2025-03-03 05:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:32:04] Production.INFO: count ==21 [2025-03-03 05:32:04] Production.INFO: ==14450== Releasing lock... [2025-03-03 05:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596343') start [2025-03-03 05:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596343') end [2025-03-03 05:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:32:04] Production.INFO: 1 [2025-03-03 05:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:04] Production.INFO: ==14458== Releasing lock... [2025-03-03 05:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:32:05] Production.INFO: Date 2025-02-12 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-13 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-14 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-15 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:32:05] Production.INFO: Total Charge 0 [2025-03-03 05:32:05] Production.INFO: CreateAllLog End [2025-03-03 05:32:05] Production.INFO: Account Balance End. [2025-03-03 05:32:06] Production.ERROR: CronJobId end 12 [2025-03-03 05:32:06] Production.INFO: ==14454== Releasing lock... [2025-03-03 05:32:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:32:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:32:12] Production.ERROR: CronJobId end10 [2025-03-03 05:32:12] Production.INFO: ==14452== Releasing lock... [2025-03-03 05:32:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:32:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:32:15] Production.INFO: call_cost start [2025-03-03 05:32:15] Production.INFO: call_cost end [2025-03-03 05:32:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:32:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:32:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:32:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:32:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:32:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:32:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:32:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:32:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:32:15] Production.INFO: ==14448== Releasing lock... [2025-03-03 05:32:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:32:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:32:16] Production.INFO: count ==409 [2025-03-03 05:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596344', 'tblTempUsageDetail_20' ) start [2025-03-03 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596344', 'tblTempUsageDetail_20' ) end [2025-03-03 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596344', 'tblTempVendorCDR_20' ) start [2025-03-03 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596344', 'tblTempVendorCDR_20' ) end [2025-03-03 05:32:17] Production.INFO: ProcessCDR(1,14596344,1,1,2) [2025-03-03 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596344', 'tblTempUsageDetail_20' ) start [2025-03-03 05:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596344', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:32:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:32:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:32:25] Production.INFO: ==14456== Releasing lock... [2025-03-03 05:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:32:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:33:01] Production.INFO: ==14512== Lock acquired, processing the job... [2025-03-03 10:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:33:01] Production.INFO: neon service started [2025-03-03 10:33:01] Production.INFO: neon service started [2025-03-03 10:33:01] Production.INFO: ==14512== Releasing lock... [2025-03-03 10:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:33:02] Production.INFO: ==14514== Lock acquired, processing the job... [2025-03-03 05:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:33:02] Production.INFO: ==14514== Releasing lock... [2025-03-03 05:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:33:02] Production.INFO: ==14516== Lock acquired, processing the job... [2025-03-03 10:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:33:02] Production.INFO: ==14516== Releasing lock... [2025-03-03 10:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:33:03] Production.INFO: ==14518== Lock acquired, processing the job... [2025-03-03 05:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:33:03] Production.INFO: ==14524== Lock acquired, processing the job... [2025-03-03 05:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:33:03] Production.INFO: ==14520== Lock acquired, processing the job... [2025-03-03 05:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:33:03] Production.INFO: ==14522== Lock acquired, processing the job... [2025-03-03 05:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:33:03] Production.INFO: ==14528== Lock acquired, processing the job... [2025-03-03 05:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:33:03] Production.INFO: ==14526== Lock acquired, processing the job... [2025-03-03 05:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:33:03] Production.INFO: Account Balance Start. [2025-03-03 05:33:03] Production.INFO: CreateAllLog Start [2025-03-03 05:33:03] Production.INFO: 117 [2025-03-03 05:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:33:03] Production.INFO: count ==13 [2025-03-03 05:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:03] Production.INFO: count ==21 [2025-03-03 05:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596347') start [2025-03-03 05:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596347') end [2025-03-03 05:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:33:03] Production.INFO: 1 [2025-03-03 05:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:03] Production.INFO: ==14528== Releasing lock... [2025-03-03 05:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:33:04] Production.ERROR: done [2025-03-03 05:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:33:04] Production.INFO: ==14520== Releasing lock... [2025-03-03 05:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.ERROR: done [2025-03-03 05:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:33:04] Production.INFO: Total Charge 0 [2025-03-03 05:33:04] Production.INFO: CreateAllLog End [2025-03-03 05:33:04] Production.INFO: Account Balance End. [2025-03-03 05:33:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:33:04] Production.INFO: ==14524== Releasing lock... [2025-03-03 05:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:33:11] Production.ERROR: CronJobId end10 [2025-03-03 05:33:11] Production.INFO: ==14522== Releasing lock... [2025-03-03 05:33:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:33:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:33:14] Production.INFO: call_cost start [2025-03-03 05:33:14] Production.INFO: call_cost end [2025-03-03 05:33:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:33:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:33:15] Production.INFO: ==14518== Releasing lock... [2025-03-03 05:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:33:16] Production.INFO: count ==409 [2025-03-03 05:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596349', 'tblTempUsageDetail_20' ) start [2025-03-03 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596349', 'tblTempUsageDetail_20' ) end [2025-03-03 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596349', 'tblTempVendorCDR_20' ) start [2025-03-03 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596349', 'tblTempVendorCDR_20' ) end [2025-03-03 05:33:16] Production.INFO: ProcessCDR(1,14596349,1,1,2) [2025-03-03 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596349', 'tblTempUsageDetail_20' ) start [2025-03-03 05:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596349', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:33:24] Production.INFO: ==14526== Releasing lock... [2025-03-03 05:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:33:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:34:02] Production.INFO: ==14589== Lock acquired, processing the job... [2025-03-03 10:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:34:02] Production.INFO: neon service started [2025-03-03 10:34:02] Production.INFO: neon service started [2025-03-03 10:34:02] Production.INFO: ==14589== Releasing lock... [2025-03-03 10:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:34:02] Production.INFO: ==14593== Lock acquired, processing the job... [2025-03-03 10:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:34:02] Production.INFO: ==14593== Releasing lock... [2025-03-03 10:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:34:02] Production.INFO: ==14591== Lock acquired, processing the job... [2025-03-03 05:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:34:02] Production.INFO: ==14591== Releasing lock... [2025-03-03 05:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:34:03] Production.INFO: ==14596== Lock acquired, processing the job... [2025-03-03 05:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:34:03] Production.INFO: ==14606== Lock acquired, processing the job... [2025-03-03 05:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:34:04] Production.INFO: count ==13 [2025-03-03 05:34:04] Production.INFO: ==14598== Lock acquired, processing the job... [2025-03-03 05:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:34:04] Production.INFO: count ==21 [2025-03-03 05:34:04] Production.INFO: ==14602== Lock acquired, processing the job... [2025-03-03 05:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:34:04] Production.INFO: ==14600== Lock acquired, processing the job... [2025-03-03 05:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596351') start [2025-03-03 05:34:04] Production.INFO: ==14604== Lock acquired, processing the job... [2025-03-03 05:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596351') end [2025-03-03 05:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:34:04] Production.INFO: 1 [2025-03-03 05:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:34:04] Production.INFO: Account Balance Start. [2025-03-03 05:34:04] Production.INFO: CreateAllLog Start [2025-03-03 05:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:34:04] Production.INFO: ==14606== Releasing lock... [2025-03-03 05:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:34:04] Production.INFO: 117 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: ==14598== Releasing lock... [2025-03-03 05:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.ERROR: done [2025-03-03 05:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.ERROR: done [2025-03-03 05:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:34:05] Production.INFO: Total Charge 0 [2025-03-03 05:34:05] Production.INFO: CreateAllLog End [2025-03-03 05:34:05] Production.INFO: Account Balance End. [2025-03-03 05:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:34:05] Production.INFO: ==14602== Releasing lock... [2025-03-03 05:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:34:12] Production.ERROR: CronJobId end10 [2025-03-03 05:34:12] Production.INFO: ==14600== Releasing lock... [2025-03-03 05:34:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:34:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:34:15] Production.INFO: call_cost start [2025-03-03 05:34:15] Production.INFO: call_cost end [2025-03-03 05:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:34:15] Production.INFO: ==14596== Releasing lock... [2025-03-03 05:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:34:16] Production.INFO: count ==409 [2025-03-03 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596354', 'tblTempUsageDetail_20' ) start [2025-03-03 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596354', 'tblTempUsageDetail_20' ) end [2025-03-03 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596354', 'tblTempVendorCDR_20' ) start [2025-03-03 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596354', 'tblTempVendorCDR_20' ) end [2025-03-03 05:34:17] Production.INFO: ProcessCDR(1,14596354,1,1,2) [2025-03-03 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596354', 'tblTempUsageDetail_20' ) start [2025-03-03 05:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596354', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:34:24] Production.INFO: ==14604== Releasing lock... [2025-03-03 05:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:35:01] Production.INFO: ==14659== Lock acquired, processing the job... [2025-03-03 10:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:35:01] Production.INFO: neon service started [2025-03-03 10:35:01] Production.INFO: neon service started [2025-03-03 10:35:01] Production.INFO: ==14659== Releasing lock... [2025-03-03 10:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:35:01] Production.INFO: ==14663== Lock acquired, processing the job... [2025-03-03 10:35:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:35:01] Production.INFO: ==14663== Releasing lock... [2025-03-03 10:35:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:35:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:35:02] Production.INFO: ==14661== Lock acquired, processing the job... [2025-03-03 05:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:35:02] Production.INFO: ==14661== Releasing lock... [2025-03-03 05:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:35:03] Production.INFO: ==14669== Lock acquired, processing the job... [2025-03-03 05:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:35:03] Production.INFO: ==14672== Lock acquired, processing the job... [2025-03-03 05:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:35:03] Production.INFO: ==14665== Lock acquired, processing the job... [2025-03-03 05:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:35:03] Production.INFO: Account Balance Start. [2025-03-03 05:35:03] Production.INFO: CreateAllLog Start [2025-03-03 05:35:03] Production.INFO: 117 [2025-03-03 05:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: ==14667== Lock acquired, processing the job... [2025-03-03 05:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:35:03] Production.INFO: ==14674== Lock acquired, processing the job... [2025-03-03 05:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:35:03] Production.INFO: ==14676== Lock acquired, processing the job... [2025-03-03 05:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:35:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:35:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:35:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:35:03] Production.INFO: count ==13 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:35:03] Production.INFO: count ==21 [2025-03-03 05:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596358') start [2025-03-03 05:35:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: Date 2025-02-15 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:03] Production.INFO: Date 2025-02-16 [2025-03-03 05:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596358') end [2025-03-03 05:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:35:04] Production.INFO: 1 [2025-03-03 05:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.ERROR: done [2025-03-03 05:35:04] Production.INFO: ==14676== Releasing lock... [2025-03-03 05:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: ==14667== Releasing lock... [2025-03-03 05:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.ERROR: done [2025-03-03 05:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:35:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:35:04] Production.INFO: Total Charge 0 [2025-03-03 05:35:04] Production.INFO: CreateAllLog End [2025-03-03 05:35:04] Production.INFO: Account Balance End. [2025-03-03 05:35:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:35:04] Production.INFO: ==14672== Releasing lock... [2025-03-03 05:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:35:11] Production.ERROR: CronJobId end10 [2025-03-03 05:35:11] Production.INFO: ==14669== Releasing lock... [2025-03-03 05:35:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:35:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:35:14] Production.INFO: call_cost start [2025-03-03 05:35:14] Production.INFO: call_cost end [2025-03-03 05:35:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:35:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:35:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:35:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:35:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:35:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:35:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:35:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:35:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:35:14] Production.INFO: ==14665== Releasing lock... [2025-03-03 05:35:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:35:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:35:16] Production.INFO: count ==409 [2025-03-03 05:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596359', 'tblTempUsageDetail_20' ) start [2025-03-03 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596359', 'tblTempUsageDetail_20' ) end [2025-03-03 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596359', 'tblTempVendorCDR_20' ) start [2025-03-03 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596359', 'tblTempVendorCDR_20' ) end [2025-03-03 05:35:16] Production.INFO: ProcessCDR(1,14596359,1,1,2) [2025-03-03 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596359', 'tblTempUsageDetail_20' ) start [2025-03-03 05:35:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596359', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:35:24] Production.INFO: ==14674== Releasing lock... [2025-03-03 05:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:36:01] Production.INFO: ==14730== Lock acquired, processing the job... [2025-03-03 10:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:36:01] Production.INFO: neon service started [2025-03-03 10:36:01] Production.INFO: neon service started [2025-03-03 10:36:01] Production.INFO: ==14730== Releasing lock... [2025-03-03 10:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:36:02] Production.INFO: ==14734== Lock acquired, processing the job... [2025-03-03 10:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:36:02] Production.INFO: ==14734== Releasing lock... [2025-03-03 10:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:36:02] Production.INFO: ==14732== Lock acquired, processing the job... [2025-03-03 05:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:36:02] Production.INFO: ==14732== Releasing lock... [2025-03-03 05:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:36:03] Production.INFO: ==14739== Lock acquired, processing the job... [2025-03-03 05:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:36:03] Production.INFO: ==14741== Lock acquired, processing the job... [2025-03-03 05:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:36:03] Production.INFO: ==14745== Lock acquired, processing the job... [2025-03-03 05:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:36:03] Production.INFO: ==14737== Lock acquired, processing the job... [2025-03-03 05:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:36:03] Production.INFO: ==14739== Releasing lock... [2025-03-03 05:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:36:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:36:03] Production.INFO: ==14747== Lock acquired, processing the job... [2025-03-03 05:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:36:03] Production.INFO: ==14743== Lock acquired, processing the job... [2025-03-03 05:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:36:04] Production.ERROR: done [2025-03-03 05:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:36:04] Production.INFO: Account Balance Start. [2025-03-03 05:36:04] Production.INFO: CreateAllLog Start [2025-03-03 05:36:04] Production.INFO: 117 [2025-03-03 05:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:36:04] Production.INFO: count ==13 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.ERROR: done [2025-03-03 05:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:36:04] Production.INFO: count ==21 [2025-03-03 05:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596362') start [2025-03-03 05:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596362') end [2025-03-03 05:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:36:04] Production.INFO: 1 [2025-03-03 05:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:36:04] Production.INFO: ==14747== Releasing lock... [2025-03-03 05:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:36:05] Production.INFO: Total Charge 0 [2025-03-03 05:36:05] Production.INFO: CreateAllLog End [2025-03-03 05:36:05] Production.INFO: Account Balance End. [2025-03-03 05:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:36:05] Production.INFO: ==14743== Releasing lock... [2025-03-03 05:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:36:11] Production.ERROR: CronJobId end10 [2025-03-03 05:36:11] Production.INFO: ==14741== Releasing lock... [2025-03-03 05:36:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:36:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:36:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:36:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:36:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:36:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:36:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:36:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:36:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:36:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:36:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:36:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:36:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:36:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:36:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:36:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:36:13] Production.INFO: call_cost start [2025-03-03 05:36:13] Production.INFO: call_cost end [2025-03-03 05:36:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:36:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:36:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:36:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:36:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:36:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:36:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:36:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:36:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:36:13] Production.INFO: ==14737== Releasing lock... [2025-03-03 05:36:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:36:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:36:16] Production.INFO: count ==409 [2025-03-03 05:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596364', 'tblTempUsageDetail_20' ) start [2025-03-03 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596364', 'tblTempUsageDetail_20' ) end [2025-03-03 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596364', 'tblTempVendorCDR_20' ) start [2025-03-03 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596364', 'tblTempVendorCDR_20' ) end [2025-03-03 05:36:16] Production.INFO: ProcessCDR(1,14596364,1,1,2) [2025-03-03 05:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596364', 'tblTempUsageDetail_20' ) start [2025-03-03 05:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596364', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:36:24] Production.INFO: ==14745== Releasing lock... [2025-03-03 05:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:37:02] Production.INFO: ==14800== Lock acquired, processing the job... [2025-03-03 10:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:37:02] Production.INFO: neon service started [2025-03-03 10:37:02] Production.INFO: neon service started [2025-03-03 10:37:02] Production.INFO: ==14800== Releasing lock... [2025-03-03 10:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:37:02] Production.INFO: ==14802== Lock acquired, processing the job... [2025-03-03 05:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:37:03] Production.INFO: ==14802== Releasing lock... [2025-03-03 05:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:37:03] Production.INFO: ==14804== Lock acquired, processing the job... [2025-03-03 10:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:37:03] Production.INFO: ==14804== Releasing lock... [2025-03-03 10:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:37:03] Production.INFO: ==14807== Lock acquired, processing the job... [2025-03-03 05:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:37:03] Production.INFO: ==14809== Lock acquired, processing the job... [2025-03-03 05:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:37:03] Production.INFO: ==14811== Lock acquired, processing the job... [2025-03-03 05:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:37:04] Production.INFO: ==14809== Releasing lock... [2025-03-03 05:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:37:04] Production.INFO: ==14813== Lock acquired, processing the job... [2025-03-03 05:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:37:04] Production.INFO: ==14817== Lock acquired, processing the job... [2025-03-03 05:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:37:04] Production.INFO: ==14815== Lock acquired, processing the job... [2025-03-03 05:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:37:04] Production.INFO: Account Balance Start. [2025-03-03 05:37:04] Production.INFO: CreateAllLog Start [2025-03-03 05:37:04] Production.INFO: 117 [2025-03-03 05:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:37:04] Production.INFO: count ==13 [2025-03-03 05:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:37:04] Production.INFO: count ==21 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596367') start [2025-03-03 05:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596367') end [2025-03-03 05:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:37:04] Production.INFO: 1 [2025-03-03 05:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.INFO: ==14817== Releasing lock... [2025-03-03 05:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:37:04] Production.ERROR: done [2025-03-03 05:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.ERROR: done [2025-03-03 05:37:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:37:05] Production.INFO: Total Charge 0 [2025-03-03 05:37:05] Production.INFO: CreateAllLog End [2025-03-03 05:37:05] Production.INFO: Account Balance End. [2025-03-03 05:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:37:05] Production.INFO: ==14813== Releasing lock... [2025-03-03 05:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:37:11] Production.ERROR: CronJobId end10 [2025-03-03 05:37:11] Production.INFO: ==14811== Releasing lock... [2025-03-03 05:37:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:37:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:37:15] Production.INFO: call_cost start [2025-03-03 05:37:15] Production.INFO: call_cost end [2025-03-03 05:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:37:15] Production.INFO: ==14807== Releasing lock... [2025-03-03 05:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:37:17] Production.INFO: count ==409 [2025-03-03 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596369', 'tblTempUsageDetail_20' ) start [2025-03-03 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596369', 'tblTempUsageDetail_20' ) end [2025-03-03 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596369', 'tblTempVendorCDR_20' ) start [2025-03-03 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596369', 'tblTempVendorCDR_20' ) end [2025-03-03 05:37:17] Production.INFO: ProcessCDR(1,14596369,1,1,2) [2025-03-03 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596369', 'tblTempUsageDetail_20' ) start [2025-03-03 05:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596369', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:37:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:37:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:37:25] Production.INFO: ==14815== Releasing lock... [2025-03-03 05:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:37:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:38:01] Production.INFO: ==14872== Lock acquired, processing the job... [2025-03-03 10:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:38:01] Production.INFO: neon service started [2025-03-03 10:38:01] Production.INFO: neon service started [2025-03-03 10:38:01] Production.INFO: ==14872== Releasing lock... [2025-03-03 10:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:38:02] Production.INFO: ==14874== Lock acquired, processing the job... [2025-03-03 05:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:38:02] Production.INFO: ==14874== Releasing lock... [2025-03-03 05:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:38:02] Production.INFO: ==14876== Lock acquired, processing the job... [2025-03-03 10:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:38:02] Production.INFO: ==14876== Releasing lock... [2025-03-03 10:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:38:03] Production.INFO: ==14889== Lock acquired, processing the job... [2025-03-03 05:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:38:03] Production.INFO: ==14886== Lock acquired, processing the job... [2025-03-03 05:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:38:03] Production.INFO: ==14878== Lock acquired, processing the job... [2025-03-03 05:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:38:03] Production.INFO: count ==13 [2025-03-03 05:38:03] Production.INFO: ==14880== Lock acquired, processing the job... [2025-03-03 05:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:38:03] Production.INFO: count ==21 [2025-03-03 05:38:03] Production.INFO: ==14882== Lock acquired, processing the job... [2025-03-03 05:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:38:03] Production.INFO: ==14884== Lock acquired, processing the job... [2025-03-03 05:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596370') start [2025-03-03 05:38:03] Production.INFO: Account Balance Start. [2025-03-03 05:38:03] Production.INFO: CreateAllLog Start [2025-03-03 05:38:03] Production.INFO: 117 [2025-03-03 05:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:38:03] Production.ERROR: done [2025-03-03 05:38:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596370') end [2025-03-03 05:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:38:04] Production.INFO: 1 [2025-03-03 05:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: ==14889== Releasing lock... [2025-03-03 05:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.ERROR: done [2025-03-03 05:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: ==14880== Releasing lock... [2025-03-03 05:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:38:04] Production.INFO: Total Charge 0 [2025-03-03 05:38:04] Production.INFO: CreateAllLog End [2025-03-03 05:38:05] Production.INFO: Account Balance End. [2025-03-03 05:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:38:05] Production.INFO: ==14884== Releasing lock... [2025-03-03 05:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:38:12] Production.ERROR: CronJobId end10 [2025-03-03 05:38:12] Production.INFO: ==14882== Releasing lock... [2025-03-03 05:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:38:13] Production.INFO: call_cost start [2025-03-03 05:38:13] Production.INFO: call_cost end [2025-03-03 05:38:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:38:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:38:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:38:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:38:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:38:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:38:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:38:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:38:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:38:13] Production.INFO: ==14878== Releasing lock... [2025-03-03 05:38:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:38:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:38:16] Production.INFO: count ==409 [2025-03-03 05:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596374', 'tblTempUsageDetail_20' ) start [2025-03-03 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596374', 'tblTempUsageDetail_20' ) end [2025-03-03 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596374', 'tblTempVendorCDR_20' ) start [2025-03-03 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596374', 'tblTempVendorCDR_20' ) end [2025-03-03 05:38:16] Production.INFO: ProcessCDR(1,14596374,1,1,2) [2025-03-03 05:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596374', 'tblTempUsageDetail_20' ) start [2025-03-03 05:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596374', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:38:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:38:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:38:23] Production.INFO: ==14886== Releasing lock... [2025-03-03 05:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:38:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:39:02] Production.INFO: ==14941== Lock acquired, processing the job... [2025-03-03 10:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:39:02] Production.INFO: neon service started [2025-03-03 10:39:02] Production.INFO: neon service started [2025-03-03 10:39:02] Production.INFO: ==14941== Releasing lock... [2025-03-03 10:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:39:02] Production.INFO: ==14943== Lock acquired, processing the job... [2025-03-03 05:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:39:02] Production.INFO: ==14943== Releasing lock... [2025-03-03 05:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:39:03] Production.INFO: ==14945== Lock acquired, processing the job... [2025-03-03 10:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:39:03] Production.INFO: ==14945== Releasing lock... [2025-03-03 10:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:39:03] Production.INFO: ==14952== Lock acquired, processing the job... [2025-03-03 05:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:39:03] Production.INFO: ==14954== Lock acquired, processing the job... [2025-03-03 05:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:39:03] Production.INFO: ==14950== Lock acquired, processing the job... [2025-03-03 05:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:39:04] Production.INFO: ==14948== Lock acquired, processing the job... [2025-03-03 05:39:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:39:04] Production.INFO: Account Balance Start. [2025-03-03 05:39:04] Production.INFO: CreateAllLog Start [2025-03-03 05:39:04] Production.INFO: 117 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: ==14956== Lock acquired, processing the job... [2025-03-03 05:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: ==14958== Lock acquired, processing the job... [2025-03-03 05:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: ==14950== Releasing lock... [2025-03-03 05:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: count ==13 [2025-03-03 05:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:39:04] Production.INFO: count ==21 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596378') start [2025-03-03 05:39:04] Production.ERROR: done [2025-03-03 05:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596378') end [2025-03-03 05:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:39:04] Production.INFO: 1 [2025-03-03 05:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.INFO: ==14958== Releasing lock... [2025-03-03 05:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.ERROR: done [2025-03-03 05:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:39:05] Production.INFO: Total Charge 0 [2025-03-03 05:39:05] Production.INFO: CreateAllLog End [2025-03-03 05:39:05] Production.INFO: Account Balance End. [2025-03-03 05:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:39:05] Production.INFO: ==14954== Releasing lock... [2025-03-03 05:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:39:11] Production.ERROR: CronJobId end10 [2025-03-03 05:39:11] Production.INFO: ==14952== Releasing lock... [2025-03-03 05:39:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:39:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:39:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:39:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:39:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:39:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:39:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:39:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:39:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:39:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:39:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:39:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:39:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:39:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:39:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:39:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:39:15] Production.INFO: call_cost start [2025-03-03 05:39:15] Production.INFO: call_cost end [2025-03-03 05:39:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:39:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:39:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:39:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:39:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:39:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:39:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:39:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:39:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:39:15] Production.INFO: ==14948== Releasing lock... [2025-03-03 05:39:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:39:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:39:16] Production.INFO: count ==409 [2025-03-03 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596379', 'tblTempUsageDetail_20' ) start [2025-03-03 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596379', 'tblTempUsageDetail_20' ) end [2025-03-03 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596379', 'tblTempVendorCDR_20' ) start [2025-03-03 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596379', 'tblTempVendorCDR_20' ) end [2025-03-03 05:39:17] Production.INFO: ProcessCDR(1,14596379,1,1,2) [2025-03-03 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596379', 'tblTempUsageDetail_20' ) start [2025-03-03 05:39:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596379', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:39:24] Production.INFO: ==14956== Releasing lock... [2025-03-03 05:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:39:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:40:01] Production.INFO: ==15017== Lock acquired, processing the job... [2025-03-03 10:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:40:01] Production.INFO: neon service started [2025-03-03 10:40:01] Production.INFO: neon service started [2025-03-03 10:40:01] Production.INFO: ==15017== Releasing lock... [2025-03-03 10:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:40:02] Production.INFO: ==15019== Lock acquired, processing the job... [2025-03-03 05:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:40:02] Production.INFO: ==15021== Lock acquired, processing the job... [2025-03-03 10:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:40:02] Production.INFO: ==15019== Releasing lock... [2025-03-03 05:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:40:02] Production.INFO: ==15021== Releasing lock... [2025-03-03 10:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:40:03] Production.INFO: ==15032== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:40:03] Production.INFO: ==15034== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:40:03] Production.INFO: ==15036== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 05:40:03] Production.INFO: Account Balance Start. [2025-03-03 05:40:03] Production.INFO: CreateAllLog Start [2025-03-03 05:40:03] Production.INFO: 117 [2025-03-03 05:40:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:03] Production.INFO: ==15023== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 05:40:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:03] Production.INFO: ==15028== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:40:03] Production.INFO: ==15025== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:40:03] Production.INFO: ==15030== Lock acquired, processing the job... [2025-03-03 05:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: ==15038== Lock acquired, processing the job... [2025-03-03 05:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:40:04] Production.ERROR: CronJob PID - 15025 [2025-03-03 05:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 05:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 05:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:40:00 [2025-03-03 05:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:40:04] Production.ERROR: CronJob PID - 15028 [2025-03-03 05:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 05:40:04] Production.ERROR: CronJob ID - 7 [2025-03-03 05:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:40:00 [2025-03-03 05:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:40:04] Production.ERROR: CronJob PID - 15030 [2025-03-03 05:40:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 05:40:04] Production.ERROR: CronJob ID - 10 [2025-03-03 05:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:40:00 [2025-03-03 05:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:40:04] Production.ERROR: CronJob PID - 15032 [2025-03-03 05:40:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 05:40:04] Production.ERROR: CronJob ID - 12 [2025-03-03 05:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:40:00 [2025-03-03 05:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:40:04] Production.ERROR: CronJob PID - 15034 [2025-03-03 05:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 05:40:04] Production.ERROR: CronJob ID - 16 [2025-03-03 05:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:40:00 [2025-03-03 05:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 05:40:04] Production.ERROR: CronJob PID - 15036 [2025-03-03 05:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 05:40:04] Production.ERROR: CronJob ID - 17 [2025-03-03 05:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 05:40:00 [2025-03-03 05:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 05:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 05:40:04] Production.INFO: ==15023== Releasing lock... [2025-03-03 05:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 05:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:40:04] Production.ERROR: done [2025-03-03 05:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: count ==13 [2025-03-03 05:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: count ==21 [2025-03-03 05:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596383') start [2025-03-03 05:40:04] Production.ERROR: done [2025-03-03 05:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.ERROR: done [2025-03-03 05:40:04] Production.INFO: ==15028== Releasing lock... [2025-03-03 05:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596383') end [2025-03-03 05:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:40:04] Production.INFO: 1 [2025-03-03 05:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:40:04] Production.INFO: ==15038== Releasing lock... [2025-03-03 05:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:40:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 05:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596385', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 05:40:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:40:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:40:05] Production.INFO: Total Charge 0 [2025-03-03 05:40:05] Production.INFO: CreateAllLog End [2025-03-03 05:40:05] Production.INFO: Account Balance End. [2025-03-03 05:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:40:05] Production.INFO: ==15032== Releasing lock... [2025-03-03 05:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:40:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596385', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 05:40:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 05:40:08] Production.INFO: ProcessCDR(1,14596385,1,1,2) [2025-03-03 05:40:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596385,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:40:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596385,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:40:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 05:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 05:40:09] Production.INFO: ==15036== Releasing lock... [2025-03-03 05:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 05:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 05:40:13] Production.ERROR: CronJobId end10 [2025-03-03 05:40:13] Production.INFO: ==15030== Releasing lock... [2025-03-03 05:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:40:15] Production.INFO: call_cost start [2025-03-03 05:40:15] Production.INFO: call_cost end [2025-03-03 05:40:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:40:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:40:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:40:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:40:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:40:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:40:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:40:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:40:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:40:15] Production.INFO: ==15025== Releasing lock... [2025-03-03 05:40:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:40:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:40:16] Production.INFO: count ==409 [2025-03-03 05:40:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:40:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596384', 'tblTempUsageDetail_20' ) start [2025-03-03 05:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596384', 'tblTempUsageDetail_20' ) end [2025-03-03 05:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596384', 'tblTempVendorCDR_20' ) start [2025-03-03 05:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596384', 'tblTempVendorCDR_20' ) end [2025-03-03 05:40:16] Production.INFO: ProcessCDR(1,14596384,1,1,2) [2025-03-03 05:40:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596384', 'tblTempUsageDetail_20' ) start [2025-03-03 05:40:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596384', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:40:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:40:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:40:24] Production.INFO: ==15034== Releasing lock... [2025-03-03 05:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:40:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:41:02] Production.INFO: ==15097== Lock acquired, processing the job... [2025-03-03 10:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:41:02] Production.INFO: neon service started [2025-03-03 10:41:02] Production.INFO: neon service started [2025-03-03 10:41:02] Production.INFO: ==15097== Releasing lock... [2025-03-03 10:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:41:02] Production.INFO: ==15099== Lock acquired, processing the job... [2025-03-03 05:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:41:02] Production.INFO: ==15099== Releasing lock... [2025-03-03 05:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:41:02] Production.INFO: ==15101== Lock acquired, processing the job... [2025-03-03 10:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:41:03] Production.INFO: ==15101== Releasing lock... [2025-03-03 10:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:41:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:41:03] Production.INFO: ==15103== Lock acquired, processing the job... [2025-03-03 05:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:41:03] Production.INFO: ==15105== Lock acquired, processing the job... [2025-03-03 05:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:41:03] Production.INFO: ==15109== Lock acquired, processing the job... [2025-03-03 05:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:41:03] Production.INFO: Account Balance Start. [2025-03-03 05:41:03] Production.INFO: CreateAllLog Start [2025-03-03 05:41:03] Production.INFO: 117 [2025-03-03 05:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:03] Production.INFO: ==15107== Lock acquired, processing the job... [2025-03-03 05:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:41:03] Production.INFO: ==15113== Lock acquired, processing the job... [2025-03-03 05:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:41:03] Production.INFO: ==15105== Releasing lock... [2025-03-03 05:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:41:04] Production.INFO: ==15111== Lock acquired, processing the job... [2025-03-03 05:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: count ==13 [2025-03-03 05:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:41:04] Production.INFO: count ==21 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596389') start [2025-03-03 05:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596389') end [2025-03-03 05:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:41:04] Production.INFO: 1 [2025-03-03 05:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: ==15113== Releasing lock... [2025-03-03 05:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:41:04] Production.ERROR: done [2025-03-03 05:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.ERROR: done [2025-03-03 05:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:41:04] Production.INFO: Total Charge 0 [2025-03-03 05:41:04] Production.INFO: CreateAllLog End [2025-03-03 05:41:05] Production.INFO: Account Balance End. [2025-03-03 05:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:41:05] Production.INFO: ==15109== Releasing lock... [2025-03-03 05:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:41:11] Production.ERROR: CronJobId end10 [2025-03-03 05:41:11] Production.INFO: ==15107== Releasing lock... [2025-03-03 05:41:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:41:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:41:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:41:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:41:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:41:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:41:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:41:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:41:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:41:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:41:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:41:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:41:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:41:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:41:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:41:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:41:14] Production.INFO: call_cost start [2025-03-03 05:41:14] Production.INFO: call_cost end [2025-03-03 05:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:41:14] Production.INFO: ==15103== Releasing lock... [2025-03-03 05:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:41:16] Production.INFO: count ==409 [2025-03-03 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596390', 'tblTempUsageDetail_20' ) start [2025-03-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596390', 'tblTempUsageDetail_20' ) end [2025-03-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596390', 'tblTempVendorCDR_20' ) start [2025-03-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596390', 'tblTempVendorCDR_20' ) end [2025-03-03 05:41:17] Production.INFO: ProcessCDR(1,14596390,1,1,2) [2025-03-03 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596390', 'tblTempUsageDetail_20' ) start [2025-03-03 05:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596390', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:41:24] Production.INFO: ==15111== Releasing lock... [2025-03-03 05:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:41:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:42:01] Production.INFO: ==15166== Lock acquired, processing the job... [2025-03-03 10:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:42:01] Production.INFO: neon service started [2025-03-03 10:42:01] Production.INFO: neon service started [2025-03-03 10:42:01] Production.INFO: ==15166== Releasing lock... [2025-03-03 10:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:42:01] Production.INFO: ==15168== Lock acquired, processing the job... [2025-03-03 05:42:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:42:02] Production.INFO: ==15168== Releasing lock... [2025-03-03 05:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:42:02] Production.INFO: ==15170== Lock acquired, processing the job... [2025-03-03 10:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:42:02] Production.INFO: ==15170== Releasing lock... [2025-03-03 10:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:42:03] Production.INFO: ==15172== Lock acquired, processing the job... [2025-03-03 05:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:42:03] Production.INFO: ==15174== Lock acquired, processing the job... [2025-03-03 05:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:42:03] Production.INFO: ==15180== Lock acquired, processing the job... [2025-03-03 05:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:42:03] Production.INFO: ==15176== Lock acquired, processing the job... [2025-03-03 05:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:42:03] Production.INFO: ==15183== Lock acquired, processing the job... [2025-03-03 05:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:42:03] Production.INFO: ==15178== Lock acquired, processing the job... [2025-03-03 05:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:42:03] Production.INFO: Account Balance Start. [2025-03-03 05:42:03] Production.INFO: CreateAllLog Start [2025-03-03 05:42:03] Production.INFO: 117 [2025-03-03 05:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:03] Production.INFO: count ==13 [2025-03-03 05:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:42:03] Production.INFO: count ==21 [2025-03-03 05:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596394') start [2025-03-03 05:42:03] Production.INFO: ==15174== Releasing lock... [2025-03-03 05:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:42:03] Production.ERROR: done [2025-03-03 05:42:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596394') end [2025-03-03 05:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:42:03] Production.INFO: 1 [2025-03-03 05:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:42:04] Production.ERROR: done [2025-03-03 05:42:04] Production.INFO: ==15183== Releasing lock... [2025-03-03 05:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:42:04] Production.INFO: Total Charge 0 [2025-03-03 05:42:04] Production.INFO: CreateAllLog End [2025-03-03 05:42:04] Production.INFO: Account Balance End. [2025-03-03 05:42:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:42:04] Production.INFO: ==15178== Releasing lock... [2025-03-03 05:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:42:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:42:11] Production.ERROR: CronJobId end10 [2025-03-03 05:42:11] Production.INFO: ==15176== Releasing lock... [2025-03-03 05:42:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:42:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:42:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:42:12] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:42:12] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:42:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:42:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:42:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:42:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:42:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:42:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:42:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:42:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:42:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:42:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:42:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:42:13] Production.INFO: call_cost start [2025-03-03 05:42:13] Production.INFO: call_cost end [2025-03-03 05:42:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:42:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:42:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:42:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:42:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:42:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:42:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:42:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:42:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:42:13] Production.INFO: ==15172== Releasing lock... [2025-03-03 05:42:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:42:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:42:15] Production.INFO: count ==409 [2025-03-03 05:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596395', 'tblTempUsageDetail_20' ) start [2025-03-03 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596395', 'tblTempUsageDetail_20' ) end [2025-03-03 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596395', 'tblTempVendorCDR_20' ) start [2025-03-03 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596395', 'tblTempVendorCDR_20' ) end [2025-03-03 05:42:16] Production.INFO: ProcessCDR(1,14596395,1,1,2) [2025-03-03 05:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596395', 'tblTempUsageDetail_20' ) start [2025-03-03 05:42:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596395', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:42:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:42:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:42:23] Production.INFO: ==15180== Releasing lock... [2025-03-03 05:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:42:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:43:02] Production.INFO: ==15237== Lock acquired, processing the job... [2025-03-03 10:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:43:02] Production.INFO: neon service started [2025-03-03 10:43:02] Production.INFO: neon service started [2025-03-03 10:43:02] Production.INFO: ==15237== Releasing lock... [2025-03-03 10:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:43:02] Production.INFO: ==15240== Lock acquired, processing the job... [2025-03-03 05:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:43:02] Production.INFO: ==15242== Lock acquired, processing the job... [2025-03-03 10:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:43:02] Production.INFO: ==15242== Releasing lock... [2025-03-03 10:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:43:03] Production.INFO: ==15240== Releasing lock... [2025-03-03 05:43:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:43:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:43:03] Production.INFO: ==15244== Lock acquired, processing the job... [2025-03-03 05:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:43:03] Production.INFO: ==15246== Lock acquired, processing the job... [2025-03-03 05:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:43:04] Production.INFO: ==15248== Lock acquired, processing the job... [2025-03-03 05:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:43:04] Production.INFO: ==15250== Lock acquired, processing the job... [2025-03-03 05:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:43:04] Production.INFO: Account Balance Start. [2025-03-03 05:43:04] Production.INFO: CreateAllLog Start [2025-03-03 05:43:04] Production.INFO: 117 [2025-03-03 05:43:04] Production.INFO: ==15252== Lock acquired, processing the job... [2025-03-03 05:43:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: ==15254== Lock acquired, processing the job... [2025-03-03 05:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: ==15246== Releasing lock... [2025-03-03 05:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: count ==13 [2025-03-03 05:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:43:04] Production.INFO: count ==21 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596399') start [2025-03-03 05:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596399') end [2025-03-03 05:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:43:04] Production.INFO: 1 [2025-03-03 05:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.ERROR: done [2025-03-03 05:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:43:04] Production.INFO: ==15254== Releasing lock... [2025-03-03 05:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.ERROR: done [2025-03-03 05:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:43:05] Production.INFO: Total Charge 0 [2025-03-03 05:43:05] Production.INFO: CreateAllLog End [2025-03-03 05:43:05] Production.INFO: Account Balance End. [2025-03-03 05:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:43:05] Production.INFO: ==15250== Releasing lock... [2025-03-03 05:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:43:12] Production.ERROR: CronJobId end10 [2025-03-03 05:43:12] Production.INFO: ==15248== Releasing lock... [2025-03-03 05:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:43:15] Production.INFO: call_cost start [2025-03-03 05:43:15] Production.INFO: call_cost end [2025-03-03 05:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:43:15] Production.INFO: ==15244== Releasing lock... [2025-03-03 05:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:43:16] Production.INFO: count ==409 [2025-03-03 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596400', 'tblTempUsageDetail_20' ) start [2025-03-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596400', 'tblTempUsageDetail_20' ) end [2025-03-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596400', 'tblTempVendorCDR_20' ) start [2025-03-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596400', 'tblTempVendorCDR_20' ) end [2025-03-03 05:43:17] Production.INFO: ProcessCDR(1,14596400,1,1,2) [2025-03-03 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596400', 'tblTempUsageDetail_20' ) start [2025-03-03 05:43:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596400', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:43:24] Production.INFO: ==15252== Releasing lock... [2025-03-03 05:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:44:01] Production.INFO: ==15307== Lock acquired, processing the job... [2025-03-03 10:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:44:01] Production.INFO: neon service started [2025-03-03 10:44:01] Production.INFO: neon service started [2025-03-03 10:44:01] Production.INFO: ==15307== Releasing lock... [2025-03-03 10:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:44:02] Production.INFO: ==15310== Lock acquired, processing the job... [2025-03-03 05:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:44:02] Production.INFO: ==15312== Lock acquired, processing the job... [2025-03-03 10:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:44:02] Production.INFO: ==15312== Releasing lock... [2025-03-03 10:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:44:02] Production.INFO: ==15310== Releasing lock... [2025-03-03 05:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:44:03] Production.INFO: ==15314== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:44:03] Production.INFO: ==15316== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:44:03] Production.INFO: ==15324== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:44:03] Production.INFO: ==15318== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:44:03] Production.INFO: count ==13 [2025-03-03 05:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:44:03] Production.INFO: ==15316== Releasing lock... [2025-03-03 05:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:44:03] Production.INFO: count ==21 [2025-03-03 05:44:03] Production.INFO: ==15320== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596403') start [2025-03-03 05:44:03] Production.INFO: ==15322== Lock acquired, processing the job... [2025-03-03 05:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596403') end [2025-03-03 05:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:44:04] Production.INFO: 1 [2025-03-03 05:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:44:04] Production.INFO: Account Balance Start. [2025-03-03 05:44:04] Production.INFO: CreateAllLog Start [2025-03-03 05:44:04] Production.INFO: 117 [2025-03-03 05:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:44:04] Production.INFO: ==15324== Releasing lock... [2025-03-03 05:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.ERROR: done [2025-03-03 05:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.ERROR: done [2025-03-03 05:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:44:05] Production.INFO: Total Charge 0 [2025-03-03 05:44:05] Production.INFO: CreateAllLog End [2025-03-03 05:44:05] Production.INFO: Account Balance End. [2025-03-03 05:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:44:05] Production.INFO: ==15320== Releasing lock... [2025-03-03 05:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:44:11] Production.ERROR: CronJobId end10 [2025-03-03 05:44:11] Production.INFO: ==15318== Releasing lock... [2025-03-03 05:44:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:44:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:44:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:44:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:44:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:44:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:44:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:44:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:44:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:44:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:44:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:44:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:44:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:44:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:44:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:44:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:44:14] Production.INFO: call_cost start [2025-03-03 05:44:14] Production.INFO: call_cost end [2025-03-03 05:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:44:14] Production.INFO: ==15314== Releasing lock... [2025-03-03 05:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:44:16] Production.INFO: count ==409 [2025-03-03 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596405', 'tblTempUsageDetail_20' ) start [2025-03-03 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596405', 'tblTempUsageDetail_20' ) end [2025-03-03 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596405', 'tblTempVendorCDR_20' ) start [2025-03-03 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596405', 'tblTempVendorCDR_20' ) end [2025-03-03 05:44:17] Production.INFO: ProcessCDR(1,14596405,1,1,2) [2025-03-03 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596405', 'tblTempUsageDetail_20' ) start [2025-03-03 05:44:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596405', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:44:24] Production.INFO: ==15322== Releasing lock... [2025-03-03 05:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:44:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:45:02] Production.INFO: ==15380== Lock acquired, processing the job... [2025-03-03 10:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:45:02] Production.INFO: neon service started [2025-03-03 10:45:02] Production.INFO: neon service started [2025-03-03 10:45:02] Production.INFO: ==15380== Releasing lock... [2025-03-03 10:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:45:02] Production.INFO: ==15382== Lock acquired, processing the job... [2025-03-03 05:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:45:02] Production.INFO: ==15382== Releasing lock... [2025-03-03 05:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:45:02] Production.INFO: ==15384== Lock acquired, processing the job... [2025-03-03 10:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:45:02] Production.INFO: ==15384== Releasing lock... [2025-03-03 10:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:45:03] Production.INFO: ==15395== Lock acquired, processing the job... [2025-03-03 05:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:45:03] Production.INFO: ==15397== Lock acquired, processing the job... [2025-03-03 05:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:45:03] Production.INFO: ==15387== Lock acquired, processing the job... [2025-03-03 05:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:45:03] Production.INFO: ==15389== Lock acquired, processing the job... [2025-03-03 05:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:45:03] Production.INFO: count ==13 [2025-03-03 05:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:45:03] Production.INFO: ==15391== Lock acquired, processing the job... [2025-03-03 05:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:45:03] Production.INFO: count ==21 [2025-03-03 05:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596406') start [2025-03-03 05:45:03] Production.INFO: ==15393== Lock acquired, processing the job... [2025-03-03 05:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596406') end [2025-03-03 05:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:45:04] Production.INFO: 1 [2025-03-03 05:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:45:04] Production.ERROR: done [2025-03-03 05:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:45:04] Production.INFO: Account Balance Start. [2025-03-03 05:45:04] Production.INFO: CreateAllLog Start [2025-03-03 05:45:04] Production.INFO: 117 [2025-03-03 05:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:45:04] Production.INFO: ==15397== Releasing lock... [2025-03-03 05:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.ERROR: done [2025-03-03 05:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: ==15389== Releasing lock... [2025-03-03 05:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:45:05] Production.INFO: Total Charge 0 [2025-03-03 05:45:05] Production.INFO: CreateAllLog End [2025-03-03 05:45:05] Production.INFO: Account Balance End. [2025-03-03 05:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:45:05] Production.INFO: ==15393== Releasing lock... [2025-03-03 05:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:45:12] Production.ERROR: CronJobId end10 [2025-03-03 05:45:12] Production.INFO: ==15391== Releasing lock... [2025-03-03 05:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:45:15] Production.INFO: call_cost start [2025-03-03 05:45:15] Production.INFO: call_cost end [2025-03-03 05:45:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:45:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:45:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:45:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:45:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:45:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:45:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:45:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:45:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:45:15] Production.INFO: ==15387== Releasing lock... [2025-03-03 05:45:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:45:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:45:16] Production.INFO: count ==409 [2025-03-03 05:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596410', 'tblTempUsageDetail_20' ) start [2025-03-03 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596410', 'tblTempUsageDetail_20' ) end [2025-03-03 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596410', 'tblTempVendorCDR_20' ) start [2025-03-03 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596410', 'tblTempVendorCDR_20' ) end [2025-03-03 05:45:16] Production.INFO: ProcessCDR(1,14596410,1,1,2) [2025-03-03 05:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596410', 'tblTempUsageDetail_20' ) start [2025-03-03 05:45:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596410', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:45:24] Production.INFO: ==15395== Releasing lock... [2025-03-03 05:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:45:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:46:01] Production.INFO: ==15491== Lock acquired, processing the job... [2025-03-03 10:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:46:01] Production.INFO: neon service started [2025-03-03 10:46:01] Production.INFO: neon service started [2025-03-03 10:46:01] Production.INFO: ==15491== Releasing lock... [2025-03-03 10:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:46:01] Production.INFO: ==15493== Lock acquired, processing the job... [2025-03-03 05:46:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:46:02] Production.INFO: ==15493== Releasing lock... [2025-03-03 05:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:46:02] Production.INFO: ==15495== Lock acquired, processing the job... [2025-03-03 10:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:46:02] Production.INFO: ==15495== Releasing lock... [2025-03-03 10:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:46:03] Production.INFO: ==15497== Lock acquired, processing the job... [2025-03-03 05:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:46:03] Production.INFO: ==15501== Lock acquired, processing the job... [2025-03-03 05:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:46:03] Production.INFO: ==15503== Lock acquired, processing the job... [2025-03-03 05:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:46:03] Production.INFO: Account Balance Start. [2025-03-03 05:46:03] Production.INFO: CreateAllLog Start [2025-03-03 05:46:03] Production.INFO: 117 [2025-03-03 05:46:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: ==15499== Lock acquired, processing the job... [2025-03-03 05:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:46:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: ==15507== Lock acquired, processing the job... [2025-03-03 05:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:46:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: ==15505== Lock acquired, processing the job... [2025-03-03 05:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:46:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:46:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:46:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: count ==13 [2025-03-03 05:46:03] Production.INFO: Date 2025-02-15 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: Date 2025-02-16 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:46:03] Production.INFO: Date 2025-02-17 [2025-03-03 05:46:03] Production.INFO: count ==21 [2025-03-03 05:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596413') start [2025-03-03 05:46:04] Production.INFO: ==15499== Releasing lock... [2025-03-03 05:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:46:04] Production.ERROR: done [2025-03-03 05:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596413') end [2025-03-03 05:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:46:04] Production.INFO: 1 [2025-03-03 05:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: ==15507== Releasing lock... [2025-03-03 05:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:46:04] Production.ERROR: done [2025-03-03 05:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:46:04] Production.INFO: Total Charge 0 [2025-03-03 05:46:04] Production.INFO: CreateAllLog End [2025-03-03 05:46:04] Production.INFO: Account Balance End. [2025-03-03 05:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:46:05] Production.INFO: ==15503== Releasing lock... [2025-03-03 05:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:46:11] Production.ERROR: CronJobId end10 [2025-03-03 05:46:11] Production.INFO: ==15501== Releasing lock... [2025-03-03 05:46:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:46:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:46:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:46:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:46:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:46:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:46:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:46:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:46:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:46:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:46:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:46:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:46:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:46:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:46:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:46:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:46:13] Production.INFO: call_cost start [2025-03-03 05:46:14] Production.INFO: call_cost end [2025-03-03 05:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:46:14] Production.INFO: ==15497== Releasing lock... [2025-03-03 05:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:46:16] Production.INFO: count ==409 [2025-03-03 05:46:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596415', 'tblTempUsageDetail_20' ) start [2025-03-03 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596415', 'tblTempUsageDetail_20' ) end [2025-03-03 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596415', 'tblTempVendorCDR_20' ) start [2025-03-03 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596415', 'tblTempVendorCDR_20' ) end [2025-03-03 05:46:16] Production.INFO: ProcessCDR(1,14596415,1,1,2) [2025-03-03 05:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596415', 'tblTempUsageDetail_20' ) start [2025-03-03 05:46:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596415', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:46:24] Production.INFO: ==15505== Releasing lock... [2025-03-03 05:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:46:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:47:02] Production.INFO: ==15561== Lock acquired, processing the job... [2025-03-03 10:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:47:02] Production.INFO: neon service started [2025-03-03 10:47:02] Production.INFO: neon service started [2025-03-03 10:47:02] Production.INFO: ==15561== Releasing lock... [2025-03-03 10:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:47:02] Production.INFO: ==15563== Lock acquired, processing the job... [2025-03-03 05:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:47:02] Production.INFO: ==15565== Lock acquired, processing the job... [2025-03-03 10:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:47:02] Production.INFO: ==15565== Releasing lock... [2025-03-03 10:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:47:03] Production.INFO: ==15563== Releasing lock... [2025-03-03 05:47:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:47:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:47:03] Production.INFO: ==15568== Lock acquired, processing the job... [2025-03-03 05:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:47:04] Production.INFO: ==15578== Lock acquired, processing the job... [2025-03-03 05:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:47:04] Production.INFO: ==15570== Lock acquired, processing the job... [2025-03-03 05:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:47:04] Production.INFO: count ==13 [2025-03-03 05:47:04] Production.INFO: ==15572== Lock acquired, processing the job... [2025-03-03 05:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:47:04] Production.INFO: count ==21 [2025-03-03 05:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596417') start [2025-03-03 05:47:04] Production.INFO: ==15574== Lock acquired, processing the job... [2025-03-03 05:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:47:04] Production.INFO: ==15576== Lock acquired, processing the job... [2025-03-03 05:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596417') end [2025-03-03 05:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:47:04] Production.INFO: 1 [2025-03-03 05:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:47:04] Production.INFO: ==15578== Releasing lock... [2025-03-03 05:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:47:04] Production.INFO: Account Balance Start. [2025-03-03 05:47:04] Production.INFO: CreateAllLog Start [2025-03-03 05:47:04] Production.INFO: 117 [2025-03-03 05:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:04] Production.INFO: ==15570== Releasing lock... [2025-03-03 05:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:47:04] Production.ERROR: done [2025-03-03 05:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-15 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-16 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-17 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.ERROR: done [2025-03-03 05:47:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:47:05] Production.INFO: Total Charge 0 [2025-03-03 05:47:05] Production.INFO: CreateAllLog End [2025-03-03 05:47:05] Production.INFO: Account Balance End. [2025-03-03 05:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:47:05] Production.INFO: ==15574== Releasing lock... [2025-03-03 05:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:47:11] Production.ERROR: CronJobId end10 [2025-03-03 05:47:11] Production.INFO: ==15572== Releasing lock... [2025-03-03 05:47:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:47:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:47:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:47:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:47:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:47:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:47:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:47:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:47:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:47:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:47:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:47:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:47:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:47:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:47:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:47:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:47:14] Production.INFO: call_cost start [2025-03-03 05:47:14] Production.INFO: call_cost end [2025-03-03 05:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:47:14] Production.INFO: ==15568== Releasing lock... [2025-03-03 05:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:47:17] Production.INFO: count ==409 [2025-03-03 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596420', 'tblTempUsageDetail_20' ) start [2025-03-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596420', 'tblTempUsageDetail_20' ) end [2025-03-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596420', 'tblTempVendorCDR_20' ) start [2025-03-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596420', 'tblTempVendorCDR_20' ) end [2025-03-03 05:47:17] Production.INFO: ProcessCDR(1,14596420,1,1,2) [2025-03-03 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596420', 'tblTempUsageDetail_20' ) start [2025-03-03 05:47:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596420', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:47:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:47:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:47:25] Production.INFO: ==15576== Releasing lock... [2025-03-03 05:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:47:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:48:01] Production.INFO: ==15631== Lock acquired, processing the job... [2025-03-03 10:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:48:01] Production.INFO: neon service started [2025-03-03 10:48:01] Production.INFO: neon service started [2025-03-03 10:48:01] Production.INFO: ==15631== Releasing lock... [2025-03-03 10:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:48:02] Production.INFO: ==15636== Lock acquired, processing the job... [2025-03-03 10:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 05:48:02] Production.INFO: ==15634== Lock acquired, processing the job... [2025-03-03 05:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:48:02] Production.INFO: ==15636== Releasing lock... [2025-03-03 10:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:48:02] Production.INFO: ==15634== Releasing lock... [2025-03-03 05:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:48:03] Production.INFO: ==15644== Lock acquired, processing the job... [2025-03-03 05:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:48:03] Production.INFO: ==15648== Lock acquired, processing the job... [2025-03-03 05:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:48:03] Production.INFO: Account Balance Start. [2025-03-03 05:48:03] Production.INFO: CreateAllLog Start [2025-03-03 05:48:03] Production.INFO: 117 [2025-03-03 05:48:03] Production.INFO: count ==13 [2025-03-03 05:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:48:03] Production.INFO: count ==21 [2025-03-03 05:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596421') start [2025-03-03 05:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596421') end [2025-03-03 05:48:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:48:03] Production.INFO: 1 [2025-03-03 05:48:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:48:03] Production.INFO: ==15648== Releasing lock... [2025-03-03 05:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:48:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:48:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: ==15638== Lock acquired, processing the job... [2025-03-03 05:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:48:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: ==15640== Lock acquired, processing the job... [2025-03-03 05:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:48:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: ==15642== Lock acquired, processing the job... [2025-03-03 05:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:48:03] Production.INFO: Date 2025-02-15 [2025-03-03 05:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: Date 2025-02-16 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: ==15646== Lock acquired, processing the job... [2025-03-03 05:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:48:03] Production.INFO: Date 2025-02-17 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:03] Production.INFO: Date 2025-02-18 [2025-03-03 05:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.ERROR: done [2025-03-03 05:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:48:04] Production.INFO: ==15640== Releasing lock... [2025-03-03 05:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.ERROR: done [2025-03-03 05:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:48:04] Production.INFO: Total Charge 0 [2025-03-03 05:48:05] Production.INFO: CreateAllLog End [2025-03-03 05:48:05] Production.INFO: Account Balance End. [2025-03-03 05:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:48:05] Production.INFO: ==15644== Releasing lock... [2025-03-03 05:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:48:12] Production.ERROR: CronJobId end10 [2025-03-03 05:48:12] Production.INFO: ==15642== Releasing lock... [2025-03-03 05:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:48:15] Production.INFO: call_cost start [2025-03-03 05:48:15] Production.INFO: call_cost end [2025-03-03 05:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:48:15] Production.INFO: ==15638== Releasing lock... [2025-03-03 05:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:48:16] Production.INFO: count ==409 [2025-03-03 05:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596425', 'tblTempUsageDetail_20' ) start [2025-03-03 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596425', 'tblTempUsageDetail_20' ) end [2025-03-03 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596425', 'tblTempVendorCDR_20' ) start [2025-03-03 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596425', 'tblTempVendorCDR_20' ) end [2025-03-03 05:48:16] Production.INFO: ProcessCDR(1,14596425,1,1,2) [2025-03-03 05:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596425', 'tblTempUsageDetail_20' ) start [2025-03-03 05:48:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596425', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:48:24] Production.INFO: ==15646== Releasing lock... [2025-03-03 05:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:49:01] Production.INFO: ==15704== Lock acquired, processing the job... [2025-03-03 10:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:49:01] Production.INFO: neon service started [2025-03-03 10:49:02] Production.INFO: neon service started [2025-03-03 10:49:02] Production.INFO: ==15704== Releasing lock... [2025-03-03 10:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:49:02] Production.INFO: ==15706== Lock acquired, processing the job... [2025-03-03 05:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:49:02] Production.INFO: ==15706== Releasing lock... [2025-03-03 05:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:49:02] Production.INFO: ==15708== Lock acquired, processing the job... [2025-03-03 10:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:49:02] Production.INFO: ==15708== Releasing lock... [2025-03-03 10:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:49:03] Production.INFO: ==15712== Lock acquired, processing the job... [2025-03-03 05:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:49:03] Production.INFO: ==15714== Lock acquired, processing the job... [2025-03-03 05:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:49:03] Production.INFO: ==15710== Lock acquired, processing the job... [2025-03-03 05:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:49:03] Production.INFO: ==15716== Lock acquired, processing the job... [2025-03-03 05:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:49:03] Production.INFO: Account Balance Start. [2025-03-03 05:49:03] Production.INFO: CreateAllLog Start [2025-03-03 05:49:03] Production.INFO: 117 [2025-03-03 05:49:03] Production.INFO: ==15712== Releasing lock... [2025-03-03 05:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:49:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:03] Production.INFO: ==15718== Lock acquired, processing the job... [2025-03-03 05:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:49:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:03] Production.INFO: ==15720== Lock acquired, processing the job... [2025-03-03 05:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:49:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: count ==13 [2025-03-03 05:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:49:04] Production.INFO: count ==21 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596429') start [2025-03-03 05:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596429') end [2025-03-03 05:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:49:04] Production.INFO: 1 [2025-03-03 05:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:49:04] Production.ERROR: done [2025-03-03 05:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.ERROR: done [2025-03-03 05:49:04] Production.INFO: ==15720== Releasing lock... [2025-03-03 05:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:49:05] Production.INFO: Total Charge 0 [2025-03-03 05:49:05] Production.INFO: CreateAllLog End [2025-03-03 05:49:05] Production.INFO: Account Balance End. [2025-03-03 05:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:49:05] Production.INFO: ==15716== Releasing lock... [2025-03-03 05:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:49:11] Production.ERROR: CronJobId end10 [2025-03-03 05:49:11] Production.INFO: ==15714== Releasing lock... [2025-03-03 05:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:49:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:49:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:49:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:49:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:49:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:49:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:49:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:49:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:49:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:49:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:49:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:49:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:49:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:49:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:49:13] Production.INFO: call_cost start [2025-03-03 05:49:13] Production.INFO: call_cost end [2025-03-03 05:49:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:49:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:49:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:49:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:49:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:49:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:49:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:49:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:49:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:49:13] Production.INFO: ==15710== Releasing lock... [2025-03-03 05:49:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:49:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:49:16] Production.INFO: count ==409 [2025-03-03 05:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596430', 'tblTempUsageDetail_20' ) start [2025-03-03 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596430', 'tblTempUsageDetail_20' ) end [2025-03-03 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596430', 'tblTempVendorCDR_20' ) start [2025-03-03 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596430', 'tblTempVendorCDR_20' ) end [2025-03-03 05:49:16] Production.INFO: ProcessCDR(1,14596430,1,1,2) [2025-03-03 05:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596430', 'tblTempUsageDetail_20' ) start [2025-03-03 05:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596430', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:49:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:49:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:49:24] Production.INFO: ==15718== Releasing lock... [2025-03-03 05:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:49:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:50:01] Production.INFO: ==15775== Lock acquired, processing the job... [2025-03-03 10:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:50:01] Production.INFO: neon service started [2025-03-03 10:50:01] Production.INFO: neon service started [2025-03-03 10:50:01] Production.INFO: ==15775== Releasing lock... [2025-03-03 10:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:50:01] Production.INFO: ==15779== Lock acquired, processing the job... [2025-03-03 10:50:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:50:01] Production.INFO: ==15779== Releasing lock... [2025-03-03 10:50:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:50:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:50:01] Production.INFO: ==15777== Lock acquired, processing the job... [2025-03-03 05:50:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:50:02] Production.INFO: ==15777== Releasing lock... [2025-03-03 05:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:50:03] Production.INFO: ==15781== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 05:50:03] Production.INFO: ==15785== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 05:50:03] Production.INFO: ==15783== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:50:03] Production.INFO: ==15787== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:50:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 05:50:03] Production.INFO: ==15781== Releasing lock... [2025-03-03 05:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 05:50:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:50:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:50:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:50:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:50:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:50:03] Production.INFO: ==15789== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:50:03] Production.INFO: ==15785== Releasing lock... [2025-03-03 05:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:50:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:50:03] Production.INFO: ==15792== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:50:03] Production.INFO: ==15796== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:50:03] Production.INFO: Account Balance Start. [2025-03-03 05:50:03] Production.INFO: CreateAllLog Start [2025-03-03 05:50:03] Production.INFO: 117 [2025-03-03 05:50:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:03] Production.INFO: ==15794== Lock acquired, processing the job... [2025-03-03 05:50:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 05:50:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:50:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: count ==13 [2025-03-03 05:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:50:04] Production.INFO: count ==21 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596434') start [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.ERROR: done [2025-03-03 05:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596434') end [2025-03-03 05:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:50:04] Production.INFO: 1 [2025-03-03 05:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:50:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: ==15796== Releasing lock... [2025-03-03 05:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:50:04] Production.ERROR: done [2025-03-03 05:50:04] Production.ERROR: done [2025-03-03 05:50:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 05:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596436', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 05:50:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:50:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:50:05] Production.INFO: Total Charge 0 [2025-03-03 05:50:05] Production.INFO: CreateAllLog End [2025-03-03 05:50:05] Production.INFO: Account Balance End. [2025-03-03 05:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:50:05] Production.INFO: ==15789== Releasing lock... [2025-03-03 05:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:50:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596436', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 05:50:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 05:50:08] Production.INFO: ProcessCDR(1,14596436,1,1,2) [2025-03-03 05:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596436,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596436,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 05:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 05:50:09] Production.INFO: ==15794== Releasing lock... [2025-03-03 05:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 05:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 05:50:14] Production.ERROR: CronJobId end10 [2025-03-03 05:50:14] Production.INFO: ==15787== Releasing lock... [2025-03-03 05:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:50:16] Production.INFO: call_cost start [2025-03-03 05:50:16] Production.INFO: call_cost end [2025-03-03 05:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:50:16] Production.INFO: ==15783== Releasing lock... [2025-03-03 05:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:50:16] Production.INFO: count ==409 [2025-03-03 05:50:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:50:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596435', 'tblTempUsageDetail_20' ) start [2025-03-03 05:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596435', 'tblTempUsageDetail_20' ) end [2025-03-03 05:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596435', 'tblTempVendorCDR_20' ) start [2025-03-03 05:50:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596435', 'tblTempVendorCDR_20' ) end [2025-03-03 05:50:16] Production.INFO: ProcessCDR(1,14596435,1,1,2) [2025-03-03 05:50:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596435', 'tblTempUsageDetail_20' ) start [2025-03-03 05:50:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596435', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:50:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:50:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:50:24] Production.INFO: ==15792== Releasing lock... [2025-03-03 05:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:51:01] Production.INFO: ==15850== Lock acquired, processing the job... [2025-03-03 10:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:51:01] Production.INFO: neon service started [2025-03-03 10:51:01] Production.INFO: neon service started [2025-03-03 10:51:01] Production.INFO: ==15850== Releasing lock... [2025-03-03 10:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:51:02] Production.INFO: ==15852== Lock acquired, processing the job... [2025-03-03 05:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:51:02] Production.INFO: ==15852== Releasing lock... [2025-03-03 05:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:51:02] Production.INFO: ==15854== Lock acquired, processing the job... [2025-03-03 10:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:51:02] Production.INFO: ==15854== Releasing lock... [2025-03-03 10:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:51:03] Production.INFO: ==15862== Lock acquired, processing the job... [2025-03-03 05:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:51:03] Production.INFO: ==15858== Lock acquired, processing the job... [2025-03-03 05:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:51:03] Production.INFO: ==15864== Lock acquired, processing the job... [2025-03-03 05:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:51:03] Production.INFO: Account Balance Start. [2025-03-03 05:51:03] Production.INFO: CreateAllLog Start [2025-03-03 05:51:03] Production.INFO: 117 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:51:03] Production.INFO: ==15860== Lock acquired, processing the job... [2025-03-03 05:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: ==15856== Lock acquired, processing the job... [2025-03-03 05:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: ==15866== Lock acquired, processing the job... [2025-03-03 05:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:51:03] Production.INFO: Date 2025-02-15 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-16 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: Date 2025-02-17 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.INFO: ==15858== Releasing lock... [2025-03-03 05:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:51:03] Production.INFO: Date 2025-02-18 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:51:03] Production.INFO: Date 2025-02-19 [2025-03-03 05:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.ERROR: done [2025-03-03 05:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: count ==13 [2025-03-03 05:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:51:04] Production.INFO: count ==21 [2025-03-03 05:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596440') start [2025-03-03 05:51:04] Production.ERROR: done [2025-03-03 05:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596440') end [2025-03-03 05:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:51:04] Production.INFO: 1 [2025-03-03 05:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: ==15866== Releasing lock... [2025-03-03 05:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:51:04] Production.INFO: Total Charge 0 [2025-03-03 05:51:04] Production.INFO: CreateAllLog End [2025-03-03 05:51:05] Production.INFO: Account Balance End. [2025-03-03 05:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:51:05] Production.INFO: ==15862== Releasing lock... [2025-03-03 05:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:51:11] Production.ERROR: CronJobId end10 [2025-03-03 05:51:11] Production.INFO: ==15860== Releasing lock... [2025-03-03 05:51:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:51:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:51:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:51:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:51:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:51:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:51:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:51:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:51:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:51:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:51:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:51:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:51:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:51:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:51:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:51:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:51:13] Production.INFO: call_cost start [2025-03-03 05:51:13] Production.INFO: call_cost end [2025-03-03 05:51:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:51:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:51:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:51:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:51:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:51:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:51:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:51:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:51:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:51:13] Production.INFO: ==15856== Releasing lock... [2025-03-03 05:51:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:51:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:51:16] Production.INFO: count ==409 [2025-03-03 05:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596441', 'tblTempUsageDetail_20' ) start [2025-03-03 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596441', 'tblTempUsageDetail_20' ) end [2025-03-03 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596441', 'tblTempVendorCDR_20' ) start [2025-03-03 05:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596441', 'tblTempVendorCDR_20' ) end [2025-03-03 05:51:16] Production.INFO: ProcessCDR(1,14596441,1,1,2) [2025-03-03 05:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596441', 'tblTempUsageDetail_20' ) start [2025-03-03 05:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596441', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:51:24] Production.INFO: ==15864== Releasing lock... [2025-03-03 05:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:51:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:52:02] Production.INFO: ==15921== Lock acquired, processing the job... [2025-03-03 10:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:52:02] Production.INFO: neon service started [2025-03-03 10:52:02] Production.INFO: neon service started [2025-03-03 10:52:02] Production.INFO: ==15921== Releasing lock... [2025-03-03 10:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:52:02] Production.INFO: ==15923== Lock acquired, processing the job... [2025-03-03 05:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:52:02] Production.INFO: ==15923== Releasing lock... [2025-03-03 05:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:52:03] Production.INFO: ==15925== Lock acquired, processing the job... [2025-03-03 10:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:52:03] Production.INFO: ==15925== Releasing lock... [2025-03-03 10:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:52:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:52:03] Production.INFO: ==15931== Lock acquired, processing the job... [2025-03-03 05:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:52:03] Production.INFO: ==15937== Lock acquired, processing the job... [2025-03-03 05:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:52:04] Production.INFO: count ==13 [2025-03-03 05:52:04] Production.INFO: ==15929== Lock acquired, processing the job... [2025-03-03 05:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:52:04] Production.INFO: ==15927== Lock acquired, processing the job... [2025-03-03 05:52:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:52:04] Production.INFO: count ==21 [2025-03-03 05:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596442') start [2025-03-03 05:52:04] Production.INFO: ==15933== Lock acquired, processing the job... [2025-03-03 05:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596442') end [2025-03-03 05:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:52:04] Production.INFO: 1 [2025-03-03 05:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:52:04] Production.INFO: ==15935== Lock acquired, processing the job... [2025-03-03 05:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:52:04] Production.INFO: ==15937== Releasing lock... [2025-03-03 05:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:52:04] Production.INFO: Account Balance Start. [2025-03-03 05:52:04] Production.INFO: CreateAllLog Start [2025-03-03 05:52:04] Production.INFO: 117 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.ERROR: done [2025-03-03 05:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: ==15929== Releasing lock... [2025-03-03 05:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.ERROR: done [2025-03-03 05:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:52:05] Production.INFO: Total Charge 0 [2025-03-03 05:52:05] Production.INFO: CreateAllLog End [2025-03-03 05:52:05] Production.INFO: Account Balance End. [2025-03-03 05:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:52:05] Production.INFO: ==15933== Releasing lock... [2025-03-03 05:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:52:12] Production.ERROR: CronJobId end10 [2025-03-03 05:52:12] Production.INFO: ==15931== Releasing lock... [2025-03-03 05:52:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:52:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:52:15] Production.INFO: call_cost start [2025-03-03 05:52:15] Production.INFO: call_cost end [2025-03-03 05:52:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:52:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:52:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:52:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:52:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:52:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:52:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:52:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:52:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:52:15] Production.INFO: ==15927== Releasing lock... [2025-03-03 05:52:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:52:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:52:16] Production.INFO: count ==409 [2025-03-03 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596446', 'tblTempUsageDetail_20' ) start [2025-03-03 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596446', 'tblTempUsageDetail_20' ) end [2025-03-03 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596446', 'tblTempVendorCDR_20' ) start [2025-03-03 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596446', 'tblTempVendorCDR_20' ) end [2025-03-03 05:52:17] Production.INFO: ProcessCDR(1,14596446,1,1,2) [2025-03-03 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596446', 'tblTempUsageDetail_20' ) start [2025-03-03 05:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596446', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:52:24] Production.INFO: ==15935== Releasing lock... [2025-03-03 05:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:53:01] Production.INFO: ==15997== Lock acquired, processing the job... [2025-03-03 10:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:53:01] Production.INFO: neon service started [2025-03-03 10:53:01] Production.INFO: neon service started [2025-03-03 10:53:01] Production.INFO: ==15997== Releasing lock... [2025-03-03 10:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:53:02] Production.INFO: ==15999== Lock acquired, processing the job... [2025-03-03 05:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:53:02] Production.INFO: ==16001== Lock acquired, processing the job... [2025-03-03 10:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:53:02] Production.INFO: ==16001== Releasing lock... [2025-03-03 10:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:53:02] Production.INFO: ==15999== Releasing lock... [2025-03-03 05:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:53:03] Production.INFO: ==16006== Lock acquired, processing the job... [2025-03-03 05:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:53:03] Production.INFO: ==16014== Lock acquired, processing the job... [2025-03-03 05:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:53:03] Production.INFO: ==16004== Lock acquired, processing the job... [2025-03-03 05:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:53:03] Production.INFO: ==16008== Lock acquired, processing the job... [2025-03-03 05:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:53:03] Production.INFO: count ==13 [2025-03-03 05:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:53:03] Production.INFO: count ==21 [2025-03-03 05:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596447') start [2025-03-03 05:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:53:03] Production.INFO: ==16012== Lock acquired, processing the job... [2025-03-03 05:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596447') end [2025-03-03 05:53:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:53:03] Production.INFO: 1 [2025-03-03 05:53:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:53:04] Production.INFO: ==16010== Lock acquired, processing the job... [2025-03-03 05:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:53:04] Production.INFO: ==16014== Releasing lock... [2025-03-03 05:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:53:04] Production.INFO: ==16006== Releasing lock... [2025-03-03 05:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:53:04] Production.INFO: Account Balance Start. [2025-03-03 05:53:04] Production.INFO: CreateAllLog Start [2025-03-03 05:53:04] Production.INFO: 117 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.ERROR: done [2025-03-03 05:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.ERROR: done [2025-03-03 05:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:53:05] Production.INFO: Total Charge 0 [2025-03-03 05:53:05] Production.INFO: CreateAllLog End [2025-03-03 05:53:05] Production.INFO: Account Balance End. [2025-03-03 05:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:53:05] Production.INFO: ==16010== Releasing lock... [2025-03-03 05:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:53:11] Production.ERROR: CronJobId end10 [2025-03-03 05:53:11] Production.INFO: ==16008== Releasing lock... [2025-03-03 05:53:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:53:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:53:14] Production.INFO: call_cost start [2025-03-03 05:53:14] Production.INFO: call_cost end [2025-03-03 05:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:53:14] Production.INFO: ==16004== Releasing lock... [2025-03-03 05:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:53:16] Production.INFO: count ==409 [2025-03-03 05:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596451', 'tblTempUsageDetail_20' ) start [2025-03-03 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596451', 'tblTempUsageDetail_20' ) end [2025-03-03 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596451', 'tblTempVendorCDR_20' ) start [2025-03-03 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596451', 'tblTempVendorCDR_20' ) end [2025-03-03 05:53:16] Production.INFO: ProcessCDR(1,14596451,1,1,2) [2025-03-03 05:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596451', 'tblTempUsageDetail_20' ) start [2025-03-03 05:53:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596451', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:53:24] Production.INFO: ==16012== Releasing lock... [2025-03-03 05:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:54:02] Production.INFO: ==16073== Lock acquired, processing the job... [2025-03-03 10:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:54:02] Production.INFO: neon service started [2025-03-03 10:54:02] Production.INFO: neon service started [2025-03-03 10:54:02] Production.INFO: ==16073== Releasing lock... [2025-03-03 10:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:54:02] Production.INFO: ==16075== Lock acquired, processing the job... [2025-03-03 05:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:54:02] Production.INFO: ==16075== Releasing lock... [2025-03-03 05:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:54:03] Production.INFO: ==16077== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:54:03] Production.INFO: ==16077== Releasing lock... [2025-03-03 10:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:54:03] Production.INFO: ==16083== Lock acquired, processing the job... [2025-03-03 05:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:54:03] Production.INFO: ==16089== Lock acquired, processing the job... [2025-03-03 05:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:54:04] Production.INFO: ==16079== Lock acquired, processing the job... [2025-03-03 05:54:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:54:04] Production.INFO: ==16081== Lock acquired, processing the job... [2025-03-03 05:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:54:04] Production.INFO: ==16085== Lock acquired, processing the job... [2025-03-03 05:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:54:04] Production.INFO: ==16087== Lock acquired, processing the job... [2025-03-03 05:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:54:04] Production.INFO: Account Balance Start. [2025-03-03 05:54:04] Production.INFO: CreateAllLog Start [2025-03-03 05:54:04] Production.INFO: 117 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:54:04] Production.INFO: count ==13 [2025-03-03 05:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:54:04] Production.INFO: count ==21 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596452') start [2025-03-03 05:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596452') end [2025-03-03 05:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:54:04] Production.INFO: 1 [2025-03-03 05:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:54:04] Production.INFO: ==16081== Releasing lock... [2025-03-03 05:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.INFO: ==16089== Releasing lock... [2025-03-03 05:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.ERROR: done [2025-03-03 05:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.ERROR: done [2025-03-03 05:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:54:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:54:05] Production.INFO: Total Charge 0 [2025-03-03 05:54:05] Production.INFO: CreateAllLog End [2025-03-03 05:54:05] Production.INFO: Account Balance End. [2025-03-03 05:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:54:05] Production.INFO: ==16085== Releasing lock... [2025-03-03 05:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:54:11] Production.ERROR: CronJobId end10 [2025-03-03 05:54:11] Production.INFO: ==16083== Releasing lock... [2025-03-03 05:54:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:54:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:54:14] Production.INFO: call_cost start [2025-03-03 05:54:14] Production.INFO: call_cost end [2025-03-03 05:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:54:14] Production.INFO: ==16079== Releasing lock... [2025-03-03 05:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:54:17] Production.INFO: count ==409 [2025-03-03 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596456', 'tblTempUsageDetail_20' ) start [2025-03-03 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596456', 'tblTempUsageDetail_20' ) end [2025-03-03 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596456', 'tblTempVendorCDR_20' ) start [2025-03-03 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596456', 'tblTempVendorCDR_20' ) end [2025-03-03 05:54:17] Production.INFO: ProcessCDR(1,14596456,1,1,2) [2025-03-03 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596456', 'tblTempUsageDetail_20' ) start [2025-03-03 05:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596456', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:54:24] Production.INFO: ==16087== Releasing lock... [2025-03-03 05:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:55:01] Production.INFO: ==16146== Lock acquired, processing the job... [2025-03-03 10:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:55:01] Production.INFO: neon service started [2025-03-03 10:55:01] Production.INFO: neon service started [2025-03-03 10:55:01] Production.INFO: ==16146== Releasing lock... [2025-03-03 10:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:55:02] Production.INFO: ==16148== Lock acquired, processing the job... [2025-03-03 05:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:55:02] Production.INFO: ==16150== Lock acquired, processing the job... [2025-03-03 10:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:55:02] Production.INFO: ==16150== Releasing lock... [2025-03-03 10:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:55:02] Production.INFO: ==16148== Releasing lock... [2025-03-03 05:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:55:03] Production.INFO: ==16161== Lock acquired, processing the job... [2025-03-03 05:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:55:03] Production.INFO: ==16159== Lock acquired, processing the job... [2025-03-03 05:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:55:03] Production.INFO: ==16153== Lock acquired, processing the job... [2025-03-03 05:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:55:03] Production.INFO: Account Balance Start. [2025-03-03 05:55:03] Production.INFO: CreateAllLog Start [2025-03-03 05:55:03] Production.INFO: 117 [2025-03-03 05:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:55:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:03] Production.INFO: ==16155== Lock acquired, processing the job... [2025-03-03 05:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:55:03] Production.INFO: ==16157== Lock acquired, processing the job... [2025-03-03 05:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:55:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:03] Production.INFO: ==16163== Lock acquired, processing the job... [2025-03-03 05:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:55:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.ERROR: done [2025-03-03 05:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: count ==13 [2025-03-03 05:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:55:04] Production.INFO: count ==21 [2025-03-03 05:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596460') start [2025-03-03 05:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.ERROR: done [2025-03-03 05:55:04] Production.INFO: ==16155== Releasing lock... [2025-03-03 05:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596460') end [2025-03-03 05:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:55:04] Production.INFO: 1 [2025-03-03 05:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: ==16163== Releasing lock... [2025-03-03 05:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:55:04] Production.INFO: Total Charge 0 [2025-03-03 05:55:04] Production.INFO: CreateAllLog End [2025-03-03 05:55:05] Production.INFO: Account Balance End. [2025-03-03 05:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:55:05] Production.INFO: ==16159== Releasing lock... [2025-03-03 05:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:55:10] Production.ERROR: CronJobId end10 [2025-03-03 05:55:10] Production.INFO: ==16157== Releasing lock... [2025-03-03 05:55:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:55:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:55:14] Production.INFO: call_cost start [2025-03-03 05:55:14] Production.INFO: call_cost end [2025-03-03 05:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:55:14] Production.INFO: ==16153== Releasing lock... [2025-03-03 05:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:55:16] Production.INFO: count ==409 [2025-03-03 05:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596461', 'tblTempUsageDetail_20' ) start [2025-03-03 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596461', 'tblTempUsageDetail_20' ) end [2025-03-03 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596461', 'tblTempVendorCDR_20' ) start [2025-03-03 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596461', 'tblTempVendorCDR_20' ) end [2025-03-03 05:55:16] Production.INFO: ProcessCDR(1,14596461,1,1,2) [2025-03-03 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596461', 'tblTempUsageDetail_20' ) start [2025-03-03 05:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596461', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:55:24] Production.INFO: ==16161== Releasing lock... [2025-03-03 05:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:55:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:56:02] Production.INFO: ==16220== Lock acquired, processing the job... [2025-03-03 10:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:56:02] Production.INFO: neon service started [2025-03-03 10:56:02] Production.INFO: neon service started [2025-03-03 10:56:02] Production.INFO: ==16220== Releasing lock... [2025-03-03 10:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 05:56:02] Production.INFO: ==16222== Lock acquired, processing the job... [2025-03-03 05:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:56:02] Production.INFO: ==16222== Releasing lock... [2025-03-03 05:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:56:02] Production.INFO: ==16224== Lock acquired, processing the job... [2025-03-03 10:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:56:02] Production.INFO: ==16224== Releasing lock... [2025-03-03 10:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:56:03] Production.INFO: ==16236== Lock acquired, processing the job... [2025-03-03 05:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:56:03] Production.INFO: ==16234== Lock acquired, processing the job... [2025-03-03 05:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:56:03] Production.INFO: ==16226== Lock acquired, processing the job... [2025-03-03 05:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:56:04] Production.INFO: ==16228== Lock acquired, processing the job... [2025-03-03 05:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:56:04] Production.INFO: ==16230== Lock acquired, processing the job... [2025-03-03 05:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:56:04] Production.INFO: count ==13 [2025-03-03 05:56:04] Production.INFO: ==16232== Lock acquired, processing the job... [2025-03-03 05:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:56:04] Production.INFO: count ==21 [2025-03-03 05:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596462') start [2025-03-03 05:56:04] Production.INFO: Account Balance Start. [2025-03-03 05:56:04] Production.INFO: CreateAllLog Start [2025-03-03 05:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596462') end [2025-03-03 05:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:56:04] Production.INFO: 1 [2025-03-03 05:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:56:04] Production.INFO: 117 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 05:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: ==16236== Releasing lock... [2025-03-03 05:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.ERROR: done [2025-03-03 05:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: ==16228== Releasing lock... [2025-03-03 05:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:56:04] Production.ERROR: done [2025-03-03 05:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-18 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-19 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:56:05] Production.INFO: Total Charge 0 [2025-03-03 05:56:05] Production.INFO: CreateAllLog End [2025-03-03 05:56:05] Production.INFO: Account Balance End. [2025-03-03 05:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:56:05] Production.INFO: ==16232== Releasing lock... [2025-03-03 05:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:56:12] Production.ERROR: CronJobId end10 [2025-03-03 05:56:12] Production.INFO: ==16230== Releasing lock... [2025-03-03 05:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:56:15] Production.INFO: call_cost start [2025-03-03 05:56:15] Production.INFO: call_cost end [2025-03-03 05:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:56:15] Production.INFO: ==16226== Releasing lock... [2025-03-03 05:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:56:16] Production.INFO: count ==409 [2025-03-03 05:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596466', 'tblTempUsageDetail_20' ) start [2025-03-03 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596466', 'tblTempUsageDetail_20' ) end [2025-03-03 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596466', 'tblTempVendorCDR_20' ) start [2025-03-03 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596466', 'tblTempVendorCDR_20' ) end [2025-03-03 05:56:16] Production.INFO: ProcessCDR(1,14596466,1,1,2) [2025-03-03 05:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596466', 'tblTempUsageDetail_20' ) start [2025-03-03 05:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596466', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:56:24] Production.INFO: ==16234== Releasing lock... [2025-03-03 05:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:56:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:57:01] Production.INFO: ==16290== Lock acquired, processing the job... [2025-03-03 10:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:57:01] Production.INFO: neon service started [2025-03-03 10:57:01] Production.INFO: neon service started [2025-03-03 10:57:01] Production.INFO: ==16290== Releasing lock... [2025-03-03 10:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:57:01] Production.INFO: ==16292== Lock acquired, processing the job... [2025-03-03 05:57:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:57:02] Production.INFO: ==16292== Releasing lock... [2025-03-03 05:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:57:02] Production.INFO: ==16294== Lock acquired, processing the job... [2025-03-03 10:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:57:02] Production.INFO: ==16294== Releasing lock... [2025-03-03 10:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:57:03] Production.INFO: ==16300== Lock acquired, processing the job... [2025-03-03 05:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:57:03] Production.INFO: ==16304== Lock acquired, processing the job... [2025-03-03 05:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:57:03] Production.INFO: ==16296== Lock acquired, processing the job... [2025-03-03 05:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:57:03] Production.INFO: ==16298== Lock acquired, processing the job... [2025-03-03 05:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:57:03] Production.INFO: ==16302== Lock acquired, processing the job... [2025-03-03 05:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:57:03] Production.INFO: Account Balance Start. [2025-03-03 05:57:03] Production.INFO: CreateAllLog Start [2025-03-03 05:57:03] Production.INFO: ==16306== Lock acquired, processing the job... [2025-03-03 05:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:57:03] Production.INFO: 117 [2025-03-03 05:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:57:03] Production.ERROR: done [2025-03-03 05:57:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:57:03] Production.INFO: count ==13 [2025-03-03 05:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:57:03] Production.INFO: count ==21 [2025-03-03 05:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596470') start [2025-03-03 05:57:03] Production.INFO: Date 2025-02-11 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.INFO: ==16298== Releasing lock... [2025-03-03 05:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596470') end [2025-03-03 05:57:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:57:03] Production.INFO: 1 [2025-03-03 05:57:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:57:03] Production.ERROR: done [2025-03-03 05:57:03] Production.INFO: Date 2025-02-12 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.INFO: ==16306== Releasing lock... [2025-03-03 05:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:57:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:57:03] Production.INFO: Date 2025-02-13 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.INFO: Date 2025-02-14 [2025-03-03 05:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:57:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:57:04] Production.INFO: Total Charge 0 [2025-03-03 05:57:04] Production.INFO: CreateAllLog End [2025-03-03 05:57:04] Production.INFO: Account Balance End. [2025-03-03 05:57:04] Production.ERROR: CronJobId end 12 [2025-03-03 05:57:04] Production.INFO: ==16302== Releasing lock... [2025-03-03 05:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:57:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:57:11] Production.ERROR: CronJobId end10 [2025-03-03 05:57:11] Production.INFO: ==16300== Releasing lock... [2025-03-03 05:57:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:57:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:57:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:57:12] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:57:12] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:57:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:57:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:57:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:57:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:57:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:57:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:57:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:57:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:57:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:57:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:57:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:57:13] Production.INFO: call_cost start [2025-03-03 05:57:13] Production.INFO: call_cost end [2025-03-03 05:57:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:57:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:57:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:57:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:57:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:57:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:57:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:57:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:57:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:57:13] Production.INFO: ==16296== Releasing lock... [2025-03-03 05:57:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:57:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:57:15] Production.INFO: count ==409 [2025-03-03 05:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596471', 'tblTempUsageDetail_20' ) start [2025-03-03 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596471', 'tblTempUsageDetail_20' ) end [2025-03-03 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596471', 'tblTempVendorCDR_20' ) start [2025-03-03 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596471', 'tblTempVendorCDR_20' ) end [2025-03-03 05:57:16] Production.INFO: ProcessCDR(1,14596471,1,1,2) [2025-03-03 05:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596471', 'tblTempUsageDetail_20' ) start [2025-03-03 05:57:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596471', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:57:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:57:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:57:23] Production.INFO: ==16304== Releasing lock... [2025-03-03 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:57:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:58:02] Production.INFO: ==16360== Lock acquired, processing the job... [2025-03-03 10:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:58:02] Production.INFO: neon service started [2025-03-03 10:58:02] Production.INFO: neon service started [2025-03-03 10:58:02] Production.INFO: ==16360== Releasing lock... [2025-03-03 10:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:58:02] Production.INFO: ==16363== Lock acquired, processing the job... [2025-03-03 05:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 05:58:02] Production.INFO: ==16363== Releasing lock... [2025-03-03 05:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:58:03] Production.INFO: ==16365== Lock acquired, processing the job... [2025-03-03 10:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:58:03] Production.INFO: ==16365== Releasing lock... [2025-03-03 10:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:58:03] Production.INFO: ==16367== Lock acquired, processing the job... [2025-03-03 05:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:58:03] Production.INFO: ==16373== Lock acquired, processing the job... [2025-03-03 05:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:58:03] Production.INFO: ==16371== Lock acquired, processing the job... [2025-03-03 05:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:58:03] Production.INFO: Account Balance Start. [2025-03-03 05:58:03] Production.INFO: CreateAllLog Start [2025-03-03 05:58:03] Production.INFO: 117 [2025-03-03 05:58:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:03] Production.INFO: ==16369== Lock acquired, processing the job... [2025-03-03 05:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: ==16375== Lock acquired, processing the job... [2025-03-03 05:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: ==16377== Lock acquired, processing the job... [2025-03-03 05:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: count ==13 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:58:04] Production.INFO: ==16369== Releasing lock... [2025-03-03 05:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:58:04] Production.INFO: count ==21 [2025-03-03 05:58:04] Production.ERROR: done [2025-03-03 05:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596475') start [2025-03-03 05:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596475') end [2025-03-03 05:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:58:04] Production.INFO: 1 [2025-03-03 05:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.ERROR: done [2025-03-03 05:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: ==16377== Releasing lock... [2025-03-03 05:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-27 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-02-28 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-03-01 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-03-02 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Date 2025-03-03 [2025-03-03 05:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:58:04] Production.INFO: Total Charge 0 [2025-03-03 05:58:04] Production.INFO: CreateAllLog End [2025-03-03 05:58:05] Production.INFO: Account Balance End. [2025-03-03 05:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:58:05] Production.INFO: ==16373== Releasing lock... [2025-03-03 05:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:58:12] Production.ERROR: CronJobId end10 [2025-03-03 05:58:12] Production.INFO: ==16371== Releasing lock... [2025-03-03 05:58:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:58:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:58:15] Production.INFO: call_cost start [2025-03-03 05:58:15] Production.INFO: call_cost end [2025-03-03 05:58:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:58:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:58:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:58:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:58:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:58:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:58:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:58:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:58:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:58:15] Production.INFO: ==16367== Releasing lock... [2025-03-03 05:58:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:58:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:58:16] Production.INFO: count ==409 [2025-03-03 05:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596476', 'tblTempUsageDetail_20' ) start [2025-03-03 05:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596476', 'tblTempUsageDetail_20' ) end [2025-03-03 05:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596476', 'tblTempVendorCDR_20' ) start [2025-03-03 05:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596476', 'tblTempVendorCDR_20' ) end [2025-03-03 05:58:16] Production.INFO: ProcessCDR(1,14596476,1,1,2) [2025-03-03 05:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596476', 'tblTempUsageDetail_20' ) start [2025-03-03 05:58:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596476', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:58:24] Production.INFO: ==16375== Releasing lock... [2025-03-03 05:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 10:59:01] Production.INFO: ==16432== Lock acquired, processing the job... [2025-03-03 10:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 10:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 10:59:01] Production.INFO: neon service started [2025-03-03 10:59:01] Production.INFO: neon service started [2025-03-03 10:59:01] Production.INFO: ==16432== Releasing lock... [2025-03-03 10:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 10:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 05:59:02] Production.INFO: ==16434== Lock acquired, processing the job... [2025-03-03 05:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:59:02] Production.INFO: ==16436== Lock acquired, processing the job... [2025-03-03 10:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:59:02] Production.INFO: ==16436== Releasing lock... [2025-03-03 10:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 10:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 05:59:02] Production.INFO: ==16434== Releasing lock... [2025-03-03 05:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 05:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 05:59:03] Production.INFO: ==16445== Lock acquired, processing the job... [2025-03-03 05:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 05:59:03] Production.INFO: ==16439== Lock acquired, processing the job... [2025-03-03 05:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 05:59:03] Production.INFO: ==16441== Lock acquired, processing the job... [2025-03-03 05:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 05:59:03] Production.INFO: ==16449== Lock acquired, processing the job... [2025-03-03 05:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 05:59:03] Production.INFO: ==16443== Lock acquired, processing the job... [2025-03-03 05:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 05:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 05:59:03] Production.INFO: Account Balance Start. [2025-03-03 05:59:03] Production.INFO: CreateAllLog Start [2025-03-03 05:59:03] Production.INFO: 117 [2025-03-03 05:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 05:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:03] Production.INFO: ==16447== Lock acquired, processing the job... [2025-03-03 05:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 05:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 05:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 05:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 05:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 05:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 05:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 05:59:03] Production.INFO: count ==13 [2025-03-03 05:59:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 05:59:03] Production.INFO: count ==21 [2025-03-03 05:59:03] Production.INFO: Date 2025-02-10 [2025-03-03 05:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596479') start [2025-03-03 05:59:03] Production.INFO: ==16441== Releasing lock... [2025-03-03 05:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 05:59:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 05:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596479') end [2025-03-03 05:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 05:59:04] Production.INFO: 1 [2025-03-03 05:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 05:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: ==16449== Releasing lock... [2025-03-03 05:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 05:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 05:59:04] Production.ERROR: done [2025-03-03 05:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.ERROR: done [2025-03-03 05:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 05:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 05:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 05:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 05:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 05:59:05] Production.INFO: Total Charge 0 [2025-03-03 05:59:05] Production.INFO: CreateAllLog End [2025-03-03 05:59:05] Production.INFO: Account Balance End. [2025-03-03 05:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 05:59:05] Production.INFO: ==16445== Releasing lock... [2025-03-03 05:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 05:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 05:59:11] Production.ERROR: CronJobId end10 [2025-03-03 05:59:11] Production.INFO: ==16443== Releasing lock... [2025-03-03 05:59:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 05:59:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 05:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 05:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 05:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 05:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 05:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 05:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 05:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 05:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 05:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 05:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 05:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 05:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 05:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 05:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 05:59:14] Production.INFO: call_cost start [2025-03-03 05:59:14] Production.INFO: call_cost end [2025-03-03 05:59:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 05:59:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 05:59:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 05:59:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 05:59:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 05:59:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 05:59:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 05:59:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 05:59:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 05:59:14] Production.INFO: ==16439== Releasing lock... [2025-03-03 05:59:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 05:59:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 05:59:16] Production.INFO: count ==409 [2025-03-03 05:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 05:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596481', 'tblTempUsageDetail_20' ) start [2025-03-03 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596481', 'tblTempUsageDetail_20' ) end [2025-03-03 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596481', 'tblTempVendorCDR_20' ) start [2025-03-03 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596481', 'tblTempVendorCDR_20' ) end [2025-03-03 05:59:16] Production.INFO: ProcessCDR(1,14596481,1,1,2) [2025-03-03 05:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596481', 'tblTempUsageDetail_20' ) start [2025-03-03 05:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596481', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 05:59:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 05:59:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 05:59:23] Production.INFO: ==16447== Releasing lock... [2025-03-03 05:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 05:59:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:00:02] Production.INFO: ==16504== Lock acquired, processing the job... [2025-03-03 11:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:00:02] Production.INFO: neon service started [2025-03-03 11:00:02] Production.INFO: neon service started [2025-03-03 11:00:02] Production.INFO: ==16504== Releasing lock... [2025-03-03 11:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:00:02] Production.INFO: ==16506== Lock acquired, processing the job... [2025-03-03 06:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:00:02] Production.INFO: ==16508== Lock acquired, processing the job... [2025-03-03 11:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:00:02] Production.INFO: ==16508== Releasing lock... [2025-03-03 11:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:00:03] Production.INFO: ==16506== Releasing lock... [2025-03-03 06:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:00:04] Production.INFO: ==16517== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:00:04] Production.INFO: ==16511== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 06:00:04] Production.INFO: ==16523== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 06:00:04] Production.INFO: ==16521== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:00:04] Production.INFO: ==16513== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:00:04] Production.ERROR: CronJob PID - 16513 [2025-03-03 06:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 06:00:04] Production.ERROR: CronJob ID - 5 [2025-03-03 06:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:00:00 [2025-03-03 06:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:00:04] Production.ERROR: CronJob PID - 16517 [2025-03-03 06:00:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 06:00:04] Production.ERROR: CronJob ID - 10 [2025-03-03 06:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:00:00 [2025-03-03 06:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:00:04] Production.ERROR: CronJob PID - 16521 [2025-03-03 06:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 06:00:04] Production.ERROR: CronJob ID - 16 [2025-03-03 06:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:00:00 [2025-03-03 06:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:00:04] Production.ERROR: CronJob PID - 16523 [2025-03-03 06:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 06:00:04] Production.ERROR: CronJob ID - 17 [2025-03-03 06:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:00:00 [2025-03-03 06:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:00:04] Production.INFO: ==16515== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:00:04] Production.INFO: ==16519== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 06:00:04] Production.INFO: ==16511== Releasing lock... [2025-03-03 06:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 06:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 06:00:04] Production.INFO: ==16525== Lock acquired, processing the job... [2025-03-03 06:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:00:04] Production.ERROR: done [2025-03-03 06:00:04] Production.INFO: Account Balance Start. [2025-03-03 06:00:04] Production.INFO: CreateAllLog Start [2025-03-03 06:00:04] Production.INFO: 117 [2025-03-03 06:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:00:05] Production.INFO: Date 2025-02-09 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 06:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596485', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 06:00:05] Production.INFO: count ==13 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:00:05] Production.INFO: count ==21 [2025-03-03 06:00:05] Production.ERROR: done [2025-03-03 06:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 06:00:05] Production.INFO: ==16515== Releasing lock... [2025-03-03 06:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596486') start [2025-03-03 06:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596486') end [2025-03-03 06:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:00:05] Production.INFO: 1 [2025-03-03 06:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: ==16525== Releasing lock... [2025-03-03 06:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.ERROR: done [2025-03-03 06:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Date 2025-02-26 [2025-03-03 06:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Date 2025-02-27 [2025-03-03 06:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Date 2025-02-28 [2025-03-03 06:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Date 2025-03-01 [2025-03-03 06:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Date 2025-03-02 [2025-03-03 06:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Date 2025-03-03 [2025-03-03 06:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:00:06] Production.INFO: Total Charge 0 [2025-03-03 06:00:06] Production.INFO: CreateAllLog End [2025-03-03 06:00:06] Production.INFO: Account Balance End. [2025-03-03 06:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 06:00:06] Production.INFO: ==16519== Releasing lock... [2025-03-03 06:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:00:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596485', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 06:00:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 06:00:08] Production.INFO: ProcessCDR(1,14596485,1,1,2) [2025-03-03 06:00:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596485,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:00:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596485,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:00:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 06:00:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 06:00:08] Production.INFO: ==16523== Releasing lock... [2025-03-03 06:00:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 06:00:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:00:14] Production.ERROR: CronJobId end10 [2025-03-03 06:00:14] Production.INFO: ==16517== Releasing lock... [2025-03-03 06:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:00:16] Production.INFO: call_cost start [2025-03-03 06:00:16] Production.INFO: call_cost end [2025-03-03 06:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:00:16] Production.INFO: ==16513== Releasing lock... [2025-03-03 06:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:00:17] Production.INFO: count ==409 [2025-03-03 06:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596487', 'tblTempUsageDetail_20' ) start [2025-03-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596487', 'tblTempUsageDetail_20' ) end [2025-03-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596487', 'tblTempVendorCDR_20' ) start [2025-03-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596487', 'tblTempVendorCDR_20' ) end [2025-03-03 06:00:17] Production.INFO: ProcessCDR(1,14596487,1,1,2) [2025-03-03 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596487', 'tblTempUsageDetail_20' ) start [2025-03-03 06:00:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596487', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:00:25] Production.INFO: ==16521== Releasing lock... [2025-03-03 06:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:00:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:01:01] Production.INFO: ==16583== Lock acquired, processing the job... [2025-03-03 11:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:01:01] Production.INFO: neon service started [2025-03-03 11:01:01] Production.INFO: neon service started [2025-03-03 11:01:01] Production.INFO: ==16583== Releasing lock... [2025-03-03 11:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:01:02] Production.INFO: ==16596== Lock acquired, processing the job... [2025-03-03 11:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:01:02] Production.INFO: ==16594== Lock acquired, processing the job... [2025-03-03 06:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:01:02] Production.INFO: ==16596== Releasing lock... [2025-03-03 11:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:01:02] Production.INFO: ==16594== Releasing lock... [2025-03-03 06:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:01:03] Production.INFO: ==16601== Lock acquired, processing the job... [2025-03-03 06:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:01:03] Production.INFO: ==16609== Lock acquired, processing the job... [2025-03-03 06:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:01:03] Production.INFO: ==16599== Lock acquired, processing the job... [2025-03-03 06:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:01:03] Production.INFO: ==16603== Lock acquired, processing the job... [2025-03-03 06:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:01:03] Production.INFO: count ==13 [2025-03-03 06:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:01:03] Production.INFO: ==16607== Lock acquired, processing the job... [2025-03-03 06:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:01:03] Production.INFO: count ==21 [2025-03-03 06:01:03] Production.INFO: ==16605== Lock acquired, processing the job... [2025-03-03 06:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596488') start [2025-03-03 06:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596488') end [2025-03-03 06:01:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:01:03] Production.INFO: 1 [2025-03-03 06:01:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:01:03] Production.INFO: ==16609== Releasing lock... [2025-03-03 06:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:01:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:01:03] Production.INFO: Account Balance Start. [2025-03-03 06:01:03] Production.INFO: CreateAllLog Start [2025-03-03 06:01:03] Production.INFO: 117 [2025-03-03 06:01:03] Production.INFO: ==16601== Releasing lock... [2025-03-03 06:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:01:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:01:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.ERROR: done [2025-03-03 06:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.ERROR: done [2025-03-03 06:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:01:05] Production.INFO: Total Charge 0 [2025-03-03 06:01:05] Production.INFO: CreateAllLog End [2025-03-03 06:01:05] Production.INFO: Account Balance End. [2025-03-03 06:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:01:05] Production.INFO: ==16605== Releasing lock... [2025-03-03 06:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:01:11] Production.ERROR: CronJobId end10 [2025-03-03 06:01:11] Production.INFO: ==16603== Releasing lock... [2025-03-03 06:01:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:01:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:01:14] Production.INFO: call_cost start [2025-03-03 06:01:14] Production.INFO: call_cost end [2025-03-03 06:01:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:01:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:01:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:01:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:01:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:01:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:01:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:01:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:01:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:01:14] Production.INFO: ==16599== Releasing lock... [2025-03-03 06:01:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:01:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:01:16] Production.INFO: count ==409 [2025-03-03 06:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596492', 'tblTempUsageDetail_20' ) start [2025-03-03 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596492', 'tblTempUsageDetail_20' ) end [2025-03-03 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596492', 'tblTempVendorCDR_20' ) start [2025-03-03 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596492', 'tblTempVendorCDR_20' ) end [2025-03-03 06:01:16] Production.INFO: ProcessCDR(1,14596492,1,1,2) [2025-03-03 06:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596492', 'tblTempUsageDetail_20' ) start [2025-03-03 06:01:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596492', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:01:24] Production.INFO: ==16607== Releasing lock... [2025-03-03 06:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:02:01] Production.INFO: ==16702== Lock acquired, processing the job... [2025-03-03 11:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:02:01] Production.INFO: neon service started [2025-03-03 11:02:01] Production.INFO: neon service started [2025-03-03 11:02:01] Production.INFO: ==16702== Releasing lock... [2025-03-03 11:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:02:02] Production.INFO: ==16706== Lock acquired, processing the job... [2025-03-03 11:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:02:02] Production.INFO: ==16706== Releasing lock... [2025-03-03 11:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:02:02] Production.INFO: ==16704== Lock acquired, processing the job... [2025-03-03 06:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:02:02] Production.INFO: ==16704== Releasing lock... [2025-03-03 06:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:02:03] Production.INFO: ==16708== Lock acquired, processing the job... [2025-03-03 06:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:02:03] Production.INFO: ==16710== Lock acquired, processing the job... [2025-03-03 06:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:02:03] Production.INFO: ==16712== Lock acquired, processing the job... [2025-03-03 06:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:02:03] Production.INFO: ==16714== Lock acquired, processing the job... [2025-03-03 06:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:02:03] Production.INFO: ==16716== Lock acquired, processing the job... [2025-03-03 06:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:02:03] Production.INFO: Account Balance Start. [2025-03-03 06:02:03] Production.INFO: CreateAllLog Start [2025-03-03 06:02:03] Production.INFO: ==16710== Releasing lock... [2025-03-03 06:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:02:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:02:04] Production.INFO: 117 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:02:04] Production.INFO: ==16718== Lock acquired, processing the job... [2025-03-03 06:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: count ==13 [2025-03-03 06:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:02:04] Production.ERROR: done [2025-03-03 06:02:04] Production.INFO: count ==21 [2025-03-03 06:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596496') start [2025-03-03 06:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596496') end [2025-03-03 06:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:02:04] Production.INFO: 1 [2025-03-03 06:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:02:04] Production.ERROR: done [2025-03-03 06:02:04] Production.INFO: ==16718== Releasing lock... [2025-03-03 06:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:02:05] Production.INFO: Total Charge 0 [2025-03-03 06:02:05] Production.INFO: CreateAllLog End [2025-03-03 06:02:05] Production.INFO: Account Balance End. [2025-03-03 06:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:02:05] Production.INFO: ==16714== Releasing lock... [2025-03-03 06:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:02:11] Production.ERROR: CronJobId end10 [2025-03-03 06:02:11] Production.INFO: ==16712== Releasing lock... [2025-03-03 06:02:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:02:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:02:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:02:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:02:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:02:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:02:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:02:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:02:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:02:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:02:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:02:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:02:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:02:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:02:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:02:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:02:13] Production.INFO: call_cost start [2025-03-03 06:02:13] Production.INFO: call_cost end [2025-03-03 06:02:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:02:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:02:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:02:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:02:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:02:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:02:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:02:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:02:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:02:13] Production.INFO: ==16708== Releasing lock... [2025-03-03 06:02:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:02:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:02:16] Production.INFO: count ==409 [2025-03-03 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596497', 'tblTempUsageDetail_20' ) start [2025-03-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596497', 'tblTempUsageDetail_20' ) end [2025-03-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596497', 'tblTempVendorCDR_20' ) start [2025-03-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596497', 'tblTempVendorCDR_20' ) end [2025-03-03 06:02:17] Production.INFO: ProcessCDR(1,14596497,1,1,2) [2025-03-03 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596497', 'tblTempUsageDetail_20' ) start [2025-03-03 06:02:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596497', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:02:24] Production.INFO: ==16716== Releasing lock... [2025-03-03 06:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:03:01] Production.INFO: ==16772== Lock acquired, processing the job... [2025-03-03 11:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:03:01] Production.INFO: neon service started [2025-03-03 11:03:01] Production.INFO: neon service started [2025-03-03 11:03:01] Production.INFO: ==16772== Releasing lock... [2025-03-03 11:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:03:01] Production.INFO: ==16776== Lock acquired, processing the job... [2025-03-03 11:03:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:03:01] Production.INFO: ==16776== Releasing lock... [2025-03-03 11:03:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:03:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:03:01] Production.INFO: ==16774== Lock acquired, processing the job... [2025-03-03 06:03:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:03:02] Production.INFO: ==16774== Releasing lock... [2025-03-03 06:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:03:03] Production.INFO: ==16782== Lock acquired, processing the job... [2025-03-03 06:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:03:03] Production.INFO: ==16786== Lock acquired, processing the job... [2025-03-03 06:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:03:03] Production.INFO: ==16778== Lock acquired, processing the job... [2025-03-03 06:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:03:03] Production.INFO: ==16780== Lock acquired, processing the job... [2025-03-03 06:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:03:03] Production.INFO: ==16784== Lock acquired, processing the job... [2025-03-03 06:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:03:03] Production.INFO: ==16788== Lock acquired, processing the job... [2025-03-03 06:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:03:03] Production.ERROR: done [2025-03-03 06:03:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:03:03] Production.INFO: Account Balance Start. [2025-03-03 06:03:03] Production.INFO: CreateAllLog Start [2025-03-03 06:03:03] Production.INFO: 117 [2025-03-03 06:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:03:03] Production.INFO: count ==13 [2025-03-03 06:03:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:03:03] Production.INFO: count ==21 [2025-03-03 06:03:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596501') start [2025-03-03 06:03:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:03] Production.INFO: ==16780== Releasing lock... [2025-03-03 06:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:03:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:03:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:03] Production.ERROR: done [2025-03-03 06:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596501') end [2025-03-03 06:03:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:03:03] Production.INFO: 1 [2025-03-03 06:03:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:03:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:03] Production.INFO: ==16788== Releasing lock... [2025-03-03 06:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:03:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:03:04] Production.INFO: Total Charge 0 [2025-03-03 06:03:04] Production.INFO: CreateAllLog End [2025-03-03 06:03:04] Production.INFO: Account Balance End. [2025-03-03 06:03:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:03:04] Production.INFO: ==16784== Releasing lock... [2025-03-03 06:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:03:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:03:11] Production.ERROR: CronJobId end10 [2025-03-03 06:03:11] Production.INFO: ==16782== Releasing lock... [2025-03-03 06:03:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:03:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:03:14] Production.INFO: call_cost start [2025-03-03 06:03:14] Production.INFO: call_cost end [2025-03-03 06:03:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:03:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:03:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:03:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:03:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:03:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:03:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:03:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:03:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:03:14] Production.INFO: ==16778== Releasing lock... [2025-03-03 06:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:03:15] Production.INFO: count ==409 [2025-03-03 06:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596502', 'tblTempUsageDetail_20' ) start [2025-03-03 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596502', 'tblTempUsageDetail_20' ) end [2025-03-03 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596502', 'tblTempVendorCDR_20' ) start [2025-03-03 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596502', 'tblTempVendorCDR_20' ) end [2025-03-03 06:03:16] Production.INFO: ProcessCDR(1,14596502,1,1,2) [2025-03-03 06:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596502', 'tblTempUsageDetail_20' ) start [2025-03-03 06:03:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596502', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:03:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:03:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:03:23] Production.INFO: ==16786== Releasing lock... [2025-03-03 06:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:03:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:04:01] Production.INFO: ==16842== Lock acquired, processing the job... [2025-03-03 11:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:04:01] Production.INFO: neon service started [2025-03-03 11:04:01] Production.INFO: neon service started [2025-03-03 11:04:01] Production.INFO: ==16842== Releasing lock... [2025-03-03 11:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:04:02] Production.INFO: ==16847== Lock acquired, processing the job... [2025-03-03 11:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:04:02] Production.INFO: ==16845== Lock acquired, processing the job... [2025-03-03 06:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:04:02] Production.INFO: ==16847== Releasing lock... [2025-03-03 11:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:04:02] Production.INFO: ==16845== Releasing lock... [2025-03-03 06:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:04:03] Production.INFO: ==16849== Lock acquired, processing the job... [2025-03-03 06:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:04:03] Production.INFO: ==16855== Lock acquired, processing the job... [2025-03-03 06:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:04:03] Production.INFO: Account Balance Start. [2025-03-03 06:04:03] Production.INFO: CreateAllLog Start [2025-03-03 06:04:03] Production.INFO: 117 [2025-03-03 06:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:03] Production.INFO: ==16859== Lock acquired, processing the job... [2025-03-03 06:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:03] Production.INFO: ==16851== Lock acquired, processing the job... [2025-03-03 06:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:04:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:03] Production.INFO: count ==13 [2025-03-03 06:04:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:04:04] Production.INFO: count ==21 [2025-03-03 06:04:04] Production.INFO: ==16853== Lock acquired, processing the job... [2025-03-03 06:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596505') start [2025-03-03 06:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: ==16857== Lock acquired, processing the job... [2025-03-03 06:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596505') end [2025-03-03 06:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:04:04] Production.INFO: 1 [2025-03-03 06:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:04:04] Production.INFO: ==16859== Releasing lock... [2025-03-03 06:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:04:04] Production.INFO: ==16851== Releasing lock... [2025-03-03 06:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.ERROR: done [2025-03-03 06:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.ERROR: done [2025-03-03 06:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:04:05] Production.INFO: Total Charge 0 [2025-03-03 06:04:05] Production.INFO: CreateAllLog End [2025-03-03 06:04:05] Production.INFO: Account Balance End. [2025-03-03 06:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:04:05] Production.INFO: ==16855== Releasing lock... [2025-03-03 06:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:04:12] Production.ERROR: CronJobId end10 [2025-03-03 06:04:12] Production.INFO: ==16853== Releasing lock... [2025-03-03 06:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:04:14] Production.INFO: call_cost start [2025-03-03 06:04:14] Production.INFO: call_cost end [2025-03-03 06:04:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:04:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:04:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:04:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:04:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:04:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:04:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:04:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:04:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:04:14] Production.INFO: ==16849== Releasing lock... [2025-03-03 06:04:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:04:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:04:16] Production.INFO: count ==409 [2025-03-03 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596507', 'tblTempUsageDetail_20' ) start [2025-03-03 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596507', 'tblTempUsageDetail_20' ) end [2025-03-03 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596507', 'tblTempVendorCDR_20' ) start [2025-03-03 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596507', 'tblTempVendorCDR_20' ) end [2025-03-03 06:04:17] Production.INFO: ProcessCDR(1,14596507,1,1,2) [2025-03-03 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596507', 'tblTempUsageDetail_20' ) start [2025-03-03 06:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596507', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:04:24] Production.INFO: ==16857== Releasing lock... [2025-03-03 06:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:04:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:05:02] Production.INFO: ==16915== Lock acquired, processing the job... [2025-03-03 11:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:05:02] Production.INFO: neon service started [2025-03-03 11:05:02] Production.INFO: neon service started [2025-03-03 11:05:02] Production.INFO: ==16915== Releasing lock... [2025-03-03 11:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:05:02] Production.INFO: ==16917== Lock acquired, processing the job... [2025-03-03 06:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:05:02] Production.INFO: ==16917== Releasing lock... [2025-03-03 06:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:05:03] Production.INFO: ==16919== Lock acquired, processing the job... [2025-03-03 11:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:05:03] Production.INFO: ==16919== Releasing lock... [2025-03-03 11:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:05:03] Production.INFO: ==16928== Lock acquired, processing the job... [2025-03-03 06:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:05:03] Production.INFO: ==16932== Lock acquired, processing the job... [2025-03-03 06:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:05:03] Production.INFO: Account Balance Start. [2025-03-03 06:05:03] Production.INFO: CreateAllLog Start [2025-03-03 06:05:03] Production.INFO: 117 [2025-03-03 06:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:05:03] Production.INFO: ==16922== Lock acquired, processing the job... [2025-03-03 06:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:03] Production.INFO: ==16926== Lock acquired, processing the job... [2025-03-03 06:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:05:03] Production.INFO: ==16924== Lock acquired, processing the job... [2025-03-03 06:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:05:04] Production.INFO: count ==13 [2025-03-03 06:05:04] Production.INFO: ==16930== Lock acquired, processing the job... [2025-03-03 06:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:05:04] Production.INFO: count ==21 [2025-03-03 06:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596509') start [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596509') end [2025-03-03 06:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:05:04] Production.INFO: 1 [2025-03-03 06:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: ==16932== Releasing lock... [2025-03-03 06:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.ERROR: done [2025-03-03 06:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: ==16924== Releasing lock... [2025-03-03 06:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.ERROR: done [2025-03-03 06:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:05:05] Production.INFO: Total Charge 0 [2025-03-03 06:05:05] Production.INFO: CreateAllLog End [2025-03-03 06:05:05] Production.INFO: Account Balance End. [2025-03-03 06:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:05:05] Production.INFO: ==16928== Releasing lock... [2025-03-03 06:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:05:12] Production.ERROR: CronJobId end10 [2025-03-03 06:05:12] Production.INFO: ==16926== Releasing lock... [2025-03-03 06:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:05:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:05:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:05:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:05:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:05:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:05:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:05:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:05:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:05:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:05:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:05:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:05:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:05:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:05:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:05:13] Production.INFO: call_cost start [2025-03-03 06:05:13] Production.INFO: call_cost end [2025-03-03 06:05:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:05:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:05:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:05:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:05:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:05:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:05:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:05:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:05:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:05:13] Production.INFO: ==16922== Releasing lock... [2025-03-03 06:05:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:05:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:05:16] Production.INFO: count ==409 [2025-03-03 06:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596512', 'tblTempUsageDetail_20' ) start [2025-03-03 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596512', 'tblTempUsageDetail_20' ) end [2025-03-03 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596512', 'tblTempVendorCDR_20' ) start [2025-03-03 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596512', 'tblTempVendorCDR_20' ) end [2025-03-03 06:05:16] Production.INFO: ProcessCDR(1,14596512,1,1,2) [2025-03-03 06:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596512', 'tblTempUsageDetail_20' ) start [2025-03-03 06:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596512', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:05:24] Production.INFO: ==16930== Releasing lock... [2025-03-03 06:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:06:01] Production.INFO: ==16985== Lock acquired, processing the job... [2025-03-03 11:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:06:01] Production.INFO: neon service started [2025-03-03 11:06:01] Production.INFO: neon service started [2025-03-03 11:06:01] Production.INFO: ==16985== Releasing lock... [2025-03-03 11:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:06:02] Production.INFO: ==16987== Lock acquired, processing the job... [2025-03-03 06:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:06:02] Production.INFO: ==16987== Releasing lock... [2025-03-03 06:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:06:02] Production.INFO: ==16989== Lock acquired, processing the job... [2025-03-03 11:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:06:02] Production.INFO: ==16989== Releasing lock... [2025-03-03 11:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:06:03] Production.INFO: ==16996== Lock acquired, processing the job... [2025-03-03 06:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:06:03] Production.INFO: ==16992== Lock acquired, processing the job... [2025-03-03 06:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:06:03] Production.INFO: ==17002== Lock acquired, processing the job... [2025-03-03 06:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:06:03] Production.INFO: ==16994== Lock acquired, processing the job... [2025-03-03 06:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:06:03] Production.INFO: ==16998== Lock acquired, processing the job... [2025-03-03 06:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:06:03] Production.INFO: count ==13 [2025-03-03 06:06:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:06:03] Production.INFO: count ==21 [2025-03-03 06:06:03] Production.INFO: ==17000== Lock acquired, processing the job... [2025-03-03 06:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596513') start [2025-03-03 06:06:03] Production.INFO: Account Balance Start. [2025-03-03 06:06:03] Production.INFO: CreateAllLog Start [2025-03-03 06:06:03] Production.INFO: 117 [2025-03-03 06:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:06:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596513') end [2025-03-03 06:06:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:06:03] Production.INFO: 1 [2025-03-03 06:06:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:06:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.INFO: ==17002== Releasing lock... [2025-03-03 06:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:06:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:06:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:03] Production.INFO: ==16994== Releasing lock... [2025-03-03 06:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:06:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.ERROR: done [2025-03-03 06:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.ERROR: done [2025-03-03 06:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:06:04] Production.INFO: Total Charge 0 [2025-03-03 06:06:04] Production.INFO: CreateAllLog End [2025-03-03 06:06:04] Production.INFO: Account Balance End. [2025-03-03 06:06:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:06:04] Production.INFO: ==16998== Releasing lock... [2025-03-03 06:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:06:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:06:11] Production.ERROR: CronJobId end10 [2025-03-03 06:06:11] Production.INFO: ==16996== Releasing lock... [2025-03-03 06:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:06:14] Production.INFO: call_cost start [2025-03-03 06:06:14] Production.INFO: call_cost end [2025-03-03 06:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:06:14] Production.INFO: ==16992== Releasing lock... [2025-03-03 06:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:06:16] Production.INFO: count ==409 [2025-03-03 06:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596517', 'tblTempUsageDetail_20' ) start [2025-03-03 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596517', 'tblTempUsageDetail_20' ) end [2025-03-03 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596517', 'tblTempVendorCDR_20' ) start [2025-03-03 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596517', 'tblTempVendorCDR_20' ) end [2025-03-03 06:06:16] Production.INFO: ProcessCDR(1,14596517,1,1,2) [2025-03-03 06:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596517', 'tblTempUsageDetail_20' ) start [2025-03-03 06:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596517', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:06:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:06:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:06:23] Production.INFO: ==17000== Releasing lock... [2025-03-03 06:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:06:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:07:02] Production.INFO: ==17060== Lock acquired, processing the job... [2025-03-03 11:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:07:02] Production.INFO: neon service started [2025-03-03 11:07:02] Production.INFO: neon service started [2025-03-03 11:07:02] Production.INFO: ==17060== Releasing lock... [2025-03-03 11:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:07:02] Production.INFO: ==17065== Lock acquired, processing the job... [2025-03-03 11:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:07:02] Production.INFO: ==17065== Releasing lock... [2025-03-03 11:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:07:02] Production.INFO: ==17063== Lock acquired, processing the job... [2025-03-03 06:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:07:02] Production.INFO: ==17063== Releasing lock... [2025-03-03 06:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:07:03] Production.INFO: ==17071== Lock acquired, processing the job... [2025-03-03 06:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:07:03] Production.INFO: ==17075== Lock acquired, processing the job... [2025-03-03 06:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:07:03] Production.INFO: ==17067== Lock acquired, processing the job... [2025-03-03 06:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:07:03] Production.INFO: ==17069== Lock acquired, processing the job... [2025-03-03 06:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:07:04] Production.INFO: ==17077== Lock acquired, processing the job... [2025-03-03 06:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:07:04] Production.INFO: ==17073== Lock acquired, processing the job... [2025-03-03 06:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:07:04] Production.INFO: count ==13 [2025-03-03 06:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:07:04] Production.INFO: count ==21 [2025-03-03 06:07:04] Production.INFO: Account Balance Start. [2025-03-03 06:07:04] Production.INFO: CreateAllLog Start [2025-03-03 06:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596520') start [2025-03-03 06:07:04] Production.INFO: 117 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.ERROR: done [2025-03-03 06:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596520') end [2025-03-03 06:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:07:04] Production.INFO: 1 [2025-03-03 06:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:07:04] Production.INFO: ==17077== Releasing lock... [2025-03-03 06:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: ==17069== Releasing lock... [2025-03-03 06:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.ERROR: done [2025-03-03 06:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:07:05] Production.INFO: Total Charge 0 [2025-03-03 06:07:05] Production.INFO: CreateAllLog End [2025-03-03 06:07:05] Production.INFO: Account Balance End. [2025-03-03 06:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:07:05] Production.INFO: ==17073== Releasing lock... [2025-03-03 06:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:07:11] Production.ERROR: CronJobId end10 [2025-03-03 06:07:11] Production.INFO: ==17071== Releasing lock... [2025-03-03 06:07:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:07:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:07:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:07:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:07:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:07:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:07:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:07:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:07:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:07:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:07:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:07:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:07:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:07:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:07:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:07:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:07:14] Production.INFO: call_cost start [2025-03-03 06:07:14] Production.INFO: call_cost end [2025-03-03 06:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:07:14] Production.INFO: ==17067== Releasing lock... [2025-03-03 06:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:07:16] Production.INFO: count ==409 [2025-03-03 06:07:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596522', 'tblTempUsageDetail_20' ) start [2025-03-03 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596522', 'tblTempUsageDetail_20' ) end [2025-03-03 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596522', 'tblTempVendorCDR_20' ) start [2025-03-03 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596522', 'tblTempVendorCDR_20' ) end [2025-03-03 06:07:16] Production.INFO: ProcessCDR(1,14596522,1,1,2) [2025-03-03 06:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596522', 'tblTempUsageDetail_20' ) start [2025-03-03 06:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596522', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:07:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:07:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:07:24] Production.INFO: ==17075== Releasing lock... [2025-03-03 06:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:07:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:08:01] Production.INFO: ==17131== Lock acquired, processing the job... [2025-03-03 11:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:08:01] Production.INFO: neon service started [2025-03-03 11:08:01] Production.INFO: neon service started [2025-03-03 11:08:01] Production.INFO: ==17131== Releasing lock... [2025-03-03 11:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:08:02] Production.INFO: ==17133== Lock acquired, processing the job... [2025-03-03 06:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:08:02] Production.INFO: ==17135== Lock acquired, processing the job... [2025-03-03 11:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:08:02] Production.INFO: ==17135== Releasing lock... [2025-03-03 11:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:08:02] Production.INFO: ==17133== Releasing lock... [2025-03-03 06:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:08:03] Production.INFO: ==17140== Lock acquired, processing the job... [2025-03-03 06:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:08:03] Production.INFO: ==17146== Lock acquired, processing the job... [2025-03-03 06:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:08:03] Production.INFO: ==17138== Lock acquired, processing the job... [2025-03-03 06:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:08:03] Production.INFO: ==17140== Releasing lock... [2025-03-03 06:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:08:03] Production.INFO: ==17142== Lock acquired, processing the job... [2025-03-03 06:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:08:03] Production.INFO: ==17144== Lock acquired, processing the job... [2025-03-03 06:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:08:03] Production.INFO: ==17148== Lock acquired, processing the job... [2025-03-03 06:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:08:03] Production.ERROR: done [2025-03-03 06:08:03] Production.INFO: Account Balance Start. [2025-03-03 06:08:03] Production.INFO: CreateAllLog Start [2025-03-03 06:08:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:08:03] Production.INFO: 117 [2025-03-03 06:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: count ==13 [2025-03-03 06:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:08:04] Production.INFO: count ==21 [2025-03-03 06:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596525') start [2025-03-03 06:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.ERROR: done [2025-03-03 06:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596525') end [2025-03-03 06:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:08:04] Production.INFO: 1 [2025-03-03 06:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:08:04] Production.INFO: ==17148== Releasing lock... [2025-03-03 06:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:08:04] Production.INFO: Total Charge 0 [2025-03-03 06:08:04] Production.INFO: CreateAllLog End [2025-03-03 06:08:04] Production.INFO: Account Balance End. [2025-03-03 06:08:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:08:04] Production.INFO: ==17144== Releasing lock... [2025-03-03 06:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:08:11] Production.ERROR: CronJobId end10 [2025-03-03 06:08:11] Production.INFO: ==17142== Releasing lock... [2025-03-03 06:08:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:08:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:08:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:08:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:08:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:08:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:08:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:08:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:08:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:08:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:08:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:08:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:08:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:08:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:08:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:08:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:08:13] Production.INFO: call_cost start [2025-03-03 06:08:13] Production.INFO: call_cost end [2025-03-03 06:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:08:14] Production.INFO: ==17138== Releasing lock... [2025-03-03 06:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:08:16] Production.INFO: count ==409 [2025-03-03 06:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596527', 'tblTempUsageDetail_20' ) start [2025-03-03 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596527', 'tblTempUsageDetail_20' ) end [2025-03-03 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596527', 'tblTempVendorCDR_20' ) start [2025-03-03 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596527', 'tblTempVendorCDR_20' ) end [2025-03-03 06:08:16] Production.INFO: ProcessCDR(1,14596527,1,1,2) [2025-03-03 06:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596527', 'tblTempUsageDetail_20' ) start [2025-03-03 06:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596527', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:08:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:08:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:08:23] Production.INFO: ==17146== Releasing lock... [2025-03-03 06:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:08:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:09:02] Production.INFO: ==17206== Lock acquired, processing the job... [2025-03-03 11:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:09:02] Production.INFO: neon service started [2025-03-03 11:09:02] Production.INFO: neon service started [2025-03-03 11:09:02] Production.INFO: ==17206== Releasing lock... [2025-03-03 11:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:09:02] Production.INFO: ==17210== Lock acquired, processing the job... [2025-03-03 11:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:09:02] Production.INFO: ==17210== Releasing lock... [2025-03-03 11:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:09:02] Production.INFO: ==17208== Lock acquired, processing the job... [2025-03-03 06:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:09:02] Production.INFO: ==17208== Releasing lock... [2025-03-03 06:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:09:03] Production.INFO: ==17213== Lock acquired, processing the job... [2025-03-03 06:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:09:03] Production.INFO: ==17221== Lock acquired, processing the job... [2025-03-03 06:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:09:04] Production.INFO: ==17217== Lock acquired, processing the job... [2025-03-03 06:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:09:04] Production.INFO: ==17215== Lock acquired, processing the job... [2025-03-03 06:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:09:04] Production.INFO: ==17219== Lock acquired, processing the job... [2025-03-03 06:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:09:04] Production.INFO: ==17223== Lock acquired, processing the job... [2025-03-03 06:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:09:04] Production.ERROR: done [2025-03-03 06:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:09:04] Production.INFO: Account Balance Start. [2025-03-03 06:09:04] Production.INFO: CreateAllLog Start [2025-03-03 06:09:04] Production.ERROR: done [2025-03-03 06:09:04] Production.INFO: 117 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: count ==13 [2025-03-03 06:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:09:04] Production.INFO: count ==21 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596530') start [2025-03-03 06:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596530') end [2025-03-03 06:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:09:04] Production.INFO: 1 [2025-03-03 06:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:09:04] Production.INFO: ==17215== Releasing lock... [2025-03-03 06:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:09:04] Production.INFO: ==17223== Releasing lock... [2025-03-03 06:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:09:05] Production.INFO: Total Charge 0 [2025-03-03 06:09:05] Production.INFO: CreateAllLog End [2025-03-03 06:09:05] Production.INFO: Account Balance End. [2025-03-03 06:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:09:05] Production.INFO: ==17219== Releasing lock... [2025-03-03 06:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:09:13] Production.ERROR: CronJobId end10 [2025-03-03 06:09:13] Production.INFO: ==17217== Releasing lock... [2025-03-03 06:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:09:15] Production.INFO: call_cost start [2025-03-03 06:09:15] Production.INFO: call_cost end [2025-03-03 06:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:09:15] Production.INFO: ==17213== Releasing lock... [2025-03-03 06:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:09:16] Production.INFO: count ==409 [2025-03-03 06:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596531', 'tblTempUsageDetail_20' ) start [2025-03-03 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596531', 'tblTempUsageDetail_20' ) end [2025-03-03 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596531', 'tblTempVendorCDR_20' ) start [2025-03-03 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596531', 'tblTempVendorCDR_20' ) end [2025-03-03 06:09:16] Production.INFO: ProcessCDR(1,14596531,1,1,2) [2025-03-03 06:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596531', 'tblTempUsageDetail_20' ) start [2025-03-03 06:09:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596531', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:09:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:09:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:09:24] Production.INFO: ==17221== Releasing lock... [2025-03-03 06:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:09:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:10:01] Production.INFO: ==17281== Lock acquired, processing the job... [2025-03-03 11:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:10:01] Production.INFO: neon service started [2025-03-03 11:10:01] Production.INFO: neon service started [2025-03-03 11:10:01] Production.INFO: ==17281== Releasing lock... [2025-03-03 11:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:10:01] Production.INFO: ==17283== Lock acquired, processing the job... [2025-03-03 06:10:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:10:02] Production.INFO: ==17285== Lock acquired, processing the job... [2025-03-03 11:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:10:02] Production.INFO: ==17283== Releasing lock... [2025-03-03 06:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:10:02] Production.INFO: ==17285== Releasing lock... [2025-03-03 11:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:10:03] Production.INFO: ==17289== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:10:03] Production.INFO: ==17287== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 06:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:10:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 06:10:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:10:03] Production.ERROR: CronJob PID - 17289 [2025-03-03 06:10:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 06:10:03] Production.ERROR: CronJob ID - 5 [2025-03-03 06:10:03] Production.ERROR: CronJob Last Run Time 2025-03-03 06:10:00 [2025-03-03 06:10:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:10:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:10:03] Production.INFO: ==17295== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:10:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 06:10:03] Production.INFO: ==17287== Releasing lock... [2025-03-03 06:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 06:10:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 06:10:03] Production.INFO: ==17291== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:10:03] Production.INFO: ==17300== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 06:10:03] Production.INFO: ==17293== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:10:03] Production.INFO: Account Balance Start. [2025-03-03 06:10:03] Production.INFO: CreateAllLog Start [2025-03-03 06:10:03] Production.INFO: 117 [2025-03-03 06:10:03] Production.INFO: ==17298== Lock acquired, processing the job... [2025-03-03 06:10:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:10:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:10:04] Production.INFO: ==17302== Lock acquired, processing the job... [2025-03-03 06:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:10:04] Production.ERROR: done [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: ==17291== Releasing lock... [2025-03-03 06:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 06:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596537', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 06:10:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: count ==13 [2025-03-03 06:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:10:04] Production.INFO: count ==21 [2025-03-03 06:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596536') start [2025-03-03 06:10:04] Production.ERROR: done [2025-03-03 06:10:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596536') end [2025-03-03 06:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:10:04] Production.INFO: 1 [2025-03-03 06:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:10:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: ==17302== Releasing lock... [2025-03-03 06:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:10:04] Production.ERROR: done [2025-03-03 06:10:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:10:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:10:05] Production.INFO: Total Charge 0 [2025-03-03 06:10:05] Production.INFO: CreateAllLog End [2025-03-03 06:10:05] Production.INFO: Account Balance End. [2025-03-03 06:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:10:05] Production.INFO: ==17295== Releasing lock... [2025-03-03 06:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:10:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596537', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 06:10:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 06:10:08] Production.INFO: ProcessCDR(1,14596537,1,1,2) [2025-03-03 06:10:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596537,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:10:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596537,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:10:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 06:10:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 06:10:08] Production.INFO: ==17300== Releasing lock... [2025-03-03 06:10:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 06:10:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:10:14] Production.ERROR: CronJobId end10 [2025-03-03 06:10:14] Production.INFO: ==17293== Releasing lock... [2025-03-03 06:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:10:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:10:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:10:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:10:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:10:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:10:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:10:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:10:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:10:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:10:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:10:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:10:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:10:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:10:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:10:16] Production.INFO: call_cost start [2025-03-03 06:10:16] Production.INFO: call_cost end [2025-03-03 06:10:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:10:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:10:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:10:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:10:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:10:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:10:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:10:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:10:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:10:16] Production.INFO: ==17289== Releasing lock... [2025-03-03 06:10:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:10:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:10:16] Production.INFO: count ==409 [2025-03-03 06:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596538', 'tblTempUsageDetail_20' ) start [2025-03-03 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596538', 'tblTempUsageDetail_20' ) end [2025-03-03 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596538', 'tblTempVendorCDR_20' ) start [2025-03-03 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596538', 'tblTempVendorCDR_20' ) end [2025-03-03 06:10:17] Production.INFO: ProcessCDR(1,14596538,1,1,2) [2025-03-03 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596538', 'tblTempUsageDetail_20' ) start [2025-03-03 06:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596538', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:10:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:10:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:10:24] Production.INFO: ==17298== Releasing lock... [2025-03-03 06:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-03 11:11:02] Production.INFO: ==17360== Lock acquired, processing the job... [2025-03-03 11:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:11:02] Production.INFO: neon service started [2025-03-03 11:11:02] Production.INFO: neon service started [2025-03-03 11:11:02] Production.INFO: ==17360== Releasing lock... [2025-03-03 11:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:11:02] Production.INFO: ==17362== Lock acquired, processing the job... [2025-03-03 06:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:11:02] Production.INFO: ==17364== Lock acquired, processing the job... [2025-03-03 11:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:11:02] Production.INFO: ==17364== Releasing lock... [2025-03-03 11:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:11:03] Production.INFO: ==17362== Releasing lock... [2025-03-03 06:11:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:11:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:11:03] Production.INFO: ==17367== Lock acquired, processing the job... [2025-03-03 06:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:11:03] Production.INFO: ==17369== Lock acquired, processing the job... [2025-03-03 06:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:11:03] Production.INFO: ==17373== Lock acquired, processing the job... [2025-03-03 06:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:11:03] Production.INFO: ==17371== Lock acquired, processing the job... [2025-03-03 06:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:11:04] Production.INFO: ==17377== Lock acquired, processing the job... [2025-03-03 06:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:11:04] Production.INFO: Account Balance Start. [2025-03-03 06:11:04] Production.INFO: CreateAllLog Start [2025-03-03 06:11:04] Production.INFO: 117 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:11:04] Production.INFO: ==17369== Releasing lock... [2025-03-03 06:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:11:04] Production.INFO: ==17375== Lock acquired, processing the job... [2025-03-03 06:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: count ==13 [2025-03-03 06:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:11:04] Production.INFO: count ==21 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596542') start [2025-03-03 06:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596542') end [2025-03-03 06:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:11:04] Production.INFO: 1 [2025-03-03 06:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: ==17377== Releasing lock... [2025-03-03 06:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.ERROR: done [2025-03-03 06:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.ERROR: done [2025-03-03 06:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:11:05] Production.INFO: Total Charge 0 [2025-03-03 06:11:05] Production.INFO: CreateAllLog End [2025-03-03 06:11:05] Production.INFO: Account Balance End. [2025-03-03 06:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:11:05] Production.INFO: ==17373== Releasing lock... [2025-03-03 06:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:11:11] Production.ERROR: CronJobId end10 [2025-03-03 06:11:11] Production.INFO: ==17371== Releasing lock... [2025-03-03 06:11:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:11:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:11:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:11:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:11:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:11:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:11:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:11:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:11:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:11:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:11:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:11:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:11:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:11:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:11:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:11:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:11:14] Production.INFO: call_cost start [2025-03-03 06:11:14] Production.INFO: call_cost end [2025-03-03 06:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:11:14] Production.INFO: ==17367== Releasing lock... [2025-03-03 06:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:11:16] Production.INFO: count ==409 [2025-03-03 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596543', 'tblTempUsageDetail_20' ) start [2025-03-03 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596543', 'tblTempUsageDetail_20' ) end [2025-03-03 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596543', 'tblTempVendorCDR_20' ) start [2025-03-03 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596543', 'tblTempVendorCDR_20' ) end [2025-03-03 06:11:17] Production.INFO: ProcessCDR(1,14596543,1,1,2) [2025-03-03 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596543', 'tblTempUsageDetail_20' ) start [2025-03-03 06:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596543', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:11:24] Production.INFO: ==17375== Releasing lock... [2025-03-03 06:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:12:01] Production.INFO: ==17434== Lock acquired, processing the job... [2025-03-03 11:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:12:01] Production.INFO: neon service started [2025-03-03 11:12:01] Production.INFO: neon service started [2025-03-03 11:12:01] Production.INFO: ==17434== Releasing lock... [2025-03-03 11:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:12:01] Production.INFO: ==17436== Lock acquired, processing the job... [2025-03-03 06:12:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:12:02] Production.INFO: ==17438== Lock acquired, processing the job... [2025-03-03 11:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 06:12:02] Production.INFO: ==17436== Releasing lock... [2025-03-03 06:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:12:02] Production.INFO: ==17438== Releasing lock... [2025-03-03 11:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:12:02] Production.INFO: ==17440== Lock acquired, processing the job... [2025-03-03 06:12:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:12:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:12:02] Production.INFO: ==17442== Lock acquired, processing the job... [2025-03-03 06:12:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:12:03] Production.INFO: ==17442== Releasing lock... [2025-03-03 06:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:12:03] Production.INFO: ==17444== Lock acquired, processing the job... [2025-03-03 06:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:12:03] Production.INFO: ==17446== Lock acquired, processing the job... [2025-03-03 06:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:12:03] Production.INFO: ==17448== Lock acquired, processing the job... [2025-03-03 06:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:12:03] Production.INFO: ==17451== Lock acquired, processing the job... [2025-03-03 06:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:12:03] Production.INFO: Account Balance Start. [2025-03-03 06:12:03] Production.INFO: CreateAllLog Start [2025-03-03 06:12:03] Production.INFO: 117 [2025-03-03 06:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:12:03] Production.INFO: count ==13 [2025-03-03 06:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:12:04] Production.INFO: count ==21 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596547') start [2025-03-03 06:12:04] Production.ERROR: done [2025-03-03 06:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596547') end [2025-03-03 06:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:12:04] Production.INFO: 1 [2025-03-03 06:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: ==17451== Releasing lock... [2025-03-03 06:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.ERROR: done [2025-03-03 06:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:12:04] Production.INFO: Total Charge 0 [2025-03-03 06:12:04] Production.INFO: CreateAllLog End [2025-03-03 06:12:05] Production.INFO: Account Balance End. [2025-03-03 06:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:12:05] Production.INFO: ==17446== Releasing lock... [2025-03-03 06:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:12:12] Production.ERROR: CronJobId end10 [2025-03-03 06:12:12] Production.INFO: ==17444== Releasing lock... [2025-03-03 06:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:12:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:12:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:12:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:12:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:12:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:12:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:12:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:12:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:12:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:12:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:12:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:12:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:12:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:12:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:12:14] Production.INFO: call_cost start [2025-03-03 06:12:14] Production.INFO: call_cost end [2025-03-03 06:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:12:14] Production.INFO: ==17440== Releasing lock... [2025-03-03 06:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:12:16] Production.INFO: count ==409 [2025-03-03 06:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596548', 'tblTempUsageDetail_20' ) start [2025-03-03 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596548', 'tblTempUsageDetail_20' ) end [2025-03-03 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596548', 'tblTempVendorCDR_20' ) start [2025-03-03 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596548', 'tblTempVendorCDR_20' ) end [2025-03-03 06:12:16] Production.INFO: ProcessCDR(1,14596548,1,1,2) [2025-03-03 06:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596548', 'tblTempUsageDetail_20' ) start [2025-03-03 06:12:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596548', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:12:24] Production.INFO: ==17448== Releasing lock... [2025-03-03 06:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:12:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:13:01] Production.INFO: ==17512== Lock acquired, processing the job... [2025-03-03 11:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:13:01] Production.INFO: neon service started [2025-03-03 11:13:01] Production.INFO: neon service started [2025-03-03 11:13:01] Production.INFO: ==17512== Releasing lock... [2025-03-03 11:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:13:02] Production.INFO: ==17516== Lock acquired, processing the job... [2025-03-03 11:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:13:02] Production.INFO: ==17516== Releasing lock... [2025-03-03 11:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:13:02] Production.INFO: ==17514== Lock acquired, processing the job... [2025-03-03 06:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:13:02] Production.INFO: ==17514== Releasing lock... [2025-03-03 06:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:13:03] Production.INFO: ==17523== Lock acquired, processing the job... [2025-03-03 06:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:13:03] Production.INFO: ==17529== Lock acquired, processing the job... [2025-03-03 06:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:13:03] Production.INFO: ==17519== Lock acquired, processing the job... [2025-03-03 06:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:13:03] Production.INFO: ==17521== Lock acquired, processing the job... [2025-03-03 06:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:13:03] Production.INFO: count ==13 [2025-03-03 06:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:13:03] Production.INFO: count ==21 [2025-03-03 06:13:03] Production.INFO: ==17525== Lock acquired, processing the job... [2025-03-03 06:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:13:03] Production.INFO: ==17527== Lock acquired, processing the job... [2025-03-03 06:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596549') start [2025-03-03 06:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:13:03] Production.INFO: Account Balance Start. [2025-03-03 06:13:03] Production.INFO: CreateAllLog Start [2025-03-03 06:13:03] Production.INFO: 117 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596549') end [2025-03-03 06:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:13:04] Production.INFO: 1 [2025-03-03 06:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: ==17529== Releasing lock... [2025-03-03 06:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.ERROR: done [2025-03-03 06:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:13:04] Production.INFO: ==17521== Releasing lock... [2025-03-03 06:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:13:04] Production.ERROR: done [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:13:05] Production.INFO: Total Charge 0 [2025-03-03 06:13:05] Production.INFO: CreateAllLog End [2025-03-03 06:13:05] Production.INFO: Account Balance End. [2025-03-03 06:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:13:05] Production.INFO: ==17525== Releasing lock... [2025-03-03 06:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:13:13] Production.ERROR: CronJobId end10 [2025-03-03 06:13:13] Production.INFO: ==17523== Releasing lock... [2025-03-03 06:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:13:15] Production.INFO: call_cost start [2025-03-03 06:13:15] Production.INFO: call_cost end [2025-03-03 06:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:13:15] Production.INFO: ==17519== Releasing lock... [2025-03-03 06:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:13:16] Production.INFO: count ==409 [2025-03-03 06:13:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596553', 'tblTempUsageDetail_20' ) start [2025-03-03 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596553', 'tblTempUsageDetail_20' ) end [2025-03-03 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596553', 'tblTempVendorCDR_20' ) start [2025-03-03 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596553', 'tblTempVendorCDR_20' ) end [2025-03-03 06:13:16] Production.INFO: ProcessCDR(1,14596553,1,1,2) [2025-03-03 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596553', 'tblTempUsageDetail_20' ) start [2025-03-03 06:13:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596553', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:13:24] Production.INFO: ==17527== Releasing lock... [2025-03-03 06:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:13:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:14:01] Production.INFO: ==17589== Lock acquired, processing the job... [2025-03-03 11:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:14:01] Production.INFO: neon service started [2025-03-03 11:14:01] Production.INFO: neon service started [2025-03-03 11:14:01] Production.INFO: ==17589== Releasing lock... [2025-03-03 11:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:14:02] Production.INFO: ==17591== Lock acquired, processing the job... [2025-03-03 06:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:14:02] Production.INFO: ==17593== Lock acquired, processing the job... [2025-03-03 11:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:14:02] Production.INFO: ==17593== Releasing lock... [2025-03-03 11:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:14:02] Production.INFO: ==17591== Releasing lock... [2025-03-03 06:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:14:03] Production.INFO: ==17596== Lock acquired, processing the job... [2025-03-03 06:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:14:03] Production.INFO: ==17598== Lock acquired, processing the job... [2025-03-03 06:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:14:03] Production.INFO: ==17602== Lock acquired, processing the job... [2025-03-03 06:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:14:03] Production.INFO: Account Balance Start. [2025-03-03 06:14:03] Production.INFO: CreateAllLog Start [2025-03-03 06:14:03] Production.INFO: 117 [2025-03-03 06:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.INFO: ==17600== Lock acquired, processing the job... [2025-03-03 06:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:14:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.INFO: ==17598== Releasing lock... [2025-03-03 06:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:14:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:14:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:14:03] Production.INFO: ==17604== Lock acquired, processing the job... [2025-03-03 06:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:14:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.INFO: Date 2025-02-15 [2025-03-03 06:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:14:04] Production.INFO: ==17606== Lock acquired, processing the job... [2025-03-03 06:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:14:04] Production.INFO: count ==13 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:14:04] Production.INFO: count ==21 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596557') start [2025-03-03 06:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.ERROR: done [2025-03-03 06:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596557') end [2025-03-03 06:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:14:04] Production.INFO: 1 [2025-03-03 06:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.ERROR: done [2025-03-03 06:14:04] Production.INFO: ==17606== Releasing lock... [2025-03-03 06:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:14:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:14:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:14:04] Production.INFO: Total Charge 0 [2025-03-03 06:14:04] Production.INFO: CreateAllLog End [2025-03-03 06:14:04] Production.INFO: Account Balance End. [2025-03-03 06:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:14:05] Production.INFO: ==17602== Releasing lock... [2025-03-03 06:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:14:12] Production.ERROR: CronJobId end10 [2025-03-03 06:14:12] Production.INFO: ==17600== Releasing lock... [2025-03-03 06:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:14:14] Production.INFO: call_cost start [2025-03-03 06:14:14] Production.INFO: call_cost end [2025-03-03 06:14:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:14:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:14:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:14:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:14:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:14:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:14:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:14:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:14:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:14:14] Production.INFO: ==17596== Releasing lock... [2025-03-03 06:14:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:14:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:14:16] Production.INFO: count ==409 [2025-03-03 06:14:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596558', 'tblTempUsageDetail_20' ) start [2025-03-03 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596558', 'tblTempUsageDetail_20' ) end [2025-03-03 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596558', 'tblTempVendorCDR_20' ) start [2025-03-03 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596558', 'tblTempVendorCDR_20' ) end [2025-03-03 06:14:16] Production.INFO: ProcessCDR(1,14596558,1,1,2) [2025-03-03 06:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596558', 'tblTempUsageDetail_20' ) start [2025-03-03 06:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596558', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:14:24] Production.INFO: ==17604== Releasing lock... [2025-03-03 06:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:15:02] Production.INFO: ==17664== Lock acquired, processing the job... [2025-03-03 11:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:15:02] Production.INFO: neon service started [2025-03-03 11:15:02] Production.INFO: neon service started [2025-03-03 11:15:02] Production.INFO: ==17664== Releasing lock... [2025-03-03 11:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:15:02] Production.INFO: ==17666== Lock acquired, processing the job... [2025-03-03 06:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:15:02] Production.INFO: ==17666== Releasing lock... [2025-03-03 06:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:15:02] Production.INFO: ==17668== Lock acquired, processing the job... [2025-03-03 11:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:15:02] Production.INFO: ==17668== Releasing lock... [2025-03-03 11:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:15:03] Production.INFO: ==17676== Lock acquired, processing the job... [2025-03-03 06:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:15:03] Production.INFO: ==17670== Lock acquired, processing the job... [2025-03-03 06:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:15:03] Production.INFO: Account Balance Start. [2025-03-03 06:15:03] Production.INFO: CreateAllLog Start [2025-03-03 06:15:03] Production.INFO: 117 [2025-03-03 06:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:15:03] Production.INFO: ==17680== Lock acquired, processing the job... [2025-03-03 06:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:15:03] Production.INFO: count ==13 [2025-03-03 06:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:15:03] Production.INFO: count ==21 [2025-03-03 06:15:03] Production.INFO: ==17672== Lock acquired, processing the job... [2025-03-03 06:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:15:03] Production.INFO: ==17674== Lock acquired, processing the job... [2025-03-03 06:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:15:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596560') start [2025-03-03 06:15:03] Production.INFO: ==17678== Lock acquired, processing the job... [2025-03-03 06:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:15:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:15:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596560') end [2025-03-03 06:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:15:04] Production.INFO: 1 [2025-03-03 06:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: ==17680== Releasing lock... [2025-03-03 06:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:15:04] Production.INFO: ==17672== Releasing lock... [2025-03-03 06:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:15:04] Production.ERROR: done [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.ERROR: done [2025-03-03 06:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:15:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:15:05] Production.INFO: Total Charge 0 [2025-03-03 06:15:05] Production.INFO: CreateAllLog End [2025-03-03 06:15:05] Production.INFO: Account Balance End. [2025-03-03 06:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:15:05] Production.INFO: ==17676== Releasing lock... [2025-03-03 06:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:15:13] Production.ERROR: CronJobId end10 [2025-03-03 06:15:13] Production.INFO: ==17674== Releasing lock... [2025-03-03 06:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:15:15] Production.INFO: call_cost start [2025-03-03 06:15:15] Production.INFO: call_cost end [2025-03-03 06:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:15:15] Production.INFO: ==17670== Releasing lock... [2025-03-03 06:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:15:16] Production.INFO: count ==409 [2025-03-03 06:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596563', 'tblTempUsageDetail_20' ) start [2025-03-03 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596563', 'tblTempUsageDetail_20' ) end [2025-03-03 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596563', 'tblTempVendorCDR_20' ) start [2025-03-03 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596563', 'tblTempVendorCDR_20' ) end [2025-03-03 06:15:16] Production.INFO: ProcessCDR(1,14596563,1,1,2) [2025-03-03 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596563', 'tblTempUsageDetail_20' ) start [2025-03-03 06:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596563', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:15:24] Production.INFO: ==17678== Releasing lock... [2025-03-03 06:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:16:01] Production.INFO: ==17739== Lock acquired, processing the job... [2025-03-03 11:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:16:01] Production.INFO: neon service started [2025-03-03 11:16:01] Production.INFO: neon service started [2025-03-03 11:16:01] Production.INFO: ==17739== Releasing lock... [2025-03-03 11:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:16:02] Production.INFO: ==17741== Lock acquired, processing the job... [2025-03-03 06:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:16:02] Production.INFO: ==17743== Lock acquired, processing the job... [2025-03-03 11:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:16:02] Production.INFO: ==17743== Releasing lock... [2025-03-03 11:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:16:02] Production.INFO: ==17741== Releasing lock... [2025-03-03 06:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:16:03] Production.INFO: ==17750== Lock acquired, processing the job... [2025-03-03 06:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:16:03] Production.INFO: ==17756== Lock acquired, processing the job... [2025-03-03 06:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:16:03] Production.INFO: count ==13 [2025-03-03 06:16:03] Production.INFO: ==17746== Lock acquired, processing the job... [2025-03-03 06:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:16:03] Production.INFO: ==17748== Lock acquired, processing the job... [2025-03-03 06:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:16:03] Production.INFO: count ==21 [2025-03-03 06:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596564') start [2025-03-03 06:16:03] Production.INFO: ==17752== Lock acquired, processing the job... [2025-03-03 06:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596564') end [2025-03-03 06:16:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:16:03] Production.INFO: 1 [2025-03-03 06:16:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:16:03] Production.INFO: ==17754== Lock acquired, processing the job... [2025-03-03 06:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:16:03] Production.INFO: ==17756== Releasing lock... [2025-03-03 06:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:16:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:16:04] Production.INFO: Account Balance Start. [2025-03-03 06:16:04] Production.INFO: CreateAllLog Start [2025-03-03 06:16:04] Production.INFO: 117 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: ==17748== Releasing lock... [2025-03-03 06:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.ERROR: done [2025-03-03 06:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.ERROR: done [2025-03-03 06:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:16:05] Production.INFO: Total Charge 0 [2025-03-03 06:16:05] Production.INFO: CreateAllLog End [2025-03-03 06:16:05] Production.INFO: Account Balance End. [2025-03-03 06:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:16:05] Production.INFO: ==17752== Releasing lock... [2025-03-03 06:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:16:11] Production.ERROR: CronJobId end10 [2025-03-03 06:16:11] Production.INFO: ==17750== Releasing lock... [2025-03-03 06:16:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:16:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:16:14] Production.INFO: call_cost start [2025-03-03 06:16:14] Production.INFO: call_cost end [2025-03-03 06:16:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:16:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:16:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:16:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:16:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:16:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:16:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:16:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:16:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:16:14] Production.INFO: ==17746== Releasing lock... [2025-03-03 06:16:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:16:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:16:16] Production.INFO: count ==409 [2025-03-03 06:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596568', 'tblTempUsageDetail_20' ) start [2025-03-03 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596568', 'tblTempUsageDetail_20' ) end [2025-03-03 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596568', 'tblTempVendorCDR_20' ) start [2025-03-03 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596568', 'tblTempVendorCDR_20' ) end [2025-03-03 06:16:16] Production.INFO: ProcessCDR(1,14596568,1,1,2) [2025-03-03 06:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596568', 'tblTempUsageDetail_20' ) start [2025-03-03 06:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596568', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:16:24] Production.INFO: ==17754== Releasing lock... [2025-03-03 06:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:17:01] Production.INFO: ==17851== Lock acquired, processing the job... [2025-03-03 11:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:17:01] Production.INFO: neon service started [2025-03-03 11:17:02] Production.INFO: neon service started [2025-03-03 11:17:02] Production.INFO: ==17851== Releasing lock... [2025-03-03 11:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:17:02] Production.INFO: ==17853== Lock acquired, processing the job... [2025-03-03 06:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:17:02] Production.INFO: ==17855== Lock acquired, processing the job... [2025-03-03 11:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:17:02] Production.INFO: ==17855== Releasing lock... [2025-03-03 11:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:17:02] Production.INFO: ==17853== Releasing lock... [2025-03-03 06:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:17:03] Production.INFO: ==17864== Lock acquired, processing the job... [2025-03-03 06:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:17:03] Production.INFO: ==17868== Lock acquired, processing the job... [2025-03-03 06:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:17:03] Production.INFO: Account Balance Start. [2025-03-03 06:17:03] Production.INFO: CreateAllLog Start [2025-03-03 06:17:03] Production.INFO: 117 [2025-03-03 06:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:17:03] Production.INFO: count ==13 [2025-03-03 06:17:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:17:03] Production.INFO: count ==21 [2025-03-03 06:17:03] Production.INFO: ==17858== Lock acquired, processing the job... [2025-03-03 06:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:17:03] Production.INFO: ==17860== Lock acquired, processing the job... [2025-03-03 06:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596570') start [2025-03-03 06:17:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:17:04] Production.INFO: ==17862== Lock acquired, processing the job... [2025-03-03 06:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: ==17866== Lock acquired, processing the job... [2025-03-03 06:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596570') end [2025-03-03 06:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:17:04] Production.INFO: 1 [2025-03-03 06:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: ==17868== Releasing lock... [2025-03-03 06:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: ==17860== Releasing lock... [2025-03-03 06:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:17:04] Production.ERROR: done [2025-03-03 06:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.ERROR: done [2025-03-03 06:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:17:05] Production.INFO: Total Charge 0 [2025-03-03 06:17:05] Production.INFO: CreateAllLog End [2025-03-03 06:17:05] Production.INFO: Account Balance End. [2025-03-03 06:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:17:05] Production.INFO: ==17864== Releasing lock... [2025-03-03 06:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:17:12] Production.ERROR: CronJobId end10 [2025-03-03 06:17:12] Production.INFO: ==17862== Releasing lock... [2025-03-03 06:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:17:15] Production.INFO: call_cost start [2025-03-03 06:17:15] Production.INFO: call_cost end [2025-03-03 06:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:17:15] Production.INFO: ==17858== Releasing lock... [2025-03-03 06:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:17:16] Production.INFO: count ==409 [2025-03-03 06:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596573', 'tblTempUsageDetail_20' ) start [2025-03-03 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596573', 'tblTempUsageDetail_20' ) end [2025-03-03 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596573', 'tblTempVendorCDR_20' ) start [2025-03-03 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596573', 'tblTempVendorCDR_20' ) end [2025-03-03 06:17:16] Production.INFO: ProcessCDR(1,14596573,1,1,2) [2025-03-03 06:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596573', 'tblTempUsageDetail_20' ) start [2025-03-03 06:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596573', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:17:24] Production.INFO: ==17866== Releasing lock... [2025-03-03 06:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:18:01] Production.INFO: ==17925== Lock acquired, processing the job... [2025-03-03 11:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:18:01] Production.INFO: neon service started [2025-03-03 11:18:01] Production.INFO: neon service started [2025-03-03 11:18:01] Production.INFO: ==17925== Releasing lock... [2025-03-03 11:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:18:02] Production.INFO: ==17927== Lock acquired, processing the job... [2025-03-03 06:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:18:02] Production.INFO: ==17930== Lock acquired, processing the job... [2025-03-03 11:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:18:02] Production.INFO: ==17930== Releasing lock... [2025-03-03 11:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:18:02] Production.INFO: ==17927== Releasing lock... [2025-03-03 06:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:18:03] Production.INFO: ==17933== Lock acquired, processing the job... [2025-03-03 06:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:18:03] Production.INFO: ==17935== Lock acquired, processing the job... [2025-03-03 06:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:18:03] Production.INFO: ==17937== Lock acquired, processing the job... [2025-03-03 06:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:18:03] Production.INFO: ==17939== Lock acquired, processing the job... [2025-03-03 06:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:18:03] Production.INFO: ==17941== Lock acquired, processing the job... [2025-03-03 06:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:18:03] Production.INFO: ==17943== Lock acquired, processing the job... [2025-03-03 06:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:18:03] Production.INFO: Account Balance Start. [2025-03-03 06:18:03] Production.INFO: CreateAllLog Start [2025-03-03 06:18:03] Production.INFO: 117 [2025-03-03 06:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:03] Production.INFO: count ==13 [2025-03-03 06:18:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:18:03] Production.INFO: count ==21 [2025-03-03 06:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596577') start [2025-03-03 06:18:04] Production.INFO: ==17935== Releasing lock... [2025-03-03 06:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596577') end [2025-03-03 06:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:18:04] Production.INFO: 1 [2025-03-03 06:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: ==17943== Releasing lock... [2025-03-03 06:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.ERROR: done [2025-03-03 06:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.ERROR: done [2025-03-03 06:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:18:04] Production.INFO: Total Charge 0 [2025-03-03 06:18:04] Production.INFO: CreateAllLog End [2025-03-03 06:18:05] Production.INFO: Account Balance End. [2025-03-03 06:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:18:05] Production.INFO: ==17939== Releasing lock... [2025-03-03 06:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:18:11] Production.ERROR: CronJobId end10 [2025-03-03 06:18:11] Production.INFO: ==17937== Releasing lock... [2025-03-03 06:18:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:18:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:18:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:18:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:18:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:18:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:18:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:18:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:18:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:18:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:18:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:18:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:18:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:18:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:18:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:18:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:18:13] Production.INFO: call_cost start [2025-03-03 06:18:13] Production.INFO: call_cost end [2025-03-03 06:18:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:18:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:18:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:18:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:18:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:18:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:18:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:18:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:18:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:18:13] Production.INFO: ==17933== Releasing lock... [2025-03-03 06:18:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:18:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:18:16] Production.INFO: count ==409 [2025-03-03 06:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596578', 'tblTempUsageDetail_20' ) start [2025-03-03 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596578', 'tblTempUsageDetail_20' ) end [2025-03-03 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596578', 'tblTempVendorCDR_20' ) start [2025-03-03 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596578', 'tblTempVendorCDR_20' ) end [2025-03-03 06:18:16] Production.INFO: ProcessCDR(1,14596578,1,1,2) [2025-03-03 06:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596578', 'tblTempUsageDetail_20' ) start [2025-03-03 06:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596578', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:18:24] Production.INFO: ==17941== Releasing lock... [2025-03-03 06:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:19:01] Production.INFO: ==18003== Lock acquired, processing the job... [2025-03-03 11:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:19:01] Production.INFO: neon service started [2025-03-03 11:19:01] Production.INFO: neon service started [2025-03-03 11:19:01] Production.INFO: ==18003== Releasing lock... [2025-03-03 11:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:19:02] Production.INFO: ==18007== Lock acquired, processing the job... [2025-03-03 11:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:19:02] Production.INFO: ==18007== Releasing lock... [2025-03-03 11:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:19:02] Production.INFO: ==18005== Lock acquired, processing the job... [2025-03-03 06:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:19:02] Production.INFO: ==18005== Releasing lock... [2025-03-03 06:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:19:03] Production.INFO: ==18009== Lock acquired, processing the job... [2025-03-03 06:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:19:03] Production.INFO: ==18011== Lock acquired, processing the job... [2025-03-03 06:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:19:03] Production.INFO: ==18017== Lock acquired, processing the job... [2025-03-03 06:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:19:03] Production.INFO: ==18011== Releasing lock... [2025-03-03 06:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:19:03] Production.INFO: ==18013== Lock acquired, processing the job... [2025-03-03 06:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:19:03] Production.INFO: ==18015== Lock acquired, processing the job... [2025-03-03 06:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:19:03] Production.INFO: ==18019== Lock acquired, processing the job... [2025-03-03 06:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:19:03] Production.INFO: Account Balance Start. [2025-03-03 06:19:03] Production.INFO: CreateAllLog Start [2025-03-03 06:19:03] Production.INFO: 117 [2025-03-03 06:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.ERROR: done [2025-03-03 06:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: count ==13 [2025-03-03 06:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:19:04] Production.INFO: count ==21 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596582') start [2025-03-03 06:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596582') end [2025-03-03 06:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:19:04] Production.INFO: 1 [2025-03-03 06:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:19:04] Production.INFO: ==18019== Releasing lock... [2025-03-03 06:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:19:04] Production.ERROR: done [2025-03-03 06:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:19:05] Production.INFO: Total Charge 0 [2025-03-03 06:19:05] Production.INFO: CreateAllLog End [2025-03-03 06:19:05] Production.INFO: Account Balance End. [2025-03-03 06:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:19:05] Production.INFO: ==18015== Releasing lock... [2025-03-03 06:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:19:12] Production.ERROR: CronJobId end10 [2025-03-03 06:19:12] Production.INFO: ==18013== Releasing lock... [2025-03-03 06:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:19:15] Production.INFO: call_cost start [2025-03-03 06:19:15] Production.INFO: call_cost end [2025-03-03 06:19:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:19:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:19:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:19:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:19:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:19:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:19:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:19:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:19:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:19:15] Production.INFO: ==18009== Releasing lock... [2025-03-03 06:19:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:19:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:19:16] Production.INFO: count ==409 [2025-03-03 06:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596583', 'tblTempUsageDetail_20' ) start [2025-03-03 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596583', 'tblTempUsageDetail_20' ) end [2025-03-03 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596583', 'tblTempVendorCDR_20' ) start [2025-03-03 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596583', 'tblTempVendorCDR_20' ) end [2025-03-03 06:19:16] Production.INFO: ProcessCDR(1,14596583,1,1,2) [2025-03-03 06:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596583', 'tblTempUsageDetail_20' ) start [2025-03-03 06:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596583', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:19:24] Production.INFO: ==18017== Releasing lock... [2025-03-03 06:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:20:02] Production.INFO: ==18077== Lock acquired, processing the job... [2025-03-03 11:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:20:02] Production.INFO: neon service started [2025-03-03 11:20:02] Production.INFO: neon service started [2025-03-03 11:20:02] Production.INFO: ==18077== Releasing lock... [2025-03-03 11:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:20:03] Production.INFO: ==18079== Lock acquired, processing the job... [2025-03-03 06:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:20:03] Production.INFO: ==18081== Lock acquired, processing the job... [2025-03-03 11:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:20:03] Production.INFO: ==18081== Releasing lock... [2025-03-03 11:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:20:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:20:03] Production.INFO: ==18079== Releasing lock... [2025-03-03 06:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:20:04] Production.INFO: ==18089== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:20:04] Production.INFO: ==18091== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:20:04] Production.INFO: ==18085== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 06:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:20:04] Production.INFO: ==18097== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 06:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 06:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:20:04] Production.ERROR: CronJob PID - 18089 [2025-03-03 06:20:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 06:20:04] Production.ERROR: CronJob ID - 7 [2025-03-03 06:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:20:00 [2025-03-03 06:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:20:04] Production.ERROR: CronJob PID - 18091 [2025-03-03 06:20:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 06:20:04] Production.ERROR: CronJob ID - 10 [2025-03-03 06:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:20:00 [2025-03-03 06:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:20:04] Production.INFO: ==18087== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 06:20:04] Production.INFO: ==18085== Releasing lock... [2025-03-03 06:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 06:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 06:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:20:04] Production.INFO: ==18093== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:20:04] Production.INFO: ==18095== Lock acquired, processing the job... [2025-03-03 06:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:20:05] Production.INFO: ==18089== Releasing lock... [2025-03-03 06:20:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:20:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:20:05] Production.INFO: ==18100== Lock acquired, processing the job... [2025-03-03 06:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:20:05] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:20:05] Production.INFO: Account Balance Start. [2025-03-03 06:20:05] Production.INFO: CreateAllLog Start [2025-03-03 06:20:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:20:05] Production.INFO: 117 [2025-03-03 06:20:05] Production.INFO: Date 2025-02-08 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.ERROR: done [2025-03-03 06:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 06:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596588', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 06:20:05] Production.INFO: Date 2025-02-09 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:20:05] Production.INFO: count ==13 [2025-03-03 06:20:05] Production.ERROR: done [2025-03-03 06:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:20:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:20:05] Production.INFO: count ==21 [2025-03-03 06:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596587') start [2025-03-03 06:20:05] Production.INFO: Date 2025-02-10 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.INFO: Date 2025-02-11 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.INFO: Date 2025-02-12 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.ERROR: done [2025-03-03 06:20:05] Production.INFO: Date 2025-02-13 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596587') end [2025-03-03 06:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:20:05] Production.INFO: 1 [2025-03-03 06:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:20:05] Production.INFO: ==18100== Releasing lock... [2025-03-03 06:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:20:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-17 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-18 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-19 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-20 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-21 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-22 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-23 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-24 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-25 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-26 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-27 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-02-28 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-03-01 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-03-02 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Date 2025-03-03 [2025-03-03 06:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:20:06] Production.INFO: Total Charge 0 [2025-03-03 06:20:07] Production.INFO: CreateAllLog End [2025-03-03 06:20:07] Production.INFO: Account Balance End. [2025-03-03 06:20:07] Production.ERROR: CronJobId end 12 [2025-03-03 06:20:07] Production.INFO: ==18093== Releasing lock... [2025-03-03 06:20:07] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:20:07] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596588', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 06:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 06:20:09] Production.INFO: ProcessCDR(1,14596588,1,1,2) [2025-03-03 06:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596588,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596588,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 06:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 06:20:09] Production.INFO: ==18097== Releasing lock... [2025-03-03 06:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 06:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:20:14] Production.ERROR: CronJobId end10 [2025-03-03 06:20:14] Production.INFO: ==18091== Releasing lock... [2025-03-03 06:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:20:17] Production.INFO: call_cost start [2025-03-03 06:20:17] Production.INFO: call_cost end [2025-03-03 06:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:20:17] Production.INFO: ==18087== Releasing lock... [2025-03-03 06:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:20:17] Production.INFO: count ==409 [2025-03-03 06:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596589', 'tblTempUsageDetail_20' ) start [2025-03-03 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596589', 'tblTempUsageDetail_20' ) end [2025-03-03 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596589', 'tblTempVendorCDR_20' ) start [2025-03-03 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596589', 'tblTempVendorCDR_20' ) end [2025-03-03 06:20:17] Production.INFO: ProcessCDR(1,14596589,1,1,2) [2025-03-03 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596589', 'tblTempUsageDetail_20' ) start [2025-03-03 06:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596589', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:20:25] Production.INFO: ==18095== Releasing lock... [2025-03-03 06:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:21:01] Production.INFO: ==18157== Lock acquired, processing the job... [2025-03-03 11:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:21:01] Production.INFO: neon service started [2025-03-03 11:21:01] Production.INFO: neon service started [2025-03-03 11:21:01] Production.INFO: ==18157== Releasing lock... [2025-03-03 11:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:21:02] Production.INFO: ==18162== Lock acquired, processing the job... [2025-03-03 11:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:21:02] Production.INFO: ==18162== Releasing lock... [2025-03-03 11:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:21:02] Production.INFO: ==18160== Lock acquired, processing the job... [2025-03-03 06:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:21:02] Production.INFO: ==18160== Releasing lock... [2025-03-03 06:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:21:03] Production.INFO: ==18164== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:21:03] Production.INFO: ==18174== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:21:03] Production.INFO: ==18166== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:21:03] Production.INFO: count ==13 [2025-03-03 06:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:21:03] Production.INFO: ==18170== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:21:03] Production.INFO: count ==21 [2025-03-03 06:21:03] Production.INFO: ==18168== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:21:03] Production.INFO: ==18172== Lock acquired, processing the job... [2025-03-03 06:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596591') start [2025-03-03 06:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:21:03] Production.INFO: Account Balance Start. [2025-03-03 06:21:03] Production.INFO: CreateAllLog Start [2025-03-03 06:21:03] Production.INFO: 117 [2025-03-03 06:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596591') end [2025-03-03 06:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:21:03] Production.INFO: 1 [2025-03-03 06:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:21:04] Production.INFO: ==18174== Releasing lock... [2025-03-03 06:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: ==18166== Releasing lock... [2025-03-03 06:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.ERROR: done [2025-03-03 06:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.ERROR: done [2025-03-03 06:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:21:04] Production.INFO: Total Charge 0 [2025-03-03 06:21:04] Production.INFO: CreateAllLog End [2025-03-03 06:21:04] Production.INFO: Account Balance End. [2025-03-03 06:21:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:21:04] Production.INFO: ==18170== Releasing lock... [2025-03-03 06:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:21:11] Production.ERROR: CronJobId end10 [2025-03-03 06:21:11] Production.INFO: ==18168== Releasing lock... [2025-03-03 06:21:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:21:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:21:14] Production.INFO: call_cost start [2025-03-03 06:21:14] Production.INFO: call_cost end [2025-03-03 06:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:21:14] Production.INFO: ==18164== Releasing lock... [2025-03-03 06:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:21:16] Production.INFO: count ==409 [2025-03-03 06:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596594', 'tblTempUsageDetail_20' ) start [2025-03-03 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596594', 'tblTempUsageDetail_20' ) end [2025-03-03 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596594', 'tblTempVendorCDR_20' ) start [2025-03-03 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596594', 'tblTempVendorCDR_20' ) end [2025-03-03 06:21:16] Production.INFO: ProcessCDR(1,14596594,1,1,2) [2025-03-03 06:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596594', 'tblTempUsageDetail_20' ) start [2025-03-03 06:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596594', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:21:24] Production.INFO: ==18172== Releasing lock... [2025-03-03 06:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:21:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:22:02] Production.INFO: ==18232== Lock acquired, processing the job... [2025-03-03 11:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:22:02] Production.INFO: neon service started [2025-03-03 11:22:02] Production.INFO: neon service started [2025-03-03 11:22:02] Production.INFO: ==18232== Releasing lock... [2025-03-03 11:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:22:02] Production.INFO: ==18234== Lock acquired, processing the job... [2025-03-03 06:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:22:02] Production.INFO: ==18236== Lock acquired, processing the job... [2025-03-03 11:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:22:02] Production.INFO: ==18236== Releasing lock... [2025-03-03 11:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:22:03] Production.INFO: ==18234== Releasing lock... [2025-03-03 06:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:22:04] Production.INFO: ==18239== Lock acquired, processing the job... [2025-03-03 06:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:22:04] Production.INFO: ==18249== Lock acquired, processing the job... [2025-03-03 06:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:22:04] Production.INFO: ==18241== Lock acquired, processing the job... [2025-03-03 06:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:22:04] Production.INFO: ==18243== Lock acquired, processing the job... [2025-03-03 06:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:22:04] Production.INFO: ==18245== Lock acquired, processing the job... [2025-03-03 06:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:22:04] Production.INFO: ==18247== Lock acquired, processing the job... [2025-03-03 06:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:22:04] Production.INFO: count ==13 [2025-03-03 06:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:22:04] Production.INFO: count ==21 [2025-03-03 06:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596596') start [2025-03-03 06:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596596') end [2025-03-03 06:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:22:04] Production.INFO: 1 [2025-03-03 06:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:22:04] Production.INFO: Account Balance Start. [2025-03-03 06:22:04] Production.INFO: CreateAllLog Start [2025-03-03 06:22:04] Production.INFO: 117 [2025-03-03 06:22:04] Production.INFO: ==18249== Releasing lock... [2025-03-03 06:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:04] Production.INFO: ==18241== Releasing lock... [2025-03-03 06:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:04] Production.ERROR: done [2025-03-03 06:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.ERROR: done [2025-03-03 06:22:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:22:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:22:05] Production.INFO: Total Charge 0 [2025-03-03 06:22:05] Production.INFO: CreateAllLog End [2025-03-03 06:22:05] Production.INFO: Account Balance End. [2025-03-03 06:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:22:05] Production.INFO: ==18245== Releasing lock... [2025-03-03 06:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:22:13] Production.ERROR: CronJobId end10 [2025-03-03 06:22:13] Production.INFO: ==18243== Releasing lock... [2025-03-03 06:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:22:14] Production.INFO: call_cost start [2025-03-03 06:22:14] Production.INFO: call_cost end [2025-03-03 06:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:22:14] Production.INFO: ==18239== Releasing lock... [2025-03-03 06:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:22:16] Production.INFO: count ==409 [2025-03-03 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596599', 'tblTempUsageDetail_20' ) start [2025-03-03 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596599', 'tblTempUsageDetail_20' ) end [2025-03-03 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596599', 'tblTempVendorCDR_20' ) start [2025-03-03 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596599', 'tblTempVendorCDR_20' ) end [2025-03-03 06:22:17] Production.INFO: ProcessCDR(1,14596599,1,1,2) [2025-03-03 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596599', 'tblTempUsageDetail_20' ) start [2025-03-03 06:22:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596599', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:22:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:22:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:22:24] Production.INFO: ==18247== Releasing lock... [2025-03-03 06:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:23:01] Production.INFO: ==18306== Lock acquired, processing the job... [2025-03-03 11:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:23:01] Production.INFO: neon service started [2025-03-03 11:23:01] Production.INFO: neon service started [2025-03-03 11:23:01] Production.INFO: ==18306== Releasing lock... [2025-03-03 11:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:23:02] Production.INFO: ==18308== Lock acquired, processing the job... [2025-03-03 06:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:23:02] Production.INFO: ==18308== Releasing lock... [2025-03-03 06:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:23:02] Production.INFO: ==18310== Lock acquired, processing the job... [2025-03-03 11:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:23:02] Production.INFO: ==18310== Releasing lock... [2025-03-03 11:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:23:03] Production.INFO: ==18312== Lock acquired, processing the job... [2025-03-03 06:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:23:03] Production.INFO: ==18314== Lock acquired, processing the job... [2025-03-03 06:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:23:03] Production.INFO: ==18318== Lock acquired, processing the job... [2025-03-03 06:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:23:03] Production.INFO: Account Balance Start. [2025-03-03 06:23:03] Production.INFO: CreateAllLog Start [2025-03-03 06:23:03] Production.INFO: 117 [2025-03-03 06:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: ==18314== Releasing lock... [2025-03-03 06:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:23:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:23:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: ==18316== Lock acquired, processing the job... [2025-03-03 06:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:23:03] Production.INFO: ==18320== Lock acquired, processing the job... [2025-03-03 06:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:23:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: ==18322== Lock acquired, processing the job... [2025-03-03 06:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:23:03] Production.INFO: Date 2025-02-15 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:23:03] Production.INFO: Date 2025-02-16 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:03] Production.INFO: Date 2025-02-17 [2025-03-03 06:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: count ==13 [2025-03-03 06:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:23:04] Production.INFO: count ==21 [2025-03-03 06:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596603') start [2025-03-03 06:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596603') end [2025-03-03 06:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:23:04] Production.INFO: 1 [2025-03-03 06:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: ==18322== Releasing lock... [2025-03-03 06:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:23:04] Production.ERROR: done [2025-03-03 06:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.ERROR: done [2025-03-03 06:23:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:23:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:23:04] Production.INFO: Total Charge 0 [2025-03-03 06:23:04] Production.INFO: CreateAllLog End [2025-03-03 06:23:04] Production.INFO: Account Balance End. [2025-03-03 06:23:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:23:04] Production.INFO: ==18318== Releasing lock... [2025-03-03 06:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:23:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:23:13] Production.ERROR: CronJobId end10 [2025-03-03 06:23:13] Production.INFO: ==18316== Releasing lock... [2025-03-03 06:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:23:15] Production.INFO: call_cost start [2025-03-03 06:23:15] Production.INFO: call_cost end [2025-03-03 06:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:23:15] Production.INFO: ==18312== Releasing lock... [2025-03-03 06:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:23:16] Production.INFO: count ==409 [2025-03-03 06:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596604', 'tblTempUsageDetail_20' ) start [2025-03-03 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596604', 'tblTempUsageDetail_20' ) end [2025-03-03 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596604', 'tblTempVendorCDR_20' ) start [2025-03-03 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596604', 'tblTempVendorCDR_20' ) end [2025-03-03 06:23:16] Production.INFO: ProcessCDR(1,14596604,1,1,2) [2025-03-03 06:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596604', 'tblTempUsageDetail_20' ) start [2025-03-03 06:23:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596604', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:23:24] Production.INFO: ==18320== Releasing lock... [2025-03-03 06:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:23:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:24:02] Production.INFO: ==18387== Lock acquired, processing the job... [2025-03-03 11:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:24:02] Production.INFO: neon service started [2025-03-03 11:24:02] Production.INFO: neon service started [2025-03-03 11:24:02] Production.INFO: ==18387== Releasing lock... [2025-03-03 11:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:24:02] Production.INFO: ==18389== Lock acquired, processing the job... [2025-03-03 06:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:24:03] Production.INFO: ==18391== Lock acquired, processing the job... [2025-03-03 11:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:24:03] Production.INFO: ==18391== Releasing lock... [2025-03-03 11:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:24:03] Production.INFO: ==18389== Releasing lock... [2025-03-03 06:24:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:24:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:24:04] Production.INFO: ==18394== Lock acquired, processing the job... [2025-03-03 06:24:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:24:04] Production.INFO: ==18396== Lock acquired, processing the job... [2025-03-03 06:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:24:04] Production.INFO: ==18400== Lock acquired, processing the job... [2025-03-03 06:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:24:04] Production.INFO: ==18398== Lock acquired, processing the job... [2025-03-03 06:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:24:04] Production.INFO: ==18404== Lock acquired, processing the job... [2025-03-03 06:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:24:04] Production.INFO: ==18402== Lock acquired, processing the job... [2025-03-03 06:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:24:04] Production.INFO: Account Balance Start. [2025-03-03 06:24:04] Production.INFO: CreateAllLog Start [2025-03-03 06:24:04] Production.INFO: 117 [2025-03-03 06:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:04] Production.INFO: count ==13 [2025-03-03 06:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:24:04] Production.INFO: count ==21 [2025-03-03 06:24:04] Production.INFO: ==18396== Releasing lock... [2025-03-03 06:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596608') start [2025-03-03 06:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596608') end [2025-03-03 06:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:24:04] Production.INFO: 1 [2025-03-03 06:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:24:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: ==18404== Releasing lock... [2025-03-03 06:24:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:24:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:24:05] Production.ERROR: done [2025-03-03 06:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:24:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.ERROR: done [2025-03-03 06:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:24:05] Production.INFO: Total Charge 0 [2025-03-03 06:24:05] Production.INFO: CreateAllLog End [2025-03-03 06:24:05] Production.INFO: Account Balance End. [2025-03-03 06:24:06] Production.ERROR: CronJobId end 12 [2025-03-03 06:24:06] Production.INFO: ==18400== Releasing lock... [2025-03-03 06:24:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:24:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:24:12] Production.ERROR: CronJobId end10 [2025-03-03 06:24:12] Production.INFO: ==18398== Releasing lock... [2025-03-03 06:24:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:24:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:24:14] Production.INFO: call_cost start [2025-03-03 06:24:14] Production.INFO: call_cost end [2025-03-03 06:24:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:24:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:24:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:24:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:24:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:24:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:24:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:24:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:24:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:24:14] Production.INFO: ==18394== Releasing lock... [2025-03-03 06:24:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:24:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:24:17] Production.INFO: count ==409 [2025-03-03 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596609', 'tblTempUsageDetail_20' ) start [2025-03-03 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596609', 'tblTempUsageDetail_20' ) end [2025-03-03 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596609', 'tblTempVendorCDR_20' ) start [2025-03-03 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596609', 'tblTempVendorCDR_20' ) end [2025-03-03 06:24:17] Production.INFO: ProcessCDR(1,14596609,1,1,2) [2025-03-03 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596609', 'tblTempUsageDetail_20' ) start [2025-03-03 06:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596609', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:24:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:24:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:24:25] Production.INFO: ==18402== Releasing lock... [2025-03-03 06:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:24:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:25:01] Production.INFO: ==18462== Lock acquired, processing the job... [2025-03-03 11:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:25:01] Production.INFO: neon service started [2025-03-03 11:25:01] Production.INFO: neon service started [2025-03-03 11:25:01] Production.INFO: ==18462== Releasing lock... [2025-03-03 11:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:25:02] Production.INFO: ==18464== Lock acquired, processing the job... [2025-03-03 06:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:25:02] Production.INFO: ==18466== Lock acquired, processing the job... [2025-03-03 11:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:25:02] Production.INFO: ==18466== Releasing lock... [2025-03-03 11:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:25:02] Production.INFO: ==18464== Releasing lock... [2025-03-03 06:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:25:03] Production.INFO: ==18475== Lock acquired, processing the job... [2025-03-03 06:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:25:03] Production.INFO: Account Balance Start. [2025-03-03 06:25:03] Production.INFO: CreateAllLog Start [2025-03-03 06:25:03] Production.INFO: 117 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: ==18477== Lock acquired, processing the job... [2025-03-03 06:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:25:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: ==18479== Lock acquired, processing the job... [2025-03-03 06:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:25:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-15 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:25:03] Production.INFO: Date 2025-02-16 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: count ==13 [2025-03-03 06:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:25:03] Production.INFO: count ==21 [2025-03-03 06:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596611') start [2025-03-03 06:25:03] Production.INFO: ==18469== Lock acquired, processing the job... [2025-03-03 06:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:25:03] Production.INFO: Date 2025-02-17 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: ==18473== Lock acquired, processing the job... [2025-03-03 06:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:25:03] Production.INFO: ==18471== Lock acquired, processing the job... [2025-03-03 06:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:25:03] Production.INFO: Date 2025-02-18 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596611') end [2025-03-03 06:25:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:25:03] Production.INFO: 1 [2025-03-03 06:25:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:25:03] Production.INFO: Date 2025-02-19 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: ==18479== Releasing lock... [2025-03-03 06:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:25:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:25:03] Production.INFO: Date 2025-02-20 [2025-03-03 06:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-21 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.ERROR: done [2025-03-03 06:25:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-22 [2025-03-03 06:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:03] Production.INFO: Date 2025-02-23 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.ERROR: done [2025-03-03 06:25:04] Production.INFO: ==18471== Releasing lock... [2025-03-03 06:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:25:04] Production.INFO: Total Charge 0 [2025-03-03 06:25:04] Production.INFO: CreateAllLog End [2025-03-03 06:25:04] Production.INFO: Account Balance End. [2025-03-03 06:25:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:25:04] Production.INFO: ==18475== Releasing lock... [2025-03-03 06:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:25:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:25:11] Production.ERROR: CronJobId end10 [2025-03-03 06:25:11] Production.INFO: ==18473== Releasing lock... [2025-03-03 06:25:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:25:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:25:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:25:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:25:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:25:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:25:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:25:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:25:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:25:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:25:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:25:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:25:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:25:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:25:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:25:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:25:13] Production.INFO: call_cost start [2025-03-03 06:25:13] Production.INFO: call_cost end [2025-03-03 06:25:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:25:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:25:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:25:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:25:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:25:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:25:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:25:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:25:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:25:13] Production.INFO: ==18469== Releasing lock... [2025-03-03 06:25:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:25:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:25:16] Production.INFO: count ==409 [2025-03-03 06:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596614', 'tblTempUsageDetail_20' ) start [2025-03-03 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596614', 'tblTempUsageDetail_20' ) end [2025-03-03 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596614', 'tblTempVendorCDR_20' ) start [2025-03-03 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596614', 'tblTempVendorCDR_20' ) end [2025-03-03 06:25:16] Production.INFO: ProcessCDR(1,14596614,1,1,2) [2025-03-03 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596614', 'tblTempUsageDetail_20' ) start [2025-03-03 06:25:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596614', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:25:24] Production.INFO: ==18477== Releasing lock... [2025-03-03 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:26:02] Production.INFO: ==18536== Lock acquired, processing the job... [2025-03-03 11:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:26:02] Production.INFO: neon service started [2025-03-03 11:26:02] Production.INFO: neon service started [2025-03-03 11:26:02] Production.INFO: ==18536== Releasing lock... [2025-03-03 11:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:26:02] Production.INFO: ==18538== Lock acquired, processing the job... [2025-03-03 06:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:26:02] Production.INFO: ==18540== Lock acquired, processing the job... [2025-03-03 11:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:26:02] Production.INFO: ==18540== Releasing lock... [2025-03-03 11:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:26:03] Production.INFO: ==18538== Releasing lock... [2025-03-03 06:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:26:04] Production.INFO: ==18543== Lock acquired, processing the job... [2025-03-03 06:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:26:04] Production.INFO: ==18545== Lock acquired, processing the job... [2025-03-03 06:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:26:04] Production.INFO: ==18547== Lock acquired, processing the job... [2025-03-03 06:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:26:04] Production.INFO: ==18549== Lock acquired, processing the job... [2025-03-03 06:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:26:04] Production.INFO: ==18551== Lock acquired, processing the job... [2025-03-03 06:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:26:04] Production.INFO: Account Balance Start. [2025-03-03 06:26:04] Production.INFO: CreateAllLog Start [2025-03-03 06:26:04] Production.INFO: 117 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: ==18553== Lock acquired, processing the job... [2025-03-03 06:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: count ==13 [2025-03-03 06:26:04] Production.INFO: ==18545== Releasing lock... [2025-03-03 06:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:26:04] Production.INFO: count ==21 [2025-03-03 06:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596618') start [2025-03-03 06:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.ERROR: done [2025-03-03 06:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596618') end [2025-03-03 06:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:26:04] Production.INFO: 1 [2025-03-03 06:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: ==18553== Releasing lock... [2025-03-03 06:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:26:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:26:05] Production.ERROR: done [2025-03-03 06:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:26:05] Production.INFO: Total Charge 0 [2025-03-03 06:26:05] Production.INFO: CreateAllLog End [2025-03-03 06:26:05] Production.INFO: Account Balance End. [2025-03-03 06:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:26:05] Production.INFO: ==18549== Releasing lock... [2025-03-03 06:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:26:12] Production.ERROR: CronJobId end10 [2025-03-03 06:26:12] Production.INFO: ==18547== Releasing lock... [2025-03-03 06:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:26:14] Production.INFO: call_cost start [2025-03-03 06:26:14] Production.INFO: call_cost end [2025-03-03 06:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:26:14] Production.INFO: ==18543== Releasing lock... [2025-03-03 06:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:26:17] Production.INFO: count ==409 [2025-03-03 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596619', 'tblTempUsageDetail_20' ) start [2025-03-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596619', 'tblTempUsageDetail_20' ) end [2025-03-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596619', 'tblTempVendorCDR_20' ) start [2025-03-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596619', 'tblTempVendorCDR_20' ) end [2025-03-03 06:26:17] Production.INFO: ProcessCDR(1,14596619,1,1,2) [2025-03-03 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596619', 'tblTempUsageDetail_20' ) start [2025-03-03 06:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596619', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:26:25] Production.INFO: ==18551== Releasing lock... [2025-03-03 06:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:26:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:27:01] Production.INFO: ==18612== Lock acquired, processing the job... [2025-03-03 11:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:27:01] Production.INFO: neon service started [2025-03-03 11:27:01] Production.INFO: neon service started [2025-03-03 11:27:01] Production.INFO: ==18612== Releasing lock... [2025-03-03 11:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:27:02] Production.INFO: ==18614== Lock acquired, processing the job... [2025-03-03 06:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:27:02] Production.INFO: ==18616== Lock acquired, processing the job... [2025-03-03 11:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:27:02] Production.INFO: ==18616== Releasing lock... [2025-03-03 11:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:27:02] Production.INFO: ==18614== Releasing lock... [2025-03-03 06:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:27:03] Production.INFO: ==18619== Lock acquired, processing the job... [2025-03-03 06:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:27:03] Production.INFO: ==18623== Lock acquired, processing the job... [2025-03-03 06:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:27:03] Production.INFO: ==18629== Lock acquired, processing the job... [2025-03-03 06:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:27:03] Production.INFO: ==18621== Lock acquired, processing the job... [2025-03-03 06:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:27:03] Production.INFO: count ==13 [2025-03-03 06:27:03] Production.INFO: ==18625== Lock acquired, processing the job... [2025-03-03 06:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:27:03] Production.INFO: count ==21 [2025-03-03 06:27:03] Production.INFO: ==18627== Lock acquired, processing the job... [2025-03-03 06:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596621') start [2025-03-03 06:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:27:04] Production.INFO: Account Balance Start. [2025-03-03 06:27:04] Production.INFO: CreateAllLog Start [2025-03-03 06:27:04] Production.INFO: 117 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596621') end [2025-03-03 06:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:27:04] Production.INFO: 1 [2025-03-03 06:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:27:04] Production.INFO: ==18629== Releasing lock... [2025-03-03 06:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:27:04] Production.INFO: ==18621== Releasing lock... [2025-03-03 06:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.ERROR: done [2025-03-03 06:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.ERROR: done [2025-03-03 06:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:27:05] Production.INFO: Total Charge 0 [2025-03-03 06:27:05] Production.INFO: CreateAllLog End [2025-03-03 06:27:05] Production.INFO: Account Balance End. [2025-03-03 06:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:27:05] Production.INFO: ==18625== Releasing lock... [2025-03-03 06:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:27:11] Production.ERROR: CronJobId end10 [2025-03-03 06:27:11] Production.INFO: ==18623== Releasing lock... [2025-03-03 06:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:27:13] Production.INFO: call_cost start [2025-03-03 06:27:13] Production.INFO: call_cost end [2025-03-03 06:27:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:27:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:27:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:27:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:27:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:27:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:27:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:27:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:27:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:27:13] Production.INFO: ==18619== Releasing lock... [2025-03-03 06:27:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:27:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:27:16] Production.INFO: count ==409 [2025-03-03 06:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596624', 'tblTempUsageDetail_20' ) start [2025-03-03 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596624', 'tblTempUsageDetail_20' ) end [2025-03-03 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596624', 'tblTempVendorCDR_20' ) start [2025-03-03 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596624', 'tblTempVendorCDR_20' ) end [2025-03-03 06:27:16] Production.INFO: ProcessCDR(1,14596624,1,1,2) [2025-03-03 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596624', 'tblTempUsageDetail_20' ) start [2025-03-03 06:27:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596624', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:27:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:27:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:27:24] Production.INFO: ==18627== Releasing lock... [2025-03-03 06:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:27:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:28:02] Production.INFO: ==18684== Lock acquired, processing the job... [2025-03-03 11:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:28:02] Production.INFO: neon service started [2025-03-03 11:28:02] Production.INFO: neon service started [2025-03-03 11:28:02] Production.INFO: ==18684== Releasing lock... [2025-03-03 11:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:28:02] Production.INFO: ==18689== Lock acquired, processing the job... [2025-03-03 11:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:28:02] Production.INFO: ==18689== Releasing lock... [2025-03-03 11:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:28:02] Production.INFO: ==18687== Lock acquired, processing the job... [2025-03-03 06:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:28:02] Production.INFO: ==18687== Releasing lock... [2025-03-03 06:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:28:03] Production.INFO: ==18695== Lock acquired, processing the job... [2025-03-03 06:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:28:03] Production.INFO: ==18697== Lock acquired, processing the job... [2025-03-03 06:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:28:03] Production.INFO: ==18691== Lock acquired, processing the job... [2025-03-03 06:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:28:04] Production.INFO: Account Balance Start. [2025-03-03 06:28:04] Production.INFO: CreateAllLog Start [2025-03-03 06:28:04] Production.INFO: 117 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: ==18693== Lock acquired, processing the job... [2025-03-03 06:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: ==18699== Lock acquired, processing the job... [2025-03-03 06:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: ==18701== Lock acquired, processing the job... [2025-03-03 06:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: count ==13 [2025-03-03 06:28:04] Production.INFO: ==18693== Releasing lock... [2025-03-03 06:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:28:04] Production.INFO: count ==21 [2025-03-03 06:28:04] Production.ERROR: done [2025-03-03 06:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596628') start [2025-03-03 06:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596628') end [2025-03-03 06:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:28:04] Production.INFO: 1 [2025-03-03 06:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.INFO: ==18701== Releasing lock... [2025-03-03 06:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:28:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.ERROR: done [2025-03-03 06:28:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:28:04] Production.INFO: Total Charge 0 [2025-03-03 06:28:04] Production.INFO: CreateAllLog End [2025-03-03 06:28:05] Production.INFO: Account Balance End. [2025-03-03 06:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:28:05] Production.INFO: ==18697== Releasing lock... [2025-03-03 06:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:28:11] Production.ERROR: CronJobId end10 [2025-03-03 06:28:11] Production.INFO: ==18695== Releasing lock... [2025-03-03 06:28:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:28:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:28:14] Production.INFO: call_cost start [2025-03-03 06:28:14] Production.INFO: call_cost end [2025-03-03 06:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:28:14] Production.INFO: ==18691== Releasing lock... [2025-03-03 06:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:28:16] Production.INFO: count ==409 [2025-03-03 06:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596629', 'tblTempUsageDetail_20' ) start [2025-03-03 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596629', 'tblTempUsageDetail_20' ) end [2025-03-03 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596629', 'tblTempVendorCDR_20' ) start [2025-03-03 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596629', 'tblTempVendorCDR_20' ) end [2025-03-03 06:28:16] Production.INFO: ProcessCDR(1,14596629,1,1,2) [2025-03-03 06:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596629', 'tblTempUsageDetail_20' ) start [2025-03-03 06:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596629', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:28:24] Production.INFO: ==18699== Releasing lock... [2025-03-03 06:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:29:01] Production.INFO: ==18762== Lock acquired, processing the job... [2025-03-03 11:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:29:01] Production.INFO: neon service started [2025-03-03 11:29:01] Production.INFO: neon service started [2025-03-03 11:29:01] Production.INFO: ==18762== Releasing lock... [2025-03-03 11:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:29:01] Production.INFO: ==18765== Lock acquired, processing the job... [2025-03-03 06:29:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:29:02] Production.INFO: ==18765== Releasing lock... [2025-03-03 06:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:29:02] Production.INFO: ==18767== Lock acquired, processing the job... [2025-03-03 11:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:29:02] Production.INFO: ==18767== Releasing lock... [2025-03-03 11:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:29:03] Production.INFO: ==18771== Lock acquired, processing the job... [2025-03-03 06:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:29:03] Production.INFO: ==18779== Lock acquired, processing the job... [2025-03-03 06:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:29:03] Production.INFO: ==18769== Lock acquired, processing the job... [2025-03-03 06:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:29:03] Production.INFO: ==18773== Lock acquired, processing the job... [2025-03-03 06:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:29:03] Production.INFO: ==18777== Lock acquired, processing the job... [2025-03-03 06:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:29:03] Production.INFO: ==18775== Lock acquired, processing the job... [2025-03-03 06:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:29:03] Production.INFO: count ==13 [2025-03-03 06:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:29:03] Production.INFO: count ==21 [2025-03-03 06:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:29:03] Production.INFO: ==18771== Releasing lock... [2025-03-03 06:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596631') start [2025-03-03 06:29:03] Production.INFO: Account Balance Start. [2025-03-03 06:29:03] Production.INFO: CreateAllLog Start [2025-03-03 06:29:03] Production.INFO: 117 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596631') end [2025-03-03 06:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:29:03] Production.INFO: 1 [2025-03-03 06:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:29:03] Production.INFO: ==18779== Releasing lock... [2025-03-03 06:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:29:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.ERROR: done [2025-03-03 06:29:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:03] Production.INFO: Date 2025-02-16 [2025-03-03 06:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.ERROR: done [2025-03-03 06:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:29:04] Production.INFO: Total Charge 0 [2025-03-03 06:29:04] Production.INFO: CreateAllLog End [2025-03-03 06:29:04] Production.INFO: Account Balance End. [2025-03-03 06:29:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:29:04] Production.INFO: ==18775== Releasing lock... [2025-03-03 06:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:29:11] Production.ERROR: CronJobId end10 [2025-03-03 06:29:11] Production.INFO: ==18773== Releasing lock... [2025-03-03 06:29:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:29:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:29:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:29:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:29:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:29:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:29:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:29:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:29:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:29:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:29:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:29:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:29:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:29:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:29:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:29:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:29:14] Production.INFO: call_cost start [2025-03-03 06:29:14] Production.INFO: call_cost end [2025-03-03 06:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:29:14] Production.INFO: ==18769== Releasing lock... [2025-03-03 06:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:29:16] Production.INFO: count ==409 [2025-03-03 06:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596634', 'tblTempUsageDetail_20' ) start [2025-03-03 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596634', 'tblTempUsageDetail_20' ) end [2025-03-03 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596634', 'tblTempVendorCDR_20' ) start [2025-03-03 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596634', 'tblTempVendorCDR_20' ) end [2025-03-03 06:29:16] Production.INFO: ProcessCDR(1,14596634,1,1,2) [2025-03-03 06:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596634', 'tblTempUsageDetail_20' ) start [2025-03-03 06:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596634', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:29:24] Production.INFO: ==18777== Releasing lock... [2025-03-03 06:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:30:02] Production.INFO: ==18841== Lock acquired, processing the job... [2025-03-03 11:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:30:02] Production.INFO: neon service started [2025-03-03 11:30:02] Production.INFO: neon service started [2025-03-03 11:30:02] Production.INFO: ==18841== Releasing lock... [2025-03-03 11:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:30:02] Production.INFO: ==18843== Lock acquired, processing the job... [2025-03-03 06:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:30:02] Production.INFO: ==18843== Releasing lock... [2025-03-03 06:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:30:02] Production.INFO: ==18845== Lock acquired, processing the job... [2025-03-03 11:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:30:02] Production.INFO: ==18845== Releasing lock... [2025-03-03 11:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:30:03] Production.INFO: ==18847== Lock acquired, processing the job... [2025-03-03 06:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 06:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 06:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 06:30:03] Production.INFO: ==18847== Releasing lock... [2025-03-03 06:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 06:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 06:30:03] Production.INFO: ==18855== Lock acquired, processing the job... [2025-03-03 06:30:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:30:04] Production.INFO: ==18849== Lock acquired, processing the job... [2025-03-03 06:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:30:04] Production.INFO: ==18851== Lock acquired, processing the job... [2025-03-03 06:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:30:04] Production.INFO: ==18861== Lock acquired, processing the job... [2025-03-03 06:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:30:04] Production.INFO: Account Balance Start. [2025-03-03 06:30:04] Production.INFO: CreateAllLog Start [2025-03-03 06:30:04] Production.INFO: 117 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: ==18853== Lock acquired, processing the job... [2025-03-03 06:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:30:04] Production.INFO: count ==13 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:30:04] Production.INFO: ==18857== Lock acquired, processing the job... [2025-03-03 06:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:30:04] Production.INFO: count ==21 [2025-03-03 06:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: ==18859== Lock acquired, processing the job... [2025-03-03 06:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 06:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596637') start [2025-03-03 06:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596637') end [2025-03-03 06:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:30:04] Production.INFO: 1 [2025-03-03 06:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: ==18861== Releasing lock... [2025-03-03 06:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:30:04] Production.INFO: ==18851== Releasing lock... [2025-03-03 06:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.ERROR: done [2025-03-03 06:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.ERROR: done [2025-03-03 06:30:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:30:04] Production.ERROR: done [2025-03-03 06:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 06:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596640', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 06:30:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:30:05] Production.INFO: Total Charge 0 [2025-03-03 06:30:05] Production.INFO: CreateAllLog End [2025-03-03 06:30:05] Production.INFO: Account Balance End. [2025-03-03 06:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:30:05] Production.INFO: ==18855== Releasing lock... [2025-03-03 06:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596640', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 06:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 06:30:09] Production.INFO: ProcessCDR(1,14596640,1,1,2) [2025-03-03 06:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596640,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596640,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 06:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 06:30:09] Production.INFO: ==18859== Releasing lock... [2025-03-03 06:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 06:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:30:13] Production.ERROR: CronJobId end10 [2025-03-03 06:30:13] Production.INFO: ==18853== Releasing lock... [2025-03-03 06:30:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:30:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:30:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:30:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:30:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:30:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:30:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:30:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:30:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:30:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:30:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:30:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:30:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:30:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:30:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:30:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:30:16] Production.INFO: count ==409 [2025-03-03 06:30:16] Production.INFO: call_cost start [2025-03-03 06:30:16] Production.INFO: call_cost end [2025-03-03 06:30:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:30:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:30:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:30:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:30:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:30:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:30:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:30:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:30:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:30:16] Production.INFO: ==18849== Releasing lock... [2025-03-03 06:30:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:30:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596639', 'tblTempUsageDetail_20' ) start [2025-03-03 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596639', 'tblTempUsageDetail_20' ) end [2025-03-03 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596639', 'tblTempVendorCDR_20' ) start [2025-03-03 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596639', 'tblTempVendorCDR_20' ) end [2025-03-03 06:30:17] Production.INFO: ProcessCDR(1,14596639,1,1,2) [2025-03-03 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596639', 'tblTempUsageDetail_20' ) start [2025-03-03 06:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596639', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:30:25] Production.INFO: ==18857== Releasing lock... [2025-03-03 06:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:30:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:31:01] Production.INFO: ==18917== Lock acquired, processing the job... [2025-03-03 11:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:31:01] Production.INFO: neon service started [2025-03-03 11:31:01] Production.INFO: neon service started [2025-03-03 11:31:01] Production.INFO: ==18917== Releasing lock... [2025-03-03 11:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:31:01] Production.INFO: ==18922== Lock acquired, processing the job... [2025-03-03 11:31:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:31:01] Production.INFO: ==18922== Releasing lock... [2025-03-03 11:31:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:31:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:31:02] Production.INFO: ==18920== Lock acquired, processing the job... [2025-03-03 06:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:31:02] Production.INFO: ==18920== Releasing lock... [2025-03-03 06:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:31:03] Production.INFO: ==18924== Lock acquired, processing the job... [2025-03-03 06:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:31:03] Production.INFO: ==18933== Lock acquired, processing the job... [2025-03-03 06:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:31:03] Production.INFO: ==18926== Lock acquired, processing the job... [2025-03-03 06:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:31:03] Production.INFO: ==18928== Lock acquired, processing the job... [2025-03-03 06:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:31:03] Production.INFO: ==18930== Lock acquired, processing the job... [2025-03-03 06:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:31:03] Production.INFO: ==18935== Lock acquired, processing the job... [2025-03-03 06:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:31:03] Production.ERROR: done [2025-03-03 06:31:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:31:03] Production.INFO: Account Balance Start. [2025-03-03 06:31:03] Production.INFO: CreateAllLog Start [2025-03-03 06:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:31:03] Production.INFO: 117 [2025-03-03 06:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:31:04] Production.INFO: count ==13 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:31:04] Production.INFO: count ==21 [2025-03-03 06:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596644') start [2025-03-03 06:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.ERROR: done [2025-03-03 06:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596644') end [2025-03-03 06:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:31:04] Production.INFO: 1 [2025-03-03 06:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:31:04] Production.INFO: ==18926== Releasing lock... [2025-03-03 06:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:31:04] Production.INFO: ==18935== Releasing lock... [2025-03-03 06:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:31:05] Production.INFO: Total Charge 0 [2025-03-03 06:31:05] Production.INFO: CreateAllLog End [2025-03-03 06:31:05] Production.INFO: Account Balance End. [2025-03-03 06:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:31:05] Production.INFO: ==18930== Releasing lock... [2025-03-03 06:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:31:12] Production.ERROR: CronJobId end10 [2025-03-03 06:31:12] Production.INFO: ==18928== Releasing lock... [2025-03-03 06:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:31:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:31:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:31:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:31:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:31:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:31:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:31:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:31:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:31:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:31:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:31:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:31:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:31:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:31:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:31:13] Production.INFO: call_cost start [2025-03-03 06:31:13] Production.INFO: call_cost end [2025-03-03 06:31:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:31:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:31:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:31:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:31:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:31:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:31:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:31:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:31:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:31:13] Production.INFO: ==18924== Releasing lock... [2025-03-03 06:31:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:31:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:31:16] Production.INFO: count ==409 [2025-03-03 06:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596645', 'tblTempUsageDetail_20' ) start [2025-03-03 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596645', 'tblTempUsageDetail_20' ) end [2025-03-03 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596645', 'tblTempVendorCDR_20' ) start [2025-03-03 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596645', 'tblTempVendorCDR_20' ) end [2025-03-03 06:31:16] Production.INFO: ProcessCDR(1,14596645,1,1,2) [2025-03-03 06:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596645', 'tblTempUsageDetail_20' ) start [2025-03-03 06:31:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596645', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:31:24] Production.INFO: ==18933== Releasing lock... [2025-03-03 06:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:31:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:32:01] Production.INFO: ==18997== Lock acquired, processing the job... [2025-03-03 11:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:32:01] Production.INFO: neon service started [2025-03-03 11:32:01] Production.INFO: neon service started [2025-03-03 11:32:01] Production.INFO: ==18997== Releasing lock... [2025-03-03 11:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:32:02] Production.INFO: ==19001== Lock acquired, processing the job... [2025-03-03 11:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:32:02] Production.INFO: ==19001== Releasing lock... [2025-03-03 11:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:32:02] Production.INFO: ==18999== Lock acquired, processing the job... [2025-03-03 06:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:32:02] Production.INFO: ==18999== Releasing lock... [2025-03-03 06:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:32:03] Production.INFO: ==19003== Lock acquired, processing the job... [2025-03-03 06:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:32:03] Production.INFO: ==19008== Lock acquired, processing the job... [2025-03-03 06:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:32:03] Production.INFO: ==19010== Lock acquired, processing the job... [2025-03-03 06:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:32:04] Production.INFO: Account Balance Start. [2025-03-03 06:32:04] Production.INFO: CreateAllLog Start [2025-03-03 06:32:04] Production.INFO: 117 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: ==19006== Lock acquired, processing the job... [2025-03-03 06:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: ==19012== Lock acquired, processing the job... [2025-03-03 06:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: ==19014== Lock acquired, processing the job... [2025-03-03 06:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: ==19006== Releasing lock... [2025-03-03 06:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: count ==13 [2025-03-03 06:32:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:32:05] Production.ERROR: done [2025-03-03 06:32:05] Production.INFO: count ==21 [2025-03-03 06:32:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596649') start [2025-03-03 06:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.ERROR: done [2025-03-03 06:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596649') end [2025-03-03 06:32:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:32:05] Production.INFO: 1 [2025-03-03 06:32:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: ==19014== Releasing lock... [2025-03-03 06:32:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:32:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:32:05] Production.INFO: Total Charge 0 [2025-03-03 06:32:05] Production.INFO: CreateAllLog End [2025-03-03 06:32:05] Production.INFO: Account Balance End. [2025-03-03 06:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:32:05] Production.INFO: ==19010== Releasing lock... [2025-03-03 06:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:32:13] Production.ERROR: CronJobId end10 [2025-03-03 06:32:13] Production.INFO: ==19008== Releasing lock... [2025-03-03 06:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:32:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:32:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:32:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:32:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:32:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:32:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:32:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:32:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:32:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:32:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:32:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:32:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:32:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:32:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:32:17] Production.INFO: count ==409 [2025-03-03 06:32:17] Production.INFO: call_cost start [2025-03-03 06:32:17] Production.INFO: call_cost end [2025-03-03 06:32:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:32:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:32:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:32:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:32:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:32:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:32:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:32:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:32:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:32:17] Production.INFO: ==19003== Releasing lock... [2025-03-03 06:32:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:32:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596650', 'tblTempUsageDetail_20' ) start [2025-03-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596650', 'tblTempUsageDetail_20' ) end [2025-03-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596650', 'tblTempVendorCDR_20' ) start [2025-03-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596650', 'tblTempVendorCDR_20' ) end [2025-03-03 06:32:17] Production.INFO: ProcessCDR(1,14596650,1,1,2) [2025-03-03 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596650', 'tblTempUsageDetail_20' ) start [2025-03-03 06:32:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596650', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:32:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:32:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:32:26] Production.INFO: ==19012== Releasing lock... [2025-03-03 06:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:32:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:33:01] Production.INFO: ==19114== Lock acquired, processing the job... [2025-03-03 11:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:33:01] Production.INFO: neon service started [2025-03-03 11:33:01] Production.INFO: neon service started [2025-03-03 11:33:01] Production.INFO: ==19114== Releasing lock... [2025-03-03 11:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:33:01] Production.INFO: ==19116== Lock acquired, processing the job... [2025-03-03 06:33:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:33:02] Production.INFO: ==19116== Releasing lock... [2025-03-03 06:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:33:02] Production.INFO: ==19118== Lock acquired, processing the job... [2025-03-03 11:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:33:02] Production.INFO: ==19118== Releasing lock... [2025-03-03 11:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:33:03] Production.INFO: ==19123== Lock acquired, processing the job... [2025-03-03 06:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:33:03] Production.INFO: ==19121== Lock acquired, processing the job... [2025-03-03 06:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:33:03] Production.INFO: ==19131== Lock acquired, processing the job... [2025-03-03 06:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:33:03] Production.INFO: ==19129== Lock acquired, processing the job... [2025-03-03 06:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:33:03] Production.INFO: ==19123== Releasing lock... [2025-03-03 06:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:33:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:33:03] Production.INFO: ==19125== Lock acquired, processing the job... [2025-03-03 06:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:33:03] Production.INFO: count ==13 [2025-03-03 06:33:03] Production.INFO: ==19127== Lock acquired, processing the job... [2025-03-03 06:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:33:03] Production.INFO: count ==21 [2025-03-03 06:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596653') start [2025-03-03 06:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:33:03] Production.INFO: Account Balance Start. [2025-03-03 06:33:03] Production.INFO: CreateAllLog Start [2025-03-03 06:33:03] Production.INFO: 117 [2025-03-03 06:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596653') end [2025-03-03 06:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:33:03] Production.INFO: 1 [2025-03-03 06:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:33:03] Production.INFO: ==19131== Releasing lock... [2025-03-03 06:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.ERROR: done [2025-03-03 06:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.ERROR: done [2025-03-03 06:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:33:04] Production.INFO: Total Charge 0 [2025-03-03 06:33:04] Production.INFO: CreateAllLog End [2025-03-03 06:33:04] Production.INFO: Account Balance End. [2025-03-03 06:33:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:33:04] Production.INFO: ==19127== Releasing lock... [2025-03-03 06:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:33:12] Production.ERROR: CronJobId end10 [2025-03-03 06:33:12] Production.INFO: ==19125== Releasing lock... [2025-03-03 06:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:33:15] Production.INFO: call_cost start [2025-03-03 06:33:15] Production.INFO: call_cost end [2025-03-03 06:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:33:15] Production.INFO: ==19121== Releasing lock... [2025-03-03 06:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:33:16] Production.INFO: count ==409 [2025-03-03 06:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596655', 'tblTempUsageDetail_20' ) start [2025-03-03 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596655', 'tblTempUsageDetail_20' ) end [2025-03-03 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596655', 'tblTempVendorCDR_20' ) start [2025-03-03 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596655', 'tblTempVendorCDR_20' ) end [2025-03-03 06:33:16] Production.INFO: ProcessCDR(1,14596655,1,1,2) [2025-03-03 06:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596655', 'tblTempUsageDetail_20' ) start [2025-03-03 06:33:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596655', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:33:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:33:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:33:25] Production.INFO: ==19129== Releasing lock... [2025-03-03 06:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:33:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:34:01] Production.INFO: ==19191== Lock acquired, processing the job... [2025-03-03 11:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:34:01] Production.INFO: neon service started [2025-03-03 11:34:01] Production.INFO: neon service started [2025-03-03 11:34:01] Production.INFO: ==19191== Releasing lock... [2025-03-03 11:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:34:02] Production.INFO: ==19193== Lock acquired, processing the job... [2025-03-03 06:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:34:02] Production.INFO: ==19195== Lock acquired, processing the job... [2025-03-03 11:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:34:02] Production.INFO: ==19195== Releasing lock... [2025-03-03 11:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:34:02] Production.INFO: ==19193== Releasing lock... [2025-03-03 06:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:34:03] Production.INFO: ==19201== Lock acquired, processing the job... [2025-03-03 06:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:34:03] Production.INFO: ==19207== Lock acquired, processing the job... [2025-03-03 06:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:34:03] Production.INFO: ==19209== Lock acquired, processing the job... [2025-03-03 06:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:34:03] Production.INFO: Account Balance Start. [2025-03-03 06:34:03] Production.INFO: CreateAllLog Start [2025-03-03 06:34:03] Production.INFO: 117 [2025-03-03 06:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: ==19203== Lock acquired, processing the job... [2025-03-03 06:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: ==19205== Lock acquired, processing the job... [2025-03-03 06:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: ==19211== Lock acquired, processing the job... [2025-03-03 06:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.ERROR: done [2025-03-03 06:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: count ==13 [2025-03-03 06:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:34:04] Production.INFO: count ==21 [2025-03-03 06:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596659') start [2025-03-03 06:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: ==19203== Releasing lock... [2025-03-03 06:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:34:04] Production.ERROR: done [2025-03-03 06:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596659') end [2025-03-03 06:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:34:04] Production.INFO: 1 [2025-03-03 06:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:34:04] Production.INFO: ==19211== Releasing lock... [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:34:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:34:05] Production.INFO: Total Charge 0 [2025-03-03 06:34:05] Production.INFO: CreateAllLog End [2025-03-03 06:34:05] Production.INFO: Account Balance End. [2025-03-03 06:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:34:05] Production.INFO: ==19207== Releasing lock... [2025-03-03 06:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:34:11] Production.ERROR: CronJobId end10 [2025-03-03 06:34:11] Production.INFO: ==19205== Releasing lock... [2025-03-03 06:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:34:14] Production.INFO: call_cost start [2025-03-03 06:34:14] Production.INFO: call_cost end [2025-03-03 06:34:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:34:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:34:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:34:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:34:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:34:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:34:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:34:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:34:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:34:14] Production.INFO: ==19201== Releasing lock... [2025-03-03 06:34:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:34:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:34:16] Production.INFO: count ==409 [2025-03-03 06:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596660', 'tblTempUsageDetail_20' ) start [2025-03-03 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596660', 'tblTempUsageDetail_20' ) end [2025-03-03 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596660', 'tblTempVendorCDR_20' ) start [2025-03-03 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596660', 'tblTempVendorCDR_20' ) end [2025-03-03 06:34:17] Production.INFO: ProcessCDR(1,14596660,1,1,2) [2025-03-03 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596660', 'tblTempUsageDetail_20' ) start [2025-03-03 06:34:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596660', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:34:24] Production.INFO: ==19209== Releasing lock... [2025-03-03 06:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:35:02] Production.INFO: ==19272== Lock acquired, processing the job... [2025-03-03 11:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:35:02] Production.INFO: neon service started [2025-03-03 11:35:02] Production.INFO: neon service started [2025-03-03 11:35:02] Production.INFO: ==19272== Releasing lock... [2025-03-03 11:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:35:02] Production.INFO: ==19274== Lock acquired, processing the job... [2025-03-03 06:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:35:02] Production.INFO: ==19274== Releasing lock... [2025-03-03 06:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:35:03] Production.INFO: ==19276== Lock acquired, processing the job... [2025-03-03 11:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:35:03] Production.INFO: ==19276== Releasing lock... [2025-03-03 11:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:35:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:35:03] Production.INFO: ==19278== Lock acquired, processing the job... [2025-03-03 06:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:35:03] Production.INFO: ==19280== Lock acquired, processing the job... [2025-03-03 06:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:35:03] Production.INFO: ==19284== Lock acquired, processing the job... [2025-03-03 06:35:03] Production.INFO: ==19282== Lock acquired, processing the job... [2025-03-03 06:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:35:03] Production.INFO: ==19286== Lock acquired, processing the job... [2025-03-03 06:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:35:04] Production.INFO: Account Balance Start. [2025-03-03 06:35:04] Production.INFO: CreateAllLog Start [2025-03-03 06:35:04] Production.INFO: 117 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:35:04] Production.INFO: ==19288== Lock acquired, processing the job... [2025-03-03 06:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: ==19280== Releasing lock... [2025-03-03 06:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: count ==13 [2025-03-03 06:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:35:04] Production.INFO: count ==21 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596664') start [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596664') end [2025-03-03 06:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:35:04] Production.INFO: 1 [2025-03-03 06:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: ==19288== Releasing lock... [2025-03-03 06:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.ERROR: done [2025-03-03 06:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.ERROR: done [2025-03-03 06:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:35:05] Production.INFO: Total Charge 0 [2025-03-03 06:35:05] Production.INFO: CreateAllLog End [2025-03-03 06:35:05] Production.INFO: Account Balance End. [2025-03-03 06:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:35:05] Production.INFO: ==19284== Releasing lock... [2025-03-03 06:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:35:12] Production.ERROR: CronJobId end10 [2025-03-03 06:35:12] Production.INFO: ==19282== Releasing lock... [2025-03-03 06:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:35:14] Production.INFO: call_cost start [2025-03-03 06:35:14] Production.INFO: call_cost end [2025-03-03 06:35:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:35:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:35:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:35:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:35:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:35:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:35:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:35:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:35:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:35:14] Production.INFO: ==19278== Releasing lock... [2025-03-03 06:35:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:35:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:35:16] Production.INFO: count ==409 [2025-03-03 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596665', 'tblTempUsageDetail_20' ) start [2025-03-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596665', 'tblTempUsageDetail_20' ) end [2025-03-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596665', 'tblTempVendorCDR_20' ) start [2025-03-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596665', 'tblTempVendorCDR_20' ) end [2025-03-03 06:35:17] Production.INFO: ProcessCDR(1,14596665,1,1,2) [2025-03-03 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596665', 'tblTempUsageDetail_20' ) start [2025-03-03 06:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596665', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:35:24] Production.INFO: ==19286== Releasing lock... [2025-03-03 06:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:36:01] Production.INFO: ==19344== Lock acquired, processing the job... [2025-03-03 11:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:36:01] Production.INFO: neon service started [2025-03-03 11:36:01] Production.INFO: neon service started [2025-03-03 11:36:01] Production.INFO: ==19344== Releasing lock... [2025-03-03 11:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:36:02] Production.INFO: ==19346== Lock acquired, processing the job... [2025-03-03 06:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:36:02] Production.INFO: ==19346== Releasing lock... [2025-03-03 06:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:36:02] Production.INFO: ==19348== Lock acquired, processing the job... [2025-03-03 11:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:36:02] Production.INFO: ==19348== Releasing lock... [2025-03-03 11:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:36:03] Production.INFO: ==19352== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:36:03] Production.INFO: ==19356== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:36:03] Production.INFO: ==19354== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:36:03] Production.INFO: ==19358== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:36:03] Production.INFO: ==19362== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:36:03] Production.INFO: Account Balance Start. [2025-03-03 06:36:03] Production.INFO: CreateAllLog Start [2025-03-03 06:36:03] Production.INFO: ==19360== Lock acquired, processing the job... [2025-03-03 06:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:36:03] Production.INFO: 117 [2025-03-03 06:36:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:36:03] Production.INFO: count ==13 [2025-03-03 06:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:36:03] Production.INFO: count ==21 [2025-03-03 06:36:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596669') start [2025-03-03 06:36:04] Production.INFO: ==19354== Releasing lock... [2025-03-03 06:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596669') end [2025-03-03 06:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:36:04] Production.INFO: 1 [2025-03-03 06:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:36:04] Production.INFO: ==19362== Releasing lock... [2025-03-03 06:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.ERROR: done [2025-03-03 06:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.ERROR: done [2025-03-03 06:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:36:05] Production.INFO: Total Charge 0 [2025-03-03 06:36:05] Production.INFO: CreateAllLog End [2025-03-03 06:36:05] Production.INFO: Account Balance End. [2025-03-03 06:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:36:05] Production.INFO: ==19358== Releasing lock... [2025-03-03 06:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:36:11] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,7))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 06:36:11] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:36:11] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:36:11] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:36:11] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:36:11] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:36:11] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:36:11] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:36:11] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:36:11] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:36:11] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:36:11] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:36:11] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:36:11] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:36:11] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:36:11] Production.INFO: call_cost start [2025-03-03 06:36:11] Production.INFO: call_cost end [2025-03-03 06:36:11] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:36:11] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:36:11] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:36:11] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:36:11] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:36:11] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:36:11] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:36:11] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:36:11] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:36:11] Production.INFO: ==19352== Releasing lock... [2025-03-03 06:36:11] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:36:11] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:36:12] Production.ERROR: CronJobId end10 [2025-03-03 06:36:12] Production.INFO: ==19356== Releasing lock... [2025-03-03 06:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:36:16] Production.INFO: count ==409 [2025-03-03 06:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596670', 'tblTempUsageDetail_20' ) start [2025-03-03 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596670', 'tblTempUsageDetail_20' ) end [2025-03-03 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596670', 'tblTempVendorCDR_20' ) start [2025-03-03 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596670', 'tblTempVendorCDR_20' ) end [2025-03-03 06:36:16] Production.INFO: ProcessCDR(1,14596670,1,1,2) [2025-03-03 06:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596670', 'tblTempUsageDetail_20' ) start [2025-03-03 06:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596670', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:36:24] Production.INFO: ==19360== Releasing lock... [2025-03-03 06:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:37:02] Production.INFO: ==19421== Lock acquired, processing the job... [2025-03-03 11:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:37:02] Production.INFO: neon service started [2025-03-03 11:37:02] Production.INFO: neon service started [2025-03-03 11:37:02] Production.INFO: ==19421== Releasing lock... [2025-03-03 11:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:37:02] Production.INFO: ==19423== Lock acquired, processing the job... [2025-03-03 06:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:37:02] Production.INFO: ==19423== Releasing lock... [2025-03-03 06:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:37:03] Production.INFO: ==19425== Lock acquired, processing the job... [2025-03-03 11:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:37:03] Production.INFO: ==19425== Releasing lock... [2025-03-03 11:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:37:03] Production.INFO: ==19427== Lock acquired, processing the job... [2025-03-03 06:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:37:03] Production.INFO: ==19431== Lock acquired, processing the job... [2025-03-03 06:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:37:03] Production.INFO: ==19435== Lock acquired, processing the job... [2025-03-03 06:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:37:04] Production.INFO: ==19429== Lock acquired, processing the job... [2025-03-03 06:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:37:04] Production.INFO: ==19433== Lock acquired, processing the job... [2025-03-03 06:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:37:04] Production.INFO: ==19437== Lock acquired, processing the job... [2025-03-03 06:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:37:04] Production.INFO: Account Balance Start. [2025-03-03 06:37:04] Production.INFO: CreateAllLog Start [2025-03-03 06:37:04] Production.INFO: 117 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:37:04] Production.INFO: count ==13 [2025-03-03 06:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:37:04] Production.INFO: count ==21 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596674') start [2025-03-03 06:37:04] Production.ERROR: done [2025-03-03 06:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596674') end [2025-03-03 06:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:37:04] Production.INFO: 1 [2025-03-03 06:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:37:04] Production.INFO: ==19429== Releasing lock... [2025-03-03 06:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: ==19437== Releasing lock... [2025-03-03 06:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:37:04] Production.ERROR: done [2025-03-03 06:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:37:05] Production.INFO: Total Charge 0 [2025-03-03 06:37:05] Production.INFO: CreateAllLog End [2025-03-03 06:37:05] Production.INFO: Account Balance End. [2025-03-03 06:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:37:05] Production.INFO: ==19433== Releasing lock... [2025-03-03 06:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:37:12] Production.ERROR: CronJobId end10 [2025-03-03 06:37:12] Production.INFO: ==19431== Releasing lock... [2025-03-03 06:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:37:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:37:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:37:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:37:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:37:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:37:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:37:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:37:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:37:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:37:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:37:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:37:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:37:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:37:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:37:13] Production.INFO: call_cost start [2025-03-03 06:37:13] Production.INFO: call_cost end [2025-03-03 06:37:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:37:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:37:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:37:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:37:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:37:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:37:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:37:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:37:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:37:13] Production.INFO: ==19427== Releasing lock... [2025-03-03 06:37:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:37:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:37:16] Production.INFO: count ==409 [2025-03-03 06:37:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596675', 'tblTempUsageDetail_20' ) start [2025-03-03 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596675', 'tblTempUsageDetail_20' ) end [2025-03-03 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596675', 'tblTempVendorCDR_20' ) start [2025-03-03 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596675', 'tblTempVendorCDR_20' ) end [2025-03-03 06:37:16] Production.INFO: ProcessCDR(1,14596675,1,1,2) [2025-03-03 06:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596675', 'tblTempUsageDetail_20' ) start [2025-03-03 06:37:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596675', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:37:24] Production.INFO: ==19435== Releasing lock... [2025-03-03 06:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:38:01] Production.INFO: ==19498== Lock acquired, processing the job... [2025-03-03 11:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:38:01] Production.INFO: neon service started [2025-03-03 11:38:01] Production.INFO: neon service started [2025-03-03 11:38:01] Production.INFO: ==19498== Releasing lock... [2025-03-03 11:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:38:01] Production.INFO: ==19502== Lock acquired, processing the job... [2025-03-03 11:38:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:38:01] Production.INFO: ==19502== Releasing lock... [2025-03-03 11:38:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:38:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:38:02] Production.INFO: ==19500== Lock acquired, processing the job... [2025-03-03 06:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:38:02] Production.INFO: ==19500== Releasing lock... [2025-03-03 06:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:38:03] Production.INFO: ==19508== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:38:03] Production.INFO: ==19514== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:38:03] Production.INFO: ==19504== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:38:03] Production.INFO: count ==13 [2025-03-03 06:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:38:03] Production.INFO: ==19506== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:38:03] Production.INFO: count ==21 [2025-03-03 06:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596676') start [2025-03-03 06:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:38:03] Production.INFO: ==19510== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596676') end [2025-03-03 06:38:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:38:03] Production.INFO: 1 [2025-03-03 06:38:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:38:03] Production.INFO: ==19512== Lock acquired, processing the job... [2025-03-03 06:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:38:03] Production.INFO: Account Balance Start. [2025-03-03 06:38:03] Production.INFO: CreateAllLog Start [2025-03-03 06:38:03] Production.INFO: 117 [2025-03-03 06:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:38:03] Production.INFO: ==19514== Releasing lock... [2025-03-03 06:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:38:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: ==19506== Releasing lock... [2025-03-03 06:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.ERROR: done [2025-03-03 06:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.ERROR: done [2025-03-03 06:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:38:05] Production.INFO: Total Charge 0 [2025-03-03 06:38:05] Production.INFO: CreateAllLog End [2025-03-03 06:38:05] Production.INFO: Account Balance End. [2025-03-03 06:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:38:05] Production.INFO: ==19510== Releasing lock... [2025-03-03 06:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:38:12] Production.ERROR: CronJobId end10 [2025-03-03 06:38:12] Production.INFO: ==19508== Releasing lock... [2025-03-03 06:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:38:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:38:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:38:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:38:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:38:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:38:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:38:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:38:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:38:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:38:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:38:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:38:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:38:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:38:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:38:14] Production.INFO: call_cost start [2025-03-03 06:38:14] Production.INFO: call_cost end [2025-03-03 06:38:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:38:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:38:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:38:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:38:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:38:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:38:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:38:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:38:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:38:14] Production.INFO: ==19504== Releasing lock... [2025-03-03 06:38:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:38:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:38:16] Production.INFO: count ==409 [2025-03-03 06:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596680', 'tblTempUsageDetail_20' ) start [2025-03-03 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596680', 'tblTempUsageDetail_20' ) end [2025-03-03 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596680', 'tblTempVendorCDR_20' ) start [2025-03-03 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596680', 'tblTempVendorCDR_20' ) end [2025-03-03 06:38:16] Production.INFO: ProcessCDR(1,14596680,1,1,2) [2025-03-03 06:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596680', 'tblTempUsageDetail_20' ) start [2025-03-03 06:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596680', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:38:24] Production.INFO: ==19512== Releasing lock... [2025-03-03 06:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:38:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:39:01] Production.INFO: ==19572== Lock acquired, processing the job... [2025-03-03 11:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:39:02] Production.INFO: neon service started [2025-03-03 11:39:02] Production.INFO: neon service started [2025-03-03 11:39:02] Production.INFO: ==19572== Releasing lock... [2025-03-03 11:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:39:02] Production.INFO: ==19574== Lock acquired, processing the job... [2025-03-03 06:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:39:02] Production.INFO: ==19574== Releasing lock... [2025-03-03 06:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:39:02] Production.INFO: ==19576== Lock acquired, processing the job... [2025-03-03 11:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:39:03] Production.INFO: ==19576== Releasing lock... [2025-03-03 11:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:39:03] Production.INFO: ==19580== Lock acquired, processing the job... [2025-03-03 06:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:39:03] Production.INFO: ==19590== Lock acquired, processing the job... [2025-03-03 06:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:39:03] Production.INFO: ==19582== Lock acquired, processing the job... [2025-03-03 06:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:39:03] Production.INFO: ==19584== Lock acquired, processing the job... [2025-03-03 06:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:39:03] Production.INFO: ==19586== Lock acquired, processing the job... [2025-03-03 06:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:39:03] Production.INFO: ==19588== Lock acquired, processing the job... [2025-03-03 06:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:39:03] Production.INFO: Account Balance Start. [2025-03-03 06:39:03] Production.INFO: CreateAllLog Start [2025-03-03 06:39:03] Production.INFO: count ==13 [2025-03-03 06:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:39:03] Production.INFO: 117 [2025-03-03 06:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:39:03] Production.INFO: count ==21 [2025-03-03 06:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596682') start [2025-03-03 06:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: ==19582== Releasing lock... [2025-03-03 06:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596682') end [2025-03-03 06:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:39:04] Production.INFO: 1 [2025-03-03 06:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: ==19590== Releasing lock... [2025-03-03 06:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:39:04] Production.ERROR: done [2025-03-03 06:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.ERROR: done [2025-03-03 06:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:39:05] Production.INFO: Total Charge 0 [2025-03-03 06:39:05] Production.INFO: CreateAllLog End [2025-03-03 06:39:05] Production.INFO: Account Balance End. [2025-03-03 06:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:39:05] Production.INFO: ==19586== Releasing lock... [2025-03-03 06:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:39:11] Production.ERROR: CronJobId end10 [2025-03-03 06:39:11] Production.INFO: ==19584== Releasing lock... [2025-03-03 06:39:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:39:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:39:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:39:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:39:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:39:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:39:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:39:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:39:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:39:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:39:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:39:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:39:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:39:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:39:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:39:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:39:13] Production.INFO: call_cost start [2025-03-03 06:39:13] Production.INFO: call_cost end [2025-03-03 06:39:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:39:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:39:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:39:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:39:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:39:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:39:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:39:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:39:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:39:13] Production.INFO: ==19580== Releasing lock... [2025-03-03 06:39:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:39:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:39:16] Production.INFO: count ==409 [2025-03-03 06:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596685', 'tblTempUsageDetail_20' ) start [2025-03-03 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596685', 'tblTempUsageDetail_20' ) end [2025-03-03 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596685', 'tblTempVendorCDR_20' ) start [2025-03-03 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596685', 'tblTempVendorCDR_20' ) end [2025-03-03 06:39:16] Production.INFO: ProcessCDR(1,14596685,1,1,2) [2025-03-03 06:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596685', 'tblTempUsageDetail_20' ) start [2025-03-03 06:39:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596685', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:39:24] Production.INFO: ==19588== Releasing lock... [2025-03-03 06:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:39:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:40:01] Production.INFO: ==19648== Lock acquired, processing the job... [2025-03-03 11:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:40:01] Production.INFO: neon service started [2025-03-03 11:40:01] Production.INFO: neon service started [2025-03-03 11:40:01] Production.INFO: ==19648== Releasing lock... [2025-03-03 11:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:40:02] Production.INFO: ==19650== Lock acquired, processing the job... [2025-03-03 06:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:40:02] Production.INFO: ==19652== Lock acquired, processing the job... [2025-03-03 11:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:40:02] Production.INFO: ==19652== Releasing lock... [2025-03-03 11:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:40:02] Production.INFO: ==19650== Releasing lock... [2025-03-03 06:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:40:03] Production.INFO: ==19655== Lock acquired, processing the job... [2025-03-03 06:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 06:40:03] Production.INFO: ==19659== Lock acquired, processing the job... [2025-03-03 06:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:40:03] Production.INFO: ==19661== Lock acquired, processing the job... [2025-03-03 06:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:40:03] Production.INFO: ==19657== Lock acquired, processing the job... [2025-03-03 06:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 06:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:40:03] Production.ERROR: CronJob PID - 19659 [2025-03-03 06:40:03] Production.ERROR: CronJob Title - Account Block [2025-03-03 06:40:03] Production.ERROR: CronJob ID - 7 [2025-03-03 06:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 06:40:00 [2025-03-03 06:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 06:40:03] Production.INFO: ==19655== Releasing lock... [2025-03-03 06:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 06:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 06:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:40:03] Production.INFO: ==19667== Lock acquired, processing the job... [2025-03-03 06:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 06:40:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:40:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:40:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:40:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:40:04] Production.INFO: ==19663== Lock acquired, processing the job... [2025-03-03 06:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:40:04] Production.INFO: ==19659== Releasing lock... [2025-03-03 06:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:40:04] Production.INFO: ==19665== Lock acquired, processing the job... [2025-03-03 06:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:40:04] Production.INFO: ==19669== Lock acquired, processing the job... [2025-03-03 06:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:40:04] Production.INFO: Account Balance Start. [2025-03-03 06:40:04] Production.INFO: CreateAllLog Start [2025-03-03 06:40:04] Production.INFO: 117 [2025-03-03 06:40:04] Production.ERROR: done [2025-03-03 06:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:40:04] Production.INFO: count ==13 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 06:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596690', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 06:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:40:04] Production.INFO: count ==21 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596689') start [2025-03-03 06:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596689') end [2025-03-03 06:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:40:04] Production.INFO: 1 [2025-03-03 06:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: ==19669== Releasing lock... [2025-03-03 06:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:40:04] Production.ERROR: done [2025-03-03 06:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.ERROR: done [2025-03-03 06:40:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:40:05] Production.INFO: Total Charge 0 [2025-03-03 06:40:05] Production.INFO: CreateAllLog End [2025-03-03 06:40:05] Production.INFO: Account Balance End. [2025-03-03 06:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:40:05] Production.INFO: ==19663== Releasing lock... [2025-03-03 06:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596690', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 06:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 06:40:09] Production.INFO: ProcessCDR(1,14596690,1,1,2) [2025-03-03 06:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596690,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596690,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 06:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 06:40:09] Production.INFO: ==19667== Releasing lock... [2025-03-03 06:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 06:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:40:12] Production.ERROR: CronJobId end10 [2025-03-03 06:40:12] Production.INFO: ==19661== Releasing lock... [2025-03-03 06:40:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:40:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:40:15] Production.INFO: call_cost start [2025-03-03 06:40:15] Production.INFO: call_cost end [2025-03-03 06:40:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:40:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:40:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:40:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:40:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:40:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:40:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:40:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:40:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:40:15] Production.INFO: ==19657== Releasing lock... [2025-03-03 06:40:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:40:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:40:17] Production.INFO: count ==409 [2025-03-03 06:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596691', 'tblTempUsageDetail_20' ) start [2025-03-03 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596691', 'tblTempUsageDetail_20' ) end [2025-03-03 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596691', 'tblTempVendorCDR_20' ) start [2025-03-03 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596691', 'tblTempVendorCDR_20' ) end [2025-03-03 06:40:17] Production.INFO: ProcessCDR(1,14596691,1,1,2) [2025-03-03 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596691', 'tblTempUsageDetail_20' ) start [2025-03-03 06:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596691', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:40:25] Production.INFO: ==19665== Releasing lock... [2025-03-03 06:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:40:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:41:01] Production.INFO: ==19726== Lock acquired, processing the job... [2025-03-03 11:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:41:01] Production.INFO: neon service started [2025-03-03 11:41:01] Production.INFO: neon service started [2025-03-03 11:41:01] Production.INFO: ==19726== Releasing lock... [2025-03-03 11:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:41:02] Production.INFO: ==19728== Lock acquired, processing the job... [2025-03-03 06:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:41:02] Production.INFO: ==19730== Lock acquired, processing the job... [2025-03-03 11:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:41:02] Production.INFO: ==19730== Releasing lock... [2025-03-03 11:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:41:02] Production.INFO: ==19728== Releasing lock... [2025-03-03 06:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:41:03] Production.INFO: ==19737== Lock acquired, processing the job... [2025-03-03 06:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:41:03] Production.INFO: ==19741== Lock acquired, processing the job... [2025-03-03 06:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:41:03] Production.INFO: ==19743== Lock acquired, processing the job... [2025-03-03 06:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:41:03] Production.INFO: ==19733== Lock acquired, processing the job... [2025-03-03 06:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:41:04] Production.INFO: ==19735== Lock acquired, processing the job... [2025-03-03 06:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:41:04] Production.INFO: ==19739== Lock acquired, processing the job... [2025-03-03 06:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:41:04] Production.INFO: Account Balance Start. [2025-03-03 06:41:04] Production.INFO: CreateAllLog Start [2025-03-03 06:41:04] Production.INFO: 117 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: count ==13 [2025-03-03 06:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:41:04] Production.INFO: count ==21 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596693') start [2025-03-03 06:41:04] Production.ERROR: done [2025-03-03 06:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596693') end [2025-03-03 06:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:41:04] Production.INFO: 1 [2025-03-03 06:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: ==19743== Releasing lock... [2025-03-03 06:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:41:04] Production.ERROR: done [2025-03-03 06:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: ==19735== Releasing lock... [2025-03-03 06:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:41:05] Production.INFO: Total Charge 0 [2025-03-03 06:41:05] Production.INFO: CreateAllLog End [2025-03-03 06:41:05] Production.INFO: Account Balance End. [2025-03-03 06:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:41:05] Production.INFO: ==19739== Releasing lock... [2025-03-03 06:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:41:11] Production.ERROR: CronJobId end10 [2025-03-03 06:41:11] Production.INFO: ==19737== Releasing lock... [2025-03-03 06:41:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:41:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:41:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:41:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:41:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:41:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:41:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:41:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:41:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:41:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:41:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:41:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:41:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:41:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:41:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:41:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:41:13] Production.INFO: call_cost start [2025-03-03 06:41:13] Production.INFO: call_cost end [2025-03-03 06:41:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:41:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:41:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:41:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:41:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:41:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:41:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:41:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:41:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:41:13] Production.INFO: ==19733== Releasing lock... [2025-03-03 06:41:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:41:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:41:16] Production.INFO: count ==409 [2025-03-03 06:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596696', 'tblTempUsageDetail_20' ) start [2025-03-03 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596696', 'tblTempUsageDetail_20' ) end [2025-03-03 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596696', 'tblTempVendorCDR_20' ) start [2025-03-03 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596696', 'tblTempVendorCDR_20' ) end [2025-03-03 06:41:16] Production.INFO: ProcessCDR(1,14596696,1,1,2) [2025-03-03 06:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596696', 'tblTempUsageDetail_20' ) start [2025-03-03 06:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596696', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:41:24] Production.INFO: ==19741== Releasing lock... [2025-03-03 06:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:41:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:42:01] Production.INFO: ==19800== Lock acquired, processing the job... [2025-03-03 11:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:42:01] Production.INFO: neon service started [2025-03-03 11:42:01] Production.INFO: neon service started [2025-03-03 11:42:01] Production.INFO: ==19800== Releasing lock... [2025-03-03 11:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:42:01] Production.INFO: ==19804== Lock acquired, processing the job... [2025-03-03 11:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:42:01] Production.INFO: ==19804== Releasing lock... [2025-03-03 11:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:42:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:42:01] Production.INFO: ==19802== Lock acquired, processing the job... [2025-03-03 06:42:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:42:02] Production.INFO: ==19802== Releasing lock... [2025-03-03 06:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:42:02] Production.INFO: ==19806== Lock acquired, processing the job... [2025-03-03 06:42:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:42:03] Production.INFO: ==19816== Lock acquired, processing the job... [2025-03-03 06:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:42:03] Production.INFO: count ==13 [2025-03-03 06:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:42:03] Production.INFO: count ==21 [2025-03-03 06:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596698') start [2025-03-03 06:42:03] Production.INFO: ==19808== Lock acquired, processing the job... [2025-03-03 06:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596698') end [2025-03-03 06:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:42:03] Production.INFO: 1 [2025-03-03 06:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:42:03] Production.INFO: ==19810== Lock acquired, processing the job... [2025-03-03 06:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:42:03] Production.INFO: ==19812== Lock acquired, processing the job... [2025-03-03 06:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:42:03] Production.INFO: ==19814== Lock acquired, processing the job... [2025-03-03 06:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:42:03] Production.INFO: ==19816== Releasing lock... [2025-03-03 06:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:42:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:42:03] Production.INFO: Account Balance Start. [2025-03-03 06:42:03] Production.INFO: CreateAllLog Start [2025-03-03 06:42:03] Production.INFO: 117 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.ERROR: done [2025-03-03 06:42:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-15 [2025-03-03 06:42:03] Production.INFO: ==19808== Releasing lock... [2025-03-03 06:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-16 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:03] Production.INFO: Date 2025-02-17 [2025-03-03 06:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.ERROR: done [2025-03-03 06:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:42:04] Production.INFO: Total Charge 0 [2025-03-03 06:42:04] Production.INFO: CreateAllLog End [2025-03-03 06:42:04] Production.INFO: Account Balance End. [2025-03-03 06:42:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:42:04] Production.INFO: ==19812== Releasing lock... [2025-03-03 06:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:42:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:42:12] Production.ERROR: CronJobId end10 [2025-03-03 06:42:12] Production.INFO: ==19810== Releasing lock... [2025-03-03 06:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:42:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:42:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:42:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:42:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:42:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:42:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:42:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:42:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:42:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:42:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:42:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:42:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:42:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:42:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:42:14] Production.INFO: call_cost start [2025-03-03 06:42:14] Production.INFO: call_cost end [2025-03-03 06:42:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:42:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:42:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:42:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:42:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:42:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:42:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:42:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:42:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:42:14] Production.INFO: ==19806== Releasing lock... [2025-03-03 06:42:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:42:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:42:16] Production.INFO: count ==409 [2025-03-03 06:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596701', 'tblTempUsageDetail_20' ) start [2025-03-03 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596701', 'tblTempUsageDetail_20' ) end [2025-03-03 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596701', 'tblTempVendorCDR_20' ) start [2025-03-03 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596701', 'tblTempVendorCDR_20' ) end [2025-03-03 06:42:16] Production.INFO: ProcessCDR(1,14596701,1,1,2) [2025-03-03 06:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596701', 'tblTempUsageDetail_20' ) start [2025-03-03 06:42:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596701', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:42:24] Production.INFO: ==19814== Releasing lock... [2025-03-03 06:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:43:01] Production.INFO: ==19878== Lock acquired, processing the job... [2025-03-03 11:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:43:01] Production.INFO: neon service started [2025-03-03 11:43:01] Production.INFO: neon service started [2025-03-03 11:43:01] Production.INFO: ==19878== Releasing lock... [2025-03-03 11:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:43:02] Production.INFO: ==19880== Lock acquired, processing the job... [2025-03-03 06:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:43:02] Production.INFO: ==19882== Lock acquired, processing the job... [2025-03-03 11:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:43:02] Production.INFO: ==19882== Releasing lock... [2025-03-03 11:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:43:02] Production.INFO: ==19880== Releasing lock... [2025-03-03 06:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:43:03] Production.INFO: ==19893== Lock acquired, processing the job... [2025-03-03 06:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:43:03] Production.INFO: ==19895== Lock acquired, processing the job... [2025-03-03 06:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:43:03] Production.INFO: ==19885== Lock acquired, processing the job... [2025-03-03 06:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:43:04] Production.INFO: ==19887== Lock acquired, processing the job... [2025-03-03 06:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:43:04] Production.INFO: ==19889== Lock acquired, processing the job... [2025-03-03 06:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:43:04] Production.INFO: ==19891== Lock acquired, processing the job... [2025-03-03 06:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:43:04] Production.INFO: count ==13 [2025-03-03 06:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:43:04] Production.INFO: count ==21 [2025-03-03 06:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596702') start [2025-03-03 06:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:43:04] Production.INFO: Account Balance Start. [2025-03-03 06:43:04] Production.INFO: CreateAllLog Start [2025-03-03 06:43:04] Production.INFO: 117 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596702') end [2025-03-03 06:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:43:04] Production.INFO: 1 [2025-03-03 06:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: ==19895== Releasing lock... [2025-03-03 06:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:43:04] Production.ERROR: done [2025-03-03 06:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.ERROR: done [2025-03-03 06:43:04] Production.INFO: ==19887== Releasing lock... [2025-03-03 06:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:43:05] Production.INFO: Total Charge 0 [2025-03-03 06:43:05] Production.INFO: CreateAllLog End [2025-03-03 06:43:05] Production.INFO: Account Balance End. [2025-03-03 06:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:43:05] Production.INFO: ==19891== Releasing lock... [2025-03-03 06:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:43:10] Production.ERROR: CronJobId end10 [2025-03-03 06:43:10] Production.INFO: ==19889== Releasing lock... [2025-03-03 06:43:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:43:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:43:14] Production.INFO: call_cost start [2025-03-03 06:43:14] Production.INFO: call_cost end [2025-03-03 06:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:43:14] Production.INFO: ==19885== Releasing lock... [2025-03-03 06:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:43:16] Production.INFO: count ==409 [2025-03-03 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596706', 'tblTempUsageDetail_20' ) start [2025-03-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596706', 'tblTempUsageDetail_20' ) end [2025-03-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596706', 'tblTempVendorCDR_20' ) start [2025-03-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596706', 'tblTempVendorCDR_20' ) end [2025-03-03 06:43:17] Production.INFO: ProcessCDR(1,14596706,1,1,2) [2025-03-03 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596706', 'tblTempUsageDetail_20' ) start [2025-03-03 06:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596706', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:43:24] Production.INFO: ==19893== Releasing lock... [2025-03-03 06:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:44:02] Production.INFO: ==19951== Lock acquired, processing the job... [2025-03-03 11:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:44:02] Production.INFO: neon service started [2025-03-03 11:44:02] Production.INFO: neon service started [2025-03-03 11:44:02] Production.INFO: ==19951== Releasing lock... [2025-03-03 11:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:44:02] Production.INFO: ==19955== Lock acquired, processing the job... [2025-03-03 11:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:44:02] Production.INFO: ==19955== Releasing lock... [2025-03-03 11:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:44:02] Production.INFO: ==19953== Lock acquired, processing the job... [2025-03-03 06:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:44:03] Production.INFO: ==19953== Releasing lock... [2025-03-03 06:44:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:44:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:44:03] Production.INFO: ==19962== Lock acquired, processing the job... [2025-03-03 06:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:44:04] Production.INFO: ==19968== Lock acquired, processing the job... [2025-03-03 06:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:44:04] Production.INFO: ==19958== Lock acquired, processing the job... [2025-03-03 06:44:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:44:04] Production.INFO: count ==13 [2025-03-03 06:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:44:04] Production.INFO: count ==21 [2025-03-03 06:44:04] Production.INFO: ==19960== Lock acquired, processing the job... [2025-03-03 06:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596707') start [2025-03-03 06:44:04] Production.INFO: ==19964== Lock acquired, processing the job... [2025-03-03 06:44:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596707') end [2025-03-03 06:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:44:04] Production.INFO: 1 [2025-03-03 06:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:44:04] Production.INFO: ==19966== Lock acquired, processing the job... [2025-03-03 06:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:44:04] Production.INFO: ==19968== Releasing lock... [2025-03-03 06:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:44:04] Production.INFO: Account Balance Start. [2025-03-03 06:44:04] Production.INFO: CreateAllLog Start [2025-03-03 06:44:04] Production.INFO: 117 [2025-03-03 06:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:04] Production.INFO: ==19960== Releasing lock... [2025-03-03 06:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-12 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.ERROR: done [2025-03-03 06:44:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-13 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.ERROR: done [2025-03-03 06:44:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:44:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:44:05] Production.INFO: Total Charge 0 [2025-03-03 06:44:05] Production.INFO: CreateAllLog End [2025-03-03 06:44:05] Production.INFO: Account Balance End. [2025-03-03 06:44:06] Production.ERROR: CronJobId end 12 [2025-03-03 06:44:06] Production.INFO: ==19964== Releasing lock... [2025-03-03 06:44:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:44:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:44:12] Production.ERROR: CronJobId end10 [2025-03-03 06:44:12] Production.INFO: ==19962== Releasing lock... [2025-03-03 06:44:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:44:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:44:15] Production.INFO: call_cost start [2025-03-03 06:44:15] Production.INFO: call_cost end [2025-03-03 06:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:44:15] Production.INFO: ==19958== Releasing lock... [2025-03-03 06:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:44:17] Production.INFO: count ==409 [2025-03-03 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596711', 'tblTempUsageDetail_20' ) start [2025-03-03 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596711', 'tblTempUsageDetail_20' ) end [2025-03-03 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596711', 'tblTempVendorCDR_20' ) start [2025-03-03 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596711', 'tblTempVendorCDR_20' ) end [2025-03-03 06:44:17] Production.INFO: ProcessCDR(1,14596711,1,1,2) [2025-03-03 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596711', 'tblTempUsageDetail_20' ) start [2025-03-03 06:44:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596711', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:44:25] Production.INFO: ==19966== Releasing lock... [2025-03-03 06:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:44:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:45:01] Production.INFO: ==20029== Lock acquired, processing the job... [2025-03-03 11:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:45:01] Production.INFO: neon service started [2025-03-03 11:45:01] Production.INFO: neon service started [2025-03-03 11:45:01] Production.INFO: ==20029== Releasing lock... [2025-03-03 11:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:45:02] Production.INFO: ==20031== Lock acquired, processing the job... [2025-03-03 06:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:45:02] Production.INFO: ==20031== Releasing lock... [2025-03-03 06:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:45:02] Production.INFO: ==20033== Lock acquired, processing the job... [2025-03-03 11:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:45:02] Production.INFO: ==20033== Releasing lock... [2025-03-03 11:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:45:03] Production.INFO: ==20038== Lock acquired, processing the job... [2025-03-03 06:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:45:03] Production.INFO: ==20036== Lock acquired, processing the job... [2025-03-03 06:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:45:03] Production.INFO: ==20044== Lock acquired, processing the job... [2025-03-03 06:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:45:03] Production.INFO: ==20046== Lock acquired, processing the job... [2025-03-03 06:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:45:03] Production.INFO: ==20038== Releasing lock... [2025-03-03 06:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:45:03] Production.INFO: ==20040== Lock acquired, processing the job... [2025-03-03 06:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:45:03] Production.INFO: count ==13 [2025-03-03 06:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:45:03] Production.INFO: ==20042== Lock acquired, processing the job... [2025-03-03 06:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:45:03] Production.INFO: count ==21 [2025-03-03 06:45:03] Production.ERROR: done [2025-03-03 06:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596714') start [2025-03-03 06:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:45:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596714') end [2025-03-03 06:45:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:45:03] Production.INFO: 1 [2025-03-03 06:45:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:45:03] Production.INFO: Account Balance Start. [2025-03-03 06:45:03] Production.INFO: CreateAllLog Start [2025-03-03 06:45:03] Production.INFO: 117 [2025-03-03 06:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:03] Production.INFO: ==20046== Releasing lock... [2025-03-03 06:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:45:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:45:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:03] Production.ERROR: done [2025-03-03 06:45:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:45:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:45:03] Production.INFO: Date 2025-02-13 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:03] Production.INFO: Date 2025-02-14 [2025-03-03 06:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:45:04] Production.INFO: Total Charge 0 [2025-03-03 06:45:04] Production.INFO: CreateAllLog End [2025-03-03 06:45:04] Production.INFO: Account Balance End. [2025-03-03 06:45:04] Production.ERROR: CronJobId end 12 [2025-03-03 06:45:04] Production.INFO: ==20042== Releasing lock... [2025-03-03 06:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:45:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:45:11] Production.ERROR: CronJobId end10 [2025-03-03 06:45:11] Production.INFO: ==20040== Releasing lock... [2025-03-03 06:45:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:45:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:45:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:45:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:45:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:45:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:45:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:45:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:45:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:45:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:45:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:45:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:45:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:45:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:45:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:45:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:45:14] Production.INFO: call_cost start [2025-03-03 06:45:14] Production.INFO: call_cost end [2025-03-03 06:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:45:14] Production.INFO: ==20036== Releasing lock... [2025-03-03 06:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:45:15] Production.INFO: count ==409 [2025-03-03 06:45:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596716', 'tblTempUsageDetail_20' ) start [2025-03-03 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596716', 'tblTempUsageDetail_20' ) end [2025-03-03 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596716', 'tblTempVendorCDR_20' ) start [2025-03-03 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596716', 'tblTempVendorCDR_20' ) end [2025-03-03 06:45:16] Production.INFO: ProcessCDR(1,14596716,1,1,2) [2025-03-03 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596716', 'tblTempUsageDetail_20' ) start [2025-03-03 06:45:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596716', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:45:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:45:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:45:23] Production.INFO: ==20044== Releasing lock... [2025-03-03 06:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:45:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:46:02] Production.INFO: ==20103== Lock acquired, processing the job... [2025-03-03 11:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:46:02] Production.INFO: neon service started [2025-03-03 11:46:02] Production.INFO: neon service started [2025-03-03 11:46:02] Production.INFO: ==20103== Releasing lock... [2025-03-03 11:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:46:02] Production.INFO: ==20105== Lock acquired, processing the job... [2025-03-03 06:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:46:02] Production.INFO: ==20107== Lock acquired, processing the job... [2025-03-03 11:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:46:02] Production.INFO: ==20107== Releasing lock... [2025-03-03 11:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:46:03] Production.INFO: ==20105== Releasing lock... [2025-03-03 06:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:46:04] Production.INFO: ==20116== Lock acquired, processing the job... [2025-03-03 06:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:46:04] Production.INFO: ==20110== Lock acquired, processing the job... [2025-03-03 06:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:46:04] Production.INFO: Account Balance Start. [2025-03-03 06:46:04] Production.INFO: CreateAllLog Start [2025-03-03 06:46:04] Production.INFO: 117 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: ==20120== Lock acquired, processing the job... [2025-03-03 06:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: ==20112== Lock acquired, processing the job... [2025-03-03 06:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:46:04] Production.INFO: ==20114== Lock acquired, processing the job... [2025-03-03 06:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: ==20118== Lock acquired, processing the job... [2025-03-03 06:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:46:04] Production.INFO: count ==13 [2025-03-03 06:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:46:04] Production.INFO: count ==21 [2025-03-03 06:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596719') start [2025-03-03 06:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: ==20112== Releasing lock... [2025-03-03 06:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596719') end [2025-03-03 06:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:46:04] Production.INFO: 1 [2025-03-03 06:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: ==20120== Releasing lock... [2025-03-03 06:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.ERROR: done [2025-03-03 06:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:05] Production.ERROR: done [2025-03-03 06:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:46:05] Production.INFO: Total Charge 0 [2025-03-03 06:46:05] Production.INFO: CreateAllLog End [2025-03-03 06:46:05] Production.INFO: Account Balance End. [2025-03-03 06:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:46:05] Production.INFO: ==20116== Releasing lock... [2025-03-03 06:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:46:11] Production.ERROR: CronJobId end10 [2025-03-03 06:46:11] Production.INFO: ==20114== Releasing lock... [2025-03-03 06:46:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:46:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:46:14] Production.INFO: call_cost start [2025-03-03 06:46:14] Production.INFO: call_cost end [2025-03-03 06:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:46:14] Production.INFO: ==20110== Releasing lock... [2025-03-03 06:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:46:16] Production.INFO: count ==409 [2025-03-03 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596721', 'tblTempUsageDetail_20' ) start [2025-03-03 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596721', 'tblTempUsageDetail_20' ) end [2025-03-03 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596721', 'tblTempVendorCDR_20' ) start [2025-03-03 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596721', 'tblTempVendorCDR_20' ) end [2025-03-03 06:46:17] Production.INFO: ProcessCDR(1,14596721,1,1,2) [2025-03-03 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596721', 'tblTempUsageDetail_20' ) start [2025-03-03 06:46:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596721', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:46:24] Production.INFO: ==20118== Releasing lock... [2025-03-03 06:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:46:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:47:01] Production.INFO: ==20175== Lock acquired, processing the job... [2025-03-03 11:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:47:01] Production.INFO: neon service started [2025-03-03 11:47:01] Production.INFO: neon service started [2025-03-03 11:47:01] Production.INFO: ==20175== Releasing lock... [2025-03-03 11:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:47:02] Production.INFO: ==20179== Lock acquired, processing the job... [2025-03-03 11:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:47:02] Production.INFO: ==20179== Releasing lock... [2025-03-03 11:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:47:02] Production.INFO: ==20177== Lock acquired, processing the job... [2025-03-03 06:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:47:02] Production.INFO: ==20177== Releasing lock... [2025-03-03 06:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:47:03] Production.INFO: ==20181== Lock acquired, processing the job... [2025-03-03 06:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:47:03] Production.INFO: ==20185== Lock acquired, processing the job... [2025-03-03 06:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:47:03] Production.INFO: ==20183== Lock acquired, processing the job... [2025-03-03 06:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:47:03] Production.INFO: ==20187== Lock acquired, processing the job... [2025-03-03 06:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:47:03] Production.INFO: ==20189== Lock acquired, processing the job... [2025-03-03 06:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:47:03] Production.INFO: ==20191== Lock acquired, processing the job... [2025-03-03 06:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:47:03] Production.INFO: Account Balance Start. [2025-03-03 06:47:03] Production.INFO: CreateAllLog Start [2025-03-03 06:47:03] Production.INFO: 117 [2025-03-03 06:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: ==20183== Releasing lock... [2025-03-03 06:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: count ==13 [2025-03-03 06:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:47:04] Production.INFO: count ==21 [2025-03-03 06:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596725') start [2025-03-03 06:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596725') end [2025-03-03 06:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:47:04] Production.INFO: 1 [2025-03-03 06:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:47:04] Production.ERROR: done [2025-03-03 06:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: ==20191== Releasing lock... [2025-03-03 06:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.ERROR: done [2025-03-03 06:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:47:04] Production.INFO: Total Charge 0 [2025-03-03 06:47:04] Production.INFO: CreateAllLog End [2025-03-03 06:47:04] Production.INFO: Account Balance End. [2025-03-03 06:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:47:05] Production.INFO: ==20187== Releasing lock... [2025-03-03 06:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:47:12] Production.ERROR: CronJobId end10 [2025-03-03 06:47:12] Production.INFO: ==20185== Releasing lock... [2025-03-03 06:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:47:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:47:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:47:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:47:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:47:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:47:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:47:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:47:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:47:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:47:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:47:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:47:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:47:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:47:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:47:14] Production.INFO: call_cost start [2025-03-03 06:47:14] Production.INFO: call_cost end [2025-03-03 06:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:47:14] Production.INFO: ==20181== Releasing lock... [2025-03-03 06:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:47:16] Production.INFO: count ==409 [2025-03-03 06:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596726', 'tblTempUsageDetail_20' ) start [2025-03-03 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596726', 'tblTempUsageDetail_20' ) end [2025-03-03 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596726', 'tblTempVendorCDR_20' ) start [2025-03-03 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596726', 'tblTempVendorCDR_20' ) end [2025-03-03 06:47:16] Production.INFO: ProcessCDR(1,14596726,1,1,2) [2025-03-03 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596726', 'tblTempUsageDetail_20' ) start [2025-03-03 06:47:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596726', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:47:24] Production.INFO: ==20189== Releasing lock... [2025-03-03 06:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:47:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:48:02] Production.INFO: ==20295== Lock acquired, processing the job... [2025-03-03 11:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:48:02] Production.INFO: neon service started [2025-03-03 11:48:02] Production.INFO: neon service started [2025-03-03 11:48:02] Production.INFO: ==20295== Releasing lock... [2025-03-03 11:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:48:02] Production.INFO: ==20298== Lock acquired, processing the job... [2025-03-03 06:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:48:02] Production.INFO: ==20298== Releasing lock... [2025-03-03 06:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:48:02] Production.INFO: ==20300== Lock acquired, processing the job... [2025-03-03 11:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:48:03] Production.INFO: ==20300== Releasing lock... [2025-03-03 11:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:48:03] Production.INFO: ==20302== Lock acquired, processing the job... [2025-03-03 06:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:48:03] Production.INFO: ==20304== Lock acquired, processing the job... [2025-03-03 06:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:48:03] Production.INFO: ==20306== Lock acquired, processing the job... [2025-03-03 06:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:48:03] Production.INFO: ==20308== Lock acquired, processing the job... [2025-03-03 06:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:48:03] Production.INFO: ==20310== Lock acquired, processing the job... [2025-03-03 06:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:48:04] Production.INFO: Account Balance Start. [2025-03-03 06:48:04] Production.INFO: CreateAllLog Start [2025-03-03 06:48:04] Production.INFO: 117 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:48:04] Production.INFO: ==20312== Lock acquired, processing the job... [2025-03-03 06:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: ==20304== Releasing lock... [2025-03-03 06:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: count ==13 [2025-03-03 06:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: count ==21 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596730') start [2025-03-03 06:48:04] Production.ERROR: done [2025-03-03 06:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596730') end [2025-03-03 06:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:48:04] Production.INFO: 1 [2025-03-03 06:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.ERROR: done [2025-03-03 06:48:04] Production.INFO: ==20312== Releasing lock... [2025-03-03 06:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:48:05] Production.INFO: Total Charge 0 [2025-03-03 06:48:05] Production.INFO: CreateAllLog End [2025-03-03 06:48:05] Production.INFO: Account Balance End. [2025-03-03 06:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:48:05] Production.INFO: ==20308== Releasing lock... [2025-03-03 06:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:48:12] Production.ERROR: CronJobId end10 [2025-03-03 06:48:12] Production.INFO: ==20306== Releasing lock... [2025-03-03 06:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:48:15] Production.INFO: call_cost start [2025-03-03 06:48:15] Production.INFO: call_cost end [2025-03-03 06:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:48:15] Production.INFO: ==20302== Releasing lock... [2025-03-03 06:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:48:16] Production.INFO: count ==409 [2025-03-03 06:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596731', 'tblTempUsageDetail_20' ) start [2025-03-03 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596731', 'tblTempUsageDetail_20' ) end [2025-03-03 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596731', 'tblTempVendorCDR_20' ) start [2025-03-03 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596731', 'tblTempVendorCDR_20' ) end [2025-03-03 06:48:16] Production.INFO: ProcessCDR(1,14596731,1,1,2) [2025-03-03 06:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596731', 'tblTempUsageDetail_20' ) start [2025-03-03 06:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596731', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:48:24] Production.INFO: ==20310== Releasing lock... [2025-03-03 06:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:49:01] Production.INFO: ==20377== Lock acquired, processing the job... [2025-03-03 11:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:49:01] Production.INFO: neon service started [2025-03-03 11:49:01] Production.INFO: neon service started [2025-03-03 11:49:01] Production.INFO: ==20377== Releasing lock... [2025-03-03 11:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:49:01] Production.INFO: ==20381== Lock acquired, processing the job... [2025-03-03 11:49:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:49:01] Production.INFO: ==20381== Releasing lock... [2025-03-03 11:49:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:49:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:49:02] Production.INFO: ==20379== Lock acquired, processing the job... [2025-03-03 06:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:49:02] Production.INFO: ==20379== Releasing lock... [2025-03-03 06:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:49:03] Production.INFO: ==20383== Lock acquired, processing the job... [2025-03-03 06:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:49:03] Production.INFO: ==20388== Lock acquired, processing the job... [2025-03-03 06:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:49:03] Production.INFO: ==20392== Lock acquired, processing the job... [2025-03-03 06:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:49:03] Production.INFO: ==20386== Lock acquired, processing the job... [2025-03-03 06:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:49:03] Production.INFO: ==20390== Lock acquired, processing the job... [2025-03-03 06:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:49:03] Production.INFO: ==20394== Lock acquired, processing the job... [2025-03-03 06:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:49:03] Production.INFO: Account Balance Start. [2025-03-03 06:49:03] Production.INFO: CreateAllLog Start [2025-03-03 06:49:03] Production.INFO: 117 [2025-03-03 06:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:49:03] Production.INFO: count ==13 [2025-03-03 06:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:49:03] Production.INFO: count ==21 [2025-03-03 06:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596734') start [2025-03-03 06:49:03] Production.ERROR: done [2025-03-03 06:49:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596734') end [2025-03-03 06:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:49:04] Production.INFO: 1 [2025-03-03 06:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: ==20394== Releasing lock... [2025-03-03 06:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:49:04] Production.ERROR: done [2025-03-03 06:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:49:04] Production.INFO: ==20386== Releasing lock... [2025-03-03 06:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:49:04] Production.INFO: Total Charge 0 [2025-03-03 06:49:04] Production.INFO: CreateAllLog End [2025-03-03 06:49:05] Production.INFO: Account Balance End. [2025-03-03 06:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:49:05] Production.INFO: ==20390== Releasing lock... [2025-03-03 06:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:49:11] Production.ERROR: CronJobId end10 [2025-03-03 06:49:11] Production.INFO: ==20388== Releasing lock... [2025-03-03 06:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:49:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:49:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:49:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:49:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:49:14] Production.INFO: call_cost start [2025-03-03 06:49:14] Production.INFO: call_cost end [2025-03-03 06:49:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:49:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:49:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:49:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:49:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:49:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:49:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:49:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:49:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:49:14] Production.INFO: ==20383== Releasing lock... [2025-03-03 06:49:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:49:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:49:16] Production.INFO: count ==409 [2025-03-03 06:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596736', 'tblTempUsageDetail_20' ) start [2025-03-03 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596736', 'tblTempUsageDetail_20' ) end [2025-03-03 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596736', 'tblTempVendorCDR_20' ) start [2025-03-03 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596736', 'tblTempVendorCDR_20' ) end [2025-03-03 06:49:16] Production.INFO: ProcessCDR(1,14596736,1,1,2) [2025-03-03 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596736', 'tblTempUsageDetail_20' ) start [2025-03-03 06:49:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596736', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:49:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:49:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:49:23] Production.INFO: ==20392== Releasing lock... [2025-03-03 06:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:49:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:50:02] Production.INFO: ==20448== Lock acquired, processing the job... [2025-03-03 11:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:50:02] Production.INFO: neon service started [2025-03-03 11:50:02] Production.INFO: neon service started [2025-03-03 11:50:02] Production.INFO: ==20448== Releasing lock... [2025-03-03 11:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:50:02] Production.INFO: ==20453== Lock acquired, processing the job... [2025-03-03 11:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:50:02] Production.INFO: ==20453== Releasing lock... [2025-03-03 11:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:50:02] Production.INFO: ==20451== Lock acquired, processing the job... [2025-03-03 06:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:50:02] Production.INFO: ==20451== Releasing lock... [2025-03-03 06:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:50:04] Production.INFO: ==20457== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:50:04] Production.INFO: ==20461== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:50:04] Production.INFO: ==20465== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:50:04] Production.INFO: ==20469== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:50:04] Production.INFO: ==20455== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 06:50:04] Production.INFO: ==20459== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:50:04] Production.INFO: ==20463== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:50:04] Production.INFO: ==20467== Lock acquired, processing the job... [2025-03-03 06:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20457 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20459 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 7 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20461 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 10 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20463 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20465 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 16 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20467 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 17 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 06:50:04] Production.ERROR: CronJob PID - 20469 [2025-03-03 06:50:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 06:50:04] Production.ERROR: CronJob ID - 19 [2025-03-03 06:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 06:50:00 [2025-03-03 06:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 06:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:50:04] Production.INFO: Account Balance Start. [2025-03-03 06:50:04] Production.INFO: CreateAllLog Start [2025-03-03 06:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:50:04] Production.INFO: 117 [2025-03-03 06:50:04] Production.INFO: count ==13 [2025-03-03 06:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 06:50:04] Production.INFO: ==20455== Releasing lock... [2025-03-03 06:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 06:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 06:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:04] Production.INFO: count ==21 [2025-03-03 06:50:04] Production.ERROR: done [2025-03-03 06:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596738') start [2025-03-03 06:50:05] Production.INFO: Date 2025-02-09 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-10 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.ERROR: done [2025-03-03 06:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596738') end [2025-03-03 06:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:50:05] Production.INFO: 1 [2025-03-03 06:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:50:05] Production.INFO: Date 2025-02-11 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 06:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596741', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 06:50:05] Production.ERROR: done [2025-03-03 06:50:05] Production.INFO: ==20469== Releasing lock... [2025-03-03 06:50:05] Production.INFO: ==20459== Releasing lock... [2025-03-03 06:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:50:05] Production.INFO: Date 2025-02-12 [2025-03-03 06:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-13 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:50:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:06] Production.INFO: Date 2025-03-01 [2025-03-03 06:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:06] Production.INFO: Date 2025-03-02 [2025-03-03 06:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 06:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 06:50:06] Production.INFO: Total Charge 0 [2025-03-03 06:50:06] Production.INFO: CreateAllLog End [2025-03-03 06:50:06] Production.INFO: Account Balance End. [2025-03-03 06:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 06:50:06] Production.INFO: ==20463== Releasing lock... [2025-03-03 06:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596741', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 06:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 06:50:09] Production.INFO: ProcessCDR(1,14596741,1,1,2) [2025-03-03 06:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596741,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596741,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 06:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 06:50:09] Production.INFO: ==20467== Releasing lock... [2025-03-03 06:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 06:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:50:14] Production.ERROR: CronJobId end10 [2025-03-03 06:50:14] Production.INFO: ==20461== Releasing lock... [2025-03-03 06:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:50:16] Production.INFO: call_cost start [2025-03-03 06:50:16] Production.INFO: call_cost end [2025-03-03 06:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:50:16] Production.INFO: ==20457== Releasing lock... [2025-03-03 06:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:50:17] Production.INFO: count ==409 [2025-03-03 06:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596742', 'tblTempUsageDetail_20' ) start [2025-03-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596742', 'tblTempUsageDetail_20' ) end [2025-03-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596742', 'tblTempVendorCDR_20' ) start [2025-03-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596742', 'tblTempVendorCDR_20' ) end [2025-03-03 06:50:17] Production.INFO: ProcessCDR(1,14596742,1,1,2) [2025-03-03 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596742', 'tblTempUsageDetail_20' ) start [2025-03-03 06:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596742', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:50:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:50:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:50:25] Production.INFO: ==20465== Releasing lock... [2025-03-03 06:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:50:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:51:01] Production.INFO: ==20534== Lock acquired, processing the job... [2025-03-03 11:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:51:01] Production.INFO: neon service started [2025-03-03 11:51:01] Production.INFO: neon service started [2025-03-03 11:51:01] Production.INFO: ==20534== Releasing lock... [2025-03-03 11:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:51:01] Production.INFO: ==20538== Lock acquired, processing the job... [2025-03-03 11:51:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:51:01] Production.INFO: ==20538== Releasing lock... [2025-03-03 11:51:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:51:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:51:01] Production.INFO: ==20536== Lock acquired, processing the job... [2025-03-03 06:51:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:51:02] Production.INFO: ==20536== Releasing lock... [2025-03-03 06:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:51:03] Production.INFO: ==20540== Lock acquired, processing the job... [2025-03-03 06:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:51:03] Production.INFO: ==20542== Lock acquired, processing the job... [2025-03-03 06:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:51:03] Production.INFO: ==20544== Lock acquired, processing the job... [2025-03-03 06:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:51:03] Production.INFO: ==20546== Lock acquired, processing the job... [2025-03-03 06:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:51:03] Production.INFO: ==20548== Lock acquired, processing the job... [2025-03-03 06:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:51:03] Production.INFO: ==20542== Releasing lock... [2025-03-03 06:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:51:03] Production.INFO: ==20550== Lock acquired, processing the job... [2025-03-03 06:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:51:03] Production.INFO: Account Balance Start. [2025-03-03 06:51:03] Production.INFO: CreateAllLog Start [2025-03-03 06:51:03] Production.INFO: 117 [2025-03-03 06:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 06:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 06:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 06:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:51:03] Production.INFO: Date 2025-02-12 [2025-03-03 06:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:03] Production.INFO: count ==13 [2025-03-03 06:51:03] Production.ERROR: done [2025-03-03 06:51:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:51:04] Production.INFO: count ==21 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596746') start [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.ERROR: done [2025-03-03 06:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596746') end [2025-03-03 06:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:51:04] Production.INFO: 1 [2025-03-03 06:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:51:04] Production.INFO: ==20550== Releasing lock... [2025-03-03 06:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-03-02 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Date 2025-03-03 [2025-03-03 06:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:51:04] Production.INFO: Total Charge 0 [2025-03-03 06:51:04] Production.INFO: CreateAllLog End [2025-03-03 06:51:04] Production.INFO: Account Balance End. [2025-03-03 06:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:51:05] Production.INFO: ==20546== Releasing lock... [2025-03-03 06:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:51:10] Production.ERROR: CronJobId end10 [2025-03-03 06:51:10] Production.INFO: ==20544== Releasing lock... [2025-03-03 06:51:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:51:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:51:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:51:12] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:51:12] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:51:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:51:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:51:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:51:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:51:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:51:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:51:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:51:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:51:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:51:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:51:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:51:13] Production.INFO: call_cost start [2025-03-03 06:51:13] Production.INFO: call_cost end [2025-03-03 06:51:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:51:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:51:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:51:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:51:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:51:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:51:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:51:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:51:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:51:13] Production.INFO: ==20540== Releasing lock... [2025-03-03 06:51:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:51:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:51:16] Production.INFO: count ==409 [2025-03-03 06:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596747', 'tblTempUsageDetail_20' ) start [2025-03-03 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596747', 'tblTempUsageDetail_20' ) end [2025-03-03 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596747', 'tblTempVendorCDR_20' ) start [2025-03-03 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596747', 'tblTempVendorCDR_20' ) end [2025-03-03 06:51:16] Production.INFO: ProcessCDR(1,14596747,1,1,2) [2025-03-03 06:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596747', 'tblTempUsageDetail_20' ) start [2025-03-03 06:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596747', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:51:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:51:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:51:23] Production.INFO: ==20548== Releasing lock... [2025-03-03 06:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:51:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:52:01] Production.INFO: ==20607== Lock acquired, processing the job... [2025-03-03 11:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:52:01] Production.INFO: neon service started [2025-03-03 11:52:01] Production.INFO: neon service started [2025-03-03 11:52:01] Production.INFO: ==20607== Releasing lock... [2025-03-03 11:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:52:02] Production.INFO: ==20611== Lock acquired, processing the job... [2025-03-03 11:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:52:02] Production.INFO: ==20611== Releasing lock... [2025-03-03 11:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:52:02] Production.INFO: ==20609== Lock acquired, processing the job... [2025-03-03 06:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:52:02] Production.INFO: ==20609== Releasing lock... [2025-03-03 06:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:52:03] Production.INFO: ==20615== Lock acquired, processing the job... [2025-03-03 06:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:52:03] Production.INFO: ==20623== Lock acquired, processing the job... [2025-03-03 06:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:52:03] Production.INFO: ==20613== Lock acquired, processing the job... [2025-03-03 06:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:52:03] Production.INFO: count ==13 [2025-03-03 06:52:03] Production.INFO: ==20617== Lock acquired, processing the job... [2025-03-03 06:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:52:03] Production.INFO: ==20619== Lock acquired, processing the job... [2025-03-03 06:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:52:03] Production.INFO: count ==21 [2025-03-03 06:52:03] Production.INFO: ==20621== Lock acquired, processing the job... [2025-03-03 06:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596749') start [2025-03-03 06:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:52:04] Production.INFO: ==20615== Releasing lock... [2025-03-03 06:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:52:04] Production.INFO: Account Balance Start. [2025-03-03 06:52:04] Production.INFO: CreateAllLog Start [2025-03-03 06:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:52:04] Production.INFO: 117 [2025-03-03 06:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596749') end [2025-03-03 06:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:52:04] Production.INFO: 1 [2025-03-03 06:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: ==20623== Releasing lock... [2025-03-03 06:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.ERROR: done [2025-03-03 06:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.ERROR: done [2025-03-03 06:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:52:05] Production.INFO: Total Charge 0 [2025-03-03 06:52:05] Production.INFO: CreateAllLog End [2025-03-03 06:52:05] Production.INFO: Account Balance End. [2025-03-03 06:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:52:05] Production.INFO: ==20619== Releasing lock... [2025-03-03 06:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:52:11] Production.ERROR: CronJobId end10 [2025-03-03 06:52:11] Production.INFO: ==20617== Releasing lock... [2025-03-03 06:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:52:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:52:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:52:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:52:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:52:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:52:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:52:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:52:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:52:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:52:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:52:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:52:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:52:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:52:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:52:14] Production.INFO: call_cost start [2025-03-03 06:52:14] Production.INFO: call_cost end [2025-03-03 06:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:52:14] Production.INFO: ==20613== Releasing lock... [2025-03-03 06:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:52:16] Production.INFO: count ==409 [2025-03-03 06:52:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596752', 'tblTempUsageDetail_20' ) start [2025-03-03 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596752', 'tblTempUsageDetail_20' ) end [2025-03-03 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596752', 'tblTempVendorCDR_20' ) start [2025-03-03 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596752', 'tblTempVendorCDR_20' ) end [2025-03-03 06:52:16] Production.INFO: ProcessCDR(1,14596752,1,1,2) [2025-03-03 06:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596752', 'tblTempUsageDetail_20' ) start [2025-03-03 06:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596752', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:52:24] Production.INFO: ==20621== Releasing lock... [2025-03-03 06:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:53:02] Production.INFO: ==20684== Lock acquired, processing the job... [2025-03-03 11:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:53:02] Production.INFO: neon service started [2025-03-03 11:53:02] Production.INFO: neon service started [2025-03-03 11:53:02] Production.INFO: ==20684== Releasing lock... [2025-03-03 11:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:53:02] Production.INFO: ==20688== Lock acquired, processing the job... [2025-03-03 11:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:53:02] Production.INFO: ==20688== Releasing lock... [2025-03-03 11:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:53:02] Production.INFO: ==20686== Lock acquired, processing the job... [2025-03-03 06:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:53:03] Production.INFO: ==20686== Releasing lock... [2025-03-03 06:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:53:03] Production.INFO: ==20690== Lock acquired, processing the job... [2025-03-03 06:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:53:03] Production.INFO: ==20692== Lock acquired, processing the job... [2025-03-03 06:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:53:04] Production.INFO: ==20699== Lock acquired, processing the job... [2025-03-03 06:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:53:04] Production.INFO: ==20694== Lock acquired, processing the job... [2025-03-03 06:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:53:04] Production.INFO: ==20697== Lock acquired, processing the job... [2025-03-03 06:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:53:04] Production.INFO: ==20701== Lock acquired, processing the job... [2025-03-03 06:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:53:04] Production.INFO: Account Balance Start. [2025-03-03 06:53:04] Production.INFO: CreateAllLog Start [2025-03-03 06:53:04] Production.INFO: 117 [2025-03-03 06:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:04] Production.INFO: count ==13 [2025-03-03 06:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:53:04] Production.INFO: count ==21 [2025-03-03 06:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596756') start [2025-03-03 06:53:04] Production.INFO: ==20692== Releasing lock... [2025-03-03 06:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596756') end [2025-03-03 06:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:53:04] Production.INFO: 1 [2025-03-03 06:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:53:04] Production.INFO: ==20701== Releasing lock... [2025-03-03 06:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:53:04] Production.ERROR: done [2025-03-03 06:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.ERROR: done [2025-03-03 06:53:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:53:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:53:05] Production.INFO: Total Charge 0 [2025-03-03 06:53:05] Production.INFO: CreateAllLog End [2025-03-03 06:53:05] Production.INFO: Account Balance End. [2025-03-03 06:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:53:05] Production.INFO: ==20697== Releasing lock... [2025-03-03 06:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:53:12] Production.ERROR: CronJobId end10 [2025-03-03 06:53:12] Production.INFO: ==20694== Releasing lock... [2025-03-03 06:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:53:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:53:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:53:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:53:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:53:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:53:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:53:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:53:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:53:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:53:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:53:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:53:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:53:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:53:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:53:14] Production.INFO: call_cost start [2025-03-03 06:53:14] Production.INFO: call_cost end [2025-03-03 06:53:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:53:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:53:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:53:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:53:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:53:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:53:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:53:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:53:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:53:14] Production.INFO: ==20690== Releasing lock... [2025-03-03 06:53:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:53:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:53:16] Production.INFO: count ==409 [2025-03-03 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596757', 'tblTempUsageDetail_20' ) start [2025-03-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596757', 'tblTempUsageDetail_20' ) end [2025-03-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596757', 'tblTempVendorCDR_20' ) start [2025-03-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596757', 'tblTempVendorCDR_20' ) end [2025-03-03 06:53:17] Production.INFO: ProcessCDR(1,14596757,1,1,2) [2025-03-03 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596757', 'tblTempUsageDetail_20' ) start [2025-03-03 06:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596757', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:53:24] Production.INFO: ==20699== Releasing lock... [2025-03-03 06:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:54:01] Production.INFO: ==20758== Lock acquired, processing the job... [2025-03-03 11:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:54:01] Production.INFO: neon service started [2025-03-03 11:54:01] Production.INFO: neon service started [2025-03-03 11:54:01] Production.INFO: ==20758== Releasing lock... [2025-03-03 11:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:54:02] Production.INFO: ==20763== Lock acquired, processing the job... [2025-03-03 11:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:54:02] Production.INFO: ==20763== Releasing lock... [2025-03-03 11:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:54:02] Production.INFO: ==20761== Lock acquired, processing the job... [2025-03-03 06:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:54:02] Production.INFO: ==20761== Releasing lock... [2025-03-03 06:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:54:03] Production.INFO: ==20767== Lock acquired, processing the job... [2025-03-03 06:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:54:03] Production.INFO: ==20765== Lock acquired, processing the job... [2025-03-03 06:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:54:03] Production.INFO: ==20775== Lock acquired, processing the job... [2025-03-03 06:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:54:03] Production.INFO: ==20771== Lock acquired, processing the job... [2025-03-03 06:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:54:03] Production.INFO: ==20769== Lock acquired, processing the job... [2025-03-03 06:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:54:03] Production.INFO: ==20773== Lock acquired, processing the job... [2025-03-03 06:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:54:03] Production.INFO: Account Balance Start. [2025-03-03 06:54:03] Production.INFO: CreateAllLog Start [2025-03-03 06:54:03] Production.INFO: 117 [2025-03-03 06:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 06:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:03] Production.INFO: count ==13 [2025-03-03 06:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:54:04] Production.INFO: count ==21 [2025-03-03 06:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596761') start [2025-03-03 06:54:04] Production.INFO: ==20767== Releasing lock... [2025-03-03 06:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596761') end [2025-03-03 06:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:54:04] Production.INFO: 1 [2025-03-03 06:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: ==20775== Releasing lock... [2025-03-03 06:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.ERROR: done [2025-03-03 06:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.ERROR: done [2025-03-03 06:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:04] Production.INFO: Date 2025-03-01 [2025-03-03 06:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:54:05] Production.INFO: Total Charge 0 [2025-03-03 06:54:05] Production.INFO: CreateAllLog End [2025-03-03 06:54:05] Production.INFO: Account Balance End. [2025-03-03 06:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:54:05] Production.INFO: ==20771== Releasing lock... [2025-03-03 06:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:54:12] Production.ERROR: CronJobId end10 [2025-03-03 06:54:12] Production.INFO: ==20769== Releasing lock... [2025-03-03 06:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:54:14] Production.INFO: call_cost start [2025-03-03 06:54:14] Production.INFO: call_cost end [2025-03-03 06:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:54:14] Production.INFO: ==20765== Releasing lock... [2025-03-03 06:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:54:16] Production.INFO: count ==409 [2025-03-03 06:54:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596762', 'tblTempUsageDetail_20' ) start [2025-03-03 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596762', 'tblTempUsageDetail_20' ) end [2025-03-03 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596762', 'tblTempVendorCDR_20' ) start [2025-03-03 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596762', 'tblTempVendorCDR_20' ) end [2025-03-03 06:54:16] Production.INFO: ProcessCDR(1,14596762,1,1,2) [2025-03-03 06:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596762', 'tblTempUsageDetail_20' ) start [2025-03-03 06:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596762', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:54:24] Production.INFO: ==20773== Releasing lock... [2025-03-03 06:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:55:02] Production.INFO: ==20832== Lock acquired, processing the job... [2025-03-03 11:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:55:02] Production.INFO: neon service started [2025-03-03 11:55:02] Production.INFO: neon service started [2025-03-03 11:55:02] Production.INFO: ==20832== Releasing lock... [2025-03-03 11:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:55:03] Production.INFO: ==20835== Lock acquired, processing the job... [2025-03-03 06:55:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:55:03] Production.INFO: ==20837== Lock acquired, processing the job... [2025-03-03 11:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:55:03] Production.INFO: ==20837== Releasing lock... [2025-03-03 11:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:55:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:55:03] Production.INFO: ==20835== Releasing lock... [2025-03-03 06:55:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:55:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:55:04] Production.INFO: ==20846== Lock acquired, processing the job... [2025-03-03 06:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:55:04] Production.INFO: ==20841== Lock acquired, processing the job... [2025-03-03 06:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:55:04] Production.INFO: ==20839== Lock acquired, processing the job... [2025-03-03 06:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:55:04] Production.INFO: ==20850== Lock acquired, processing the job... [2025-03-03 06:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:55:04] Production.INFO: Account Balance Start. [2025-03-03 06:55:04] Production.INFO: CreateAllLog Start [2025-03-03 06:55:04] Production.INFO: ==20844== Lock acquired, processing the job... [2025-03-03 06:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:55:04] Production.INFO: 117 [2025-03-03 06:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: count ==13 [2025-03-03 06:55:04] Production.INFO: ==20848== Lock acquired, processing the job... [2025-03-03 06:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:55:04] Production.INFO: count ==21 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596765') start [2025-03-03 06:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596765') end [2025-03-03 06:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:55:04] Production.INFO: 1 [2025-03-03 06:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:04] Production.INFO: ==20850== Releasing lock... [2025-03-03 06:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:55:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: ==20841== Releasing lock... [2025-03-03 06:55:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:55:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:55:05] Production.ERROR: done [2025-03-03 06:55:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.ERROR: done [2025-03-03 06:55:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:55:05] Production.INFO: Total Charge 0 [2025-03-03 06:55:05] Production.INFO: CreateAllLog End [2025-03-03 06:55:05] Production.INFO: Account Balance End. [2025-03-03 06:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:55:05] Production.INFO: ==20846== Releasing lock... [2025-03-03 06:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:55:12] Production.ERROR: CronJobId end10 [2025-03-03 06:55:12] Production.INFO: ==20844== Releasing lock... [2025-03-03 06:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:55:15] Production.INFO: call_cost start [2025-03-03 06:55:15] Production.INFO: call_cost end [2025-03-03 06:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:55:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:55:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:55:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:55:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:55:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:55:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:55:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:55:15] Production.INFO: ==20839== Releasing lock... [2025-03-03 06:55:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:55:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:55:17] Production.INFO: count ==409 [2025-03-03 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596767', 'tblTempUsageDetail_20' ) start [2025-03-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596767', 'tblTempUsageDetail_20' ) end [2025-03-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596767', 'tblTempVendorCDR_20' ) start [2025-03-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596767', 'tblTempVendorCDR_20' ) end [2025-03-03 06:55:17] Production.INFO: ProcessCDR(1,14596767,1,1,2) [2025-03-03 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596767', 'tblTempUsageDetail_20' ) start [2025-03-03 06:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596767', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:55:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:55:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:55:25] Production.INFO: ==20848== Releasing lock... [2025-03-03 06:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:55:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:56:01] Production.INFO: ==20908== Lock acquired, processing the job... [2025-03-03 11:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:56:01] Production.INFO: neon service started [2025-03-03 11:56:01] Production.INFO: neon service started [2025-03-03 11:56:01] Production.INFO: ==20908== Releasing lock... [2025-03-03 11:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:56:02] Production.INFO: ==20910== Lock acquired, processing the job... [2025-03-03 06:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:56:02] Production.INFO: ==20910== Releasing lock... [2025-03-03 06:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:56:02] Production.INFO: ==20912== Lock acquired, processing the job... [2025-03-03 11:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:56:02] Production.INFO: ==20912== Releasing lock... [2025-03-03 11:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 06:56:03] Production.INFO: ==20917== Lock acquired, processing the job... [2025-03-03 06:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:56:03] Production.INFO: ==20923== Lock acquired, processing the job... [2025-03-03 06:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:56:03] Production.INFO: ==20915== Lock acquired, processing the job... [2025-03-03 06:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:56:03] Production.INFO: ==20919== Lock acquired, processing the job... [2025-03-03 06:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:56:03] Production.INFO: ==20921== Lock acquired, processing the job... [2025-03-03 06:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:56:03] Production.INFO: ==20925== Lock acquired, processing the job... [2025-03-03 06:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:56:04] Production.INFO: ==20917== Releasing lock... [2025-03-03 06:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:56:04] Production.INFO: Account Balance Start. [2025-03-03 06:56:04] Production.INFO: CreateAllLog Start [2025-03-03 06:56:04] Production.INFO: 117 [2025-03-03 06:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:56:04] Production.ERROR: done [2025-03-03 06:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:56:04] Production.INFO: count ==13 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:56:04] Production.INFO: count ==21 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596771') start [2025-03-03 06:56:04] Production.ERROR: done [2025-03-03 06:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596771') end [2025-03-03 06:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:56:04] Production.INFO: 1 [2025-03-03 06:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:56:04] Production.INFO: ==20925== Releasing lock... [2025-03-03 06:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:56:05] Production.INFO: Total Charge 0 [2025-03-03 06:56:05] Production.INFO: CreateAllLog End [2025-03-03 06:56:05] Production.INFO: Account Balance End. [2025-03-03 06:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:56:05] Production.INFO: ==20921== Releasing lock... [2025-03-03 06:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:56:12] Production.ERROR: CronJobId end10 [2025-03-03 06:56:12] Production.INFO: ==20919== Releasing lock... [2025-03-03 06:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:56:14] Production.INFO: call_cost start [2025-03-03 06:56:14] Production.INFO: call_cost end [2025-03-03 06:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:56:14] Production.INFO: ==20915== Releasing lock... [2025-03-03 06:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:56:16] Production.INFO: count ==409 [2025-03-03 06:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596772', 'tblTempUsageDetail_20' ) start [2025-03-03 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596772', 'tblTempUsageDetail_20' ) end [2025-03-03 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596772', 'tblTempVendorCDR_20' ) start [2025-03-03 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596772', 'tblTempVendorCDR_20' ) end [2025-03-03 06:56:16] Production.INFO: ProcessCDR(1,14596772,1,1,2) [2025-03-03 06:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596772', 'tblTempUsageDetail_20' ) start [2025-03-03 06:56:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596772', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:56:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:56:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:56:24] Production.INFO: ==20923== Releasing lock... [2025-03-03 06:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:56:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:57:02] Production.INFO: ==20984== Lock acquired, processing the job... [2025-03-03 11:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:57:02] Production.INFO: neon service started [2025-03-03 11:57:02] Production.INFO: neon service started [2025-03-03 11:57:02] Production.INFO: ==20984== Releasing lock... [2025-03-03 11:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:57:02] Production.INFO: ==20986== Lock acquired, processing the job... [2025-03-03 06:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:57:02] Production.INFO: ==20988== Lock acquired, processing the job... [2025-03-03 11:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:57:03] Production.INFO: ==20988== Releasing lock... [2025-03-03 11:57:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:57:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:57:03] Production.INFO: ==20986== Releasing lock... [2025-03-03 06:57:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:57:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 06:57:04] Production.INFO: ==20993== Lock acquired, processing the job... [2025-03-03 06:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:57:04] Production.INFO: ==21001== Lock acquired, processing the job... [2025-03-03 06:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:57:04] Production.INFO: ==20991== Lock acquired, processing the job... [2025-03-03 06:57:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:57:04] Production.INFO: count ==13 [2025-03-03 06:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:57:04] Production.INFO: count ==21 [2025-03-03 06:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:57:04] Production.INFO: ==20995== Lock acquired, processing the job... [2025-03-03 06:57:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596774') start [2025-03-03 06:57:04] Production.INFO: ==20993== Releasing lock... [2025-03-03 06:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:57:04] Production.INFO: ==20997== Lock acquired, processing the job... [2025-03-03 06:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596774') end [2025-03-03 06:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:57:04] Production.INFO: 1 [2025-03-03 06:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:57:04] Production.INFO: ==21001== Releasing lock... [2025-03-03 06:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:57:04] Production.INFO: ==20999== Lock acquired, processing the job... [2025-03-03 06:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:57:04] Production.INFO: Account Balance Start. [2025-03-03 06:57:04] Production.INFO: CreateAllLog Start [2025-03-03 06:57:04] Production.INFO: 117 [2025-03-03 06:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-10 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.ERROR: done [2025-03-03 06:57:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-11 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.ERROR: done [2025-03-03 06:57:05] Production.INFO: Date 2025-02-12 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-13 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:57:05] Production.INFO: Date 2025-02-14 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-15 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-16 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-17 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-18 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:57:05] Production.INFO: Total Charge 0 [2025-03-03 06:57:05] Production.INFO: CreateAllLog End [2025-03-03 06:57:06] Production.INFO: Account Balance End. [2025-03-03 06:57:06] Production.ERROR: CronJobId end 12 [2025-03-03 06:57:06] Production.INFO: ==20997== Releasing lock... [2025-03-03 06:57:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:57:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:57:12] Production.ERROR: CronJobId end10 [2025-03-03 06:57:12] Production.INFO: ==20995== Releasing lock... [2025-03-03 06:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:57:15] Production.INFO: call_cost start [2025-03-03 06:57:15] Production.INFO: call_cost end [2025-03-03 06:57:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:57:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:57:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:57:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:57:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:57:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:57:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:57:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:57:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:57:15] Production.INFO: ==20991== Releasing lock... [2025-03-03 06:57:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:57:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:57:17] Production.INFO: count ==409 [2025-03-03 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596777', 'tblTempUsageDetail_20' ) start [2025-03-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596777', 'tblTempUsageDetail_20' ) end [2025-03-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596777', 'tblTempVendorCDR_20' ) start [2025-03-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596777', 'tblTempVendorCDR_20' ) end [2025-03-03 06:57:17] Production.INFO: ProcessCDR(1,14596777,1,1,2) [2025-03-03 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596777', 'tblTempUsageDetail_20' ) start [2025-03-03 06:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596777', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:57:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:57:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:57:25] Production.INFO: ==20999== Releasing lock... [2025-03-03 06:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:58:01] Production.INFO: ==21058== Lock acquired, processing the job... [2025-03-03 11:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:58:01] Production.INFO: neon service started [2025-03-03 11:58:01] Production.INFO: neon service started [2025-03-03 11:58:01] Production.INFO: ==21058== Releasing lock... [2025-03-03 11:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:58:02] Production.INFO: ==21060== Lock acquired, processing the job... [2025-03-03 06:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:58:02] Production.INFO: ==21060== Releasing lock... [2025-03-03 06:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:58:02] Production.INFO: ==21062== Lock acquired, processing the job... [2025-03-03 11:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:58:02] Production.INFO: ==21062== Releasing lock... [2025-03-03 11:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:58:03] Production.INFO: ==21074== Lock acquired, processing the job... [2025-03-03 06:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:58:03] Production.INFO: count ==13 [2025-03-03 06:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:58:03] Production.INFO: count ==21 [2025-03-03 06:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596778') start [2025-03-03 06:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596778') end [2025-03-03 06:58:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:58:03] Production.INFO: 1 [2025-03-03 06:58:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:58:03] Production.INFO: ==21074== Releasing lock... [2025-03-03 06:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:58:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:58:03] Production.INFO: ==21064== Lock acquired, processing the job... [2025-03-03 06:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:58:03] Production.INFO: ==21066== Lock acquired, processing the job... [2025-03-03 06:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:58:03] Production.INFO: ==21068== Lock acquired, processing the job... [2025-03-03 06:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:58:04] Production.INFO: ==21072== Lock acquired, processing the job... [2025-03-03 06:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:58:04] Production.INFO: ==21070== Lock acquired, processing the job... [2025-03-03 06:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:58:04] Production.INFO: Account Balance Start. [2025-03-03 06:58:04] Production.INFO: CreateAllLog Start [2025-03-03 06:58:04] Production.INFO: 117 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:58:04] Production.INFO: ==21066== Releasing lock... [2025-03-03 06:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.ERROR: done [2025-03-03 06:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.ERROR: done [2025-03-03 06:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 06:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:58:05] Production.INFO: Total Charge 0 [2025-03-03 06:58:05] Production.INFO: CreateAllLog End [2025-03-03 06:58:05] Production.INFO: Account Balance End. [2025-03-03 06:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:58:05] Production.INFO: ==21070== Releasing lock... [2025-03-03 06:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:58:11] Production.ERROR: CronJobId end10 [2025-03-03 06:58:11] Production.INFO: ==21068== Releasing lock... [2025-03-03 06:58:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:58:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:58:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:58:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:58:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:58:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:58:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:58:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:58:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:58:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:58:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:58:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:58:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:58:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:58:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:58:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:58:13] Production.INFO: call_cost start [2025-03-03 06:58:13] Production.INFO: call_cost end [2025-03-03 06:58:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:58:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:58:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:58:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:58:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:58:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:58:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:58:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:58:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:58:13] Production.INFO: ==21064== Releasing lock... [2025-03-03 06:58:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:58:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:58:16] Production.INFO: count ==409 [2025-03-03 06:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596782', 'tblTempUsageDetail_20' ) start [2025-03-03 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596782', 'tblTempUsageDetail_20' ) end [2025-03-03 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596782', 'tblTempVendorCDR_20' ) start [2025-03-03 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596782', 'tblTempVendorCDR_20' ) end [2025-03-03 06:58:16] Production.INFO: ProcessCDR(1,14596782,1,1,2) [2025-03-03 06:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596782', 'tblTempUsageDetail_20' ) start [2025-03-03 06:58:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596782', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:58:24] Production.INFO: ==21072== Releasing lock... [2025-03-03 06:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 11:59:02] Production.INFO: ==21131== Lock acquired, processing the job... [2025-03-03 11:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 11:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 11:59:02] Production.INFO: neon service started [2025-03-03 11:59:02] Production.INFO: neon service started [2025-03-03 11:59:02] Production.INFO: ==21131== Releasing lock... [2025-03-03 11:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 11:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 06:59:02] Production.INFO: ==21133== Lock acquired, processing the job... [2025-03-03 06:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 06:59:02] Production.INFO: ==21133== Releasing lock... [2025-03-03 06:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 06:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:59:03] Production.INFO: ==21135== Lock acquired, processing the job... [2025-03-03 11:59:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:59:03] Production.INFO: ==21135== Releasing lock... [2025-03-03 11:59:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 11:59:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 06:59:03] Production.INFO: ==21138== Lock acquired, processing the job... [2025-03-03 06:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 06:59:03] Production.INFO: ==21147== Lock acquired, processing the job... [2025-03-03 06:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 06:59:03] Production.INFO: ==21140== Lock acquired, processing the job... [2025-03-03 06:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 06:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 06:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 06:59:03] Production.INFO: ==21142== Lock acquired, processing the job... [2025-03-03 06:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 06:59:03] Production.INFO: ==21144== Lock acquired, processing the job... [2025-03-03 06:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 06:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 06:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 06:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 06:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 06:59:04] Production.INFO: ==21149== Lock acquired, processing the job... [2025-03-03 06:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 06:59:04] Production.INFO: ==21140== Releasing lock... [2025-03-03 06:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 06:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 06:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:59:04] Production.INFO: count ==13 [2025-03-03 06:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 06:59:04] Production.INFO: count ==21 [2025-03-03 06:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596786') start [2025-03-03 06:59:04] Production.INFO: Account Balance Start. [2025-03-03 06:59:04] Production.INFO: CreateAllLog Start [2025-03-03 06:59:04] Production.INFO: 117 [2025-03-03 06:59:04] Production.ERROR: done [2025-03-03 06:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596786') end [2025-03-03 06:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 06:59:04] Production.INFO: 1 [2025-03-03 06:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 06:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: ==21149== Releasing lock... [2025-03-03 06:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 06:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 06:59:04] Production.ERROR: done [2025-03-03 06:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 06:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 06:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-19 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-20 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-21 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-22 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 06:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 06:59:05] Production.INFO: Total Charge 0 [2025-03-03 06:59:05] Production.INFO: CreateAllLog End [2025-03-03 06:59:05] Production.INFO: Account Balance End. [2025-03-03 06:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 06:59:05] Production.INFO: ==21144== Releasing lock... [2025-03-03 06:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 06:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 06:59:11] Production.ERROR: CronJobId end10 [2025-03-03 06:59:11] Production.INFO: ==21142== Releasing lock... [2025-03-03 06:59:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 06:59:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 06:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 06:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 06:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 06:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 06:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 06:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 06:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 06:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 06:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 06:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 06:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 06:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 06:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 06:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 06:59:14] Production.INFO: call_cost start [2025-03-03 06:59:14] Production.INFO: call_cost end [2025-03-03 06:59:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 06:59:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 06:59:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 06:59:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 06:59:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 06:59:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 06:59:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 06:59:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 06:59:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 06:59:14] Production.INFO: ==21138== Releasing lock... [2025-03-03 06:59:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 06:59:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 06:59:16] Production.INFO: count ==409 [2025-03-03 06:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 06:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596787', 'tblTempUsageDetail_20' ) start [2025-03-03 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596787', 'tblTempUsageDetail_20' ) end [2025-03-03 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596787', 'tblTempVendorCDR_20' ) start [2025-03-03 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596787', 'tblTempVendorCDR_20' ) end [2025-03-03 06:59:16] Production.INFO: ProcessCDR(1,14596787,1,1,2) [2025-03-03 06:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596787', 'tblTempUsageDetail_20' ) start [2025-03-03 06:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596787', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 06:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 06:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 06:59:24] Production.INFO: ==21147== Releasing lock... [2025-03-03 06:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 06:59:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:00:01] Production.INFO: ==21212== Lock acquired, processing the job... [2025-03-03 12:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:00:01] Production.INFO: neon service started [2025-03-03 12:00:01] Production.INFO: neon service started [2025-03-03 12:00:01] Production.INFO: ==21212== Releasing lock... [2025-03-03 12:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:00:02] Production.INFO: ==21216== Lock acquired, processing the job... [2025-03-03 12:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:00:02] Production.INFO: ==21216== Releasing lock... [2025-03-03 12:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:00:02] Production.INFO: ==21214== Lock acquired, processing the job... [2025-03-03 07:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:00:02] Production.INFO: ==21214== Releasing lock... [2025-03-03 07:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:00:03] Production.INFO: ==21218== Lock acquired, processing the job... [2025-03-03 07:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 07:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 07:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 07:00:03] Production.INFO: ==21218== Releasing lock... [2025-03-03 07:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 07:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:00:03] Production.INFO: ==21224== Lock acquired, processing the job... [2025-03-03 07:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:00:03] Production.INFO: ==21226== Lock acquired, processing the job... [2025-03-03 07:00:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:00:03] Production.INFO: Account Balance Start. [2025-03-03 07:00:03] Production.INFO: CreateAllLog Start [2025-03-03 07:00:03] Production.INFO: 117 [2025-03-03 07:00:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:00:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:00:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:00:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:00:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:00:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:00:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:00:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:00:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:03] Production.INFO: ==21230== Lock acquired, processing the job... [2025-03-03 07:00:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 07:00:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:00:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:00:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:00:03] Production.INFO: ==21220== Lock acquired, processing the job... [2025-03-03 07:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: ==21222== Lock acquired, processing the job... [2025-03-03 07:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: ==21228== Lock acquired, processing the job... [2025-03-03 07:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: ==21233== Lock acquired, processing the job... [2025-03-03 07:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:00:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: count ==13 [2025-03-03 07:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:00:04] Production.INFO: count ==21 [2025-03-03 07:00:04] Production.ERROR: done [2025-03-03 07:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596791') start [2025-03-03 07:00:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 07:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596792', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 07:00:04] Production.ERROR: done [2025-03-03 07:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596791') end [2025-03-03 07:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:00:04] Production.INFO: 1 [2025-03-03 07:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:00:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:00:04] Production.INFO: ==21222== Releasing lock... [2025-03-03 07:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: ==21233== Releasing lock... [2025-03-03 07:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:00:04] Production.ERROR: done [2025-03-03 07:00:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:00:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:00:05] Production.INFO: Total Charge 0 [2025-03-03 07:00:05] Production.INFO: CreateAllLog End [2025-03-03 07:00:05] Production.INFO: Account Balance End. [2025-03-03 07:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:00:05] Production.INFO: ==21226== Releasing lock... [2025-03-03 07:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:00:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596792', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 07:00:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 07:00:08] Production.INFO: ProcessCDR(1,14596792,1,1,2) [2025-03-03 07:00:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596792,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:00:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596792,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:00:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 07:00:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 07:00:08] Production.INFO: ==21230== Releasing lock... [2025-03-03 07:00:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 07:00:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 07:00:13] Production.ERROR: CronJobId end10 [2025-03-03 07:00:13] Production.INFO: ==21224== Releasing lock... [2025-03-03 07:00:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:00:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:00:16] Production.INFO: call_cost start [2025-03-03 07:00:16] Production.INFO: call_cost end [2025-03-03 07:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:00:16] Production.INFO: ==21220== Releasing lock... [2025-03-03 07:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:00:16] Production.INFO: count ==409 [2025-03-03 07:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596793', 'tblTempUsageDetail_20' ) start [2025-03-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596793', 'tblTempUsageDetail_20' ) end [2025-03-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596793', 'tblTempVendorCDR_20' ) start [2025-03-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596793', 'tblTempVendorCDR_20' ) end [2025-03-03 07:00:17] Production.INFO: ProcessCDR(1,14596793,1,1,2) [2025-03-03 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596793', 'tblTempUsageDetail_20' ) start [2025-03-03 07:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596793', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:00:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:00:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:00:24] Production.INFO: ==21228== Releasing lock... [2025-03-03 07:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:01:02] Production.INFO: ==21298== Lock acquired, processing the job... [2025-03-03 12:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:01:02] Production.INFO: neon service started [2025-03-03 12:01:02] Production.INFO: neon service started [2025-03-03 12:01:02] Production.INFO: ==21298== Releasing lock... [2025-03-03 12:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:01:02] Production.INFO: ==21309== Lock acquired, processing the job... [2025-03-03 07:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:01:02] Production.INFO: ==21309== Releasing lock... [2025-03-03 07:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:01:03] Production.INFO: ==21311== Lock acquired, processing the job... [2025-03-03 12:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:01:03] Production.INFO: ==21311== Releasing lock... [2025-03-03 12:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:01:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:01:03] Production.INFO: ==21318== Lock acquired, processing the job... [2025-03-03 07:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:01:03] Production.INFO: ==21322== Lock acquired, processing the job... [2025-03-03 07:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:01:03] Production.INFO: ==21313== Lock acquired, processing the job... [2025-03-03 07:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:01:04] Production.INFO: ==21315== Lock acquired, processing the job... [2025-03-03 07:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:01:04] Production.INFO: ==21320== Lock acquired, processing the job... [2025-03-03 07:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:01:04] Production.INFO: ==21324== Lock acquired, processing the job... [2025-03-03 07:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:01:04] Production.INFO: Account Balance Start. [2025-03-03 07:01:04] Production.INFO: CreateAllLog Start [2025-03-03 07:01:04] Production.INFO: ==21315== Releasing lock... [2025-03-03 07:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:01:04] Production.INFO: 117 [2025-03-03 07:01:04] Production.ERROR: done [2025-03-03 07:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:01:04] Production.INFO: count ==13 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:01:04] Production.INFO: count ==21 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596797') start [2025-03-03 07:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596797') end [2025-03-03 07:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:01:04] Production.INFO: 1 [2025-03-03 07:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.ERROR: done [2025-03-03 07:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: ==21324== Releasing lock... [2025-03-03 07:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:01:05] Production.INFO: Total Charge 0 [2025-03-03 07:01:05] Production.INFO: CreateAllLog End [2025-03-03 07:01:05] Production.INFO: Account Balance End. [2025-03-03 07:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:01:05] Production.INFO: ==21320== Releasing lock... [2025-03-03 07:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:01:12] Production.ERROR: CronJobId end10 [2025-03-03 07:01:12] Production.INFO: ==21318== Releasing lock... [2025-03-03 07:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:01:15] Production.INFO: call_cost start [2025-03-03 07:01:15] Production.INFO: call_cost end [2025-03-03 07:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:01:15] Production.INFO: ==21313== Releasing lock... [2025-03-03 07:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:01:16] Production.INFO: count ==409 [2025-03-03 07:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596798', 'tblTempUsageDetail_20' ) start [2025-03-03 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596798', 'tblTempUsageDetail_20' ) end [2025-03-03 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596798', 'tblTempVendorCDR_20' ) start [2025-03-03 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596798', 'tblTempVendorCDR_20' ) end [2025-03-03 07:01:17] Production.INFO: ProcessCDR(1,14596798,1,1,2) [2025-03-03 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596798', 'tblTempUsageDetail_20' ) start [2025-03-03 07:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596798', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:01:24] Production.INFO: ==21322== Releasing lock... [2025-03-03 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:02:01] Production.INFO: ==21465== Lock acquired, processing the job... [2025-03-03 12:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:02:01] Production.INFO: neon service started [2025-03-03 12:02:01] Production.INFO: neon service started [2025-03-03 12:02:01] Production.INFO: ==21465== Releasing lock... [2025-03-03 12:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:02:02] Production.INFO: ==21467== Lock acquired, processing the job... [2025-03-03 07:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:02:02] Production.INFO: ==21467== Releasing lock... [2025-03-03 07:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:02:02] Production.INFO: ==21469== Lock acquired, processing the job... [2025-03-03 12:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:02:02] Production.INFO: ==21469== Releasing lock... [2025-03-03 12:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:02:03] Production.INFO: ==21471== Lock acquired, processing the job... [2025-03-03 07:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:02:03] Production.INFO: ==21473== Lock acquired, processing the job... [2025-03-03 07:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:02:03] Production.INFO: ==21482== Lock acquired, processing the job... [2025-03-03 07:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:02:03] Production.INFO: count ==13 [2025-03-03 07:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:02:03] Production.INFO: count ==21 [2025-03-03 07:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596801') start [2025-03-03 07:02:03] Production.INFO: ==21475== Lock acquired, processing the job... [2025-03-03 07:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:02:03] Production.INFO: ==21477== Lock acquired, processing the job... [2025-03-03 07:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596801') end [2025-03-03 07:02:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:02:03] Production.INFO: 1 [2025-03-03 07:02:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:02:03] Production.INFO: ==21480== Lock acquired, processing the job... [2025-03-03 07:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:02:03] Production.INFO: ==21473== Releasing lock... [2025-03-03 07:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:02:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:02:03] Production.INFO: Account Balance Start. [2025-03-03 07:02:03] Production.INFO: CreateAllLog Start [2025-03-03 07:02:03] Production.INFO: 117 [2025-03-03 07:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:02:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:02:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:03] Production.INFO: ==21482== Releasing lock... [2025-03-03 07:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:02:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.ERROR: done [2025-03-03 07:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.ERROR: done [2025-03-03 07:02:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:02:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:02:04] Production.INFO: Total Charge 0 [2025-03-03 07:02:04] Production.INFO: CreateAllLog End [2025-03-03 07:02:04] Production.INFO: Account Balance End. [2025-03-03 07:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:02:05] Production.INFO: ==21477== Releasing lock... [2025-03-03 07:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:02:12] Production.ERROR: CronJobId end10 [2025-03-03 07:02:12] Production.INFO: ==21475== Releasing lock... [2025-03-03 07:02:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:02:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:02:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:02:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:02:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:02:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:02:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:02:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:02:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:02:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:02:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:02:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:02:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:02:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:02:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:02:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:02:14] Production.INFO: call_cost start [2025-03-03 07:02:14] Production.INFO: call_cost end [2025-03-03 07:02:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:02:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:02:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:02:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:02:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:02:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:02:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:02:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:02:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:02:14] Production.INFO: ==21471== Releasing lock... [2025-03-03 07:02:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:02:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:02:16] Production.INFO: count ==409 [2025-03-03 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596803', 'tblTempUsageDetail_20' ) start [2025-03-03 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596803', 'tblTempUsageDetail_20' ) end [2025-03-03 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596803', 'tblTempVendorCDR_20' ) start [2025-03-03 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596803', 'tblTempVendorCDR_20' ) end [2025-03-03 07:02:17] Production.INFO: ProcessCDR(1,14596803,1,1,2) [2025-03-03 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596803', 'tblTempUsageDetail_20' ) start [2025-03-03 07:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596803', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:02:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:02:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:02:25] Production.INFO: ==21480== Releasing lock... [2025-03-03 07:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:02:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:03:02] Production.INFO: ==21542== Lock acquired, processing the job... [2025-03-03 12:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:03:02] Production.INFO: neon service started [2025-03-03 12:03:02] Production.INFO: neon service started [2025-03-03 12:03:02] Production.INFO: ==21542== Releasing lock... [2025-03-03 12:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:03:02] Production.INFO: ==21546== Lock acquired, processing the job... [2025-03-03 12:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:03:02] Production.INFO: ==21546== Releasing lock... [2025-03-03 12:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:03:02] Production.INFO: ==21544== Lock acquired, processing the job... [2025-03-03 07:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:03:02] Production.INFO: ==21544== Releasing lock... [2025-03-03 07:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:03:03] Production.INFO: ==21556== Lock acquired, processing the job... [2025-03-03 07:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:03:03] Production.INFO: ==21548== Lock acquired, processing the job... [2025-03-03 07:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:03:03] Production.INFO: ==21550== Lock acquired, processing the job... [2025-03-03 07:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:03:03] Production.INFO: ==21552== Lock acquired, processing the job... [2025-03-03 07:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:03:03] Production.INFO: ==21554== Lock acquired, processing the job... [2025-03-03 07:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:03:03] Production.INFO: ==21559== Lock acquired, processing the job... [2025-03-03 07:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:03:04] Production.INFO: Account Balance Start. [2025-03-03 07:03:04] Production.INFO: CreateAllLog Start [2025-03-03 07:03:04] Production.INFO: 117 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:03:04] Production.INFO: count ==13 [2025-03-03 07:03:04] Production.ERROR: done [2025-03-03 07:03:04] Production.INFO: ==21550== Releasing lock... [2025-03-03 07:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:03:04] Production.INFO: count ==21 [2025-03-03 07:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596807') start [2025-03-03 07:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596807') end [2025-03-03 07:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:03:04] Production.INFO: 1 [2025-03-03 07:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: ==21559== Releasing lock... [2025-03-03 07:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:03:04] Production.ERROR: done [2025-03-03 07:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:03:05] Production.INFO: Total Charge 0 [2025-03-03 07:03:05] Production.INFO: CreateAllLog End [2025-03-03 07:03:05] Production.INFO: Account Balance End. [2025-03-03 07:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:03:05] Production.INFO: ==21554== Releasing lock... [2025-03-03 07:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:03:12] Production.ERROR: CronJobId end10 [2025-03-03 07:03:12] Production.INFO: ==21552== Releasing lock... [2025-03-03 07:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:03:15] Production.INFO: call_cost start [2025-03-03 07:03:15] Production.INFO: call_cost end [2025-03-03 07:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:03:15] Production.INFO: ==21548== Releasing lock... [2025-03-03 07:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:03:16] Production.INFO: count ==409 [2025-03-03 07:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596808', 'tblTempUsageDetail_20' ) start [2025-03-03 07:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596808', 'tblTempUsageDetail_20' ) end [2025-03-03 07:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596808', 'tblTempVendorCDR_20' ) start [2025-03-03 07:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596808', 'tblTempVendorCDR_20' ) end [2025-03-03 07:03:16] Production.INFO: ProcessCDR(1,14596808,1,1,2) [2025-03-03 07:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596808', 'tblTempUsageDetail_20' ) start [2025-03-03 07:03:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596808', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:03:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:03:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:03:24] Production.INFO: ==21556== Releasing lock... [2025-03-03 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:03:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:04:01] Production.INFO: ==21658== Lock acquired, processing the job... [2025-03-03 12:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:04:01] Production.INFO: neon service started [2025-03-03 12:04:01] Production.INFO: neon service started [2025-03-03 12:04:01] Production.INFO: ==21658== Releasing lock... [2025-03-03 12:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:04:01] Production.INFO: ==21660== Lock acquired, processing the job... [2025-03-03 07:04:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:04:02] Production.INFO: ==21660== Releasing lock... [2025-03-03 07:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:04:02] Production.INFO: ==21662== Lock acquired, processing the job... [2025-03-03 12:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:04:02] Production.INFO: ==21662== Releasing lock... [2025-03-03 12:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:04:03] Production.INFO: ==21664== Lock acquired, processing the job... [2025-03-03 07:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:04:03] Production.INFO: ==21668== Lock acquired, processing the job... [2025-03-03 07:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:04:03] Production.INFO: ==21670== Lock acquired, processing the job... [2025-03-03 07:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:04:03] Production.INFO: ==21666== Lock acquired, processing the job... [2025-03-03 07:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:04:03] Production.INFO: ==21674== Lock acquired, processing the job... [2025-03-03 07:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:04:03] Production.INFO: ==21672== Lock acquired, processing the job... [2025-03-03 07:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:04:03] Production.INFO: Account Balance Start. [2025-03-03 07:04:03] Production.INFO: CreateAllLog Start [2025-03-03 07:04:03] Production.INFO: 117 [2025-03-03 07:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:04:03] Production.INFO: count ==13 [2025-03-03 07:04:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:03] Production.INFO: count ==21 [2025-03-03 07:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596811') start [2025-03-03 07:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596811') end [2025-03-03 07:04:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:04:03] Production.INFO: 1 [2025-03-03 07:04:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:03] Production.INFO: ==21674== Releasing lock... [2025-03-03 07:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:04:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:04:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: ==21666== Releasing lock... [2025-03-03 07:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:04:04] Production.ERROR: done [2025-03-03 07:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.ERROR: done [2025-03-03 07:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:04:04] Production.INFO: Total Charge 0 [2025-03-03 07:04:04] Production.INFO: CreateAllLog End [2025-03-03 07:04:04] Production.INFO: Account Balance End. [2025-03-03 07:04:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:04:04] Production.INFO: ==21670== Releasing lock... [2025-03-03 07:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:04:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:04:11] Production.ERROR: CronJobId end10 [2025-03-03 07:04:11] Production.INFO: ==21668== Releasing lock... [2025-03-03 07:04:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:04:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:04:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:04:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:04:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:04:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:04:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:04:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:04:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:04:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:04:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:04:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:04:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:04:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:04:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:04:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:04:14] Production.INFO: call_cost start [2025-03-03 07:04:14] Production.INFO: call_cost end [2025-03-03 07:04:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:04:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:04:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:04:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:04:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:04:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:04:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:04:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:04:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:04:14] Production.INFO: ==21664== Releasing lock... [2025-03-03 07:04:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:04:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:04:16] Production.INFO: count ==409 [2025-03-03 07:04:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596813', 'tblTempUsageDetail_20' ) start [2025-03-03 07:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596813', 'tblTempUsageDetail_20' ) end [2025-03-03 07:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596813', 'tblTempVendorCDR_20' ) start [2025-03-03 07:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596813', 'tblTempVendorCDR_20' ) end [2025-03-03 07:04:16] Production.INFO: ProcessCDR(1,14596813,1,1,2) [2025-03-03 07:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596813', 'tblTempUsageDetail_20' ) start [2025-03-03 07:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596813', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:04:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:04:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:04:24] Production.INFO: ==21672== Releasing lock... [2025-03-03 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:04:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:05:02] Production.INFO: ==21813== Lock acquired, processing the job... [2025-03-03 12:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:05:02] Production.INFO: neon service started [2025-03-03 12:05:02] Production.INFO: neon service started [2025-03-03 12:05:02] Production.INFO: ==21813== Releasing lock... [2025-03-03 12:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:05:02] Production.INFO: ==21815== Lock acquired, processing the job... [2025-03-03 07:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:05:02] Production.INFO: ==21815== Releasing lock... [2025-03-03 07:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:05:03] Production.INFO: ==21817== Lock acquired, processing the job... [2025-03-03 12:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:05:03] Production.INFO: ==21817== Releasing lock... [2025-03-03 12:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:05:03] Production.INFO: ==21826== Lock acquired, processing the job... [2025-03-03 07:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:05:03] Production.INFO: Account Balance Start. [2025-03-03 07:05:03] Production.INFO: CreateAllLog Start [2025-03-03 07:05:03] Production.INFO: 117 [2025-03-03 07:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ==21828== Lock acquired, processing the job... [2025-03-03 07:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ==21821== Lock acquired, processing the job... [2025-03-03 07:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:05:04] Production.INFO: ==21819== Lock acquired, processing the job... [2025-03-03 07:05:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ==21823== Lock acquired, processing the job... [2025-03-03 07:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ==21830== Lock acquired, processing the job... [2025-03-03 07:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: count ==13 [2025-03-03 07:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:05:04] Production.INFO: count ==21 [2025-03-03 07:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596817') start [2025-03-03 07:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ==21821== Releasing lock... [2025-03-03 07:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:05:04] Production.ERROR: done [2025-03-03 07:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596817') end [2025-03-03 07:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:05:04] Production.INFO: 1 [2025-03-03 07:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.INFO: ==21830== Releasing lock... [2025-03-03 07:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:05:04] Production.ERROR: done [2025-03-03 07:05:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:05:04] Production.INFO: Total Charge 0 [2025-03-03 07:05:05] Production.INFO: CreateAllLog End [2025-03-03 07:05:05] Production.INFO: Account Balance End. [2025-03-03 07:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:05:05] Production.INFO: ==21826== Releasing lock... [2025-03-03 07:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:05:13] Production.ERROR: CronJobId end10 [2025-03-03 07:05:13] Production.INFO: ==21823== Releasing lock... [2025-03-03 07:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:05:14] Production.INFO: call_cost start [2025-03-03 07:05:14] Production.INFO: call_cost end [2025-03-03 07:05:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:05:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:05:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:05:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:05:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:05:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:05:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:05:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:05:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:05:14] Production.INFO: ==21819== Releasing lock... [2025-03-03 07:05:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:05:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:05:17] Production.INFO: count ==409 [2025-03-03 07:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596818', 'tblTempUsageDetail_20' ) start [2025-03-03 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596818', 'tblTempUsageDetail_20' ) end [2025-03-03 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596818', 'tblTempVendorCDR_20' ) start [2025-03-03 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596818', 'tblTempVendorCDR_20' ) end [2025-03-03 07:05:17] Production.INFO: ProcessCDR(1,14596818,1,1,2) [2025-03-03 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596818', 'tblTempUsageDetail_20' ) start [2025-03-03 07:05:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596818', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:05:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:05:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:05:25] Production.INFO: ==21828== Releasing lock... [2025-03-03 07:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:05:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:06:01] Production.INFO: ==21895== Lock acquired, processing the job... [2025-03-03 12:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:06:01] Production.INFO: neon service started [2025-03-03 12:06:01] Production.INFO: neon service started [2025-03-03 12:06:01] Production.INFO: ==21895== Releasing lock... [2025-03-03 12:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:06:02] Production.INFO: ==21899== Lock acquired, processing the job... [2025-03-03 12:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:06:02] Production.INFO: ==21899== Releasing lock... [2025-03-03 12:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:06:02] Production.INFO: ==21897== Lock acquired, processing the job... [2025-03-03 07:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:06:02] Production.INFO: ==21897== Releasing lock... [2025-03-03 07:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:06:03] Production.INFO: ==21902== Lock acquired, processing the job... [2025-03-03 07:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:06:03] Production.INFO: ==21906== Lock acquired, processing the job... [2025-03-03 07:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:06:03] Production.INFO: ==21908== Lock acquired, processing the job... [2025-03-03 07:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:06:03] Production.INFO: ==21904== Lock acquired, processing the job... [2025-03-03 07:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:06:03] Production.INFO: Account Balance Start. [2025-03-03 07:06:03] Production.INFO: CreateAllLog Start [2025-03-03 07:06:03] Production.INFO: 117 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: ==21910== Lock acquired, processing the job... [2025-03-03 07:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:06:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: ==21912== Lock acquired, processing the job... [2025-03-03 07:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: ==21904== Releasing lock... [2025-03-03 07:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:06:04] Production.INFO: count ==13 [2025-03-03 07:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:06:04] Production.INFO: count ==21 [2025-03-03 07:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596822') start [2025-03-03 07:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596822') end [2025-03-03 07:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:06:04] Production.INFO: 1 [2025-03-03 07:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:06:04] Production.ERROR: done [2025-03-03 07:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:06:04] Production.INFO: ==21912== Releasing lock... [2025-03-03 07:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.ERROR: done [2025-03-03 07:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:06:04] Production.INFO: Total Charge 0 [2025-03-03 07:06:04] Production.INFO: CreateAllLog End [2025-03-03 07:06:04] Production.INFO: Account Balance End. [2025-03-03 07:06:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:06:04] Production.INFO: ==21908== Releasing lock... [2025-03-03 07:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:06:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:06:11] Production.ERROR: CronJobId end10 [2025-03-03 07:06:11] Production.INFO: ==21906== Releasing lock... [2025-03-03 07:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:06:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:06:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:06:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:06:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:06:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:06:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:06:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:06:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:06:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:06:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:06:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:06:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:06:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:06:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:06:14] Production.INFO: call_cost start [2025-03-03 07:06:14] Production.INFO: call_cost end [2025-03-03 07:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:06:14] Production.INFO: ==21902== Releasing lock... [2025-03-03 07:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:06:16] Production.INFO: count ==409 [2025-03-03 07:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596823', 'tblTempUsageDetail_20' ) start [2025-03-03 07:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596823', 'tblTempUsageDetail_20' ) end [2025-03-03 07:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596823', 'tblTempVendorCDR_20' ) start [2025-03-03 07:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596823', 'tblTempVendorCDR_20' ) end [2025-03-03 07:06:16] Production.INFO: ProcessCDR(1,14596823,1,1,2) [2025-03-03 07:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596823', 'tblTempUsageDetail_20' ) start [2025-03-03 07:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596823', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:06:24] Production.INFO: ==21910== Releasing lock... [2025-03-03 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:07:02] Production.INFO: ==21975== Lock acquired, processing the job... [2025-03-03 12:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:07:02] Production.INFO: neon service started [2025-03-03 12:07:02] Production.INFO: neon service started [2025-03-03 12:07:02] Production.INFO: ==21975== Releasing lock... [2025-03-03 12:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:07:02] Production.INFO: ==21977== Lock acquired, processing the job... [2025-03-03 07:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:07:02] Production.INFO: ==21979== Lock acquired, processing the job... [2025-03-03 12:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:07:02] Production.INFO: ==21979== Releasing lock... [2025-03-03 12:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:07:03] Production.INFO: ==21977== Releasing lock... [2025-03-03 07:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:07:04] Production.INFO: ==21990== Lock acquired, processing the job... [2025-03-03 07:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:07:04] Production.INFO: ==21992== Lock acquired, processing the job... [2025-03-03 07:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:07:04] Production.INFO: ==21982== Lock acquired, processing the job... [2025-03-03 07:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:07:04] Production.INFO: ==21984== Lock acquired, processing the job... [2025-03-03 07:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:07:04] Production.INFO: ==21986== Lock acquired, processing the job... [2025-03-03 07:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:07:04] Production.INFO: ==21988== Lock acquired, processing the job... [2025-03-03 07:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:07:04] Production.INFO: count ==13 [2025-03-03 07:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:07:04] Production.INFO: count ==21 [2025-03-03 07:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596824') start [2025-03-03 07:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:07:04] Production.INFO: Account Balance Start. [2025-03-03 07:07:04] Production.INFO: CreateAllLog Start [2025-03-03 07:07:04] Production.INFO: 117 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596824') end [2025-03-03 07:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:07:04] Production.INFO: 1 [2025-03-03 07:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.ERROR: done [2025-03-03 07:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:07:04] Production.INFO: ==21992== Releasing lock... [2025-03-03 07:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:07:04] Production.INFO: ==21984== Releasing lock... [2025-03-03 07:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.ERROR: done [2025-03-03 07:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:07:05] Production.INFO: Total Charge 0 [2025-03-03 07:07:05] Production.INFO: CreateAllLog End [2025-03-03 07:07:05] Production.INFO: Account Balance End. [2025-03-03 07:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:07:05] Production.INFO: ==21988== Releasing lock... [2025-03-03 07:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:07:12] Production.ERROR: CronJobId end10 [2025-03-03 07:07:12] Production.INFO: ==21986== Releasing lock... [2025-03-03 07:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:07:14] Production.INFO: call_cost start [2025-03-03 07:07:14] Production.INFO: call_cost end [2025-03-03 07:07:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:07:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:07:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:07:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:07:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:07:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:07:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:07:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:07:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:07:14] Production.INFO: ==21982== Releasing lock... [2025-03-03 07:07:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:07:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:07:18] Production.INFO: count ==409 [2025-03-03 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596828', 'tblTempUsageDetail_20' ) start [2025-03-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596828', 'tblTempUsageDetail_20' ) end [2025-03-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596828', 'tblTempVendorCDR_20' ) start [2025-03-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596828', 'tblTempVendorCDR_20' ) end [2025-03-03 07:07:18] Production.INFO: ProcessCDR(1,14596828,1,1,2) [2025-03-03 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596828', 'tblTempUsageDetail_20' ) start [2025-03-03 07:07:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596828', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:07:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:07:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:07:26] Production.INFO: ==21990== Releasing lock... [2025-03-03 07:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:07:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:08:01] Production.INFO: ==22059== Lock acquired, processing the job... [2025-03-03 12:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:08:01] Production.INFO: neon service started [2025-03-03 12:08:01] Production.INFO: neon service started [2025-03-03 12:08:01] Production.INFO: ==22059== Releasing lock... [2025-03-03 12:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:08:02] Production.INFO: ==22102== Lock acquired, processing the job... [2025-03-03 12:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:08:02] Production.INFO: ==22102== Releasing lock... [2025-03-03 12:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:08:02] Production.INFO: ==22100== Lock acquired, processing the job... [2025-03-03 07:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:08:02] Production.INFO: ==22100== Releasing lock... [2025-03-03 07:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:08:03] Production.INFO: ==22105== Lock acquired, processing the job... [2025-03-03 07:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:08:03] Production.INFO: ==22113== Lock acquired, processing the job... [2025-03-03 07:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:08:03] Production.INFO: ==22107== Lock acquired, processing the job... [2025-03-03 07:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:08:03] Production.INFO: ==22111== Lock acquired, processing the job... [2025-03-03 07:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:08:03] Production.INFO: ==22109== Lock acquired, processing the job... [2025-03-03 07:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:08:03] Production.INFO: ==22115== Lock acquired, processing the job... [2025-03-03 07:08:03] Production.INFO: Account Balance Start. [2025-03-03 07:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:08:03] Production.INFO: CreateAllLog Start [2025-03-03 07:08:03] Production.INFO: 117 [2025-03-03 07:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:08:04] Production.INFO: count ==13 [2025-03-03 07:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:08:04] Production.ERROR: done [2025-03-03 07:08:04] Production.INFO: count ==21 [2025-03-03 07:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: ==22107== Releasing lock... [2025-03-03 07:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596832') start [2025-03-03 07:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.ERROR: done [2025-03-03 07:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596832') end [2025-03-03 07:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:08:04] Production.INFO: 1 [2025-03-03 07:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: ==22115== Releasing lock... [2025-03-03 07:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:08:05] Production.INFO: Total Charge 0 [2025-03-03 07:08:05] Production.INFO: CreateAllLog End [2025-03-03 07:08:05] Production.INFO: Account Balance End. [2025-03-03 07:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:08:05] Production.INFO: ==22111== Releasing lock... [2025-03-03 07:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:08:11] Production.ERROR: CronJobId end10 [2025-03-03 07:08:11] Production.INFO: ==22109== Releasing lock... [2025-03-03 07:08:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:08:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:08:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:08:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:08:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:08:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:08:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:08:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:08:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:08:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:08:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:08:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:08:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:08:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:08:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:08:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:08:14] Production.INFO: call_cost start [2025-03-03 07:08:14] Production.INFO: call_cost end [2025-03-03 07:08:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:08:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:08:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:08:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:08:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:08:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:08:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:08:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:08:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:08:14] Production.INFO: ==22105== Releasing lock... [2025-03-03 07:08:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:08:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:08:16] Production.INFO: count ==409 [2025-03-03 07:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596833', 'tblTempUsageDetail_20' ) start [2025-03-03 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596833', 'tblTempUsageDetail_20' ) end [2025-03-03 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596833', 'tblTempVendorCDR_20' ) start [2025-03-03 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596833', 'tblTempVendorCDR_20' ) end [2025-03-03 07:08:16] Production.INFO: ProcessCDR(1,14596833,1,1,2) [2025-03-03 07:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596833', 'tblTempUsageDetail_20' ) start [2025-03-03 07:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596833', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:08:24] Production.INFO: ==22113== Releasing lock... [2025-03-03 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:08:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:09:02] Production.INFO: ==22216== Lock acquired, processing the job... [2025-03-03 12:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:09:02] Production.INFO: neon service started [2025-03-03 12:09:02] Production.INFO: neon service started [2025-03-03 12:09:02] Production.INFO: ==22216== Releasing lock... [2025-03-03 12:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:09:02] Production.INFO: ==22218== Lock acquired, processing the job... [2025-03-03 07:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:09:02] Production.INFO: ==22220== Lock acquired, processing the job... [2025-03-03 12:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:09:02] Production.INFO: ==22220== Releasing lock... [2025-03-03 12:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:09:03] Production.INFO: ==22218== Releasing lock... [2025-03-03 07:09:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:09:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:09:03] Production.INFO: ==22225== Lock acquired, processing the job... [2025-03-03 07:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:09:04] Production.INFO: ==22233== Lock acquired, processing the job... [2025-03-03 07:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:09:04] Production.INFO: ==22225== Releasing lock... [2025-03-03 07:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:09:04] Production.INFO: ==22223== Lock acquired, processing the job... [2025-03-03 07:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:09:04] Production.INFO: ==22227== Lock acquired, processing the job... [2025-03-03 07:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:09:04] Production.INFO: count ==13 [2025-03-03 07:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:09:04] Production.INFO: count ==21 [2025-03-03 07:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596835') start [2025-03-03 07:09:04] Production.INFO: ==22231== Lock acquired, processing the job... [2025-03-03 07:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:09:04] Production.INFO: ==22229== Lock acquired, processing the job... [2025-03-03 07:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596835') end [2025-03-03 07:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:09:04] Production.INFO: 1 [2025-03-03 07:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:09:04] Production.INFO: ==22233== Releasing lock... [2025-03-03 07:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:09:04] Production.INFO: Account Balance Start. [2025-03-03 07:09:04] Production.INFO: CreateAllLog Start [2025-03-03 07:09:04] Production.INFO: 117 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.ERROR: done [2025-03-03 07:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:09:04] Production.ERROR: done [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:09:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:09:05] Production.INFO: Total Charge 0 [2025-03-03 07:09:05] Production.INFO: CreateAllLog End [2025-03-03 07:09:05] Production.INFO: Account Balance End. [2025-03-03 07:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:09:05] Production.INFO: ==22229== Releasing lock... [2025-03-03 07:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:09:11] Production.ERROR: CronJobId end10 [2025-03-03 07:09:11] Production.INFO: ==22227== Releasing lock... [2025-03-03 07:09:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:09:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:09:14] Production.INFO: call_cost start [2025-03-03 07:09:14] Production.INFO: call_cost end [2025-03-03 07:09:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:09:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:09:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:09:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:09:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:09:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:09:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:09:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:09:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:09:14] Production.INFO: ==22223== Releasing lock... [2025-03-03 07:09:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:09:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:09:17] Production.INFO: count ==409 [2025-03-03 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596838', 'tblTempUsageDetail_20' ) start [2025-03-03 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596838', 'tblTempUsageDetail_20' ) end [2025-03-03 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596838', 'tblTempVendorCDR_20' ) start [2025-03-03 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596838', 'tblTempVendorCDR_20' ) end [2025-03-03 07:09:17] Production.INFO: ProcessCDR(1,14596838,1,1,2) [2025-03-03 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596838', 'tblTempUsageDetail_20' ) start [2025-03-03 07:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596838', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:09:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:09:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:09:25] Production.INFO: ==22231== Releasing lock... [2025-03-03 07:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:09:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:10:01] Production.INFO: ==22301== Lock acquired, processing the job... [2025-03-03 12:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:10:01] Production.INFO: neon service started [2025-03-03 12:10:01] Production.INFO: neon service started [2025-03-03 12:10:01] Production.INFO: ==22301== Releasing lock... [2025-03-03 12:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:10:02] Production.INFO: ==22305== Lock acquired, processing the job... [2025-03-03 12:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:10:02] Production.INFO: ==22305== Releasing lock... [2025-03-03 12:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:10:02] Production.INFO: ==22303== Lock acquired, processing the job... [2025-03-03 07:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:10:02] Production.INFO: ==22303== Releasing lock... [2025-03-03 07:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:10:03] Production.INFO: ==22314== Lock acquired, processing the job... [2025-03-03 07:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:10:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:10:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:10:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:10:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:10:03] Production.INFO: ==22318== Lock acquired, processing the job... [2025-03-03 07:10:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:10:04] Production.INFO: ==22320== Lock acquired, processing the job... [2025-03-03 07:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 07:10:04] Production.INFO: ==22308== Lock acquired, processing the job... [2025-03-03 07:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 07:10:04] Production.INFO: ==22310== Lock acquired, processing the job... [2025-03-03 07:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:10:04] Production.INFO: ==22312== Lock acquired, processing the job... [2025-03-03 07:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:10:04] Production.INFO: ==22316== Lock acquired, processing the job... [2025-03-03 07:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:10:04] Production.ERROR: CronJob PID - 22310 [2025-03-03 07:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 07:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 07:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:10:00 [2025-03-03 07:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:10:04] Production.ERROR: CronJob PID - 22312 [2025-03-03 07:10:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 07:10:04] Production.ERROR: CronJob ID - 7 [2025-03-03 07:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:10:00 [2025-03-03 07:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:10:04] Production.ERROR: CronJob PID - 22314 [2025-03-03 07:10:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 07:10:04] Production.ERROR: CronJob ID - 10 [2025-03-03 07:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:10:00 [2025-03-03 07:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:10:04] Production.ERROR: CronJob PID - 22318 [2025-03-03 07:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 07:10:04] Production.ERROR: CronJob ID - 16 [2025-03-03 07:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:10:00 [2025-03-03 07:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:10:04] Production.ERROR: CronJob PID - 22320 [2025-03-03 07:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 07:10:04] Production.ERROR: CronJob ID - 17 [2025-03-03 07:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:10:00 [2025-03-03 07:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:10:04] Production.INFO: ==22322== Lock acquired, processing the job... [2025-03-03 07:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 07:10:04] Production.INFO: ==22308== Releasing lock... [2025-03-03 07:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 07:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:10:04] Production.ERROR: done [2025-03-03 07:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:10:04] Production.INFO: Account Balance Start. [2025-03-03 07:10:04] Production.INFO: CreateAllLog Start [2025-03-03 07:10:04] Production.INFO: 117 [2025-03-03 07:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:04] Production.INFO: count ==13 [2025-03-03 07:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:10:04] Production.INFO: count ==21 [2025-03-03 07:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596841') start [2025-03-03 07:10:04] Production.INFO: ==22312== Releasing lock... [2025-03-03 07:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:10:04] Production.ERROR: done [2025-03-03 07:10:04] Production.ERROR: done [2025-03-03 07:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596841') end [2025-03-03 07:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:10:04] Production.INFO: 1 [2025-03-03 07:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 07:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596843', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 07:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:10:04] Production.INFO: ==22322== Releasing lock... [2025-03-03 07:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:10:05] Production.INFO: Total Charge 0 [2025-03-03 07:10:05] Production.INFO: CreateAllLog End [2025-03-03 07:10:05] Production.INFO: Account Balance End. [2025-03-03 07:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:10:05] Production.INFO: ==22316== Releasing lock... [2025-03-03 07:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596843', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 07:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 07:10:09] Production.INFO: ProcessCDR(1,14596843,1,1,2) [2025-03-03 07:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596843,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596843,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 07:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 07:10:09] Production.INFO: ==22320== Releasing lock... [2025-03-03 07:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 07:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 07:10:13] Production.ERROR: CronJobId end10 [2025-03-03 07:10:13] Production.INFO: ==22314== Releasing lock... [2025-03-03 07:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:10:16] Production.INFO: call_cost start [2025-03-03 07:10:16] Production.INFO: call_cost end [2025-03-03 07:10:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:10:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:10:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:10:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:10:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:10:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:10:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:10:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:10:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:10:16] Production.INFO: ==22310== Releasing lock... [2025-03-03 07:10:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:10:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:10:17] Production.INFO: count ==409 [2025-03-03 07:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596844', 'tblTempUsageDetail_20' ) start [2025-03-03 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596844', 'tblTempUsageDetail_20' ) end [2025-03-03 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596844', 'tblTempVendorCDR_20' ) start [2025-03-03 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596844', 'tblTempVendorCDR_20' ) end [2025-03-03 07:10:17] Production.INFO: ProcessCDR(1,14596844,1,1,2) [2025-03-03 07:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596844', 'tblTempUsageDetail_20' ) start [2025-03-03 07:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596844', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:10:25] Production.INFO: ==22318== Releasing lock... [2025-03-03 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:10:25] Production.INFO: 33.5 MB #Memory Used# [2025-03-03 12:11:02] Production.INFO: ==22400== Lock acquired, processing the job... [2025-03-03 12:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:11:02] Production.INFO: neon service started [2025-03-03 12:11:02] Production.INFO: neon service started [2025-03-03 12:11:02] Production.INFO: ==22400== Releasing lock... [2025-03-03 12:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:11:02] Production.INFO: ==22402== Lock acquired, processing the job... [2025-03-03 07:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:11:02] Production.INFO: ==22402== Releasing lock... [2025-03-03 07:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:11:03] Production.INFO: ==22405== Lock acquired, processing the job... [2025-03-03 12:11:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:11:03] Production.INFO: ==22405== Releasing lock... [2025-03-03 12:11:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:11:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:11:03] Production.INFO: ==22409== Lock acquired, processing the job... [2025-03-03 07:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:11:03] Production.INFO: ==22413== Lock acquired, processing the job... [2025-03-03 07:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:11:03] Production.INFO: Account Balance Start. [2025-03-03 07:11:03] Production.INFO: CreateAllLog Start [2025-03-03 07:11:03] Production.INFO: 117 [2025-03-03 07:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:03] Production.INFO: ==22407== Lock acquired, processing the job... [2025-03-03 07:11:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: ==22409== Releasing lock... [2025-03-03 07:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:11:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: ==22411== Lock acquired, processing the job... [2025-03-03 07:11:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: ==22415== Lock acquired, processing the job... [2025-03-03 07:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: ==22417== Lock acquired, processing the job... [2025-03-03 07:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: count ==13 [2025-03-03 07:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:11:04] Production.INFO: count ==21 [2025-03-03 07:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596848') start [2025-03-03 07:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.ERROR: done [2025-03-03 07:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596848') end [2025-03-03 07:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:11:04] Production.INFO: 1 [2025-03-03 07:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:04] Production.INFO: ==22417== Releasing lock... [2025-03-03 07:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:05] Production.ERROR: done [2025-03-03 07:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:11:05] Production.INFO: Total Charge 0 [2025-03-03 07:11:05] Production.INFO: CreateAllLog End [2025-03-03 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:11:05] Production.INFO: Account Balance End. [2025-03-03 07:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:11:05] Production.INFO: ==22413== Releasing lock... [2025-03-03 07:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:11:12] Production.ERROR: CronJobId end10 [2025-03-03 07:11:12] Production.INFO: ==22411== Releasing lock... [2025-03-03 07:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:11:15] Production.INFO: call_cost start [2025-03-03 07:11:15] Production.INFO: call_cost end [2025-03-03 07:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:11:15] Production.INFO: ==22407== Releasing lock... [2025-03-03 07:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:11:17] Production.INFO: count ==409 [2025-03-03 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596849', 'tblTempUsageDetail_20' ) start [2025-03-03 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596849', 'tblTempUsageDetail_20' ) end [2025-03-03 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596849', 'tblTempVendorCDR_20' ) start [2025-03-03 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596849', 'tblTempVendorCDR_20' ) end [2025-03-03 07:11:17] Production.INFO: ProcessCDR(1,14596849,1,1,2) [2025-03-03 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596849', 'tblTempUsageDetail_20' ) start [2025-03-03 07:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596849', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:11:24] Production.INFO: ==22415== Releasing lock... [2025-03-03 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:12:01] Production.INFO: ==22576== Lock acquired, processing the job... [2025-03-03 12:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:12:01] Production.INFO: neon service started [2025-03-03 12:12:01] Production.INFO: neon service started [2025-03-03 12:12:01] Production.INFO: ==22576== Releasing lock... [2025-03-03 12:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:12:02] Production.INFO: ==22578== Lock acquired, processing the job... [2025-03-03 07:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:12:02] Production.INFO: ==22578== Releasing lock... [2025-03-03 07:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:12:02] Production.INFO: ==22580== Lock acquired, processing the job... [2025-03-03 12:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:12:02] Production.INFO: ==22580== Releasing lock... [2025-03-03 12:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:12:03] Production.INFO: ==22585== Lock acquired, processing the job... [2025-03-03 07:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:12:03] Production.INFO: ==22594== Lock acquired, processing the job... [2025-03-03 07:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:12:03] Production.INFO: ==22583== Lock acquired, processing the job... [2025-03-03 07:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:12:03] Production.INFO: ==22587== Lock acquired, processing the job... [2025-03-03 07:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:12:03] Production.INFO: ==22585== Releasing lock... [2025-03-03 07:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:12:03] Production.INFO: ==22590== Lock acquired, processing the job... [2025-03-03 07:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:12:03] Production.INFO: ==22592== Lock acquired, processing the job... [2025-03-03 07:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:12:03] Production.INFO: count ==13 [2025-03-03 07:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:12:03] Production.INFO: Account Balance Start. [2025-03-03 07:12:03] Production.INFO: CreateAllLog Start [2025-03-03 07:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:12:03] Production.INFO: 117 [2025-03-03 07:12:03] Production.INFO: count ==21 [2025-03-03 07:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596851') start [2025-03-03 07:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596851') end [2025-03-03 07:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:12:04] Production.INFO: 1 [2025-03-03 07:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:12:04] Production.ERROR: done [2025-03-03 07:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:12:04] Production.INFO: ==22594== Releasing lock... [2025-03-03 07:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.ERROR: done [2025-03-03 07:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:12:04] Production.INFO: Total Charge 0 [2025-03-03 07:12:04] Production.INFO: CreateAllLog End [2025-03-03 07:12:04] Production.INFO: Account Balance End. [2025-03-03 07:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:12:05] Production.INFO: ==22590== Releasing lock... [2025-03-03 07:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:12:12] Production.ERROR: CronJobId end10 [2025-03-03 07:12:12] Production.INFO: ==22587== Releasing lock... [2025-03-03 07:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:12:15] Production.INFO: call_cost start [2025-03-03 07:12:15] Production.INFO: call_cost end [2025-03-03 07:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:12:15] Production.INFO: ==22583== Releasing lock... [2025-03-03 07:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:12:16] Production.INFO: count ==409 [2025-03-03 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596854', 'tblTempUsageDetail_20' ) start [2025-03-03 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596854', 'tblTempUsageDetail_20' ) end [2025-03-03 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596854', 'tblTempVendorCDR_20' ) start [2025-03-03 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596854', 'tblTempVendorCDR_20' ) end [2025-03-03 07:12:17] Production.INFO: ProcessCDR(1,14596854,1,1,2) [2025-03-03 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596854', 'tblTempUsageDetail_20' ) start [2025-03-03 07:12:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596854', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:12:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:12:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:12:24] Production.INFO: ==22592== Releasing lock... [2025-03-03 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:12:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:13:02] Production.INFO: ==22672== Lock acquired, processing the job... [2025-03-03 12:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:13:02] Production.INFO: neon service started [2025-03-03 12:13:02] Production.INFO: neon service started [2025-03-03 12:13:02] Production.INFO: ==22672== Releasing lock... [2025-03-03 12:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:13:02] Production.INFO: ==22677== Lock acquired, processing the job... [2025-03-03 12:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:13:02] Production.INFO: ==22677== Releasing lock... [2025-03-03 12:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:13:02] Production.INFO: ==22675== Lock acquired, processing the job... [2025-03-03 07:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:13:03] Production.INFO: ==22675== Releasing lock... [2025-03-03 07:13:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:13:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:13:03] Production.INFO: ==22680== Lock acquired, processing the job... [2025-03-03 07:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:13:03] Production.INFO: ==22682== Lock acquired, processing the job... [2025-03-03 07:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:13:04] Production.INFO: ==22688== Lock acquired, processing the job... [2025-03-03 07:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:13:04] Production.INFO: ==22684== Lock acquired, processing the job... [2025-03-03 07:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:13:04] Production.INFO: ==22686== Lock acquired, processing the job... [2025-03-03 07:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:13:04] Production.INFO: ==22682== Releasing lock... [2025-03-03 07:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:13:04] Production.INFO: ==22690== Lock acquired, processing the job... [2025-03-03 07:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:13:04] Production.INFO: Account Balance Start. [2025-03-03 07:13:04] Production.INFO: CreateAllLog Start [2025-03-03 07:13:04] Production.INFO: 117 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.ERROR: done [2025-03-03 07:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.ERROR: done [2025-03-03 07:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.INFO: count ==13 [2025-03-03 07:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:13:04] Production.INFO: count ==21 [2025-03-03 07:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596858') start [2025-03-03 07:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596858') end [2025-03-03 07:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:13:04] Production.INFO: 1 [2025-03-03 07:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:13:04] Production.INFO: ==22690== Releasing lock... [2025-03-03 07:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:13:05] Production.INFO: Total Charge 0 [2025-03-03 07:13:05] Production.INFO: CreateAllLog End [2025-03-03 07:13:05] Production.INFO: Account Balance End. [2025-03-03 07:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:13:05] Production.INFO: ==22686== Releasing lock... [2025-03-03 07:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:13:13] Production.ERROR: CronJobId end10 [2025-03-03 07:13:13] Production.INFO: ==22684== Releasing lock... [2025-03-03 07:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:13:16] Production.INFO: call_cost start [2025-03-03 07:13:16] Production.INFO: call_cost end [2025-03-03 07:13:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:13:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:13:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:13:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:13:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:13:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:13:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:13:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:13:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:13:16] Production.INFO: ==22680== Releasing lock... [2025-03-03 07:13:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:13:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:13:16] Production.INFO: count ==409 [2025-03-03 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596859', 'tblTempUsageDetail_20' ) start [2025-03-03 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596859', 'tblTempUsageDetail_20' ) end [2025-03-03 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596859', 'tblTempVendorCDR_20' ) start [2025-03-03 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596859', 'tblTempVendorCDR_20' ) end [2025-03-03 07:13:17] Production.INFO: ProcessCDR(1,14596859,1,1,2) [2025-03-03 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596859', 'tblTempUsageDetail_20' ) start [2025-03-03 07:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596859', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:13:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:13:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:13:24] Production.INFO: ==22688== Releasing lock... [2025-03-03 07:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:13:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:14:01] Production.INFO: ==22768== Lock acquired, processing the job... [2025-03-03 12:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:14:01] Production.INFO: neon service started [2025-03-03 12:14:01] Production.INFO: neon service started [2025-03-03 12:14:01] Production.INFO: ==22768== Releasing lock... [2025-03-03 12:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:14:02] Production.INFO: ==22770== Lock acquired, processing the job... [2025-03-03 07:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:14:02] Production.INFO: ==22773== Lock acquired, processing the job... [2025-03-03 12:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:14:02] Production.INFO: ==22773== Releasing lock... [2025-03-03 12:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:14:02] Production.INFO: ==22770== Releasing lock... [2025-03-03 07:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:14:03] Production.INFO: ==22778== Lock acquired, processing the job... [2025-03-03 07:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:14:03] Production.INFO: ==22776== Lock acquired, processing the job... [2025-03-03 07:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:14:03] Production.INFO: ==22780== Lock acquired, processing the job... [2025-03-03 07:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:14:03] Production.INFO: ==22782== Lock acquired, processing the job... [2025-03-03 07:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:14:03] Production.INFO: ==22784== Lock acquired, processing the job... [2025-03-03 07:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:14:03] Production.INFO: ==22786== Lock acquired, processing the job... [2025-03-03 07:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:14:03] Production.INFO: Account Balance Start. [2025-03-03 07:14:03] Production.INFO: CreateAllLog Start [2025-03-03 07:14:03] Production.INFO: 117 [2025-03-03 07:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:03] Production.INFO: ==22778== Releasing lock... [2025-03-03 07:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:14:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:03] Production.INFO: count ==13 [2025-03-03 07:14:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:14:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:03] Production.ERROR: done [2025-03-03 07:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: count ==21 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596863') start [2025-03-03 07:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.ERROR: done [2025-03-03 07:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596863') end [2025-03-03 07:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:14:04] Production.INFO: 1 [2025-03-03 07:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: ==22786== Releasing lock... [2025-03-03 07:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:14:04] Production.INFO: Total Charge 0 [2025-03-03 07:14:04] Production.INFO: CreateAllLog End [2025-03-03 07:14:05] Production.INFO: Account Balance End. [2025-03-03 07:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:14:05] Production.INFO: ==22782== Releasing lock... [2025-03-03 07:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:14:11] Production.ERROR: CronJobId end10 [2025-03-03 07:14:11] Production.INFO: ==22780== Releasing lock... [2025-03-03 07:14:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:14:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:14:14] Production.INFO: call_cost start [2025-03-03 07:14:14] Production.INFO: call_cost end [2025-03-03 07:14:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:14:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:14:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:14:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:14:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:14:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:14:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:14:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:14:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:14:14] Production.INFO: ==22776== Releasing lock... [2025-03-03 07:14:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:14:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:14:17] Production.INFO: count ==409 [2025-03-03 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596864', 'tblTempUsageDetail_20' ) start [2025-03-03 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596864', 'tblTempUsageDetail_20' ) end [2025-03-03 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596864', 'tblTempVendorCDR_20' ) start [2025-03-03 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596864', 'tblTempVendorCDR_20' ) end [2025-03-03 07:14:17] Production.INFO: ProcessCDR(1,14596864,1,1,2) [2025-03-03 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596864', 'tblTempUsageDetail_20' ) start [2025-03-03 07:14:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596864', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:14:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:14:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:14:25] Production.INFO: ==22784== Releasing lock... [2025-03-03 07:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:14:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:15:02] Production.INFO: ==22948== Lock acquired, processing the job... [2025-03-03 12:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:15:02] Production.INFO: neon service started [2025-03-03 12:15:02] Production.INFO: neon service started [2025-03-03 12:15:02] Production.INFO: ==22948== Releasing lock... [2025-03-03 12:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:15:02] Production.INFO: ==22952== Lock acquired, processing the job... [2025-03-03 12:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:15:02] Production.INFO: ==22952== Releasing lock... [2025-03-03 12:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:15:02] Production.INFO: ==22950== Lock acquired, processing the job... [2025-03-03 07:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:15:02] Production.INFO: ==22950== Releasing lock... [2025-03-03 07:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:15:03] Production.INFO: ==22956== Lock acquired, processing the job... [2025-03-03 07:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:15:03] Production.INFO: ==22960== Lock acquired, processing the job... [2025-03-03 07:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:15:03] Production.INFO: Account Balance Start. [2025-03-03 07:15:03] Production.INFO: CreateAllLog Start [2025-03-03 07:15:03] Production.INFO: 117 [2025-03-03 07:15:03] Production.INFO: ==22963== Lock acquired, processing the job... [2025-03-03 07:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:03] Production.INFO: ==22954== Lock acquired, processing the job... [2025-03-03 07:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:15:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:15:03] Production.INFO: ==22956== Releasing lock... [2025-03-03 07:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:15:03] Production.INFO: ==22958== Lock acquired, processing the job... [2025-03-03 07:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: ==22965== Lock acquired, processing the job... [2025-03-03 07:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:15:04] Production.ERROR: done [2025-03-03 07:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:15:04] Production.INFO: count ==13 [2025-03-03 07:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:15:04] Production.INFO: count ==21 [2025-03-03 07:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596867') start [2025-03-03 07:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.ERROR: done [2025-03-03 07:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596867') end [2025-03-03 07:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:15:04] Production.INFO: 1 [2025-03-03 07:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:15:04] Production.INFO: ==22965== Releasing lock... [2025-03-03 07:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:15:05] Production.INFO: Total Charge 0 [2025-03-03 07:15:05] Production.INFO: CreateAllLog End [2025-03-03 07:15:05] Production.INFO: Account Balance End. [2025-03-03 07:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:15:05] Production.INFO: ==22960== Releasing lock... [2025-03-03 07:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:15:11] Production.ERROR: CronJobId end10 [2025-03-03 07:15:11] Production.INFO: ==22958== Releasing lock... [2025-03-03 07:15:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:15:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:15:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:15:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:15:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:15:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:15:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:15:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:15:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:15:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:15:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:15:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:15:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:15:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:15:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:15:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:15:14] Production.INFO: call_cost start [2025-03-03 07:15:14] Production.INFO: call_cost end [2025-03-03 07:15:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:15:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:15:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:15:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:15:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:15:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:15:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:15:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:15:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:15:14] Production.INFO: ==22954== Releasing lock... [2025-03-03 07:15:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:15:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:15:16] Production.INFO: count ==409 [2025-03-03 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596869', 'tblTempUsageDetail_20' ) start [2025-03-03 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596869', 'tblTempUsageDetail_20' ) end [2025-03-03 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596869', 'tblTempVendorCDR_20' ) start [2025-03-03 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596869', 'tblTempVendorCDR_20' ) end [2025-03-03 07:15:17] Production.INFO: ProcessCDR(1,14596869,1,1,2) [2025-03-03 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596869', 'tblTempUsageDetail_20' ) start [2025-03-03 07:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596869', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:15:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:15:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:15:24] Production.INFO: ==22963== Releasing lock... [2025-03-03 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:15:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:16:01] Production.INFO: ==23036== Lock acquired, processing the job... [2025-03-03 12:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:16:01] Production.INFO: neon service started [2025-03-03 12:16:01] Production.INFO: neon service started [2025-03-03 12:16:01] Production.INFO: ==23036== Releasing lock... [2025-03-03 12:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:16:01] Production.INFO: ==23040== Lock acquired, processing the job... [2025-03-03 12:16:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:16:01] Production.INFO: ==23040== Releasing lock... [2025-03-03 12:16:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:16:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:16:02] Production.INFO: ==23038== Lock acquired, processing the job... [2025-03-03 07:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:16:02] Production.INFO: ==23038== Releasing lock... [2025-03-03 07:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:16:03] Production.INFO: ==23048== Lock acquired, processing the job... [2025-03-03 07:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:16:03] Production.INFO: ==23044== Lock acquired, processing the job... [2025-03-03 07:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:16:03] Production.INFO: ==23046== Lock acquired, processing the job... [2025-03-03 07:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:16:03] Production.INFO: ==23052== Lock acquired, processing the job... [2025-03-03 07:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:16:03] Production.INFO: ==23050== Lock acquired, processing the job... [2025-03-03 07:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:16:03] Production.INFO: ==23054== Lock acquired, processing the job... [2025-03-03 07:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:16:03] Production.INFO: Account Balance Start. [2025-03-03 07:16:03] Production.INFO: CreateAllLog Start [2025-03-03 07:16:03] Production.INFO: 117 [2025-03-03 07:16:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:03] Production.INFO: count ==13 [2025-03-03 07:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:16:03] Production.INFO: count ==21 [2025-03-03 07:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596873') start [2025-03-03 07:16:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:16:03] Production.ERROR: done [2025-03-03 07:16:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:16:03] Production.INFO: ==23046== Releasing lock... [2025-03-03 07:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:16:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596873') end [2025-03-03 07:16:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:16:03] Production.INFO: 1 [2025-03-03 07:16:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:16:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: ==23054== Releasing lock... [2025-03-03 07:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:16:04] Production.ERROR: done [2025-03-03 07:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:16:04] Production.INFO: Total Charge 0 [2025-03-03 07:16:04] Production.INFO: CreateAllLog End [2025-03-03 07:16:05] Production.INFO: Account Balance End. [2025-03-03 07:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:16:05] Production.INFO: ==23050== Releasing lock... [2025-03-03 07:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:16:12] Production.ERROR: CronJobId end10 [2025-03-03 07:16:12] Production.INFO: ==23048== Releasing lock... [2025-03-03 07:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:16:15] Production.INFO: call_cost start [2025-03-03 07:16:15] Production.INFO: call_cost end [2025-03-03 07:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:16:15] Production.INFO: ==23044== Releasing lock... [2025-03-03 07:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:16:17] Production.INFO: count ==409 [2025-03-03 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596874', 'tblTempUsageDetail_20' ) start [2025-03-03 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596874', 'tblTempUsageDetail_20' ) end [2025-03-03 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596874', 'tblTempVendorCDR_20' ) start [2025-03-03 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596874', 'tblTempVendorCDR_20' ) end [2025-03-03 07:16:17] Production.INFO: ProcessCDR(1,14596874,1,1,2) [2025-03-03 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596874', 'tblTempUsageDetail_20' ) start [2025-03-03 07:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596874', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:16:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:16:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:16:25] Production.INFO: ==23052== Releasing lock... [2025-03-03 07:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:16:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:17:01] Production.INFO: ==23134== Lock acquired, processing the job... [2025-03-03 12:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:17:01] Production.INFO: neon service started [2025-03-03 12:17:01] Production.INFO: neon service started [2025-03-03 12:17:01] Production.INFO: ==23134== Releasing lock... [2025-03-03 12:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:17:02] Production.INFO: ==23137== Lock acquired, processing the job... [2025-03-03 07:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:17:02] Production.INFO: ==23139== Lock acquired, processing the job... [2025-03-03 12:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:17:02] Production.INFO: ==23139== Releasing lock... [2025-03-03 12:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:17:02] Production.INFO: ==23137== Releasing lock... [2025-03-03 07:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:17:03] Production.INFO: ==23145== Lock acquired, processing the job... [2025-03-03 07:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:17:03] Production.INFO: ==23141== Lock acquired, processing the job... [2025-03-03 07:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:17:03] Production.INFO: ==23149== Lock acquired, processing the job... [2025-03-03 07:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:17:03] Production.INFO: ==23143== Lock acquired, processing the job... [2025-03-03 07:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:17:03] Production.INFO: ==23147== Lock acquired, processing the job... [2025-03-03 07:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:17:03] Production.INFO: ==23152== Lock acquired, processing the job... [2025-03-03 07:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:17:03] Production.INFO: Account Balance Start. [2025-03-03 07:17:03] Production.INFO: CreateAllLog Start [2025-03-03 07:17:03] Production.INFO: 117 [2025-03-03 07:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:17:04] Production.ERROR: done [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: count ==13 [2025-03-03 07:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:17:04] Production.INFO: count ==21 [2025-03-03 07:17:04] Production.ERROR: done [2025-03-03 07:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: ==23143== Releasing lock... [2025-03-03 07:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596878') start [2025-03-03 07:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596878') end [2025-03-03 07:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:17:04] Production.INFO: 1 [2025-03-03 07:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: ==23152== Releasing lock... [2025-03-03 07:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:17:05] Production.INFO: Total Charge 0 [2025-03-03 07:17:05] Production.INFO: CreateAllLog End [2025-03-03 07:17:05] Production.INFO: Account Balance End. [2025-03-03 07:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:17:05] Production.INFO: ==23147== Releasing lock... [2025-03-03 07:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:17:11] Production.ERROR: CronJobId end10 [2025-03-03 07:17:11] Production.INFO: ==23145== Releasing lock... [2025-03-03 07:17:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:17:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:17:14] Production.INFO: call_cost start [2025-03-03 07:17:14] Production.INFO: call_cost end [2025-03-03 07:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:17:14] Production.INFO: ==23141== Releasing lock... [2025-03-03 07:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:17:16] Production.INFO: count ==409 [2025-03-03 07:17:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596879', 'tblTempUsageDetail_20' ) start [2025-03-03 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596879', 'tblTempUsageDetail_20' ) end [2025-03-03 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596879', 'tblTempVendorCDR_20' ) start [2025-03-03 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596879', 'tblTempVendorCDR_20' ) end [2025-03-03 07:17:16] Production.INFO: ProcessCDR(1,14596879,1,1,2) [2025-03-03 07:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596879', 'tblTempUsageDetail_20' ) start [2025-03-03 07:17:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596879', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:17:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:17:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:17:24] Production.INFO: ==23149== Releasing lock... [2025-03-03 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:18:01] Production.INFO: ==23225== Lock acquired, processing the job... [2025-03-03 12:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:18:01] Production.INFO: neon service started [2025-03-03 12:18:01] Production.INFO: neon service started [2025-03-03 12:18:01] Production.INFO: ==23225== Releasing lock... [2025-03-03 12:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:18:01] Production.INFO: ==23230== Lock acquired, processing the job... [2025-03-03 12:18:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:18:01] Production.INFO: ==23230== Releasing lock... [2025-03-03 12:18:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:18:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:18:01] Production.INFO: ==23228== Lock acquired, processing the job... [2025-03-03 07:18:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:18:02] Production.INFO: ==23228== Releasing lock... [2025-03-03 07:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:18:02] Production.INFO: ==23234== Lock acquired, processing the job... [2025-03-03 07:18:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:18:02] Production.INFO: ==23236== Lock acquired, processing the job... [2025-03-03 07:18:02] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:18:03] Production.INFO: ==23238== Lock acquired, processing the job... [2025-03-03 07:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:18:03] Production.INFO: ==23234== Releasing lock... [2025-03-03 07:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:18:03] Production.INFO: Account Balance Start. [2025-03-03 07:18:03] Production.INFO: CreateAllLog Start [2025-03-03 07:18:03] Production.INFO: 117 [2025-03-03 07:18:03] Production.INFO: ==23232== Lock acquired, processing the job... [2025-03-03 07:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: ==23240== Lock acquired, processing the job... [2025-03-03 07:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:18:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:18:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:18:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: ==23242== Lock acquired, processing the job... [2025-03-03 07:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:18:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.ERROR: done [2025-03-03 07:18:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:18:03] Production.INFO: count ==13 [2025-03-03 07:18:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:18:03] Production.INFO: count ==21 [2025-03-03 07:18:03] Production.ERROR: done [2025-03-03 07:18:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596883') start [2025-03-03 07:18:03] Production.INFO: Date 2025-02-18 [2025-03-03 07:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596883') end [2025-03-03 07:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:18:04] Production.INFO: 1 [2025-03-03 07:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:18:04] Production.INFO: ==23242== Releasing lock... [2025-03-03 07:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:18:04] Production.INFO: Total Charge 0 [2025-03-03 07:18:04] Production.INFO: CreateAllLog End [2025-03-03 07:18:04] Production.INFO: Account Balance End. [2025-03-03 07:18:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:18:04] Production.INFO: ==23238== Releasing lock... [2025-03-03 07:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:18:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:18:12] Production.ERROR: CronJobId end10 [2025-03-03 07:18:12] Production.INFO: ==23236== Releasing lock... [2025-03-03 07:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:18:14] Production.INFO: call_cost start [2025-03-03 07:18:14] Production.INFO: call_cost end [2025-03-03 07:18:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:18:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:18:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:18:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:18:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:18:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:18:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:18:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:18:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:18:14] Production.INFO: ==23232== Releasing lock... [2025-03-03 07:18:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:18:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:18:16] Production.INFO: count ==409 [2025-03-03 07:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596884', 'tblTempUsageDetail_20' ) start [2025-03-03 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596884', 'tblTempUsageDetail_20' ) end [2025-03-03 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596884', 'tblTempVendorCDR_20' ) start [2025-03-03 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596884', 'tblTempVendorCDR_20' ) end [2025-03-03 07:18:16] Production.INFO: ProcessCDR(1,14596884,1,1,2) [2025-03-03 07:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596884', 'tblTempUsageDetail_20' ) start [2025-03-03 07:18:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596884', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:18:24] Production.INFO: ==23240== Releasing lock... [2025-03-03 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:19:01] Production.INFO: ==23365== Lock acquired, processing the job... [2025-03-03 12:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:19:01] Production.INFO: neon service started [2025-03-03 12:19:01] Production.INFO: neon service started [2025-03-03 12:19:01] Production.INFO: ==23365== Releasing lock... [2025-03-03 12:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:19:02] Production.INFO: ==23369== Lock acquired, processing the job... [2025-03-03 12:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:19:02] Production.INFO: ==23369== Releasing lock... [2025-03-03 12:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:19:02] Production.INFO: ==23367== Lock acquired, processing the job... [2025-03-03 07:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:19:02] Production.INFO: ==23367== Releasing lock... [2025-03-03 07:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:19:03] Production.INFO: ==23379== Lock acquired, processing the job... [2025-03-03 07:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:19:03] Production.INFO: ==23383== Lock acquired, processing the job... [2025-03-03 07:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:19:03] Production.INFO: Account Balance Start. [2025-03-03 07:19:03] Production.INFO: CreateAllLog Start [2025-03-03 07:19:03] Production.INFO: 117 [2025-03-03 07:19:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:19:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:03] Production.INFO: count ==13 [2025-03-03 07:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:19:03] Production.INFO: count ==21 [2025-03-03 07:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596886') start [2025-03-03 07:19:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:03] Production.INFO: ==23375== Lock acquired, processing the job... [2025-03-03 07:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:19:03] Production.INFO: ==23377== Lock acquired, processing the job... [2025-03-03 07:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:19:03] Production.INFO: ==23373== Lock acquired, processing the job... [2025-03-03 07:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:19:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:03] Production.INFO: ==23381== Lock acquired, processing the job... [2025-03-03 07:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596886') end [2025-03-03 07:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:19:03] Production.INFO: 1 [2025-03-03 07:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:19:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:19:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:19:04] Production.INFO: ==23383== Releasing lock... [2025-03-03 07:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:19:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: ==23375== Releasing lock... [2025-03-03 07:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.ERROR: done [2025-03-03 07:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.ERROR: done [2025-03-03 07:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:19:05] Production.INFO: Total Charge 0 [2025-03-03 07:19:05] Production.INFO: CreateAllLog End [2025-03-03 07:19:05] Production.INFO: Account Balance End. [2025-03-03 07:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:19:05] Production.INFO: ==23379== Releasing lock... [2025-03-03 07:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:19:12] Production.ERROR: CronJobId end10 [2025-03-03 07:19:12] Production.INFO: ==23377== Releasing lock... [2025-03-03 07:19:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:19:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:19:15] Production.INFO: call_cost start [2025-03-03 07:19:15] Production.INFO: call_cost end [2025-03-03 07:19:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:19:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:19:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:19:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:19:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:19:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:19:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:19:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:19:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:19:15] Production.INFO: ==23373== Releasing lock... [2025-03-03 07:19:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:19:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:19:16] Production.INFO: count ==409 [2025-03-03 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596889', 'tblTempUsageDetail_20' ) start [2025-03-03 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596889', 'tblTempUsageDetail_20' ) end [2025-03-03 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596889', 'tblTempVendorCDR_20' ) start [2025-03-03 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596889', 'tblTempVendorCDR_20' ) end [2025-03-03 07:19:17] Production.INFO: ProcessCDR(1,14596889,1,1,2) [2025-03-03 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596889', 'tblTempUsageDetail_20' ) start [2025-03-03 07:19:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596889', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:19:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:19:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:19:25] Production.INFO: ==23381== Releasing lock... [2025-03-03 07:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:19:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:20:02] Production.INFO: ==23460== Lock acquired, processing the job... [2025-03-03 12:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:20:02] Production.INFO: neon service started [2025-03-03 12:20:02] Production.INFO: neon service started [2025-03-03 12:20:02] Production.INFO: ==23460== Releasing lock... [2025-03-03 12:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:20:02] Production.INFO: ==23462== Lock acquired, processing the job... [2025-03-03 07:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:20:02] Production.INFO: ==23464== Lock acquired, processing the job... [2025-03-03 12:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:20:03] Production.INFO: ==23464== Releasing lock... [2025-03-03 12:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:20:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:20:03] Production.INFO: ==23462== Releasing lock... [2025-03-03 07:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:20:04] Production.INFO: ==23466== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 07:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 07:20:04] Production.INFO: ==23468== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 07:20:04] Production.INFO: ==23466== Releasing lock... [2025-03-03 07:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 07:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:20:04] Production.INFO: ==23470== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:20:04] Production.INFO: ==23472== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:20:04] Production.INFO: ==23474== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:20:04] Production.INFO: ==23481== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:20:04] Production.INFO: ==23476== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:20:04] Production.INFO: ==23478== Lock acquired, processing the job... [2025-03-03 07:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 07:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:20:04] Production.INFO: Account Balance Start. [2025-03-03 07:20:04] Production.INFO: CreateAllLog Start [2025-03-03 07:20:04] Production.INFO: 117 [2025-03-03 07:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:04] Production.INFO: count ==13 [2025-03-03 07:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:20:04] Production.INFO: count ==21 [2025-03-03 07:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596893') start [2025-03-03 07:20:04] Production.INFO: ==23470== Releasing lock... [2025-03-03 07:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596893') end [2025-03-03 07:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:20:04] Production.INFO: 1 [2025-03-03 07:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:20:04] Production.INFO: ==23481== Releasing lock... [2025-03-03 07:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:20:04] Production.ERROR: done [2025-03-03 07:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:04] Production.ERROR: done [2025-03-03 07:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-12 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 07:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596894', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 07:20:05] Production.ERROR: done [2025-03-03 07:20:05] Production.INFO: Date 2025-02-13 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:20:05] Production.INFO: Date 2025-02-14 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:20:05] Production.INFO: Total Charge 0 [2025-03-03 07:20:05] Production.INFO: CreateAllLog End [2025-03-03 07:20:05] Production.INFO: Account Balance End. [2025-03-03 07:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:20:05] Production.INFO: ==23474== Releasing lock... [2025-03-03 07:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596894', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 07:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 07:20:09] Production.INFO: ProcessCDR(1,14596894,1,1,2) [2025-03-03 07:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596894,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596894,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 07:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 07:20:09] Production.INFO: ==23478== Releasing lock... [2025-03-03 07:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 07:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 07:20:13] Production.ERROR: CronJobId end10 [2025-03-03 07:20:13] Production.INFO: ==23472== Releasing lock... [2025-03-03 07:20:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:20:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:20:16] Production.INFO: call_cost start [2025-03-03 07:20:16] Production.INFO: call_cost end [2025-03-03 07:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:20:16] Production.INFO: ==23468== Releasing lock... [2025-03-03 07:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:20:17] Production.INFO: count ==409 [2025-03-03 07:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596895', 'tblTempUsageDetail_20' ) start [2025-03-03 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596895', 'tblTempUsageDetail_20' ) end [2025-03-03 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596895', 'tblTempVendorCDR_20' ) start [2025-03-03 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596895', 'tblTempVendorCDR_20' ) end [2025-03-03 07:20:17] Production.INFO: ProcessCDR(1,14596895,1,1,2) [2025-03-03 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596895', 'tblTempUsageDetail_20' ) start [2025-03-03 07:20:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596895', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:20:25] Production.INFO: ==23476== Releasing lock... [2025-03-03 07:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:21:01] Production.INFO: ==23558== Lock acquired, processing the job... [2025-03-03 12:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:21:01] Production.INFO: neon service started [2025-03-03 12:21:01] Production.INFO: neon service started [2025-03-03 12:21:01] Production.INFO: ==23558== Releasing lock... [2025-03-03 12:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:21:02] Production.INFO: ==23560== Lock acquired, processing the job... [2025-03-03 07:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:21:02] Production.INFO: ==23560== Releasing lock... [2025-03-03 07:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:21:02] Production.INFO: ==23562== Lock acquired, processing the job... [2025-03-03 12:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:21:02] Production.INFO: ==23562== Releasing lock... [2025-03-03 12:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:21:02] Production.INFO: ==23572== Lock acquired, processing the job... [2025-03-03 07:21:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:21:02] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:21:03] Production.ERROR: done [2025-03-03 07:21:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:21:03] Production.ERROR: done [2025-03-03 07:21:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:21:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:21:03] Production.INFO: ==23564== Lock acquired, processing the job... [2025-03-03 07:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:21:03] Production.INFO: ==23570== Lock acquired, processing the job... [2025-03-03 07:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:21:03] Production.INFO: Account Balance Start. [2025-03-03 07:21:03] Production.INFO: CreateAllLog Start [2025-03-03 07:21:03] Production.INFO: 117 [2025-03-03 07:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:21:03] Production.INFO: ==23566== Lock acquired, processing the job... [2025-03-03 07:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:21:03] Production.INFO: ==23568== Lock acquired, processing the job... [2025-03-03 07:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:21:03] Production.INFO: ==23575== Lock acquired, processing the job... [2025-03-03 07:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:21:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:03] Production.INFO: count ==13 [2025-03-03 07:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:21:03] Production.INFO: count ==21 [2025-03-03 07:21:03] Production.INFO: ==23566== Releasing lock... [2025-03-03 07:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596900') start [2025-03-03 07:21:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596900') end [2025-03-03 07:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:21:04] Production.INFO: 1 [2025-03-03 07:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: ==23575== Releasing lock... [2025-03-03 07:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:21:04] Production.INFO: Total Charge 0 [2025-03-03 07:21:04] Production.INFO: CreateAllLog End [2025-03-03 07:21:04] Production.INFO: Account Balance End. [2025-03-03 07:21:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:21:04] Production.INFO: ==23570== Releasing lock... [2025-03-03 07:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:21:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:21:11] Production.ERROR: CronJobId end10 [2025-03-03 07:21:11] Production.INFO: ==23568== Releasing lock... [2025-03-03 07:21:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:21:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:21:14] Production.INFO: call_cost start [2025-03-03 07:21:14] Production.INFO: call_cost end [2025-03-03 07:21:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:21:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:21:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:21:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:21:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:21:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:21:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:21:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:21:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:21:14] Production.INFO: ==23564== Releasing lock... [2025-03-03 07:21:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:21:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:21:15] Production.INFO: count ==409 [2025-03-03 07:21:15] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:21:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:21:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596896', 'tblTempUsageDetail_20' ) start [2025-03-03 07:21:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596896', 'tblTempUsageDetail_20' ) end [2025-03-03 07:21:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596896', 'tblTempVendorCDR_20' ) start [2025-03-03 07:21:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596896', 'tblTempVendorCDR_20' ) end [2025-03-03 07:21:15] Production.INFO: ProcessCDR(1,14596896,1,1,2) [2025-03-03 07:21:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596896', 'tblTempUsageDetail_20' ) start [2025-03-03 07:21:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596896', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:21:24] Production.INFO: ==23572== Releasing lock... [2025-03-03 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:21:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:22:02] Production.INFO: ==23652== Lock acquired, processing the job... [2025-03-03 12:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:22:02] Production.INFO: neon service started [2025-03-03 12:22:02] Production.INFO: neon service started [2025-03-03 12:22:02] Production.INFO: ==23652== Releasing lock... [2025-03-03 12:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:22:02] Production.INFO: ==23655== Lock acquired, processing the job... [2025-03-03 07:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:22:02] Production.INFO: ==23655== Releasing lock... [2025-03-03 07:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:22:02] Production.INFO: ==23657== Lock acquired, processing the job... [2025-03-03 12:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:22:03] Production.INFO: ==23657== Releasing lock... [2025-03-03 12:22:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:22:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:22:03] Production.INFO: ==23668== Lock acquired, processing the job... [2025-03-03 07:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:22:04] Production.INFO: ==23670== Lock acquired, processing the job... [2025-03-03 07:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:22:04] Production.INFO: ==23659== Lock acquired, processing the job... [2025-03-03 07:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:22:04] Production.INFO: ==23661== Lock acquired, processing the job... [2025-03-03 07:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:22:04] Production.INFO: ==23665== Lock acquired, processing the job... [2025-03-03 07:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:22:04] Production.INFO: ==23663== Lock acquired, processing the job... [2025-03-03 07:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:22:04] Production.INFO: count ==13 [2025-03-03 07:22:04] Production.INFO: Account Balance Start. [2025-03-03 07:22:04] Production.INFO: CreateAllLog Start [2025-03-03 07:22:04] Production.INFO: 117 [2025-03-03 07:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:22:04] Production.INFO: count ==21 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596901') start [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:22:04] Production.ERROR: done [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596901') end [2025-03-03 07:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:22:04] Production.INFO: 1 [2025-03-03 07:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: ==23670== Releasing lock... [2025-03-03 07:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:22:04] Production.INFO: ==23661== Releasing lock... [2025-03-03 07:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:22:04] Production.ERROR: done [2025-03-03 07:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:22:05] Production.INFO: Total Charge 0 [2025-03-03 07:22:05] Production.INFO: CreateAllLog End [2025-03-03 07:22:05] Production.INFO: Account Balance End. [2025-03-03 07:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:22:05] Production.INFO: ==23665== Releasing lock... [2025-03-03 07:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:22:14] Production.ERROR: CronJobId end10 [2025-03-03 07:22:14] Production.INFO: ==23663== Releasing lock... [2025-03-03 07:22:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:22:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:22:16] Production.INFO: count ==409 [2025-03-03 07:22:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:22:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:22:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:22:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:22:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:22:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:22:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:22:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:22:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:22:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:22:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:22:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:22:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:22:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596905', 'tblTempUsageDetail_20' ) start [2025-03-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596905', 'tblTempUsageDetail_20' ) end [2025-03-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596905', 'tblTempVendorCDR_20' ) start [2025-03-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596905', 'tblTempVendorCDR_20' ) end [2025-03-03 07:22:17] Production.INFO: ProcessCDR(1,14596905,1,1,2) [2025-03-03 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:22:17] Production.INFO: call_cost start [2025-03-03 07:22:17] Production.INFO: call_cost end [2025-03-03 07:22:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:22:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:22:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:22:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:22:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:22:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:22:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:22:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:22:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:22:17] Production.INFO: ==23659== Releasing lock... [2025-03-03 07:22:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:22:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596905', 'tblTempUsageDetail_20' ) start [2025-03-03 07:22:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596905', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:22:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:22:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:22:26] Production.INFO: ==23668== Releasing lock... [2025-03-03 07:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:22:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:23:01] Production.INFO: ==23744== Lock acquired, processing the job... [2025-03-03 12:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:23:01] Production.INFO: neon service started [2025-03-03 12:23:01] Production.INFO: neon service started [2025-03-03 12:23:01] Production.INFO: ==23744== Releasing lock... [2025-03-03 12:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:23:02] Production.INFO: ==23746== Lock acquired, processing the job... [2025-03-03 07:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:23:02] Production.INFO: ==23746== Releasing lock... [2025-03-03 07:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:23:02] Production.INFO: ==23748== Lock acquired, processing the job... [2025-03-03 12:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:23:02] Production.INFO: ==23748== Releasing lock... [2025-03-03 12:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:23:03] Production.INFO: ==23752== Lock acquired, processing the job... [2025-03-03 07:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:23:03] Production.INFO: ==23750== Lock acquired, processing the job... [2025-03-03 07:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:23:03] Production.INFO: ==23758== Lock acquired, processing the job... [2025-03-03 07:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:23:03] Production.INFO: ==23754== Lock acquired, processing the job... [2025-03-03 07:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:23:03] Production.INFO: ==23756== Lock acquired, processing the job... [2025-03-03 07:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:23:03] Production.INFO: ==23760== Lock acquired, processing the job... [2025-03-03 07:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:23:03] Production.INFO: ==23752== Releasing lock... [2025-03-03 07:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:23:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:23:04] Production.ERROR: done [2025-03-03 07:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:23:04] Production.INFO: Account Balance Start. [2025-03-03 07:23:04] Production.INFO: CreateAllLog Start [2025-03-03 07:23:04] Production.INFO: 117 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: count ==13 [2025-03-03 07:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:23:04] Production.INFO: count ==21 [2025-03-03 07:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596909') start [2025-03-03 07:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:23:04] Production.ERROR: done [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596909') end [2025-03-03 07:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:23:04] Production.INFO: 1 [2025-03-03 07:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: ==23760== Releasing lock... [2025-03-03 07:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:23:05] Production.INFO: Total Charge 0 [2025-03-03 07:23:05] Production.INFO: CreateAllLog End [2025-03-03 07:23:05] Production.INFO: Account Balance End. [2025-03-03 07:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:23:05] Production.INFO: ==23756== Releasing lock... [2025-03-03 07:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:23:12] Production.ERROR: CronJobId end10 [2025-03-03 07:23:12] Production.INFO: ==23754== Releasing lock... [2025-03-03 07:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:23:15] Production.INFO: call_cost start [2025-03-03 07:23:15] Production.INFO: call_cost end [2025-03-03 07:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:23:15] Production.INFO: ==23750== Releasing lock... [2025-03-03 07:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:23:16] Production.INFO: count ==409 [2025-03-03 07:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596910', 'tblTempUsageDetail_20' ) start [2025-03-03 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596910', 'tblTempUsageDetail_20' ) end [2025-03-03 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596910', 'tblTempVendorCDR_20' ) start [2025-03-03 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596910', 'tblTempVendorCDR_20' ) end [2025-03-03 07:23:16] Production.INFO: ProcessCDR(1,14596910,1,1,2) [2025-03-03 07:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596910', 'tblTempUsageDetail_20' ) start [2025-03-03 07:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596910', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:23:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:23:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:23:25] Production.INFO: ==23758== Releasing lock... [2025-03-03 07:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:23:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:24:02] Production.INFO: ==23841== Lock acquired, processing the job... [2025-03-03 12:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:24:02] Production.INFO: neon service started [2025-03-03 12:24:02] Production.INFO: neon service started [2025-03-03 12:24:02] Production.INFO: ==23841== Releasing lock... [2025-03-03 12:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:24:02] Production.INFO: ==23843== Lock acquired, processing the job... [2025-03-03 07:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:24:02] Production.INFO: ==23843== Releasing lock... [2025-03-03 07:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:24:03] Production.INFO: ==23845== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:24:03] Production.INFO: ==23845== Releasing lock... [2025-03-03 12:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:24:03] Production.INFO: ==23847== Lock acquired, processing the job... [2025-03-03 07:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:24:03] Production.INFO: ==23849== Lock acquired, processing the job... [2025-03-03 07:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:24:03] Production.INFO: ==23851== Lock acquired, processing the job... [2025-03-03 07:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:24:04] Production.INFO: ==23853== Lock acquired, processing the job... [2025-03-03 07:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:24:04] Production.INFO: ==23849== Releasing lock... [2025-03-03 07:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:24:04] Production.INFO: ==23855== Lock acquired, processing the job... [2025-03-03 07:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:24:04] Production.INFO: ==23857== Lock acquired, processing the job... [2025-03-03 07:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:24:04] Production.INFO: Account Balance Start. [2025-03-03 07:24:04] Production.INFO: CreateAllLog Start [2025-03-03 07:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:24:04] Production.INFO: 117 [2025-03-03 07:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:24:04] Production.INFO: count ==13 [2025-03-03 07:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:24:04] Production.INFO: count ==21 [2025-03-03 07:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596914') start [2025-03-03 07:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.ERROR: done [2025-03-03 07:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596914') end [2025-03-03 07:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:24:04] Production.INFO: 1 [2025-03-03 07:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:04] Production.INFO: ==23857== Releasing lock... [2025-03-03 07:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:24:05] Production.ERROR: done [2025-03-03 07:24:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:24:05] Production.INFO: Total Charge 0 [2025-03-03 07:24:05] Production.INFO: CreateAllLog End [2025-03-03 07:24:05] Production.INFO: Account Balance End. [2025-03-03 07:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:24:05] Production.INFO: ==23853== Releasing lock... [2025-03-03 07:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:24:12] Production.ERROR: CronJobId end10 [2025-03-03 07:24:12] Production.INFO: ==23851== Releasing lock... [2025-03-03 07:24:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:24:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:24:14] Production.INFO: call_cost start [2025-03-03 07:24:14] Production.INFO: call_cost end [2025-03-03 07:24:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:24:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:24:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:24:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:24:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:24:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:24:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:24:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:24:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:24:14] Production.INFO: ==23847== Releasing lock... [2025-03-03 07:24:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:24:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:24:16] Production.INFO: count ==409 [2025-03-03 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596915', 'tblTempUsageDetail_20' ) start [2025-03-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596915', 'tblTempUsageDetail_20' ) end [2025-03-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596915', 'tblTempVendorCDR_20' ) start [2025-03-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596915', 'tblTempVendorCDR_20' ) end [2025-03-03 07:24:17] Production.INFO: ProcessCDR(1,14596915,1,1,2) [2025-03-03 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596915', 'tblTempUsageDetail_20' ) start [2025-03-03 07:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596915', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:24:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:24:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:24:24] Production.INFO: ==23855== Releasing lock... [2025-03-03 07:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:24:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:25:01] Production.INFO: ==23935== Lock acquired, processing the job... [2025-03-03 12:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:25:01] Production.INFO: neon service started [2025-03-03 12:25:01] Production.INFO: neon service started [2025-03-03 12:25:01] Production.INFO: ==23935== Releasing lock... [2025-03-03 12:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:25:02] Production.INFO: ==23937== Lock acquired, processing the job... [2025-03-03 07:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:25:02] Production.INFO: ==23939== Lock acquired, processing the job... [2025-03-03 12:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:25:02] Production.INFO: ==23939== Releasing lock... [2025-03-03 12:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:25:02] Production.INFO: ==23937== Releasing lock... [2025-03-03 07:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:25:03] Production.INFO: ==23942== Lock acquired, processing the job... [2025-03-03 07:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:25:03] Production.INFO: ==23944== Lock acquired, processing the job... [2025-03-03 07:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:25:03] Production.INFO: ==23946== Lock acquired, processing the job... [2025-03-03 07:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:25:03] Production.INFO: ==23950== Lock acquired, processing the job... [2025-03-03 07:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:25:03] Production.INFO: ==23948== Lock acquired, processing the job... [2025-03-03 07:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:25:03] Production.INFO: ==23952== Lock acquired, processing the job... [2025-03-03 07:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:25:03] Production.INFO: Account Balance Start. [2025-03-03 07:25:03] Production.INFO: CreateAllLog Start [2025-03-03 07:25:03] Production.INFO: 117 [2025-03-03 07:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:25:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.INFO: count ==13 [2025-03-03 07:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:25:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:25:03] Production.INFO: ==23944== Releasing lock... [2025-03-03 07:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:25:03] Production.INFO: count ==21 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596919') start [2025-03-03 07:25:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596919') end [2025-03-03 07:25:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:25:03] Production.INFO: 1 [2025-03-03 07:25:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:25:03] Production.ERROR: done [2025-03-03 07:25:03] Production.INFO: ==23952== Releasing lock... [2025-03-03 07:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:25:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:25:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:25:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.ERROR: done [2025-03-03 07:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:25:04] Production.INFO: Total Charge 0 [2025-03-03 07:25:04] Production.INFO: CreateAllLog End [2025-03-03 07:25:04] Production.INFO: Account Balance End. [2025-03-03 07:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:25:05] Production.INFO: ==23948== Releasing lock... [2025-03-03 07:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:25:12] Production.ERROR: CronJobId end10 [2025-03-03 07:25:12] Production.INFO: ==23946== Releasing lock... [2025-03-03 07:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:25:15] Production.INFO: call_cost start [2025-03-03 07:25:15] Production.INFO: call_cost end [2025-03-03 07:25:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:25:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:25:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:25:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:25:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:25:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:25:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:25:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:25:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:25:15] Production.INFO: ==23942== Releasing lock... [2025-03-03 07:25:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:25:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:25:16] Production.INFO: count ==409 [2025-03-03 07:25:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596920', 'tblTempUsageDetail_20' ) start [2025-03-03 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596920', 'tblTempUsageDetail_20' ) end [2025-03-03 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596920', 'tblTempVendorCDR_20' ) start [2025-03-03 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596920', 'tblTempVendorCDR_20' ) end [2025-03-03 07:25:16] Production.INFO: ProcessCDR(1,14596920,1,1,2) [2025-03-03 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596920', 'tblTempUsageDetail_20' ) start [2025-03-03 07:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596920', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:25:24] Production.INFO: ==23950== Releasing lock... [2025-03-03 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:26:02] Production.INFO: ==24030== Lock acquired, processing the job... [2025-03-03 12:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:26:02] Production.INFO: neon service started [2025-03-03 12:26:02] Production.INFO: neon service started [2025-03-03 12:26:02] Production.INFO: ==24030== Releasing lock... [2025-03-03 12:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:26:02] Production.INFO: ==24032== Lock acquired, processing the job... [2025-03-03 07:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:26:02] Production.INFO: ==24034== Lock acquired, processing the job... [2025-03-03 12:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 07:26:02] Production.INFO: ==24032== Releasing lock... [2025-03-03 07:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:26:02] Production.INFO: ==24034== Releasing lock... [2025-03-03 12:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:26:03] Production.INFO: ==24042== Lock acquired, processing the job... [2025-03-03 07:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:26:03] Production.INFO: ==24047== Lock acquired, processing the job... [2025-03-03 07:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:26:03] Production.INFO: Account Balance Start. [2025-03-03 07:26:03] Production.INFO: CreateAllLog Start [2025-03-03 07:26:03] Production.INFO: 117 [2025-03-03 07:26:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:26:03] Production.INFO: ==24036== Lock acquired, processing the job... [2025-03-03 07:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:26:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:26:03] Production.INFO: count ==13 [2025-03-03 07:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:26:03] Production.INFO: ==24044== Lock acquired, processing the job... [2025-03-03 07:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:26:03] Production.INFO: count ==21 [2025-03-03 07:26:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596922') start [2025-03-03 07:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:03] Production.INFO: ==24038== Lock acquired, processing the job... [2025-03-03 07:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:26:04] Production.INFO: ==24040== Lock acquired, processing the job... [2025-03-03 07:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596922') end [2025-03-03 07:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:26:04] Production.INFO: 1 [2025-03-03 07:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: ==24047== Releasing lock... [2025-03-03 07:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.ERROR: done [2025-03-03 07:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: ==24038== Releasing lock... [2025-03-03 07:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.ERROR: done [2025-03-03 07:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:26:05] Production.INFO: Total Charge 0 [2025-03-03 07:26:05] Production.INFO: CreateAllLog End [2025-03-03 07:26:05] Production.INFO: Account Balance End. [2025-03-03 07:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:26:05] Production.INFO: ==24042== Releasing lock... [2025-03-03 07:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:26:12] Production.ERROR: CronJobId end10 [2025-03-03 07:26:12] Production.INFO: ==24040== Releasing lock... [2025-03-03 07:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:26:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:26:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:26:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:26:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:26:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:26:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:26:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:26:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:26:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:26:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:26:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:26:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:26:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:26:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:26:14] Production.INFO: call_cost start [2025-03-03 07:26:14] Production.INFO: call_cost end [2025-03-03 07:26:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:26:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:26:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:26:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:26:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:26:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:26:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:26:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:26:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:26:14] Production.INFO: ==24036== Releasing lock... [2025-03-03 07:26:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:26:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:26:16] Production.INFO: count ==409 [2025-03-03 07:26:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596925', 'tblTempUsageDetail_20' ) start [2025-03-03 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596925', 'tblTempUsageDetail_20' ) end [2025-03-03 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596925', 'tblTempVendorCDR_20' ) start [2025-03-03 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596925', 'tblTempVendorCDR_20' ) end [2025-03-03 07:26:16] Production.INFO: ProcessCDR(1,14596925,1,1,2) [2025-03-03 07:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596925', 'tblTempUsageDetail_20' ) start [2025-03-03 07:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596925', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:26:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:26:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:26:24] Production.INFO: ==24044== Releasing lock... [2025-03-03 07:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:27:01] Production.INFO: ==24123== Lock acquired, processing the job... [2025-03-03 12:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:27:01] Production.INFO: neon service started [2025-03-03 12:27:01] Production.INFO: neon service started [2025-03-03 12:27:01] Production.INFO: ==24123== Releasing lock... [2025-03-03 12:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:27:01] Production.INFO: ==24126== Lock acquired, processing the job... [2025-03-03 07:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:27:02] Production.INFO: ==24126== Releasing lock... [2025-03-03 07:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:27:02] Production.INFO: ==24128== Lock acquired, processing the job... [2025-03-03 12:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:27:02] Production.INFO: ==24128== Releasing lock... [2025-03-03 12:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:27:03] Production.INFO: ==24132== Lock acquired, processing the job... [2025-03-03 07:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:27:03] Production.INFO: ==24134== Lock acquired, processing the job... [2025-03-03 07:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:27:03] Production.INFO: ==24138== Lock acquired, processing the job... [2025-03-03 07:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:27:03] Production.INFO: ==24136== Lock acquired, processing the job... [2025-03-03 07:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:27:03] Production.INFO: ==24130== Lock acquired, processing the job... [2025-03-03 07:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:27:03] Production.INFO: ==24132== Releasing lock... [2025-03-03 07:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:27:03] Production.INFO: ==24140== Lock acquired, processing the job... [2025-03-03 07:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:27:03] Production.INFO: Account Balance Start. [2025-03-03 07:27:03] Production.INFO: CreateAllLog Start [2025-03-03 07:27:03] Production.INFO: 117 [2025-03-03 07:27:03] Production.ERROR: done [2025-03-03 07:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.ERROR: done [2025-03-03 07:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:27:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:27:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.INFO: count ==13 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:27:04] Production.INFO: count ==21 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596929') start [2025-03-03 07:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596929') end [2025-03-03 07:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:27:04] Production.INFO: 1 [2025-03-03 07:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: ==24140== Releasing lock... [2025-03-03 07:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:27:04] Production.INFO: Total Charge 0 [2025-03-03 07:27:04] Production.INFO: CreateAllLog End [2025-03-03 07:27:04] Production.INFO: Account Balance End. [2025-03-03 07:27:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:27:04] Production.INFO: ==24136== Releasing lock... [2025-03-03 07:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:27:11] Production.ERROR: CronJobId end10 [2025-03-03 07:27:11] Production.INFO: ==24134== Releasing lock... [2025-03-03 07:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:27:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:27:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:27:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:27:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:27:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:27:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:27:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:27:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:27:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:27:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:27:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:27:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:27:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:27:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:27:15] Production.INFO: call_cost start [2025-03-03 07:27:15] Production.INFO: call_cost end [2025-03-03 07:27:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:27:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:27:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:27:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:27:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:27:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:27:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:27:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:27:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:27:15] Production.INFO: ==24130== Releasing lock... [2025-03-03 07:27:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:27:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:27:15] Production.INFO: count ==409 [2025-03-03 07:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596930', 'tblTempUsageDetail_20' ) start [2025-03-03 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596930', 'tblTempUsageDetail_20' ) end [2025-03-03 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596930', 'tblTempVendorCDR_20' ) start [2025-03-03 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596930', 'tblTempVendorCDR_20' ) end [2025-03-03 07:27:16] Production.INFO: ProcessCDR(1,14596930,1,1,2) [2025-03-03 07:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596930', 'tblTempUsageDetail_20' ) start [2025-03-03 07:27:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596930', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:27:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:27:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:27:23] Production.INFO: ==24138== Releasing lock... [2025-03-03 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:27:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:28:01] Production.INFO: ==24211== Lock acquired, processing the job... [2025-03-03 12:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:28:01] Production.INFO: neon service started [2025-03-03 12:28:02] Production.INFO: neon service started [2025-03-03 12:28:02] Production.INFO: ==24211== Releasing lock... [2025-03-03 12:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:28:02] Production.INFO: ==24213== Lock acquired, processing the job... [2025-03-03 07:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:28:02] Production.INFO: ==24213== Releasing lock... [2025-03-03 07:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:28:02] Production.INFO: ==24215== Lock acquired, processing the job... [2025-03-03 12:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:28:02] Production.INFO: ==24215== Releasing lock... [2025-03-03 12:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:28:03] Production.INFO: ==24222== Lock acquired, processing the job... [2025-03-03 07:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:28:03] Production.INFO: ==24220== Lock acquired, processing the job... [2025-03-03 07:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:28:03] Production.INFO: ==24228== Lock acquired, processing the job... [2025-03-03 07:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:28:03] Production.INFO: ==24224== Lock acquired, processing the job... [2025-03-03 07:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:28:03] Production.INFO: ==24226== Lock acquired, processing the job... [2025-03-03 07:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:28:03] Production.INFO: ==24230== Lock acquired, processing the job... [2025-03-03 07:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:28:03] Production.INFO: Account Balance Start. [2025-03-03 07:28:03] Production.INFO: CreateAllLog Start [2025-03-03 07:28:03] Production.INFO: 117 [2025-03-03 07:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:03] Production.INFO: ==24222== Releasing lock... [2025-03-03 07:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:28:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:28:03] Production.INFO: count ==13 [2025-03-03 07:28:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:28:03] Production.INFO: count ==21 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596933') start [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596933') end [2025-03-03 07:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:28:04] Production.INFO: 1 [2025-03-03 07:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:28:04] Production.ERROR: done [2025-03-03 07:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: ==24230== Releasing lock... [2025-03-03 07:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.ERROR: done [2025-03-03 07:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:28:04] Production.INFO: Total Charge 0 [2025-03-03 07:28:04] Production.INFO: CreateAllLog End [2025-03-03 07:28:04] Production.INFO: Account Balance End. [2025-03-03 07:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:28:05] Production.INFO: ==24226== Releasing lock... [2025-03-03 07:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:28:13] Production.ERROR: CronJobId end10 [2025-03-03 07:28:14] Production.INFO: ==24224== Releasing lock... [2025-03-03 07:28:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:28:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:28:15] Production.INFO: call_cost start [2025-03-03 07:28:15] Production.INFO: call_cost end [2025-03-03 07:28:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:28:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:28:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:28:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:28:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:28:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:28:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:28:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:28:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:28:15] Production.INFO: ==24220== Releasing lock... [2025-03-03 07:28:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:28:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:28:16] Production.INFO: count ==409 [2025-03-03 07:28:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596935', 'tblTempUsageDetail_20' ) start [2025-03-03 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596935', 'tblTempUsageDetail_20' ) end [2025-03-03 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596935', 'tblTempVendorCDR_20' ) start [2025-03-03 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596935', 'tblTempVendorCDR_20' ) end [2025-03-03 07:28:16] Production.INFO: ProcessCDR(1,14596935,1,1,2) [2025-03-03 07:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596935', 'tblTempUsageDetail_20' ) start [2025-03-03 07:28:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596935', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:28:24] Production.INFO: ==24228== Releasing lock... [2025-03-03 07:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:29:01] Production.INFO: ==24306== Lock acquired, processing the job... [2025-03-03 12:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:29:01] Production.INFO: neon service started [2025-03-03 12:29:01] Production.INFO: neon service started [2025-03-03 12:29:01] Production.INFO: ==24306== Releasing lock... [2025-03-03 12:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:29:01] Production.INFO: ==24310== Lock acquired, processing the job... [2025-03-03 12:29:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:29:01] Production.INFO: ==24310== Releasing lock... [2025-03-03 12:29:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:29:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:29:01] Production.INFO: ==24308== Lock acquired, processing the job... [2025-03-03 07:29:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:29:02] Production.INFO: ==24308== Releasing lock... [2025-03-03 07:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:29:03] Production.INFO: ==24313== Lock acquired, processing the job... [2025-03-03 07:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:29:03] Production.INFO: ==24317== Lock acquired, processing the job... [2025-03-03 07:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:29:03] Production.INFO: ==24319== Lock acquired, processing the job... [2025-03-03 07:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:29:03] Production.INFO: Account Balance Start. [2025-03-03 07:29:03] Production.INFO: CreateAllLog Start [2025-03-03 07:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:29:03] Production.INFO: 117 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:29:03] Production.INFO: ==24315== Lock acquired, processing the job... [2025-03-03 07:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: ==24321== Lock acquired, processing the job... [2025-03-03 07:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:29:03] Production.INFO: ==24323== Lock acquired, processing the job... [2025-03-03 07:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:29:03] Production.INFO: count ==13 [2025-03-03 07:29:03] Production.INFO: ==24315== Releasing lock... [2025-03-03 07:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:29:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:29:03] Production.INFO: count ==21 [2025-03-03 07:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596939') start [2025-03-03 07:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596939') end [2025-03-03 07:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:29:04] Production.INFO: 1 [2025-03-03 07:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: ==24323== Releasing lock... [2025-03-03 07:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:29:04] Production.ERROR: done [2025-03-03 07:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.ERROR: done [2025-03-03 07:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:29:04] Production.INFO: Total Charge 0 [2025-03-03 07:29:04] Production.INFO: CreateAllLog End [2025-03-03 07:29:04] Production.INFO: Account Balance End. [2025-03-03 07:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:29:05] Production.INFO: ==24319== Releasing lock... [2025-03-03 07:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:29:12] Production.ERROR: CronJobId end10 [2025-03-03 07:29:12] Production.INFO: ==24317== Releasing lock... [2025-03-03 07:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:29:14] Production.INFO: call_cost start [2025-03-03 07:29:14] Production.INFO: call_cost end [2025-03-03 07:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:29:14] Production.INFO: ==24313== Releasing lock... [2025-03-03 07:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:29:16] Production.INFO: count ==409 [2025-03-03 07:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596940', 'tblTempUsageDetail_20' ) start [2025-03-03 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596940', 'tblTempUsageDetail_20' ) end [2025-03-03 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596940', 'tblTempVendorCDR_20' ) start [2025-03-03 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596940', 'tblTempVendorCDR_20' ) end [2025-03-03 07:29:16] Production.INFO: ProcessCDR(1,14596940,1,1,2) [2025-03-03 07:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596940', 'tblTempUsageDetail_20' ) start [2025-03-03 07:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596940', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:29:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:29:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:29:24] Production.INFO: ==24321== Releasing lock... [2025-03-03 07:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:30:01] Production.INFO: ==24401== Lock acquired, processing the job... [2025-03-03 12:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:30:01] Production.INFO: neon service started [2025-03-03 12:30:01] Production.INFO: neon service started [2025-03-03 12:30:01] Production.INFO: ==24401== Releasing lock... [2025-03-03 12:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:30:02] Production.INFO: ==24403== Lock acquired, processing the job... [2025-03-03 07:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:30:02] Production.INFO: ==24403== Releasing lock... [2025-03-03 07:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:30:02] Production.INFO: ==24405== Lock acquired, processing the job... [2025-03-03 12:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:30:02] Production.INFO: ==24405== Releasing lock... [2025-03-03 12:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:30:03] Production.INFO: ==24409== Lock acquired, processing the job... [2025-03-03 07:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:30:03] Production.INFO: ==24407== Lock acquired, processing the job... [2025-03-03 07:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 07:30:03] Production.INFO: ==24414== Lock acquired, processing the job... [2025-03-03 07:30:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 07:30:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:30:03] Production.ERROR: CronJob PID - 24409 [2025-03-03 07:30:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 07:30:03] Production.ERROR: CronJob ID - 5 [2025-03-03 07:30:03] Production.ERROR: CronJob Last Run Time 2025-03-03 07:30:00 [2025-03-03 07:30:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:30:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:30:04] Production.INFO: ==24412== Lock acquired, processing the job... [2025-03-03 07:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 07:30:04] Production.INFO: ==24407== Releasing lock... [2025-03-03 07:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 07:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:30:04] Production.INFO: ==24422== Lock acquired, processing the job... [2025-03-03 07:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:30:04] Production.INFO: ==24416== Lock acquired, processing the job... [2025-03-03 07:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:30:04] Production.INFO: ==24418== Lock acquired, processing the job... [2025-03-03 07:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:30:04] Production.INFO: ==24420== Lock acquired, processing the job... [2025-03-03 07:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 07:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:30:04] Production.INFO: Account Balance Start. [2025-03-03 07:30:04] Production.INFO: CreateAllLog Start [2025-03-03 07:30:04] Production.INFO: 117 [2025-03-03 07:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.INFO: count ==13 [2025-03-03 07:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:30:04] Production.INFO: count ==21 [2025-03-03 07:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596943') start [2025-03-03 07:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.INFO: ==24412== Releasing lock... [2025-03-03 07:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596943') end [2025-03-03 07:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:30:04] Production.INFO: 1 [2025-03-03 07:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.INFO: ==24422== Releasing lock... [2025-03-03 07:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:30:04] Production.ERROR: done [2025-03-03 07:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:30:04] Production.ERROR: done [2025-03-03 07:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 07:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596945', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 07:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.ERROR: done [2025-03-03 07:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:30:05] Production.INFO: Total Charge 0 [2025-03-03 07:30:05] Production.INFO: CreateAllLog End [2025-03-03 07:30:05] Production.INFO: Account Balance End. [2025-03-03 07:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:30:05] Production.INFO: ==24416== Releasing lock... [2025-03-03 07:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596945', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 07:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 07:30:09] Production.INFO: ProcessCDR(1,14596945,1,1,2) [2025-03-03 07:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596945,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596945,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 07:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 07:30:09] Production.INFO: ==24420== Releasing lock... [2025-03-03 07:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 07:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 07:30:14] Production.ERROR: CronJobId end10 [2025-03-03 07:30:14] Production.INFO: ==24414== Releasing lock... [2025-03-03 07:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:30:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:30:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:30:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:30:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:30:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:30:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:30:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:30:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:30:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:30:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:30:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:30:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:30:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:30:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:30:16] Production.INFO: call_cost start [2025-03-03 07:30:16] Production.INFO: call_cost end [2025-03-03 07:30:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:30:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:30:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:30:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:30:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:30:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:30:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:30:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:30:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:30:16] Production.INFO: ==24409== Releasing lock... [2025-03-03 07:30:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:30:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:30:17] Production.INFO: count ==409 [2025-03-03 07:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596946', 'tblTempUsageDetail_20' ) start [2025-03-03 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596946', 'tblTempUsageDetail_20' ) end [2025-03-03 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596946', 'tblTempVendorCDR_20' ) start [2025-03-03 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596946', 'tblTempVendorCDR_20' ) end [2025-03-03 07:30:17] Production.INFO: ProcessCDR(1,14596946,1,1,2) [2025-03-03 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596946', 'tblTempUsageDetail_20' ) start [2025-03-03 07:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596946', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:30:25] Production.INFO: ==24418== Releasing lock... [2025-03-03 07:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:30:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:31:01] Production.INFO: ==24496== Lock acquired, processing the job... [2025-03-03 12:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:31:01] Production.INFO: neon service started [2025-03-03 12:31:01] Production.INFO: neon service started [2025-03-03 12:31:01] Production.INFO: ==24496== Releasing lock... [2025-03-03 12:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:31:01] Production.INFO: ==24498== Lock acquired, processing the job... [2025-03-03 07:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:31:02] Production.INFO: ==24500== Lock acquired, processing the job... [2025-03-03 12:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:31:02] Production.INFO: ==24500== Releasing lock... [2025-03-03 12:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:31:02] Production.INFO: ==24498== Releasing lock... [2025-03-03 07:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:31:03] Production.INFO: ==24503== Lock acquired, processing the job... [2025-03-03 07:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:31:03] Production.INFO: ==24509== Lock acquired, processing the job... [2025-03-03 07:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:31:03] Production.INFO: ==24511== Lock acquired, processing the job... [2025-03-03 07:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:31:03] Production.INFO: Account Balance Start. [2025-03-03 07:31:03] Production.INFO: CreateAllLog Start [2025-03-03 07:31:03] Production.INFO: 117 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: ==24505== Lock acquired, processing the job... [2025-03-03 07:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:31:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: ==24507== Lock acquired, processing the job... [2025-03-03 07:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:31:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: ==24513== Lock acquired, processing the job... [2025-03-03 07:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:31:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:31:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.ERROR: done [2025-03-03 07:31:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-18 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:31:03] Production.INFO: Date 2025-02-19 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: count ==13 [2025-03-03 07:31:03] Production.INFO: Date 2025-02-20 [2025-03-03 07:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:31:03] Production.INFO: count ==21 [2025-03-03 07:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596950') start [2025-03-03 07:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: ==24505== Releasing lock... [2025-03-03 07:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596950') end [2025-03-03 07:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:31:04] Production.INFO: 1 [2025-03-03 07:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:31:04] Production.ERROR: done [2025-03-03 07:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: ==24513== Releasing lock... [2025-03-03 07:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:31:04] Production.INFO: Total Charge 0 [2025-03-03 07:31:04] Production.INFO: CreateAllLog End [2025-03-03 07:31:04] Production.INFO: Account Balance End. [2025-03-03 07:31:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:31:04] Production.INFO: ==24509== Releasing lock... [2025-03-03 07:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:31:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:31:11] Production.ERROR: CronJobId end10 [2025-03-03 07:31:11] Production.INFO: ==24507== Releasing lock... [2025-03-03 07:31:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:31:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:31:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:31:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:31:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:31:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:31:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:31:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:31:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:31:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:31:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:31:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:31:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:31:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:31:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:31:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:31:13] Production.INFO: call_cost start [2025-03-03 07:31:13] Production.INFO: call_cost end [2025-03-03 07:31:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:31:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:31:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:31:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:31:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:31:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:31:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:31:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:31:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:31:13] Production.INFO: ==24503== Releasing lock... [2025-03-03 07:31:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:31:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:31:16] Production.INFO: count ==409 [2025-03-03 07:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596951', 'tblTempUsageDetail_20' ) start [2025-03-03 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596951', 'tblTempUsageDetail_20' ) end [2025-03-03 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596951', 'tblTempVendorCDR_20' ) start [2025-03-03 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596951', 'tblTempVendorCDR_20' ) end [2025-03-03 07:31:16] Production.INFO: ProcessCDR(1,14596951,1,1,2) [2025-03-03 07:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596951', 'tblTempUsageDetail_20' ) start [2025-03-03 07:31:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596951', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:31:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:31:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:31:23] Production.INFO: ==24511== Releasing lock... [2025-03-03 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:31:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:32:01] Production.INFO: ==24585== Lock acquired, processing the job... [2025-03-03 12:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:32:01] Production.INFO: neon service started [2025-03-03 12:32:01] Production.INFO: neon service started [2025-03-03 12:32:01] Production.INFO: ==24585== Releasing lock... [2025-03-03 12:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:32:02] Production.INFO: ==24587== Lock acquired, processing the job... [2025-03-03 07:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:32:02] Production.INFO: ==24589== Lock acquired, processing the job... [2025-03-03 12:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:32:02] Production.INFO: ==24589== Releasing lock... [2025-03-03 12:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:32:02] Production.INFO: ==24587== Releasing lock... [2025-03-03 07:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:32:03] Production.INFO: ==24594== Lock acquired, processing the job... [2025-03-03 07:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:32:03] Production.INFO: ==24596== Lock acquired, processing the job... [2025-03-03 07:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:32:03] Production.INFO: ==24600== Lock acquired, processing the job... [2025-03-03 07:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:32:03] Production.INFO: ==24598== Lock acquired, processing the job... [2025-03-03 07:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:32:03] Production.INFO: ==24604== Lock acquired, processing the job... [2025-03-03 07:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:32:03] Production.INFO: ==24602== Lock acquired, processing the job... [2025-03-03 07:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:32:04] Production.INFO: Account Balance Start. [2025-03-03 07:32:04] Production.INFO: CreateAllLog Start [2025-03-03 07:32:04] Production.INFO: 117 [2025-03-03 07:32:04] Production.INFO: count ==13 [2025-03-03 07:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:32:04] Production.INFO: count ==21 [2025-03-03 07:32:04] Production.INFO: ==24596== Releasing lock... [2025-03-03 07:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596955') start [2025-03-03 07:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596955') end [2025-03-03 07:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:32:04] Production.INFO: 1 [2025-03-03 07:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: ==24604== Releasing lock... [2025-03-03 07:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.ERROR: done [2025-03-03 07:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.ERROR: done [2025-03-03 07:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:32:05] Production.INFO: Total Charge 0 [2025-03-03 07:32:05] Production.INFO: CreateAllLog End [2025-03-03 07:32:05] Production.INFO: Account Balance End. [2025-03-03 07:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:32:05] Production.INFO: ==24600== Releasing lock... [2025-03-03 07:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:32:12] Production.ERROR: CronJobId end10 [2025-03-03 07:32:12] Production.INFO: ==24598== Releasing lock... [2025-03-03 07:32:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:32:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:32:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:32:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:32:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:32:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:32:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:32:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:32:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:32:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:32:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:32:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:32:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:32:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:32:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:32:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:32:14] Production.INFO: call_cost start [2025-03-03 07:32:14] Production.INFO: call_cost end [2025-03-03 07:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:32:14] Production.INFO: ==24594== Releasing lock... [2025-03-03 07:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:32:16] Production.INFO: count ==409 [2025-03-03 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596956', 'tblTempUsageDetail_20' ) start [2025-03-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596956', 'tblTempUsageDetail_20' ) end [2025-03-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596956', 'tblTempVendorCDR_20' ) start [2025-03-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596956', 'tblTempVendorCDR_20' ) end [2025-03-03 07:32:17] Production.INFO: ProcessCDR(1,14596956,1,1,2) [2025-03-03 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596956', 'tblTempUsageDetail_20' ) start [2025-03-03 07:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596956', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:32:24] Production.INFO: ==24602== Releasing lock... [2025-03-03 07:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:33:01] Production.INFO: ==24676== Lock acquired, processing the job... [2025-03-03 12:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:33:01] Production.INFO: neon service started [2025-03-03 12:33:01] Production.INFO: neon service started [2025-03-03 12:33:01] Production.INFO: ==24676== Releasing lock... [2025-03-03 12:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:33:02] Production.INFO: ==24679== Lock acquired, processing the job... [2025-03-03 07:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:33:02] Production.INFO: ==24681== Lock acquired, processing the job... [2025-03-03 12:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:33:02] Production.INFO: ==24681== Releasing lock... [2025-03-03 12:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:33:02] Production.INFO: ==24679== Releasing lock... [2025-03-03 07:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:33:03] Production.INFO: ==24690== Lock acquired, processing the job... [2025-03-03 07:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:33:03] Production.INFO: ==24692== Lock acquired, processing the job... [2025-03-03 07:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:33:03] Production.INFO: ==24686== Lock acquired, processing the job... [2025-03-03 07:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:33:03] Production.INFO: Account Balance Start. [2025-03-03 07:33:03] Production.INFO: CreateAllLog Start [2025-03-03 07:33:03] Production.INFO: 117 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:33:03] Production.INFO: ==24688== Lock acquired, processing the job... [2025-03-03 07:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: ==24694== Lock acquired, processing the job... [2025-03-03 07:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:33:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: ==24696== Lock acquired, processing the job... [2025-03-03 07:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:33:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: Date 2025-02-18 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:03] Production.INFO: ==24688== Releasing lock... [2025-03-03 07:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:33:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:33:03] Production.INFO: Date 2025-02-19 [2025-03-03 07:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:33:04] Production.INFO: count ==13 [2025-03-03 07:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:33:04] Production.INFO: count ==21 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596960') start [2025-03-03 07:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596960') end [2025-03-03 07:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:33:04] Production.INFO: 1 [2025-03-03 07:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:33:04] Production.ERROR: done [2025-03-03 07:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:33:04] Production.INFO: ==24696== Releasing lock... [2025-03-03 07:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.ERROR: done [2025-03-03 07:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:33:04] Production.INFO: Total Charge 0 [2025-03-03 07:33:04] Production.INFO: CreateAllLog End [2025-03-03 07:33:04] Production.INFO: Account Balance End. [2025-03-03 07:33:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:33:04] Production.INFO: ==24692== Releasing lock... [2025-03-03 07:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:33:12] Production.ERROR: CronJobId end10 [2025-03-03 07:33:12] Production.INFO: ==24690== Releasing lock... [2025-03-03 07:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:33:15] Production.INFO: call_cost start [2025-03-03 07:33:15] Production.INFO: call_cost end [2025-03-03 07:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:33:15] Production.INFO: ==24686== Releasing lock... [2025-03-03 07:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:33:16] Production.INFO: count ==409 [2025-03-03 07:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596961', 'tblTempUsageDetail_20' ) start [2025-03-03 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596961', 'tblTempUsageDetail_20' ) end [2025-03-03 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596961', 'tblTempVendorCDR_20' ) start [2025-03-03 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596961', 'tblTempVendorCDR_20' ) end [2025-03-03 07:33:16] Production.INFO: ProcessCDR(1,14596961,1,1,2) [2025-03-03 07:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596961', 'tblTempUsageDetail_20' ) start [2025-03-03 07:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596961', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:33:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:33:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:33:24] Production.INFO: ==24694== Releasing lock... [2025-03-03 07:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:33:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:34:01] Production.INFO: ==24807== Lock acquired, processing the job... [2025-03-03 12:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:34:01] Production.INFO: neon service started [2025-03-03 12:34:01] Production.INFO: neon service started [2025-03-03 12:34:01] Production.INFO: ==24807== Releasing lock... [2025-03-03 12:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:34:02] Production.INFO: ==24812== Lock acquired, processing the job... [2025-03-03 07:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:34:02] Production.INFO: ==24814== Lock acquired, processing the job... [2025-03-03 12:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:34:02] Production.INFO: ==24814== Releasing lock... [2025-03-03 12:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:34:02] Production.INFO: ==24812== Releasing lock... [2025-03-03 07:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:34:03] Production.INFO: ==24822== Lock acquired, processing the job... [2025-03-03 07:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:34:03] Production.INFO: ==24824== Lock acquired, processing the job... [2025-03-03 07:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:34:03] Production.INFO: Account Balance Start. [2025-03-03 07:34:03] Production.INFO: CreateAllLog Start [2025-03-03 07:34:03] Production.INFO: 117 [2025-03-03 07:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:34:03] Production.INFO: ==24816== Lock acquired, processing the job... [2025-03-03 07:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: ==24818== Lock acquired, processing the job... [2025-03-03 07:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:34:04] Production.INFO: ==24820== Lock acquired, processing the job... [2025-03-03 07:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: ==24826== Lock acquired, processing the job... [2025-03-03 07:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.ERROR: done [2025-03-03 07:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: count ==13 [2025-03-03 07:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:34:04] Production.INFO: count ==21 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596965') start [2025-03-03 07:34:04] Production.ERROR: done [2025-03-03 07:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: ==24818== Releasing lock... [2025-03-03 07:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596965') end [2025-03-03 07:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:34:04] Production.INFO: 1 [2025-03-03 07:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: ==24826== Releasing lock... [2025-03-03 07:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:34:05] Production.INFO: Total Charge 0 [2025-03-03 07:34:05] Production.INFO: CreateAllLog End [2025-03-03 07:34:05] Production.INFO: Account Balance End. [2025-03-03 07:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:34:05] Production.INFO: ==24822== Releasing lock... [2025-03-03 07:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:34:13] Production.ERROR: CronJobId end10 [2025-03-03 07:34:13] Production.INFO: ==24820== Releasing lock... [2025-03-03 07:34:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:34:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:34:15] Production.INFO: call_cost start [2025-03-03 07:34:15] Production.INFO: call_cost end [2025-03-03 07:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:34:15] Production.INFO: ==24816== Releasing lock... [2025-03-03 07:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:34:16] Production.INFO: count ==409 [2025-03-03 07:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596966', 'tblTempUsageDetail_20' ) start [2025-03-03 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596966', 'tblTempUsageDetail_20' ) end [2025-03-03 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596966', 'tblTempVendorCDR_20' ) start [2025-03-03 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596966', 'tblTempVendorCDR_20' ) end [2025-03-03 07:34:16] Production.INFO: ProcessCDR(1,14596966,1,1,2) [2025-03-03 07:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596966', 'tblTempUsageDetail_20' ) start [2025-03-03 07:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596966', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:34:24] Production.INFO: ==24824== Releasing lock... [2025-03-03 07:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:35:02] Production.INFO: ==24894== Lock acquired, processing the job... [2025-03-03 12:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:35:02] Production.INFO: neon service started [2025-03-03 12:35:02] Production.INFO: neon service started [2025-03-03 12:35:02] Production.INFO: ==24894== Releasing lock... [2025-03-03 12:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:35:02] Production.INFO: ==24896== Lock acquired, processing the job... [2025-03-03 07:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:35:02] Production.INFO: ==24899== Lock acquired, processing the job... [2025-03-03 12:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:35:02] Production.INFO: ==24899== Releasing lock... [2025-03-03 12:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:35:03] Production.INFO: ==24896== Releasing lock... [2025-03-03 07:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:35:04] Production.INFO: ==24909== Lock acquired, processing the job... [2025-03-03 07:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:35:04] Production.INFO: ==24911== Lock acquired, processing the job... [2025-03-03 07:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:35:04] Production.INFO: ==24901== Lock acquired, processing the job... [2025-03-03 07:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:35:04] Production.INFO: ==24903== Lock acquired, processing the job... [2025-03-03 07:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:35:04] Production.INFO: ==24905== Lock acquired, processing the job... [2025-03-03 07:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:35:04] Production.INFO: ==24907== Lock acquired, processing the job... [2025-03-03 07:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:35:04] Production.INFO: count ==13 [2025-03-03 07:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:35:04] Production.INFO: count ==21 [2025-03-03 07:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596967') start [2025-03-03 07:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:35:04] Production.INFO: Account Balance Start. [2025-03-03 07:35:04] Production.INFO: CreateAllLog Start [2025-03-03 07:35:04] Production.INFO: 117 [2025-03-03 07:35:04] Production.ERROR: done [2025-03-03 07:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596967') end [2025-03-03 07:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:35:04] Production.INFO: 1 [2025-03-03 07:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:04] Production.INFO: ==24911== Releasing lock... [2025-03-03 07:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:04] Production.ERROR: done [2025-03-03 07:35:04] Production.INFO: ==24903== Releasing lock... [2025-03-03 07:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:35:05] Production.INFO: Total Charge 0 [2025-03-03 07:35:05] Production.INFO: CreateAllLog End [2025-03-03 07:35:05] Production.INFO: Account Balance End. [2025-03-03 07:35:06] Production.ERROR: CronJobId end 12 [2025-03-03 07:35:06] Production.INFO: ==24907== Releasing lock... [2025-03-03 07:35:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:35:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:35:13] Production.ERROR: CronJobId end10 [2025-03-03 07:35:13] Production.INFO: ==24905== Releasing lock... [2025-03-03 07:35:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:35:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:35:15] Production.INFO: call_cost start [2025-03-03 07:35:15] Production.INFO: call_cost end [2025-03-03 07:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:35:15] Production.INFO: ==24901== Releasing lock... [2025-03-03 07:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:35:16] Production.INFO: count ==409 [2025-03-03 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596971', 'tblTempUsageDetail_20' ) start [2025-03-03 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596971', 'tblTempUsageDetail_20' ) end [2025-03-03 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596971', 'tblTempVendorCDR_20' ) start [2025-03-03 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596971', 'tblTempVendorCDR_20' ) end [2025-03-03 07:35:17] Production.INFO: ProcessCDR(1,14596971,1,1,2) [2025-03-03 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596971', 'tblTempUsageDetail_20' ) start [2025-03-03 07:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596971', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:35:24] Production.INFO: ==24909== Releasing lock... [2025-03-03 07:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:36:01] Production.INFO: ==24986== Lock acquired, processing the job... [2025-03-03 12:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:36:01] Production.INFO: neon service started [2025-03-03 12:36:01] Production.INFO: neon service started [2025-03-03 12:36:01] Production.INFO: ==24986== Releasing lock... [2025-03-03 12:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:36:02] Production.INFO: ==24988== Lock acquired, processing the job... [2025-03-03 07:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:36:02] Production.INFO: ==24990== Lock acquired, processing the job... [2025-03-03 12:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:36:02] Production.INFO: ==24990== Releasing lock... [2025-03-03 12:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:36:02] Production.INFO: ==24988== Releasing lock... [2025-03-03 07:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:36:03] Production.INFO: ==24993== Lock acquired, processing the job... [2025-03-03 07:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:36:03] Production.INFO: ==24995== Lock acquired, processing the job... [2025-03-03 07:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:36:03] Production.INFO: ==24999== Lock acquired, processing the job... [2025-03-03 07:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:36:03] Production.INFO: ==24995== Releasing lock... [2025-03-03 07:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:36:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:36:03] Production.INFO: ==24997== Lock acquired, processing the job... [2025-03-03 07:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:36:03] Production.INFO: Account Balance Start. [2025-03-03 07:36:03] Production.INFO: CreateAllLog Start [2025-03-03 07:36:03] Production.INFO: 117 [2025-03-03 07:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: ==25001== Lock acquired, processing the job... [2025-03-03 07:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: ==25003== Lock acquired, processing the job... [2025-03-03 07:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:36:04] Production.INFO: count ==13 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:36:04] Production.INFO: count ==21 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596975') start [2025-03-03 07:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.ERROR: done [2025-03-03 07:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596975') end [2025-03-03 07:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:36:04] Production.INFO: 1 [2025-03-03 07:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:36:04] Production.ERROR: done [2025-03-03 07:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: ==25003== Releasing lock... [2025-03-03 07:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:36:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:36:04] Production.INFO: Total Charge 0 [2025-03-03 07:36:04] Production.INFO: CreateAllLog End [2025-03-03 07:36:05] Production.INFO: Account Balance End. [2025-03-03 07:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:36:05] Production.INFO: ==24999== Releasing lock... [2025-03-03 07:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:36:12] Production.ERROR: CronJobId end10 [2025-03-03 07:36:12] Production.INFO: ==24997== Releasing lock... [2025-03-03 07:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:36:14] Production.INFO: call_cost start [2025-03-03 07:36:14] Production.INFO: call_cost end [2025-03-03 07:36:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:36:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:36:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:36:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:36:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:36:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:36:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:36:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:36:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:36:14] Production.INFO: ==24993== Releasing lock... [2025-03-03 07:36:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:36:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:36:16] Production.INFO: count ==409 [2025-03-03 07:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596976', 'tblTempUsageDetail_20' ) start [2025-03-03 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596976', 'tblTempUsageDetail_20' ) end [2025-03-03 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596976', 'tblTempVendorCDR_20' ) start [2025-03-03 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596976', 'tblTempVendorCDR_20' ) end [2025-03-03 07:36:16] Production.INFO: ProcessCDR(1,14596976,1,1,2) [2025-03-03 07:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596976', 'tblTempUsageDetail_20' ) start [2025-03-03 07:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596976', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:36:24] Production.INFO: ==25001== Releasing lock... [2025-03-03 07:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:37:02] Production.INFO: ==25079== Lock acquired, processing the job... [2025-03-03 12:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:37:02] Production.INFO: neon service started [2025-03-03 12:37:02] Production.INFO: neon service started [2025-03-03 12:37:02] Production.INFO: ==25079== Releasing lock... [2025-03-03 12:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:37:02] Production.INFO: ==25081== Lock acquired, processing the job... [2025-03-03 07:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:37:02] Production.INFO: ==25083== Lock acquired, processing the job... [2025-03-03 12:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:37:03] Production.INFO: ==25083== Releasing lock... [2025-03-03 12:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:37:03] Production.INFO: ==25081== Releasing lock... [2025-03-03 07:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:37:04] Production.INFO: ==25090== Lock acquired, processing the job... [2025-03-03 07:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:37:04] Production.INFO: ==25094== Lock acquired, processing the job... [2025-03-03 07:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:37:04] Production.INFO: ==25086== Lock acquired, processing the job... [2025-03-03 07:37:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:37:04] Production.INFO: ==25088== Lock acquired, processing the job... [2025-03-03 07:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:37:04] Production.INFO: ==25092== Lock acquired, processing the job... [2025-03-03 07:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:37:04] Production.INFO: ==25096== Lock acquired, processing the job... [2025-03-03 07:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:37:04] Production.ERROR: done [2025-03-03 07:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:37:04] Production.INFO: Account Balance Start. [2025-03-03 07:37:04] Production.INFO: CreateAllLog Start [2025-03-03 07:37:04] Production.INFO: 117 [2025-03-03 07:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:37:04] Production.ERROR: done [2025-03-03 07:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:04] Production.INFO: ==25088== Releasing lock... [2025-03-03 07:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:04] Production.INFO: count ==13 [2025-03-03 07:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:37:04] Production.INFO: count ==21 [2025-03-03 07:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596980') start [2025-03-03 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:37:05] Production.INFO: Date 2025-02-13 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-14 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.ERROR: PBX CALL prc_importPBXExtension('14596980') end [2025-03-03 07:37:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:37:05] Production.INFO: 1 [2025-03-03 07:37:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:37:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: ==25096== Releasing lock... [2025-03-03 07:37:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:37:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:37:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:37:05] Production.INFO: Total Charge 0 [2025-03-03 07:37:05] Production.INFO: CreateAllLog End [2025-03-03 07:37:05] Production.INFO: Account Balance End. [2025-03-03 07:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:37:05] Production.INFO: ==25092== Releasing lock... [2025-03-03 07:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:37:12] Production.ERROR: CronJobId end10 [2025-03-03 07:37:12] Production.INFO: ==25090== Releasing lock... [2025-03-03 07:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:37:14] Production.INFO: call_cost start [2025-03-03 07:37:14] Production.INFO: call_cost end [2025-03-03 07:37:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:37:15] Production.INFO: ==25086== Releasing lock... [2025-03-03 07:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:37:16] Production.INFO: count ==409 [2025-03-03 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596981', 'tblTempUsageDetail_20' ) start [2025-03-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596981', 'tblTempUsageDetail_20' ) end [2025-03-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596981', 'tblTempVendorCDR_20' ) start [2025-03-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596981', 'tblTempVendorCDR_20' ) end [2025-03-03 07:37:17] Production.INFO: ProcessCDR(1,14596981,1,1,2) [2025-03-03 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596981', 'tblTempUsageDetail_20' ) start [2025-03-03 07:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596981', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:37:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:37:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:37:24] Production.INFO: ==25094== Releasing lock... [2025-03-03 07:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:38:01] Production.INFO: ==25166== Lock acquired, processing the job... [2025-03-03 12:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:38:01] Production.INFO: neon service started [2025-03-03 12:38:01] Production.INFO: neon service started [2025-03-03 12:38:01] Production.INFO: ==25166== Releasing lock... [2025-03-03 12:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:38:02] Production.INFO: ==25168== Lock acquired, processing the job... [2025-03-03 07:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:38:02] Production.INFO: ==25170== Lock acquired, processing the job... [2025-03-03 12:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:38:02] Production.INFO: ==25170== Releasing lock... [2025-03-03 12:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:38:02] Production.INFO: ==25168== Releasing lock... [2025-03-03 07:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:38:03] Production.INFO: ==25179== Lock acquired, processing the job... [2025-03-03 07:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:38:03] Production.INFO: ==25184== Lock acquired, processing the job... [2025-03-03 07:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:38:03] Production.INFO: Account Balance Start. [2025-03-03 07:38:03] Production.INFO: CreateAllLog Start [2025-03-03 07:38:03] Production.INFO: 117 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: ==25173== Lock acquired, processing the job... [2025-03-03 07:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:38:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: count ==13 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:38:03] Production.INFO: count ==21 [2025-03-03 07:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596983') start [2025-03-03 07:38:03] Production.INFO: ==25175== Lock acquired, processing the job... [2025-03-03 07:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:38:03] Production.INFO: ==25177== Lock acquired, processing the job... [2025-03-03 07:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:38:03] Production.INFO: ==25181== Lock acquired, processing the job... [2025-03-03 07:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:38:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596983') end [2025-03-03 07:38:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:38:03] Production.INFO: 1 [2025-03-03 07:38:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:38:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: Date 2025-02-18 [2025-03-03 07:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:03] Production.INFO: ==25184== Releasing lock... [2025-03-03 07:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:38:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: ==25175== Releasing lock... [2025-03-03 07:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:38:04] Production.ERROR: done [2025-03-03 07:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.ERROR: done [2025-03-03 07:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:38:04] Production.INFO: Total Charge 0 [2025-03-03 07:38:04] Production.INFO: CreateAllLog End [2025-03-03 07:38:05] Production.INFO: Account Balance End. [2025-03-03 07:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:38:05] Production.INFO: ==25179== Releasing lock... [2025-03-03 07:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:38:12] Production.ERROR: CronJobId end10 [2025-03-03 07:38:12] Production.INFO: ==25177== Releasing lock... [2025-03-03 07:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:38:14] Production.INFO: call_cost start [2025-03-03 07:38:14] Production.INFO: call_cost end [2025-03-03 07:38:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:38:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:38:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:38:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:38:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:38:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:38:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:38:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:38:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:38:14] Production.INFO: ==25173== Releasing lock... [2025-03-03 07:38:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:38:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:38:16] Production.INFO: count ==409 [2025-03-03 07:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596986', 'tblTempUsageDetail_20' ) start [2025-03-03 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596986', 'tblTempUsageDetail_20' ) end [2025-03-03 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596986', 'tblTempVendorCDR_20' ) start [2025-03-03 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596986', 'tblTempVendorCDR_20' ) end [2025-03-03 07:38:16] Production.INFO: ProcessCDR(1,14596986,1,1,2) [2025-03-03 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596986', 'tblTempUsageDetail_20' ) start [2025-03-03 07:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596986', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:38:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:38:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:38:25] Production.INFO: ==25181== Releasing lock... [2025-03-03 07:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:38:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:39:02] Production.INFO: ==25256== Lock acquired, processing the job... [2025-03-03 12:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:39:02] Production.INFO: neon service started [2025-03-03 12:39:02] Production.INFO: neon service started [2025-03-03 12:39:02] Production.INFO: ==25256== Releasing lock... [2025-03-03 12:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:39:02] Production.INFO: ==25258== Lock acquired, processing the job... [2025-03-03 07:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:39:02] Production.INFO: ==25258== Releasing lock... [2025-03-03 07:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:39:03] Production.INFO: ==25260== Lock acquired, processing the job... [2025-03-03 12:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:39:03] Production.INFO: ==25260== Releasing lock... [2025-03-03 12:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:39:03] Production.INFO: ==25264== Lock acquired, processing the job... [2025-03-03 07:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:39:03] Production.INFO: ==25272== Lock acquired, processing the job... [2025-03-03 07:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:39:03] Production.INFO: count ==13 [2025-03-03 07:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:39:03] Production.INFO: count ==21 [2025-03-03 07:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14596987') start [2025-03-03 07:39:04] Production.INFO: ==25262== Lock acquired, processing the job... [2025-03-03 07:39:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596987') end [2025-03-03 07:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:39:04] Production.INFO: 1 [2025-03-03 07:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:39:04] Production.INFO: ==25272== Releasing lock... [2025-03-03 07:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:39:04] Production.INFO: ==25264== Releasing lock... [2025-03-03 07:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:39:04] Production.INFO: ==25266== Lock acquired, processing the job... [2025-03-03 07:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:39:04] Production.INFO: ==25268== Lock acquired, processing the job... [2025-03-03 07:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:39:04] Production.INFO: ==25270== Lock acquired, processing the job... [2025-03-03 07:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:39:04] Production.INFO: Account Balance Start. [2025-03-03 07:39:04] Production.INFO: CreateAllLog Start [2025-03-03 07:39:04] Production.INFO: 117 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.ERROR: done [2025-03-03 07:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.ERROR: done [2025-03-03 07:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:39:05] Production.INFO: Total Charge 0 [2025-03-03 07:39:05] Production.INFO: CreateAllLog End [2025-03-03 07:39:05] Production.INFO: Account Balance End. [2025-03-03 07:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:39:05] Production.INFO: ==25268== Releasing lock... [2025-03-03 07:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:39:13] Production.ERROR: CronJobId end10 [2025-03-03 07:39:13] Production.INFO: ==25266== Releasing lock... [2025-03-03 07:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:39:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:39:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:39:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:39:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:39:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:39:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:39:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:39:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:39:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:39:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:39:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:39:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:39:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:39:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:39:15] Production.INFO: call_cost start [2025-03-03 07:39:15] Production.INFO: call_cost end [2025-03-03 07:39:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:39:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:39:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:39:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:39:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:39:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:39:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:39:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:39:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:39:15] Production.INFO: ==25262== Releasing lock... [2025-03-03 07:39:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:39:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:39:16] Production.INFO: count ==409 [2025-03-03 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596991', 'tblTempUsageDetail_20' ) start [2025-03-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596991', 'tblTempUsageDetail_20' ) end [2025-03-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596991', 'tblTempVendorCDR_20' ) start [2025-03-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596991', 'tblTempVendorCDR_20' ) end [2025-03-03 07:39:17] Production.INFO: ProcessCDR(1,14596991,1,1,2) [2025-03-03 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596991', 'tblTempUsageDetail_20' ) start [2025-03-03 07:39:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596991', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:39:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:39:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:39:24] Production.INFO: ==25270== Releasing lock... [2025-03-03 07:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:39:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:40:01] Production.INFO: ==25343== Lock acquired, processing the job... [2025-03-03 12:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:40:01] Production.INFO: neon service started [2025-03-03 12:40:01] Production.INFO: neon service started [2025-03-03 12:40:01] Production.INFO: ==25343== Releasing lock... [2025-03-03 12:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:40:02] Production.INFO: ==25347== Lock acquired, processing the job... [2025-03-03 07:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:40:02] Production.INFO: ==25347== Releasing lock... [2025-03-03 07:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:40:02] Production.INFO: ==25349== Lock acquired, processing the job... [2025-03-03 12:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:40:02] Production.INFO: ==25349== Releasing lock... [2025-03-03 12:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:40:03] Production.INFO: ==25352== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 07:40:03] Production.INFO: ==25354== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:40:03] Production.INFO: ==25356== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 07:40:03] Production.INFO: ==25362== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 07:40:03] Production.INFO: ==25352== Releasing lock... [2025-03-03 07:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 07:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:40:03] Production.INFO: ==25358== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:40:03] Production.INFO: ==25364== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 07:40:03] Production.INFO: ==25360== Lock acquired, processing the job... [2025-03-03 07:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:40:04] Production.INFO: ==25366== Lock acquired, processing the job... [2025-03-03 07:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:40:04] Production.INFO: Account Balance Start. [2025-03-03 07:40:04] Production.INFO: CreateAllLog Start [2025-03-03 07:40:04] Production.INFO: 117 [2025-03-03 07:40:04] Production.INFO: count ==13 [2025-03-03 07:40:04] Production.ERROR: done [2025-03-03 07:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:40:04] Production.INFO: count ==21 [2025-03-03 07:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596995') start [2025-03-03 07:40:04] Production.INFO: ==25356== Releasing lock... [2025-03-03 07:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596995') end [2025-03-03 07:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:40:04] Production.INFO: 1 [2025-03-03 07:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:04] Production.INFO: ==25366== Releasing lock... [2025-03-03 07:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:40:04] Production.ERROR: done [2025-03-03 07:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 07:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596996', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 07:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:04] Production.ERROR: done [2025-03-03 07:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:40:05] Production.INFO: Total Charge 0 [2025-03-03 07:40:05] Production.INFO: CreateAllLog End [2025-03-03 07:40:05] Production.INFO: Account Balance End. [2025-03-03 07:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:40:05] Production.INFO: ==25360== Releasing lock... [2025-03-03 07:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14596996', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 07:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 07:40:09] Production.INFO: ProcessCDR(1,14596996,1,1,2) [2025-03-03 07:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14596996,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14596996,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 07:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 07:40:09] Production.INFO: ==25364== Releasing lock... [2025-03-03 07:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 07:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 07:40:14] Production.ERROR: CronJobId end10 [2025-03-03 07:40:14] Production.INFO: ==25358== Releasing lock... [2025-03-03 07:40:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:40:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:40:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:40:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:40:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:40:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:40:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:40:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:40:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:40:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:40:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:40:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:40:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:40:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:40:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:40:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:40:16] Production.INFO: call_cost start [2025-03-03 07:40:16] Production.INFO: call_cost end [2025-03-03 07:40:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:40:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:40:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:40:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:40:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:40:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:40:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:40:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:40:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:40:16] Production.INFO: ==25354== Releasing lock... [2025-03-03 07:40:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:40:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:40:16] Production.INFO: count ==409 [2025-03-03 07:40:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:40:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596997', 'tblTempUsageDetail_20' ) start [2025-03-03 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14596997', 'tblTempUsageDetail_20' ) end [2025-03-03 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596997', 'tblTempVendorCDR_20' ) start [2025-03-03 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14596997', 'tblTempVendorCDR_20' ) end [2025-03-03 07:40:16] Production.INFO: ProcessCDR(1,14596997,1,1,2) [2025-03-03 07:40:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14596997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14596997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14596997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14596997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14596997', 'tblTempUsageDetail_20' ) start [2025-03-03 07:40:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14596997', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:40:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:40:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:40:26] Production.INFO: ==25362== Releasing lock... [2025-03-03 07:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:40:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:41:02] Production.INFO: ==25442== Lock acquired, processing the job... [2025-03-03 12:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:41:02] Production.INFO: neon service started [2025-03-03 12:41:02] Production.INFO: neon service started [2025-03-03 12:41:02] Production.INFO: ==25442== Releasing lock... [2025-03-03 12:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:41:02] Production.INFO: ==25444== Lock acquired, processing the job... [2025-03-03 07:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:41:02] Production.INFO: ==25447== Lock acquired, processing the job... [2025-03-03 12:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:41:02] Production.INFO: ==25447== Releasing lock... [2025-03-03 12:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:41:03] Production.INFO: ==25444== Releasing lock... [2025-03-03 07:41:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:41:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:41:03] Production.INFO: ==25457== Lock acquired, processing the job... [2025-03-03 07:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:41:03] Production.INFO: ==25459== Lock acquired, processing the job... [2025-03-03 07:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:41:04] Production.INFO: ==25449== Lock acquired, processing the job... [2025-03-03 07:41:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:41:04] Production.INFO: ==25451== Lock acquired, processing the job... [2025-03-03 07:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:41:04] Production.INFO: count ==13 [2025-03-03 07:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:41:04] Production.INFO: ==25453== Lock acquired, processing the job... [2025-03-03 07:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:41:04] Production.INFO: ==25455== Lock acquired, processing the job... [2025-03-03 07:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:41:04] Production.INFO: count ==21 [2025-03-03 07:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596998') start [2025-03-03 07:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:41:04] Production.ERROR: done [2025-03-03 07:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14596998') end [2025-03-03 07:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:41:04] Production.INFO: 1 [2025-03-03 07:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:41:04] Production.INFO: Account Balance Start. [2025-03-03 07:41:04] Production.INFO: CreateAllLog Start [2025-03-03 07:41:04] Production.INFO: 117 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:41:04] Production.INFO: ==25459== Releasing lock... [2025-03-03 07:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: ==25451== Releasing lock... [2025-03-03 07:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.ERROR: done [2025-03-03 07:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:41:05] Production.INFO: Total Charge 0 [2025-03-03 07:41:05] Production.INFO: CreateAllLog End [2025-03-03 07:41:05] Production.INFO: Account Balance End. [2025-03-03 07:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:41:05] Production.INFO: ==25455== Releasing lock... [2025-03-03 07:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:41:12] Production.ERROR: CronJobId end10 [2025-03-03 07:41:12] Production.INFO: ==25453== Releasing lock... [2025-03-03 07:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:41:15] Production.INFO: call_cost start [2025-03-03 07:41:15] Production.INFO: call_cost end [2025-03-03 07:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:41:15] Production.INFO: ==25449== Releasing lock... [2025-03-03 07:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:41:16] Production.INFO: count ==409 [2025-03-03 07:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597002', 'tblTempUsageDetail_20' ) start [2025-03-03 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597002', 'tblTempUsageDetail_20' ) end [2025-03-03 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597002', 'tblTempVendorCDR_20' ) start [2025-03-03 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597002', 'tblTempVendorCDR_20' ) end [2025-03-03 07:41:16] Production.INFO: ProcessCDR(1,14597002,1,1,2) [2025-03-03 07:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597002', 'tblTempUsageDetail_20' ) start [2025-03-03 07:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597002', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:41:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:41:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:41:24] Production.INFO: ==25457== Releasing lock... [2025-03-03 07:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:41:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:42:01] Production.INFO: ==25533== Lock acquired, processing the job... [2025-03-03 12:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:42:01] Production.INFO: neon service started [2025-03-03 12:42:01] Production.INFO: neon service started [2025-03-03 12:42:01] Production.INFO: ==25533== Releasing lock... [2025-03-03 12:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:42:02] Production.INFO: ==25537== Lock acquired, processing the job... [2025-03-03 12:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:42:02] Production.INFO: ==25537== Releasing lock... [2025-03-03 12:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:42:02] Production.INFO: ==25535== Lock acquired, processing the job... [2025-03-03 07:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:42:02] Production.INFO: ==25535== Releasing lock... [2025-03-03 07:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:42:03] Production.INFO: ==25541== Lock acquired, processing the job... [2025-03-03 07:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:42:03] Production.INFO: ==25545== Lock acquired, processing the job... [2025-03-03 07:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:42:03] Production.INFO: ==25547== Lock acquired, processing the job... [2025-03-03 07:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:42:03] Production.INFO: Account Balance Start. [2025-03-03 07:42:03] Production.INFO: CreateAllLog Start [2025-03-03 07:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:42:03] Production.INFO: 117 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:42:03] Production.INFO: ==25543== Lock acquired, processing the job... [2025-03-03 07:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: ==25550== Lock acquired, processing the job... [2025-03-03 07:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:42:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: ==25552== Lock acquired, processing the job... [2025-03-03 07:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-18 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:03] Production.INFO: Date 2025-02-19 [2025-03-03 07:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: ==25543== Releasing lock... [2025-03-03 07:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: count ==13 [2025-03-03 07:42:04] Production.ERROR: done [2025-03-03 07:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: count ==21 [2025-03-03 07:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597006') start [2025-03-03 07:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.ERROR: done [2025-03-03 07:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597006') end [2025-03-03 07:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:42:04] Production.INFO: 1 [2025-03-03 07:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:42:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:42:04] Production.INFO: Total Charge 0 [2025-03-03 07:42:04] Production.INFO: ==25552== Releasing lock... [2025-03-03 07:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:42:04] Production.INFO: CreateAllLog End [2025-03-03 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:42:04] Production.INFO: Account Balance End. [2025-03-03 07:42:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:42:04] Production.INFO: ==25547== Releasing lock... [2025-03-03 07:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:42:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:42:12] Production.ERROR: CronJobId end10 [2025-03-03 07:42:12] Production.INFO: ==25545== Releasing lock... [2025-03-03 07:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:42:14] Production.INFO: call_cost start [2025-03-03 07:42:14] Production.INFO: call_cost end [2025-03-03 07:42:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:42:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:42:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:42:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:42:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:42:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:42:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:42:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:42:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:42:14] Production.INFO: ==25541== Releasing lock... [2025-03-03 07:42:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:42:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:42:16] Production.INFO: count ==409 [2025-03-03 07:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597007', 'tblTempUsageDetail_20' ) start [2025-03-03 07:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597007', 'tblTempUsageDetail_20' ) end [2025-03-03 07:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597007', 'tblTempVendorCDR_20' ) start [2025-03-03 07:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597007', 'tblTempVendorCDR_20' ) end [2025-03-03 07:42:16] Production.INFO: ProcessCDR(1,14597007,1,1,2) [2025-03-03 07:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597007', 'tblTempUsageDetail_20' ) start [2025-03-03 07:42:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597007', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:42:24] Production.INFO: ==25550== Releasing lock... [2025-03-03 07:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:43:02] Production.INFO: ==25625== Lock acquired, processing the job... [2025-03-03 12:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:43:02] Production.INFO: neon service started [2025-03-03 12:43:02] Production.INFO: neon service started [2025-03-03 12:43:02] Production.INFO: ==25625== Releasing lock... [2025-03-03 12:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:43:02] Production.INFO: ==25629== Lock acquired, processing the job... [2025-03-03 07:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:43:02] Production.INFO: ==25631== Lock acquired, processing the job... [2025-03-03 12:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:43:02] Production.INFO: ==25631== Releasing lock... [2025-03-03 12:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:43:02] Production.INFO: ==25629== Releasing lock... [2025-03-03 07:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:43:03] Production.INFO: ==25636== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:43:03] Production.INFO: ==25644== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:43:03] Production.INFO: ==25642== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:43:03] Production.INFO: ==25634== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:43:03] Production.INFO: ==25638== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:43:03] Production.INFO: ==25640== Lock acquired, processing the job... [2025-03-03 07:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:43:04] Production.INFO: count ==13 [2025-03-03 07:43:04] Production.INFO: ==25636== Releasing lock... [2025-03-03 07:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:43:04] Production.INFO: count ==21 [2025-03-03 07:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597009') start [2025-03-03 07:43:04] Production.INFO: Account Balance Start. [2025-03-03 07:43:04] Production.INFO: CreateAllLog Start [2025-03-03 07:43:04] Production.INFO: 117 [2025-03-03 07:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.ERROR: done [2025-03-03 07:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597009') end [2025-03-03 07:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:43:04] Production.INFO: 1 [2025-03-03 07:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:43:04] Production.INFO: ==25644== Releasing lock... [2025-03-03 07:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.ERROR: done [2025-03-03 07:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:43:05] Production.INFO: Total Charge 0 [2025-03-03 07:43:05] Production.INFO: CreateAllLog End [2025-03-03 07:43:05] Production.INFO: Account Balance End. [2025-03-03 07:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:43:05] Production.INFO: ==25640== Releasing lock... [2025-03-03 07:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:43:13] Production.ERROR: CronJobId end10 [2025-03-03 07:43:13] Production.INFO: ==25638== Releasing lock... [2025-03-03 07:43:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:43:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:43:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:43:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:43:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:43:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:43:16] Production.INFO: call_cost start [2025-03-03 07:43:16] Production.INFO: call_cost end [2025-03-03 07:43:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:43:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:43:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:43:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:43:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:43:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:43:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:43:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:43:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:43:16] Production.INFO: ==25634== Releasing lock... [2025-03-03 07:43:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:43:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:43:16] Production.INFO: count ==409 [2025-03-03 07:43:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597012', 'tblTempUsageDetail_20' ) start [2025-03-03 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597012', 'tblTempUsageDetail_20' ) end [2025-03-03 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597012', 'tblTempVendorCDR_20' ) start [2025-03-03 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597012', 'tblTempVendorCDR_20' ) end [2025-03-03 07:43:16] Production.INFO: ProcessCDR(1,14597012,1,1,2) [2025-03-03 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597012', 'tblTempUsageDetail_20' ) start [2025-03-03 07:43:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597012', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:43:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:43:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:43:24] Production.INFO: ==25642== Releasing lock... [2025-03-03 07:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:44:01] Production.INFO: ==25716== Lock acquired, processing the job... [2025-03-03 12:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:44:01] Production.INFO: neon service started [2025-03-03 12:44:01] Production.INFO: neon service started [2025-03-03 12:44:01] Production.INFO: ==25716== Releasing lock... [2025-03-03 12:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:44:02] Production.INFO: ==25720== Lock acquired, processing the job... [2025-03-03 12:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:44:02] Production.INFO: ==25720== Releasing lock... [2025-03-03 12:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:44:02] Production.INFO: ==25718== Lock acquired, processing the job... [2025-03-03 07:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:44:02] Production.INFO: ==25718== Releasing lock... [2025-03-03 07:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:44:03] Production.INFO: ==25725== Lock acquired, processing the job... [2025-03-03 07:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:44:03] Production.INFO: ==25723== Lock acquired, processing the job... [2025-03-03 07:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:44:03] Production.INFO: ==25727== Lock acquired, processing the job... [2025-03-03 07:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:44:03] Production.INFO: ==25729== Lock acquired, processing the job... [2025-03-03 07:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:44:03] Production.INFO: ==25731== Lock acquired, processing the job... [2025-03-03 07:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:44:03] Production.INFO: ==25733== Lock acquired, processing the job... [2025-03-03 07:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:44:03] Production.INFO: Account Balance Start. [2025-03-03 07:44:03] Production.INFO: CreateAllLog Start [2025-03-03 07:44:03] Production.INFO: 117 [2025-03-03 07:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:44:03] Production.INFO: ==25725== Releasing lock... [2025-03-03 07:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: count ==13 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:44:04] Production.INFO: count ==21 [2025-03-03 07:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597016') start [2025-03-03 07:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597016') end [2025-03-03 07:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:44:04] Production.INFO: 1 [2025-03-03 07:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:44:04] Production.ERROR: done [2025-03-03 07:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: ==25733== Releasing lock... [2025-03-03 07:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.ERROR: done [2025-03-03 07:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:44:04] Production.INFO: Total Charge 0 [2025-03-03 07:44:04] Production.INFO: CreateAllLog End [2025-03-03 07:44:05] Production.INFO: Account Balance End. [2025-03-03 07:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:44:05] Production.INFO: ==25729== Releasing lock... [2025-03-03 07:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:44:11] Production.ERROR: CronJobId end10 [2025-03-03 07:44:11] Production.INFO: ==25727== Releasing lock... [2025-03-03 07:44:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:44:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:44:14] Production.INFO: call_cost start [2025-03-03 07:44:14] Production.INFO: call_cost end [2025-03-03 07:44:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:44:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:44:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:44:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:44:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:44:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:44:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:44:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:44:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:44:14] Production.INFO: ==25723== Releasing lock... [2025-03-03 07:44:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:44:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:44:16] Production.INFO: count ==409 [2025-03-03 07:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597017', 'tblTempUsageDetail_20' ) start [2025-03-03 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597017', 'tblTempUsageDetail_20' ) end [2025-03-03 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597017', 'tblTempVendorCDR_20' ) start [2025-03-03 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597017', 'tblTempVendorCDR_20' ) end [2025-03-03 07:44:16] Production.INFO: ProcessCDR(1,14597017,1,1,2) [2025-03-03 07:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597017', 'tblTempUsageDetail_20' ) start [2025-03-03 07:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597017', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:44:24] Production.INFO: ==25731== Releasing lock... [2025-03-03 07:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:44:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:45:02] Production.INFO: ==25804== Lock acquired, processing the job... [2025-03-03 12:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:45:02] Production.INFO: neon service started [2025-03-03 12:45:02] Production.INFO: neon service started [2025-03-03 12:45:02] Production.INFO: ==25804== Releasing lock... [2025-03-03 12:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:45:02] Production.INFO: ==25806== Lock acquired, processing the job... [2025-03-03 07:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:45:02] Production.INFO: ==25806== Releasing lock... [2025-03-03 07:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:45:02] Production.INFO: ==25808== Lock acquired, processing the job... [2025-03-03 12:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:45:03] Production.INFO: ==25808== Releasing lock... [2025-03-03 12:45:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:45:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:45:03] Production.INFO: ==25816== Lock acquired, processing the job... [2025-03-03 07:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:45:03] Production.INFO: Account Balance Start. [2025-03-03 07:45:03] Production.INFO: CreateAllLog Start [2025-03-03 07:45:03] Production.INFO: ==25820== Lock acquired, processing the job... [2025-03-03 07:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:45:03] Production.INFO: 117 [2025-03-03 07:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:03] Production.INFO: ==25810== Lock acquired, processing the job... [2025-03-03 07:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:45:03] Production.INFO: ==25814== Lock acquired, processing the job... [2025-03-03 07:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:45:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:03] Production.INFO: ==25812== Lock acquired, processing the job... [2025-03-03 07:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:45:03] Production.INFO: count ==13 [2025-03-03 07:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:45:03] Production.INFO: count ==21 [2025-03-03 07:45:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:03] Production.INFO: ==25818== Lock acquired, processing the job... [2025-03-03 07:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597019') start [2025-03-03 07:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597019') end [2025-03-03 07:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:45:04] Production.INFO: 1 [2025-03-03 07:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: ==25820== Releasing lock... [2025-03-03 07:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: ==25812== Releasing lock... [2025-03-03 07:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.ERROR: done [2025-03-03 07:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.ERROR: done [2025-03-03 07:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:45:04] Production.INFO: Total Charge 0 [2025-03-03 07:45:04] Production.INFO: CreateAllLog End [2025-03-03 07:45:05] Production.INFO: Account Balance End. [2025-03-03 07:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:45:05] Production.INFO: ==25816== Releasing lock... [2025-03-03 07:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:45:12] Production.ERROR: CronJobId end10 [2025-03-03 07:45:12] Production.INFO: ==25814== Releasing lock... [2025-03-03 07:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:45:15] Production.INFO: call_cost start [2025-03-03 07:45:15] Production.INFO: call_cost end [2025-03-03 07:45:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:45:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:45:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:45:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:45:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:45:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:45:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:45:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:45:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:45:15] Production.INFO: ==25810== Releasing lock... [2025-03-03 07:45:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:45:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:45:16] Production.INFO: count ==409 [2025-03-03 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597022', 'tblTempUsageDetail_20' ) start [2025-03-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597022', 'tblTempUsageDetail_20' ) end [2025-03-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597022', 'tblTempVendorCDR_20' ) start [2025-03-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597022', 'tblTempVendorCDR_20' ) end [2025-03-03 07:45:17] Production.INFO: ProcessCDR(1,14597022,1,1,2) [2025-03-03 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597022', 'tblTempUsageDetail_20' ) start [2025-03-03 07:45:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597022', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:45:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:45:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:45:24] Production.INFO: ==25818== Releasing lock... [2025-03-03 07:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:45:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:46:01] Production.INFO: ==25893== Lock acquired, processing the job... [2025-03-03 12:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:46:01] Production.INFO: neon service started [2025-03-03 12:46:01] Production.INFO: neon service started [2025-03-03 12:46:01] Production.INFO: ==25893== Releasing lock... [2025-03-03 12:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:46:01] Production.INFO: ==25895== Lock acquired, processing the job... [2025-03-03 07:46:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:46:02] Production.INFO: ==25895== Releasing lock... [2025-03-03 07:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:46:02] Production.INFO: ==25897== Lock acquired, processing the job... [2025-03-03 12:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:46:02] Production.INFO: ==25897== Releasing lock... [2025-03-03 12:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:46:03] Production.INFO: ==25900== Lock acquired, processing the job... [2025-03-03 07:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:46:03] Production.INFO: ==25902== Lock acquired, processing the job... [2025-03-03 07:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:46:03] Production.INFO: ==25904== Lock acquired, processing the job... [2025-03-03 07:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:46:03] Production.INFO: ==25906== Lock acquired, processing the job... [2025-03-03 07:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:46:03] Production.INFO: ==25908== Lock acquired, processing the job... [2025-03-03 07:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:46:03] Production.INFO: ==25902== Releasing lock... [2025-03-03 07:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:46:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:46:03] Production.INFO: ==25910== Lock acquired, processing the job... [2025-03-03 07:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:46:03] Production.INFO: Account Balance Start. [2025-03-03 07:46:03] Production.INFO: CreateAllLog Start [2025-03-03 07:46:03] Production.INFO: 117 [2025-03-03 07:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:46:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: count ==13 [2025-03-03 07:46:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:46:03] Production.INFO: count ==21 [2025-03-03 07:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597026') start [2025-03-03 07:46:04] Production.ERROR: done [2025-03-03 07:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597026') end [2025-03-03 07:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:46:04] Production.INFO: 1 [2025-03-03 07:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.ERROR: done [2025-03-03 07:46:04] Production.INFO: ==25910== Releasing lock... [2025-03-03 07:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:46:04] Production.INFO: Total Charge 0 [2025-03-03 07:46:04] Production.INFO: CreateAllLog End [2025-03-03 07:46:04] Production.INFO: Account Balance End. [2025-03-03 07:46:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:46:04] Production.INFO: ==25906== Releasing lock... [2025-03-03 07:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:46:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:46:12] Production.ERROR: CronJobId end10 [2025-03-03 07:46:12] Production.INFO: ==25904== Releasing lock... [2025-03-03 07:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:46:14] Production.INFO: call_cost start [2025-03-03 07:46:14] Production.INFO: call_cost end [2025-03-03 07:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:46:14] Production.INFO: ==25900== Releasing lock... [2025-03-03 07:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:46:16] Production.INFO: count ==409 [2025-03-03 07:46:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597027', 'tblTempUsageDetail_20' ) start [2025-03-03 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597027', 'tblTempUsageDetail_20' ) end [2025-03-03 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597027', 'tblTempVendorCDR_20' ) start [2025-03-03 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597027', 'tblTempVendorCDR_20' ) end [2025-03-03 07:46:16] Production.INFO: ProcessCDR(1,14597027,1,1,2) [2025-03-03 07:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597027', 'tblTempUsageDetail_20' ) start [2025-03-03 07:46:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597027', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:46:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:46:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:46:23] Production.INFO: ==25908== Releasing lock... [2025-03-03 07:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:46:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:47:02] Production.INFO: ==25982== Lock acquired, processing the job... [2025-03-03 12:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:47:02] Production.INFO: neon service started [2025-03-03 12:47:02] Production.INFO: neon service started [2025-03-03 12:47:02] Production.INFO: ==25982== Releasing lock... [2025-03-03 12:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:47:02] Production.INFO: ==25987== Lock acquired, processing the job... [2025-03-03 12:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:47:02] Production.INFO: ==25987== Releasing lock... [2025-03-03 12:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:47:02] Production.INFO: ==25985== Lock acquired, processing the job... [2025-03-03 07:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:47:02] Production.INFO: ==25985== Releasing lock... [2025-03-03 07:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:47:03] Production.INFO: ==25989== Lock acquired, processing the job... [2025-03-03 07:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:47:03] Production.INFO: ==25995== Lock acquired, processing the job... [2025-03-03 07:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:47:03] Production.INFO: ==25999== Lock acquired, processing the job... [2025-03-03 07:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:47:03] Production.INFO: Account Balance Start. [2025-03-03 07:47:03] Production.INFO: CreateAllLog Start [2025-03-03 07:47:03] Production.INFO: 117 [2025-03-03 07:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:47:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:03] Production.INFO: count ==13 [2025-03-03 07:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:47:03] Production.INFO: count ==21 [2025-03-03 07:47:03] Production.INFO: ==25991== Lock acquired, processing the job... [2025-03-03 07:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:47:03] Production.INFO: ==25993== Lock acquired, processing the job... [2025-03-03 07:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:47:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597030') start [2025-03-03 07:47:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:03] Production.INFO: ==25997== Lock acquired, processing the job... [2025-03-03 07:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597030') end [2025-03-03 07:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:47:04] Production.INFO: 1 [2025-03-03 07:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: ==25999== Releasing lock... [2025-03-03 07:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:47:04] Production.INFO: ==25991== Releasing lock... [2025-03-03 07:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:47:04] Production.ERROR: done [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.ERROR: done [2025-03-03 07:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:47:04] Production.INFO: Total Charge 0 [2025-03-03 07:47:04] Production.INFO: CreateAllLog End [2025-03-03 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:47:04] Production.INFO: Account Balance End. [2025-03-03 07:47:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:47:04] Production.INFO: ==25995== Releasing lock... [2025-03-03 07:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:47:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:47:11] Production.ERROR: CronJobId end10 [2025-03-03 07:47:11] Production.INFO: ==25993== Releasing lock... [2025-03-03 07:47:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:47:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:47:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:47:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:47:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:47:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:47:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:47:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:47:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:47:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:47:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:47:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:47:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:47:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:47:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:47:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:47:13] Production.INFO: call_cost start [2025-03-03 07:47:13] Production.INFO: call_cost end [2025-03-03 07:47:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:47:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:47:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:47:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:47:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:47:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:47:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:47:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:47:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:47:13] Production.INFO: ==25989== Releasing lock... [2025-03-03 07:47:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:47:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:47:16] Production.INFO: count ==409 [2025-03-03 07:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597032', 'tblTempUsageDetail_20' ) start [2025-03-03 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597032', 'tblTempUsageDetail_20' ) end [2025-03-03 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597032', 'tblTempVendorCDR_20' ) start [2025-03-03 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597032', 'tblTempVendorCDR_20' ) end [2025-03-03 07:47:16] Production.INFO: ProcessCDR(1,14597032,1,1,2) [2025-03-03 07:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597032', 'tblTempUsageDetail_20' ) start [2025-03-03 07:47:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597032', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:47:24] Production.INFO: ==25997== Releasing lock... [2025-03-03 07:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:47:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:48:01] Production.INFO: ==26070== Lock acquired, processing the job... [2025-03-03 12:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:48:01] Production.INFO: neon service started [2025-03-03 12:48:01] Production.INFO: neon service started [2025-03-03 12:48:01] Production.INFO: ==26070== Releasing lock... [2025-03-03 12:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:48:01] Production.INFO: ==26074== Lock acquired, processing the job... [2025-03-03 12:48:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:48:01] Production.INFO: ==26074== Releasing lock... [2025-03-03 12:48:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:48:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:48:01] Production.INFO: ==26072== Lock acquired, processing the job... [2025-03-03 07:48:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:48:02] Production.INFO: ==26072== Releasing lock... [2025-03-03 07:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:48:03] Production.INFO: ==26079== Lock acquired, processing the job... [2025-03-03 07:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:48:03] Production.INFO: ==26081== Lock acquired, processing the job... [2025-03-03 07:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:48:03] Production.INFO: ==26083== Lock acquired, processing the job... [2025-03-03 07:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:48:03] Production.INFO: ==26085== Lock acquired, processing the job... [2025-03-03 07:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:48:03] Production.INFO: ==26087== Lock acquired, processing the job... [2025-03-03 07:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:48:03] Production.INFO: ==26081== Releasing lock... [2025-03-03 07:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:48:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:48:03] Production.INFO: Account Balance Start. [2025-03-03 07:48:03] Production.INFO: CreateAllLog Start [2025-03-03 07:48:03] Production.INFO: 117 [2025-03-03 07:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:48:03] Production.INFO: ==26089== Lock acquired, processing the job... [2025-03-03 07:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:48:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:03] Production.INFO: count ==13 [2025-03-03 07:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:48:03] Production.INFO: count ==21 [2025-03-03 07:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597036') start [2025-03-03 07:48:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.ERROR: done [2025-03-03 07:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597036') end [2025-03-03 07:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:48:04] Production.INFO: 1 [2025-03-03 07:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: ==26089== Releasing lock... [2025-03-03 07:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.ERROR: done [2025-03-03 07:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:48:04] Production.INFO: Total Charge 0 [2025-03-03 07:48:04] Production.INFO: CreateAllLog End [2025-03-03 07:48:04] Production.INFO: Account Balance End. [2025-03-03 07:48:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:48:04] Production.INFO: ==26085== Releasing lock... [2025-03-03 07:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:48:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:48:12] Production.ERROR: CronJobId end10 [2025-03-03 07:48:12] Production.INFO: ==26083== Releasing lock... [2025-03-03 07:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:48:14] Production.INFO: call_cost start [2025-03-03 07:48:14] Production.INFO: call_cost end [2025-03-03 07:48:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:48:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:48:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:48:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:48:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:48:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:48:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:48:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:48:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:48:14] Production.INFO: ==26079== Releasing lock... [2025-03-03 07:48:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:48:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:48:16] Production.INFO: count ==409 [2025-03-03 07:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597037', 'tblTempUsageDetail_20' ) start [2025-03-03 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597037', 'tblTempUsageDetail_20' ) end [2025-03-03 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597037', 'tblTempVendorCDR_20' ) start [2025-03-03 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597037', 'tblTempVendorCDR_20' ) end [2025-03-03 07:48:16] Production.INFO: ProcessCDR(1,14597037,1,1,2) [2025-03-03 07:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597037', 'tblTempUsageDetail_20' ) start [2025-03-03 07:48:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597037', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:48:24] Production.INFO: ==26087== Releasing lock... [2025-03-03 07:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:49:01] Production.INFO: ==26165== Lock acquired, processing the job... [2025-03-03 12:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:49:01] Production.INFO: neon service started [2025-03-03 12:49:01] Production.INFO: neon service started [2025-03-03 12:49:01] Production.INFO: ==26165== Releasing lock... [2025-03-03 12:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:49:02] Production.INFO: ==26167== Lock acquired, processing the job... [2025-03-03 07:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:49:02] Production.INFO: ==26167== Releasing lock... [2025-03-03 07:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:49:02] Production.INFO: ==26169== Lock acquired, processing the job... [2025-03-03 12:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:49:02] Production.INFO: ==26169== Releasing lock... [2025-03-03 12:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:49:03] Production.INFO: ==26177== Lock acquired, processing the job... [2025-03-03 07:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:49:03] Production.INFO: Account Balance Start. [2025-03-03 07:49:03] Production.INFO: CreateAllLog Start [2025-03-03 07:49:03] Production.INFO: 117 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: ==26171== Lock acquired, processing the job... [2025-03-03 07:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:49:03] Production.INFO: Date 2025-02-13 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-14 [2025-03-03 07:49:03] Production.INFO: ==26173== Lock acquired, processing the job... [2025-03-03 07:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-15 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:49:03] Production.INFO: ==26175== Lock acquired, processing the job... [2025-03-03 07:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:49:03] Production.INFO: Date 2025-02-16 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: ==26181== Lock acquired, processing the job... [2025-03-03 07:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:49:03] Production.INFO: Date 2025-02-17 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: ==26179== Lock acquired, processing the job... [2025-03-03 07:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:49:03] Production.INFO: Date 2025-02-18 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-19 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:49:03] Production.INFO: count ==13 [2025-03-03 07:49:03] Production.INFO: Date 2025-02-20 [2025-03-03 07:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:49:03] Production.INFO: count ==21 [2025-03-03 07:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597041') start [2025-03-03 07:49:04] Production.INFO: ==26173== Releasing lock... [2025-03-03 07:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.ERROR: done [2025-03-03 07:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597041') end [2025-03-03 07:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:49:04] Production.INFO: 1 [2025-03-03 07:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: ==26181== Releasing lock... [2025-03-03 07:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:49:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.ERROR: done [2025-03-03 07:49:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:49:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:49:04] Production.INFO: Total Charge 0 [2025-03-03 07:49:04] Production.INFO: CreateAllLog End [2025-03-03 07:49:04] Production.INFO: Account Balance End. [2025-03-03 07:49:04] Production.ERROR: CronJobId end 12 [2025-03-03 07:49:04] Production.INFO: ==26177== Releasing lock... [2025-03-03 07:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:49:11] Production.ERROR: CronJobId end10 [2025-03-03 07:49:11] Production.INFO: ==26175== Releasing lock... [2025-03-03 07:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:49:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:49:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:49:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:49:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:49:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:49:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:49:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:49:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:49:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:49:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:49:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:49:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:49:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:49:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:49:14] Production.INFO: call_cost start [2025-03-03 07:49:14] Production.INFO: call_cost end [2025-03-03 07:49:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:49:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:49:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:49:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:49:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:49:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:49:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:49:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:49:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:49:14] Production.INFO: ==26171== Releasing lock... [2025-03-03 07:49:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:49:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:49:16] Production.INFO: count ==409 [2025-03-03 07:49:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597042', 'tblTempUsageDetail_20' ) start [2025-03-03 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597042', 'tblTempUsageDetail_20' ) end [2025-03-03 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597042', 'tblTempVendorCDR_20' ) start [2025-03-03 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597042', 'tblTempVendorCDR_20' ) end [2025-03-03 07:49:16] Production.INFO: ProcessCDR(1,14597042,1,1,2) [2025-03-03 07:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597042', 'tblTempUsageDetail_20' ) start [2025-03-03 07:49:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597042', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:49:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:49:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:49:24] Production.INFO: ==26179== Releasing lock... [2025-03-03 07:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:49:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:50:02] Production.INFO: ==26291== Lock acquired, processing the job... [2025-03-03 12:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:50:02] Production.INFO: neon service started [2025-03-03 12:50:02] Production.INFO: neon service started [2025-03-03 12:50:02] Production.INFO: ==26291== Releasing lock... [2025-03-03 12:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:50:02] Production.INFO: ==26293== Lock acquired, processing the job... [2025-03-03 07:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:50:03] Production.INFO: ==26293== Releasing lock... [2025-03-03 07:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:50:03] Production.INFO: ==26295== Lock acquired, processing the job... [2025-03-03 12:50:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:50:03] Production.INFO: ==26295== Releasing lock... [2025-03-03 12:50:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:50:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:50:04] Production.INFO: ==26302== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:50:04] Production.INFO: ==26304== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:50:04] Production.INFO: ==26300== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:50:04] Production.INFO: ==26298== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 07:50:04] Production.INFO: ==26312== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:50:04] Production.ERROR: CronJob PID - 26300 [2025-03-03 07:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 07:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 07:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:50:00 [2025-03-03 07:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:50:04] Production.ERROR: CronJob PID - 26302 [2025-03-03 07:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 07:50:04] Production.ERROR: CronJob ID - 7 [2025-03-03 07:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:50:00 [2025-03-03 07:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 07:50:04] Production.ERROR: CronJob PID - 26304 [2025-03-03 07:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 07:50:04] Production.ERROR: CronJob ID - 10 [2025-03-03 07:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 07:50:00 [2025-03-03 07:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 07:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 07:50:04] Production.INFO: ==26298== Releasing lock... [2025-03-03 07:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 07:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:50:04] Production.INFO: ==26308== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:50:04] Production.INFO: ==26306== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:50:04] Production.INFO: ==26310== Lock acquired, processing the job... [2025-03-03 07:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 07:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:50:04] Production.INFO: count ==13 [2025-03-03 07:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:50:04] Production.INFO: count ==21 [2025-03-03 07:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597045') start [2025-03-03 07:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:50:04] Production.INFO: ==26302== Releasing lock... [2025-03-03 07:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:50:04] Production.INFO: Account Balance Start. [2025-03-03 07:50:04] Production.INFO: CreateAllLog Start [2025-03-03 07:50:04] Production.INFO: 117 [2025-03-03 07:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597045') end [2025-03-03 07:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:50:04] Production.INFO: 1 [2025-03-03 07:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:04] Production.INFO: ==26312== Releasing lock... [2025-03-03 07:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:04] Production.ERROR: done [2025-03-03 07:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-10 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-11 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.ERROR: done [2025-03-03 07:50:05] Production.ERROR: done [2025-03-03 07:50:05] Production.INFO: Date 2025-02-12 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 07:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597047', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 07:50:05] Production.INFO: Date 2025-02-13 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-14 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:06] Production.INFO: Date 2025-02-27 [2025-03-03 07:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:06] Production.INFO: Date 2025-02-28 [2025-03-03 07:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:06] Production.INFO: Date 2025-03-01 [2025-03-03 07:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:06] Production.INFO: Date 2025-03-02 [2025-03-03 07:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 07:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 07:50:06] Production.INFO: Total Charge 0 [2025-03-03 07:50:06] Production.INFO: CreateAllLog End [2025-03-03 07:50:06] Production.INFO: Account Balance End. [2025-03-03 07:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 07:50:06] Production.INFO: ==26306== Releasing lock... [2025-03-03 07:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597047', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 07:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 07:50:09] Production.INFO: ProcessCDR(1,14597047,1,1,2) [2025-03-03 07:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597047,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597047,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 07:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 07:50:09] Production.INFO: ==26310== Releasing lock... [2025-03-03 07:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 07:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 07:50:13] Production.ERROR: CronJobId end10 [2025-03-03 07:50:13] Production.INFO: ==26304== Releasing lock... [2025-03-03 07:50:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:50:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:50:17] Production.INFO: call_cost start [2025-03-03 07:50:17] Production.INFO: call_cost end [2025-03-03 07:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:50:17] Production.INFO: ==26300== Releasing lock... [2025-03-03 07:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:50:17] Production.INFO: count ==409 [2025-03-03 07:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597048', 'tblTempUsageDetail_20' ) start [2025-03-03 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597048', 'tblTempUsageDetail_20' ) end [2025-03-03 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597048', 'tblTempVendorCDR_20' ) start [2025-03-03 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597048', 'tblTempVendorCDR_20' ) end [2025-03-03 07:50:17] Production.INFO: ProcessCDR(1,14597048,1,1,2) [2025-03-03 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597048', 'tblTempUsageDetail_20' ) start [2025-03-03 07:50:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597048', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:50:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:50:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:50:25] Production.INFO: ==26308== Releasing lock... [2025-03-03 07:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:50:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:51:01] Production.INFO: ==26384== Lock acquired, processing the job... [2025-03-03 12:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:51:01] Production.INFO: neon service started [2025-03-03 12:51:01] Production.INFO: neon service started [2025-03-03 12:51:01] Production.INFO: ==26384== Releasing lock... [2025-03-03 12:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:51:02] Production.INFO: ==26387== Lock acquired, processing the job... [2025-03-03 07:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:51:02] Production.INFO: ==26387== Releasing lock... [2025-03-03 07:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:51:02] Production.INFO: ==26389== Lock acquired, processing the job... [2025-03-03 12:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:51:02] Production.INFO: ==26389== Releasing lock... [2025-03-03 12:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:51:03] Production.INFO: ==26391== Lock acquired, processing the job... [2025-03-03 07:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:51:03] Production.INFO: ==26393== Lock acquired, processing the job... [2025-03-03 07:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:51:03] Production.INFO: ==26395== Lock acquired, processing the job... [2025-03-03 07:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:51:03] Production.INFO: ==26397== Lock acquired, processing the job... [2025-03-03 07:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:51:03] Production.INFO: ==26401== Lock acquired, processing the job... [2025-03-03 07:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:51:03] Production.INFO: ==26399== Lock acquired, processing the job... [2025-03-03 07:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:51:03] Production.INFO: count ==13 [2025-03-03 07:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:51:03] Production.INFO: count ==21 [2025-03-03 07:51:03] Production.INFO: Account Balance Start. [2025-03-03 07:51:03] Production.INFO: CreateAllLog Start [2025-03-03 07:51:03] Production.INFO: 117 [2025-03-03 07:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597051') start [2025-03-03 07:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:03] Production.INFO: ==26393== Releasing lock... [2025-03-03 07:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597051') end [2025-03-03 07:51:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:51:03] Production.INFO: 1 [2025-03-03 07:51:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 07:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 07:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:03] Production.INFO: Date 2025-02-12 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: ==26401== Releasing lock... [2025-03-03 07:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.ERROR: done [2025-03-03 07:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.ERROR: done [2025-03-03 07:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-03-02 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Date 2025-03-03 [2025-03-03 07:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:51:04] Production.INFO: Total Charge 0 [2025-03-03 07:51:04] Production.INFO: CreateAllLog End [2025-03-03 07:51:04] Production.INFO: Account Balance End. [2025-03-03 07:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:51:05] Production.INFO: ==26397== Releasing lock... [2025-03-03 07:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:51:12] Production.ERROR: CronJobId end10 [2025-03-03 07:51:12] Production.INFO: ==26395== Releasing lock... [2025-03-03 07:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:51:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:51:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:51:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:51:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:51:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:51:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:51:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:51:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:51:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:51:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:51:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:51:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:51:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:51:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:51:14] Production.INFO: call_cost start [2025-03-03 07:51:14] Production.INFO: call_cost end [2025-03-03 07:51:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:51:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:51:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:51:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:51:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:51:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:51:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:51:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:51:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:51:14] Production.INFO: ==26391== Releasing lock... [2025-03-03 07:51:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:51:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:51:16] Production.INFO: count ==409 [2025-03-03 07:51:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597053', 'tblTempUsageDetail_20' ) start [2025-03-03 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597053', 'tblTempUsageDetail_20' ) end [2025-03-03 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597053', 'tblTempVendorCDR_20' ) start [2025-03-03 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597053', 'tblTempVendorCDR_20' ) end [2025-03-03 07:51:16] Production.INFO: ProcessCDR(1,14597053,1,1,2) [2025-03-03 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597053', 'tblTempUsageDetail_20' ) start [2025-03-03 07:51:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597053', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:51:24] Production.INFO: ==26399== Releasing lock... [2025-03-03 07:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:51:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:52:02] Production.INFO: ==26468== Lock acquired, processing the job... [2025-03-03 12:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:52:02] Production.INFO: neon service started [2025-03-03 12:52:02] Production.INFO: neon service started [2025-03-03 12:52:02] Production.INFO: ==26468== Releasing lock... [2025-03-03 12:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:52:02] Production.INFO: ==26474== Lock acquired, processing the job... [2025-03-03 12:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:52:02] Production.INFO: ==26474== Releasing lock... [2025-03-03 12:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:52:02] Production.INFO: ==26472== Lock acquired, processing the job... [2025-03-03 07:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:52:03] Production.INFO: ==26472== Releasing lock... [2025-03-03 07:52:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:52:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:52:03] Production.INFO: ==26478== Lock acquired, processing the job... [2025-03-03 07:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:52:03] Production.INFO: ==26486== Lock acquired, processing the job... [2025-03-03 07:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:52:04] Production.INFO: ==26476== Lock acquired, processing the job... [2025-03-03 07:52:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:52:04] Production.INFO: ==26480== Lock acquired, processing the job... [2025-03-03 07:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:52:04] Production.INFO: ==26482== Lock acquired, processing the job... [2025-03-03 07:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:52:04] Production.INFO: count ==13 [2025-03-03 07:52:04] Production.INFO: ==26484== Lock acquired, processing the job... [2025-03-03 07:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:52:04] Production.INFO: count ==21 [2025-03-03 07:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597055') start [2025-03-03 07:52:04] Production.INFO: Account Balance Start. [2025-03-03 07:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:52:04] Production.INFO: CreateAllLog Start [2025-03-03 07:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:52:04] Production.INFO: 117 [2025-03-03 07:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: ==26478== Releasing lock... [2025-03-03 07:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597055') end [2025-03-03 07:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:52:04] Production.INFO: 1 [2025-03-03 07:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: ==26486== Releasing lock... [2025-03-03 07:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.ERROR: done [2025-03-03 07:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:04] Production.ERROR: done [2025-03-03 07:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:52:05] Production.INFO: Total Charge 0 [2025-03-03 07:52:05] Production.INFO: CreateAllLog End [2025-03-03 07:52:05] Production.INFO: Account Balance End. [2025-03-03 07:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:52:05] Production.INFO: ==26482== Releasing lock... [2025-03-03 07:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:52:13] Production.ERROR: CronJobId end10 [2025-03-03 07:52:13] Production.INFO: ==26480== Releasing lock... [2025-03-03 07:52:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:52:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:52:14] Production.INFO: call_cost start [2025-03-03 07:52:14] Production.INFO: call_cost end [2025-03-03 07:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:52:14] Production.INFO: ==26476== Releasing lock... [2025-03-03 07:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:52:17] Production.INFO: count ==409 [2025-03-03 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597058', 'tblTempUsageDetail_20' ) start [2025-03-03 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597058', 'tblTempUsageDetail_20' ) end [2025-03-03 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597058', 'tblTempVendorCDR_20' ) start [2025-03-03 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597058', 'tblTempVendorCDR_20' ) end [2025-03-03 07:52:17] Production.INFO: ProcessCDR(1,14597058,1,1,2) [2025-03-03 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597058', 'tblTempUsageDetail_20' ) start [2025-03-03 07:52:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597058', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:52:24] Production.INFO: ==26484== Releasing lock... [2025-03-03 07:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:53:01] Production.INFO: ==26552== Lock acquired, processing the job... [2025-03-03 12:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:53:01] Production.INFO: neon service started [2025-03-03 12:53:01] Production.INFO: neon service started [2025-03-03 12:53:01] Production.INFO: ==26552== Releasing lock... [2025-03-03 12:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:53:02] Production.INFO: ==26554== Lock acquired, processing the job... [2025-03-03 07:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:53:02] Production.INFO: ==26556== Lock acquired, processing the job... [2025-03-03 12:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:53:02] Production.INFO: ==26556== Releasing lock... [2025-03-03 12:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:53:02] Production.INFO: ==26554== Releasing lock... [2025-03-03 07:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:53:03] Production.INFO: ==26563== Lock acquired, processing the job... [2025-03-03 07:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:53:03] Production.INFO: ==26565== Lock acquired, processing the job... [2025-03-03 07:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:53:03] Production.INFO: ==26561== Lock acquired, processing the job... [2025-03-03 07:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:53:03] Production.INFO: Account Balance Start. [2025-03-03 07:53:03] Production.INFO: CreateAllLog Start [2025-03-03 07:53:03] Production.INFO: ==26559== Lock acquired, processing the job... [2025-03-03 07:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:53:03] Production.INFO: 117 [2025-03-03 07:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:53:04] Production.INFO: ==26567== Lock acquired, processing the job... [2025-03-03 07:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: ==26569== Lock acquired, processing the job... [2025-03-03 07:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:53:04] Production.INFO: ==26561== Releasing lock... [2025-03-03 07:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: count ==13 [2025-03-03 07:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:53:04] Production.INFO: count ==21 [2025-03-03 07:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597062') start [2025-03-03 07:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.ERROR: done [2025-03-03 07:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597062') end [2025-03-03 07:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:53:04] Production.INFO: 1 [2025-03-03 07:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.ERROR: done [2025-03-03 07:53:04] Production.INFO: ==26569== Releasing lock... [2025-03-03 07:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:53:05] Production.INFO: Total Charge 0 [2025-03-03 07:53:05] Production.INFO: CreateAllLog End [2025-03-03 07:53:05] Production.INFO: Account Balance End. [2025-03-03 07:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:53:05] Production.INFO: ==26565== Releasing lock... [2025-03-03 07:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:53:12] Production.ERROR: CronJobId end10 [2025-03-03 07:53:12] Production.INFO: ==26563== Releasing lock... [2025-03-03 07:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:53:15] Production.INFO: call_cost start [2025-03-03 07:53:15] Production.INFO: call_cost end [2025-03-03 07:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:53:15] Production.INFO: ==26559== Releasing lock... [2025-03-03 07:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:53:16] Production.INFO: count ==409 [2025-03-03 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597063', 'tblTempUsageDetail_20' ) start [2025-03-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597063', 'tblTempUsageDetail_20' ) end [2025-03-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597063', 'tblTempVendorCDR_20' ) start [2025-03-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597063', 'tblTempVendorCDR_20' ) end [2025-03-03 07:53:17] Production.INFO: ProcessCDR(1,14597063,1,1,2) [2025-03-03 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597063', 'tblTempUsageDetail_20' ) start [2025-03-03 07:53:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597063', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:53:24] Production.INFO: ==26567== Releasing lock... [2025-03-03 07:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:54:02] Production.INFO: ==26637== Lock acquired, processing the job... [2025-03-03 12:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:54:02] Production.INFO: neon service started [2025-03-03 12:54:02] Production.INFO: neon service started [2025-03-03 12:54:02] Production.INFO: ==26637== Releasing lock... [2025-03-03 12:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:54:02] Production.INFO: ==26639== Lock acquired, processing the job... [2025-03-03 07:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:54:02] Production.INFO: ==26639== Releasing lock... [2025-03-03 07:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:54:02] Production.INFO: ==26641== Lock acquired, processing the job... [2025-03-03 12:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:54:03] Production.INFO: ==26641== Releasing lock... [2025-03-03 12:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:54:03] Production.INFO: ==26645== Lock acquired, processing the job... [2025-03-03 07:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:54:03] Production.INFO: ==26647== Lock acquired, processing the job... [2025-03-03 07:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:54:03] Production.INFO: ==26643== Lock acquired, processing the job... [2025-03-03 07:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:54:04] Production.INFO: ==26649== Lock acquired, processing the job... [2025-03-03 07:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:54:04] Production.INFO: ==26651== Lock acquired, processing the job... [2025-03-03 07:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:54:04] Production.INFO: ==26653== Lock acquired, processing the job... [2025-03-03 07:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:54:04] Production.INFO: ==26645== Releasing lock... [2025-03-03 07:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:54:04] Production.INFO: Account Balance Start. [2025-03-03 07:54:04] Production.INFO: CreateAllLog Start [2025-03-03 07:54:04] Production.INFO: 117 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: count ==13 [2025-03-03 07:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:54:04] Production.INFO: count ==21 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597067') start [2025-03-03 07:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.ERROR: done [2025-03-03 07:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597067') end [2025-03-03 07:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:54:04] Production.INFO: 1 [2025-03-03 07:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:04] Production.INFO: ==26653== Releasing lock... [2025-03-03 07:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:54:04] Production.ERROR: done [2025-03-03 07:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:54:05] Production.INFO: Total Charge 0 [2025-03-03 07:54:05] Production.INFO: CreateAllLog End [2025-03-03 07:54:05] Production.INFO: Account Balance End. [2025-03-03 07:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:54:05] Production.INFO: ==26649== Releasing lock... [2025-03-03 07:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:54:12] Production.ERROR: CronJobId end10 [2025-03-03 07:54:12] Production.INFO: ==26647== Releasing lock... [2025-03-03 07:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:54:14] Production.INFO: call_cost start [2025-03-03 07:54:14] Production.INFO: call_cost end [2025-03-03 07:54:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:54:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:54:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:54:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:54:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:54:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:54:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:54:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:54:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:54:14] Production.INFO: ==26643== Releasing lock... [2025-03-03 07:54:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:54:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:54:17] Production.INFO: count ==409 [2025-03-03 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597068', 'tblTempUsageDetail_20' ) start [2025-03-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597068', 'tblTempUsageDetail_20' ) end [2025-03-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597068', 'tblTempVendorCDR_20' ) start [2025-03-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597068', 'tblTempVendorCDR_20' ) end [2025-03-03 07:54:17] Production.INFO: ProcessCDR(1,14597068,1,1,2) [2025-03-03 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597068', 'tblTempUsageDetail_20' ) start [2025-03-03 07:54:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597068', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:54:24] Production.INFO: ==26651== Releasing lock... [2025-03-03 07:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:55:01] Production.INFO: ==26721== Lock acquired, processing the job... [2025-03-03 12:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:55:01] Production.INFO: neon service started [2025-03-03 12:55:01] Production.INFO: neon service started [2025-03-03 12:55:01] Production.INFO: ==26721== Releasing lock... [2025-03-03 12:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:55:02] Production.INFO: ==26723== Lock acquired, processing the job... [2025-03-03 07:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:55:02] Production.INFO: ==26725== Lock acquired, processing the job... [2025-03-03 12:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:55:02] Production.INFO: ==26725== Releasing lock... [2025-03-03 12:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:55:02] Production.INFO: ==26723== Releasing lock... [2025-03-03 07:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:55:03] Production.INFO: ==26734== Lock acquired, processing the job... [2025-03-03 07:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:55:03] Production.INFO: Account Balance Start. [2025-03-03 07:55:03] Production.INFO: CreateAllLog Start [2025-03-03 07:55:03] Production.INFO: ==26728== Lock acquired, processing the job... [2025-03-03 07:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:55:03] Production.INFO: 117 [2025-03-03 07:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:55:03] Production.INFO: ==26736== Lock acquired, processing the job... [2025-03-03 07:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:03] Production.INFO: ==26730== Lock acquired, processing the job... [2025-03-03 07:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:55:03] Production.INFO: ==26732== Lock acquired, processing the job... [2025-03-03 07:55:03] Production.INFO: Date 2025-02-09 [2025-03-03 07:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:55:04] Production.INFO: ==26738== Lock acquired, processing the job... [2025-03-03 07:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: count ==13 [2025-03-03 07:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:55:04] Production.INFO: count ==21 [2025-03-03 07:55:04] Production.INFO: ==26730== Releasing lock... [2025-03-03 07:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597072') start [2025-03-03 07:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.ERROR: done [2025-03-03 07:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.ERROR: done [2025-03-03 07:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597072') end [2025-03-03 07:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:55:04] Production.INFO: 1 [2025-03-03 07:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: ==26738== Releasing lock... [2025-03-03 07:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:55:05] Production.INFO: Total Charge 0 [2025-03-03 07:55:05] Production.INFO: CreateAllLog End [2025-03-03 07:55:05] Production.INFO: Account Balance End. [2025-03-03 07:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:55:05] Production.INFO: ==26734== Releasing lock... [2025-03-03 07:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:55:11] Production.ERROR: CronJobId end10 [2025-03-03 07:55:11] Production.INFO: ==26732== Releasing lock... [2025-03-03 07:55:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:55:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:55:14] Production.INFO: call_cost start [2025-03-03 07:55:14] Production.INFO: call_cost end [2025-03-03 07:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:55:14] Production.INFO: ==26728== Releasing lock... [2025-03-03 07:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:55:16] Production.INFO: count ==409 [2025-03-03 07:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597073', 'tblTempUsageDetail_20' ) start [2025-03-03 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597073', 'tblTempUsageDetail_20' ) end [2025-03-03 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597073', 'tblTempVendorCDR_20' ) start [2025-03-03 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597073', 'tblTempVendorCDR_20' ) end [2025-03-03 07:55:16] Production.INFO: ProcessCDR(1,14597073,1,1,2) [2025-03-03 07:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597073', 'tblTempUsageDetail_20' ) start [2025-03-03 07:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597073', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:55:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:55:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:55:25] Production.INFO: ==26736== Releasing lock... [2025-03-03 07:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:55:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:56:02] Production.INFO: ==26813== Lock acquired, processing the job... [2025-03-03 12:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:56:02] Production.INFO: neon service started [2025-03-03 12:56:02] Production.INFO: neon service started [2025-03-03 12:56:02] Production.INFO: ==26813== Releasing lock... [2025-03-03 12:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 07:56:02] Production.INFO: ==26815== Lock acquired, processing the job... [2025-03-03 07:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:56:02] Production.INFO: ==26815== Releasing lock... [2025-03-03 07:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:56:03] Production.INFO: ==26817== Lock acquired, processing the job... [2025-03-03 12:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:56:03] Production.INFO: ==26817== Releasing lock... [2025-03-03 12:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:56:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:56:03] Production.INFO: ==26819== Lock acquired, processing the job... [2025-03-03 07:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:56:03] Production.INFO: ==26821== Lock acquired, processing the job... [2025-03-03 07:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:56:03] Production.INFO: ==26823== Lock acquired, processing the job... [2025-03-03 07:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:56:04] Production.INFO: ==26825== Lock acquired, processing the job... [2025-03-03 07:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:56:04] Production.INFO: ==26829== Lock acquired, processing the job... [2025-03-03 07:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:56:04] Production.INFO: ==26827== Lock acquired, processing the job... [2025-03-03 07:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:56:04] Production.INFO: Account Balance Start. [2025-03-03 07:56:04] Production.INFO: CreateAllLog Start [2025-03-03 07:56:04] Production.INFO: 117 [2025-03-03 07:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:56:04] Production.INFO: ==26821== Releasing lock... [2025-03-03 07:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:56:04] Production.INFO: count ==13 [2025-03-03 07:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:56:04] Production.INFO: count ==21 [2025-03-03 07:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597077') start [2025-03-03 07:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597077') end [2025-03-03 07:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:56:04] Production.INFO: 1 [2025-03-03 07:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:56:04] Production.INFO: ==26829== Releasing lock... [2025-03-03 07:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.ERROR: done [2025-03-03 07:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.ERROR: done [2025-03-03 07:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:56:05] Production.INFO: Total Charge 0 [2025-03-03 07:56:05] Production.INFO: CreateAllLog End [2025-03-03 07:56:05] Production.INFO: Account Balance End. [2025-03-03 07:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:56:05] Production.INFO: ==26825== Releasing lock... [2025-03-03 07:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:56:12] Production.ERROR: CronJobId end10 [2025-03-03 07:56:12] Production.INFO: ==26823== Releasing lock... [2025-03-03 07:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:56:14] Production.INFO: call_cost start [2025-03-03 07:56:14] Production.INFO: call_cost end [2025-03-03 07:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:56:14] Production.INFO: ==26819== Releasing lock... [2025-03-03 07:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:56:17] Production.INFO: count ==409 [2025-03-03 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597078', 'tblTempUsageDetail_20' ) start [2025-03-03 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597078', 'tblTempUsageDetail_20' ) end [2025-03-03 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597078', 'tblTempVendorCDR_20' ) start [2025-03-03 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597078', 'tblTempVendorCDR_20' ) end [2025-03-03 07:56:17] Production.INFO: ProcessCDR(1,14597078,1,1,2) [2025-03-03 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597078', 'tblTempUsageDetail_20' ) start [2025-03-03 07:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597078', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:56:25] Production.INFO: ==26827== Releasing lock... [2025-03-03 07:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:57:01] Production.INFO: ==26896== Lock acquired, processing the job... [2025-03-03 12:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:57:01] Production.INFO: neon service started [2025-03-03 12:57:01] Production.INFO: neon service started [2025-03-03 12:57:01] Production.INFO: ==26896== Releasing lock... [2025-03-03 12:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:57:01] Production.INFO: ==26900== Lock acquired, processing the job... [2025-03-03 12:57:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:57:02] Production.INFO: ==26900== Releasing lock... [2025-03-03 12:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:57:02] Production.INFO: ==26898== Lock acquired, processing the job... [2025-03-03 07:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:57:02] Production.INFO: ==26898== Releasing lock... [2025-03-03 07:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:57:03] Production.INFO: ==26913== Lock acquired, processing the job... [2025-03-03 07:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:57:03] Production.INFO: ==26907== Lock acquired, processing the job... [2025-03-03 07:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:57:03] Production.INFO: ==26905== Lock acquired, processing the job... [2025-03-03 07:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:57:03] Production.INFO: ==26909== Lock acquired, processing the job... [2025-03-03 07:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:57:03] Production.INFO: ==26911== Lock acquired, processing the job... [2025-03-03 07:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:57:03] Production.INFO: ==26915== Lock acquired, processing the job... [2025-03-03 07:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:57:03] Production.INFO: Account Balance Start. [2025-03-03 07:57:03] Production.INFO: CreateAllLog Start [2025-03-03 07:57:03] Production.INFO: ==26907== Releasing lock... [2025-03-03 07:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:57:03] Production.INFO: 117 [2025-03-03 07:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:57:03] Production.ERROR: done [2025-03-03 07:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:03] Production.INFO: count ==13 [2025-03-03 07:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:57:04] Production.INFO: count ==21 [2025-03-03 07:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597082') start [2025-03-03 07:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.ERROR: done [2025-03-03 07:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597082') end [2025-03-03 07:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:57:04] Production.INFO: 1 [2025-03-03 07:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:57:04] Production.INFO: ==26915== Releasing lock... [2025-03-03 07:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 07:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:57:05] Production.INFO: Total Charge 0 [2025-03-03 07:57:05] Production.INFO: CreateAllLog End [2025-03-03 07:57:05] Production.INFO: Account Balance End. [2025-03-03 07:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:57:05] Production.INFO: ==26911== Releasing lock... [2025-03-03 07:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:57:11] Production.ERROR: CronJobId end10 [2025-03-03 07:57:11] Production.INFO: ==26909== Releasing lock... [2025-03-03 07:57:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:57:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:57:14] Production.INFO: call_cost start [2025-03-03 07:57:14] Production.INFO: call_cost end [2025-03-03 07:57:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:57:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:57:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:57:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:57:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:57:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:57:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:57:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:57:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:57:14] Production.INFO: ==26905== Releasing lock... [2025-03-03 07:57:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:57:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:57:16] Production.INFO: count ==409 [2025-03-03 07:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597083', 'tblTempUsageDetail_20' ) start [2025-03-03 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597083', 'tblTempUsageDetail_20' ) end [2025-03-03 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597083', 'tblTempVendorCDR_20' ) start [2025-03-03 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597083', 'tblTempVendorCDR_20' ) end [2025-03-03 07:57:16] Production.INFO: ProcessCDR(1,14597083,1,1,2) [2025-03-03 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597083', 'tblTempUsageDetail_20' ) start [2025-03-03 07:57:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597083', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:57:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:57:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:57:24] Production.INFO: ==26913== Releasing lock... [2025-03-03 07:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:57:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:58:02] Production.INFO: ==26981== Lock acquired, processing the job... [2025-03-03 12:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:58:02] Production.INFO: neon service started [2025-03-03 12:58:02] Production.INFO: neon service started [2025-03-03 12:58:02] Production.INFO: ==26981== Releasing lock... [2025-03-03 12:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:58:02] Production.INFO: ==26986== Lock acquired, processing the job... [2025-03-03 12:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:58:02] Production.INFO: ==26986== Releasing lock... [2025-03-03 12:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:58:02] Production.INFO: ==26984== Lock acquired, processing the job... [2025-03-03 07:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 07:58:03] Production.INFO: ==26984== Releasing lock... [2025-03-03 07:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:58:03] Production.INFO: ==26992== Lock acquired, processing the job... [2025-03-03 07:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:58:03] Production.INFO: ==26996== Lock acquired, processing the job... [2025-03-03 07:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:58:04] Production.INFO: ==26988== Lock acquired, processing the job... [2025-03-03 07:58:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:58:04] Production.INFO: ==26990== Lock acquired, processing the job... [2025-03-03 07:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:58:04] Production.INFO: ==26994== Lock acquired, processing the job... [2025-03-03 07:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:58:04] Production.INFO: ==26998== Lock acquired, processing the job... [2025-03-03 07:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:58:04] Production.INFO: Account Balance Start. [2025-03-03 07:58:04] Production.INFO: CreateAllLog Start [2025-03-03 07:58:04] Production.INFO: 117 [2025-03-03 07:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:58:04] Production.INFO: count ==13 [2025-03-03 07:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:58:04] Production.INFO: count ==21 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 07:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597086') start [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.ERROR: done [2025-03-03 07:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597086') end [2025-03-03 07:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:58:04] Production.INFO: 1 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.INFO: ==26990== Releasing lock... [2025-03-03 07:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:58:04] Production.INFO: ==26998== Releasing lock... [2025-03-03 07:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.ERROR: done [2025-03-03 07:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:58:05] Production.INFO: Total Charge 0 [2025-03-03 07:58:05] Production.INFO: CreateAllLog End [2025-03-03 07:58:05] Production.INFO: Account Balance End. [2025-03-03 07:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:58:05] Production.INFO: ==26994== Releasing lock... [2025-03-03 07:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:58:12] Production.ERROR: CronJobId end10 [2025-03-03 07:58:12] Production.INFO: ==26992== Releasing lock... [2025-03-03 07:58:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:58:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:58:15] Production.INFO: call_cost start [2025-03-03 07:58:15] Production.INFO: call_cost end [2025-03-03 07:58:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:58:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:58:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:58:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:58:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:58:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:58:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:58:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:58:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:58:15] Production.INFO: ==26988== Releasing lock... [2025-03-03 07:58:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:58:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:58:16] Production.INFO: count ==409 [2025-03-03 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597088', 'tblTempUsageDetail_20' ) start [2025-03-03 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597088', 'tblTempUsageDetail_20' ) end [2025-03-03 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597088', 'tblTempVendorCDR_20' ) start [2025-03-03 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597088', 'tblTempVendorCDR_20' ) end [2025-03-03 07:58:17] Production.INFO: ProcessCDR(1,14597088,1,1,2) [2025-03-03 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597088', 'tblTempUsageDetail_20' ) start [2025-03-03 07:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597088', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:58:25] Production.INFO: ==26996== Releasing lock... [2025-03-03 07:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:58:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 12:59:01] Production.INFO: ==27066== Lock acquired, processing the job... [2025-03-03 12:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 12:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 12:59:01] Production.INFO: neon service started [2025-03-03 12:59:01] Production.INFO: neon service started [2025-03-03 12:59:01] Production.INFO: ==27066== Releasing lock... [2025-03-03 12:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 12:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 07:59:02] Production.INFO: ==27068== Lock acquired, processing the job... [2025-03-03 07:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:59:02] Production.INFO: ==27070== Lock acquired, processing the job... [2025-03-03 12:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:59:02] Production.INFO: ==27070== Releasing lock... [2025-03-03 12:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 12:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 07:59:02] Production.INFO: ==27068== Releasing lock... [2025-03-03 07:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 07:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 07:59:03] Production.INFO: ==27073== Lock acquired, processing the job... [2025-03-03 07:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 07:59:03] Production.INFO: ==27081== Lock acquired, processing the job... [2025-03-03 07:59:03] Production.INFO: ==27075== Lock acquired, processing the job... [2025-03-03 07:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 07:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 07:59:03] Production.INFO: ==27077== Lock acquired, processing the job... [2025-03-03 07:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 07:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 07:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 07:59:03] Production.INFO: ==27079== Lock acquired, processing the job... [2025-03-03 07:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 07:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 07:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 07:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 07:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 07:59:03] Production.INFO: ==27083== Lock acquired, processing the job... [2025-03-03 07:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 07:59:03] Production.INFO: Account Balance Start. [2025-03-03 07:59:03] Production.INFO: CreateAllLog Start [2025-03-03 07:59:03] Production.INFO: 117 [2025-03-03 07:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 07:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: count ==13 [2025-03-03 07:59:04] Production.ERROR: done [2025-03-03 07:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 07:59:04] Production.INFO: count ==21 [2025-03-03 07:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597092') start [2025-03-03 07:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 07:59:04] Production.INFO: ==27075== Releasing lock... [2025-03-03 07:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 07:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 07:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597092') end [2025-03-03 07:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 07:59:04] Production.INFO: 1 [2025-03-03 07:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 07:59:04] Production.INFO: ==27083== Releasing lock... [2025-03-03 07:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 07:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 07:59:04] Production.ERROR: done [2025-03-03 07:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 07:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 07:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 07:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 07:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 07:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 07:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 07:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 07:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 07:59:05] Production.INFO: Total Charge 0 [2025-03-03 07:59:05] Production.INFO: CreateAllLog End [2025-03-03 07:59:05] Production.INFO: Account Balance End. [2025-03-03 07:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 07:59:05] Production.INFO: ==27079== Releasing lock... [2025-03-03 07:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 07:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 07:59:11] Production.ERROR: CronJobId end10 [2025-03-03 07:59:11] Production.INFO: ==27077== Releasing lock... [2025-03-03 07:59:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 07:59:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 07:59:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 07:59:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 07:59:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 07:59:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 07:59:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 07:59:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 07:59:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 07:59:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 07:59:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 07:59:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 07:59:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 07:59:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 07:59:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 07:59:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 07:59:14] Production.INFO: call_cost start [2025-03-03 07:59:14] Production.INFO: call_cost end [2025-03-03 07:59:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 07:59:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 07:59:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 07:59:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 07:59:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 07:59:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 07:59:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 07:59:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 07:59:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 07:59:14] Production.INFO: ==27073== Releasing lock... [2025-03-03 07:59:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 07:59:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 07:59:16] Production.INFO: count ==409 [2025-03-03 07:59:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 07:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597093', 'tblTempUsageDetail_20' ) start [2025-03-03 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597093', 'tblTempUsageDetail_20' ) end [2025-03-03 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597093', 'tblTempVendorCDR_20' ) start [2025-03-03 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597093', 'tblTempVendorCDR_20' ) end [2025-03-03 07:59:16] Production.INFO: ProcessCDR(1,14597093,1,1,2) [2025-03-03 07:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597093', 'tblTempUsageDetail_20' ) start [2025-03-03 07:59:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597093', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 07:59:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 07:59:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 07:59:24] Production.INFO: ==27081== Releasing lock... [2025-03-03 07:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 07:59:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:00:02] Production.INFO: ==27157== Lock acquired, processing the job... [2025-03-03 13:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:00:02] Production.INFO: neon service started [2025-03-03 13:00:02] Production.INFO: neon service started [2025-03-03 13:00:02] Production.INFO: ==27157== Releasing lock... [2025-03-03 13:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:00:02] Production.INFO: ==27161== Lock acquired, processing the job... [2025-03-03 13:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:00:02] Production.INFO: ==27161== Releasing lock... [2025-03-03 13:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:00:02] Production.INFO: ==27159== Lock acquired, processing the job... [2025-03-03 08:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:00:02] Production.INFO: ==27159== Releasing lock... [2025-03-03 08:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:00:03] Production.INFO: ==27164== Lock acquired, processing the job... [2025-03-03 08:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 08:00:04] Production.INFO: ==27166== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 08:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 08:00:04] Production.INFO: ==27164== Releasing lock... [2025-03-03 08:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 08:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:00:04] Production.INFO: ==27170== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:00:04] Production.INFO: ==27168== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:00:04] Production.INFO: ==27174== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:00:04] Production.INFO: ==27172== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:00:04] Production.INFO: ==27176== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 08:00:04] Production.INFO: Account Balance Start. [2025-03-03 08:00:04] Production.INFO: CreateAllLog Start [2025-03-03 08:00:04] Production.INFO: 117 [2025-03-03 08:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.INFO: ==27178== Lock acquired, processing the job... [2025-03-03 08:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:00:04] Production.ERROR: done [2025-03-03 08:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.INFO: ==27168== Releasing lock... [2025-03-03 08:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.INFO: count ==13 [2025-03-03 08:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:00:04] Production.INFO: count ==21 [2025-03-03 08:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597097') start [2025-03-03 08:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.ERROR: done [2025-03-03 08:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597097') end [2025-03-03 08:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:00:04] Production.INFO: 1 [2025-03-03 08:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:00:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: ==27178== Releasing lock... [2025-03-03 08:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:00:05] Production.ERROR: done [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 08:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597099', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 08:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:00:05] Production.INFO: Total Charge 0 [2025-03-03 08:00:05] Production.INFO: CreateAllLog End [2025-03-03 08:00:05] Production.INFO: Account Balance End. [2025-03-03 08:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:00:05] Production.INFO: ==27172== Releasing lock... [2025-03-03 08:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:00:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597099', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 08:00:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 08:00:08] Production.INFO: ProcessCDR(1,14597099,1,1,2) [2025-03-03 08:00:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597099,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:00:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597099,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:00:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 08:00:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 08:00:09] Production.INFO: ==27176== Releasing lock... [2025-03-03 08:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 08:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 08:00:14] Production.ERROR: CronJobId end10 [2025-03-03 08:00:14] Production.INFO: ==27170== Releasing lock... [2025-03-03 08:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:00:16] Production.INFO: call_cost start [2025-03-03 08:00:16] Production.INFO: call_cost end [2025-03-03 08:00:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:00:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:00:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:00:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:00:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:00:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:00:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:00:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:00:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:00:16] Production.INFO: ==27166== Releasing lock... [2025-03-03 08:00:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:00:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:00:17] Production.INFO: count ==409 [2025-03-03 08:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597098', 'tblTempUsageDetail_20' ) start [2025-03-03 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597098', 'tblTempUsageDetail_20' ) end [2025-03-03 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597098', 'tblTempVendorCDR_20' ) start [2025-03-03 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597098', 'tblTempVendorCDR_20' ) end [2025-03-03 08:00:17] Production.INFO: ProcessCDR(1,14597098,1,1,2) [2025-03-03 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597098', 'tblTempUsageDetail_20' ) start [2025-03-03 08:00:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597098', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:00:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:00:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:00:25] Production.INFO: ==27174== Releasing lock... [2025-03-03 08:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:00:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:01:01] Production.INFO: ==27254== Lock acquired, processing the job... [2025-03-03 13:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:01:01] Production.INFO: neon service started [2025-03-03 13:01:01] Production.INFO: neon service started [2025-03-03 13:01:01] Production.INFO: ==27254== Releasing lock... [2025-03-03 13:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:01:01] Production.INFO: ==27259== Lock acquired, processing the job... [2025-03-03 08:01:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:01:02] Production.INFO: ==27259== Releasing lock... [2025-03-03 08:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:01:02] Production.INFO: ==27261== Lock acquired, processing the job... [2025-03-03 13:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:01:02] Production.INFO: ==27261== Releasing lock... [2025-03-03 13:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:01:03] Production.INFO: ==27263== Lock acquired, processing the job... [2025-03-03 08:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:01:03] Production.INFO: ==27265== Lock acquired, processing the job... [2025-03-03 08:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:01:03] Production.INFO: ==27267== Lock acquired, processing the job... [2025-03-03 08:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:01:03] Production.INFO: ==27269== Lock acquired, processing the job... [2025-03-03 08:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:01:03] Production.INFO: ==27273== Lock acquired, processing the job... [2025-03-03 08:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:01:03] Production.INFO: ==27271== Lock acquired, processing the job... [2025-03-03 08:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:01:03] Production.INFO: ==27265== Releasing lock... [2025-03-03 08:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:01:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:01:03] Production.INFO: count ==13 [2025-03-03 08:01:03] Production.INFO: Account Balance Start. [2025-03-03 08:01:03] Production.INFO: CreateAllLog Start [2025-03-03 08:01:03] Production.INFO: 117 [2025-03-03 08:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:01:03] Production.INFO: count ==21 [2025-03-03 08:01:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597103') start [2025-03-03 08:01:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597103') end [2025-03-03 08:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:01:04] Production.INFO: 1 [2025-03-03 08:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: ==27273== Releasing lock... [2025-03-03 08:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.ERROR: done [2025-03-03 08:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.ERROR: done [2025-03-03 08:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:01:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:01:04] Production.INFO: Total Charge 0 [2025-03-03 08:01:04] Production.INFO: CreateAllLog End [2025-03-03 08:01:05] Production.INFO: Account Balance End. [2025-03-03 08:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:01:05] Production.INFO: ==27269== Releasing lock... [2025-03-03 08:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:01:11] Production.ERROR: CronJobId end10 [2025-03-03 08:01:11] Production.INFO: ==27267== Releasing lock... [2025-03-03 08:01:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:01:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:01:14] Production.INFO: call_cost start [2025-03-03 08:01:14] Production.INFO: call_cost end [2025-03-03 08:01:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:01:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:01:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:01:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:01:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:01:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:01:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:01:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:01:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:01:14] Production.INFO: ==27263== Releasing lock... [2025-03-03 08:01:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:01:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:01:16] Production.INFO: count ==409 [2025-03-03 08:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597104', 'tblTempUsageDetail_20' ) start [2025-03-03 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597104', 'tblTempUsageDetail_20' ) end [2025-03-03 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597104', 'tblTempVendorCDR_20' ) start [2025-03-03 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597104', 'tblTempVendorCDR_20' ) end [2025-03-03 08:01:16] Production.INFO: ProcessCDR(1,14597104,1,1,2) [2025-03-03 08:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597104', 'tblTempUsageDetail_20' ) start [2025-03-03 08:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597104', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:01:24] Production.INFO: ==27271== Releasing lock... [2025-03-03 08:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:02:01] Production.INFO: ==27341== Lock acquired, processing the job... [2025-03-03 13:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:02:02] Production.INFO: neon service started [2025-03-03 13:02:02] Production.INFO: neon service started [2025-03-03 13:02:02] Production.INFO: ==27341== Releasing lock... [2025-03-03 13:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:02:02] Production.INFO: ==27343== Lock acquired, processing the job... [2025-03-03 08:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:02:02] Production.INFO: ==27345== Lock acquired, processing the job... [2025-03-03 13:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:02:02] Production.INFO: ==27345== Releasing lock... [2025-03-03 13:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:02:02] Production.INFO: ==27343== Releasing lock... [2025-03-03 08:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:02:03] Production.INFO: ==27347== Lock acquired, processing the job... [2025-03-03 08:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:02:03] Production.INFO: ==27349== Lock acquired, processing the job... [2025-03-03 08:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:02:03] Production.INFO: ==27354== Lock acquired, processing the job... [2025-03-03 08:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:02:03] Production.INFO: Account Balance Start. [2025-03-03 08:02:03] Production.INFO: CreateAllLog Start [2025-03-03 08:02:03] Production.INFO: 117 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: ==27349== Releasing lock... [2025-03-03 08:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: ==27351== Lock acquired, processing the job... [2025-03-03 08:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: ==27358== Lock acquired, processing the job... [2025-03-03 08:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:02:04] Production.INFO: ==27356== Lock acquired, processing the job... [2025-03-03 08:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: count ==13 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:02:04] Production.INFO: count ==21 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597108') start [2025-03-03 08:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:04] Production.ERROR: done [2025-03-03 08:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597108') end [2025-03-03 08:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:02:04] Production.INFO: 1 [2025-03-03 08:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.INFO: ==27358== Releasing lock... [2025-03-03 08:02:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:02:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.ERROR: done [2025-03-03 08:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:02:05] Production.INFO: Total Charge 0 [2025-03-03 08:02:05] Production.INFO: CreateAllLog End [2025-03-03 08:02:05] Production.INFO: Account Balance End. [2025-03-03 08:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:02:05] Production.INFO: ==27354== Releasing lock... [2025-03-03 08:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:02:13] Production.ERROR: CronJobId end10 [2025-03-03 08:02:13] Production.INFO: ==27351== Releasing lock... [2025-03-03 08:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:02:15] Production.INFO: call_cost start [2025-03-03 08:02:15] Production.INFO: call_cost end [2025-03-03 08:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:02:15] Production.INFO: ==27347== Releasing lock... [2025-03-03 08:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:02:17] Production.INFO: count ==409 [2025-03-03 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597109', 'tblTempUsageDetail_20' ) start [2025-03-03 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597109', 'tblTempUsageDetail_20' ) end [2025-03-03 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597109', 'tblTempVendorCDR_20' ) start [2025-03-03 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597109', 'tblTempVendorCDR_20' ) end [2025-03-03 08:02:17] Production.INFO: ProcessCDR(1,14597109,1,1,2) [2025-03-03 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597109', 'tblTempUsageDetail_20' ) start [2025-03-03 08:02:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597109', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:02:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:02:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:02:24] Production.INFO: ==27356== Releasing lock... [2025-03-03 08:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:03:01] Production.INFO: ==27428== Lock acquired, processing the job... [2025-03-03 13:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:03:01] Production.INFO: neon service started [2025-03-03 13:03:01] Production.INFO: neon service started [2025-03-03 13:03:01] Production.INFO: ==27428== Releasing lock... [2025-03-03 13:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:03:01] Production.INFO: ==27432== Lock acquired, processing the job... [2025-03-03 13:03:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:03:01] Production.INFO: ==27432== Releasing lock... [2025-03-03 13:03:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:03:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:03:01] Production.INFO: ==27430== Lock acquired, processing the job... [2025-03-03 08:03:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:03:02] Production.INFO: ==27430== Releasing lock... [2025-03-03 08:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:03:03] Production.INFO: ==27439== Lock acquired, processing the job... [2025-03-03 08:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:03:03] Production.INFO: ==27443== Lock acquired, processing the job... [2025-03-03 08:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:03:03] Production.INFO: ==27435== Lock acquired, processing the job... [2025-03-03 08:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:03:03] Production.INFO: ==27437== Lock acquired, processing the job... [2025-03-03 08:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:03:03] Production.INFO: ==27441== Lock acquired, processing the job... [2025-03-03 08:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:03:03] Production.INFO: ==27445== Lock acquired, processing the job... [2025-03-03 08:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:03:03] Production.INFO: Account Balance Start. [2025-03-03 08:03:03] Production.INFO: CreateAllLog Start [2025-03-03 08:03:03] Production.INFO: 117 [2025-03-03 08:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:03] Production.INFO: count ==13 [2025-03-03 08:03:03] Production.ERROR: done [2025-03-03 08:03:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:03:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:03:03] Production.INFO: count ==21 [2025-03-03 08:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597110') start [2025-03-03 08:03:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:03] Production.ERROR: done [2025-03-03 08:03:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597110') end [2025-03-03 08:03:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:03:03] Production.INFO: 1 [2025-03-03 08:03:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:03:03] Production.INFO: ==27437== Releasing lock... [2025-03-03 08:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:03:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:03:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:03:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: ==27445== Releasing lock... [2025-03-03 08:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:03:04] Production.INFO: Total Charge 0 [2025-03-03 08:03:04] Production.INFO: CreateAllLog End [2025-03-03 08:03:04] Production.INFO: Account Balance End. [2025-03-03 08:03:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:03:04] Production.INFO: ==27441== Releasing lock... [2025-03-03 08:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:03:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:03:12] Production.ERROR: CronJobId end10 [2025-03-03 08:03:12] Production.INFO: ==27439== Releasing lock... [2025-03-03 08:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:03:14] Production.INFO: call_cost start [2025-03-03 08:03:14] Production.INFO: call_cost end [2025-03-03 08:03:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:03:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:03:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:03:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:03:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:03:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:03:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:03:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:03:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:03:14] Production.INFO: ==27435== Releasing lock... [2025-03-03 08:03:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:03:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:03:15] Production.INFO: count ==409 [2025-03-03 08:03:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597114', 'tblTempUsageDetail_20' ) start [2025-03-03 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597114', 'tblTempUsageDetail_20' ) end [2025-03-03 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597114', 'tblTempVendorCDR_20' ) start [2025-03-03 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597114', 'tblTempVendorCDR_20' ) end [2025-03-03 08:03:16] Production.INFO: ProcessCDR(1,14597114,1,1,2) [2025-03-03 08:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597114', 'tblTempUsageDetail_20' ) start [2025-03-03 08:03:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597114', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:03:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:03:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:03:23] Production.INFO: ==27443== Releasing lock... [2025-03-03 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:03:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:04:01] Production.INFO: ==27513== Lock acquired, processing the job... [2025-03-03 13:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:04:01] Production.INFO: neon service started [2025-03-03 13:04:01] Production.INFO: neon service started [2025-03-03 13:04:01] Production.INFO: ==27513== Releasing lock... [2025-03-03 13:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:04:02] Production.INFO: ==27517== Lock acquired, processing the job... [2025-03-03 13:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:04:02] Production.INFO: ==27517== Releasing lock... [2025-03-03 13:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:04:02] Production.INFO: ==27515== Lock acquired, processing the job... [2025-03-03 08:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:04:02] Production.INFO: ==27515== Releasing lock... [2025-03-03 08:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:04:03] Production.INFO: ==27523== Lock acquired, processing the job... [2025-03-03 08:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:04:03] Production.INFO: ==27519== Lock acquired, processing the job... [2025-03-03 08:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:04:03] Production.INFO: ==27530== Lock acquired, processing the job... [2025-03-03 08:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:04:03] Production.INFO: ==27521== Lock acquired, processing the job... [2025-03-03 08:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:04:04] Production.INFO: count ==13 [2025-03-03 08:04:04] Production.INFO: ==27525== Lock acquired, processing the job... [2025-03-03 08:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:04:04] Production.INFO: count ==21 [2025-03-03 08:04:04] Production.INFO: ==27527== Lock acquired, processing the job... [2025-03-03 08:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597116') start [2025-03-03 08:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:04:04] Production.INFO: Account Balance Start. [2025-03-03 08:04:04] Production.INFO: CreateAllLog Start [2025-03-03 08:04:04] Production.INFO: 117 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597116') end [2025-03-03 08:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:04:04] Production.INFO: 1 [2025-03-03 08:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:04:04] Production.INFO: ==27521== Releasing lock... [2025-03-03 08:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: ==27530== Releasing lock... [2025-03-03 08:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.ERROR: done [2025-03-03 08:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.ERROR: done [2025-03-03 08:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:04:05] Production.INFO: Total Charge 0 [2025-03-03 08:04:05] Production.INFO: CreateAllLog End [2025-03-03 08:04:05] Production.INFO: Account Balance End. [2025-03-03 08:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:04:05] Production.INFO: ==27525== Releasing lock... [2025-03-03 08:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:04:11] Production.ERROR: CronJobId end10 [2025-03-03 08:04:11] Production.INFO: ==27523== Releasing lock... [2025-03-03 08:04:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:04:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:04:15] Production.INFO: call_cost start [2025-03-03 08:04:15] Production.INFO: call_cost end [2025-03-03 08:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:04:15] Production.INFO: ==27519== Releasing lock... [2025-03-03 08:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:04:16] Production.INFO: count ==409 [2025-03-03 08:04:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597119', 'tblTempUsageDetail_20' ) start [2025-03-03 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597119', 'tblTempUsageDetail_20' ) end [2025-03-03 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597119', 'tblTempVendorCDR_20' ) start [2025-03-03 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597119', 'tblTempVendorCDR_20' ) end [2025-03-03 08:04:16] Production.INFO: ProcessCDR(1,14597119,1,1,2) [2025-03-03 08:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597119', 'tblTempUsageDetail_20' ) start [2025-03-03 08:04:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597119', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:04:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:04:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:04:25] Production.INFO: ==27527== Releasing lock... [2025-03-03 08:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:04:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:05:02] Production.INFO: ==27639== Lock acquired, processing the job... [2025-03-03 13:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:05:02] Production.INFO: neon service started [2025-03-03 13:05:02] Production.INFO: neon service started [2025-03-03 13:05:02] Production.INFO: ==27639== Releasing lock... [2025-03-03 13:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:05:02] Production.INFO: ==27642== Lock acquired, processing the job... [2025-03-03 08:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:05:03] Production.INFO: ==27644== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:05:03] Production.INFO: ==27644== Releasing lock... [2025-03-03 13:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:05:03] Production.INFO: ==27642== Releasing lock... [2025-03-03 08:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:05:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:05:03] Production.INFO: ==27646== Lock acquired, processing the job... [2025-03-03 08:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:05:03] Production.INFO: ==27648== Lock acquired, processing the job... [2025-03-03 08:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:05:03] Production.INFO: ==27654== Lock acquired, processing the job... [2025-03-03 08:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:05:04] Production.INFO: ==27650== Lock acquired, processing the job... [2025-03-03 08:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:05:04] Production.INFO: ==27652== Lock acquired, processing the job... [2025-03-03 08:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:05:04] Production.INFO: ==27648== Releasing lock... [2025-03-03 08:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:05:04] Production.INFO: ==27656== Lock acquired, processing the job... [2025-03-03 08:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:05:04] Production.INFO: Account Balance Start. [2025-03-03 08:05:04] Production.INFO: CreateAllLog Start [2025-03-03 08:05:04] Production.INFO: 117 [2025-03-03 08:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:04] Production.ERROR: done [2025-03-03 08:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:04] Production.INFO: count ==13 [2025-03-03 08:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:05:04] Production.INFO: count ==21 [2025-03-03 08:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597123') start [2025-03-03 08:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:04] Production.ERROR: done [2025-03-03 08:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597123') end [2025-03-03 08:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:05:04] Production.INFO: 1 [2025-03-03 08:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:05:04] Production.INFO: ==27656== Releasing lock... [2025-03-03 08:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:05:05] Production.INFO: Date 2025-02-15 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-16 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:05:05] Production.INFO: Total Charge 0 [2025-03-03 08:05:05] Production.INFO: CreateAllLog End [2025-03-03 08:05:05] Production.INFO: Account Balance End. [2025-03-03 08:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:05:05] Production.INFO: ==27652== Releasing lock... [2025-03-03 08:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:05:13] Production.ERROR: CronJobId end10 [2025-03-03 08:05:13] Production.INFO: ==27650== Releasing lock... [2025-03-03 08:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:05:14] Production.INFO: call_cost start [2025-03-03 08:05:14] Production.INFO: call_cost end [2025-03-03 08:05:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:05:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:05:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:05:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:05:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:05:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:05:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:05:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:05:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:05:14] Production.INFO: ==27646== Releasing lock... [2025-03-03 08:05:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:05:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:05:16] Production.INFO: count ==409 [2025-03-03 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597124', 'tblTempUsageDetail_20' ) start [2025-03-03 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597124', 'tblTempUsageDetail_20' ) end [2025-03-03 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597124', 'tblTempVendorCDR_20' ) start [2025-03-03 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597124', 'tblTempVendorCDR_20' ) end [2025-03-03 08:05:17] Production.INFO: ProcessCDR(1,14597124,1,1,2) [2025-03-03 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597124', 'tblTempUsageDetail_20' ) start [2025-03-03 08:05:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597124', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:05:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:05:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:05:24] Production.INFO: ==27654== Releasing lock... [2025-03-03 08:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:06:01] Production.INFO: ==27732== Lock acquired, processing the job... [2025-03-03 13:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:06:01] Production.INFO: neon service started [2025-03-03 13:06:01] Production.INFO: neon service started [2025-03-03 13:06:01] Production.INFO: ==27732== Releasing lock... [2025-03-03 13:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:06:02] Production.INFO: ==27734== Lock acquired, processing the job... [2025-03-03 08:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:06:02] Production.INFO: ==27736== Lock acquired, processing the job... [2025-03-03 08:06:02] Production.INFO: ==27734== Releasing lock... [2025-03-03 08:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:06:02] Production.INFO: ==27736== Releasing lock... [2025-03-03 13:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:06:03] Production.INFO: ==27738== Lock acquired, processing the job... [2025-03-03 08:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:06:03] Production.INFO: ==27740== Lock acquired, processing the job... [2025-03-03 08:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:06:03] Production.INFO: ==27740== Releasing lock... [2025-03-03 08:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:06:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:06:03] Production.INFO: ==27742== Lock acquired, processing the job... [2025-03-03 08:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:06:03] Production.INFO: ==27744== Lock acquired, processing the job... [2025-03-03 08:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:06:03] Production.INFO: ==27749== Lock acquired, processing the job... [2025-03-03 08:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:06:03] Production.INFO: Account Balance Start. [2025-03-03 08:06:03] Production.INFO: CreateAllLog Start [2025-03-03 08:06:03] Production.INFO: 117 [2025-03-03 08:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: ==27747== Lock acquired, processing the job... [2025-03-03 08:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: count ==13 [2025-03-03 08:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:06:04] Production.INFO: count ==21 [2025-03-03 08:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597128') start [2025-03-03 08:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597128') end [2025-03-03 08:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:06:04] Production.INFO: 1 [2025-03-03 08:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: ==27749== Releasing lock... [2025-03-03 08:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:06:04] Production.ERROR: done [2025-03-03 08:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.ERROR: done [2025-03-03 08:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:06:05] Production.INFO: Total Charge 0 [2025-03-03 08:06:05] Production.INFO: CreateAllLog End [2025-03-03 08:06:05] Production.INFO: Account Balance End. [2025-03-03 08:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:06:05] Production.INFO: ==27744== Releasing lock... [2025-03-03 08:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:06:12] Production.ERROR: CronJobId end10 [2025-03-03 08:06:12] Production.INFO: ==27742== Releasing lock... [2025-03-03 08:06:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:06:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:06:14] Production.INFO: call_cost start [2025-03-03 08:06:14] Production.INFO: call_cost end [2025-03-03 08:06:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:06:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:06:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:06:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:06:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:06:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:06:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:06:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:06:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:06:14] Production.INFO: ==27738== Releasing lock... [2025-03-03 08:06:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:06:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:06:16] Production.INFO: count ==409 [2025-03-03 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597129', 'tblTempUsageDetail_20' ) start [2025-03-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597129', 'tblTempUsageDetail_20' ) end [2025-03-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597129', 'tblTempVendorCDR_20' ) start [2025-03-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597129', 'tblTempVendorCDR_20' ) end [2025-03-03 08:06:17] Production.INFO: ProcessCDR(1,14597129,1,1,2) [2025-03-03 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597129', 'tblTempUsageDetail_20' ) start [2025-03-03 08:06:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597129', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:06:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:06:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:06:24] Production.INFO: ==27747== Releasing lock... [2025-03-03 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:07:02] Production.INFO: ==27823== Lock acquired, processing the job... [2025-03-03 13:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:07:02] Production.INFO: neon service started [2025-03-03 13:07:02] Production.INFO: neon service started [2025-03-03 13:07:02] Production.INFO: ==27823== Releasing lock... [2025-03-03 13:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:07:02] Production.INFO: ==27825== Lock acquired, processing the job... [2025-03-03 08:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:07:02] Production.INFO: ==27827== Lock acquired, processing the job... [2025-03-03 13:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:07:02] Production.INFO: ==27827== Releasing lock... [2025-03-03 13:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:07:03] Production.INFO: ==27825== Releasing lock... [2025-03-03 08:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:07:04] Production.INFO: ==27834== Lock acquired, processing the job... [2025-03-03 08:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:07:04] Production.INFO: ==27836== Lock acquired, processing the job... [2025-03-03 08:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:07:04] Production.INFO: Account Balance Start. [2025-03-03 08:07:04] Production.INFO: CreateAllLog Start [2025-03-03 08:07:04] Production.INFO: 117 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: ==27830== Lock acquired, processing the job... [2025-03-03 08:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: ==27832== Lock acquired, processing the job... [2025-03-03 08:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: ==27840== Lock acquired, processing the job... [2025-03-03 08:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:07:04] Production.INFO: ==27838== Lock acquired, processing the job... [2025-03-03 08:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: count ==13 [2025-03-03 08:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:07:04] Production.INFO: count ==21 [2025-03-03 08:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597133') start [2025-03-03 08:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597133') end [2025-03-03 08:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:07:04] Production.INFO: 1 [2025-03-03 08:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: ==27832== Releasing lock... [2025-03-03 08:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:07:04] Production.INFO: ==27840== Releasing lock... [2025-03-03 08:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:07:04] Production.ERROR: done [2025-03-03 08:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:07:05] Production.ERROR: done [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:07:05] Production.INFO: Total Charge 0 [2025-03-03 08:07:05] Production.INFO: CreateAllLog End [2025-03-03 08:07:05] Production.INFO: Account Balance End. [2025-03-03 08:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:07:05] Production.INFO: ==27836== Releasing lock... [2025-03-03 08:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:07:13] Production.ERROR: CronJobId end10 [2025-03-03 08:07:13] Production.INFO: ==27834== Releasing lock... [2025-03-03 08:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:07:15] Production.INFO: call_cost start [2025-03-03 08:07:15] Production.INFO: call_cost end [2025-03-03 08:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:07:15] Production.INFO: ==27830== Releasing lock... [2025-03-03 08:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:07:17] Production.INFO: count ==409 [2025-03-03 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597134', 'tblTempUsageDetail_20' ) start [2025-03-03 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597134', 'tblTempUsageDetail_20' ) end [2025-03-03 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597134', 'tblTempVendorCDR_20' ) start [2025-03-03 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597134', 'tblTempVendorCDR_20' ) end [2025-03-03 08:07:17] Production.INFO: ProcessCDR(1,14597134,1,1,2) [2025-03-03 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597134', 'tblTempUsageDetail_20' ) start [2025-03-03 08:07:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597134', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:07:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:07:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:07:24] Production.INFO: ==27838== Releasing lock... [2025-03-03 08:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:07:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:08:01] Production.INFO: ==27914== Lock acquired, processing the job... [2025-03-03 13:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:08:01] Production.INFO: neon service started [2025-03-03 13:08:01] Production.INFO: neon service started [2025-03-03 13:08:01] Production.INFO: ==27914== Releasing lock... [2025-03-03 13:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:08:02] Production.INFO: ==27916== Lock acquired, processing the job... [2025-03-03 08:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:08:02] Production.INFO: ==27918== Lock acquired, processing the job... [2025-03-03 13:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:08:02] Production.INFO: ==27918== Releasing lock... [2025-03-03 13:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:08:02] Production.INFO: ==27916== Releasing lock... [2025-03-03 08:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:08:03] Production.INFO: ==27921== Lock acquired, processing the job... [2025-03-03 08:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:08:03] Production.INFO: ==27925== Lock acquired, processing the job... [2025-03-03 08:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:08:03] Production.INFO: ==27929== Lock acquired, processing the job... [2025-03-03 08:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:08:03] Production.INFO: ==27923== Lock acquired, processing the job... [2025-03-03 08:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:08:03] Production.INFO: ==27927== Lock acquired, processing the job... [2025-03-03 08:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:08:03] Production.ERROR: done [2025-03-03 08:08:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:08:03] Production.INFO: ==27931== Lock acquired, processing the job... [2025-03-03 08:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:08:03] Production.INFO: Account Balance Start. [2025-03-03 08:08:03] Production.INFO: CreateAllLog Start [2025-03-03 08:08:03] Production.INFO: 117 [2025-03-03 08:08:04] Production.ERROR: done [2025-03-03 08:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:08:04] Production.INFO: count ==13 [2025-03-03 08:08:04] Production.INFO: ==27923== Releasing lock... [2025-03-03 08:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: count ==21 [2025-03-03 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597138') start [2025-03-03 08:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597138') end [2025-03-03 08:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:08:04] Production.INFO: 1 [2025-03-03 08:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: ==27931== Releasing lock... [2025-03-03 08:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:08:04] Production.INFO: Total Charge 0 [2025-03-03 08:08:04] Production.INFO: CreateAllLog End [2025-03-03 08:08:05] Production.INFO: Account Balance End. [2025-03-03 08:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:08:05] Production.INFO: ==27927== Releasing lock... [2025-03-03 08:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:08:12] Production.ERROR: CronJobId end10 [2025-03-03 08:08:12] Production.INFO: ==27925== Releasing lock... [2025-03-03 08:08:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:08:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:08:15] Production.INFO: call_cost start [2025-03-03 08:08:15] Production.INFO: call_cost end [2025-03-03 08:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:08:15] Production.INFO: ==27921== Releasing lock... [2025-03-03 08:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:08:16] Production.INFO: count ==409 [2025-03-03 08:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597139', 'tblTempUsageDetail_20' ) start [2025-03-03 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597139', 'tblTempUsageDetail_20' ) end [2025-03-03 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597139', 'tblTempVendorCDR_20' ) start [2025-03-03 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597139', 'tblTempVendorCDR_20' ) end [2025-03-03 08:08:16] Production.INFO: ProcessCDR(1,14597139,1,1,2) [2025-03-03 08:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597139', 'tblTempUsageDetail_20' ) start [2025-03-03 08:08:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597139', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:08:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:08:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:08:24] Production.INFO: ==27929== Releasing lock... [2025-03-03 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:08:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:09:02] Production.INFO: ==28012== Lock acquired, processing the job... [2025-03-03 13:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:09:02] Production.INFO: neon service started [2025-03-03 13:09:02] Production.INFO: neon service started [2025-03-03 13:09:02] Production.INFO: ==28012== Releasing lock... [2025-03-03 13:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:09:02] Production.INFO: ==28016== Lock acquired, processing the job... [2025-03-03 13:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:09:02] Production.INFO: ==28016== Releasing lock... [2025-03-03 13:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:09:02] Production.INFO: ==28014== Lock acquired, processing the job... [2025-03-03 08:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:09:03] Production.INFO: ==28014== Releasing lock... [2025-03-03 08:09:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:09:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:09:03] Production.INFO: ==28027== Lock acquired, processing the job... [2025-03-03 08:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:09:03] Production.INFO: ==28031== Lock acquired, processing the job... [2025-03-03 08:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:09:03] Production.INFO: Account Balance Start. [2025-03-03 08:09:03] Production.INFO: CreateAllLog Start [2025-03-03 08:09:04] Production.INFO: 117 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: count ==13 [2025-03-03 08:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:09:04] Production.INFO: count ==21 [2025-03-03 08:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597141') start [2025-03-03 08:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: ==28021== Lock acquired, processing the job... [2025-03-03 08:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597141') end [2025-03-03 08:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:09:04] Production.INFO: 1 [2025-03-03 08:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:09:04] Production.INFO: ==28031== Releasing lock... [2025-03-03 08:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: ==28023== Lock acquired, processing the job... [2025-03-03 08:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:09:04] Production.INFO: ==28025== Lock acquired, processing the job... [2025-03-03 08:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: ==28029== Lock acquired, processing the job... [2025-03-03 08:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: ==28023== Releasing lock... [2025-03-03 08:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:04] Production.ERROR: done [2025-03-03 08:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:05] Production.ERROR: done [2025-03-03 08:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:09:05] Production.INFO: Total Charge 0 [2025-03-03 08:09:05] Production.INFO: CreateAllLog End [2025-03-03 08:09:05] Production.INFO: Account Balance End. [2025-03-03 08:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:09:05] Production.INFO: ==28027== Releasing lock... [2025-03-03 08:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:09:12] Production.ERROR: CronJobId end10 [2025-03-03 08:09:12] Production.INFO: ==28025== Releasing lock... [2025-03-03 08:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:09:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:09:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:09:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:09:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:09:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:09:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:09:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:09:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:09:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:09:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:09:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:09:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:09:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:09:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:09:15] Production.INFO: call_cost start [2025-03-03 08:09:15] Production.INFO: call_cost end [2025-03-03 08:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:09:15] Production.INFO: ==28021== Releasing lock... [2025-03-03 08:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:09:17] Production.INFO: count ==409 [2025-03-03 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597144', 'tblTempUsageDetail_20' ) start [2025-03-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597144', 'tblTempUsageDetail_20' ) end [2025-03-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597144', 'tblTempVendorCDR_20' ) start [2025-03-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597144', 'tblTempVendorCDR_20' ) end [2025-03-03 08:09:17] Production.INFO: ProcessCDR(1,14597144,1,1,2) [2025-03-03 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597144', 'tblTempUsageDetail_20' ) start [2025-03-03 08:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597144', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:09:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:09:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:09:25] Production.INFO: ==28029== Releasing lock... [2025-03-03 08:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:09:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:10:01] Production.INFO: ==28105== Lock acquired, processing the job... [2025-03-03 13:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:10:01] Production.INFO: neon service started [2025-03-03 13:10:01] Production.INFO: neon service started [2025-03-03 13:10:01] Production.INFO: ==28105== Releasing lock... [2025-03-03 13:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:10:02] Production.INFO: ==28111== Lock acquired, processing the job... [2025-03-03 13:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:10:02] Production.INFO: ==28111== Releasing lock... [2025-03-03 13:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:10:02] Production.INFO: ==28109== Lock acquired, processing the job... [2025-03-03 08:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:10:02] Production.INFO: ==28109== Releasing lock... [2025-03-03 08:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:10:03] Production.INFO: ==28118== Lock acquired, processing the job... [2025-03-03 08:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:10:03] Production.INFO: ==28114== Lock acquired, processing the job... [2025-03-03 08:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 08:10:04] Production.INFO: ==28116== Lock acquired, processing the job... [2025-03-03 08:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:10:04] Production.INFO: ==28122== Lock acquired, processing the job... [2025-03-03 08:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 08:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:10:04] Production.ERROR: CronJob PID - 28116 [2025-03-03 08:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 08:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 08:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:10:00 [2025-03-03 08:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:10:04] Production.ERROR: CronJob PID - 28118 [2025-03-03 08:10:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 08:10:04] Production.ERROR: CronJob ID - 7 [2025-03-03 08:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:10:00 [2025-03-03 08:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 08:10:04] Production.INFO: ==28114== Releasing lock... [2025-03-03 08:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 08:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:10:04] Production.INFO: ==28126== Lock acquired, processing the job... [2025-03-03 08:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 08:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:10:04] Production.INFO: Account Balance Start. [2025-03-03 08:10:04] Production.INFO: CreateAllLog Start [2025-03-03 08:10:04] Production.INFO: 117 [2025-03-03 08:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:10:04] Production.INFO: ==28118== Releasing lock... [2025-03-03 08:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.INFO: ==28120== Lock acquired, processing the job... [2025-03-03 08:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:10:04] Production.INFO: ==28124== Lock acquired, processing the job... [2025-03-03 08:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.INFO: ==28128== Lock acquired, processing the job... [2025-03-03 08:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.INFO: count ==13 [2025-03-03 08:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:10:04] Production.INFO: count ==21 [2025-03-03 08:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597148') start [2025-03-03 08:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.ERROR: done [2025-03-03 08:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597148') end [2025-03-03 08:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:10:04] Production.INFO: 1 [2025-03-03 08:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 08:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597149', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 08:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.ERROR: done [2025-03-03 08:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:10:04] Production.INFO: ==28128== Releasing lock... [2025-03-03 08:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.ERROR: done [2025-03-03 08:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:10:05] Production.INFO: Total Charge 0 [2025-03-03 08:10:05] Production.INFO: CreateAllLog End [2025-03-03 08:10:05] Production.INFO: Account Balance End. [2025-03-03 08:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 08:10:06] Production.INFO: ==28122== Releasing lock... [2025-03-03 08:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597149', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 08:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 08:10:09] Production.INFO: ProcessCDR(1,14597149,1,1,2) [2025-03-03 08:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597149,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597149,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 08:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 08:10:09] Production.INFO: ==28126== Releasing lock... [2025-03-03 08:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 08:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 08:10:15] Production.ERROR: CronJobId end10 [2025-03-03 08:10:15] Production.INFO: ==28120== Releasing lock... [2025-03-03 08:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:10:17] Production.INFO: count ==409 [2025-03-03 08:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597150', 'tblTempUsageDetail_20' ) start [2025-03-03 08:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597150', 'tblTempUsageDetail_20' ) end [2025-03-03 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597150', 'tblTempVendorCDR_20' ) start [2025-03-03 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597150', 'tblTempVendorCDR_20' ) end [2025-03-03 08:10:17] Production.INFO: ProcessCDR(1,14597150,1,1,2) [2025-03-03 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:10:18] Production.INFO: call_cost start [2025-03-03 08:10:18] Production.INFO: call_cost end [2025-03-03 08:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:10:18] Production.INFO: ==28116== Releasing lock... [2025-03-03 08:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597150', 'tblTempUsageDetail_20' ) start [2025-03-03 08:10:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597150', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:10:25] Production.INFO: ==28124== Releasing lock... [2025-03-03 08:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:10:25] Production.INFO: 33.5 MB #Memory Used# [2025-03-03 13:11:02] Production.INFO: ==28202== Lock acquired, processing the job... [2025-03-03 13:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:11:02] Production.INFO: neon service started [2025-03-03 13:11:02] Production.INFO: neon service started [2025-03-03 13:11:02] Production.INFO: ==28202== Releasing lock... [2025-03-03 13:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:11:02] Production.INFO: ==28204== Lock acquired, processing the job... [2025-03-03 08:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:11:02] Production.INFO: ==28204== Releasing lock... [2025-03-03 08:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:11:02] Production.INFO: ==28206== Lock acquired, processing the job... [2025-03-03 13:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:11:03] Production.INFO: ==28206== Releasing lock... [2025-03-03 13:11:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:11:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:11:03] Production.INFO: ==28213== Lock acquired, processing the job... [2025-03-03 08:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:11:03] Production.INFO: ==28215== Lock acquired, processing the job... [2025-03-03 08:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:11:03] Production.INFO: ==28209== Lock acquired, processing the job... [2025-03-03 08:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:11:03] Production.INFO: Account Balance Start. [2025-03-03 08:11:03] Production.INFO: CreateAllLog Start [2025-03-03 08:11:03] Production.INFO: 117 [2025-03-03 08:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:11:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:03] Production.INFO: ==28211== Lock acquired, processing the job... [2025-03-03 08:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: ==28217== Lock acquired, processing the job... [2025-03-03 08:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: ==28219== Lock acquired, processing the job... [2025-03-03 08:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: count ==13 [2025-03-03 08:11:04] Production.INFO: ==28211== Releasing lock... [2025-03-03 08:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:11:04] Production.INFO: count ==21 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597154') start [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597154') end [2025-03-03 08:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:11:04] Production.INFO: 1 [2025-03-03 08:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:11:04] Production.INFO: ==28219== Releasing lock... [2025-03-03 08:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:11:04] Production.ERROR: done [2025-03-03 08:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:11:04] Production.ERROR: done [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:11:05] Production.INFO: Total Charge 0 [2025-03-03 08:11:05] Production.INFO: CreateAllLog End [2025-03-03 08:11:05] Production.INFO: Account Balance End. [2025-03-03 08:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:11:05] Production.INFO: ==28215== Releasing lock... [2025-03-03 08:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:11:12] Production.ERROR: CronJobId end10 [2025-03-03 08:11:12] Production.INFO: ==28213== Releasing lock... [2025-03-03 08:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:11:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:11:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:11:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:11:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:11:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:11:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:11:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:11:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:11:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:11:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:11:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:11:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:11:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:11:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:11:14] Production.INFO: call_cost start [2025-03-03 08:11:14] Production.INFO: call_cost end [2025-03-03 08:11:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:11:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:11:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:11:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:11:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:11:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:11:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:11:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:11:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:11:14] Production.INFO: ==28209== Releasing lock... [2025-03-03 08:11:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:11:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:11:16] Production.INFO: count ==409 [2025-03-03 08:11:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597155', 'tblTempUsageDetail_20' ) start [2025-03-03 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597155', 'tblTempUsageDetail_20' ) end [2025-03-03 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597155', 'tblTempVendorCDR_20' ) start [2025-03-03 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597155', 'tblTempVendorCDR_20' ) end [2025-03-03 08:11:16] Production.INFO: ProcessCDR(1,14597155,1,1,2) [2025-03-03 08:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597155', 'tblTempUsageDetail_20' ) start [2025-03-03 08:11:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597155', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:11:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:11:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:11:24] Production.INFO: ==28217== Releasing lock... [2025-03-03 08:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:11:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:12:01] Production.INFO: ==28290== Lock acquired, processing the job... [2025-03-03 13:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:12:01] Production.INFO: neon service started [2025-03-03 13:12:01] Production.INFO: neon service started [2025-03-03 13:12:01] Production.INFO: ==28290== Releasing lock... [2025-03-03 13:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:12:01] Production.INFO: ==28292== Lock acquired, processing the job... [2025-03-03 08:12:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:12:02] Production.INFO: ==28294== Lock acquired, processing the job... [2025-03-03 13:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:12:02] Production.INFO: ==28294== Releasing lock... [2025-03-03 13:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:12:02] Production.INFO: ==28292== Releasing lock... [2025-03-03 08:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:12:03] Production.INFO: ==28305== Lock acquired, processing the job... [2025-03-03 08:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:12:03] Production.INFO: ==28296== Lock acquired, processing the job... [2025-03-03 08:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:12:03] Production.INFO: ==28307== Lock acquired, processing the job... [2025-03-03 08:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:12:03] Production.INFO: ==28298== Lock acquired, processing the job... [2025-03-03 08:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:12:03] Production.INFO: ==28300== Lock acquired, processing the job... [2025-03-03 08:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:12:03] Production.INFO: count ==13 [2025-03-03 08:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:12:03] Production.INFO: count ==21 [2025-03-03 08:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597156') start [2025-03-03 08:12:03] Production.INFO: ==28303== Lock acquired, processing the job... [2025-03-03 08:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597156') end [2025-03-03 08:12:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:12:03] Production.INFO: 1 [2025-03-03 08:12:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:12:03] Production.ERROR: done [2025-03-03 08:12:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:12:03] Production.INFO: Account Balance Start. [2025-03-03 08:12:03] Production.INFO: CreateAllLog Start [2025-03-03 08:12:03] Production.INFO: 117 [2025-03-03 08:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:12:03] Production.INFO: ==28307== Releasing lock... [2025-03-03 08:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:12:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:03] Production.INFO: ==28298== Releasing lock... [2025-03-03 08:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:12:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.ERROR: done [2025-03-03 08:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:12:04] Production.INFO: Total Charge 0 [2025-03-03 08:12:04] Production.INFO: CreateAllLog End [2025-03-03 08:12:04] Production.INFO: Account Balance End. [2025-03-03 08:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:12:05] Production.INFO: ==28303== Releasing lock... [2025-03-03 08:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:12:12] Production.ERROR: CronJobId end10 [2025-03-03 08:12:12] Production.INFO: ==28300== Releasing lock... [2025-03-03 08:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:12:14] Production.INFO: call_cost start [2025-03-03 08:12:14] Production.INFO: call_cost end [2025-03-03 08:12:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:12:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:12:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:12:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:12:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:12:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:12:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:12:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:12:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:12:14] Production.INFO: ==28296== Releasing lock... [2025-03-03 08:12:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:12:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:12:16] Production.INFO: count ==409 [2025-03-03 08:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597160', 'tblTempUsageDetail_20' ) start [2025-03-03 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597160', 'tblTempUsageDetail_20' ) end [2025-03-03 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597160', 'tblTempVendorCDR_20' ) start [2025-03-03 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597160', 'tblTempVendorCDR_20' ) end [2025-03-03 08:12:16] Production.INFO: ProcessCDR(1,14597160,1,1,2) [2025-03-03 08:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597160', 'tblTempUsageDetail_20' ) start [2025-03-03 08:12:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597160', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:12:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:12:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:12:23] Production.INFO: ==28305== Releasing lock... [2025-03-03 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:12:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:13:01] Production.INFO: ==28387== Lock acquired, processing the job... [2025-03-03 13:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:13:02] Production.INFO: neon service started [2025-03-03 13:13:02] Production.INFO: neon service started [2025-03-03 13:13:02] Production.INFO: ==28387== Releasing lock... [2025-03-03 13:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:13:02] Production.INFO: ==28391== Lock acquired, processing the job... [2025-03-03 13:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:13:02] Production.INFO: ==28391== Releasing lock... [2025-03-03 13:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:13:02] Production.INFO: ==28389== Lock acquired, processing the job... [2025-03-03 08:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:13:02] Production.INFO: ==28389== Releasing lock... [2025-03-03 08:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:13:03] Production.INFO: ==28400== Lock acquired, processing the job... [2025-03-03 08:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:13:03] Production.INFO: Account Balance Start. [2025-03-03 08:13:03] Production.INFO: CreateAllLog Start [2025-03-03 08:13:03] Production.INFO: 117 [2025-03-03 08:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:13:03] Production.INFO: ==28404== Lock acquired, processing the job... [2025-03-03 08:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:03] Production.INFO: ==28394== Lock acquired, processing the job... [2025-03-03 08:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:13:04] Production.INFO: ==28396== Lock acquired, processing the job... [2025-03-03 08:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:13:04] Production.INFO: count ==13 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:13:04] Production.INFO: count ==21 [2025-03-03 08:13:04] Production.INFO: ==28398== Lock acquired, processing the job... [2025-03-03 08:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597162') start [2025-03-03 08:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:13:04] Production.INFO: ==28402== Lock acquired, processing the job... [2025-03-03 08:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597162') end [2025-03-03 08:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:13:04] Production.INFO: 1 [2025-03-03 08:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:13:04] Production.INFO: ==28404== Releasing lock... [2025-03-03 08:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: ==28396== Releasing lock... [2025-03-03 08:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:13:04] Production.ERROR: done [2025-03-03 08:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.ERROR: done [2025-03-03 08:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:13:05] Production.INFO: Total Charge 0 [2025-03-03 08:13:05] Production.INFO: CreateAllLog End [2025-03-03 08:13:05] Production.INFO: Account Balance End. [2025-03-03 08:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:13:05] Production.INFO: ==28400== Releasing lock... [2025-03-03 08:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:13:12] Production.ERROR: CronJobId end10 [2025-03-03 08:13:12] Production.INFO: ==28398== Releasing lock... [2025-03-03 08:13:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:13:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:13:14] Production.INFO: call_cost start [2025-03-03 08:13:14] Production.INFO: call_cost end [2025-03-03 08:13:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:13:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:13:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:13:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:13:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:13:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:13:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:13:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:13:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:13:14] Production.INFO: ==28394== Releasing lock... [2025-03-03 08:13:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:13:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:13:17] Production.INFO: count ==409 [2025-03-03 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597165', 'tblTempUsageDetail_20' ) start [2025-03-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597165', 'tblTempUsageDetail_20' ) end [2025-03-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597165', 'tblTempVendorCDR_20' ) start [2025-03-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597165', 'tblTempVendorCDR_20' ) end [2025-03-03 08:13:17] Production.INFO: ProcessCDR(1,14597165,1,1,2) [2025-03-03 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597165', 'tblTempUsageDetail_20' ) start [2025-03-03 08:13:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597165', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:13:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:13:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:13:25] Production.INFO: ==28402== Releasing lock... [2025-03-03 08:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:13:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:14:01] Production.INFO: ==28482== Lock acquired, processing the job... [2025-03-03 13:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:14:01] Production.INFO: neon service started [2025-03-03 13:14:01] Production.INFO: neon service started [2025-03-03 13:14:01] Production.INFO: ==28482== Releasing lock... [2025-03-03 13:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:14:01] Production.INFO: ==28484== Lock acquired, processing the job... [2025-03-03 08:14:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:14:02] Production.INFO: ==28484== Releasing lock... [2025-03-03 08:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:14:02] Production.INFO: ==28486== Lock acquired, processing the job... [2025-03-03 13:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:14:02] Production.INFO: ==28486== Releasing lock... [2025-03-03 13:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:14:03] Production.INFO: ==28496== Lock acquired, processing the job... [2025-03-03 08:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:14:03] Production.INFO: ==28489== Lock acquired, processing the job... [2025-03-03 08:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:14:03] Production.INFO: Account Balance Start. [2025-03-03 08:14:03] Production.INFO: CreateAllLog Start [2025-03-03 08:14:03] Production.INFO: 117 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:14:03] Production.INFO: ==28501== Lock acquired, processing the job... [2025-03-03 08:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:14:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: ==28491== Lock acquired, processing the job... [2025-03-03 08:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:14:03] Production.INFO: ==28493== Lock acquired, processing the job... [2025-03-03 08:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:14:03] Production.INFO: count ==13 [2025-03-03 08:14:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:14:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: count ==21 [2025-03-03 08:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597167') start [2025-03-03 08:14:03] Production.INFO: ==28498== Lock acquired, processing the job... [2025-03-03 08:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:14:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597167') end [2025-03-03 08:14:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:14:03] Production.INFO: 1 [2025-03-03 08:14:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:14:03] Production.INFO: ==28501== Releasing lock... [2025-03-03 08:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:14:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-15 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-16 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:03] Production.INFO: Date 2025-02-17 [2025-03-03 08:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: ==28491== Releasing lock... [2025-03-03 08:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.ERROR: done [2025-03-03 08:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.ERROR: done [2025-03-03 08:14:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:14:04] Production.INFO: Total Charge 0 [2025-03-03 08:14:04] Production.INFO: CreateAllLog End [2025-03-03 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:14:04] Production.INFO: Account Balance End. [2025-03-03 08:14:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:14:04] Production.INFO: ==28496== Releasing lock... [2025-03-03 08:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:14:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:14:11] Production.ERROR: CronJobId end10 [2025-03-03 08:14:11] Production.INFO: ==28493== Releasing lock... [2025-03-03 08:14:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:14:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:14:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:14:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:14:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:14:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:14:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:14:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:14:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:14:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:14:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:14:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:14:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:14:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:14:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:14:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:14:14] Production.INFO: call_cost start [2025-03-03 08:14:14] Production.INFO: call_cost end [2025-03-03 08:14:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:14:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:14:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:14:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:14:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:14:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:14:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:14:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:14:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:14:14] Production.INFO: ==28489== Releasing lock... [2025-03-03 08:14:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:14:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:14:16] Production.INFO: count ==409 [2025-03-03 08:14:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597170', 'tblTempUsageDetail_20' ) start [2025-03-03 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597170', 'tblTempUsageDetail_20' ) end [2025-03-03 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597170', 'tblTempVendorCDR_20' ) start [2025-03-03 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597170', 'tblTempVendorCDR_20' ) end [2025-03-03 08:14:16] Production.INFO: ProcessCDR(1,14597170,1,1,2) [2025-03-03 08:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597170', 'tblTempUsageDetail_20' ) start [2025-03-03 08:14:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597170', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:14:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:14:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:14:24] Production.INFO: ==28498== Releasing lock... [2025-03-03 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:15:01] Production.INFO: ==28569== Lock acquired, processing the job... [2025-03-03 13:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:15:02] Production.INFO: neon service started [2025-03-03 13:15:02] Production.INFO: neon service started [2025-03-03 13:15:02] Production.INFO: ==28569== Releasing lock... [2025-03-03 13:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:15:02] Production.INFO: ==28571== Lock acquired, processing the job... [2025-03-03 08:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:15:02] Production.INFO: ==28573== Lock acquired, processing the job... [2025-03-03 13:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:15:02] Production.INFO: ==28573== Releasing lock... [2025-03-03 13:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:15:03] Production.INFO: ==28571== Releasing lock... [2025-03-03 08:15:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:15:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:15:03] Production.INFO: ==28582== Lock acquired, processing the job... [2025-03-03 08:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:15:03] Production.INFO: ==28584== Lock acquired, processing the job... [2025-03-03 08:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:15:04] Production.INFO: Account Balance Start. [2025-03-03 08:15:04] Production.INFO: CreateAllLog Start [2025-03-03 08:15:04] Production.INFO: 117 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: ==28576== Lock acquired, processing the job... [2025-03-03 08:15:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: ==28578== Lock acquired, processing the job... [2025-03-03 08:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:15:04] Production.INFO: ==28580== Lock acquired, processing the job... [2025-03-03 08:15:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: ==28586== Lock acquired, processing the job... [2025-03-03 08:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:15:04] Production.INFO: count ==13 [2025-03-03 08:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:15:04] Production.INFO: count ==21 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597172') start [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.ERROR: done [2025-03-03 08:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:15:04] Production.INFO: ==28578== Releasing lock... [2025-03-03 08:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597172') end [2025-03-03 08:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:15:04] Production.INFO: 1 [2025-03-03 08:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:15:04] Production.INFO: ==28586== Releasing lock... [2025-03-03 08:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.ERROR: done [2025-03-03 08:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:15:05] Production.INFO: Total Charge 0 [2025-03-03 08:15:05] Production.INFO: CreateAllLog End [2025-03-03 08:15:05] Production.INFO: Account Balance End. [2025-03-03 08:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:15:05] Production.INFO: ==28582== Releasing lock... [2025-03-03 08:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:15:12] Production.ERROR: CronJobId end10 [2025-03-03 08:15:12] Production.INFO: ==28580== Releasing lock... [2025-03-03 08:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:15:15] Production.INFO: call_cost start [2025-03-03 08:15:15] Production.INFO: call_cost end [2025-03-03 08:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:15:15] Production.INFO: ==28576== Releasing lock... [2025-03-03 08:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:15:16] Production.INFO: count ==409 [2025-03-03 08:15:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597175', 'tblTempUsageDetail_20' ) start [2025-03-03 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597175', 'tblTempUsageDetail_20' ) end [2025-03-03 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597175', 'tblTempVendorCDR_20' ) start [2025-03-03 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597175', 'tblTempVendorCDR_20' ) end [2025-03-03 08:15:16] Production.INFO: ProcessCDR(1,14597175,1,1,2) [2025-03-03 08:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597175', 'tblTempUsageDetail_20' ) start [2025-03-03 08:15:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597175', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:15:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:15:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:15:25] Production.INFO: ==28584== Releasing lock... [2025-03-03 08:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:15:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:16:01] Production.INFO: ==28660== Lock acquired, processing the job... [2025-03-03 13:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:16:01] Production.INFO: neon service started [2025-03-03 13:16:01] Production.INFO: neon service started [2025-03-03 13:16:01] Production.INFO: ==28660== Releasing lock... [2025-03-03 13:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:16:01] Production.INFO: ==28664== Lock acquired, processing the job... [2025-03-03 13:16:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:16:01] Production.INFO: ==28664== Releasing lock... [2025-03-03 13:16:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:16:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:16:01] Production.INFO: ==28662== Lock acquired, processing the job... [2025-03-03 08:16:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:16:02] Production.INFO: ==28662== Releasing lock... [2025-03-03 08:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:16:03] Production.INFO: ==28671== Lock acquired, processing the job... [2025-03-03 08:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:16:03] Production.INFO: ==28667== Lock acquired, processing the job... [2025-03-03 08:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:16:03] Production.INFO: ==28677== Lock acquired, processing the job... [2025-03-03 08:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:16:03] Production.INFO: ==28669== Lock acquired, processing the job... [2025-03-03 08:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:16:03] Production.INFO: ==28673== Lock acquired, processing the job... [2025-03-03 08:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:16:03] Production.INFO: ==28675== Lock acquired, processing the job... [2025-03-03 08:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:16:03] Production.INFO: count ==13 [2025-03-03 08:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:16:03] Production.INFO: count ==21 [2025-03-03 08:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597177') start [2025-03-03 08:16:03] Production.INFO: Account Balance Start. [2025-03-03 08:16:03] Production.INFO: CreateAllLog Start [2025-03-03 08:16:03] Production.INFO: 117 [2025-03-03 08:16:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597177') end [2025-03-03 08:16:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:16:03] Production.INFO: 1 [2025-03-03 08:16:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:16:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:03] Production.INFO: ==28677== Releasing lock... [2025-03-03 08:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:16:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:16:03] Production.ERROR: done [2025-03-03 08:16:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:16:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:16:03] Production.INFO: ==28669== Releasing lock... [2025-03-03 08:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:16:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.ERROR: done [2025-03-03 08:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:16:04] Production.INFO: Total Charge 0 [2025-03-03 08:16:04] Production.INFO: CreateAllLog End [2025-03-03 08:16:04] Production.INFO: Account Balance End. [2025-03-03 08:16:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:16:04] Production.INFO: ==28673== Releasing lock... [2025-03-03 08:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:16:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:16:12] Production.ERROR: CronJobId end10 [2025-03-03 08:16:12] Production.INFO: ==28671== Releasing lock... [2025-03-03 08:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:16:15] Production.INFO: call_cost start [2025-03-03 08:16:15] Production.INFO: call_cost end [2025-03-03 08:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:16:15] Production.INFO: ==28667== Releasing lock... [2025-03-03 08:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:16:16] Production.INFO: count ==409 [2025-03-03 08:16:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597180', 'tblTempUsageDetail_20' ) start [2025-03-03 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597180', 'tblTempUsageDetail_20' ) end [2025-03-03 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597180', 'tblTempVendorCDR_20' ) start [2025-03-03 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597180', 'tblTempVendorCDR_20' ) end [2025-03-03 08:16:16] Production.INFO: ProcessCDR(1,14597180,1,1,2) [2025-03-03 08:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597180', 'tblTempUsageDetail_20' ) start [2025-03-03 08:16:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597180', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:16:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:16:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:16:24] Production.INFO: ==28675== Releasing lock... [2025-03-03 08:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:17:01] Production.INFO: ==28751== Lock acquired, processing the job... [2025-03-03 13:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:17:01] Production.INFO: neon service started [2025-03-03 13:17:01] Production.INFO: neon service started [2025-03-03 13:17:01] Production.INFO: ==28751== Releasing lock... [2025-03-03 13:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:17:02] Production.INFO: ==28754== Lock acquired, processing the job... [2025-03-03 08:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:17:02] Production.INFO: ==28756== Lock acquired, processing the job... [2025-03-03 13:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:17:02] Production.INFO: ==28756== Releasing lock... [2025-03-03 13:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:17:02] Production.INFO: ==28754== Releasing lock... [2025-03-03 08:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:17:03] Production.INFO: ==28758== Lock acquired, processing the job... [2025-03-03 08:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:17:03] Production.INFO: ==28770== Lock acquired, processing the job... [2025-03-03 08:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:17:03] Production.INFO: ==28760== Lock acquired, processing the job... [2025-03-03 08:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:17:04] Production.INFO: ==28764== Lock acquired, processing the job... [2025-03-03 08:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:17:04] Production.INFO: ==28762== Lock acquired, processing the job... [2025-03-03 08:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:17:04] Production.INFO: count ==13 [2025-03-03 08:17:04] Production.INFO: Account Balance Start. [2025-03-03 08:17:04] Production.INFO: CreateAllLog Start [2025-03-03 08:17:04] Production.INFO: 117 [2025-03-03 08:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:17:04] Production.INFO: ==28766== Lock acquired, processing the job... [2025-03-03 08:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:17:04] Production.INFO: count ==21 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597181') start [2025-03-03 08:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597181') end [2025-03-03 08:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:17:04] Production.INFO: 1 [2025-03-03 08:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: ==28770== Releasing lock... [2025-03-03 08:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:17:04] Production.INFO: ==28760== Releasing lock... [2025-03-03 08:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.ERROR: done [2025-03-03 08:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:17:04] Production.ERROR: done [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:17:05] Production.INFO: Total Charge 0 [2025-03-03 08:17:05] Production.INFO: CreateAllLog End [2025-03-03 08:17:05] Production.INFO: Account Balance End. [2025-03-03 08:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:17:05] Production.INFO: ==28764== Releasing lock... [2025-03-03 08:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:17:12] Production.ERROR: CronJobId end10 [2025-03-03 08:17:12] Production.INFO: ==28762== Releasing lock... [2025-03-03 08:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:17:14] Production.INFO: call_cost start [2025-03-03 08:17:14] Production.INFO: call_cost end [2025-03-03 08:17:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:17:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:17:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:17:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:17:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:17:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:17:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:17:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:17:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:17:14] Production.INFO: ==28758== Releasing lock... [2025-03-03 08:17:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:17:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:17:16] Production.INFO: count ==409 [2025-03-03 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597185', 'tblTempUsageDetail_20' ) start [2025-03-03 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597185', 'tblTempUsageDetail_20' ) end [2025-03-03 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597185', 'tblTempVendorCDR_20' ) start [2025-03-03 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597185', 'tblTempVendorCDR_20' ) end [2025-03-03 08:17:17] Production.INFO: ProcessCDR(1,14597185,1,1,2) [2025-03-03 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597185', 'tblTempUsageDetail_20' ) start [2025-03-03 08:17:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597185', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:17:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:17:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:17:25] Production.INFO: ==28766== Releasing lock... [2025-03-03 08:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:17:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:18:02] Production.INFO: ==28859== Lock acquired, processing the job... [2025-03-03 13:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:18:02] Production.INFO: neon service started [2025-03-03 13:18:02] Production.INFO: neon service started [2025-03-03 13:18:02] Production.INFO: ==28859== Releasing lock... [2025-03-03 13:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:18:02] Production.INFO: ==28861== Lock acquired, processing the job... [2025-03-03 08:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:18:03] Production.INFO: ==28863== Lock acquired, processing the job... [2025-03-03 13:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:18:03] Production.INFO: ==28861== Releasing lock... [2025-03-03 08:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:18:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:18:03] Production.INFO: ==28863== Releasing lock... [2025-03-03 13:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:18:03] Production.INFO: ==28865== Lock acquired, processing the job... [2025-03-03 08:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:18:04] Production.INFO: ==28867== Lock acquired, processing the job... [2025-03-03 08:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:18:04] Production.INFO: ==28869== Lock acquired, processing the job... [2025-03-03 08:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:18:04] Production.INFO: ==28873== Lock acquired, processing the job... [2025-03-03 08:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:18:04] Production.INFO: ==28876== Lock acquired, processing the job... [2025-03-03 08:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:18:04] Production.INFO: ==28871== Lock acquired, processing the job... [2025-03-03 08:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:18:04] Production.INFO: count ==13 [2025-03-03 08:18:04] Production.INFO: Account Balance Start. [2025-03-03 08:18:04] Production.INFO: CreateAllLog Start [2025-03-03 08:18:04] Production.INFO: 117 [2025-03-03 08:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:18:04] Production.INFO: count ==21 [2025-03-03 08:18:04] Production.INFO: ==28867== Releasing lock... [2025-03-03 08:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597188') start [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.ERROR: done [2025-03-03 08:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597188') end [2025-03-03 08:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:18:04] Production.INFO: 1 [2025-03-03 08:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: ==28876== Releasing lock... [2025-03-03 08:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.ERROR: done [2025-03-03 08:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:18:05] Production.INFO: Total Charge 0 [2025-03-03 08:18:05] Production.INFO: CreateAllLog End [2025-03-03 08:18:05] Production.INFO: Account Balance End. [2025-03-03 08:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:18:05] Production.INFO: ==28871== Releasing lock... [2025-03-03 08:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:18:12] Production.ERROR: CronJobId end10 [2025-03-03 08:18:12] Production.INFO: ==28869== Releasing lock... [2025-03-03 08:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:18:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:18:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:18:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:18:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:18:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:18:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:18:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:18:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:18:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:18:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:18:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:18:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:18:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:18:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:18:15] Production.INFO: call_cost start [2025-03-03 08:18:15] Production.INFO: call_cost end [2025-03-03 08:18:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:18:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:18:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:18:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:18:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:18:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:18:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:18:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:18:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:18:15] Production.INFO: ==28865== Releasing lock... [2025-03-03 08:18:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:18:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:18:16] Production.INFO: count ==409 [2025-03-03 08:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597190', 'tblTempUsageDetail_20' ) start [2025-03-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597190', 'tblTempUsageDetail_20' ) end [2025-03-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597190', 'tblTempVendorCDR_20' ) start [2025-03-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597190', 'tblTempVendorCDR_20' ) end [2025-03-03 08:18:17] Production.INFO: ProcessCDR(1,14597190,1,1,2) [2025-03-03 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597190', 'tblTempUsageDetail_20' ) start [2025-03-03 08:18:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597190', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:18:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:18:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:18:24] Production.INFO: ==28873== Releasing lock... [2025-03-03 08:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:19:01] Production.INFO: ==28953== Lock acquired, processing the job... [2025-03-03 13:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:19:01] Production.INFO: neon service started [2025-03-03 13:19:01] Production.INFO: neon service started [2025-03-03 13:19:01] Production.INFO: ==28953== Releasing lock... [2025-03-03 13:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:19:02] Production.INFO: ==28956== Lock acquired, processing the job... [2025-03-03 08:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:19:02] Production.INFO: ==28958== Lock acquired, processing the job... [2025-03-03 13:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:19:02] Production.INFO: ==28958== Releasing lock... [2025-03-03 13:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:19:02] Production.INFO: ==28956== Releasing lock... [2025-03-03 08:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:19:03] Production.INFO: ==28964== Lock acquired, processing the job... [2025-03-03 08:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:19:03] Production.INFO: ==28968== Lock acquired, processing the job... [2025-03-03 08:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:19:03] Production.INFO: ==28960== Lock acquired, processing the job... [2025-03-03 08:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:19:03] Production.INFO: ==28962== Lock acquired, processing the job... [2025-03-03 08:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:19:03] Production.INFO: ==28966== Lock acquired, processing the job... [2025-03-03 08:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:19:03] Production.INFO: ==28970== Lock acquired, processing the job... [2025-03-03 08:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:19:04] Production.ERROR: done [2025-03-03 08:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:19:04] Production.INFO: Account Balance Start. [2025-03-03 08:19:04] Production.INFO: CreateAllLog Start [2025-03-03 08:19:04] Production.INFO: 117 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: count ==13 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:19:04] Production.INFO: count ==21 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: ==28962== Releasing lock... [2025-03-03 08:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597194') start [2025-03-03 08:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.ERROR: done [2025-03-03 08:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597194') end [2025-03-03 08:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:19:04] Production.INFO: 1 [2025-03-03 08:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:19:04] Production.INFO: ==28970== Releasing lock... [2025-03-03 08:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:19:05] Production.INFO: Total Charge 0 [2025-03-03 08:19:05] Production.INFO: CreateAllLog End [2025-03-03 08:19:05] Production.INFO: Account Balance End. [2025-03-03 08:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:19:05] Production.INFO: ==28966== Releasing lock... [2025-03-03 08:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:19:11] Production.ERROR: CronJobId end10 [2025-03-03 08:19:11] Production.INFO: ==28964== Releasing lock... [2025-03-03 08:19:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:19:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:19:15] Production.INFO: call_cost start [2025-03-03 08:19:15] Production.INFO: call_cost end [2025-03-03 08:19:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:19:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:19:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:19:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:19:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:19:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:19:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:19:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:19:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:19:15] Production.INFO: ==28960== Releasing lock... [2025-03-03 08:19:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:19:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:19:16] Production.INFO: count ==409 [2025-03-03 08:19:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597195', 'tblTempUsageDetail_20' ) start [2025-03-03 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597195', 'tblTempUsageDetail_20' ) end [2025-03-03 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597195', 'tblTempVendorCDR_20' ) start [2025-03-03 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597195', 'tblTempVendorCDR_20' ) end [2025-03-03 08:19:16] Production.INFO: ProcessCDR(1,14597195,1,1,2) [2025-03-03 08:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597195', 'tblTempUsageDetail_20' ) start [2025-03-03 08:19:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597195', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:19:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:19:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:19:24] Production.INFO: ==28968== Releasing lock... [2025-03-03 08:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:19:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:20:02] Production.INFO: ==29037== Lock acquired, processing the job... [2025-03-03 13:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:20:02] Production.INFO: neon service started [2025-03-03 13:20:02] Production.INFO: neon service started [2025-03-03 13:20:02] Production.INFO: ==29037== Releasing lock... [2025-03-03 13:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:20:02] Production.INFO: ==29039== Lock acquired, processing the job... [2025-03-03 08:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:20:03] Production.INFO: ==29039== Releasing lock... [2025-03-03 08:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:20:03] Production.INFO: ==29041== Lock acquired, processing the job... [2025-03-03 13:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:20:03] Production.INFO: ==29041== Releasing lock... [2025-03-03 13:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:20:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:20:04] Production.INFO: ==29046== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:20:04] Production.INFO: ==29044== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 08:20:04] Production.INFO: ==29052== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:20:04] Production.INFO: ==29048== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 08:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:20:04] Production.ERROR: CronJob PID - 29046 [2025-03-03 08:20:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 08:20:04] Production.ERROR: CronJob ID - 5 [2025-03-03 08:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:20:00 [2025-03-03 08:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 08:20:04] Production.INFO: ==29044== Releasing lock... [2025-03-03 08:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 08:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:20:04] Production.INFO: Account Balance Start. [2025-03-03 08:20:04] Production.INFO: CreateAllLog Start [2025-03-03 08:20:04] Production.INFO: 117 [2025-03-03 08:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:20:04] Production.INFO: ==29058== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: ==29050== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: ==29054== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:20:04] Production.INFO: count ==13 [2025-03-03 08:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:20:04] Production.INFO: count ==21 [2025-03-03 08:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: ==29056== Lock acquired, processing the job... [2025-03-03 08:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 08:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597199') start [2025-03-03 08:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597199') end [2025-03-03 08:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:20:04] Production.INFO: 1 [2025-03-03 08:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:20:04] Production.INFO: ==29048== Releasing lock... [2025-03-03 08:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:04] Production.INFO: ==29058== Releasing lock... [2025-03-03 08:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:20:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.ERROR: done [2025-03-03 08:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.ERROR: done [2025-03-03 08:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.ERROR: done [2025-03-03 08:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 08:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597200', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 08:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:20:05] Production.INFO: Total Charge 0 [2025-03-03 08:20:05] Production.INFO: CreateAllLog End [2025-03-03 08:20:05] Production.INFO: Account Balance End. [2025-03-03 08:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:20:05] Production.INFO: ==29052== Releasing lock... [2025-03-03 08:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597200', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 08:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 08:20:09] Production.INFO: ProcessCDR(1,14597200,1,1,2) [2025-03-03 08:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597200,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597200,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 08:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 08:20:09] Production.INFO: ==29056== Releasing lock... [2025-03-03 08:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 08:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 08:20:14] Production.ERROR: CronJobId end10 [2025-03-03 08:20:15] Production.INFO: ==29050== Releasing lock... [2025-03-03 08:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:20:16] Production.INFO: call_cost start [2025-03-03 08:20:16] Production.INFO: call_cost end [2025-03-03 08:20:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:20:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:20:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:20:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:20:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:20:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:20:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:20:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:20:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:20:16] Production.INFO: ==29046== Releasing lock... [2025-03-03 08:20:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:20:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:20:17] Production.INFO: count ==409 [2025-03-03 08:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597201', 'tblTempUsageDetail_20' ) start [2025-03-03 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597201', 'tblTempUsageDetail_20' ) end [2025-03-03 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597201', 'tblTempVendorCDR_20' ) start [2025-03-03 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597201', 'tblTempVendorCDR_20' ) end [2025-03-03 08:20:17] Production.INFO: ProcessCDR(1,14597201,1,1,2) [2025-03-03 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597201', 'tblTempUsageDetail_20' ) start [2025-03-03 08:20:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597201', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:20:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:20:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:20:25] Production.INFO: ==29054== Releasing lock... [2025-03-03 08:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:20:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:21:01] Production.INFO: ==29175== Lock acquired, processing the job... [2025-03-03 13:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:21:01] Production.INFO: neon service started [2025-03-03 13:21:01] Production.INFO: neon service started [2025-03-03 13:21:01] Production.INFO: ==29175== Releasing lock... [2025-03-03 13:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:21:02] Production.INFO: ==29177== Lock acquired, processing the job... [2025-03-03 08:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:21:02] Production.INFO: ==29179== Lock acquired, processing the job... [2025-03-03 13:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:21:02] Production.INFO: ==29177== Releasing lock... [2025-03-03 08:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:21:02] Production.INFO: ==29179== Releasing lock... [2025-03-03 13:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:21:03] Production.INFO: ==29182== Lock acquired, processing the job... [2025-03-03 08:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:21:03] Production.INFO: ==29186== Lock acquired, processing the job... [2025-03-03 08:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:21:03] Production.INFO: ==29192== Lock acquired, processing the job... [2025-03-03 08:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:21:03] Production.INFO: ==29184== Lock acquired, processing the job... [2025-03-03 08:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:21:03] Production.INFO: ==29190== Lock acquired, processing the job... [2025-03-03 08:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:21:03] Production.INFO: count ==13 [2025-03-03 08:21:03] Production.INFO: ==29188== Lock acquired, processing the job... [2025-03-03 08:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:21:03] Production.INFO: count ==21 [2025-03-03 08:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597203') start [2025-03-03 08:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597203') end [2025-03-03 08:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:21:03] Production.INFO: 1 [2025-03-03 08:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:21:03] Production.INFO: ==29192== Releasing lock... [2025-03-03 08:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:21:04] Production.INFO: ==29184== Releasing lock... [2025-03-03 08:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:21:04] Production.INFO: Account Balance Start. [2025-03-03 08:21:04] Production.INFO: CreateAllLog Start [2025-03-03 08:21:04] Production.INFO: 117 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.ERROR: done [2025-03-03 08:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.ERROR: done [2025-03-03 08:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:21:05] Production.INFO: Total Charge 0 [2025-03-03 08:21:05] Production.INFO: CreateAllLog End [2025-03-03 08:21:05] Production.INFO: Account Balance End. [2025-03-03 08:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:21:05] Production.INFO: ==29188== Releasing lock... [2025-03-03 08:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:21:11] Production.ERROR: CronJobId end10 [2025-03-03 08:21:11] Production.INFO: ==29186== Releasing lock... [2025-03-03 08:21:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:21:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:21:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:21:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:21:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:21:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:21:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:21:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:21:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:21:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:21:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:21:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:21:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:21:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:21:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:21:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:21:13] Production.INFO: call_cost start [2025-03-03 08:21:13] Production.INFO: call_cost end [2025-03-03 08:21:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:21:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:21:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:21:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:21:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:21:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:21:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:21:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:21:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:21:13] Production.INFO: ==29182== Releasing lock... [2025-03-03 08:21:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:21:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:21:16] Production.INFO: count ==409 [2025-03-03 08:21:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597206', 'tblTempUsageDetail_20' ) start [2025-03-03 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597206', 'tblTempUsageDetail_20' ) end [2025-03-03 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597206', 'tblTempVendorCDR_20' ) start [2025-03-03 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597206', 'tblTempVendorCDR_20' ) end [2025-03-03 08:21:16] Production.INFO: ProcessCDR(1,14597206,1,1,2) [2025-03-03 08:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597206', 'tblTempUsageDetail_20' ) start [2025-03-03 08:21:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597206', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:21:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:21:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:21:24] Production.INFO: ==29190== Releasing lock... [2025-03-03 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:21:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:22:02] Production.INFO: ==29268== Lock acquired, processing the job... [2025-03-03 13:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:22:02] Production.INFO: neon service started [2025-03-03 13:22:02] Production.INFO: neon service started [2025-03-03 13:22:02] Production.INFO: ==29268== Releasing lock... [2025-03-03 13:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:22:02] Production.INFO: ==29270== Lock acquired, processing the job... [2025-03-03 08:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:22:03] Production.INFO: ==29270== Releasing lock... [2025-03-03 08:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:22:03] Production.INFO: ==29272== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:22:03] Production.INFO: ==29272== Releasing lock... [2025-03-03 13:22:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:22:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:22:03] Production.INFO: ==29274== Lock acquired, processing the job... [2025-03-03 08:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:22:04] Production.INFO: ==29278== Lock acquired, processing the job... [2025-03-03 08:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:22:04] Production.INFO: ==29280== Lock acquired, processing the job... [2025-03-03 08:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:22:04] Production.INFO: Account Balance Start. [2025-03-03 08:22:04] Production.INFO: CreateAllLog Start [2025-03-03 08:22:04] Production.INFO: 117 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: ==29276== Lock acquired, processing the job... [2025-03-03 08:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: ==29283== Lock acquired, processing the job... [2025-03-03 08:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: ==29285== Lock acquired, processing the job... [2025-03-03 08:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:22:04] Production.INFO: count ==13 [2025-03-03 08:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:22:04] Production.INFO: count ==21 [2025-03-03 08:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597210') start [2025-03-03 08:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:22:04] Production.INFO: ==29276== Releasing lock... [2025-03-03 08:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597210') end [2025-03-03 08:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:22:04] Production.INFO: 1 [2025-03-03 08:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: ==29285== Releasing lock... [2025-03-03 08:22:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:22:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:22:05] Production.ERROR: done [2025-03-03 08:22:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.ERROR: done [2025-03-03 08:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:22:05] Production.INFO: Total Charge 0 [2025-03-03 08:22:05] Production.INFO: CreateAllLog End [2025-03-03 08:22:05] Production.INFO: Account Balance End. [2025-03-03 08:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:22:05] Production.INFO: ==29280== Releasing lock... [2025-03-03 08:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:22:13] Production.ERROR: CronJobId end10 [2025-03-03 08:22:13] Production.INFO: ==29278== Releasing lock... [2025-03-03 08:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:22:14] Production.INFO: call_cost start [2025-03-03 08:22:14] Production.INFO: call_cost end [2025-03-03 08:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:22:14] Production.INFO: ==29274== Releasing lock... [2025-03-03 08:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:22:17] Production.INFO: count ==409 [2025-03-03 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597211', 'tblTempUsageDetail_20' ) start [2025-03-03 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597211', 'tblTempUsageDetail_20' ) end [2025-03-03 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597211', 'tblTempVendorCDR_20' ) start [2025-03-03 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597211', 'tblTempVendorCDR_20' ) end [2025-03-03 08:22:17] Production.INFO: ProcessCDR(1,14597211,1,1,2) [2025-03-03 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597211', 'tblTempUsageDetail_20' ) start [2025-03-03 08:22:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597211', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:22:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:22:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:22:25] Production.INFO: ==29283== Releasing lock... [2025-03-03 08:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:22:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:23:01] Production.INFO: ==29358== Lock acquired, processing the job... [2025-03-03 13:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:23:01] Production.INFO: neon service started [2025-03-03 13:23:01] Production.INFO: neon service started [2025-03-03 13:23:01] Production.INFO: ==29358== Releasing lock... [2025-03-03 13:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:23:02] Production.INFO: ==29362== Lock acquired, processing the job... [2025-03-03 13:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:23:02] Production.INFO: ==29360== Lock acquired, processing the job... [2025-03-03 08:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:23:02] Production.INFO: ==29362== Releasing lock... [2025-03-03 13:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:23:02] Production.INFO: ==29360== Releasing lock... [2025-03-03 08:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:23:03] Production.INFO: ==29367== Lock acquired, processing the job... [2025-03-03 08:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:23:03] Production.INFO: ==29369== Lock acquired, processing the job... [2025-03-03 08:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:23:03] Production.INFO: ==29371== Lock acquired, processing the job... [2025-03-03 08:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:23:03] Production.INFO: ==29369== Releasing lock... [2025-03-03 08:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:23:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:23:04] Production.INFO: ==29373== Lock acquired, processing the job... [2025-03-03 08:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:23:04] Production.INFO: ==29377== Lock acquired, processing the job... [2025-03-03 08:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:23:04] Production.INFO: Account Balance Start. [2025-03-03 08:23:04] Production.INFO: CreateAllLog Start [2025-03-03 08:23:04] Production.INFO: 117 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:23:04] Production.INFO: ==29375== Lock acquired, processing the job... [2025-03-03 08:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:23:04] Production.INFO: count ==13 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:23:04] Production.INFO: count ==21 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597215') start [2025-03-03 08:23:04] Production.ERROR: done [2025-03-03 08:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597215') end [2025-03-03 08:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:23:04] Production.INFO: 1 [2025-03-03 08:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: ==29377== Releasing lock... [2025-03-03 08:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:23:04] Production.ERROR: done [2025-03-03 08:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:23:05] Production.INFO: Total Charge 0 [2025-03-03 08:23:05] Production.INFO: CreateAllLog End [2025-03-03 08:23:05] Production.INFO: Account Balance End. [2025-03-03 08:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:23:05] Production.INFO: ==29373== Releasing lock... [2025-03-03 08:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:23:11] Production.ERROR: CronJobId end10 [2025-03-03 08:23:11] Production.INFO: ==29371== Releasing lock... [2025-03-03 08:23:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:23:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:23:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:23:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:23:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:23:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:23:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:23:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:23:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:23:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:23:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:23:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:23:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:23:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:23:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:23:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:23:14] Production.INFO: call_cost start [2025-03-03 08:23:14] Production.INFO: call_cost end [2025-03-03 08:23:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:23:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:23:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:23:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:23:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:23:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:23:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:23:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:23:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:23:14] Production.INFO: ==29367== Releasing lock... [2025-03-03 08:23:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:23:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:23:16] Production.INFO: count ==409 [2025-03-03 08:23:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597216', 'tblTempUsageDetail_20' ) start [2025-03-03 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597216', 'tblTempUsageDetail_20' ) end [2025-03-03 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597216', 'tblTempVendorCDR_20' ) start [2025-03-03 08:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597216', 'tblTempVendorCDR_20' ) end [2025-03-03 08:23:16] Production.INFO: ProcessCDR(1,14597216,1,1,2) [2025-03-03 08:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597216', 'tblTempUsageDetail_20' ) start [2025-03-03 08:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597216', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:23:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:23:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:23:24] Production.INFO: ==29375== Releasing lock... [2025-03-03 08:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:23:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:24:02] Production.INFO: ==29459== Lock acquired, processing the job... [2025-03-03 13:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:24:02] Production.INFO: neon service started [2025-03-03 13:24:02] Production.INFO: neon service started [2025-03-03 13:24:02] Production.INFO: ==29459== Releasing lock... [2025-03-03 13:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:24:02] Production.INFO: ==29463== Lock acquired, processing the job... [2025-03-03 13:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:24:02] Production.INFO: ==29463== Releasing lock... [2025-03-03 13:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:24:02] Production.INFO: ==29461== Lock acquired, processing the job... [2025-03-03 08:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:24:03] Production.INFO: ==29461== Releasing lock... [2025-03-03 08:24:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:24:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:24:04] Production.INFO: ==29466== Lock acquired, processing the job... [2025-03-03 08:24:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:24:04] Production.INFO: ==29474== Lock acquired, processing the job... [2025-03-03 08:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:24:04] Production.INFO: ==29468== Lock acquired, processing the job... [2025-03-03 08:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:24:04] Production.INFO: ==29470== Lock acquired, processing the job... [2025-03-03 08:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:24:04] Production.INFO: ==29472== Lock acquired, processing the job... [2025-03-03 08:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:24:04] Production.INFO: ==29476== Lock acquired, processing the job... [2025-03-03 08:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:24:04] Production.INFO: Account Balance Start. [2025-03-03 08:24:04] Production.INFO: CreateAllLog Start [2025-03-03 08:24:04] Production.INFO: 117 [2025-03-03 08:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:04] Production.ERROR: done [2025-03-03 08:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: count ==13 [2025-03-03 08:24:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:24:05] Production.INFO: count ==21 [2025-03-03 08:24:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597220') start [2025-03-03 08:24:05] Production.INFO: Date 2025-02-11 [2025-03-03 08:24:05] Production.ERROR: done [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: ==29468== Releasing lock... [2025-03-03 08:24:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:24:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:24:05] Production.INFO: Date 2025-02-12 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-13 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:24:05] Production.INFO: Date 2025-02-14 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597220') end [2025-03-03 08:24:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:24:05] Production.INFO: 1 [2025-03-03 08:24:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:24:05] Production.INFO: Date 2025-02-15 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: ==29476== Releasing lock... [2025-03-03 08:24:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:24:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:24:05] Production.INFO: Date 2025-02-16 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:24:05] Production.INFO: Total Charge 0 [2025-03-03 08:24:05] Production.INFO: CreateAllLog End [2025-03-03 08:24:05] Production.INFO: Account Balance End. [2025-03-03 08:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:24:05] Production.INFO: ==29472== Releasing lock... [2025-03-03 08:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:24:13] Production.ERROR: CronJobId end10 [2025-03-03 08:24:13] Production.INFO: ==29470== Releasing lock... [2025-03-03 08:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:24:15] Production.INFO: call_cost start [2025-03-03 08:24:15] Production.INFO: call_cost end [2025-03-03 08:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:24:15] Production.INFO: ==29466== Releasing lock... [2025-03-03 08:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:24:17] Production.INFO: count ==409 [2025-03-03 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597221', 'tblTempUsageDetail_20' ) start [2025-03-03 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597221', 'tblTempUsageDetail_20' ) end [2025-03-03 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597221', 'tblTempVendorCDR_20' ) start [2025-03-03 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597221', 'tblTempVendorCDR_20' ) end [2025-03-03 08:24:17] Production.INFO: ProcessCDR(1,14597221,1,1,2) [2025-03-03 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597221', 'tblTempUsageDetail_20' ) start [2025-03-03 08:24:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597221', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:24:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:24:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:24:25] Production.INFO: ==29474== Releasing lock... [2025-03-03 08:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:24:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:25:01] Production.INFO: ==29552== Lock acquired, processing the job... [2025-03-03 13:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:25:01] Production.INFO: neon service started [2025-03-03 13:25:01] Production.INFO: neon service started [2025-03-03 13:25:01] Production.INFO: ==29552== Releasing lock... [2025-03-03 13:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:25:02] Production.INFO: ==29556== Lock acquired, processing the job... [2025-03-03 13:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:25:02] Production.INFO: ==29554== Lock acquired, processing the job... [2025-03-03 08:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:25:02] Production.INFO: ==29556== Releasing lock... [2025-03-03 13:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:25:02] Production.INFO: ==29554== Releasing lock... [2025-03-03 08:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:25:03] Production.INFO: ==29563== Lock acquired, processing the job... [2025-03-03 08:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:25:03] Production.INFO: ==29569== Lock acquired, processing the job... [2025-03-03 08:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:25:03] Production.INFO: ==29559== Lock acquired, processing the job... [2025-03-03 08:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:25:03] Production.INFO: ==29561== Lock acquired, processing the job... [2025-03-03 08:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:25:04] Production.INFO: ==29565== Lock acquired, processing the job... [2025-03-03 08:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:25:04] Production.INFO: count ==13 [2025-03-03 08:25:04] Production.INFO: ==29567== Lock acquired, processing the job... [2025-03-03 08:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:25:04] Production.INFO: count ==21 [2025-03-03 08:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597222') start [2025-03-03 08:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:25:04] Production.INFO: Account Balance Start. [2025-03-03 08:25:04] Production.INFO: CreateAllLog Start [2025-03-03 08:25:04] Production.INFO: 117 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597222') end [2025-03-03 08:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:25:04] Production.INFO: 1 [2025-03-03 08:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: ==29569== Releasing lock... [2025-03-03 08:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:25:04] Production.INFO: ==29561== Releasing lock... [2025-03-03 08:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.ERROR: done [2025-03-03 08:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:04] Production.ERROR: done [2025-03-03 08:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:25:05] Production.INFO: Total Charge 0 [2025-03-03 08:25:05] Production.INFO: CreateAllLog End [2025-03-03 08:25:05] Production.INFO: Account Balance End. [2025-03-03 08:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:25:05] Production.INFO: ==29565== Releasing lock... [2025-03-03 08:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:25:10] Production.ERROR: CronJobId end10 [2025-03-03 08:25:10] Production.INFO: ==29563== Releasing lock... [2025-03-03 08:25:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:25:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:25:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:25:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:25:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:25:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:25:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:25:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:25:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:25:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:25:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:25:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:25:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:25:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:25:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:25:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:25:13] Production.INFO: call_cost start [2025-03-03 08:25:13] Production.INFO: call_cost end [2025-03-03 08:25:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:25:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:25:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:25:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:25:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:25:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:25:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:25:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:25:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:25:13] Production.INFO: ==29559== Releasing lock... [2025-03-03 08:25:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:25:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:25:17] Production.INFO: count ==409 [2025-03-03 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597226', 'tblTempUsageDetail_20' ) start [2025-03-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597226', 'tblTempUsageDetail_20' ) end [2025-03-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597226', 'tblTempVendorCDR_20' ) start [2025-03-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597226', 'tblTempVendorCDR_20' ) end [2025-03-03 08:25:17] Production.INFO: ProcessCDR(1,14597226,1,1,2) [2025-03-03 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597226', 'tblTempUsageDetail_20' ) start [2025-03-03 08:25:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597226', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:25:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:25:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:25:24] Production.INFO: ==29567== Releasing lock... [2025-03-03 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:26:02] Production.INFO: ==29643== Lock acquired, processing the job... [2025-03-03 13:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:26:02] Production.INFO: neon service started [2025-03-03 13:26:02] Production.INFO: neon service started [2025-03-03 13:26:02] Production.INFO: ==29643== Releasing lock... [2025-03-03 13:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:26:02] Production.INFO: ==29647== Lock acquired, processing the job... [2025-03-03 13:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:26:02] Production.INFO: ==29647== Releasing lock... [2025-03-03 13:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:26:02] Production.INFO: ==29645== Lock acquired, processing the job... [2025-03-03 08:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:26:03] Production.INFO: ==29645== Releasing lock... [2025-03-03 08:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:26:03] Production.INFO: ==29650== Lock acquired, processing the job... [2025-03-03 08:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:26:04] Production.INFO: ==29652== Lock acquired, processing the job... [2025-03-03 08:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:26:04] Production.INFO: ==29654== Lock acquired, processing the job... [2025-03-03 08:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:26:04] Production.INFO: ==29656== Lock acquired, processing the job... [2025-03-03 08:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:26:04] Production.INFO: ==29660== Lock acquired, processing the job... [2025-03-03 08:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:26:04] Production.INFO: ==29658== Lock acquired, processing the job... [2025-03-03 08:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:26:04] Production.INFO: ==29652== Releasing lock... [2025-03-03 08:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:26:04] Production.INFO: Account Balance Start. [2025-03-03 08:26:04] Production.INFO: CreateAllLog Start [2025-03-03 08:26:04] Production.INFO: 117 [2025-03-03 08:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:04] Production.INFO: count ==13 [2025-03-03 08:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:26:04] Production.INFO: count ==21 [2025-03-03 08:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597230') start [2025-03-03 08:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597230') end [2025-03-03 08:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:26:04] Production.INFO: 1 [2025-03-03 08:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:26:05] Production.INFO: Date 2025-02-14 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-15 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: ==29660== Releasing lock... [2025-03-03 08:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:26:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:26:05] Production.ERROR: done [2025-03-03 08:26:05] Production.INFO: Date 2025-02-16 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.ERROR: done [2025-03-03 08:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:26:05] Production.INFO: Total Charge 0 [2025-03-03 08:26:05] Production.INFO: CreateAllLog End [2025-03-03 08:26:06] Production.INFO: Account Balance End. [2025-03-03 08:26:06] Production.ERROR: CronJobId end 12 [2025-03-03 08:26:06] Production.INFO: ==29656== Releasing lock... [2025-03-03 08:26:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:26:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:26:13] Production.ERROR: CronJobId end10 [2025-03-03 08:26:13] Production.INFO: ==29654== Releasing lock... [2025-03-03 08:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:26:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:26:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:26:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:26:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:26:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:26:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:26:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:26:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:26:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:26:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:26:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:26:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:26:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:26:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:26:16] Production.INFO: call_cost start [2025-03-03 08:26:16] Production.INFO: call_cost end [2025-03-03 08:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:26:16] Production.INFO: ==29650== Releasing lock... [2025-03-03 08:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:26:17] Production.INFO: count ==409 [2025-03-03 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597231', 'tblTempUsageDetail_20' ) start [2025-03-03 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597231', 'tblTempUsageDetail_20' ) end [2025-03-03 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597231', 'tblTempVendorCDR_20' ) start [2025-03-03 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597231', 'tblTempVendorCDR_20' ) end [2025-03-03 08:26:17] Production.INFO: ProcessCDR(1,14597231,1,1,2) [2025-03-03 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597231', 'tblTempUsageDetail_20' ) start [2025-03-03 08:26:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597231', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:26:25] Production.INFO: ==29658== Releasing lock... [2025-03-03 08:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:26:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:27:01] Production.INFO: ==29737== Lock acquired, processing the job... [2025-03-03 13:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:27:01] Production.INFO: neon service started [2025-03-03 13:27:01] Production.INFO: neon service started [2025-03-03 13:27:01] Production.INFO: ==29737== Releasing lock... [2025-03-03 13:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:27:02] Production.INFO: ==29740== Lock acquired, processing the job... [2025-03-03 08:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:27:02] Production.INFO: ==29740== Releasing lock... [2025-03-03 08:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:27:02] Production.INFO: ==29742== Lock acquired, processing the job... [2025-03-03 13:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:27:02] Production.INFO: ==29742== Releasing lock... [2025-03-03 13:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:27:03] Production.INFO: ==29750== Lock acquired, processing the job... [2025-03-03 08:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:27:03] Production.INFO: ==29744== Lock acquired, processing the job... [2025-03-03 08:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:27:03] Production.INFO: Account Balance Start. [2025-03-03 08:27:03] Production.INFO: CreateAllLog Start [2025-03-03 08:27:03] Production.INFO: 117 [2025-03-03 08:27:03] Production.INFO: ==29746== Lock acquired, processing the job... [2025-03-03 08:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:27:03] Production.INFO: ==29748== Lock acquired, processing the job... [2025-03-03 08:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:27:03] Production.INFO: ==29755== Lock acquired, processing the job... [2025-03-03 08:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: ==29753== Lock acquired, processing the job... [2025-03-03 08:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:27:03] Production.INFO: count ==13 [2025-03-03 08:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: count ==21 [2025-03-03 08:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597233') start [2025-03-03 08:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597233') end [2025-03-03 08:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:27:03] Production.INFO: 1 [2025-03-03 08:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:27:03] Production.INFO: ==29755== Releasing lock... [2025-03-03 08:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:27:03] Production.INFO: Date 2025-02-15 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: Date 2025-02-16 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.INFO: ==29746== Releasing lock... [2025-03-03 08:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:27:03] Production.INFO: Date 2025-02-17 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:03] Production.ERROR: done [2025-03-03 08:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:27:03] Production.INFO: Date 2025-02-18 [2025-03-03 08:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.ERROR: done [2025-03-03 08:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:27:04] Production.INFO: Total Charge 0 [2025-03-03 08:27:04] Production.INFO: CreateAllLog End [2025-03-03 08:27:04] Production.INFO: Account Balance End. [2025-03-03 08:27:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:27:04] Production.INFO: ==29750== Releasing lock... [2025-03-03 08:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:27:11] Production.ERROR: CronJobId end10 [2025-03-03 08:27:11] Production.INFO: ==29748== Releasing lock... [2025-03-03 08:27:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:27:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:27:14] Production.INFO: call_cost start [2025-03-03 08:27:14] Production.INFO: call_cost end [2025-03-03 08:27:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:27:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:27:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:27:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:27:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:27:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:27:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:27:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:27:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:27:14] Production.INFO: ==29744== Releasing lock... [2025-03-03 08:27:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:27:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:27:16] Production.INFO: count ==409 [2025-03-03 08:27:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597236', 'tblTempUsageDetail_20' ) start [2025-03-03 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597236', 'tblTempUsageDetail_20' ) end [2025-03-03 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597236', 'tblTempVendorCDR_20' ) start [2025-03-03 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597236', 'tblTempVendorCDR_20' ) end [2025-03-03 08:27:16] Production.INFO: ProcessCDR(1,14597236,1,1,2) [2025-03-03 08:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597236', 'tblTempUsageDetail_20' ) start [2025-03-03 08:27:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597236', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:27:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:27:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:27:23] Production.INFO: ==29753== Releasing lock... [2025-03-03 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:27:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:28:02] Production.INFO: ==29838== Lock acquired, processing the job... [2025-03-03 13:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:28:02] Production.INFO: neon service started [2025-03-03 13:28:02] Production.INFO: neon service started [2025-03-03 13:28:02] Production.INFO: ==29838== Releasing lock... [2025-03-03 13:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:28:02] Production.INFO: ==29840== Lock acquired, processing the job... [2025-03-03 08:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:28:02] Production.INFO: ==29842== Lock acquired, processing the job... [2025-03-03 13:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:28:02] Production.INFO: ==29842== Releasing lock... [2025-03-03 13:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:28:03] Production.INFO: ==29840== Releasing lock... [2025-03-03 08:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:28:04] Production.INFO: ==29851== Lock acquired, processing the job... [2025-03-03 08:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:28:04] Production.INFO: ==29855== Lock acquired, processing the job... [2025-03-03 08:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:28:04] Production.INFO: Account Balance Start. [2025-03-03 08:28:04] Production.INFO: CreateAllLog Start [2025-03-03 08:28:04] Production.INFO: 117 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: ==29845== Lock acquired, processing the job... [2025-03-03 08:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:28:04] Production.INFO: ==29847== Lock acquired, processing the job... [2025-03-03 08:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:28:04] Production.INFO: count ==13 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:28:04] Production.INFO: count ==21 [2025-03-03 08:28:04] Production.INFO: ==29849== Lock acquired, processing the job... [2025-03-03 08:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597238') start [2025-03-03 08:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: ==29853== Lock acquired, processing the job... [2025-03-03 08:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597238') end [2025-03-03 08:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:28:04] Production.INFO: 1 [2025-03-03 08:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: ==29847== Releasing lock... [2025-03-03 08:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:28:04] Production.INFO: ==29855== Releasing lock... [2025-03-03 08:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:04] Production.ERROR: done [2025-03-03 08:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:28:05] Production.ERROR: done [2025-03-03 08:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:28:05] Production.INFO: Total Charge 0 [2025-03-03 08:28:05] Production.INFO: CreateAllLog End [2025-03-03 08:28:05] Production.INFO: Account Balance End. [2025-03-03 08:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:28:05] Production.INFO: ==29851== Releasing lock... [2025-03-03 08:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:28:12] Production.ERROR: CronJobId end10 [2025-03-03 08:28:12] Production.INFO: ==29849== Releasing lock... [2025-03-03 08:28:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:28:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:28:14] Production.INFO: call_cost start [2025-03-03 08:28:14] Production.INFO: call_cost end [2025-03-03 08:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:28:14] Production.INFO: ==29845== Releasing lock... [2025-03-03 08:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:28:17] Production.INFO: count ==409 [2025-03-03 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597241', 'tblTempUsageDetail_20' ) start [2025-03-03 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597241', 'tblTempUsageDetail_20' ) end [2025-03-03 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597241', 'tblTempVendorCDR_20' ) start [2025-03-03 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597241', 'tblTempVendorCDR_20' ) end [2025-03-03 08:28:17] Production.INFO: ProcessCDR(1,14597241,1,1,2) [2025-03-03 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597241', 'tblTempUsageDetail_20' ) start [2025-03-03 08:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597241', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:28:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:28:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:28:24] Production.INFO: ==29853== Releasing lock... [2025-03-03 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:28:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:29:01] Production.INFO: ==29937== Lock acquired, processing the job... [2025-03-03 13:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:29:01] Production.INFO: neon service started [2025-03-03 13:29:01] Production.INFO: neon service started [2025-03-03 13:29:01] Production.INFO: ==29937== Releasing lock... [2025-03-03 13:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:29:02] Production.INFO: ==29939== Lock acquired, processing the job... [2025-03-03 08:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:29:02] Production.INFO: ==29939== Releasing lock... [2025-03-03 08:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:29:02] Production.INFO: ==29941== Lock acquired, processing the job... [2025-03-03 13:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:29:02] Production.INFO: ==29941== Releasing lock... [2025-03-03 13:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:29:03] Production.INFO: ==29947== Lock acquired, processing the job... [2025-03-03 08:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:29:03] Production.INFO: ==29951== Lock acquired, processing the job... [2025-03-03 08:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:29:03] Production.INFO: ==29943== Lock acquired, processing the job... [2025-03-03 08:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:29:03] Production.INFO: ==29945== Lock acquired, processing the job... [2025-03-03 08:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:29:03] Production.INFO: ==29949== Lock acquired, processing the job... [2025-03-03 08:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:29:03] Production.INFO: ==29953== Lock acquired, processing the job... [2025-03-03 08:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:29:03] Production.INFO: Account Balance Start. [2025-03-03 08:29:03] Production.INFO: CreateAllLog Start [2025-03-03 08:29:03] Production.INFO: 117 [2025-03-03 08:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:03] Production.INFO: count ==13 [2025-03-03 08:29:03] Production.INFO: ==29945== Releasing lock... [2025-03-03 08:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:29:03] Production.INFO: count ==21 [2025-03-03 08:29:03] Production.ERROR: done [2025-03-03 08:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597245') start [2025-03-03 08:29:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597245') end [2025-03-03 08:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:29:03] Production.INFO: 1 [2025-03-03 08:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: ==29953== Releasing lock... [2025-03-03 08:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:29:04] Production.ERROR: done [2025-03-03 08:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:29:04] Production.INFO: Total Charge 0 [2025-03-03 08:29:04] Production.INFO: CreateAllLog End [2025-03-03 08:29:04] Production.INFO: Account Balance End. [2025-03-03 08:29:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:29:04] Production.INFO: ==29949== Releasing lock... [2025-03-03 08:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:29:10] Production.ERROR: CronJobId end10 [2025-03-03 08:29:10] Production.INFO: ==29947== Releasing lock... [2025-03-03 08:29:10] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:29:10] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:29:14] Production.INFO: call_cost start [2025-03-03 08:29:14] Production.INFO: call_cost end [2025-03-03 08:29:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:29:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:29:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:29:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:29:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:29:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:29:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:29:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:29:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:29:14] Production.INFO: ==29943== Releasing lock... [2025-03-03 08:29:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:29:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:29:16] Production.INFO: count ==409 [2025-03-03 08:29:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597246', 'tblTempUsageDetail_20' ) start [2025-03-03 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597246', 'tblTempUsageDetail_20' ) end [2025-03-03 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597246', 'tblTempVendorCDR_20' ) start [2025-03-03 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597246', 'tblTempVendorCDR_20' ) end [2025-03-03 08:29:16] Production.INFO: ProcessCDR(1,14597246,1,1,2) [2025-03-03 08:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597246', 'tblTempUsageDetail_20' ) start [2025-03-03 08:29:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597246', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:29:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:29:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:29:23] Production.INFO: ==29951== Releasing lock... [2025-03-03 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:29:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:30:02] Production.INFO: ==30031== Lock acquired, processing the job... [2025-03-03 13:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:30:02] Production.INFO: neon service started [2025-03-03 13:30:02] Production.INFO: neon service started [2025-03-03 13:30:02] Production.INFO: ==30031== Releasing lock... [2025-03-03 13:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:30:02] Production.INFO: ==30033== Lock acquired, processing the job... [2025-03-03 08:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:30:02] Production.INFO: ==30035== Lock acquired, processing the job... [2025-03-03 13:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:30:02] Production.INFO: ==30035== Releasing lock... [2025-03-03 13:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:30:03] Production.INFO: ==30033== Releasing lock... [2025-03-03 08:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:30:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:30:04] Production.INFO: ==30040== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:30:04] Production.INFO: ==30048== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:30:04] Production.INFO: ==30050== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 08:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:30:04] Production.INFO: ==30038== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 08:30:04] Production.INFO: ==30042== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:30:04] Production.INFO: ==30044== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 08:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:30:04] Production.ERROR: CronJob PID - 30040 [2025-03-03 08:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 08:30:04] Production.ERROR: CronJob ID - 5 [2025-03-03 08:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:30:00 [2025-03-03 08:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:30:04] Production.ERROR: CronJob PID - 30048 [2025-03-03 08:30:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 08:30:04] Production.ERROR: CronJob ID - 16 [2025-03-03 08:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:30:00 [2025-03-03 08:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:30:04] Production.INFO: ==30052== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 08:30:04] Production.INFO: ==30038== Releasing lock... [2025-03-03 08:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 08:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:30:04] Production.INFO: ==30046== Lock acquired, processing the job... [2025-03-03 08:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:30:04] Production.INFO: count ==13 [2025-03-03 08:30:04] Production.INFO: Account Balance Start. [2025-03-03 08:30:04] Production.INFO: CreateAllLog Start [2025-03-03 08:30:04] Production.INFO: 117 [2025-03-03 08:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:30:04] Production.INFO: count ==21 [2025-03-03 08:30:04] Production.INFO: ==30042== Releasing lock... [2025-03-03 08:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597249') start [2025-03-03 08:30:04] Production.ERROR: done [2025-03-03 08:30:05] Production.INFO: Date 2025-02-08 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:30:05] Production.ERROR: done [2025-03-03 08:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597249') end [2025-03-03 08:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:30:05] Production.INFO: 1 [2025-03-03 08:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 08:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597251', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 08:30:05] Production.INFO: Date 2025-02-09 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-10 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: ==30052== Releasing lock... [2025-03-03 08:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:30:05] Production.INFO: Date 2025-02-11 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.ERROR: done [2025-03-03 08:30:05] Production.INFO: Date 2025-02-12 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:30:05] Production.INFO: Date 2025-02-13 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-14 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:06] Production.INFO: Date 2025-02-28 [2025-03-03 08:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:06] Production.INFO: Date 2025-03-01 [2025-03-03 08:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 08:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 08:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 08:30:06] Production.INFO: Total Charge 0 [2025-03-03 08:30:06] Production.INFO: CreateAllLog End [2025-03-03 08:30:06] Production.INFO: Account Balance End. [2025-03-03 08:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 08:30:06] Production.INFO: ==30046== Releasing lock... [2025-03-03 08:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:30:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597251', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 08:30:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 08:30:08] Production.INFO: ProcessCDR(1,14597251,1,1,2) [2025-03-03 08:30:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597251,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:30:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597251,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:30:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 08:30:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 08:30:08] Production.INFO: ==30050== Releasing lock... [2025-03-03 08:30:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 08:30:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 08:30:13] Production.ERROR: CronJobId end10 [2025-03-03 08:30:13] Production.INFO: ==30044== Releasing lock... [2025-03-03 08:30:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:30:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:30:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:30:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:30:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:30:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:30:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:30:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:30:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:30:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:30:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:30:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:30:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:30:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:30:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:30:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:30:15] Production.INFO: call_cost start [2025-03-03 08:30:15] Production.INFO: call_cost end [2025-03-03 08:30:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:30:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:30:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:30:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:30:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:30:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:30:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:30:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:30:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:30:15] Production.INFO: ==30040== Releasing lock... [2025-03-03 08:30:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:30:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:30:17] Production.INFO: count ==409 [2025-03-03 08:30:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597252', 'tblTempUsageDetail_20' ) start [2025-03-03 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597252', 'tblTempUsageDetail_20' ) end [2025-03-03 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597252', 'tblTempVendorCDR_20' ) start [2025-03-03 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597252', 'tblTempVendorCDR_20' ) end [2025-03-03 08:30:17] Production.INFO: ProcessCDR(1,14597252,1,1,2) [2025-03-03 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597252', 'tblTempUsageDetail_20' ) start [2025-03-03 08:30:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597252', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:30:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:30:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:30:25] Production.INFO: ==30048== Releasing lock... [2025-03-03 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:30:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:31:01] Production.INFO: ==30124== Lock acquired, processing the job... [2025-03-03 13:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:31:01] Production.INFO: neon service started [2025-03-03 13:31:01] Production.INFO: neon service started [2025-03-03 13:31:01] Production.INFO: ==30124== Releasing lock... [2025-03-03 13:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:31:02] Production.INFO: ==30128== Lock acquired, processing the job... [2025-03-03 13:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:31:02] Production.INFO: ==30128== Releasing lock... [2025-03-03 13:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:31:02] Production.INFO: ==30126== Lock acquired, processing the job... [2025-03-03 08:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:31:02] Production.INFO: ==30126== Releasing lock... [2025-03-03 08:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:31:03] Production.INFO: ==30139== Lock acquired, processing the job... [2025-03-03 08:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:31:03] Production.INFO: ==30141== Lock acquired, processing the job... [2025-03-03 08:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:31:03] Production.INFO: ==30131== Lock acquired, processing the job... [2025-03-03 08:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:31:03] Production.INFO: ==30133== Lock acquired, processing the job... [2025-03-03 08:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:31:03] Production.INFO: ==30137== Lock acquired, processing the job... [2025-03-03 08:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:31:03] Production.INFO: ==30135== Lock acquired, processing the job... [2025-03-03 08:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:31:03] Production.INFO: Account Balance Start. [2025-03-03 08:31:03] Production.INFO: CreateAllLog Start [2025-03-03 08:31:03] Production.INFO: 117 [2025-03-03 08:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:03] Production.INFO: count ==13 [2025-03-03 08:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:31:04] Production.INFO: count ==21 [2025-03-03 08:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597254') start [2025-03-03 08:31:04] Production.ERROR: done [2025-03-03 08:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597254') end [2025-03-03 08:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:31:04] Production.INFO: 1 [2025-03-03 08:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: ==30141== Releasing lock... [2025-03-03 08:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: ==30133== Releasing lock... [2025-03-03 08:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:31:04] Production.ERROR: done [2025-03-03 08:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:31:05] Production.INFO: Total Charge 0 [2025-03-03 08:31:05] Production.INFO: CreateAllLog End [2025-03-03 08:31:05] Production.INFO: Account Balance End. [2025-03-03 08:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:31:05] Production.INFO: ==30137== Releasing lock... [2025-03-03 08:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:31:12] Production.ERROR: CronJobId end10 [2025-03-03 08:31:12] Production.INFO: ==30135== Releasing lock... [2025-03-03 08:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:31:14] Production.INFO: call_cost start [2025-03-03 08:31:14] Production.INFO: call_cost end [2025-03-03 08:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:31:14] Production.INFO: ==30131== Releasing lock... [2025-03-03 08:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:31:16] Production.INFO: count ==409 [2025-03-03 08:31:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597257', 'tblTempUsageDetail_20' ) start [2025-03-03 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597257', 'tblTempUsageDetail_20' ) end [2025-03-03 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597257', 'tblTempVendorCDR_20' ) start [2025-03-03 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597257', 'tblTempVendorCDR_20' ) end [2025-03-03 08:31:16] Production.INFO: ProcessCDR(1,14597257,1,1,2) [2025-03-03 08:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597257', 'tblTempUsageDetail_20' ) start [2025-03-03 08:31:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597257', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:31:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:31:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:31:24] Production.INFO: ==30139== Releasing lock... [2025-03-03 08:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:31:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:32:02] Production.INFO: ==30219== Lock acquired, processing the job... [2025-03-03 13:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:32:02] Production.INFO: neon service started [2025-03-03 13:32:02] Production.INFO: neon service started [2025-03-03 13:32:02] Production.INFO: ==30219== Releasing lock... [2025-03-03 13:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:32:02] Production.INFO: ==30221== Lock acquired, processing the job... [2025-03-03 08:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:32:02] Production.INFO: ==30221== Releasing lock... [2025-03-03 08:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:32:03] Production.INFO: ==30223== Lock acquired, processing the job... [2025-03-03 13:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:32:03] Production.INFO: ==30223== Releasing lock... [2025-03-03 13:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:32:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:32:03] Production.INFO: ==30229== Lock acquired, processing the job... [2025-03-03 08:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:32:03] Production.INFO: ==30236== Lock acquired, processing the job... [2025-03-03 08:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:32:03] Production.INFO: ==30227== Lock acquired, processing the job... [2025-03-03 08:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:32:04] Production.INFO: ==30231== Lock acquired, processing the job... [2025-03-03 08:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:32:04] Production.INFO: ==30229== Releasing lock... [2025-03-03 08:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:32:04] Production.INFO: ==30234== Lock acquired, processing the job... [2025-03-03 08:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:32:04] Production.INFO: ==30238== Lock acquired, processing the job... [2025-03-03 08:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:32:04] Production.ERROR: done [2025-03-03 08:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:32:04] Production.INFO: Account Balance Start. [2025-03-03 08:32:04] Production.INFO: CreateAllLog Start [2025-03-03 08:32:04] Production.INFO: 117 [2025-03-03 08:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: count ==13 [2025-03-03 08:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:32:04] Production.INFO: count ==21 [2025-03-03 08:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597261') start [2025-03-03 08:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.ERROR: done [2025-03-03 08:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597261') end [2025-03-03 08:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:32:04] Production.INFO: 1 [2025-03-03 08:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:32:04] Production.INFO: ==30238== Releasing lock... [2025-03-03 08:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:32:05] Production.INFO: Total Charge 0 [2025-03-03 08:32:05] Production.INFO: CreateAllLog End [2025-03-03 08:32:05] Production.INFO: Account Balance End. [2025-03-03 08:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:32:05] Production.INFO: ==30234== Releasing lock... [2025-03-03 08:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:32:12] Production.ERROR: CronJobId end10 [2025-03-03 08:32:12] Production.INFO: ==30231== Releasing lock... [2025-03-03 08:32:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:32:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:32:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:32:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:32:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:32:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:32:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:32:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:32:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:32:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:32:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:32:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:32:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:32:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:32:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:32:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:32:14] Production.INFO: call_cost start [2025-03-03 08:32:14] Production.INFO: call_cost end [2025-03-03 08:32:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:32:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:32:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:32:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:32:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:32:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:32:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:32:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:32:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:32:14] Production.INFO: ==30227== Releasing lock... [2025-03-03 08:32:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:32:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:32:16] Production.INFO: count ==409 [2025-03-03 08:32:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597262', 'tblTempUsageDetail_20' ) start [2025-03-03 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597262', 'tblTempUsageDetail_20' ) end [2025-03-03 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597262', 'tblTempVendorCDR_20' ) start [2025-03-03 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597262', 'tblTempVendorCDR_20' ) end [2025-03-03 08:32:16] Production.INFO: ProcessCDR(1,14597262,1,1,2) [2025-03-03 08:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597262', 'tblTempUsageDetail_20' ) start [2025-03-03 08:32:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597262', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:32:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:32:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:32:24] Production.INFO: ==30236== Releasing lock... [2025-03-03 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:33:01] Production.INFO: ==30312== Lock acquired, processing the job... [2025-03-03 13:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:33:01] Production.INFO: neon service started [2025-03-03 13:33:01] Production.INFO: neon service started [2025-03-03 13:33:01] Production.INFO: ==30312== Releasing lock... [2025-03-03 13:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:33:02] Production.INFO: ==30314== Lock acquired, processing the job... [2025-03-03 08:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:33:02] Production.INFO: ==30314== Releasing lock... [2025-03-03 08:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:33:02] Production.INFO: ==30316== Lock acquired, processing the job... [2025-03-03 13:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:33:02] Production.INFO: ==30316== Releasing lock... [2025-03-03 13:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:33:03] Production.INFO: ==30319== Lock acquired, processing the job... [2025-03-03 08:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:33:03] Production.INFO: ==30325== Lock acquired, processing the job... [2025-03-03 08:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:33:03] Production.INFO: Account Balance Start. [2025-03-03 08:33:03] Production.INFO: CreateAllLog Start [2025-03-03 08:33:03] Production.INFO: 117 [2025-03-03 08:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:33:03] Production.INFO: ==30329== Lock acquired, processing the job... [2025-03-03 08:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: count ==13 [2025-03-03 08:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:33:03] Production.INFO: count ==21 [2025-03-03 08:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: ==30323== Lock acquired, processing the job... [2025-03-03 08:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:33:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597265') start [2025-03-03 08:33:03] Production.INFO: ==30321== Lock acquired, processing the job... [2025-03-03 08:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:33:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: ==30327== Lock acquired, processing the job... [2025-03-03 08:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597265') end [2025-03-03 08:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:33:03] Production.INFO: 1 [2025-03-03 08:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:33:03] Production.INFO: Date 2025-02-15 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: ==30329== Releasing lock... [2025-03-03 08:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:33:03] Production.INFO: Date 2025-02-16 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:03] Production.INFO: Date 2025-02-17 [2025-03-03 08:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:33:04] Production.INFO: ==30321== Releasing lock... [2025-03-03 08:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:33:04] Production.ERROR: done [2025-03-03 08:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.ERROR: done [2025-03-03 08:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:33:04] Production.INFO: Total Charge 0 [2025-03-03 08:33:04] Production.INFO: CreateAllLog End [2025-03-03 08:33:04] Production.INFO: Account Balance End. [2025-03-03 08:33:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:33:04] Production.INFO: ==30325== Releasing lock... [2025-03-03 08:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:33:12] Production.ERROR: CronJobId end10 [2025-03-03 08:33:12] Production.INFO: ==30323== Releasing lock... [2025-03-03 08:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:33:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:33:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:33:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:33:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:33:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:33:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:33:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:33:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:33:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:33:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:33:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:33:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:33:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:33:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:33:13] Production.INFO: call_cost start [2025-03-03 08:33:13] Production.INFO: call_cost end [2025-03-03 08:33:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:33:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:33:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:33:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:33:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:33:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:33:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:33:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:33:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:33:13] Production.INFO: ==30319== Releasing lock... [2025-03-03 08:33:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:33:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:33:16] Production.INFO: count ==409 [2025-03-03 08:33:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597267', 'tblTempUsageDetail_20' ) start [2025-03-03 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597267', 'tblTempUsageDetail_20' ) end [2025-03-03 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597267', 'tblTempVendorCDR_20' ) start [2025-03-03 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597267', 'tblTempVendorCDR_20' ) end [2025-03-03 08:33:16] Production.INFO: ProcessCDR(1,14597267,1,1,2) [2025-03-03 08:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597267', 'tblTempUsageDetail_20' ) start [2025-03-03 08:33:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597267', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:33:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:33:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:33:23] Production.INFO: ==30327== Releasing lock... [2025-03-03 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:33:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:34:02] Production.INFO: ==30404== Lock acquired, processing the job... [2025-03-03 13:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:34:02] Production.INFO: neon service started [2025-03-03 13:34:02] Production.INFO: neon service started [2025-03-03 13:34:02] Production.INFO: ==30404== Releasing lock... [2025-03-03 13:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:34:02] Production.INFO: ==30406== Lock acquired, processing the job... [2025-03-03 08:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:34:02] Production.INFO: ==30406== Releasing lock... [2025-03-03 08:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:34:02] Production.INFO: ==30408== Lock acquired, processing the job... [2025-03-03 13:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:34:03] Production.INFO: ==30408== Releasing lock... [2025-03-03 13:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:34:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:34:03] Production.INFO: ==30417== Lock acquired, processing the job... [2025-03-03 08:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:34:03] Production.INFO: ==30415== Lock acquired, processing the job... [2025-03-03 08:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:34:03] Production.INFO: ==30411== Lock acquired, processing the job... [2025-03-03 08:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:34:03] Production.INFO: ==30413== Lock acquired, processing the job... [2025-03-03 08:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:34:03] Production.INFO: Account Balance Start. [2025-03-03 08:34:03] Production.INFO: CreateAllLog Start [2025-03-03 08:34:03] Production.INFO: 117 [2025-03-03 08:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:34:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: ==30419== Lock acquired, processing the job... [2025-03-03 08:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: ==30421== Lock acquired, processing the job... [2025-03-03 08:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: ==30413== Releasing lock... [2025-03-03 08:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:34:04] Production.INFO: count ==13 [2025-03-03 08:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:34:04] Production.INFO: count ==21 [2025-03-03 08:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597271') start [2025-03-03 08:34:04] Production.ERROR: done [2025-03-03 08:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597271') end [2025-03-03 08:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:34:04] Production.INFO: 1 [2025-03-03 08:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: ==30421== Releasing lock... [2025-03-03 08:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:34:04] Production.ERROR: done [2025-03-03 08:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:34:05] Production.INFO: Total Charge 0 [2025-03-03 08:34:05] Production.INFO: CreateAllLog End [2025-03-03 08:34:05] Production.INFO: Account Balance End. [2025-03-03 08:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:34:05] Production.INFO: ==30417== Releasing lock... [2025-03-03 08:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:34:11] Production.ERROR: CronJobId end10 [2025-03-03 08:34:11] Production.INFO: ==30415== Releasing lock... [2025-03-03 08:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:34:14] Production.INFO: call_cost start [2025-03-03 08:34:14] Production.INFO: call_cost end [2025-03-03 08:34:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:34:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:34:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:34:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:34:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:34:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:34:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:34:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:34:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:34:14] Production.INFO: ==30411== Releasing lock... [2025-03-03 08:34:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:34:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:34:16] Production.INFO: count ==409 [2025-03-03 08:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597272', 'tblTempUsageDetail_20' ) start [2025-03-03 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597272', 'tblTempUsageDetail_20' ) end [2025-03-03 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597272', 'tblTempVendorCDR_20' ) start [2025-03-03 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597272', 'tblTempVendorCDR_20' ) end [2025-03-03 08:34:16] Production.INFO: ProcessCDR(1,14597272,1,1,2) [2025-03-03 08:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597272', 'tblTempUsageDetail_20' ) start [2025-03-03 08:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597272', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:34:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:34:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:34:24] Production.INFO: ==30419== Releasing lock... [2025-03-03 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:35:01] Production.INFO: ==30491== Lock acquired, processing the job... [2025-03-03 13:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:35:01] Production.INFO: neon service started [2025-03-03 13:35:01] Production.INFO: neon service started [2025-03-03 13:35:01] Production.INFO: ==30491== Releasing lock... [2025-03-03 13:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:35:01] Production.INFO: ==30493== Lock acquired, processing the job... [2025-03-03 08:35:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:35:02] Production.INFO: ==30495== Lock acquired, processing the job... [2025-03-03 13:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:35:02] Production.INFO: ==30495== Releasing lock... [2025-03-03 13:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:35:02] Production.INFO: ==30493== Releasing lock... [2025-03-03 08:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:35:03] Production.INFO: ==30500== Lock acquired, processing the job... [2025-03-03 08:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:35:03] Production.INFO: ==30502== Lock acquired, processing the job... [2025-03-03 08:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:35:03] Production.INFO: ==30508== Lock acquired, processing the job... [2025-03-03 08:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:35:03] Production.INFO: ==30498== Lock acquired, processing the job... [2025-03-03 08:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:35:03] Production.INFO: ==30504== Lock acquired, processing the job... [2025-03-03 08:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:35:03] Production.INFO: count ==13 [2025-03-03 08:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:35:03] Production.INFO: ==30506== Lock acquired, processing the job... [2025-03-03 08:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:35:03] Production.INFO: ==30500== Releasing lock... [2025-03-03 08:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:35:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:35:03] Production.INFO: count ==21 [2025-03-03 08:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597274') start [2025-03-03 08:35:03] Production.INFO: Account Balance Start. [2025-03-03 08:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:35:03] Production.INFO: CreateAllLog Start [2025-03-03 08:35:03] Production.INFO: 117 [2025-03-03 08:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597274') end [2025-03-03 08:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:35:03] Production.INFO: 1 [2025-03-03 08:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:35:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:03] Production.INFO: ==30508== Releasing lock... [2025-03-03 08:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:35:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:35:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:03] Production.ERROR: done [2025-03-03 08:35:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.ERROR: done [2025-03-03 08:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:35:04] Production.INFO: Total Charge 0 [2025-03-03 08:35:04] Production.INFO: CreateAllLog End [2025-03-03 08:35:04] Production.INFO: Account Balance End. [2025-03-03 08:35:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:35:04] Production.INFO: ==30504== Releasing lock... [2025-03-03 08:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:35:11] Production.ERROR: CronJobId end10 [2025-03-03 08:35:11] Production.INFO: ==30502== Releasing lock... [2025-03-03 08:35:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:35:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:35:15] Production.INFO: call_cost start [2025-03-03 08:35:15] Production.INFO: call_cost end [2025-03-03 08:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:35:15] Production.INFO: ==30498== Releasing lock... [2025-03-03 08:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:35:16] Production.INFO: count ==409 [2025-03-03 08:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597277', 'tblTempUsageDetail_20' ) start [2025-03-03 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597277', 'tblTempUsageDetail_20' ) end [2025-03-03 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597277', 'tblTempVendorCDR_20' ) start [2025-03-03 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597277', 'tblTempVendorCDR_20' ) end [2025-03-03 08:35:16] Production.INFO: ProcessCDR(1,14597277,1,1,2) [2025-03-03 08:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597277', 'tblTempUsageDetail_20' ) start [2025-03-03 08:35:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597277', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:35:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:35:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:35:24] Production.INFO: ==30506== Releasing lock... [2025-03-03 08:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:36:02] Production.INFO: ==30620== Lock acquired, processing the job... [2025-03-03 13:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:36:02] Production.INFO: neon service started [2025-03-03 13:36:02] Production.INFO: neon service started [2025-03-03 13:36:02] Production.INFO: ==30620== Releasing lock... [2025-03-03 13:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:36:02] Production.INFO: ==30622== Lock acquired, processing the job... [2025-03-03 08:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:36:02] Production.INFO: ==30624== Lock acquired, processing the job... [2025-03-03 13:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 08:36:02] Production.INFO: ==30622== Releasing lock... [2025-03-03 08:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:36:02] Production.INFO: ==30624== Releasing lock... [2025-03-03 13:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:36:03] Production.INFO: ==30630== Lock acquired, processing the job... [2025-03-03 08:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:36:03] Production.INFO: ==30633== Lock acquired, processing the job... [2025-03-03 08:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:36:03] Production.INFO: ==30639== Lock acquired, processing the job... [2025-03-03 08:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:36:03] Production.INFO: ==30637== Lock acquired, processing the job... [2025-03-03 08:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:36:03] Production.INFO: ==30635== Lock acquired, processing the job... [2025-03-03 08:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:36:04] Production.INFO: ==30633== Releasing lock... [2025-03-03 08:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:36:04] Production.INFO: ==30641== Lock acquired, processing the job... [2025-03-03 08:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:36:04] Production.INFO: Account Balance Start. [2025-03-03 08:36:04] Production.INFO: CreateAllLog Start [2025-03-03 08:36:04] Production.INFO: 117 [2025-03-03 08:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: count ==13 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:36:04] Production.INFO: count ==21 [2025-03-03 08:36:04] Production.ERROR: done [2025-03-03 08:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597281') start [2025-03-03 08:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.ERROR: done [2025-03-03 08:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597281') end [2025-03-03 08:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:36:04] Production.INFO: 1 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:36:04] Production.INFO: ==30641== Releasing lock... [2025-03-03 08:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:36:05] Production.INFO: Total Charge 0 [2025-03-03 08:36:05] Production.INFO: CreateAllLog End [2025-03-03 08:36:05] Production.INFO: Account Balance End. [2025-03-03 08:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:36:05] Production.INFO: ==30637== Releasing lock... [2025-03-03 08:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:36:12] Production.ERROR: CronJobId end10 [2025-03-03 08:36:12] Production.INFO: ==30635== Releasing lock... [2025-03-03 08:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:36:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:36:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:36:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:36:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:36:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:36:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:36:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:36:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:36:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:36:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:36:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:36:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:36:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:36:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:36:14] Production.INFO: call_cost start [2025-03-03 08:36:14] Production.INFO: call_cost end [2025-03-03 08:36:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:36:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:36:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:36:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:36:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:36:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:36:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:36:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:36:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:36:14] Production.INFO: ==30630== Releasing lock... [2025-03-03 08:36:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:36:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:36:16] Production.INFO: count ==409 [2025-03-03 08:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597282', 'tblTempUsageDetail_20' ) start [2025-03-03 08:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597282', 'tblTempUsageDetail_20' ) end [2025-03-03 08:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597282', 'tblTempVendorCDR_20' ) start [2025-03-03 08:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597282', 'tblTempVendorCDR_20' ) end [2025-03-03 08:36:16] Production.INFO: ProcessCDR(1,14597282,1,1,2) [2025-03-03 08:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597282', 'tblTempUsageDetail_20' ) start [2025-03-03 08:36:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597282', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:36:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:36:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:36:24] Production.INFO: ==30639== Releasing lock... [2025-03-03 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:37:01] Production.INFO: ==30717== Lock acquired, processing the job... [2025-03-03 13:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:37:01] Production.INFO: neon service started [2025-03-03 13:37:01] Production.INFO: neon service started [2025-03-03 13:37:01] Production.INFO: ==30717== Releasing lock... [2025-03-03 13:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:37:01] Production.INFO: ==30720== Lock acquired, processing the job... [2025-03-03 08:37:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:37:02] Production.INFO: ==30720== Releasing lock... [2025-03-03 08:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:37:02] Production.INFO: ==30722== Lock acquired, processing the job... [2025-03-03 13:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:37:02] Production.INFO: ==30722== Releasing lock... [2025-03-03 13:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:37:03] Production.INFO: ==30724== Lock acquired, processing the job... [2025-03-03 08:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:37:03] Production.INFO: ==30726== Lock acquired, processing the job... [2025-03-03 08:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:37:03] Production.INFO: ==30730== Lock acquired, processing the job... [2025-03-03 08:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:37:03] Production.INFO: ==30728== Lock acquired, processing the job... [2025-03-03 08:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:37:03] Production.INFO: Account Balance Start. [2025-03-03 08:37:03] Production.INFO: CreateAllLog Start [2025-03-03 08:37:03] Production.INFO: 117 [2025-03-03 08:37:03] Production.INFO: ==30732== Lock acquired, processing the job... [2025-03-03 08:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:37:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:37:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:03] Production.INFO: ==30734== Lock acquired, processing the job... [2025-03-03 08:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:37:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:03] Production.INFO: ==30726== Releasing lock... [2025-03-03 08:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:37:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:37:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: count ==13 [2025-03-03 08:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:37:04] Production.INFO: count ==21 [2025-03-03 08:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597286') start [2025-03-03 08:37:04] Production.ERROR: done [2025-03-03 08:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.ERROR: done [2025-03-03 08:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597286') end [2025-03-03 08:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:37:04] Production.INFO: 1 [2025-03-03 08:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: ==30734== Releasing lock... [2025-03-03 08:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:37:05] Production.INFO: Total Charge 0 [2025-03-03 08:37:05] Production.INFO: CreateAllLog End [2025-03-03 08:37:05] Production.INFO: Account Balance End. [2025-03-03 08:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:37:05] Production.INFO: ==30730== Releasing lock... [2025-03-03 08:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:37:12] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,10))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 08:37:12] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:37:12] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:37:12] Production.ERROR: CronJobId end10 [2025-03-03 08:37:12] Production.INFO: ==30728== Releasing lock... [2025-03-03 08:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:37:12] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:37:12] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:37:12] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:37:12] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:37:12] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:37:12] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:37:12] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:37:12] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:37:12] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:37:12] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:37:12] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:37:12] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:37:12] Production.INFO: call_cost start [2025-03-03 08:37:12] Production.INFO: call_cost end [2025-03-03 08:37:12] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:37:12] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:37:12] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:37:12] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:37:12] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:37:12] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:37:12] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:37:12] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:37:12] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:37:12] Production.INFO: ==30724== Releasing lock... [2025-03-03 08:37:12] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:37:12] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:37:16] Production.INFO: count ==409 [2025-03-03 08:37:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597287', 'tblTempUsageDetail_20' ) start [2025-03-03 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597287', 'tblTempUsageDetail_20' ) end [2025-03-03 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597287', 'tblTempVendorCDR_20' ) start [2025-03-03 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597287', 'tblTempVendorCDR_20' ) end [2025-03-03 08:37:16] Production.INFO: ProcessCDR(1,14597287,1,1,2) [2025-03-03 08:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597287', 'tblTempUsageDetail_20' ) start [2025-03-03 08:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597287', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:37:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:37:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:37:25] Production.INFO: ==30732== Releasing lock... [2025-03-03 08:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:37:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:38:02] Production.INFO: ==30807== Lock acquired, processing the job... [2025-03-03 13:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:38:02] Production.INFO: neon service started [2025-03-03 13:38:02] Production.INFO: neon service started [2025-03-03 13:38:02] Production.INFO: ==30807== Releasing lock... [2025-03-03 13:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:38:02] Production.INFO: ==30811== Lock acquired, processing the job... [2025-03-03 13:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:38:02] Production.INFO: ==30811== Releasing lock... [2025-03-03 13:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:38:02] Production.INFO: ==30809== Lock acquired, processing the job... [2025-03-03 08:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:38:02] Production.INFO: ==30809== Releasing lock... [2025-03-03 08:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:38:03] Production.INFO: ==30816== Lock acquired, processing the job... [2025-03-03 08:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:38:03] Production.INFO: ==30818== Lock acquired, processing the job... [2025-03-03 08:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:38:03] Production.INFO: ==30822== Lock acquired, processing the job... [2025-03-03 08:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:38:04] Production.INFO: ==30814== Lock acquired, processing the job... [2025-03-03 08:38:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:38:04] Production.INFO: ==30820== Lock acquired, processing the job... [2025-03-03 08:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:38:04] Production.INFO: ==30816== Releasing lock... [2025-03-03 08:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:38:04] Production.INFO: ==30824== Lock acquired, processing the job... [2025-03-03 08:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:38:04] Production.INFO: Account Balance Start. [2025-03-03 08:38:04] Production.INFO: CreateAllLog Start [2025-03-03 08:38:04] Production.INFO: 117 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: count ==13 [2025-03-03 08:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:38:04] Production.INFO: count ==21 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597289') start [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.ERROR: done [2025-03-03 08:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597289') end [2025-03-03 08:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:38:04] Production.INFO: 1 [2025-03-03 08:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: ==30824== Releasing lock... [2025-03-03 08:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:38:04] Production.ERROR: done [2025-03-03 08:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:38:05] Production.INFO: Total Charge 0 [2025-03-03 08:38:05] Production.INFO: CreateAllLog End [2025-03-03 08:38:05] Production.INFO: Account Balance End. [2025-03-03 08:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:38:05] Production.INFO: ==30820== Releasing lock... [2025-03-03 08:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:38:12] Production.ERROR: CronJobId end10 [2025-03-03 08:38:12] Production.INFO: ==30818== Releasing lock... [2025-03-03 08:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:38:15] Production.INFO: call_cost start [2025-03-03 08:38:15] Production.INFO: call_cost end [2025-03-03 08:38:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:38:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:38:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:38:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:38:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:38:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:38:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:38:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:38:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:38:15] Production.INFO: ==30814== Releasing lock... [2025-03-03 08:38:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:38:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:38:16] Production.INFO: count ==409 [2025-03-03 08:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597292', 'tblTempUsageDetail_20' ) start [2025-03-03 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597292', 'tblTempUsageDetail_20' ) end [2025-03-03 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597292', 'tblTempVendorCDR_20' ) start [2025-03-03 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597292', 'tblTempVendorCDR_20' ) end [2025-03-03 08:38:16] Production.INFO: ProcessCDR(1,14597292,1,1,2) [2025-03-03 08:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597292', 'tblTempUsageDetail_20' ) start [2025-03-03 08:38:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597292', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:38:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:38:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:38:24] Production.INFO: ==30822== Releasing lock... [2025-03-03 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:38:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:39:01] Production.INFO: ==30897== Lock acquired, processing the job... [2025-03-03 13:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:39:01] Production.INFO: neon service started [2025-03-03 13:39:01] Production.INFO: neon service started [2025-03-03 13:39:01] Production.INFO: ==30897== Releasing lock... [2025-03-03 13:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:39:01] Production.INFO: ==30899== Lock acquired, processing the job... [2025-03-03 08:39:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:39:02] Production.INFO: ==30899== Releasing lock... [2025-03-03 08:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:39:02] Production.INFO: ==30902== Lock acquired, processing the job... [2025-03-03 13:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:39:02] Production.INFO: ==30902== Releasing lock... [2025-03-03 13:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:39:03] Production.INFO: ==30904== Lock acquired, processing the job... [2025-03-03 08:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:39:03] Production.INFO: ==30912== Lock acquired, processing the job... [2025-03-03 08:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:39:03] Production.INFO: ==30910== Lock acquired, processing the job... [2025-03-03 08:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:39:03] Production.INFO: ==30906== Lock acquired, processing the job... [2025-03-03 08:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:39:03] Production.INFO: Account Balance Start. [2025-03-03 08:39:03] Production.INFO: CreateAllLog Start [2025-03-03 08:39:03] Production.INFO: 117 [2025-03-03 08:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:39:03] Production.INFO: ==30914== Lock acquired, processing the job... [2025-03-03 08:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: ==30908== Lock acquired, processing the job... [2025-03-03 08:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:39:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:39:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: count ==13 [2025-03-03 08:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:39:03] Production.INFO: count ==21 [2025-03-03 08:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597296') start [2025-03-03 08:39:03] Production.ERROR: done [2025-03-03 08:39:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:39:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597296') end [2025-03-03 08:39:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:39:03] Production.INFO: 1 [2025-03-03 08:39:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:39:03] Production.INFO: Date 2025-02-15 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: Date 2025-02-16 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: ==30906== Releasing lock... [2025-03-03 08:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:39:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:39:03] Production.INFO: Date 2025-02-17 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.ERROR: done [2025-03-03 08:39:03] Production.INFO: Date 2025-02-18 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: ==30914== Releasing lock... [2025-03-03 08:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:39:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:39:03] Production.INFO: Date 2025-02-19 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.INFO: Date 2025-02-20 [2025-03-03 08:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:39:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:39:03] Production.INFO: Date 2025-02-21 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:39:04] Production.INFO: Total Charge 0 [2025-03-03 08:39:04] Production.INFO: CreateAllLog End [2025-03-03 08:39:04] Production.INFO: Account Balance End. [2025-03-03 08:39:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:39:04] Production.INFO: ==30910== Releasing lock... [2025-03-03 08:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:39:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:39:12] Production.ERROR: CronJobId end10 [2025-03-03 08:39:12] Production.INFO: ==30908== Releasing lock... [2025-03-03 08:39:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:39:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:39:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:39:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:39:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:39:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:39:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:39:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:39:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:39:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:39:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:39:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:39:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:39:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:39:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:39:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:39:15] Production.INFO: call_cost start [2025-03-03 08:39:15] Production.INFO: call_cost end [2025-03-03 08:39:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:39:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:39:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:39:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:39:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:39:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:39:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:39:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:39:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:39:15] Production.INFO: ==30904== Releasing lock... [2025-03-03 08:39:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:39:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:39:16] Production.INFO: count ==409 [2025-03-03 08:39:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597297', 'tblTempUsageDetail_20' ) start [2025-03-03 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597297', 'tblTempUsageDetail_20' ) end [2025-03-03 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597297', 'tblTempVendorCDR_20' ) start [2025-03-03 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597297', 'tblTempVendorCDR_20' ) end [2025-03-03 08:39:16] Production.INFO: ProcessCDR(1,14597297,1,1,2) [2025-03-03 08:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597297', 'tblTempUsageDetail_20' ) start [2025-03-03 08:39:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597297', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:39:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:39:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:39:23] Production.INFO: ==30912== Releasing lock... [2025-03-03 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:40:01] Production.INFO: ==30991== Lock acquired, processing the job... [2025-03-03 13:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:40:01] Production.INFO: neon service started [2025-03-03 13:40:02] Production.INFO: neon service started [2025-03-03 13:40:02] Production.INFO: ==30991== Releasing lock... [2025-03-03 13:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:40:02] Production.INFO: ==30993== Lock acquired, processing the job... [2025-03-03 08:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:40:02] Production.INFO: ==30995== Lock acquired, processing the job... [2025-03-03 13:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:40:02] Production.INFO: ==30995== Releasing lock... [2025-03-03 13:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:40:03] Production.INFO: ==30993== Releasing lock... [2025-03-03 08:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:40:03] Production.INFO: ==31000== Lock acquired, processing the job... [2025-03-03 08:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:40:04] Production.INFO: ==30998== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 08:40:04] Production.INFO: ==31008== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 08:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:40:04] Production.ERROR: CronJob PID - 31000 [2025-03-03 08:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 08:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 08:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:40:00 [2025-03-03 08:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 08:40:04] Production.ERROR: CronJob PID - 31008 [2025-03-03 08:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 08:40:04] Production.ERROR: CronJob ID - 16 [2025-03-03 08:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 08:40:00 [2025-03-03 08:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 08:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 08:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 08:40:04] Production.INFO: ==30998== Releasing lock... [2025-03-03 08:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 08:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:40:04] Production.INFO: ==31012== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:40:04] Production.INFO: ==31004== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:40:04] Production.INFO: ==31002== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:40:04] Production.INFO: ==31006== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:40:04] Production.INFO: Account Balance Start. [2025-03-03 08:40:04] Production.INFO: CreateAllLog Start [2025-03-03 08:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:40:04] Production.INFO: 117 [2025-03-03 08:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:40:04] Production.INFO: ==31010== Lock acquired, processing the job... [2025-03-03 08:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 08:40:04] Production.INFO: count ==13 [2025-03-03 08:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:40:04] Production.INFO: count ==21 [2025-03-03 08:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597299') start [2025-03-03 08:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:04] Production.ERROR: done [2025-03-03 08:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597299') end [2025-03-03 08:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:40:04] Production.INFO: 1 [2025-03-03 08:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:40:05] Production.INFO: Date 2025-02-10 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: ==31002== Releasing lock... [2025-03-03 08:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:40:05] Production.INFO: ==31012== Releasing lock... [2025-03-03 08:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:40:05] Production.ERROR: done [2025-03-03 08:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.ERROR: done [2025-03-03 08:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 08:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597303', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 08:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:06] Production.INFO: Date 2025-03-03 [2025-03-03 08:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 08:40:06] Production.INFO: Total Charge 0 [2025-03-03 08:40:06] Production.INFO: CreateAllLog End [2025-03-03 08:40:06] Production.INFO: Account Balance End. [2025-03-03 08:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 08:40:06] Production.INFO: ==31006== Releasing lock... [2025-03-03 08:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597303', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 08:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 08:40:09] Production.INFO: ProcessCDR(1,14597303,1,1,2) [2025-03-03 08:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597303,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597303,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 08:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 08:40:09] Production.INFO: ==31010== Releasing lock... [2025-03-03 08:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 08:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 08:40:13] Production.ERROR: CronJobId end10 [2025-03-03 08:40:13] Production.INFO: ==31004== Releasing lock... [2025-03-03 08:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:40:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:40:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:40:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:40:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:40:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:40:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:40:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:40:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:40:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:40:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:40:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:40:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:40:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:40:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:40:16] Production.INFO: call_cost start [2025-03-03 08:40:16] Production.INFO: call_cost end [2025-03-03 08:40:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:40:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:40:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:40:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:40:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:40:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:40:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:40:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:40:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:40:16] Production.INFO: ==31000== Releasing lock... [2025-03-03 08:40:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:40:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:40:17] Production.INFO: count ==409 [2025-03-03 08:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597302', 'tblTempUsageDetail_20' ) start [2025-03-03 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597302', 'tblTempUsageDetail_20' ) end [2025-03-03 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597302', 'tblTempVendorCDR_20' ) start [2025-03-03 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597302', 'tblTempVendorCDR_20' ) end [2025-03-03 08:40:17] Production.INFO: ProcessCDR(1,14597302,1,1,2) [2025-03-03 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597302', 'tblTempUsageDetail_20' ) start [2025-03-03 08:40:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597302', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:40:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:40:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:40:25] Production.INFO: ==31008== Releasing lock... [2025-03-03 08:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:40:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:41:01] Production.INFO: ==31084== Lock acquired, processing the job... [2025-03-03 13:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:41:01] Production.INFO: neon service started [2025-03-03 13:41:01] Production.INFO: neon service started [2025-03-03 13:41:01] Production.INFO: ==31084== Releasing lock... [2025-03-03 13:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:41:01] Production.INFO: ==31086== Lock acquired, processing the job... [2025-03-03 08:41:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:41:02] Production.INFO: ==31086== Releasing lock... [2025-03-03 08:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:41:02] Production.INFO: ==31088== Lock acquired, processing the job... [2025-03-03 13:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:41:02] Production.INFO: ==31088== Releasing lock... [2025-03-03 13:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:41:03] Production.INFO: ==31090== Lock acquired, processing the job... [2025-03-03 08:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:41:03] Production.INFO: ==31093== Lock acquired, processing the job... [2025-03-03 08:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:41:03] Production.INFO: ==31099== Lock acquired, processing the job... [2025-03-03 08:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:41:03] Production.INFO: ==31095== Lock acquired, processing the job... [2025-03-03 08:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:41:03] Production.INFO: ==31097== Lock acquired, processing the job... [2025-03-03 08:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:41:03] Production.INFO: ==31101== Lock acquired, processing the job... [2025-03-03 08:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:41:03] Production.INFO: ==31093== Releasing lock... [2025-03-03 08:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:41:03] Production.INFO: Account Balance Start. [2025-03-03 08:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:41:03] Production.INFO: CreateAllLog Start [2025-03-03 08:41:03] Production.INFO: 117 [2025-03-03 08:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.INFO: count ==13 [2025-03-03 08:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:41:03] Production.INFO: count ==21 [2025-03-03 08:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.ERROR: done [2025-03-03 08:41:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597306') start [2025-03-03 08:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.ERROR: done [2025-03-03 08:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597306') end [2025-03-03 08:41:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:41:03] Production.INFO: 1 [2025-03-03 08:41:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:41:03] Production.INFO: ==31101== Releasing lock... [2025-03-03 08:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:41:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:41:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:03] Production.INFO: Date 2025-02-15 [2025-03-03 08:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:41:04] Production.INFO: Total Charge 0 [2025-03-03 08:41:04] Production.INFO: CreateAllLog End [2025-03-03 08:41:04] Production.INFO: Account Balance End. [2025-03-03 08:41:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:41:04] Production.INFO: ==31097== Releasing lock... [2025-03-03 08:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:41:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:41:11] Production.ERROR: CronJobId end10 [2025-03-03 08:41:11] Production.INFO: ==31095== Releasing lock... [2025-03-03 08:41:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:41:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:41:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:41:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:41:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:41:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:41:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:41:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:41:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:41:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:41:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:41:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:41:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:41:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:41:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:41:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:41:13] Production.INFO: call_cost start [2025-03-03 08:41:13] Production.INFO: call_cost end [2025-03-03 08:41:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:41:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:41:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:41:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:41:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:41:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:41:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:41:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:41:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:41:13] Production.INFO: ==31090== Releasing lock... [2025-03-03 08:41:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:41:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:41:16] Production.INFO: count ==409 [2025-03-03 08:41:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597308', 'tblTempUsageDetail_20' ) start [2025-03-03 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597308', 'tblTempUsageDetail_20' ) end [2025-03-03 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597308', 'tblTempVendorCDR_20' ) start [2025-03-03 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597308', 'tblTempVendorCDR_20' ) end [2025-03-03 08:41:16] Production.INFO: ProcessCDR(1,14597308,1,1,2) [2025-03-03 08:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597308', 'tblTempUsageDetail_20' ) start [2025-03-03 08:41:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597308', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:41:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:41:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:41:23] Production.INFO: ==31099== Releasing lock... [2025-03-03 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:41:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:42:01] Production.INFO: ==31175== Lock acquired, processing the job... [2025-03-03 13:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:42:01] Production.INFO: neon service started [2025-03-03 13:42:01] Production.INFO: neon service started [2025-03-03 13:42:01] Production.INFO: ==31175== Releasing lock... [2025-03-03 13:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:42:02] Production.INFO: ==31179== Lock acquired, processing the job... [2025-03-03 13:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:42:02] Production.INFO: ==31179== Releasing lock... [2025-03-03 13:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:42:02] Production.INFO: ==31177== Lock acquired, processing the job... [2025-03-03 08:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:42:02] Production.INFO: ==31177== Releasing lock... [2025-03-03 08:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:42:03] Production.INFO: ==31184== Lock acquired, processing the job... [2025-03-03 08:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:42:03] Production.INFO: ==31186== Lock acquired, processing the job... [2025-03-03 08:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:42:03] Production.INFO: ==31188== Lock acquired, processing the job... [2025-03-03 08:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:42:04] Production.INFO: Account Balance Start. [2025-03-03 08:42:04] Production.INFO: CreateAllLog Start [2025-03-03 08:42:04] Production.INFO: 117 [2025-03-03 08:42:04] Production.INFO: ==31190== Lock acquired, processing the job... [2025-03-03 08:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:42:04] Production.INFO: ==31182== Lock acquired, processing the job... [2025-03-03 08:42:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:42:04] Production.INFO: ==31192== Lock acquired, processing the job... [2025-03-03 08:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:42:04] Production.INFO: ==31184== Releasing lock... [2025-03-03 08:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:42:04] Production.INFO: count ==13 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:42:04] Production.INFO: count ==21 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.ERROR: done [2025-03-03 08:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597311') start [2025-03-03 08:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.ERROR: done [2025-03-03 08:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597311') end [2025-03-03 08:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:42:04] Production.INFO: 1 [2025-03-03 08:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:42:04] Production.INFO: ==31192== Releasing lock... [2025-03-03 08:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:42:05] Production.INFO: Total Charge 0 [2025-03-03 08:42:05] Production.INFO: CreateAllLog End [2025-03-03 08:42:05] Production.INFO: Account Balance End. [2025-03-03 08:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:42:05] Production.INFO: ==31188== Releasing lock... [2025-03-03 08:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:42:13] Production.ERROR: CronJobId end10 [2025-03-03 08:42:13] Production.INFO: ==31186== Releasing lock... [2025-03-03 08:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:42:15] Production.INFO: call_cost start [2025-03-03 08:42:15] Production.INFO: call_cost end [2025-03-03 08:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:42:15] Production.INFO: ==31182== Releasing lock... [2025-03-03 08:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:42:16] Production.INFO: count ==409 [2025-03-03 08:42:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597313', 'tblTempUsageDetail_20' ) start [2025-03-03 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597313', 'tblTempUsageDetail_20' ) end [2025-03-03 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597313', 'tblTempVendorCDR_20' ) start [2025-03-03 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597313', 'tblTempVendorCDR_20' ) end [2025-03-03 08:42:16] Production.INFO: ProcessCDR(1,14597313,1,1,2) [2025-03-03 08:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597313', 'tblTempUsageDetail_20' ) start [2025-03-03 08:42:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597313', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:42:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:42:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:42:24] Production.INFO: ==31190== Releasing lock... [2025-03-03 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:43:01] Production.INFO: ==31264== Lock acquired, processing the job... [2025-03-03 13:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:43:01] Production.INFO: neon service started [2025-03-03 13:43:01] Production.INFO: neon service started [2025-03-03 13:43:01] Production.INFO: ==31264== Releasing lock... [2025-03-03 13:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:43:01] Production.INFO: ==31266== Lock acquired, processing the job... [2025-03-03 08:43:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:43:01] Production.INFO: ==31266== Releasing lock... [2025-03-03 08:43:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:43:01] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:43:02] Production.INFO: ==31268== Lock acquired, processing the job... [2025-03-03 13:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:43:02] Production.INFO: ==31268== Releasing lock... [2025-03-03 13:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:43:02] Production.INFO: ==31278== Lock acquired, processing the job... [2025-03-03 08:43:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:43:02] Production.INFO: ==31270== Lock acquired, processing the job... [2025-03-03 08:43:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:43:03] Production.INFO: ==31272== Lock acquired, processing the job... [2025-03-03 08:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:43:03] Production.INFO: ==31274== Lock acquired, processing the job... [2025-03-03 08:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:43:03] Production.INFO: ==31276== Lock acquired, processing the job... [2025-03-03 08:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:43:03] Production.INFO: ==31280== Lock acquired, processing the job... [2025-03-03 08:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:43:03] Production.INFO: count ==13 [2025-03-03 08:43:03] Production.ERROR: done [2025-03-03 08:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:43:03] Production.INFO: count ==21 [2025-03-03 08:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597316') start [2025-03-03 08:43:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:43:03] Production.INFO: Account Balance Start. [2025-03-03 08:43:03] Production.INFO: CreateAllLog Start [2025-03-03 08:43:03] Production.INFO: 117 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597316') end [2025-03-03 08:43:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:43:03] Production.INFO: 1 [2025-03-03 08:43:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:43:03] Production.INFO: ==31272== Releasing lock... [2025-03-03 08:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:43:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: ==31280== Releasing lock... [2025-03-03 08:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:43:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:43:03] Production.ERROR: done [2025-03-03 08:43:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:43:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:43:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-15 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-16 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-17 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-18 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:03] Production.INFO: Date 2025-02-19 [2025-03-03 08:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:43:04] Production.INFO: Total Charge 0 [2025-03-03 08:43:04] Production.INFO: CreateAllLog End [2025-03-03 08:43:04] Production.INFO: Account Balance End. [2025-03-03 08:43:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:43:04] Production.INFO: ==31276== Releasing lock... [2025-03-03 08:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:43:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:43:11] Production.ERROR: CronJobId end10 [2025-03-03 08:43:11] Production.INFO: ==31274== Releasing lock... [2025-03-03 08:43:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:43:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:43:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:43:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:43:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:43:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:43:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:43:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:43:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:43:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:43:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:43:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:43:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:43:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:43:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:43:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:43:13] Production.INFO: call_cost start [2025-03-03 08:43:13] Production.INFO: call_cost end [2025-03-03 08:43:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:43:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:43:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:43:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:43:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:43:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:43:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:43:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:43:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:43:13] Production.INFO: ==31270== Releasing lock... [2025-03-03 08:43:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:43:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:43:15] Production.INFO: count ==409 [2025-03-03 08:43:15] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:43:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:43:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597318', 'tblTempUsageDetail_20' ) start [2025-03-03 08:43:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597318', 'tblTempUsageDetail_20' ) end [2025-03-03 08:43:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597318', 'tblTempVendorCDR_20' ) start [2025-03-03 08:43:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597318', 'tblTempVendorCDR_20' ) end [2025-03-03 08:43:15] Production.INFO: ProcessCDR(1,14597318,1,1,2) [2025-03-03 08:43:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597318', 'tblTempUsageDetail_20' ) start [2025-03-03 08:43:22] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597318', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:43:23] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:43:23] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:43:23] Production.INFO: ==31278== Releasing lock... [2025-03-03 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:44:01] Production.INFO: ==31354== Lock acquired, processing the job... [2025-03-03 13:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:44:01] Production.INFO: neon service started [2025-03-03 13:44:01] Production.INFO: neon service started [2025-03-03 13:44:01] Production.INFO: ==31354== Releasing lock... [2025-03-03 13:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:44:02] Production.INFO: ==31359== Lock acquired, processing the job... [2025-03-03 13:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:44:02] Production.INFO: ==31359== Releasing lock... [2025-03-03 13:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:44:02] Production.INFO: ==31357== Lock acquired, processing the job... [2025-03-03 08:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:44:02] Production.INFO: ==31357== Releasing lock... [2025-03-03 08:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:44:03] Production.INFO: ==31361== Lock acquired, processing the job... [2025-03-03 08:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:44:03] Production.INFO: ==31365== Lock acquired, processing the job... [2025-03-03 08:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:44:03] Production.INFO: ==31367== Lock acquired, processing the job... [2025-03-03 08:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:44:03] Production.INFO: Account Balance Start. [2025-03-03 08:44:03] Production.INFO: CreateAllLog Start [2025-03-03 08:44:03] Production.INFO: 117 [2025-03-03 08:44:03] Production.INFO: ==31363== Lock acquired, processing the job... [2025-03-03 08:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:03] Production.INFO: ==31371== Lock acquired, processing the job... [2025-03-03 08:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:44:03] Production.INFO: ==31369== Lock acquired, processing the job... [2025-03-03 08:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: count ==13 [2025-03-03 08:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:44:04] Production.INFO: count ==21 [2025-03-03 08:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597322') start [2025-03-03 08:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.ERROR: done [2025-03-03 08:44:04] Production.INFO: ==31363== Releasing lock... [2025-03-03 08:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597322') end [2025-03-03 08:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:44:04] Production.INFO: 1 [2025-03-03 08:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: ==31371== Releasing lock... [2025-03-03 08:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:44:04] Production.ERROR: done [2025-03-03 08:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:44:04] Production.INFO: Total Charge 0 [2025-03-03 08:44:04] Production.INFO: CreateAllLog End [2025-03-03 08:44:04] Production.INFO: Account Balance End. [2025-03-03 08:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:44:05] Production.INFO: ==31367== Releasing lock... [2025-03-03 08:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:44:13] Production.ERROR: CronJobId end10 [2025-03-03 08:44:13] Production.INFO: ==31365== Releasing lock... [2025-03-03 08:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:44:15] Production.INFO: call_cost start [2025-03-03 08:44:15] Production.INFO: call_cost end [2025-03-03 08:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:44:15] Production.INFO: ==31361== Releasing lock... [2025-03-03 08:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:44:16] Production.INFO: count ==409 [2025-03-03 08:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597323', 'tblTempUsageDetail_20' ) start [2025-03-03 08:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597323', 'tblTempUsageDetail_20' ) end [2025-03-03 08:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597323', 'tblTempVendorCDR_20' ) start [2025-03-03 08:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597323', 'tblTempVendorCDR_20' ) end [2025-03-03 08:44:16] Production.INFO: ProcessCDR(1,14597323,1,1,2) [2025-03-03 08:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597323', 'tblTempUsageDetail_20' ) start [2025-03-03 08:44:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597323', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:44:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:44:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:44:24] Production.INFO: ==31369== Releasing lock... [2025-03-03 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:44:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:45:02] Production.INFO: ==31441== Lock acquired, processing the job... [2025-03-03 13:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:45:02] Production.INFO: neon service started [2025-03-03 13:45:02] Production.INFO: neon service started [2025-03-03 13:45:02] Production.INFO: ==31441== Releasing lock... [2025-03-03 13:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:45:02] Production.INFO: ==31445== Lock acquired, processing the job... [2025-03-03 13:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:45:02] Production.INFO: ==31445== Releasing lock... [2025-03-03 13:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:45:02] Production.INFO: ==31443== Lock acquired, processing the job... [2025-03-03 08:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:45:03] Production.INFO: ==31443== Releasing lock... [2025-03-03 08:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:45:04] Production.INFO: ==31454== Lock acquired, processing the job... [2025-03-03 08:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:45:04] Production.INFO: ==31460== Lock acquired, processing the job... [2025-03-03 08:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:45:04] Production.INFO: ==31452== Lock acquired, processing the job... [2025-03-03 08:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:45:04] Production.INFO: ==31449== Lock acquired, processing the job... [2025-03-03 08:45:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:45:04] Production.INFO: count ==13 [2025-03-03 08:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:45:04] Production.INFO: count ==21 [2025-03-03 08:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597324') start [2025-03-03 08:45:04] Production.INFO: ==31456== Lock acquired, processing the job... [2025-03-03 08:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:45:04] Production.INFO: ==31458== Lock acquired, processing the job... [2025-03-03 08:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:45:04] Production.INFO: Account Balance Start. [2025-03-03 08:45:04] Production.INFO: CreateAllLog Start [2025-03-03 08:45:04] Production.INFO: 117 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597324') end [2025-03-03 08:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:45:04] Production.INFO: 1 [2025-03-03 08:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: ==31460== Releasing lock... [2025-03-03 08:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: ==31452== Releasing lock... [2025-03-03 08:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:04] Production.ERROR: done [2025-03-03 08:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.ERROR: done [2025-03-03 08:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:45:05] Production.INFO: Total Charge 0 [2025-03-03 08:45:05] Production.INFO: CreateAllLog End [2025-03-03 08:45:05] Production.INFO: Account Balance End. [2025-03-03 08:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:45:05] Production.INFO: ==31456== Releasing lock... [2025-03-03 08:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:45:13] Production.ERROR: CronJobId end10 [2025-03-03 08:45:13] Production.INFO: ==31454== Releasing lock... [2025-03-03 08:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:45:16] Production.INFO: call_cost start [2025-03-03 08:45:16] Production.INFO: call_cost end [2025-03-03 08:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:45:16] Production.INFO: ==31449== Releasing lock... [2025-03-03 08:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:45:17] Production.INFO: count ==409 [2025-03-03 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597328', 'tblTempUsageDetail_20' ) start [2025-03-03 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597328', 'tblTempUsageDetail_20' ) end [2025-03-03 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597328', 'tblTempVendorCDR_20' ) start [2025-03-03 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597328', 'tblTempVendorCDR_20' ) end [2025-03-03 08:45:17] Production.INFO: ProcessCDR(1,14597328,1,1,2) [2025-03-03 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597328', 'tblTempUsageDetail_20' ) start [2025-03-03 08:45:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597328', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:45:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:45:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:45:25] Production.INFO: ==31458== Releasing lock... [2025-03-03 08:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:45:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:46:01] Production.INFO: ==31531== Lock acquired, processing the job... [2025-03-03 13:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:46:01] Production.INFO: neon service started [2025-03-03 13:46:01] Production.INFO: neon service started [2025-03-03 13:46:01] Production.INFO: ==31531== Releasing lock... [2025-03-03 13:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:46:02] Production.INFO: ==31536== Lock acquired, processing the job... [2025-03-03 13:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:46:02] Production.INFO: ==31536== Releasing lock... [2025-03-03 13:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:46:02] Production.INFO: ==31534== Lock acquired, processing the job... [2025-03-03 08:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:46:02] Production.INFO: ==31534== Releasing lock... [2025-03-03 08:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:46:03] Production.INFO: ==31544== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:46:03] Production.INFO: ==31548== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:46:03] Production.INFO: Account Balance Start. [2025-03-03 08:46:03] Production.INFO: CreateAllLog Start [2025-03-03 08:46:03] Production.INFO: 117 [2025-03-03 08:46:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:46:03] Production.INFO: count ==13 [2025-03-03 08:46:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:46:03] Production.INFO: count ==21 [2025-03-03 08:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597330') start [2025-03-03 08:46:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.INFO: ==31538== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:46:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597330') end [2025-03-03 08:46:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:46:03] Production.INFO: 1 [2025-03-03 08:46:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:46:03] Production.INFO: ==31548== Releasing lock... [2025-03-03 08:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:46:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:46:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:46:03] Production.INFO: Date 2025-02-12 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.INFO: ==31540== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:46:03] Production.INFO: ==31542== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:46:03] Production.INFO: Date 2025-02-13 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.INFO: Date 2025-02-14 [2025-03-03 08:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:03] Production.INFO: ==31546== Lock acquired, processing the job... [2025-03-03 08:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: ==31540== Releasing lock... [2025-03-03 08:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.ERROR: done [2025-03-03 08:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.ERROR: done [2025-03-03 08:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:46:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:46:04] Production.INFO: Total Charge 0 [2025-03-03 08:46:04] Production.INFO: CreateAllLog End [2025-03-03 08:46:05] Production.INFO: Account Balance End. [2025-03-03 08:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:46:05] Production.INFO: ==31544== Releasing lock... [2025-03-03 08:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:46:12] Production.ERROR: CronJobId end10 [2025-03-03 08:46:12] Production.INFO: ==31542== Releasing lock... [2025-03-03 08:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:46:14] Production.INFO: call_cost start [2025-03-03 08:46:14] Production.INFO: call_cost end [2025-03-03 08:46:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:46:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:46:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:46:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:46:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:46:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:46:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:46:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:46:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:46:14] Production.INFO: ==31538== Releasing lock... [2025-03-03 08:46:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:46:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:46:16] Production.INFO: count ==409 [2025-03-03 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597333', 'tblTempUsageDetail_20' ) start [2025-03-03 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597333', 'tblTempUsageDetail_20' ) end [2025-03-03 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597333', 'tblTempVendorCDR_20' ) start [2025-03-03 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597333', 'tblTempVendorCDR_20' ) end [2025-03-03 08:46:17] Production.INFO: ProcessCDR(1,14597333,1,1,2) [2025-03-03 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597333', 'tblTempUsageDetail_20' ) start [2025-03-03 08:46:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597333', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:46:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:46:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:46:24] Production.INFO: ==31546== Releasing lock... [2025-03-03 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:46:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:47:02] Production.INFO: ==31609== Lock acquired, processing the job... [2025-03-03 13:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:47:02] Production.INFO: neon service started [2025-03-03 13:47:02] Production.INFO: neon service started [2025-03-03 13:47:02] Production.INFO: ==31609== Releasing lock... [2025-03-03 13:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:47:02] Production.INFO: ==31613== Lock acquired, processing the job... [2025-03-03 13:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:47:02] Production.INFO: ==31613== Releasing lock... [2025-03-03 13:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:47:02] Production.INFO: ==31611== Lock acquired, processing the job... [2025-03-03 08:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:47:02] Production.INFO: ==31611== Releasing lock... [2025-03-03 08:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:47:04] Production.INFO: ==31624== Lock acquired, processing the job... [2025-03-03 08:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:47:04] Production.INFO: ==31618== Lock acquired, processing the job... [2025-03-03 08:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:47:04] Production.INFO: ==31620== Lock acquired, processing the job... [2025-03-03 08:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:47:04] Production.INFO: ==31626== Lock acquired, processing the job... [2025-03-03 08:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:47:04] Production.INFO: ==31616== Lock acquired, processing the job... [2025-03-03 08:47:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:47:04] Production.INFO: ==31622== Lock acquired, processing the job... [2025-03-03 08:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:47:04] Production.INFO: count ==13 [2025-03-03 08:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:47:04] Production.INFO: count ==21 [2025-03-03 08:47:04] Production.INFO: Account Balance Start. [2025-03-03 08:47:04] Production.INFO: CreateAllLog Start [2025-03-03 08:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:47:04] Production.INFO: 117 [2025-03-03 08:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597334') start [2025-03-03 08:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.ERROR: done [2025-03-03 08:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:47:04] Production.INFO: ==31618== Releasing lock... [2025-03-03 08:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597334') end [2025-03-03 08:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:47:04] Production.INFO: 1 [2025-03-03 08:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: ==31626== Releasing lock... [2025-03-03 08:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:47:04] Production.ERROR: done [2025-03-03 08:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:47:05] Production.INFO: Total Charge 0 [2025-03-03 08:47:05] Production.INFO: CreateAllLog End [2025-03-03 08:47:05] Production.INFO: Account Balance End. [2025-03-03 08:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:47:05] Production.INFO: ==31622== Releasing lock... [2025-03-03 08:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:47:11] Production.ERROR: CronJobId end10 [2025-03-03 08:47:11] Production.INFO: ==31620== Releasing lock... [2025-03-03 08:47:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:47:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:47:14] Production.INFO: call_cost start [2025-03-03 08:47:14] Production.INFO: call_cost end [2025-03-03 08:47:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:47:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:47:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:47:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:47:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:47:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:47:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:47:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:47:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:47:14] Production.INFO: ==31616== Releasing lock... [2025-03-03 08:47:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:47:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:47:16] Production.INFO: count ==409 [2025-03-03 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597338', 'tblTempUsageDetail_20' ) start [2025-03-03 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597338', 'tblTempUsageDetail_20' ) end [2025-03-03 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597338', 'tblTempVendorCDR_20' ) start [2025-03-03 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597338', 'tblTempVendorCDR_20' ) end [2025-03-03 08:47:17] Production.INFO: ProcessCDR(1,14597338,1,1,2) [2025-03-03 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597338', 'tblTempUsageDetail_20' ) start [2025-03-03 08:47:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597338', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:47:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:47:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:47:24] Production.INFO: ==31624== Releasing lock... [2025-03-03 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:47:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:48:01] Production.INFO: ==31692== Lock acquired, processing the job... [2025-03-03 13:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:48:01] Production.INFO: neon service started [2025-03-03 13:48:01] Production.INFO: neon service started [2025-03-03 13:48:01] Production.INFO: ==31692== Releasing lock... [2025-03-03 13:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:48:02] Production.INFO: ==31696== Lock acquired, processing the job... [2025-03-03 13:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:48:02] Production.INFO: ==31696== Releasing lock... [2025-03-03 13:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:48:02] Production.INFO: ==31694== Lock acquired, processing the job... [2025-03-03 08:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:48:02] Production.INFO: ==31694== Releasing lock... [2025-03-03 08:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:48:03] Production.INFO: ==31699== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:48:03] Production.INFO: ==31703== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:48:03] Production.INFO: ==31707== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:48:03] Production.INFO: ==31701== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:48:03] Production.INFO: ==31705== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:48:03] Production.INFO: ==31709== Lock acquired, processing the job... [2025-03-03 08:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:48:03] Production.INFO: count ==13 [2025-03-03 08:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:48:03] Production.INFO: count ==21 [2025-03-03 08:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597340') start [2025-03-03 08:48:03] Production.INFO: Account Balance Start. [2025-03-03 08:48:03] Production.INFO: CreateAllLog Start [2025-03-03 08:48:03] Production.INFO: 117 [2025-03-03 08:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597340') end [2025-03-03 08:48:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:48:03] Production.INFO: 1 [2025-03-03 08:48:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: ==31709== Releasing lock... [2025-03-03 08:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:48:04] Production.ERROR: done [2025-03-03 08:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:48:04] Production.INFO: ==31701== Releasing lock... [2025-03-03 08:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.ERROR: done [2025-03-03 08:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:48:05] Production.INFO: Total Charge 0 [2025-03-03 08:48:05] Production.INFO: CreateAllLog End [2025-03-03 08:48:05] Production.INFO: Account Balance End. [2025-03-03 08:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:48:05] Production.INFO: ==31705== Releasing lock... [2025-03-03 08:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:48:11] Production.ERROR: CronJobId end10 [2025-03-03 08:48:11] Production.INFO: ==31703== Releasing lock... [2025-03-03 08:48:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:48:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:48:14] Production.INFO: call_cost start [2025-03-03 08:48:14] Production.INFO: call_cost end [2025-03-03 08:48:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:48:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:48:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:48:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:48:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:48:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:48:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:48:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:48:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:48:14] Production.INFO: ==31699== Releasing lock... [2025-03-03 08:48:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:48:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:48:16] Production.INFO: count ==409 [2025-03-03 08:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597343', 'tblTempUsageDetail_20' ) start [2025-03-03 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597343', 'tblTempUsageDetail_20' ) end [2025-03-03 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597343', 'tblTempVendorCDR_20' ) start [2025-03-03 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597343', 'tblTempVendorCDR_20' ) end [2025-03-03 08:48:16] Production.INFO: ProcessCDR(1,14597343,1,1,2) [2025-03-03 08:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597343', 'tblTempUsageDetail_20' ) start [2025-03-03 08:48:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597343', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:48:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:48:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:48:24] Production.INFO: ==31707== Releasing lock... [2025-03-03 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:49:02] Production.INFO: ==31767== Lock acquired, processing the job... [2025-03-03 13:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:49:02] Production.INFO: neon service started [2025-03-03 13:49:02] Production.INFO: neon service started [2025-03-03 13:49:02] Production.INFO: ==31767== Releasing lock... [2025-03-03 13:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:49:02] Production.INFO: ==31769== Lock acquired, processing the job... [2025-03-03 08:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:49:02] Production.INFO: ==31771== Lock acquired, processing the job... [2025-03-03 13:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:49:02] Production.INFO: ==31771== Releasing lock... [2025-03-03 13:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:49:02] Production.INFO: ==31769== Releasing lock... [2025-03-03 08:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:49:03] Production.INFO: ==31778== Lock acquired, processing the job... [2025-03-03 08:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:49:03] Production.INFO: ==31784== Lock acquired, processing the job... [2025-03-03 08:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:49:04] Production.INFO: ==31773== Lock acquired, processing the job... [2025-03-03 08:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:49:04] Production.INFO: ==31775== Lock acquired, processing the job... [2025-03-03 08:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:49:04] Production.INFO: count ==13 [2025-03-03 08:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:49:04] Production.INFO: count ==21 [2025-03-03 08:49:04] Production.INFO: ==31780== Lock acquired, processing the job... [2025-03-03 08:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597344') start [2025-03-03 08:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:49:04] Production.INFO: ==31782== Lock acquired, processing the job... [2025-03-03 08:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:49:04] Production.INFO: Account Balance Start. [2025-03-03 08:49:04] Production.INFO: CreateAllLog Start [2025-03-03 08:49:04] Production.INFO: 117 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597344') end [2025-03-03 08:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:49:04] Production.INFO: 1 [2025-03-03 08:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:49:04] Production.INFO: ==31784== Releasing lock... [2025-03-03 08:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.INFO: ==31775== Releasing lock... [2025-03-03 08:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.ERROR: done [2025-03-03 08:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.ERROR: done [2025-03-03 08:49:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:49:05] Production.INFO: Total Charge 0 [2025-03-03 08:49:05] Production.INFO: CreateAllLog End [2025-03-03 08:49:05] Production.INFO: Account Balance End. [2025-03-03 08:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:49:05] Production.INFO: ==31780== Releasing lock... [2025-03-03 08:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:49:11] Production.ERROR: CronJobId end10 [2025-03-03 08:49:11] Production.INFO: ==31778== Releasing lock... [2025-03-03 08:49:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:49:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:49:14] Production.INFO: call_cost start [2025-03-03 08:49:14] Production.INFO: call_cost end [2025-03-03 08:49:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:49:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:49:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:49:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:49:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:49:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:49:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:49:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:49:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:49:14] Production.INFO: ==31773== Releasing lock... [2025-03-03 08:49:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:49:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:49:17] Production.INFO: count ==409 [2025-03-03 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597348', 'tblTempUsageDetail_20' ) start [2025-03-03 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597348', 'tblTempUsageDetail_20' ) end [2025-03-03 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597348', 'tblTempVendorCDR_20' ) start [2025-03-03 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597348', 'tblTempVendorCDR_20' ) end [2025-03-03 08:49:17] Production.INFO: ProcessCDR(1,14597348,1,1,2) [2025-03-03 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597348', 'tblTempUsageDetail_20' ) start [2025-03-03 08:49:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597348', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:49:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:49:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:49:25] Production.INFO: ==31782== Releasing lock... [2025-03-03 08:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:49:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:50:01] Production.INFO: ==31840== Lock acquired, processing the job... [2025-03-03 13:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:50:01] Production.INFO: neon service started [2025-03-03 13:50:01] Production.INFO: neon service started [2025-03-03 13:50:01] Production.INFO: ==31840== Releasing lock... [2025-03-03 13:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:50:02] Production.INFO: ==31842== Lock acquired, processing the job... [2025-03-03 08:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:50:02] Production.INFO: ==31844== Lock acquired, processing the job... [2025-03-03 13:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:50:02] Production.INFO: ==31844== Releasing lock... [2025-03-03 13:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:50:02] Production.INFO: ==31842== Releasing lock... [2025-03-03 08:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:50:03] Production.INFO: ==31847== Lock acquired, processing the job... [2025-03-03 08:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 08:50:03] Production.INFO: ==31849== Lock acquired, processing the job... [2025-03-03 08:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 08:50:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 08:50:03] Production.INFO: ==31847== Releasing lock... [2025-03-03 08:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 08:50:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 08:50:03] Production.INFO: ==31853== Lock acquired, processing the job... [2025-03-03 08:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:50:03] Production.INFO: ==31851== Lock acquired, processing the job... [2025-03-03 08:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:50:03] Production.INFO: ==31857== Lock acquired, processing the job... [2025-03-03 08:50:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:50:04] Production.INFO: ==31855== Lock acquired, processing the job... [2025-03-03 08:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:50:04] Production.INFO: Account Balance Start. [2025-03-03 08:50:04] Production.INFO: CreateAllLog Start [2025-03-03 08:50:04] Production.INFO: 117 [2025-03-03 08:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.INFO: ==31859== Lock acquired, processing the job... [2025-03-03 08:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 08:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.INFO: ==31861== Lock acquired, processing the job... [2025-03-03 08:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:50:04] Production.INFO: ==31851== Releasing lock... [2025-03-03 08:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:50:04] Production.ERROR: done [2025-03-03 08:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:50:04] Production.INFO: count ==13 [2025-03-03 08:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:50:04] Production.INFO: count ==21 [2025-03-03 08:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597352') start [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.ERROR: done [2025-03-03 08:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:50:04] Production.ERROR: done [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597352') end [2025-03-03 08:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:50:04] Production.INFO: 1 [2025-03-03 08:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:50:04] Production.INFO: ==31861== Releasing lock... [2025-03-03 08:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 08:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597354', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 08:50:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:50:05] Production.INFO: Total Charge 0 [2025-03-03 08:50:05] Production.INFO: CreateAllLog End [2025-03-03 08:50:05] Production.INFO: Account Balance End. [2025-03-03 08:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:50:05] Production.INFO: ==31855== Releasing lock... [2025-03-03 08:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597354', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 08:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 08:50:09] Production.INFO: ProcessCDR(1,14597354,1,1,2) [2025-03-03 08:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597354,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597354,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 08:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 08:50:09] Production.INFO: ==31859== Releasing lock... [2025-03-03 08:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 08:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 08:50:13] Production.ERROR: CronJobId end10 [2025-03-03 08:50:13] Production.INFO: ==31853== Releasing lock... [2025-03-03 08:50:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:50:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:50:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:50:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:50:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:50:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:50:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:50:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:50:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:50:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:50:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:50:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:50:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:50:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:50:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:50:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:50:16] Production.INFO: call_cost start [2025-03-03 08:50:16] Production.INFO: call_cost end [2025-03-03 08:50:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:50:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:50:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:50:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:50:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:50:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:50:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:50:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:50:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:50:16] Production.INFO: ==31849== Releasing lock... [2025-03-03 08:50:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:50:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:50:16] Production.INFO: count ==409 [2025-03-03 08:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597353', 'tblTempUsageDetail_20' ) start [2025-03-03 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597353', 'tblTempUsageDetail_20' ) end [2025-03-03 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597353', 'tblTempVendorCDR_20' ) start [2025-03-03 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597353', 'tblTempVendorCDR_20' ) end [2025-03-03 08:50:17] Production.INFO: ProcessCDR(1,14597353,1,1,2) [2025-03-03 08:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597353', 'tblTempUsageDetail_20' ) start [2025-03-03 08:50:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597353', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:50:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:50:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:50:24] Production.INFO: ==31857== Releasing lock... [2025-03-03 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:51:01] Production.INFO: ==31924== Lock acquired, processing the job... [2025-03-03 13:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:51:02] Production.INFO: neon service started [2025-03-03 13:51:02] Production.INFO: neon service started [2025-03-03 13:51:02] Production.INFO: ==31924== Releasing lock... [2025-03-03 13:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:51:02] Production.INFO: ==31928== Lock acquired, processing the job... [2025-03-03 13:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:51:02] Production.INFO: ==31928== Releasing lock... [2025-03-03 13:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:51:02] Production.INFO: ==31926== Lock acquired, processing the job... [2025-03-03 08:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:51:02] Production.INFO: ==31926== Releasing lock... [2025-03-03 08:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:51:03] Production.INFO: ==31935== Lock acquired, processing the job... [2025-03-03 08:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:51:03] Production.INFO: ==31937== Lock acquired, processing the job... [2025-03-03 08:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:51:03] Production.INFO: Account Balance Start. [2025-03-03 08:51:03] Production.INFO: CreateAllLog Start [2025-03-03 08:51:03] Production.INFO: 117 [2025-03-03 08:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:03] Production.INFO: ==31933== Lock acquired, processing the job... [2025-03-03 08:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 08:51:03] Production.INFO: ==31931== Lock acquired, processing the job... [2025-03-03 08:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 08:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 08:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: ==31939== Lock acquired, processing the job... [2025-03-03 08:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:51:04] Production.INFO: ==31941== Lock acquired, processing the job... [2025-03-03 08:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: ==31933== Releasing lock... [2025-03-03 08:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: count ==13 [2025-03-03 08:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:51:04] Production.INFO: count ==21 [2025-03-03 08:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597358') start [2025-03-03 08:51:04] Production.ERROR: done [2025-03-03 08:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597358') end [2025-03-03 08:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:51:04] Production.INFO: 1 [2025-03-03 08:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: ==31941== Releasing lock... [2025-03-03 08:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:51:04] Production.ERROR: done [2025-03-03 08:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:51:05] Production.INFO: Total Charge 0 [2025-03-03 08:51:05] Production.INFO: CreateAllLog End [2025-03-03 08:51:05] Production.INFO: Account Balance End. [2025-03-03 08:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:51:05] Production.INFO: ==31937== Releasing lock... [2025-03-03 08:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:51:12] Production.ERROR: CronJobId end10 [2025-03-03 08:51:12] Production.INFO: ==31935== Releasing lock... [2025-03-03 08:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:51:15] Production.INFO: call_cost start [2025-03-03 08:51:15] Production.INFO: call_cost end [2025-03-03 08:51:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:51:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:51:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:51:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:51:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:51:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:51:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:51:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:51:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:51:15] Production.INFO: ==31931== Releasing lock... [2025-03-03 08:51:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:51:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:51:16] Production.INFO: count ==409 [2025-03-03 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597359', 'tblTempUsageDetail_20' ) start [2025-03-03 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597359', 'tblTempUsageDetail_20' ) end [2025-03-03 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597359', 'tblTempVendorCDR_20' ) start [2025-03-03 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597359', 'tblTempVendorCDR_20' ) end [2025-03-03 08:51:17] Production.INFO: ProcessCDR(1,14597359,1,1,2) [2025-03-03 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597359', 'tblTempUsageDetail_20' ) start [2025-03-03 08:51:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597359', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:51:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:51:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:51:24] Production.INFO: ==31939== Releasing lock... [2025-03-03 08:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:51:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:52:01] Production.INFO: ==32035== Lock acquired, processing the job... [2025-03-03 13:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:52:01] Production.INFO: neon service started [2025-03-03 13:52:01] Production.INFO: neon service started [2025-03-03 13:52:01] Production.INFO: ==32035== Releasing lock... [2025-03-03 13:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:52:01] Production.INFO: ==32039== Lock acquired, processing the job... [2025-03-03 13:52:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:52:01] Production.INFO: ==32039== Releasing lock... [2025-03-03 13:52:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:52:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:52:01] Production.INFO: ==32037== Lock acquired, processing the job... [2025-03-03 08:52:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:52:02] Production.INFO: ==32037== Releasing lock... [2025-03-03 08:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:52:03] Production.INFO: ==32046== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:52:03] Production.INFO: ==32052== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:52:03] Production.INFO: ==32042== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:52:03] Production.INFO: ==32044== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:52:03] Production.INFO: count ==13 [2025-03-03 08:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:52:03] Production.INFO: count ==21 [2025-03-03 08:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597360') start [2025-03-03 08:52:03] Production.INFO: ==32048== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597360') end [2025-03-03 08:52:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:52:03] Production.INFO: 1 [2025-03-03 08:52:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:52:03] Production.INFO: ==32050== Lock acquired, processing the job... [2025-03-03 08:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:52:03] Production.INFO: Account Balance Start. [2025-03-03 08:52:03] Production.INFO: CreateAllLog Start [2025-03-03 08:52:03] Production.INFO: 117 [2025-03-03 08:52:03] Production.INFO: ==32052== Releasing lock... [2025-03-03 08:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:52:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:52:03] Production.INFO: Date 2025-02-08 [2025-03-03 08:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:03] Production.INFO: ==32044== Releasing lock... [2025-03-03 08:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:52:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:52:04] Production.ERROR: done [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.ERROR: done [2025-03-03 08:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:52:04] Production.INFO: Total Charge 0 [2025-03-03 08:52:04] Production.INFO: CreateAllLog End [2025-03-03 08:52:04] Production.INFO: Account Balance End. [2025-03-03 08:52:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:52:04] Production.INFO: ==32048== Releasing lock... [2025-03-03 08:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:52:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:52:11] Production.ERROR: CronJobId end10 [2025-03-03 08:52:11] Production.INFO: ==32046== Releasing lock... [2025-03-03 08:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:52:14] Production.INFO: call_cost start [2025-03-03 08:52:14] Production.INFO: call_cost end [2025-03-03 08:52:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:52:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:52:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:52:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:52:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:52:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:52:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:52:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:52:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:52:14] Production.INFO: ==32042== Releasing lock... [2025-03-03 08:52:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:52:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:52:16] Production.INFO: count ==409 [2025-03-03 08:52:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597364', 'tblTempUsageDetail_20' ) start [2025-03-03 08:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597364', 'tblTempUsageDetail_20' ) end [2025-03-03 08:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597364', 'tblTempVendorCDR_20' ) start [2025-03-03 08:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597364', 'tblTempVendorCDR_20' ) end [2025-03-03 08:52:16] Production.INFO: ProcessCDR(1,14597364,1,1,2) [2025-03-03 08:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597364', 'tblTempUsageDetail_20' ) start [2025-03-03 08:52:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597364', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:52:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:52:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:52:24] Production.INFO: ==32050== Releasing lock... [2025-03-03 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:53:01] Production.INFO: ==32113== Lock acquired, processing the job... [2025-03-03 13:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:53:01] Production.INFO: neon service started [2025-03-03 13:53:01] Production.INFO: neon service started [2025-03-03 13:53:01] Production.INFO: ==32113== Releasing lock... [2025-03-03 13:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:53:02] Production.INFO: ==32117== Lock acquired, processing the job... [2025-03-03 13:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:53:02] Production.INFO: ==32117== Releasing lock... [2025-03-03 13:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:53:02] Production.INFO: ==32115== Lock acquired, processing the job... [2025-03-03 08:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:53:02] Production.INFO: ==32115== Releasing lock... [2025-03-03 08:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:53:03] Production.INFO: ==32119== Lock acquired, processing the job... [2025-03-03 08:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:53:03] Production.INFO: ==32123== Lock acquired, processing the job... [2025-03-03 08:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:53:03] Production.INFO: ==32127== Lock acquired, processing the job... [2025-03-03 08:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:53:03] Production.INFO: ==32121== Lock acquired, processing the job... [2025-03-03 08:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:53:03] Production.INFO: ==32125== Lock acquired, processing the job... [2025-03-03 08:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:53:03] Production.INFO: ==32129== Lock acquired, processing the job... [2025-03-03 08:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:53:04] Production.ERROR: done [2025-03-03 08:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:53:04] Production.INFO: Account Balance Start. [2025-03-03 08:53:04] Production.INFO: CreateAllLog Start [2025-03-03 08:53:04] Production.INFO: 117 [2025-03-03 08:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: count ==13 [2025-03-03 08:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:53:04] Production.INFO: count ==21 [2025-03-03 08:53:04] Production.ERROR: done [2025-03-03 08:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597368') start [2025-03-03 08:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597368') end [2025-03-03 08:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:53:04] Production.INFO: 1 [2025-03-03 08:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:53:04] Production.INFO: ==32121== Releasing lock... [2025-03-03 08:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: ==32129== Releasing lock... [2025-03-03 08:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:53:05] Production.INFO: Total Charge 0 [2025-03-03 08:53:05] Production.INFO: CreateAllLog End [2025-03-03 08:53:05] Production.INFO: Account Balance End. [2025-03-03 08:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:53:05] Production.INFO: ==32125== Releasing lock... [2025-03-03 08:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:53:11] Production.ERROR: CronJobId end10 [2025-03-03 08:53:11] Production.INFO: ==32123== Releasing lock... [2025-03-03 08:53:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:53:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:53:15] Production.INFO: call_cost start [2025-03-03 08:53:15] Production.INFO: call_cost end [2025-03-03 08:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:53:15] Production.INFO: ==32119== Releasing lock... [2025-03-03 08:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:53:16] Production.INFO: count ==409 [2025-03-03 08:53:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597369', 'tblTempUsageDetail_20' ) start [2025-03-03 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597369', 'tblTempUsageDetail_20' ) end [2025-03-03 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597369', 'tblTempVendorCDR_20' ) start [2025-03-03 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597369', 'tblTempVendorCDR_20' ) end [2025-03-03 08:53:16] Production.INFO: ProcessCDR(1,14597369,1,1,2) [2025-03-03 08:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597369', 'tblTempUsageDetail_20' ) start [2025-03-03 08:53:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597369', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:53:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:53:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:53:24] Production.INFO: ==32127== Releasing lock... [2025-03-03 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:54:02] Production.INFO: ==32184== Lock acquired, processing the job... [2025-03-03 13:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:54:02] Production.INFO: neon service started [2025-03-03 13:54:02] Production.INFO: neon service started [2025-03-03 13:54:02] Production.INFO: ==32184== Releasing lock... [2025-03-03 13:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:54:02] Production.INFO: ==32186== Lock acquired, processing the job... [2025-03-03 08:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:54:02] Production.INFO: ==32188== Lock acquired, processing the job... [2025-03-03 13:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:54:03] Production.INFO: ==32188== Releasing lock... [2025-03-03 13:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:54:03] Production.INFO: ==32186== Releasing lock... [2025-03-03 08:54:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:54:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:54:04] Production.INFO: ==32191== Lock acquired, processing the job... [2025-03-03 08:54:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:54:04] Production.INFO: ==32193== Lock acquired, processing the job... [2025-03-03 08:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:54:04] Production.INFO: ==32199== Lock acquired, processing the job... [2025-03-03 08:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:54:04] Production.INFO: ==32195== Lock acquired, processing the job... [2025-03-03 08:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:54:04] Production.ERROR: done [2025-03-03 08:54:04] Production.INFO: ==32201== Lock acquired, processing the job... [2025-03-03 08:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:54:04] Production.INFO: ==32197== Lock acquired, processing the job... [2025-03-03 08:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:54:04] Production.INFO: ==32193== Releasing lock... [2025-03-03 08:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:54:04] Production.ERROR: done [2025-03-03 08:54:04] Production.INFO: Account Balance Start. [2025-03-03 08:54:04] Production.INFO: CreateAllLog Start [2025-03-03 08:54:04] Production.INFO: 117 [2025-03-03 08:54:04] Production.INFO: count ==13 [2025-03-03 08:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:54:04] Production.INFO: count ==21 [2025-03-03 08:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597372') start [2025-03-03 08:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597372') end [2025-03-03 08:54:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:54:05] Production.INFO: 1 [2025-03-03 08:54:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:54:05] Production.INFO: Date 2025-02-12 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: ==32201== Releasing lock... [2025-03-03 08:54:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:54:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:54:05] Production.INFO: Date 2025-02-13 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-14 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-15 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-16 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-17 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:54:05] Production.INFO: Total Charge 0 [2025-03-03 08:54:05] Production.INFO: CreateAllLog End [2025-03-03 08:54:05] Production.INFO: Account Balance End. [2025-03-03 08:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:54:05] Production.INFO: ==32197== Releasing lock... [2025-03-03 08:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:54:13] Production.ERROR: CronJobId end10 [2025-03-03 08:54:13] Production.INFO: ==32195== Releasing lock... [2025-03-03 08:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:54:15] Production.INFO: call_cost start [2025-03-03 08:54:15] Production.INFO: call_cost end [2025-03-03 08:54:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:54:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:54:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:54:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:54:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:54:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:54:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:54:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:54:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:54:15] Production.INFO: ==32191== Releasing lock... [2025-03-03 08:54:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:54:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:54:17] Production.INFO: count ==409 [2025-03-03 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597374', 'tblTempUsageDetail_20' ) start [2025-03-03 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597374', 'tblTempUsageDetail_20' ) end [2025-03-03 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597374', 'tblTempVendorCDR_20' ) start [2025-03-03 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597374', 'tblTempVendorCDR_20' ) end [2025-03-03 08:54:17] Production.INFO: ProcessCDR(1,14597374,1,1,2) [2025-03-03 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597374', 'tblTempUsageDetail_20' ) start [2025-03-03 08:54:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597374', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:54:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:54:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:54:24] Production.INFO: ==32199== Releasing lock... [2025-03-03 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:55:01] Production.INFO: ==32260== Lock acquired, processing the job... [2025-03-03 13:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:55:01] Production.INFO: neon service started [2025-03-03 13:55:01] Production.INFO: neon service started [2025-03-03 13:55:01] Production.INFO: ==32260== Releasing lock... [2025-03-03 13:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:55:02] Production.INFO: ==32262== Lock acquired, processing the job... [2025-03-03 08:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:55:02] Production.INFO: ==32262== Releasing lock... [2025-03-03 08:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:55:02] Production.INFO: ==32264== Lock acquired, processing the job... [2025-03-03 13:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:55:02] Production.INFO: ==32264== Releasing lock... [2025-03-03 13:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:55:03] Production.INFO: ==32266== Lock acquired, processing the job... [2025-03-03 08:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:55:03] Production.INFO: ==32274== Lock acquired, processing the job... [2025-03-03 08:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:55:03] Production.INFO: ==32277== Lock acquired, processing the job... [2025-03-03 08:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:55:03] Production.INFO: ==32268== Lock acquired, processing the job... [2025-03-03 08:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:55:03] Production.INFO: count ==13 [2025-03-03 08:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:55:03] Production.INFO: count ==21 [2025-03-03 08:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597375') start [2025-03-03 08:55:03] Production.INFO: ==32270== Lock acquired, processing the job... [2025-03-03 08:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:55:03] Production.INFO: ==32272== Lock acquired, processing the job... [2025-03-03 08:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597375') end [2025-03-03 08:55:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:55:03] Production.INFO: 1 [2025-03-03 08:55:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:55:03] Production.INFO: Account Balance Start. [2025-03-03 08:55:03] Production.INFO: CreateAllLog Start [2025-03-03 08:55:03] Production.INFO: 117 [2025-03-03 08:55:04] Production.INFO: ==32277== Releasing lock... [2025-03-03 08:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:55:04] Production.ERROR: done [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: ==32268== Releasing lock... [2025-03-03 08:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:55:04] Production.ERROR: done [2025-03-03 08:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Date 2025-03-03 [2025-03-03 08:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:55:04] Production.INFO: Total Charge 0 [2025-03-03 08:55:04] Production.INFO: CreateAllLog End [2025-03-03 08:55:04] Production.INFO: Account Balance End. [2025-03-03 08:55:04] Production.ERROR: CronJobId end 12 [2025-03-03 08:55:04] Production.INFO: ==32272== Releasing lock... [2025-03-03 08:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:55:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:55:12] Production.ERROR: CronJobId end10 [2025-03-03 08:55:12] Production.INFO: ==32270== Releasing lock... [2025-03-03 08:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:55:14] Production.INFO: call_cost start [2025-03-03 08:55:14] Production.INFO: call_cost end [2025-03-03 08:55:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:55:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:55:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:55:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:55:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:55:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:55:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:55:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:55:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:55:14] Production.INFO: ==32266== Releasing lock... [2025-03-03 08:55:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:55:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:55:16] Production.INFO: count ==409 [2025-03-03 08:55:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597379', 'tblTempUsageDetail_20' ) start [2025-03-03 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597379', 'tblTempUsageDetail_20' ) end [2025-03-03 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597379', 'tblTempVendorCDR_20' ) start [2025-03-03 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597379', 'tblTempVendorCDR_20' ) end [2025-03-03 08:55:16] Production.INFO: ProcessCDR(1,14597379,1,1,2) [2025-03-03 08:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597379', 'tblTempUsageDetail_20' ) start [2025-03-03 08:55:23] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597379', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:55:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:55:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:55:24] Production.INFO: ==32274== Releasing lock... [2025-03-03 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:55:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:56:02] Production.INFO: ==32337== Lock acquired, processing the job... [2025-03-03 13:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:56:02] Production.INFO: neon service started [2025-03-03 13:56:02] Production.INFO: neon service started [2025-03-03 13:56:02] Production.INFO: ==32337== Releasing lock... [2025-03-03 13:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:56:02] Production.INFO: ==32341== Lock acquired, processing the job... [2025-03-03 13:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:56:02] Production.INFO: ==32341== Releasing lock... [2025-03-03 13:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:56:02] Production.INFO: ==32339== Lock acquired, processing the job... [2025-03-03 08:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:56:03] Production.INFO: ==32339== Releasing lock... [2025-03-03 08:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:56:04] Production.INFO: ==32350== Lock acquired, processing the job... [2025-03-03 08:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:56:04] Production.INFO: ==32348== Lock acquired, processing the job... [2025-03-03 08:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:56:04] Production.INFO: Account Balance Start. [2025-03-03 08:56:04] Production.INFO: CreateAllLog Start [2025-03-03 08:56:04] Production.INFO: 117 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: ==32343== Lock acquired, processing the job... [2025-03-03 08:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: ==32345== Lock acquired, processing the job... [2025-03-03 08:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: ==32352== Lock acquired, processing the job... [2025-03-03 08:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:56:04] Production.INFO: ==32354== Lock acquired, processing the job... [2025-03-03 08:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: count ==13 [2025-03-03 08:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:56:04] Production.INFO: count ==21 [2025-03-03 08:56:04] Production.INFO: ==32345== Releasing lock... [2025-03-03 08:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597383') start [2025-03-03 08:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597383') end [2025-03-03 08:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:56:04] Production.INFO: 1 [2025-03-03 08:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.INFO: ==32354== Releasing lock... [2025-03-03 08:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.ERROR: done [2025-03-03 08:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:56:05] Production.INFO: Total Charge 0 [2025-03-03 08:56:05] Production.INFO: CreateAllLog End [2025-03-03 08:56:05] Production.ERROR: done [2025-03-03 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:56:05] Production.INFO: Account Balance End. [2025-03-03 08:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:56:05] Production.INFO: ==32350== Releasing lock... [2025-03-03 08:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:56:12] Production.ERROR: CronJobId end10 [2025-03-03 08:56:12] Production.INFO: ==32348== Releasing lock... [2025-03-03 08:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:56:14] Production.INFO: call_cost start [2025-03-03 08:56:14] Production.INFO: call_cost end [2025-03-03 08:56:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:56:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:56:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:56:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:56:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:56:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:56:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:56:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:56:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:56:14] Production.INFO: ==32343== Releasing lock... [2025-03-03 08:56:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:56:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:56:17] Production.INFO: count ==409 [2025-03-03 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597384', 'tblTempUsageDetail_20' ) start [2025-03-03 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597384', 'tblTempUsageDetail_20' ) end [2025-03-03 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597384', 'tblTempVendorCDR_20' ) start [2025-03-03 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597384', 'tblTempVendorCDR_20' ) end [2025-03-03 08:56:17] Production.INFO: ProcessCDR(1,14597384,1,1,2) [2025-03-03 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597384', 'tblTempUsageDetail_20' ) start [2025-03-03 08:56:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597384', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:56:25] Production.INFO: ==32352== Releasing lock... [2025-03-03 08:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:57:01] Production.INFO: ==32409== Lock acquired, processing the job... [2025-03-03 13:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:57:01] Production.INFO: neon service started [2025-03-03 13:57:01] Production.INFO: neon service started [2025-03-03 13:57:01] Production.INFO: ==32409== Releasing lock... [2025-03-03 13:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:57:02] Production.INFO: ==32413== Lock acquired, processing the job... [2025-03-03 13:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:57:02] Production.INFO: ==32413== Releasing lock... [2025-03-03 13:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:57:02] Production.INFO: ==32411== Lock acquired, processing the job... [2025-03-03 08:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:57:02] Production.INFO: ==32411== Releasing lock... [2025-03-03 08:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:57:03] Production.INFO: ==32420== Lock acquired, processing the job... [2025-03-03 08:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:57:03] Production.INFO: ==32424== Lock acquired, processing the job... [2025-03-03 08:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:57:03] Production.INFO: ==32415== Lock acquired, processing the job... [2025-03-03 08:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:57:03] Production.INFO: ==32418== Lock acquired, processing the job... [2025-03-03 08:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:57:04] Production.INFO: ==32422== Lock acquired, processing the job... [2025-03-03 08:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:57:04] Production.INFO: ==32426== Lock acquired, processing the job... [2025-03-03 08:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:57:04] Production.INFO: Account Balance Start. [2025-03-03 08:57:04] Production.INFO: CreateAllLog Start [2025-03-03 08:57:04] Production.INFO: 117 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: ==32418== Releasing lock... [2025-03-03 08:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:57:04] Production.ERROR: done [2025-03-03 08:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: count ==13 [2025-03-03 08:57:04] Production.ERROR: done [2025-03-03 08:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:57:04] Production.INFO: count ==21 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597388') start [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597388') end [2025-03-03 08:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:57:04] Production.INFO: 1 [2025-03-03 08:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: ==32426== Releasing lock... [2025-03-03 08:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:57:05] Production.INFO: Total Charge 0 [2025-03-03 08:57:05] Production.INFO: CreateAllLog End [2025-03-03 08:57:05] Production.INFO: Account Balance End. [2025-03-03 08:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:57:05] Production.INFO: ==32422== Releasing lock... [2025-03-03 08:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:57:12] Production.ERROR: CronJobId end10 [2025-03-03 08:57:12] Production.INFO: ==32420== Releasing lock... [2025-03-03 08:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:57:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:57:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:57:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:57:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:57:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:57:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:57:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:57:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:57:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:57:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:57:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:57:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:57:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:57:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:57:16] Production.INFO: call_cost start [2025-03-03 08:57:16] Production.INFO: call_cost end [2025-03-03 08:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:57:16] Production.INFO: ==32415== Releasing lock... [2025-03-03 08:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:57:16] Production.INFO: count ==409 [2025-03-03 08:57:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597389', 'tblTempUsageDetail_20' ) start [2025-03-03 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597389', 'tblTempUsageDetail_20' ) end [2025-03-03 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597389', 'tblTempVendorCDR_20' ) start [2025-03-03 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597389', 'tblTempVendorCDR_20' ) end [2025-03-03 08:57:17] Production.INFO: ProcessCDR(1,14597389,1,1,2) [2025-03-03 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597389', 'tblTempUsageDetail_20' ) start [2025-03-03 08:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597389', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:57:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:57:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:57:25] Production.INFO: ==32424== Releasing lock... [2025-03-03 08:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:58:02] Production.INFO: ==32484== Lock acquired, processing the job... [2025-03-03 13:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:58:02] Production.INFO: neon service started [2025-03-03 13:58:02] Production.INFO: neon service started [2025-03-03 13:58:02] Production.INFO: ==32484== Releasing lock... [2025-03-03 13:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 08:58:02] Production.INFO: ==32486== Lock acquired, processing the job... [2025-03-03 08:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:58:02] Production.INFO: ==32488== Lock acquired, processing the job... [2025-03-03 13:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:58:03] Production.INFO: ==32488== Releasing lock... [2025-03-03 13:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:58:03] Production.INFO: ==32486== Releasing lock... [2025-03-03 08:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:58:04] Production.INFO: ==32495== Lock acquired, processing the job... [2025-03-03 08:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:58:04] Production.INFO: ==32493== Lock acquired, processing the job... [2025-03-03 08:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:58:04] Production.INFO: ==32499== Lock acquired, processing the job... [2025-03-03 08:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:58:04] Production.INFO: ==32491== Lock acquired, processing the job... [2025-03-03 08:58:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:58:04] Production.INFO: ==32497== Lock acquired, processing the job... [2025-03-03 08:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:58:04] Production.INFO: ==32501== Lock acquired, processing the job... [2025-03-03 08:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:58:04] Production.INFO: Account Balance Start. [2025-03-03 08:58:04] Production.INFO: CreateAllLog Start [2025-03-03 08:58:04] Production.INFO: 117 [2025-03-03 08:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.ERROR: done [2025-03-03 08:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.INFO: ==32493== Releasing lock... [2025-03-03 08:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:58:04] Production.INFO: count ==13 [2025-03-03 08:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:58:04] Production.INFO: count ==21 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597393') start [2025-03-03 08:58:04] Production.ERROR: done [2025-03-03 08:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597393') end [2025-03-03 08:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:58:04] Production.INFO: 1 [2025-03-03 08:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:58:04] Production.INFO: ==32501== Releasing lock... [2025-03-03 08:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-18 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:58:05] Production.INFO: Total Charge 0 [2025-03-03 08:58:05] Production.INFO: CreateAllLog End [2025-03-03 08:58:05] Production.INFO: Account Balance End. [2025-03-03 08:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:58:05] Production.INFO: ==32497== Releasing lock... [2025-03-03 08:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:58:13] Production.ERROR: CronJobId end10 [2025-03-03 08:58:13] Production.INFO: ==32495== Releasing lock... [2025-03-03 08:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:58:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:58:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:58:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:58:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:58:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:58:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:58:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:58:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:58:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:58:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:58:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:58:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:58:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:58:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:58:15] Production.INFO: call_cost start [2025-03-03 08:58:15] Production.INFO: call_cost end [2025-03-03 08:58:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:58:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:58:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:58:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:58:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:58:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:58:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:58:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:58:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:58:15] Production.INFO: ==32491== Releasing lock... [2025-03-03 08:58:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:58:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:58:16] Production.INFO: count ==409 [2025-03-03 08:58:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597394', 'tblTempUsageDetail_20' ) start [2025-03-03 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597394', 'tblTempUsageDetail_20' ) end [2025-03-03 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597394', 'tblTempVendorCDR_20' ) start [2025-03-03 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597394', 'tblTempVendorCDR_20' ) end [2025-03-03 08:58:16] Production.INFO: ProcessCDR(1,14597394,1,1,2) [2025-03-03 08:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597394', 'tblTempUsageDetail_20' ) start [2025-03-03 08:58:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597394', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:58:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:58:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:58:24] Production.INFO: ==32499== Releasing lock... [2025-03-03 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 13:59:01] Production.INFO: ==32558== Lock acquired, processing the job... [2025-03-03 13:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 13:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 13:59:01] Production.INFO: neon service started [2025-03-03 13:59:01] Production.INFO: neon service started [2025-03-03 13:59:01] Production.INFO: ==32558== Releasing lock... [2025-03-03 13:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 13:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:59:02] Production.INFO: ==32562== Lock acquired, processing the job... [2025-03-03 13:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:59:02] Production.INFO: ==32562== Releasing lock... [2025-03-03 13:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 13:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 08:59:02] Production.INFO: ==32560== Lock acquired, processing the job... [2025-03-03 08:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 08:59:02] Production.INFO: ==32560== Releasing lock... [2025-03-03 08:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 08:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 08:59:03] Production.INFO: ==32569== Lock acquired, processing the job... [2025-03-03 08:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 08:59:03] Production.INFO: ==32575== Lock acquired, processing the job... [2025-03-03 08:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 08:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 08:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 08:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 08:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 08:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:59:03] Production.INFO: ==32565== Lock acquired, processing the job... [2025-03-03 08:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 08:59:03] Production.INFO: ==32567== Lock acquired, processing the job... [2025-03-03 08:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 08:59:03] Production.INFO: count ==13 [2025-03-03 08:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 08:59:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 08:59:03] Production.INFO: count ==21 [2025-03-03 08:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597395') start [2025-03-03 08:59:03] Production.INFO: ==32571== Lock acquired, processing the job... [2025-03-03 08:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 08:59:03] Production.INFO: ==32573== Lock acquired, processing the job... [2025-03-03 08:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 08:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597395') end [2025-03-03 08:59:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 08:59:03] Production.INFO: 1 [2025-03-03 08:59:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 08:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 08:59:03] Production.INFO: ==32575== Releasing lock... [2025-03-03 08:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 08:59:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 08:59:04] Production.INFO: Account Balance Start. [2025-03-03 08:59:04] Production.INFO: CreateAllLog Start [2025-03-03 08:59:04] Production.INFO: 117 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: ==32567== Releasing lock... [2025-03-03 08:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 08:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 08:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.ERROR: done [2025-03-03 08:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 08:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.ERROR: done [2025-03-03 08:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 08:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 08:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:04] Production.INFO: Date 2025-03-02 [2025-03-03 08:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 08:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 08:59:05] Production.INFO: Total Charge 0 [2025-03-03 08:59:05] Production.INFO: CreateAllLog End [2025-03-03 08:59:05] Production.INFO: Account Balance End. [2025-03-03 08:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 08:59:05] Production.INFO: ==32571== Releasing lock... [2025-03-03 08:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 08:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 08:59:12] Production.ERROR: CronJobId end10 [2025-03-03 08:59:12] Production.INFO: ==32569== Releasing lock... [2025-03-03 08:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 08:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 08:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 08:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 08:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 08:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 08:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 08:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 08:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 08:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 08:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 08:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 08:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 08:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 08:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 08:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 08:59:15] Production.INFO: call_cost start [2025-03-03 08:59:15] Production.INFO: call_cost end [2025-03-03 08:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 08:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 08:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 08:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 08:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 08:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 08:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 08:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 08:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 08:59:15] Production.INFO: ==32565== Releasing lock... [2025-03-03 08:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 08:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 08:59:16] Production.INFO: count ==409 [2025-03-03 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597399', 'tblTempUsageDetail_20' ) start [2025-03-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597399', 'tblTempUsageDetail_20' ) end [2025-03-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597399', 'tblTempVendorCDR_20' ) start [2025-03-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597399', 'tblTempVendorCDR_20' ) end [2025-03-03 08:59:17] Production.INFO: ProcessCDR(1,14597399,1,1,2) [2025-03-03 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597399', 'tblTempUsageDetail_20' ) start [2025-03-03 08:59:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597399', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 08:59:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 08:59:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 08:59:25] Production.INFO: ==32573== Releasing lock... [2025-03-03 08:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 08:59:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:00:02] Production.INFO: ==32635== Lock acquired, processing the job... [2025-03-03 14:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:00:02] Production.INFO: neon service started [2025-03-03 14:00:02] Production.INFO: neon service started [2025-03-03 14:00:02] Production.INFO: ==32635== Releasing lock... [2025-03-03 14:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:00:02] Production.INFO: ==32637== Lock acquired, processing the job... [2025-03-03 09:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:00:03] Production.INFO: ==32639== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:00:03] Production.INFO: ==32637== Releasing lock... [2025-03-03 09:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:00:03] Production.INFO: ==32639== Releasing lock... [2025-03-03 14:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:00:04] Production.INFO: ==32642== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 09:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 09:00:04] Production.INFO: ==32648== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 09:00:04] Production.INFO: ==32642== Releasing lock... [2025-03-03 09:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 09:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 09:00:04] Production.INFO: ==32644== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:00:04] Production.INFO: ==32650== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:00:04] Production.INFO: ==32654== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 09:00:04] Production.INFO: ==32646== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:00:04] Production.INFO: Account Balance Start. [2025-03-03 09:00:04] Production.INFO: CreateAllLog Start [2025-03-03 09:00:04] Production.INFO: 117 [2025-03-03 09:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:04] Production.INFO: ==32652== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:00:04] Production.INFO: ==32656== Lock acquired, processing the job... [2025-03-03 09:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:00:04] Production.ERROR: done [2025-03-03 09:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 09:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597403', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 09:00:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:00:05] Production.INFO: count ==13 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:00:05] Production.INFO: count ==21 [2025-03-03 09:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597404') start [2025-03-03 09:00:05] Production.ERROR: done [2025-03-03 09:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: ==32646== Releasing lock... [2025-03-03 09:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.ERROR: done [2025-03-03 09:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597404') end [2025-03-03 09:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:00:05] Production.INFO: 1 [2025-03-03 09:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:00:05] Production.INFO: ==32656== Releasing lock... [2025-03-03 09:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:00:05] Production.INFO: Total Charge 0 [2025-03-03 09:00:06] Production.INFO: CreateAllLog End [2025-03-03 09:00:06] Production.INFO: Account Balance End. [2025-03-03 09:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:00:06] Production.INFO: ==32650== Releasing lock... [2025-03-03 09:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:00:06] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:06] Production.INFO: =diffInterval=0 [2025-03-03 09:00:08] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:08] Production.INFO: =diffInterval=0 [2025-03-03 09:00:09] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:09] Production.INFO: =diffInterval=0 [2025-03-03 09:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597403', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 09:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 09:00:09] Production.INFO: ProcessCDR(1,14597403,1,1,2) [2025-03-03 09:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597403,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597403,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 09:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 09:00:09] Production.INFO: ==32654== Releasing lock... [2025-03-03 09:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 09:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:00:10] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:10] Production.INFO: =diffInterval=0 [2025-03-03 09:00:11] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:11] Production.INFO: =diffInterval=0 [2025-03-03 09:00:12] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:12] Production.INFO: =diffInterval=0 [2025-03-03 09:00:12] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:12] Production.INFO: =diffInterval=0 [2025-03-03 09:00:13] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:13] Production.INFO: =diffInterval=0 [2025-03-03 09:00:14] Production.ERROR: CronJobId end10 [2025-03-03 09:00:14] Production.INFO: ==32648== Releasing lock... [2025-03-03 09:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:00:14] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:14] Production.INFO: =diffInterval=0 [2025-03-03 09:00:14] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:14] Production.INFO: =diffInterval=0 [2025-03-03 09:00:15] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:15] Production.INFO: =diffInterval=0 [2025-03-03 09:00:16] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:16] Production.INFO: =diffInterval=0 [2025-03-03 09:00:16] Production.INFO: helper-LastRunTime===2025-03-03 09:00:00 [2025-03-03 09:00:16] Production.INFO: =diffInterval=0 [2025-03-03 09:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:00:17] Production.INFO: call_cost start [2025-03-03 09:00:17] Production.INFO: call_cost end [2025-03-03 09:00:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:00:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:00:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:00:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:00:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:00:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:00:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:00:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:00:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:00:17] Production.INFO: ==32644== Releasing lock... [2025-03-03 09:00:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:00:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:00:17] Production.INFO: count ==409 [2025-03-03 09:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597405', 'tblTempUsageDetail_20' ) start [2025-03-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597405', 'tblTempUsageDetail_20' ) end [2025-03-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597405', 'tblTempVendorCDR_20' ) start [2025-03-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597405', 'tblTempVendorCDR_20' ) end [2025-03-03 09:00:17] Production.INFO: ProcessCDR(1,14597405,1,1,2) [2025-03-03 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597405', 'tblTempUsageDetail_20' ) start [2025-03-03 09:00:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597405', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:00:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:00:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:00:26] Production.INFO: ==32652== Releasing lock... [2025-03-03 09:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:00:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:01:01] Production.INFO: ==32713== Lock acquired, processing the job... [2025-03-03 14:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:01:01] Production.INFO: neon service started [2025-03-03 14:01:01] Production.INFO: neon service started [2025-03-03 14:01:01] Production.INFO: ==32713== Releasing lock... [2025-03-03 14:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:01:02] Production.INFO: ==32725== Lock acquired, processing the job... [2025-03-03 09:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:01:02] Production.INFO: ==32725== Releasing lock... [2025-03-03 09:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:01:02] Production.INFO: ==32727== Lock acquired, processing the job... [2025-03-03 14:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:01:02] Production.INFO: ==32727== Releasing lock... [2025-03-03 14:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:01:03] Production.INFO: ==32730== Lock acquired, processing the job... [2025-03-03 09:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:01:03] Production.INFO: ==32740== Lock acquired, processing the job... [2025-03-03 09:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:01:03] Production.INFO: ==32732== Lock acquired, processing the job... [2025-03-03 09:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:01:03] Production.INFO: ==32734== Lock acquired, processing the job... [2025-03-03 09:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:01:03] Production.INFO: count ==13 [2025-03-03 09:01:03] Production.INFO: ==32736== Lock acquired, processing the job... [2025-03-03 09:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:01:03] Production.INFO: count ==21 [2025-03-03 09:01:03] Production.INFO: ==32738== Lock acquired, processing the job... [2025-03-03 09:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597407') start [2025-03-03 09:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597407') end [2025-03-03 09:01:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:01:03] Production.INFO: 1 [2025-03-03 09:01:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:01:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:01:04] Production.INFO: Account Balance Start. [2025-03-03 09:01:04] Production.INFO: CreateAllLog Start [2025-03-03 09:01:04] Production.INFO: 117 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: ==32740== Releasing lock... [2025-03-03 09:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:01:04] Production.INFO: ==32732== Releasing lock... [2025-03-03 09:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.ERROR: done [2025-03-03 09:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.ERROR: done [2025-03-03 09:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:01:05] Production.INFO: Total Charge 0 [2025-03-03 09:01:05] Production.INFO: CreateAllLog End [2025-03-03 09:01:05] Production.INFO: Account Balance End. [2025-03-03 09:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:01:05] Production.INFO: ==32736== Releasing lock... [2025-03-03 09:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:01:12] Production.ERROR: CronJobId end10 [2025-03-03 09:01:12] Production.INFO: ==32734== Releasing lock... [2025-03-03 09:01:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:01:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:01:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:01:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:01:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:01:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:01:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:01:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:01:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:01:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:01:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:01:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:01:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:01:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:01:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:01:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:01:15] Production.INFO: call_cost start [2025-03-03 09:01:15] Production.INFO: call_cost end [2025-03-03 09:01:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:01:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:01:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:01:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:01:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:01:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:01:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:01:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:01:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:01:15] Production.INFO: ==32730== Releasing lock... [2025-03-03 09:01:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:01:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:01:16] Production.INFO: count ==409 [2025-03-03 09:01:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597410', 'tblTempUsageDetail_20' ) start [2025-03-03 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597410', 'tblTempUsageDetail_20' ) end [2025-03-03 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597410', 'tblTempVendorCDR_20' ) start [2025-03-03 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597410', 'tblTempVendorCDR_20' ) end [2025-03-03 09:01:16] Production.INFO: ProcessCDR(1,14597410,1,1,2) [2025-03-03 09:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597410', 'tblTempUsageDetail_20' ) start [2025-03-03 09:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597410', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:01:24] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:01:24] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:01:24] Production.INFO: ==32738== Releasing lock... [2025-03-03 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:02:02] Production.INFO: ==357== Lock acquired, processing the job... [2025-03-03 14:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:02:02] Production.INFO: neon service started [2025-03-03 14:02:02] Production.INFO: neon service started [2025-03-03 14:02:02] Production.INFO: ==357== Releasing lock... [2025-03-03 14:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:02:02] Production.INFO: ==359== Lock acquired, processing the job... [2025-03-03 09:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:02:02] Production.INFO: ==361== Lock acquired, processing the job... [2025-03-03 14:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:02:03] Production.INFO: ==361== Releasing lock... [2025-03-03 14:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:02:03] Production.INFO: ==359== Releasing lock... [2025-03-03 09:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:02:04] Production.INFO: ==364== Lock acquired, processing the job... [2025-03-03 09:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:02:04] Production.INFO: ==366== Lock acquired, processing the job... [2025-03-03 09:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:02:04] Production.INFO: ==368== Lock acquired, processing the job... [2025-03-03 09:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:02:04] Production.INFO: ==370== Lock acquired, processing the job... [2025-03-03 09:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:02:04] Production.INFO: Account Balance Start. [2025-03-03 09:02:04] Production.INFO: CreateAllLog Start [2025-03-03 09:02:04] Production.INFO: 117 [2025-03-03 09:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:02:04] Production.INFO: ==374== Lock acquired, processing the job... [2025-03-03 09:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: ==366== Releasing lock... [2025-03-03 09:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:02:04] Production.INFO: count ==13 [2025-03-03 09:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:02:04] Production.INFO: count ==21 [2025-03-03 09:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597414') start [2025-03-03 09:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: ==372== Lock acquired, processing the job... [2025-03-03 09:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597414') end [2025-03-03 09:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:02:04] Production.INFO: 1 [2025-03-03 09:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:04] Production.INFO: ==374== Releasing lock... [2025-03-03 09:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:02:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.ERROR: done [2025-03-03 09:02:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.ERROR: done [2025-03-03 09:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:02:05] Production.INFO: Total Charge 0 [2025-03-03 09:02:05] Production.INFO: CreateAllLog End [2025-03-03 09:02:06] Production.INFO: Account Balance End. [2025-03-03 09:02:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:02:06] Production.INFO: ==370== Releasing lock... [2025-03-03 09:02:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:02:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:02:13] Production.ERROR: CronJobId end10 [2025-03-03 09:02:13] Production.INFO: ==368== Releasing lock... [2025-03-03 09:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:02:15] Production.INFO: call_cost start [2025-03-03 09:02:15] Production.INFO: call_cost end [2025-03-03 09:02:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:02:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:02:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:02:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:02:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:02:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:02:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:02:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:02:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:02:15] Production.INFO: ==364== Releasing lock... [2025-03-03 09:02:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:02:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:02:17] Production.INFO: count ==409 [2025-03-03 09:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597415', 'tblTempUsageDetail_20' ) start [2025-03-03 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597415', 'tblTempUsageDetail_20' ) end [2025-03-03 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597415', 'tblTempVendorCDR_20' ) start [2025-03-03 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597415', 'tblTempVendorCDR_20' ) end [2025-03-03 09:02:17] Production.INFO: ProcessCDR(1,14597415,1,1,2) [2025-03-03 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597415', 'tblTempUsageDetail_20' ) start [2025-03-03 09:02:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597415', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:02:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:02:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:02:26] Production.INFO: ==372== Releasing lock... [2025-03-03 09:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:02:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:03:01] Production.INFO: ==436== Lock acquired, processing the job... [2025-03-03 14:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:03:01] Production.INFO: neon service started [2025-03-03 14:03:01] Production.INFO: neon service started [2025-03-03 14:03:01] Production.INFO: ==436== Releasing lock... [2025-03-03 14:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:03:02] Production.INFO: ==438== Lock acquired, processing the job... [2025-03-03 09:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:03:02] Production.INFO: ==438== Releasing lock... [2025-03-03 09:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:03:02] Production.INFO: ==440== Lock acquired, processing the job... [2025-03-03 14:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:03:02] Production.INFO: ==440== Releasing lock... [2025-03-03 14:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:03:03] Production.INFO: ==446== Lock acquired, processing the job... [2025-03-03 09:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:03:03] Production.INFO: ==453== Lock acquired, processing the job... [2025-03-03 09:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:03:04] Production.INFO: ==444== Lock acquired, processing the job... [2025-03-03 09:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:03:04] Production.INFO: count ==13 [2025-03-03 09:03:04] Production.INFO: ==448== Lock acquired, processing the job... [2025-03-03 09:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:03:04] Production.INFO: ==442== Lock acquired, processing the job... [2025-03-03 09:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:03:04] Production.INFO: count ==21 [2025-03-03 09:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597416') start [2025-03-03 09:03:04] Production.INFO: ==451== Lock acquired, processing the job... [2025-03-03 09:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:03:04] Production.INFO: Account Balance Start. [2025-03-03 09:03:04] Production.INFO: CreateAllLog Start [2025-03-03 09:03:04] Production.INFO: 117 [2025-03-03 09:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597416') end [2025-03-03 09:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:03:04] Production.INFO: 1 [2025-03-03 09:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: ==453== Releasing lock... [2025-03-03 09:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: ==444== Releasing lock... [2025-03-03 09:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.ERROR: done [2025-03-03 09:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.ERROR: done [2025-03-03 09:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:03:05] Production.INFO: Total Charge 0 [2025-03-03 09:03:05] Production.INFO: CreateAllLog End [2025-03-03 09:03:05] Production.INFO: Account Balance End. [2025-03-03 09:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:03:05] Production.INFO: ==448== Releasing lock... [2025-03-03 09:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:03:12] Production.ERROR: CronJobId end10 [2025-03-03 09:03:12] Production.INFO: ==446== Releasing lock... [2025-03-03 09:03:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:03:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:03:16] Production.INFO: call_cost start [2025-03-03 09:03:16] Production.INFO: call_cost end [2025-03-03 09:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:03:16] Production.INFO: ==442== Releasing lock... [2025-03-03 09:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:03:17] Production.INFO: count ==409 [2025-03-03 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597420', 'tblTempUsageDetail_20' ) start [2025-03-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597420', 'tblTempUsageDetail_20' ) end [2025-03-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597420', 'tblTempVendorCDR_20' ) start [2025-03-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597420', 'tblTempVendorCDR_20' ) end [2025-03-03 09:03:17] Production.INFO: ProcessCDR(1,14597420,1,1,2) [2025-03-03 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597420', 'tblTempUsageDetail_20' ) start [2025-03-03 09:03:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597420', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:03:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:03:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:03:26] Production.INFO: ==451== Releasing lock... [2025-03-03 09:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:03:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:04:02] Production.INFO: ==516== Lock acquired, processing the job... [2025-03-03 14:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:04:02] Production.INFO: neon service started [2025-03-03 14:04:02] Production.INFO: neon service started [2025-03-03 14:04:02] Production.INFO: ==516== Releasing lock... [2025-03-03 14:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:04:02] Production.INFO: ==520== Lock acquired, processing the job... [2025-03-03 14:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:04:02] Production.INFO: ==520== Releasing lock... [2025-03-03 14:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:04:03] Production.INFO: ==518== Lock acquired, processing the job... [2025-03-03 09:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:04:03] Production.INFO: ==518== Releasing lock... [2025-03-03 09:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:04:04] Production.INFO: ==523== Lock acquired, processing the job... [2025-03-03 09:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:04:04] Production.INFO: ==525== Lock acquired, processing the job... [2025-03-03 09:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:04:04] Production.INFO: ==529== Lock acquired, processing the job... [2025-03-03 09:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:04:04] Production.INFO: Account Balance Start. [2025-03-03 09:04:04] Production.INFO: CreateAllLog Start [2025-03-03 09:04:04] Production.INFO: 117 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: ==525== Releasing lock... [2025-03-03 09:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: ==527== Lock acquired, processing the job... [2025-03-03 09:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:04:04] Production.INFO: ==533== Lock acquired, processing the job... [2025-03-03 09:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:04:04] Production.INFO: ==531== Lock acquired, processing the job... [2025-03-03 09:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:04] Production.INFO: count ==13 [2025-03-03 09:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:04:05] Production.INFO: count ==21 [2025-03-03 09:04:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597424') start [2025-03-03 09:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597424') end [2025-03-03 09:04:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:04:05] Production.INFO: 1 [2025-03-03 09:04:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.ERROR: done [2025-03-03 09:04:05] Production.INFO: ==533== Releasing lock... [2025-03-03 09:04:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:04:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:04:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.ERROR: done [2025-03-03 09:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:04:05] Production.INFO: Total Charge 0 [2025-03-03 09:04:05] Production.INFO: CreateAllLog End [2025-03-03 09:04:05] Production.INFO: Account Balance End. [2025-03-03 09:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:04:05] Production.INFO: ==529== Releasing lock... [2025-03-03 09:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:04:12] Production.ERROR: CronJobId end10 [2025-03-03 09:04:12] Production.INFO: ==527== Releasing lock... [2025-03-03 09:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:04:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:04:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:04:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:04:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:04:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:04:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:04:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:04:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:04:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:04:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:04:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:04:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:04:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:04:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:04:16] Production.INFO: call_cost start [2025-03-03 09:04:16] Production.INFO: call_cost end [2025-03-03 09:04:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:04:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:04:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:04:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:04:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:04:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:04:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:04:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:04:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:04:16] Production.INFO: ==523== Releasing lock... [2025-03-03 09:04:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:04:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:04:17] Production.INFO: count ==409 [2025-03-03 09:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597425', 'tblTempUsageDetail_20' ) start [2025-03-03 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597425', 'tblTempUsageDetail_20' ) end [2025-03-03 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597425', 'tblTempVendorCDR_20' ) start [2025-03-03 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597425', 'tblTempVendorCDR_20' ) end [2025-03-03 09:04:17] Production.INFO: ProcessCDR(1,14597425,1,1,2) [2025-03-03 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597425', 'tblTempUsageDetail_20' ) start [2025-03-03 09:04:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597425', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:04:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:04:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:04:26] Production.INFO: ==531== Releasing lock... [2025-03-03 09:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:04:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:05:01] Production.INFO: ==592== Lock acquired, processing the job... [2025-03-03 14:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:05:01] Production.INFO: neon service started [2025-03-03 14:05:01] Production.INFO: neon service started [2025-03-03 14:05:01] Production.INFO: ==592== Releasing lock... [2025-03-03 14:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:05:02] Production.INFO: ==595== Lock acquired, processing the job... [2025-03-03 09:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:05:02] Production.INFO: ==595== Releasing lock... [2025-03-03 09:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:05:02] Production.INFO: ==597== Lock acquired, processing the job... [2025-03-03 14:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:05:02] Production.INFO: ==597== Releasing lock... [2025-03-03 14:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:05:03] Production.INFO: ==610== Lock acquired, processing the job... [2025-03-03 09:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:05:03] Production.INFO: ==608== Lock acquired, processing the job... [2025-03-03 09:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:05:04] Production.INFO: Account Balance Start. [2025-03-03 09:05:04] Production.INFO: CreateAllLog Start [2025-03-03 09:05:04] Production.INFO: 117 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:05:04] Production.INFO: ==600== Lock acquired, processing the job... [2025-03-03 09:05:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:05:04] Production.INFO: ==604== Lock acquired, processing the job... [2025-03-03 09:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: ==602== Lock acquired, processing the job... [2025-03-03 09:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:05:04] Production.INFO: ==612== Lock acquired, processing the job... [2025-03-03 09:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.ERROR: done [2025-03-03 09:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:05:04] Production.INFO: count ==13 [2025-03-03 09:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:05:04] Production.INFO: count ==21 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597427') start [2025-03-03 09:05:04] Production.ERROR: done [2025-03-03 09:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597427') end [2025-03-03 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:05:04] Production.INFO: 1 [2025-03-03 09:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: ==612== Releasing lock... [2025-03-03 09:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:05:04] Production.INFO: ==602== Releasing lock... [2025-03-03 09:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:05:05] Production.INFO: Total Charge 0 [2025-03-03 09:05:05] Production.INFO: CreateAllLog End [2025-03-03 09:05:05] Production.INFO: Account Balance End. [2025-03-03 09:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:05:05] Production.INFO: ==608== Releasing lock... [2025-03-03 09:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:05:12] Production.ERROR: CronJobId end10 [2025-03-03 09:05:12] Production.INFO: ==604== Releasing lock... [2025-03-03 09:05:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:05:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:05:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:05:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:05:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:05:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:05:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:05:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:05:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:05:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:05:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:05:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:05:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:05:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:05:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:05:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:05:16] Production.INFO: call_cost start [2025-03-03 09:05:16] Production.INFO: call_cost end [2025-03-03 09:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:05:16] Production.INFO: ==600== Releasing lock... [2025-03-03 09:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:05:16] Production.INFO: count ==409 [2025-03-03 09:05:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597430', 'tblTempUsageDetail_20' ) start [2025-03-03 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597430', 'tblTempUsageDetail_20' ) end [2025-03-03 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597430', 'tblTempVendorCDR_20' ) start [2025-03-03 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597430', 'tblTempVendorCDR_20' ) end [2025-03-03 09:05:16] Production.INFO: ProcessCDR(1,14597430,1,1,2) [2025-03-03 09:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597430', 'tblTempUsageDetail_20' ) start [2025-03-03 09:05:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597430', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:05:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:05:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:05:26] Production.INFO: ==610== Releasing lock... [2025-03-03 09:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:05:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:06:01] Production.INFO: ==699== Lock acquired, processing the job... [2025-03-03 14:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:06:01] Production.INFO: neon service started [2025-03-03 14:06:01] Production.INFO: neon service started [2025-03-03 14:06:01] Production.INFO: ==699== Releasing lock... [2025-03-03 14:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:06:01] Production.INFO: ==705== Lock acquired, processing the job... [2025-03-03 14:06:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:06:01] Production.INFO: ==705== Releasing lock... [2025-03-03 14:06:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:06:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:06:02] Production.INFO: ==701== Lock acquired, processing the job... [2025-03-03 09:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:06:02] Production.INFO: ==701== Releasing lock... [2025-03-03 09:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:06:03] Production.INFO: ==711== Lock acquired, processing the job... [2025-03-03 09:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:06:03] Production.INFO: ==713== Lock acquired, processing the job... [2025-03-03 09:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:06:03] Production.INFO: ==709== Lock acquired, processing the job... [2025-03-03 09:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:06:03] Production.INFO: ==715== Lock acquired, processing the job... [2025-03-03 09:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:06:03] Production.INFO: ==719== Lock acquired, processing the job... [2025-03-03 09:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:06:03] Production.INFO: ==717== Lock acquired, processing the job... [2025-03-03 09:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:06:03] Production.INFO: Account Balance Start. [2025-03-03 09:06:03] Production.INFO: CreateAllLog Start [2025-03-03 09:06:03] Production.INFO: 117 [2025-03-03 09:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:06:03] Production.INFO: count ==13 [2025-03-03 09:06:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:06:03] Production.INFO: count ==21 [2025-03-03 09:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597434') start [2025-03-03 09:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597434') end [2025-03-03 09:06:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:06:03] Production.INFO: 1 [2025-03-03 09:06:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: ==719== Releasing lock... [2025-03-03 09:06:04] Production.INFO: ==711== Releasing lock... [2025-03-03 09:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.ERROR: done [2025-03-03 09:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.ERROR: done [2025-03-03 09:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:06:05] Production.INFO: Total Charge 0 [2025-03-03 09:06:05] Production.INFO: CreateAllLog End [2025-03-03 09:06:05] Production.INFO: Account Balance End. [2025-03-03 09:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:06:05] Production.INFO: ==715== Releasing lock... [2025-03-03 09:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:06:11] Production.ERROR: CronJobId end10 [2025-03-03 09:06:11] Production.INFO: ==713== Releasing lock... [2025-03-03 09:06:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:06:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:06:15] Production.INFO: call_cost start [2025-03-03 09:06:15] Production.INFO: call_cost end [2025-03-03 09:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:06:15] Production.INFO: ==709== Releasing lock... [2025-03-03 09:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:06:16] Production.INFO: count ==409 [2025-03-03 09:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597435', 'tblTempUsageDetail_20' ) start [2025-03-03 09:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597435', 'tblTempUsageDetail_20' ) end [2025-03-03 09:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597435', 'tblTempVendorCDR_20' ) start [2025-03-03 09:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597435', 'tblTempVendorCDR_20' ) end [2025-03-03 09:06:16] Production.INFO: ProcessCDR(1,14597435,1,1,2) [2025-03-03 09:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597435', 'tblTempUsageDetail_20' ) start [2025-03-03 09:06:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597435', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:06:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:06:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:06:25] Production.INFO: ==717== Releasing lock... [2025-03-03 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:06:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:07:01] Production.INFO: ==831== Lock acquired, processing the job... [2025-03-03 14:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:07:01] Production.INFO: neon service started [2025-03-03 14:07:02] Production.INFO: neon service started [2025-03-03 14:07:02] Production.INFO: ==831== Releasing lock... [2025-03-03 14:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:07:02] Production.INFO: ==833== Lock acquired, processing the job... [2025-03-03 09:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:07:02] Production.INFO: ==833== Releasing lock... [2025-03-03 09:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:07:02] Production.INFO: ==835== Lock acquired, processing the job... [2025-03-03 14:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:07:02] Production.INFO: ==835== Releasing lock... [2025-03-03 14:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:07:03] Production.INFO: ==840== Lock acquired, processing the job... [2025-03-03 09:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:07:03] Production.INFO: ==840== Releasing lock... [2025-03-03 09:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:07:03] Production.INFO: ==838== Lock acquired, processing the job... [2025-03-03 09:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:07:04] Production.INFO: ==848== Lock acquired, processing the job... [2025-03-03 09:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:07:04] Production.INFO: ==842== Lock acquired, processing the job... [2025-03-03 09:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:07:04] Production.INFO: ==844== Lock acquired, processing the job... [2025-03-03 09:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:07:04] Production.INFO: ==846== Lock acquired, processing the job... [2025-03-03 09:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:07:04] Production.INFO: count ==13 [2025-03-03 09:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:07:04] Production.INFO: count ==21 [2025-03-03 09:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597438') start [2025-03-03 09:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:07:04] Production.INFO: Account Balance Start. [2025-03-03 09:07:04] Production.INFO: CreateAllLog Start [2025-03-03 09:07:04] Production.INFO: 117 [2025-03-03 09:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597438') end [2025-03-03 09:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:07:04] Production.INFO: 1 [2025-03-03 09:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.INFO: ==848== Releasing lock... [2025-03-03 09:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.ERROR: done [2025-03-03 09:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.ERROR: done [2025-03-03 09:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:07:05] Production.INFO: Total Charge 0 [2025-03-03 09:07:05] Production.INFO: CreateAllLog End [2025-03-03 09:07:05] Production.INFO: Account Balance End. [2025-03-03 09:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:07:05] Production.INFO: ==844== Releasing lock... [2025-03-03 09:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:07:12] Production.ERROR: CronJobId end10 [2025-03-03 09:07:12] Production.INFO: ==842== Releasing lock... [2025-03-03 09:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:07:15] Production.INFO: call_cost start [2025-03-03 09:07:15] Production.INFO: call_cost end [2025-03-03 09:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:07:15] Production.INFO: ==838== Releasing lock... [2025-03-03 09:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:07:17] Production.INFO: count ==409 [2025-03-03 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597440', 'tblTempUsageDetail_20' ) start [2025-03-03 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597440', 'tblTempUsageDetail_20' ) end [2025-03-03 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597440', 'tblTempVendorCDR_20' ) start [2025-03-03 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597440', 'tblTempVendorCDR_20' ) end [2025-03-03 09:07:17] Production.INFO: ProcessCDR(1,14597440,1,1,2) [2025-03-03 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597440', 'tblTempUsageDetail_20' ) start [2025-03-03 09:07:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597440', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:07:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:07:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:07:25] Production.INFO: ==846== Releasing lock... [2025-03-03 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:07:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:08:01] Production.INFO: ==909== Lock acquired, processing the job... [2025-03-03 14:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:08:01] Production.INFO: neon service started [2025-03-03 14:08:01] Production.INFO: neon service started [2025-03-03 14:08:01] Production.INFO: ==909== Releasing lock... [2025-03-03 14:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:08:01] Production.INFO: ==911== Lock acquired, processing the job... [2025-03-03 09:08:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:08:02] Production.INFO: ==911== Releasing lock... [2025-03-03 09:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:08:02] Production.INFO: ==913== Lock acquired, processing the job... [2025-03-03 14:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:08:02] Production.INFO: ==913== Releasing lock... [2025-03-03 14:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:08:03] Production.INFO: ==920== Lock acquired, processing the job... [2025-03-03 09:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:08:03] Production.INFO: ==926== Lock acquired, processing the job... [2025-03-03 09:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:08:03] Production.INFO: ==916== Lock acquired, processing the job... [2025-03-03 09:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:08:03] Production.INFO: ==918== Lock acquired, processing the job... [2025-03-03 09:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:08:03] Production.INFO: count ==13 [2025-03-03 09:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:08:03] Production.INFO: count ==21 [2025-03-03 09:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597441') start [2025-03-03 09:08:03] Production.INFO: ==922== Lock acquired, processing the job... [2025-03-03 09:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:08:03] Production.INFO: ==924== Lock acquired, processing the job... [2025-03-03 09:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597441') end [2025-03-03 09:08:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:08:03] Production.INFO: 1 [2025-03-03 09:08:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:08:03] Production.INFO: ==926== Releasing lock... [2025-03-03 09:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:08:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:08:03] Production.INFO: Account Balance Start. [2025-03-03 09:08:03] Production.INFO: CreateAllLog Start [2025-03-03 09:08:03] Production.INFO: 117 [2025-03-03 09:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:03] Production.INFO: ==918== Releasing lock... [2025-03-03 09:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:08:03] Production.INFO: Date 2025-02-11 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.ERROR: done [2025-03-03 09:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.ERROR: done [2025-03-03 09:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:08:04] Production.INFO: Total Charge 0 [2025-03-03 09:08:04] Production.INFO: CreateAllLog End [2025-03-03 09:08:04] Production.INFO: Account Balance End. [2025-03-03 09:08:04] Production.ERROR: CronJobId end 12 [2025-03-03 09:08:04] Production.INFO: ==922== Releasing lock... [2025-03-03 09:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:08:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:08:11] Production.ERROR: CronJobId end10 [2025-03-03 09:08:11] Production.INFO: ==920== Releasing lock... [2025-03-03 09:08:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:08:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:08:16] Production.INFO: call_cost start [2025-03-03 09:08:16] Production.INFO: call_cost end [2025-03-03 09:08:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:08:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:08:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:08:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:08:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:08:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:08:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:08:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:08:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:08:16] Production.INFO: ==916== Releasing lock... [2025-03-03 09:08:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:08:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:08:16] Production.INFO: count ==409 [2025-03-03 09:08:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597445', 'tblTempUsageDetail_20' ) start [2025-03-03 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597445', 'tblTempUsageDetail_20' ) end [2025-03-03 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597445', 'tblTempVendorCDR_20' ) start [2025-03-03 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597445', 'tblTempVendorCDR_20' ) end [2025-03-03 09:08:16] Production.INFO: ProcessCDR(1,14597445,1,1,2) [2025-03-03 09:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597445', 'tblTempUsageDetail_20' ) start [2025-03-03 09:08:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597445', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:08:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:08:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:08:26] Production.INFO: ==924== Releasing lock... [2025-03-03 09:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:08:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:09:02] Production.INFO: ==989== Lock acquired, processing the job... [2025-03-03 14:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:09:02] Production.INFO: neon service started [2025-03-03 14:09:02] Production.INFO: neon service started [2025-03-03 14:09:02] Production.INFO: ==989== Releasing lock... [2025-03-03 14:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:09:02] Production.INFO: ==991== Lock acquired, processing the job... [2025-03-03 09:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:09:02] Production.INFO: ==991== Releasing lock... [2025-03-03 09:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:09:02] Production.INFO: ==993== Lock acquired, processing the job... [2025-03-03 14:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:09:03] Production.INFO: ==993== Releasing lock... [2025-03-03 14:09:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:09:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:09:03] Production.INFO: ==997== Lock acquired, processing the job... [2025-03-03 09:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:09:03] Production.INFO: ==1003== Lock acquired, processing the job... [2025-03-03 09:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:09:04] Production.INFO: ==995== Lock acquired, processing the job... [2025-03-03 09:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:09:04] Production.INFO: ==999== Lock acquired, processing the job... [2025-03-03 09:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:09:04] Production.ERROR: done [2025-03-03 09:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:09:04] Production.INFO: ==1005== Lock acquired, processing the job... [2025-03-03 09:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:09:04] Production.INFO: ==1001== Lock acquired, processing the job... [2025-03-03 09:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:09:04] Production.INFO: Account Balance Start. [2025-03-03 09:09:04] Production.INFO: CreateAllLog Start [2025-03-03 09:09:04] Production.INFO: 117 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: count ==13 [2025-03-03 09:09:04] Production.INFO: ==997== Releasing lock... [2025-03-03 09:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:09:04] Production.INFO: count ==21 [2025-03-03 09:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597449') start [2025-03-03 09:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:09:04] Production.ERROR: done [2025-03-03 09:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597449') end [2025-03-03 09:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:09:04] Production.INFO: 1 [2025-03-03 09:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: ==1005== Releasing lock... [2025-03-03 09:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:09:05] Production.INFO: Total Charge 0 [2025-03-03 09:09:05] Production.INFO: CreateAllLog End [2025-03-03 09:09:05] Production.INFO: Account Balance End. [2025-03-03 09:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:09:05] Production.INFO: ==1001== Releasing lock... [2025-03-03 09:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:09:13] Production.ERROR: CronJobId end10 [2025-03-03 09:09:13] Production.INFO: ==999== Releasing lock... [2025-03-03 09:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:09:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:09:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:09:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:09:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:09:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:09:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:09:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:09:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:09:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:09:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:09:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:09:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:09:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:09:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:09:15] Production.INFO: call_cost start [2025-03-03 09:09:15] Production.INFO: call_cost end [2025-03-03 09:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:09:15] Production.INFO: ==995== Releasing lock... [2025-03-03 09:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:09:16] Production.INFO: count ==409 [2025-03-03 09:09:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597450', 'tblTempUsageDetail_20' ) start [2025-03-03 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597450', 'tblTempUsageDetail_20' ) end [2025-03-03 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597450', 'tblTempVendorCDR_20' ) start [2025-03-03 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597450', 'tblTempVendorCDR_20' ) end [2025-03-03 09:09:16] Production.INFO: ProcessCDR(1,14597450,1,1,2) [2025-03-03 09:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597450', 'tblTempUsageDetail_20' ) start [2025-03-03 09:09:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597450', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:09:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:09:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:09:25] Production.INFO: ==1003== Releasing lock... [2025-03-03 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:09:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:10:01] Production.INFO: ==1069== Lock acquired, processing the job... [2025-03-03 14:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:10:01] Production.INFO: neon service started [2025-03-03 14:10:01] Production.INFO: neon service started [2025-03-03 14:10:01] Production.INFO: ==1069== Releasing lock... [2025-03-03 14:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:10:01] Production.INFO: ==1073== Lock acquired, processing the job... [2025-03-03 14:10:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:10:01] Production.INFO: ==1073== Releasing lock... [2025-03-03 14:10:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:10:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:10:02] Production.INFO: ==1071== Lock acquired, processing the job... [2025-03-03 09:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:10:02] Production.INFO: ==1071== Releasing lock... [2025-03-03 09:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:10:03] Production.INFO: ==1078== Lock acquired, processing the job... [2025-03-03 09:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:10:03] Production.INFO: ==1086== Lock acquired, processing the job... [2025-03-03 09:10:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:10:03] Production.INFO: ==1088== Lock acquired, processing the job... [2025-03-03 09:10:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 09:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:10:04] Production.INFO: ==1076== Lock acquired, processing the job... [2025-03-03 09:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 09:10:04] Production.INFO: ==1080== Lock acquired, processing the job... [2025-03-03 09:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:10:04] Production.INFO: ==1082== Lock acquired, processing the job... [2025-03-03 09:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:10:04] Production.INFO: ==1084== Lock acquired, processing the job... [2025-03-03 09:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:10:04] Production.INFO: ==1090== Lock acquired, processing the job... [2025-03-03 09:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:10:04] Production.ERROR: CronJob PID - 1078 [2025-03-03 09:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 09:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 09:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:10:00 [2025-03-03 09:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:10:04] Production.ERROR: CronJob PID - 1080 [2025-03-03 09:10:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 09:10:04] Production.ERROR: CronJob ID - 7 [2025-03-03 09:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:10:00 [2025-03-03 09:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:10:04] Production.ERROR: CronJob PID - 1082 [2025-03-03 09:10:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 09:10:04] Production.ERROR: CronJob ID - 10 [2025-03-03 09:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:10:00 [2025-03-03 09:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:10:04] Production.ERROR: CronJob PID - 1084 [2025-03-03 09:10:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 09:10:04] Production.ERROR: CronJob ID - 12 [2025-03-03 09:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:10:00 [2025-03-03 09:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:10:04] Production.ERROR: CronJob PID - 1086 [2025-03-03 09:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 09:10:04] Production.ERROR: CronJob ID - 16 [2025-03-03 09:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:10:00 [2025-03-03 09:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:10:04] Production.ERROR: CronJob PID - 1088 [2025-03-03 09:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 09:10:04] Production.ERROR: CronJob ID - 17 [2025-03-03 09:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:10:00 [2025-03-03 09:10:04] Production.INFO: Account Balance Start. [2025-03-03 09:10:04] Production.INFO: CreateAllLog Start [2025-03-03 09:10:04] Production.INFO: 117 [2025-03-03 09:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.ERROR: done [2025-03-03 09:10:04] Production.INFO: count ==13 [2025-03-03 09:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:10:04] Production.INFO: count ==21 [2025-03-03 09:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597454') start [2025-03-03 09:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 09:10:04] Production.INFO: ==1076== Releasing lock... [2025-03-03 09:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 09:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 09:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 09:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597455', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 09:10:04] Production.ERROR: done [2025-03-03 09:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597454') end [2025-03-03 09:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:10:04] Production.INFO: 1 [2025-03-03 09:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.INFO: ==1090== Releasing lock... [2025-03-03 09:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.ERROR: done [2025-03-03 09:10:04] Production.INFO: ==1080== Releasing lock... [2025-03-03 09:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:10:05] Production.INFO: Total Charge 0 [2025-03-03 09:10:05] Production.INFO: CreateAllLog End [2025-03-03 09:10:05] Production.INFO: Account Balance End. [2025-03-03 09:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:10:05] Production.INFO: ==1084== Releasing lock... [2025-03-03 09:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597455', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 09:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 09:10:09] Production.INFO: ProcessCDR(1,14597455,1,1,2) [2025-03-03 09:10:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597455,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:10:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597455,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:10:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 09:10:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 09:10:10] Production.INFO: ==1088== Releasing lock... [2025-03-03 09:10:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 09:10:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:10:13] Production.ERROR: CronJobId end10 [2025-03-03 09:10:13] Production.INFO: ==1082== Releasing lock... [2025-03-03 09:10:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:10:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:10:17] Production.INFO: count ==409 [2025-03-03 09:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597456', 'tblTempUsageDetail_20' ) start [2025-03-03 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597456', 'tblTempUsageDetail_20' ) end [2025-03-03 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597456', 'tblTempVendorCDR_20' ) start [2025-03-03 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597456', 'tblTempVendorCDR_20' ) end [2025-03-03 09:10:17] Production.INFO: ProcessCDR(1,14597456,1,1,2) [2025-03-03 09:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:10:18] Production.INFO: call_cost start [2025-03-03 09:10:18] Production.INFO: call_cost end [2025-03-03 09:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:10:18] Production.INFO: ==1078== Releasing lock... [2025-03-03 09:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597456', 'tblTempUsageDetail_20' ) start [2025-03-03 09:10:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597456', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:10:25] Production.INFO: ==1086== Releasing lock... [2025-03-03 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:10:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:11:01] Production.INFO: ==1150== Lock acquired, processing the job... [2025-03-03 14:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:11:02] Production.INFO: neon service started [2025-03-03 14:11:02] Production.INFO: neon service started [2025-03-03 14:11:02] Production.INFO: ==1150== Releasing lock... [2025-03-03 14:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:11:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:11:02] Production.INFO: ==1154== Lock acquired, processing the job... [2025-03-03 14:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:11:02] Production.INFO: ==1152== Lock acquired, processing the job... [2025-03-03 09:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:11:02] Production.INFO: ==1154== Releasing lock... [2025-03-03 14:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:11:03] Production.INFO: ==1152== Releasing lock... [2025-03-03 09:11:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:11:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:11:04] Production.INFO: ==1167== Lock acquired, processing the job... [2025-03-03 09:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:11:04] Production.INFO: ==1169== Lock acquired, processing the job... [2025-03-03 09:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:11:04] Production.INFO: ==1157== Lock acquired, processing the job... [2025-03-03 09:11:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:11:04] Production.INFO: count ==13 [2025-03-03 09:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:11:04] Production.INFO: count ==21 [2025-03-03 09:11:04] Production.INFO: ==1161== Lock acquired, processing the job... [2025-03-03 09:11:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:11:04] Production.INFO: ==1163== Lock acquired, processing the job... [2025-03-03 09:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:11:04] Production.INFO: ==1159== Lock acquired, processing the job... [2025-03-03 09:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597457') start [2025-03-03 09:11:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:11:04] Production.ERROR: done [2025-03-03 09:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:11:04] Production.INFO: Account Balance Start. [2025-03-03 09:11:04] Production.INFO: CreateAllLog Start [2025-03-03 09:11:04] Production.INFO: 117 [2025-03-03 09:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597457') end [2025-03-03 09:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:11:04] Production.INFO: 1 [2025-03-03 09:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.INFO: ==1169== Releasing lock... [2025-03-03 09:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:11:04] Production.ERROR: done [2025-03-03 09:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:04] Production.INFO: ==1159== Releasing lock... [2025-03-03 09:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:11:05] Production.INFO: Total Charge 0 [2025-03-03 09:11:05] Production.INFO: CreateAllLog End [2025-03-03 09:11:05] Production.INFO: Account Balance End. [2025-03-03 09:11:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:11:06] Production.INFO: ==1163== Releasing lock... [2025-03-03 09:11:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:11:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:11:13] Production.ERROR: CronJobId end10 [2025-03-03 09:11:13] Production.INFO: ==1161== Releasing lock... [2025-03-03 09:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:11:16] Production.INFO: call_cost start [2025-03-03 09:11:16] Production.INFO: call_cost end [2025-03-03 09:11:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:11:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:11:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:11:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:11:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:11:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:11:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:11:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:11:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:11:16] Production.INFO: ==1157== Releasing lock... [2025-03-03 09:11:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:11:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:11:17] Production.INFO: count ==409 [2025-03-03 09:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597461', 'tblTempUsageDetail_20' ) start [2025-03-03 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597461', 'tblTempUsageDetail_20' ) end [2025-03-03 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597461', 'tblTempVendorCDR_20' ) start [2025-03-03 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597461', 'tblTempVendorCDR_20' ) end [2025-03-03 09:11:17] Production.INFO: ProcessCDR(1,14597461,1,1,2) [2025-03-03 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597461', 'tblTempUsageDetail_20' ) start [2025-03-03 09:11:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597461', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:11:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:11:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:11:26] Production.INFO: ==1167== Releasing lock... [2025-03-03 09:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:11:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:12:01] Production.INFO: ==1233== Lock acquired, processing the job... [2025-03-03 14:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:12:01] Production.INFO: neon service started [2025-03-03 14:12:01] Production.INFO: neon service started [2025-03-03 14:12:01] Production.INFO: ==1233== Releasing lock... [2025-03-03 14:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:12:01] Production.INFO: ==1239== Lock acquired, processing the job... [2025-03-03 09:12:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:12:02] Production.INFO: ==1243== Lock acquired, processing the job... [2025-03-03 14:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:12:02] Production.INFO: ==1239== Releasing lock... [2025-03-03 09:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:12:02] Production.INFO: ==1243== Releasing lock... [2025-03-03 14:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:12:03] Production.INFO: ==1256== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:12:03] Production.INFO: ==1248== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:12:03] Production.INFO: Account Balance Start. [2025-03-03 09:12:03] Production.INFO: CreateAllLog Start [2025-03-03 09:12:03] Production.INFO: 117 [2025-03-03 09:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:12:03] Production.INFO: ==1260== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:12:03] Production.INFO: ==1246== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: ==1254== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:12:03] Production.INFO: ==1262== Lock acquired, processing the job... [2025-03-03 09:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:12:03] Production.INFO: Date 2025-02-11 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:12:03] Production.INFO: Date 2025-02-12 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: Date 2025-02-13 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: Date 2025-02-14 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: ==1248== Releasing lock... [2025-03-03 09:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:12:03] Production.INFO: Date 2025-02-15 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: Date 2025-02-16 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: Date 2025-02-17 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:12:03] Production.INFO: Date 2025-02-18 [2025-03-03 09:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: count ==13 [2025-03-03 09:12:04] Production.ERROR: done [2025-03-03 09:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:12:04] Production.INFO: count ==21 [2025-03-03 09:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597465') start [2025-03-03 09:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597465') end [2025-03-03 09:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:12:04] Production.INFO: 1 [2025-03-03 09:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:12:04] Production.ERROR: done [2025-03-03 09:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: ==1262== Releasing lock... [2025-03-03 09:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:12:04] Production.INFO: Total Charge 0 [2025-03-03 09:12:04] Production.INFO: CreateAllLog End [2025-03-03 09:12:04] Production.INFO: Account Balance End. [2025-03-03 09:12:04] Production.ERROR: CronJobId end 12 [2025-03-03 09:12:04] Production.INFO: ==1256== Releasing lock... [2025-03-03 09:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:12:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:12:12] Production.ERROR: CronJobId end10 [2025-03-03 09:12:12] Production.INFO: ==1254== Releasing lock... [2025-03-03 09:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:12:15] Production.INFO: call_cost start [2025-03-03 09:12:15] Production.INFO: call_cost end [2025-03-03 09:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:12:15] Production.INFO: ==1246== Releasing lock... [2025-03-03 09:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:12:16] Production.INFO: count ==409 [2025-03-03 09:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597466', 'tblTempUsageDetail_20' ) start [2025-03-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597466', 'tblTempUsageDetail_20' ) end [2025-03-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597466', 'tblTempVendorCDR_20' ) start [2025-03-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597466', 'tblTempVendorCDR_20' ) end [2025-03-03 09:12:17] Production.INFO: ProcessCDR(1,14597466,1,1,2) [2025-03-03 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597466', 'tblTempUsageDetail_20' ) start [2025-03-03 09:12:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597466', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:12:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:12:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:12:25] Production.INFO: ==1260== Releasing lock... [2025-03-03 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:12:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:13:02] Production.INFO: ==1320== Lock acquired, processing the job... [2025-03-03 14:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:13:02] Production.INFO: neon service started [2025-03-03 14:13:02] Production.INFO: neon service started [2025-03-03 14:13:02] Production.INFO: ==1320== Releasing lock... [2025-03-03 14:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:13:02] Production.INFO: ==1324== Lock acquired, processing the job... [2025-03-03 14:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:13:02] Production.INFO: ==1324== Releasing lock... [2025-03-03 14:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:13:02] Production.INFO: ==1322== Lock acquired, processing the job... [2025-03-03 09:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:13:02] Production.INFO: ==1322== Releasing lock... [2025-03-03 09:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:13:03] Production.INFO: ==1327== Lock acquired, processing the job... [2025-03-03 09:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:13:03] Production.INFO: ==1329== Lock acquired, processing the job... [2025-03-03 09:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:13:04] Production.INFO: ==1335== Lock acquired, processing the job... [2025-03-03 09:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:13:04] Production.INFO: ==1331== Lock acquired, processing the job... [2025-03-03 09:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:13:04] Production.INFO: ==1329== Releasing lock... [2025-03-03 09:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:13:04] Production.INFO: ==1333== Lock acquired, processing the job... [2025-03-03 09:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:13:04] Production.INFO: ==1337== Lock acquired, processing the job... [2025-03-03 09:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:13:04] Production.ERROR: done [2025-03-03 09:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:13:04] Production.INFO: Account Balance Start. [2025-03-03 09:13:04] Production.INFO: CreateAllLog Start [2025-03-03 09:13:04] Production.INFO: 117 [2025-03-03 09:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:04] Production.INFO: count ==13 [2025-03-03 09:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:13:04] Production.INFO: count ==21 [2025-03-03 09:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597469') start [2025-03-03 09:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597469') end [2025-03-03 09:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:13:04] Production.INFO: 1 [2025-03-03 09:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:13:04] Production.ERROR: done [2025-03-03 09:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:04] Production.INFO: ==1337== Releasing lock... [2025-03-03 09:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:13:05] Production.INFO: Total Charge 0 [2025-03-03 09:13:05] Production.INFO: CreateAllLog End [2025-03-03 09:13:05] Production.INFO: Account Balance End. [2025-03-03 09:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:13:05] Production.INFO: ==1333== Releasing lock... [2025-03-03 09:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:13:13] Production.ERROR: CronJobId end10 [2025-03-03 09:13:13] Production.INFO: ==1331== Releasing lock... [2025-03-03 09:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:13:15] Production.INFO: call_cost start [2025-03-03 09:13:15] Production.INFO: call_cost end [2025-03-03 09:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:13:15] Production.INFO: ==1327== Releasing lock... [2025-03-03 09:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:13:17] Production.INFO: count ==409 [2025-03-03 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597471', 'tblTempUsageDetail_20' ) start [2025-03-03 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597471', 'tblTempUsageDetail_20' ) end [2025-03-03 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597471', 'tblTempVendorCDR_20' ) start [2025-03-03 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597471', 'tblTempVendorCDR_20' ) end [2025-03-03 09:13:17] Production.INFO: ProcessCDR(1,14597471,1,1,2) [2025-03-03 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597471', 'tblTempUsageDetail_20' ) start [2025-03-03 09:13:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597471', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:13:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:13:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:13:26] Production.INFO: ==1335== Releasing lock... [2025-03-03 09:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:13:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:14:01] Production.INFO: ==1400== Lock acquired, processing the job... [2025-03-03 14:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:14:01] Production.INFO: neon service started [2025-03-03 14:14:01] Production.INFO: neon service started [2025-03-03 14:14:01] Production.INFO: ==1400== Releasing lock... [2025-03-03 14:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:14:01] Production.INFO: ==1402== Lock acquired, processing the job... [2025-03-03 09:14:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:14:02] Production.INFO: ==1402== Releasing lock... [2025-03-03 09:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:14:02] Production.INFO: ==1404== Lock acquired, processing the job... [2025-03-03 14:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:14:02] Production.INFO: ==1404== Releasing lock... [2025-03-03 14:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:14:03] Production.INFO: ==1406== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:14:03] Production.INFO: ==1408== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:14:03] Production.INFO: ==1413== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:14:03] Production.INFO: Account Balance Start. [2025-03-03 09:14:03] Production.INFO: CreateAllLog Start [2025-03-03 09:14:03] Production.INFO: 117 [2025-03-03 09:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:14:03] Production.INFO: ==1410== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:03] Production.INFO: ==1408== Releasing lock... [2025-03-03 09:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:14:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:14:03] Production.INFO: Date 2025-02-11 [2025-03-03 09:14:03] Production.INFO: ==1415== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:14:03] Production.INFO: ==1417== Lock acquired, processing the job... [2025-03-03 09:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: count ==13 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: count ==21 [2025-03-03 09:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597475') start [2025-03-03 09:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.ERROR: done [2025-03-03 09:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597475') end [2025-03-03 09:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:14:04] Production.INFO: 1 [2025-03-03 09:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: ==1417== Releasing lock... [2025-03-03 09:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:14:04] Production.ERROR: done [2025-03-03 09:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:14:05] Production.INFO: Total Charge 0 [2025-03-03 09:14:05] Production.INFO: CreateAllLog End [2025-03-03 09:14:05] Production.INFO: Account Balance End. [2025-03-03 09:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:14:05] Production.INFO: ==1413== Releasing lock... [2025-03-03 09:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:14:12] Production.ERROR: CronJobId end10 [2025-03-03 09:14:12] Production.INFO: ==1410== Releasing lock... [2025-03-03 09:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:14:15] Production.INFO: call_cost start [2025-03-03 09:14:15] Production.INFO: call_cost end [2025-03-03 09:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:14:15] Production.INFO: ==1406== Releasing lock... [2025-03-03 09:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:14:16] Production.INFO: count ==409 [2025-03-03 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597476', 'tblTempUsageDetail_20' ) start [2025-03-03 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597476', 'tblTempUsageDetail_20' ) end [2025-03-03 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597476', 'tblTempVendorCDR_20' ) start [2025-03-03 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597476', 'tblTempVendorCDR_20' ) end [2025-03-03 09:14:17] Production.INFO: ProcessCDR(1,14597476,1,1,2) [2025-03-03 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597476', 'tblTempUsageDetail_20' ) start [2025-03-03 09:14:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597476', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:14:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:14:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:14:25] Production.INFO: ==1415== Releasing lock... [2025-03-03 09:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:14:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:15:02] Production.INFO: ==1475== Lock acquired, processing the job... [2025-03-03 14:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:15:02] Production.INFO: neon service started [2025-03-03 14:15:02] Production.INFO: neon service started [2025-03-03 14:15:02] Production.INFO: ==1475== Releasing lock... [2025-03-03 14:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:15:02] Production.INFO: ==1479== Lock acquired, processing the job... [2025-03-03 09:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:15:02] Production.INFO: ==1481== Lock acquired, processing the job... [2025-03-03 14:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:15:02] Production.INFO: ==1481== Releasing lock... [2025-03-03 14:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:15:03] Production.INFO: ==1479== Releasing lock... [2025-03-03 09:15:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:15:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:15:04] Production.INFO: ==1489== Lock acquired, processing the job... [2025-03-03 09:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:15:04] Production.INFO: Account Balance Start. [2025-03-03 09:15:04] Production.INFO: CreateAllLog Start [2025-03-03 09:15:04] Production.INFO: 117 [2025-03-03 09:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: ==1493== Lock acquired, processing the job... [2025-03-03 09:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: ==1483== Lock acquired, processing the job... [2025-03-03 09:15:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:15:04] Production.INFO: count ==13 [2025-03-03 09:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: count ==21 [2025-03-03 09:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597478') start [2025-03-03 09:15:04] Production.INFO: ==1485== Lock acquired, processing the job... [2025-03-03 09:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: ==1487== Lock acquired, processing the job... [2025-03-03 09:15:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:15:04] Production.INFO: ==1491== Lock acquired, processing the job... [2025-03-03 09:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597478') end [2025-03-03 09:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:15:04] Production.INFO: 1 [2025-03-03 09:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:15:04] Production.INFO: ==1493== Releasing lock... [2025-03-03 09:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:04] Production.INFO: ==1485== Releasing lock... [2025-03-03 09:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.ERROR: done [2025-03-03 09:15:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.ERROR: done [2025-03-03 09:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:15:05] Production.INFO: Total Charge 0 [2025-03-03 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:15:05] Production.INFO: CreateAllLog End [2025-03-03 09:15:05] Production.INFO: Account Balance End. [2025-03-03 09:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:15:05] Production.INFO: ==1489== Releasing lock... [2025-03-03 09:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:15:13] Production.ERROR: CronJobId end10 [2025-03-03 09:15:13] Production.INFO: ==1487== Releasing lock... [2025-03-03 09:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:15:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:15:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:15:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:15:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:15:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:15:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:15:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:15:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:15:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:15:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:15:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:15:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:15:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:15:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:15:17] Production.INFO: call_cost start [2025-03-03 09:15:17] Production.INFO: call_cost end [2025-03-03 09:15:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:15:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:15:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:15:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:15:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:15:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:15:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:15:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:15:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:15:17] Production.INFO: ==1483== Releasing lock... [2025-03-03 09:15:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:15:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:15:18] Production.INFO: count ==409 [2025-03-03 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597481', 'tblTempUsageDetail_20' ) start [2025-03-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597481', 'tblTempUsageDetail_20' ) end [2025-03-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597481', 'tblTempVendorCDR_20' ) start [2025-03-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597481', 'tblTempVendorCDR_20' ) end [2025-03-03 09:15:18] Production.INFO: ProcessCDR(1,14597481,1,1,2) [2025-03-03 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597481', 'tblTempUsageDetail_20' ) start [2025-03-03 09:15:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597481', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:15:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:15:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:15:27] Production.INFO: ==1491== Releasing lock... [2025-03-03 09:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:15:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:16:01] Production.INFO: ==1587== Lock acquired, processing the job... [2025-03-03 14:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:16:01] Production.INFO: neon service started [2025-03-03 14:16:01] Production.INFO: neon service started [2025-03-03 14:16:01] Production.INFO: ==1587== Releasing lock... [2025-03-03 14:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:16:02] Production.INFO: ==1591== Lock acquired, processing the job... [2025-03-03 14:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:16:02] Production.INFO: ==1591== Releasing lock... [2025-03-03 14:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:16:02] Production.INFO: ==1589== Lock acquired, processing the job... [2025-03-03 09:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:16:02] Production.INFO: ==1589== Releasing lock... [2025-03-03 09:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:16:03] Production.INFO: ==1594== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:16:03] Production.INFO: ==1596== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:16:03] Production.INFO: ==1602== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:16:03] Production.INFO: ==1598== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:16:03] Production.INFO: ==1600== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:16:03] Production.INFO: ==1604== Lock acquired, processing the job... [2025-03-03 09:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:16:03] Production.INFO: Account Balance Start. [2025-03-03 09:16:03] Production.INFO: CreateAllLog Start [2025-03-03 09:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:16:03] Production.INFO: 117 [2025-03-03 09:16:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:03] Production.INFO: count ==13 [2025-03-03 09:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:16:04] Production.INFO: count ==21 [2025-03-03 09:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597485') start [2025-03-03 09:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: ==1596== Releasing lock... [2025-03-03 09:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597485') end [2025-03-03 09:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:16:04] Production.INFO: 1 [2025-03-03 09:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: ==1604== Releasing lock... [2025-03-03 09:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.ERROR: done [2025-03-03 09:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.ERROR: done [2025-03-03 09:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:16:05] Production.INFO: Total Charge 0 [2025-03-03 09:16:05] Production.INFO: CreateAllLog End [2025-03-03 09:16:05] Production.INFO: Account Balance End. [2025-03-03 09:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:16:05] Production.INFO: ==1600== Releasing lock... [2025-03-03 09:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:16:11] Production.ERROR: CronJobId end10 [2025-03-03 09:16:11] Production.INFO: ==1598== Releasing lock... [2025-03-03 09:16:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:16:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:16:15] Production.INFO: call_cost start [2025-03-03 09:16:15] Production.INFO: call_cost end [2025-03-03 09:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:16:15] Production.INFO: ==1594== Releasing lock... [2025-03-03 09:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:16:17] Production.INFO: count ==409 [2025-03-03 09:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597486', 'tblTempUsageDetail_20' ) start [2025-03-03 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597486', 'tblTempUsageDetail_20' ) end [2025-03-03 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597486', 'tblTempVendorCDR_20' ) start [2025-03-03 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597486', 'tblTempVendorCDR_20' ) end [2025-03-03 09:16:17] Production.INFO: ProcessCDR(1,14597486,1,1,2) [2025-03-03 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597486', 'tblTempUsageDetail_20' ) start [2025-03-03 09:16:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597486', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:16:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:16:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:16:26] Production.INFO: ==1602== Releasing lock... [2025-03-03 09:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:16:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:17:02] Production.INFO: ==1675== Lock acquired, processing the job... [2025-03-03 14:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:17:02] Production.INFO: neon service started [2025-03-03 14:17:02] Production.INFO: neon service started [2025-03-03 14:17:02] Production.INFO: ==1675== Releasing lock... [2025-03-03 14:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:17:02] Production.INFO: ==1677== Lock acquired, processing the job... [2025-03-03 09:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:17:02] Production.INFO: ==1677== Releasing lock... [2025-03-03 09:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:17:03] Production.INFO: ==1679== Lock acquired, processing the job... [2025-03-03 14:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:17:03] Production.INFO: ==1679== Releasing lock... [2025-03-03 14:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:17:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:17:04] Production.INFO: ==1686== Lock acquired, processing the job... [2025-03-03 09:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:17:04] Production.INFO: ==1692== Lock acquired, processing the job... [2025-03-03 09:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:17:04] Production.INFO: ==1681== Lock acquired, processing the job... [2025-03-03 09:17:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:17:04] Production.INFO: ==1683== Lock acquired, processing the job... [2025-03-03 09:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:17:04] Production.INFO: count ==13 [2025-03-03 09:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:17:04] Production.INFO: ==1688== Lock acquired, processing the job... [2025-03-03 09:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:17:04] Production.INFO: count ==21 [2025-03-03 09:17:04] Production.INFO: ==1690== Lock acquired, processing the job... [2025-03-03 09:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597487') start [2025-03-03 09:17:04] Production.INFO: Account Balance Start. [2025-03-03 09:17:04] Production.INFO: CreateAllLog Start [2025-03-03 09:17:04] Production.INFO: 117 [2025-03-03 09:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597487') end [2025-03-03 09:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:17:04] Production.INFO: 1 [2025-03-03 09:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.INFO: ==1692== Releasing lock... [2025-03-03 09:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.INFO: ==1683== Releasing lock... [2025-03-03 09:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.ERROR: done [2025-03-03 09:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.ERROR: done [2025-03-03 09:17:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:17:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:17:05] Production.INFO: Total Charge 0 [2025-03-03 09:17:05] Production.INFO: CreateAllLog End [2025-03-03 09:17:05] Production.INFO: Account Balance End. [2025-03-03 09:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:17:05] Production.INFO: ==1688== Releasing lock... [2025-03-03 09:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:17:14] Production.ERROR: CronJobId end10 [2025-03-03 09:17:14] Production.INFO: ==1686== Releasing lock... [2025-03-03 09:17:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:17:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:17:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:17:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:17:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:17:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:17:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:17:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:17:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:17:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:17:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:17:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:17:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:17:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:17:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:17:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:17:16] Production.INFO: call_cost start [2025-03-03 09:17:16] Production.INFO: call_cost end [2025-03-03 09:17:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:17:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:17:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:17:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:17:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:17:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:17:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:17:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:17:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:17:16] Production.INFO: ==1681== Releasing lock... [2025-03-03 09:17:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:17:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:17:17] Production.INFO: count ==409 [2025-03-03 09:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597491', 'tblTempUsageDetail_20' ) start [2025-03-03 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597491', 'tblTempUsageDetail_20' ) end [2025-03-03 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597491', 'tblTempVendorCDR_20' ) start [2025-03-03 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597491', 'tblTempVendorCDR_20' ) end [2025-03-03 09:17:17] Production.INFO: ProcessCDR(1,14597491,1,1,2) [2025-03-03 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597491', 'tblTempUsageDetail_20' ) start [2025-03-03 09:17:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597491', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:17:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:17:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:17:26] Production.INFO: ==1690== Releasing lock... [2025-03-03 09:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:17:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:18:01] Production.INFO: ==1749== Lock acquired, processing the job... [2025-03-03 14:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:18:01] Production.INFO: neon service started [2025-03-03 14:18:01] Production.INFO: neon service started [2025-03-03 14:18:01] Production.INFO: ==1749== Releasing lock... [2025-03-03 14:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:18:02] Production.INFO: ==1753== Lock acquired, processing the job... [2025-03-03 14:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:18:02] Production.INFO: ==1753== Releasing lock... [2025-03-03 14:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:18:02] Production.INFO: ==1751== Lock acquired, processing the job... [2025-03-03 09:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:18:02] Production.INFO: ==1751== Releasing lock... [2025-03-03 09:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:18:03] Production.INFO: ==1756== Lock acquired, processing the job... [2025-03-03 09:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:18:03] Production.INFO: ==1760== Lock acquired, processing the job... [2025-03-03 09:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:18:03] Production.INFO: ==1766== Lock acquired, processing the job... [2025-03-03 09:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:18:03] Production.INFO: ==1758== Lock acquired, processing the job... [2025-03-03 09:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:18:04] Production.INFO: count ==13 [2025-03-03 09:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:18:04] Production.INFO: count ==21 [2025-03-03 09:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597493') start [2025-03-03 09:18:04] Production.INFO: ==1764== Lock acquired, processing the job... [2025-03-03 09:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:18:04] Production.INFO: ==1762== Lock acquired, processing the job... [2025-03-03 09:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597493') end [2025-03-03 09:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:18:04] Production.INFO: 1 [2025-03-03 09:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:18:04] Production.INFO: ==1766== Releasing lock... [2025-03-03 09:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:18:04] Production.INFO: Account Balance Start. [2025-03-03 09:18:04] Production.INFO: CreateAllLog Start [2025-03-03 09:18:04] Production.INFO: 117 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: ==1758== Releasing lock... [2025-03-03 09:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.ERROR: done [2025-03-03 09:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:18:04] Production.ERROR: done [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:18:05] Production.INFO: Total Charge 0 [2025-03-03 09:18:05] Production.INFO: CreateAllLog End [2025-03-03 09:18:05] Production.INFO: Account Balance End. [2025-03-03 09:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:18:05] Production.INFO: ==1762== Releasing lock... [2025-03-03 09:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:18:13] Production.ERROR: CronJobId end10 [2025-03-03 09:18:13] Production.INFO: ==1760== Releasing lock... [2025-03-03 09:18:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:18:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:18:15] Production.INFO: call_cost start [2025-03-03 09:18:15] Production.INFO: call_cost end [2025-03-03 09:18:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:18:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:18:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:18:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:18:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:18:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:18:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:18:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:18:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:18:15] Production.INFO: ==1756== Releasing lock... [2025-03-03 09:18:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:18:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:18:16] Production.INFO: count ==409 [2025-03-03 09:18:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597496', 'tblTempUsageDetail_20' ) start [2025-03-03 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597496', 'tblTempUsageDetail_20' ) end [2025-03-03 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597496', 'tblTempVendorCDR_20' ) start [2025-03-03 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597496', 'tblTempVendorCDR_20' ) end [2025-03-03 09:18:17] Production.INFO: ProcessCDR(1,14597496,1,1,2) [2025-03-03 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597496', 'tblTempUsageDetail_20' ) start [2025-03-03 09:18:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597496', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:18:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:18:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:18:25] Production.INFO: ==1764== Releasing lock... [2025-03-03 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:18:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:19:02] Production.INFO: ==1831== Lock acquired, processing the job... [2025-03-03 14:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:19:02] Production.INFO: neon service started [2025-03-03 14:19:02] Production.INFO: neon service started [2025-03-03 14:19:02] Production.INFO: ==1831== Releasing lock... [2025-03-03 14:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:19:02] Production.INFO: ==1835== Lock acquired, processing the job... [2025-03-03 14:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:19:02] Production.INFO: ==1835== Releasing lock... [2025-03-03 14:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:19:02] Production.INFO: ==1833== Lock acquired, processing the job... [2025-03-03 09:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:19:03] Production.INFO: ==1833== Releasing lock... [2025-03-03 09:19:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:19:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:19:03] Production.INFO: ==1844== Lock acquired, processing the job... [2025-03-03 09:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:19:04] Production.INFO: ==1848== Lock acquired, processing the job... [2025-03-03 09:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:19:04] Production.INFO: Account Balance Start. [2025-03-03 09:19:04] Production.INFO: CreateAllLog Start [2025-03-03 09:19:04] Production.INFO: 117 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: ==1838== Lock acquired, processing the job... [2025-03-03 09:19:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:19:04] Production.INFO: ==1840== Lock acquired, processing the job... [2025-03-03 09:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: count ==13 [2025-03-03 09:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:19:04] Production.INFO: ==1846== Lock acquired, processing the job... [2025-03-03 09:19:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:19:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:19:04] Production.INFO: count ==21 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: ==1842== Lock acquired, processing the job... [2025-03-03 09:19:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597498') start [2025-03-03 09:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597498') end [2025-03-03 09:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:19:04] Production.INFO: 1 [2025-03-03 09:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:19:04] Production.INFO: ==1848== Releasing lock... [2025-03-03 09:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: ==1840== Releasing lock... [2025-03-03 09:19:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:19:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.ERROR: done [2025-03-03 09:19:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.ERROR: done [2025-03-03 09:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:19:05] Production.INFO: Total Charge 0 [2025-03-03 09:19:05] Production.INFO: CreateAllLog End [2025-03-03 09:19:05] Production.INFO: Account Balance End. [2025-03-03 09:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:19:05] Production.INFO: ==1844== Releasing lock... [2025-03-03 09:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:19:14] Production.ERROR: CronJobId end10 [2025-03-03 09:19:14] Production.INFO: ==1842== Releasing lock... [2025-03-03 09:19:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:19:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:19:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:19:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:19:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:19:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:19:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:19:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:19:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:19:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:19:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:19:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:19:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:19:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:19:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:19:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:19:16] Production.INFO: call_cost start [2025-03-03 09:19:16] Production.INFO: call_cost end [2025-03-03 09:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:19:16] Production.INFO: ==1838== Releasing lock... [2025-03-03 09:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:19:17] Production.INFO: count ==409 [2025-03-03 09:19:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597501', 'tblTempUsageDetail_20' ) start [2025-03-03 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597501', 'tblTempUsageDetail_20' ) end [2025-03-03 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597501', 'tblTempVendorCDR_20' ) start [2025-03-03 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597501', 'tblTempVendorCDR_20' ) end [2025-03-03 09:19:17] Production.INFO: ProcessCDR(1,14597501,1,1,2) [2025-03-03 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597501', 'tblTempUsageDetail_20' ) start [2025-03-03 09:19:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597501', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:19:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:19:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:19:26] Production.INFO: ==1846== Releasing lock... [2025-03-03 09:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:19:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:20:01] Production.INFO: ==1909== Lock acquired, processing the job... [2025-03-03 14:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:20:01] Production.INFO: neon service started [2025-03-03 14:20:01] Production.INFO: neon service started [2025-03-03 14:20:01] Production.INFO: ==1909== Releasing lock... [2025-03-03 14:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:20:02] Production.INFO: ==1913== Lock acquired, processing the job... [2025-03-03 14:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:20:02] Production.INFO: ==1913== Releasing lock... [2025-03-03 14:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:20:02] Production.INFO: ==1911== Lock acquired, processing the job... [2025-03-03 09:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:20:02] Production.INFO: ==1911== Releasing lock... [2025-03-03 09:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:20:04] Production.INFO: ==1922== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:20:04] Production.INFO: ==1916== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 09:20:04] Production.INFO: ==1924== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 09:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:20:04] Production.ERROR: CronJob PID - 1922 [2025-03-03 09:20:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 09:20:04] Production.ERROR: CronJob ID - 10 [2025-03-03 09:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:20:00 [2025-03-03 09:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:20:04] Production.INFO: ==1918== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:20:04] Production.INFO: ==1920== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 09:20:04] Production.INFO: ==1916== Releasing lock... [2025-03-03 09:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 09:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 09:20:04] Production.INFO: Account Balance Start. [2025-03-03 09:20:04] Production.INFO: CreateAllLog Start [2025-03-03 09:20:04] Production.INFO: 117 [2025-03-03 09:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:20:04] Production.INFO: ==1928== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.INFO: ==1926== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:20:04] Production.INFO: ==1930== Lock acquired, processing the job... [2025-03-03 09:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:20:04] Production.INFO: count ==13 [2025-03-03 09:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:20:04] Production.INFO: count ==21 [2025-03-03 09:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597505') start [2025-03-03 09:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:20:04] Production.INFO: ==1920== Releasing lock... [2025-03-03 09:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:04] Production.ERROR: done [2025-03-03 09:20:04] Production.ERROR: done [2025-03-03 09:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597505') end [2025-03-03 09:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:20:05] Production.INFO: 1 [2025-03-03 09:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 09:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597506', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 09:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: ==1930== Releasing lock... [2025-03-03 09:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.ERROR: done [2025-03-03 09:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:06] Production.INFO: Date 2025-03-03 [2025-03-03 09:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:20:06] Production.INFO: Total Charge 0 [2025-03-03 09:20:06] Production.INFO: CreateAllLog End [2025-03-03 09:20:06] Production.INFO: Account Balance End. [2025-03-03 09:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:20:06] Production.INFO: ==1924== Releasing lock... [2025-03-03 09:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:20:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597506', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 09:20:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 09:20:10] Production.INFO: ProcessCDR(1,14597506,1,1,2) [2025-03-03 09:20:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597506,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:20:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597506,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:20:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 09:20:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 09:20:10] Production.INFO: ==1928== Releasing lock... [2025-03-03 09:20:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 09:20:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:20:15] Production.ERROR: CronJobId end10 [2025-03-03 09:20:15] Production.INFO: ==1922== Releasing lock... [2025-03-03 09:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:20:17] Production.INFO: count ==409 [2025-03-03 09:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597507', 'tblTempUsageDetail_20' ) start [2025-03-03 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597507', 'tblTempUsageDetail_20' ) end [2025-03-03 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597507', 'tblTempVendorCDR_20' ) start [2025-03-03 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597507', 'tblTempVendorCDR_20' ) end [2025-03-03 09:20:17] Production.INFO: ProcessCDR(1,14597507,1,1,2) [2025-03-03 09:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:20:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:20:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:20:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:20:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:20:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:20:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:20:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:20:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:20:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:20:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:20:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:20:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:20:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:20:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:20:18] Production.INFO: call_cost start [2025-03-03 09:20:19] Production.INFO: call_cost end [2025-03-03 09:20:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:20:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:20:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:20:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:20:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:20:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:20:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:20:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:20:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:20:19] Production.INFO: ==1918== Releasing lock... [2025-03-03 09:20:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:20:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597507', 'tblTempUsageDetail_20' ) start [2025-03-03 09:20:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597507', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:20:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:20:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:20:26] Production.INFO: ==1926== Releasing lock... [2025-03-03 09:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:20:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:21:02] Production.INFO: ==1992== Lock acquired, processing the job... [2025-03-03 14:21:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:21:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:21:02] Production.INFO: neon service started [2025-03-03 14:21:02] Production.INFO: neon service started [2025-03-03 14:21:02] Production.INFO: ==1992== Releasing lock... [2025-03-03 14:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:21:03] Production.INFO: ==1994== Lock acquired, processing the job... [2025-03-03 09:21:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:21:03] Production.INFO: ==1997== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:21:03] Production.INFO: ==1997== Releasing lock... [2025-03-03 14:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:21:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:21:03] Production.INFO: ==1994== Releasing lock... [2025-03-03 09:21:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:21:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:21:04] Production.INFO: ==2002== Lock acquired, processing the job... [2025-03-03 09:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:21:04] Production.INFO: ==2010== Lock acquired, processing the job... [2025-03-03 09:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:21:04] Production.INFO: ==2002== Releasing lock... [2025-03-03 09:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:21:04] Production.INFO: ==2000== Lock acquired, processing the job... [2025-03-03 09:21:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:21:04] Production.INFO: count ==13 [2025-03-03 09:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:21:04] Production.INFO: count ==21 [2025-03-03 09:21:04] Production.INFO: ==2004== Lock acquired, processing the job... [2025-03-03 09:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597509') start [2025-03-03 09:21:04] Production.INFO: ==2006== Lock acquired, processing the job... [2025-03-03 09:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:21:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:21:04] Production.INFO: ==2008== Lock acquired, processing the job... [2025-03-03 09:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597509') end [2025-03-03 09:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:21:04] Production.INFO: 1 [2025-03-03 09:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:21:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:21:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:21:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:21:05] Production.INFO: ==2010== Releasing lock... [2025-03-03 09:21:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:21:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:21:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:21:05] Production.INFO: Account Balance Start. [2025-03-03 09:21:05] Production.INFO: CreateAllLog Start [2025-03-03 09:21:05] Production.INFO: 117 [2025-03-03 09:21:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:21:05] Production.INFO: Date 2025-02-08 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-09 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-10 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-11 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-12 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.ERROR: done [2025-03-03 09:21:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.ERROR: done [2025-03-03 09:21:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:21:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:21:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:06] Production.INFO: Date 2025-02-27 [2025-03-03 09:21:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:06] Production.INFO: Date 2025-02-28 [2025-03-03 09:21:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:06] Production.INFO: Date 2025-03-01 [2025-03-03 09:21:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:06] Production.INFO: Date 2025-03-02 [2025-03-03 09:21:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:06] Production.INFO: Date 2025-03-03 [2025-03-03 09:21:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:21:06] Production.INFO: Total Charge 0 [2025-03-03 09:21:06] Production.INFO: CreateAllLog End [2025-03-03 09:21:06] Production.INFO: Account Balance End. [2025-03-03 09:21:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:21:06] Production.INFO: ==2006== Releasing lock... [2025-03-03 09:21:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:21:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:21:13] Production.ERROR: CronJobId end10 [2025-03-03 09:21:13] Production.INFO: ==2004== Releasing lock... [2025-03-03 09:21:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:21:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:21:16] Production.INFO: call_cost start [2025-03-03 09:21:16] Production.INFO: call_cost end [2025-03-03 09:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:21:16] Production.INFO: ==2000== Releasing lock... [2025-03-03 09:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:21:17] Production.INFO: count ==409 [2025-03-03 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597512', 'tblTempUsageDetail_20' ) start [2025-03-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597512', 'tblTempUsageDetail_20' ) end [2025-03-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597512', 'tblTempVendorCDR_20' ) start [2025-03-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597512', 'tblTempVendorCDR_20' ) end [2025-03-03 09:21:18] Production.INFO: ProcessCDR(1,14597512,1,1,2) [2025-03-03 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597512', 'tblTempUsageDetail_20' ) start [2025-03-03 09:21:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597512', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:21:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:21:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:21:26] Production.INFO: ==2008== Releasing lock... [2025-03-03 09:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:21:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:22:01] Production.INFO: ==2106== Lock acquired, processing the job... [2025-03-03 14:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:22:01] Production.INFO: neon service started [2025-03-03 14:22:01] Production.INFO: neon service started [2025-03-03 14:22:01] Production.INFO: ==2106== Releasing lock... [2025-03-03 14:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:22:02] Production.INFO: ==2109== Lock acquired, processing the job... [2025-03-03 09:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:22:02] Production.INFO: ==2111== Lock acquired, processing the job... [2025-03-03 14:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:22:02] Production.INFO: ==2111== Releasing lock... [2025-03-03 14:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:22:02] Production.INFO: ==2109== Releasing lock... [2025-03-03 09:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:22:03] Production.INFO: ==2116== Lock acquired, processing the job... [2025-03-03 09:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:22:03] Production.INFO: ==2114== Lock acquired, processing the job... [2025-03-03 09:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:22:03] Production.INFO: ==2118== Lock acquired, processing the job... [2025-03-03 09:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:22:03] Production.INFO: ==2122== Lock acquired, processing the job... [2025-03-03 09:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:22:04] Production.INFO: ==2120== Lock acquired, processing the job... [2025-03-03 09:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:22:04] Production.INFO: ==2124== Lock acquired, processing the job... [2025-03-03 09:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:22:04] Production.INFO: ==2116== Releasing lock... [2025-03-03 09:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:22:04] Production.INFO: Account Balance Start. [2025-03-03 09:22:04] Production.INFO: CreateAllLog Start [2025-03-03 09:22:04] Production.INFO: 117 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: count ==13 [2025-03-03 09:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:22:04] Production.INFO: count ==21 [2025-03-03 09:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597515') start [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.ERROR: done [2025-03-03 09:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597515') end [2025-03-03 09:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:22:04] Production.INFO: 1 [2025-03-03 09:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: ==2124== Releasing lock... [2025-03-03 09:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:22:04] Production.ERROR: done [2025-03-03 09:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:22:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:22:05] Production.INFO: Total Charge 0 [2025-03-03 09:22:05] Production.INFO: CreateAllLog End [2025-03-03 09:22:05] Production.INFO: Account Balance End. [2025-03-03 09:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:22:05] Production.INFO: ==2120== Releasing lock... [2025-03-03 09:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:22:12] Production.ERROR: CronJobId end10 [2025-03-03 09:22:12] Production.INFO: ==2118== Releasing lock... [2025-03-03 09:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:22:15] Production.INFO: call_cost start [2025-03-03 09:22:15] Production.INFO: call_cost end [2025-03-03 09:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:22:15] Production.INFO: ==2114== Releasing lock... [2025-03-03 09:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:22:16] Production.INFO: count ==409 [2025-03-03 09:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597517', 'tblTempUsageDetail_20' ) start [2025-03-03 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597517', 'tblTempUsageDetail_20' ) end [2025-03-03 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597517', 'tblTempVendorCDR_20' ) start [2025-03-03 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597517', 'tblTempVendorCDR_20' ) end [2025-03-03 09:22:17] Production.INFO: ProcessCDR(1,14597517,1,1,2) [2025-03-03 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597517', 'tblTempUsageDetail_20' ) start [2025-03-03 09:22:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597517', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:22:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:22:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:22:25] Production.INFO: ==2122== Releasing lock... [2025-03-03 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:22:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:23:02] Production.INFO: ==2184== Lock acquired, processing the job... [2025-03-03 14:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:23:02] Production.INFO: neon service started [2025-03-03 14:23:02] Production.INFO: neon service started [2025-03-03 14:23:02] Production.INFO: ==2184== Releasing lock... [2025-03-03 14:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:23:02] Production.INFO: ==2186== Lock acquired, processing the job... [2025-03-03 09:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:23:03] Production.INFO: ==2186== Releasing lock... [2025-03-03 09:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:23:03] Production.INFO: ==2188== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:23:03] Production.INFO: ==2188== Releasing lock... [2025-03-03 14:23:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:23:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:23:04] Production.INFO: ==2202== Lock acquired, processing the job... [2025-03-03 09:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:23:04] Production.INFO: ==2200== Lock acquired, processing the job... [2025-03-03 09:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:23:04] Production.INFO: ==2191== Lock acquired, processing the job... [2025-03-03 09:23:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:23:04] Production.INFO: count ==13 [2025-03-03 09:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:23:04] Production.INFO: count ==21 [2025-03-03 09:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597518') start [2025-03-03 09:23:04] Production.INFO: ==2193== Lock acquired, processing the job... [2025-03-03 09:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:23:04] Production.INFO: ==2195== Lock acquired, processing the job... [2025-03-03 09:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:23:04] Production.INFO: ==2197== Lock acquired, processing the job... [2025-03-03 09:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:23:04] Production.ERROR: done [2025-03-03 09:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597518') end [2025-03-03 09:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:23:04] Production.INFO: 1 [2025-03-03 09:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:23:04] Production.INFO: Account Balance Start. [2025-03-03 09:23:04] Production.INFO: CreateAllLog Start [2025-03-03 09:23:04] Production.INFO: ==2202== Releasing lock... [2025-03-03 09:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:23:04] Production.INFO: 117 [2025-03-03 09:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:04] Production.INFO: ==2193== Releasing lock... [2025-03-03 09:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:04] Production.ERROR: done [2025-03-03 09:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:23:05] Production.INFO: Total Charge 0 [2025-03-03 09:23:05] Production.INFO: CreateAllLog End [2025-03-03 09:23:05] Production.INFO: Account Balance End. [2025-03-03 09:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:23:05] Production.INFO: ==2197== Releasing lock... [2025-03-03 09:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:23:12] Production.ERROR: CronJobId end10 [2025-03-03 09:23:12] Production.INFO: ==2195== Releasing lock... [2025-03-03 09:23:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:23:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:23:16] Production.INFO: call_cost start [2025-03-03 09:23:16] Production.INFO: call_cost end [2025-03-03 09:23:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:23:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:23:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:23:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:23:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:23:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:23:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:23:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:23:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:23:16] Production.INFO: ==2191== Releasing lock... [2025-03-03 09:23:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:23:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:23:16] Production.INFO: count ==409 [2025-03-03 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597522', 'tblTempUsageDetail_20' ) start [2025-03-03 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597522', 'tblTempUsageDetail_20' ) end [2025-03-03 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597522', 'tblTempVendorCDR_20' ) start [2025-03-03 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597522', 'tblTempVendorCDR_20' ) end [2025-03-03 09:23:17] Production.INFO: ProcessCDR(1,14597522,1,1,2) [2025-03-03 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597522', 'tblTempUsageDetail_20' ) start [2025-03-03 09:23:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597522', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:23:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:23:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:23:25] Production.INFO: ==2200== Releasing lock... [2025-03-03 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:23:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:24:01] Production.INFO: ==2268== Lock acquired, processing the job... [2025-03-03 14:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:24:01] Production.INFO: neon service started [2025-03-03 14:24:01] Production.INFO: neon service started [2025-03-03 14:24:01] Production.INFO: ==2268== Releasing lock... [2025-03-03 14:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:24:02] Production.INFO: ==2270== Lock acquired, processing the job... [2025-03-03 09:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:24:02] Production.INFO: ==2272== Lock acquired, processing the job... [2025-03-03 14:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:24:02] Production.INFO: ==2270== Releasing lock... [2025-03-03 09:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:24:02] Production.INFO: ==2272== Releasing lock... [2025-03-03 14:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:24:03] Production.INFO: ==2274== Lock acquired, processing the job... [2025-03-03 09:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:24:03] Production.INFO: ==2276== Lock acquired, processing the job... [2025-03-03 09:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:24:03] Production.INFO: ==2279== Lock acquired, processing the job... [2025-03-03 09:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:24:03] Production.INFO: ==2281== Lock acquired, processing the job... [2025-03-03 09:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:24:04] Production.INFO: Account Balance Start. [2025-03-03 09:24:04] Production.INFO: CreateAllLog Start [2025-03-03 09:24:04] Production.INFO: 117 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:24:04] Production.INFO: ==2283== Lock acquired, processing the job... [2025-03-03 09:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:24:04] Production.INFO: ==2285== Lock acquired, processing the job... [2025-03-03 09:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: count ==13 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:24:04] Production.INFO: ==2276== Releasing lock... [2025-03-03 09:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:24:04] Production.INFO: count ==21 [2025-03-03 09:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597526') start [2025-03-03 09:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.ERROR: done [2025-03-03 09:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597526') end [2025-03-03 09:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:24:04] Production.INFO: 1 [2025-03-03 09:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: ==2285== Releasing lock... [2025-03-03 09:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.ERROR: done [2025-03-03 09:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:24:05] Production.INFO: Total Charge 0 [2025-03-03 09:24:05] Production.INFO: CreateAllLog End [2025-03-03 09:24:05] Production.INFO: Account Balance End. [2025-03-03 09:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:24:05] Production.INFO: ==2281== Releasing lock... [2025-03-03 09:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:24:13] Production.ERROR: CronJobId end10 [2025-03-03 09:24:13] Production.INFO: ==2279== Releasing lock... [2025-03-03 09:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:24:15] Production.INFO: call_cost start [2025-03-03 09:24:15] Production.INFO: call_cost end [2025-03-03 09:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:24:15] Production.INFO: ==2274== Releasing lock... [2025-03-03 09:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:24:17] Production.INFO: count ==409 [2025-03-03 09:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597527', 'tblTempUsageDetail_20' ) start [2025-03-03 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597527', 'tblTempUsageDetail_20' ) end [2025-03-03 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597527', 'tblTempVendorCDR_20' ) start [2025-03-03 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597527', 'tblTempVendorCDR_20' ) end [2025-03-03 09:24:17] Production.INFO: ProcessCDR(1,14597527,1,1,2) [2025-03-03 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597527', 'tblTempUsageDetail_20' ) start [2025-03-03 09:24:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597527', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:24:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:24:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:24:26] Production.INFO: ==2283== Releasing lock... [2025-03-03 09:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:24:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:25:02] Production.INFO: ==2342== Lock acquired, processing the job... [2025-03-03 14:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:25:02] Production.INFO: neon service started [2025-03-03 14:25:02] Production.INFO: neon service started [2025-03-03 14:25:02] Production.INFO: ==2342== Releasing lock... [2025-03-03 14:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:25:02] Production.INFO: ==2344== Lock acquired, processing the job... [2025-03-03 09:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:25:02] Production.INFO: ==2346== Lock acquired, processing the job... [2025-03-03 14:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:25:02] Production.INFO: ==2346== Releasing lock... [2025-03-03 14:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:25:03] Production.INFO: ==2344== Releasing lock... [2025-03-03 09:25:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:25:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:25:04] Production.INFO: ==2349== Lock acquired, processing the job... [2025-03-03 09:25:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:25:04] Production.INFO: ==2351== Lock acquired, processing the job... [2025-03-03 09:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:25:04] Production.INFO: ==2353== Lock acquired, processing the job... [2025-03-03 09:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:25:04] Production.INFO: ==2355== Lock acquired, processing the job... [2025-03-03 09:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:25:04] Production.INFO: Account Balance Start. [2025-03-03 09:25:04] Production.INFO: CreateAllLog Start [2025-03-03 09:25:04] Production.INFO: 117 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: ==2351== Releasing lock... [2025-03-03 09:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: ==2359== Lock acquired, processing the job... [2025-03-03 09:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:25:04] Production.INFO: ==2357== Lock acquired, processing the job... [2025-03-03 09:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:25:04] Production.INFO: count ==13 [2025-03-03 09:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:25:04] Production.INFO: count ==21 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597531') start [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597531') end [2025-03-03 09:25:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:25:05] Production.INFO: 1 [2025-03-03 09:25:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:25:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.ERROR: done [2025-03-03 09:25:05] Production.INFO: ==2359== Releasing lock... [2025-03-03 09:25:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:25:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:25:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.ERROR: done [2025-03-03 09:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:25:05] Production.INFO: Total Charge 0 [2025-03-03 09:25:05] Production.INFO: CreateAllLog End [2025-03-03 09:25:05] Production.INFO: Account Balance End. [2025-03-03 09:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:25:05] Production.INFO: ==2355== Releasing lock... [2025-03-03 09:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:25:14] Production.ERROR: CronJobId end10 [2025-03-03 09:25:14] Production.INFO: ==2353== Releasing lock... [2025-03-03 09:25:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:25:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:25:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:25:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:25:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:25:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:25:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:25:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:25:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:25:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:25:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:25:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:25:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:25:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:25:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:25:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:25:16] Production.INFO: call_cost start [2025-03-03 09:25:16] Production.INFO: call_cost end [2025-03-03 09:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:25:16] Production.INFO: ==2349== Releasing lock... [2025-03-03 09:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:25:17] Production.INFO: count ==409 [2025-03-03 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597532', 'tblTempUsageDetail_20' ) start [2025-03-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597532', 'tblTempUsageDetail_20' ) end [2025-03-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597532', 'tblTempVendorCDR_20' ) start [2025-03-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597532', 'tblTempVendorCDR_20' ) end [2025-03-03 09:25:18] Production.INFO: ProcessCDR(1,14597532,1,1,2) [2025-03-03 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597532', 'tblTempUsageDetail_20' ) start [2025-03-03 09:25:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597532', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:25:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:25:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:25:26] Production.INFO: ==2357== Releasing lock... [2025-03-03 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:26:01] Production.INFO: ==2429== Lock acquired, processing the job... [2025-03-03 14:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:26:01] Production.INFO: neon service started [2025-03-03 14:26:01] Production.INFO: neon service started [2025-03-03 14:26:01] Production.INFO: ==2429== Releasing lock... [2025-03-03 14:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:26:02] Production.INFO: ==2431== Lock acquired, processing the job... [2025-03-03 14:26:02] Production.INFO: ==2433== Lock acquired, processing the job... [2025-03-03 14:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 09:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:26:02] Production.INFO: ==2433== Releasing lock... [2025-03-03 14:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:26:02] Production.INFO: ==2431== Releasing lock... [2025-03-03 09:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:26:03] Production.INFO: ==2436== Lock acquired, processing the job... [2025-03-03 09:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:26:03] Production.INFO: ==2438== Lock acquired, processing the job... [2025-03-03 09:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:26:03] Production.INFO: ==2444== Lock acquired, processing the job... [2025-03-03 09:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:26:04] Production.INFO: ==2442== Lock acquired, processing the job... [2025-03-03 09:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:26:04] Production.INFO: ==2440== Lock acquired, processing the job... [2025-03-03 09:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:26:04] Production.INFO: Account Balance Start. [2025-03-03 09:26:04] Production.INFO: CreateAllLog Start [2025-03-03 09:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:26:04] Production.INFO: 117 [2025-03-03 09:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:26:04] Production.INFO: ==2446== Lock acquired, processing the job... [2025-03-03 09:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:26:04] Production.INFO: ==2438== Releasing lock... [2025-03-03 09:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.ERROR: done [2025-03-03 09:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:26:04] Production.INFO: count ==13 [2025-03-03 09:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:26:04] Production.INFO: count ==21 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597536') start [2025-03-03 09:26:04] Production.ERROR: done [2025-03-03 09:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597536') end [2025-03-03 09:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:26:04] Production.INFO: 1 [2025-03-03 09:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:26:04] Production.INFO: ==2446== Releasing lock... [2025-03-03 09:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:26:05] Production.INFO: Total Charge 0 [2025-03-03 09:26:05] Production.INFO: CreateAllLog End [2025-03-03 09:26:05] Production.INFO: Account Balance End. [2025-03-03 09:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:26:05] Production.INFO: ==2442== Releasing lock... [2025-03-03 09:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:26:12] Production.ERROR: CronJobId end10 [2025-03-03 09:26:12] Production.INFO: ==2440== Releasing lock... [2025-03-03 09:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:26:15] Production.INFO: call_cost start [2025-03-03 09:26:15] Production.INFO: call_cost end [2025-03-03 09:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:26:16] Production.INFO: ==2436== Releasing lock... [2025-03-03 09:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:26:17] Production.INFO: count ==409 [2025-03-03 09:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597537', 'tblTempUsageDetail_20' ) start [2025-03-03 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597537', 'tblTempUsageDetail_20' ) end [2025-03-03 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597537', 'tblTempVendorCDR_20' ) start [2025-03-03 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597537', 'tblTempVendorCDR_20' ) end [2025-03-03 09:26:17] Production.INFO: ProcessCDR(1,14597537,1,1,2) [2025-03-03 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597537', 'tblTempUsageDetail_20' ) start [2025-03-03 09:26:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597537', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:26:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:26:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:26:25] Production.INFO: ==2444== Releasing lock... [2025-03-03 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:26:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:27:02] Production.INFO: ==2505== Lock acquired, processing the job... [2025-03-03 14:27:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:27:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:27:02] Production.INFO: neon service started [2025-03-03 14:27:02] Production.INFO: neon service started [2025-03-03 14:27:02] Production.INFO: ==2505== Releasing lock... [2025-03-03 14:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:27:03] Production.INFO: ==2507== Lock acquired, processing the job... [2025-03-03 09:27:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:27:03] Production.INFO: ==2509== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:27:03] Production.INFO: ==2509== Releasing lock... [2025-03-03 14:27:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:27:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:27:03] Production.INFO: ==2507== Releasing lock... [2025-03-03 09:27:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:27:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:27:04] Production.INFO: ==2518== Lock acquired, processing the job... [2025-03-03 09:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:27:04] Production.INFO: ==2514== Lock acquired, processing the job... [2025-03-03 09:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:27:04] Production.INFO: ==2522== Lock acquired, processing the job... [2025-03-03 09:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:27:04] Production.INFO: Account Balance Start. [2025-03-03 09:27:04] Production.INFO: CreateAllLog Start [2025-03-03 09:27:04] Production.INFO: 117 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: count ==13 [2025-03-03 09:27:04] Production.INFO: ==2516== Lock acquired, processing the job... [2025-03-03 09:27:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:27:04] Production.INFO: count ==21 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597539') start [2025-03-03 09:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:27:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:27:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:27:04] Production.INFO: ==2512== Lock acquired, processing the job... [2025-03-03 09:27:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:27:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: ==2520== Lock acquired, processing the job... [2025-03-03 09:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:27:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597539') end [2025-03-03 09:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:27:04] Production.INFO: 1 [2025-03-03 09:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: ==2522== Releasing lock... [2025-03-03 09:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:27:04] Production.INFO: ==2514== Releasing lock... [2025-03-03 09:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.ERROR: done [2025-03-03 09:27:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:27:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.ERROR: done [2025-03-03 09:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:27:05] Production.INFO: Total Charge 0 [2025-03-03 09:27:05] Production.INFO: CreateAllLog End [2025-03-03 09:27:05] Production.INFO: Account Balance End. [2025-03-03 09:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:27:05] Production.INFO: ==2518== Releasing lock... [2025-03-03 09:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:27:13] Production.ERROR: CronJobId end10 [2025-03-03 09:27:13] Production.INFO: ==2516== Releasing lock... [2025-03-03 09:27:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:27:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:27:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:27:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:27:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:27:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:27:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:27:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:27:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:27:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:27:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:27:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:27:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:27:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:27:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:27:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:27:16] Production.INFO: call_cost start [2025-03-03 09:27:16] Production.INFO: call_cost end [2025-03-03 09:27:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:27:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:27:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:27:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:27:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:27:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:27:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:27:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:27:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:27:16] Production.INFO: ==2512== Releasing lock... [2025-03-03 09:27:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:27:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:27:17] Production.INFO: count ==409 [2025-03-03 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597542', 'tblTempUsageDetail_20' ) start [2025-03-03 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597542', 'tblTempUsageDetail_20' ) end [2025-03-03 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597542', 'tblTempVendorCDR_20' ) start [2025-03-03 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597542', 'tblTempVendorCDR_20' ) end [2025-03-03 09:27:17] Production.INFO: ProcessCDR(1,14597542,1,1,2) [2025-03-03 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597542', 'tblTempUsageDetail_20' ) start [2025-03-03 09:27:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597542', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:27:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:27:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:27:26] Production.INFO: ==2520== Releasing lock... [2025-03-03 09:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:27:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:28:01] Production.INFO: ==2585== Lock acquired, processing the job... [2025-03-03 14:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:28:01] Production.INFO: neon service started [2025-03-03 14:28:01] Production.INFO: neon service started [2025-03-03 14:28:01] Production.INFO: ==2585== Releasing lock... [2025-03-03 14:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:28:02] Production.INFO: ==2587== Lock acquired, processing the job... [2025-03-03 09:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:28:02] Production.INFO: ==2587== Releasing lock... [2025-03-03 09:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:28:02] Production.INFO: ==2589== Lock acquired, processing the job... [2025-03-03 14:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:28:02] Production.INFO: ==2589== Releasing lock... [2025-03-03 14:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:28:03] Production.INFO: ==2598== Lock acquired, processing the job... [2025-03-03 09:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:28:03] Production.INFO: ==2602== Lock acquired, processing the job... [2025-03-03 09:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:28:03] Production.INFO: Account Balance Start. [2025-03-03 09:28:03] Production.INFO: CreateAllLog Start [2025-03-03 09:28:03] Production.INFO: 117 [2025-03-03 09:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:03] Production.INFO: count ==13 [2025-03-03 09:28:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:28:03] Production.INFO: count ==21 [2025-03-03 09:28:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597544') start [2025-03-03 09:28:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: ==2591== Lock acquired, processing the job... [2025-03-03 09:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:28:04] Production.INFO: ==2593== Lock acquired, processing the job... [2025-03-03 09:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597544') end [2025-03-03 09:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:28:04] Production.INFO: 1 [2025-03-03 09:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:28:04] Production.INFO: ==2602== Releasing lock... [2025-03-03 09:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:28:04] Production.INFO: ==2596== Lock acquired, processing the job... [2025-03-03 09:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:28:04] Production.INFO: ==2600== Lock acquired, processing the job... [2025-03-03 09:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: ==2593== Releasing lock... [2025-03-03 09:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.ERROR: done [2025-03-03 09:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.ERROR: done [2025-03-03 09:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:28:05] Production.INFO: Total Charge 0 [2025-03-03 09:28:05] Production.INFO: CreateAllLog End [2025-03-03 09:28:05] Production.INFO: Account Balance End. [2025-03-03 09:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:28:05] Production.INFO: ==2598== Releasing lock... [2025-03-03 09:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:28:12] Production.ERROR: CronJobId end10 [2025-03-03 09:28:12] Production.INFO: ==2596== Releasing lock... [2025-03-03 09:28:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:28:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:28:14] Production.INFO: call_cost start [2025-03-03 09:28:14] Production.INFO: call_cost end [2025-03-03 09:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:28:14] Production.INFO: ==2591== Releasing lock... [2025-03-03 09:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:28:17] Production.INFO: count ==409 [2025-03-03 09:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597547', 'tblTempUsageDetail_20' ) start [2025-03-03 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597547', 'tblTempUsageDetail_20' ) end [2025-03-03 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597547', 'tblTempVendorCDR_20' ) start [2025-03-03 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597547', 'tblTempVendorCDR_20' ) end [2025-03-03 09:28:17] Production.INFO: ProcessCDR(1,14597547,1,1,2) [2025-03-03 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597547', 'tblTempUsageDetail_20' ) start [2025-03-03 09:28:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597547', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:28:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:28:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:28:25] Production.INFO: ==2600== Releasing lock... [2025-03-03 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:28:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:29:02] Production.INFO: ==2659== Lock acquired, processing the job... [2025-03-03 14:29:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:29:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:29:02] Production.INFO: neon service started [2025-03-03 14:29:02] Production.INFO: neon service started [2025-03-03 14:29:02] Production.INFO: ==2659== Releasing lock... [2025-03-03 14:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:29:02] Production.INFO: ==2663== Lock acquired, processing the job... [2025-03-03 14:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:29:02] Production.INFO: ==2663== Releasing lock... [2025-03-03 14:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:29:02] Production.INFO: ==2661== Lock acquired, processing the job... [2025-03-03 09:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:29:03] Production.INFO: ==2661== Releasing lock... [2025-03-03 09:29:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:29:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:29:04] Production.INFO: ==2666== Lock acquired, processing the job... [2025-03-03 09:29:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:29:04] Production.INFO: ==2668== Lock acquired, processing the job... [2025-03-03 09:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:29:04] Production.INFO: ==2670== Lock acquired, processing the job... [2025-03-03 09:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:29:04] Production.INFO: ==2672== Lock acquired, processing the job... [2025-03-03 09:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:29:04] Production.INFO: Account Balance Start. [2025-03-03 09:29:04] Production.INFO: CreateAllLog Start [2025-03-03 09:29:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:29:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:29:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:29:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:29:04] Production.INFO: 117 [2025-03-03 09:29:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:29:04] Production.INFO: ==2674== Lock acquired, processing the job... [2025-03-03 09:29:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:04] Production.INFO: ==2676== Lock acquired, processing the job... [2025-03-03 09:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:29:04] Production.INFO: ==2668== Releasing lock... [2025-03-03 09:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:04] Production.ERROR: done [2025-03-03 09:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:29:04] Production.INFO: count ==13 [2025-03-03 09:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:29:04] Production.INFO: count ==21 [2025-03-03 09:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597551') start [2025-03-03 09:29:05] Production.ERROR: done [2025-03-03 09:29:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:29:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597551') end [2025-03-03 09:29:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:29:05] Production.INFO: 1 [2025-03-03 09:29:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:29:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: ==2676== Releasing lock... [2025-03-03 09:29:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:29:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:29:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:29:05] Production.INFO: Total Charge 0 [2025-03-03 09:29:05] Production.INFO: CreateAllLog End [2025-03-03 09:29:05] Production.INFO: Account Balance End. [2025-03-03 09:29:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:29:06] Production.INFO: ==2672== Releasing lock... [2025-03-03 09:29:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:29:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:29:13] Production.ERROR: CronJobId end10 [2025-03-03 09:29:13] Production.INFO: ==2670== Releasing lock... [2025-03-03 09:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:29:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:29:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:29:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:29:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:29:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:29:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:29:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:29:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:29:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:29:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:29:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:29:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:29:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:29:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:29:16] Production.INFO: call_cost start [2025-03-03 09:29:16] Production.INFO: call_cost end [2025-03-03 09:29:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:29:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:29:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:29:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:29:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:29:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:29:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:29:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:29:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:29:16] Production.INFO: ==2666== Releasing lock... [2025-03-03 09:29:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:29:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:29:17] Production.INFO: count ==409 [2025-03-03 09:29:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597552', 'tblTempUsageDetail_20' ) start [2025-03-03 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597552', 'tblTempUsageDetail_20' ) end [2025-03-03 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597552', 'tblTempVendorCDR_20' ) start [2025-03-03 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597552', 'tblTempVendorCDR_20' ) end [2025-03-03 09:29:17] Production.INFO: ProcessCDR(1,14597552,1,1,2) [2025-03-03 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597552', 'tblTempUsageDetail_20' ) start [2025-03-03 09:29:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597552', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:29:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:29:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:29:25] Production.INFO: ==2674== Releasing lock... [2025-03-03 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:29:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:30:01] Production.INFO: ==2735== Lock acquired, processing the job... [2025-03-03 14:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:30:01] Production.INFO: neon service started [2025-03-03 14:30:01] Production.INFO: neon service started [2025-03-03 14:30:01] Production.INFO: ==2735== Releasing lock... [2025-03-03 14:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:30:02] Production.INFO: ==2739== Lock acquired, processing the job... [2025-03-03 14:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:30:02] Production.INFO: ==2739== Releasing lock... [2025-03-03 14:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:30:02] Production.INFO: ==2737== Lock acquired, processing the job... [2025-03-03 09:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:30:02] Production.INFO: ==2737== Releasing lock... [2025-03-03 09:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:30:04] Production.INFO: ==2742== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 09:30:04] Production.INFO: ==2746== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:30:04] Production.INFO: ==2748== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 09:30:04] Production.INFO: ==2754== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 09:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 09:30:04] Production.INFO: ==2742== Releasing lock... [2025-03-03 09:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 09:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 09:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:30:04] Production.INFO: ==2744== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:30:04] Production.INFO: ==2752== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:30:04] Production.INFO: ==2750== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:30:04] Production.INFO: ==2756== Lock acquired, processing the job... [2025-03-03 09:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:30:04] Production.INFO: Account Balance Start. [2025-03-03 09:30:04] Production.INFO: CreateAllLog Start [2025-03-03 09:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:30:04] Production.INFO: 117 [2025-03-03 09:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:04] Production.ERROR: done [2025-03-03 09:30:04] Production.INFO: ==2746== Releasing lock... [2025-03-03 09:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:04] Production.INFO: count ==13 [2025-03-03 09:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 09:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597557', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 09:30:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:30:05] Production.INFO: count ==21 [2025-03-03 09:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597556') start [2025-03-03 09:30:05] Production.ERROR: done [2025-03-03 09:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597556') end [2025-03-03 09:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:30:05] Production.INFO: 1 [2025-03-03 09:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:30:05] Production.INFO: ==2756== Releasing lock... [2025-03-03 09:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:30:05] Production.ERROR: done [2025-03-03 09:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-02-25 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-02-26 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-02-27 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-02-28 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-03-01 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 09:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:30:06] Production.INFO: Total Charge 0 [2025-03-03 09:30:06] Production.INFO: CreateAllLog End [2025-03-03 09:30:06] Production.INFO: Account Balance End. [2025-03-03 09:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:30:06] Production.INFO: ==2750== Releasing lock... [2025-03-03 09:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597557', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 09:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 09:30:09] Production.INFO: ProcessCDR(1,14597557,1,1,2) [2025-03-03 09:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597557,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597557,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 09:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 09:30:09] Production.INFO: ==2754== Releasing lock... [2025-03-03 09:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 09:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:30:13] Production.ERROR: CronJobId end10 [2025-03-03 09:30:13] Production.INFO: ==2748== Releasing lock... [2025-03-03 09:30:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:30:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:30:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:30:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:30:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:30:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:30:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:30:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:30:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:30:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:30:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:30:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:30:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:30:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:30:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:30:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:30:17] Production.INFO: call_cost start [2025-03-03 09:30:17] Production.INFO: call_cost end [2025-03-03 09:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:30:17] Production.INFO: ==2744== Releasing lock... [2025-03-03 09:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:30:17] Production.INFO: count ==409 [2025-03-03 09:30:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597558', 'tblTempUsageDetail_20' ) start [2025-03-03 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597558', 'tblTempUsageDetail_20' ) end [2025-03-03 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597558', 'tblTempVendorCDR_20' ) start [2025-03-03 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597558', 'tblTempVendorCDR_20' ) end [2025-03-03 09:30:18] Production.INFO: ProcessCDR(1,14597558,1,1,2) [2025-03-03 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597558', 'tblTempUsageDetail_20' ) start [2025-03-03 09:30:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597558', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:30:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:30:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:30:26] Production.INFO: ==2752== Releasing lock... [2025-03-03 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:30:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:31:02] Production.INFO: ==2819== Lock acquired, processing the job... [2025-03-03 14:31:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:31:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:31:02] Production.INFO: neon service started [2025-03-03 14:31:02] Production.INFO: neon service started [2025-03-03 14:31:02] Production.INFO: ==2819== Releasing lock... [2025-03-03 14:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:31:02] Production.INFO: ==2822== Lock acquired, processing the job... [2025-03-03 09:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:31:03] Production.INFO: ==2822== Releasing lock... [2025-03-03 09:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:31:03] Production.INFO: ==2824== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:31:03] Production.INFO: ==2824== Releasing lock... [2025-03-03 14:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:31:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:31:04] Production.INFO: ==2832== Lock acquired, processing the job... [2025-03-03 09:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:31:04] Production.INFO: ==2836== Lock acquired, processing the job... [2025-03-03 09:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:31:04] Production.INFO: Account Balance Start. [2025-03-03 09:31:04] Production.INFO: CreateAllLog Start [2025-03-03 09:31:04] Production.INFO: 117 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: count ==13 [2025-03-03 09:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:31:04] Production.INFO: count ==21 [2025-03-03 09:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597560') start [2025-03-03 09:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: ==2826== Lock acquired, processing the job... [2025-03-03 09:31:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:31:04] Production.INFO: ==2828== Lock acquired, processing the job... [2025-03-03 09:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: ==2830== Lock acquired, processing the job... [2025-03-03 09:31:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597560') end [2025-03-03 09:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:31:04] Production.INFO: 1 [2025-03-03 09:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:31:04] Production.INFO: ==2834== Lock acquired, processing the job... [2025-03-03 09:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: ==2836== Releasing lock... [2025-03-03 09:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:31:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:31:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:31:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:31:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:31:04] Production.ERROR: done [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: ==2828== Releasing lock... [2025-03-03 09:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:04] Production.ERROR: done [2025-03-03 09:31:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:31:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:31:05] Production.INFO: Total Charge 0 [2025-03-03 09:31:05] Production.INFO: CreateAllLog End [2025-03-03 09:31:05] Production.INFO: Account Balance End. [2025-03-03 09:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:31:05] Production.INFO: ==2832== Releasing lock... [2025-03-03 09:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:31:12] Production.ERROR: CronJobId end10 [2025-03-03 09:31:12] Production.INFO: ==2830== Releasing lock... [2025-03-03 09:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:31:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:31:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:31:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:31:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:31:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:31:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:31:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:31:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:31:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:31:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:31:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:31:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:31:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:31:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:31:16] Production.INFO: call_cost start [2025-03-03 09:31:16] Production.INFO: call_cost end [2025-03-03 09:31:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:31:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:31:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:31:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:31:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:31:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:31:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:31:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:31:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:31:16] Production.INFO: ==2826== Releasing lock... [2025-03-03 09:31:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:31:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:31:17] Production.INFO: count ==409 [2025-03-03 09:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597563', 'tblTempUsageDetail_20' ) start [2025-03-03 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597563', 'tblTempUsageDetail_20' ) end [2025-03-03 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597563', 'tblTempVendorCDR_20' ) start [2025-03-03 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597563', 'tblTempVendorCDR_20' ) end [2025-03-03 09:31:17] Production.INFO: ProcessCDR(1,14597563,1,1,2) [2025-03-03 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597563', 'tblTempUsageDetail_20' ) start [2025-03-03 09:31:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597563', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:31:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:31:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:31:26] Production.INFO: ==2834== Releasing lock... [2025-03-03 09:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:31:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:32:01] Production.INFO: ==2902== Lock acquired, processing the job... [2025-03-03 14:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:32:01] Production.INFO: neon service started [2025-03-03 14:32:01] Production.INFO: neon service started [2025-03-03 14:32:01] Production.INFO: ==2902== Releasing lock... [2025-03-03 14:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:32:02] Production.INFO: ==2906== Lock acquired, processing the job... [2025-03-03 14:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:32:02] Production.INFO: ==2906== Releasing lock... [2025-03-03 14:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:32:02] Production.INFO: ==2904== Lock acquired, processing the job... [2025-03-03 09:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:32:02] Production.INFO: ==2904== Releasing lock... [2025-03-03 09:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:32:03] Production.INFO: ==2915== Lock acquired, processing the job... [2025-03-03 09:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:32:03] Production.INFO: ==2917== Lock acquired, processing the job... [2025-03-03 09:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:32:03] Production.INFO: ==2911== Lock acquired, processing the job... [2025-03-03 09:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:32:03] Production.INFO: ==2909== Lock acquired, processing the job... [2025-03-03 09:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:32:03] Production.INFO: Account Balance Start. [2025-03-03 09:32:03] Production.INFO: CreateAllLog Start [2025-03-03 09:32:03] Production.INFO: 117 [2025-03-03 09:32:03] Production.INFO: ==2913== Lock acquired, processing the job... [2025-03-03 09:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: ==2919== Lock acquired, processing the job... [2025-03-03 09:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:32:04] Production.ERROR: done [2025-03-03 09:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: ==2911== Releasing lock... [2025-03-03 09:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:32:04] Production.INFO: count ==13 [2025-03-03 09:32:04] Production.ERROR: done [2025-03-03 09:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:32:04] Production.INFO: count ==21 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597567') start [2025-03-03 09:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597567') end [2025-03-03 09:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:32:04] Production.INFO: 1 [2025-03-03 09:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: ==2919== Releasing lock... [2025-03-03 09:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:32:05] Production.INFO: Total Charge 0 [2025-03-03 09:32:05] Production.INFO: CreateAllLog End [2025-03-03 09:32:05] Production.INFO: Account Balance End. [2025-03-03 09:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:32:05] Production.INFO: ==2915== Releasing lock... [2025-03-03 09:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:32:13] Production.ERROR: CronJobId end10 [2025-03-03 09:32:13] Production.INFO: ==2913== Releasing lock... [2025-03-03 09:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:32:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:32:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:32:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:32:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:32:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:32:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:32:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:32:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:32:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:32:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:32:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:32:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:32:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:32:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:32:16] Production.INFO: call_cost start [2025-03-03 09:32:16] Production.INFO: call_cost end [2025-03-03 09:32:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:32:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:32:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:32:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:32:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:32:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:32:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:32:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:32:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:32:16] Production.INFO: ==2909== Releasing lock... [2025-03-03 09:32:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:32:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:32:16] Production.INFO: count ==409 [2025-03-03 09:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597568', 'tblTempUsageDetail_20' ) start [2025-03-03 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597568', 'tblTempUsageDetail_20' ) end [2025-03-03 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597568', 'tblTempVendorCDR_20' ) start [2025-03-03 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597568', 'tblTempVendorCDR_20' ) end [2025-03-03 09:32:17] Production.INFO: ProcessCDR(1,14597568,1,1,2) [2025-03-03 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597568', 'tblTempUsageDetail_20' ) start [2025-03-03 09:32:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597568', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:32:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:32:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:32:25] Production.INFO: ==2917== Releasing lock... [2025-03-03 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:32:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:33:02] Production.INFO: ==2976== Lock acquired, processing the job... [2025-03-03 14:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:33:02] Production.INFO: neon service started [2025-03-03 14:33:02] Production.INFO: neon service started [2025-03-03 14:33:02] Production.INFO: ==2976== Releasing lock... [2025-03-03 14:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:33:02] Production.INFO: ==2980== Lock acquired, processing the job... [2025-03-03 14:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:33:02] Production.INFO: ==2980== Releasing lock... [2025-03-03 14:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:33:02] Production.INFO: ==2978== Lock acquired, processing the job... [2025-03-03 09:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:33:03] Production.INFO: ==2978== Releasing lock... [2025-03-03 09:33:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:33:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:33:04] Production.INFO: ==2987== Lock acquired, processing the job... [2025-03-03 09:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:33:04] Production.INFO: ==2991== Lock acquired, processing the job... [2025-03-03 09:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:33:04] Production.INFO: ==2983== Lock acquired, processing the job... [2025-03-03 09:33:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:33:04] Production.INFO: ==2985== Lock acquired, processing the job... [2025-03-03 09:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:33:04] Production.INFO: ==2989== Lock acquired, processing the job... [2025-03-03 09:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:33:04] Production.INFO: ==2993== Lock acquired, processing the job... [2025-03-03 09:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:33:04] Production.ERROR: done [2025-03-03 09:33:04] Production.INFO: Account Balance Start. [2025-03-03 09:33:04] Production.INFO: CreateAllLog Start [2025-03-03 09:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:33:04] Production.INFO: 117 [2025-03-03 09:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:04] Production.INFO: count ==13 [2025-03-03 09:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:04] Production.INFO: count ==21 [2025-03-03 09:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597572') start [2025-03-03 09:33:04] Production.ERROR: done [2025-03-03 09:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-11 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-12 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: ==2985== Releasing lock... [2025-03-03 09:33:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:33:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:33:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597572') end [2025-03-03 09:33:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:33:05] Production.INFO: 1 [2025-03-03 09:33:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:33:05] Production.INFO: ==2993== Releasing lock... [2025-03-03 09:33:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:33:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:33:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:33:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:33:05] Production.INFO: Total Charge 0 [2025-03-03 09:33:05] Production.INFO: CreateAllLog End [2025-03-03 09:33:06] Production.INFO: Account Balance End. [2025-03-03 09:33:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:33:06] Production.INFO: ==2989== Releasing lock... [2025-03-03 09:33:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:33:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:33:12] Production.ERROR: CronJobId end10 [2025-03-03 09:33:12] Production.INFO: ==2987== Releasing lock... [2025-03-03 09:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:33:15] Production.INFO: call_cost start [2025-03-03 09:33:15] Production.INFO: call_cost end [2025-03-03 09:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:33:15] Production.INFO: ==2983== Releasing lock... [2025-03-03 09:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:33:17] Production.INFO: count ==409 [2025-03-03 09:33:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597573', 'tblTempUsageDetail_20' ) start [2025-03-03 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597573', 'tblTempUsageDetail_20' ) end [2025-03-03 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597573', 'tblTempVendorCDR_20' ) start [2025-03-03 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597573', 'tblTempVendorCDR_20' ) end [2025-03-03 09:33:17] Production.INFO: ProcessCDR(1,14597573,1,1,2) [2025-03-03 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597573', 'tblTempUsageDetail_20' ) start [2025-03-03 09:33:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597573', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:33:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:33:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:33:25] Production.INFO: ==2991== Releasing lock... [2025-03-03 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:33:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:34:01] Production.INFO: ==3051== Lock acquired, processing the job... [2025-03-03 14:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:34:01] Production.INFO: neon service started [2025-03-03 14:34:01] Production.INFO: neon service started [2025-03-03 14:34:01] Production.INFO: ==3051== Releasing lock... [2025-03-03 14:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:34:02] Production.INFO: ==3053== Lock acquired, processing the job... [2025-03-03 09:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:34:02] Production.INFO: ==3055== Lock acquired, processing the job... [2025-03-03 14:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:34:02] Production.INFO: ==3055== Releasing lock... [2025-03-03 14:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:34:02] Production.INFO: ==3053== Releasing lock... [2025-03-03 09:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:34:03] Production.INFO: ==3058== Lock acquired, processing the job... [2025-03-03 09:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:34:03] Production.INFO: ==3062== Lock acquired, processing the job... [2025-03-03 09:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:34:03] Production.INFO: ==3066== Lock acquired, processing the job... [2025-03-03 09:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:34:04] Production.INFO: ==3064== Lock acquired, processing the job... [2025-03-03 09:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:34:04] Production.INFO: ==3060== Lock acquired, processing the job... [2025-03-03 09:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:34:04] Production.INFO: Account Balance Start. [2025-03-03 09:34:04] Production.INFO: CreateAllLog Start [2025-03-03 09:34:04] Production.INFO: ==3068== Lock acquired, processing the job... [2025-03-03 09:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:34:04] Production.INFO: 117 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.ERROR: done [2025-03-03 09:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: count ==13 [2025-03-03 09:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:34:04] Production.INFO: count ==21 [2025-03-03 09:34:04] Production.ERROR: done [2025-03-03 09:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597577') start [2025-03-03 09:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: ==3060== Releasing lock... [2025-03-03 09:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597577') end [2025-03-03 09:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:34:04] Production.INFO: 1 [2025-03-03 09:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: ==3068== Releasing lock... [2025-03-03 09:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:34:05] Production.INFO: Total Charge 0 [2025-03-03 09:34:05] Production.INFO: CreateAllLog End [2025-03-03 09:34:05] Production.INFO: Account Balance End. [2025-03-03 09:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:34:05] Production.INFO: ==3064== Releasing lock... [2025-03-03 09:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:34:11] Production.ERROR: CronJobId end10 [2025-03-03 09:34:11] Production.INFO: ==3062== Releasing lock... [2025-03-03 09:34:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:34:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:34:15] Production.INFO: call_cost start [2025-03-03 09:34:15] Production.INFO: call_cost end [2025-03-03 09:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:34:15] Production.INFO: ==3058== Releasing lock... [2025-03-03 09:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:34:16] Production.INFO: count ==409 [2025-03-03 09:34:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597578', 'tblTempUsageDetail_20' ) start [2025-03-03 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597578', 'tblTempUsageDetail_20' ) end [2025-03-03 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597578', 'tblTempVendorCDR_20' ) start [2025-03-03 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597578', 'tblTempVendorCDR_20' ) end [2025-03-03 09:34:16] Production.INFO: ProcessCDR(1,14597578,1,1,2) [2025-03-03 09:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597578', 'tblTempUsageDetail_20' ) start [2025-03-03 09:34:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597578', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:34:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:34:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:34:25] Production.INFO: ==3066== Releasing lock... [2025-03-03 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:34:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:35:02] Production.INFO: ==3135== Lock acquired, processing the job... [2025-03-03 14:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:35:02] Production.INFO: neon service started [2025-03-03 14:35:02] Production.INFO: neon service started [2025-03-03 14:35:02] Production.INFO: ==3135== Releasing lock... [2025-03-03 14:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:35:02] Production.INFO: ==3137== Lock acquired, processing the job... [2025-03-03 09:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:35:03] Production.INFO: ==3137== Releasing lock... [2025-03-03 09:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:35:03] Production.INFO: ==3139== Lock acquired, processing the job... [2025-03-03 14:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:35:03] Production.INFO: ==3139== Releasing lock... [2025-03-03 14:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:35:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:35:03] Production.INFO: ==3147== Lock acquired, processing the job... [2025-03-03 09:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:35:03] Production.INFO: Account Balance Start. [2025-03-03 09:35:03] Production.INFO: CreateAllLog Start [2025-03-03 09:35:04] Production.INFO: 117 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: ==3141== Lock acquired, processing the job... [2025-03-03 09:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: ==3151== Lock acquired, processing the job... [2025-03-03 09:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:35:04] Production.INFO: ==3143== Lock acquired, processing the job... [2025-03-03 09:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:35:04] Production.INFO: ==3145== Lock acquired, processing the job... [2025-03-03 09:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:35:04] Production.INFO: count ==13 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:35:04] Production.INFO: count ==21 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597580') start [2025-03-03 09:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: ==3149== Lock acquired, processing the job... [2025-03-03 09:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597580') end [2025-03-03 09:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:35:04] Production.INFO: 1 [2025-03-03 09:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:35:04] Production.INFO: ==3151== Releasing lock... [2025-03-03 09:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: ==3143== Releasing lock... [2025-03-03 09:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:35:04] Production.ERROR: done [2025-03-03 09:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:05] Production.ERROR: done [2025-03-03 09:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:35:05] Production.INFO: Total Charge 0 [2025-03-03 09:35:05] Production.INFO: CreateAllLog End [2025-03-03 09:35:05] Production.INFO: Account Balance End. [2025-03-03 09:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:35:05] Production.INFO: ==3147== Releasing lock... [2025-03-03 09:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:35:12] Production.ERROR: CronJobId end10 [2025-03-03 09:35:13] Production.INFO: ==3145== Releasing lock... [2025-03-03 09:35:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:35:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:35:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:35:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:35:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:35:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:35:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:35:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:35:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:35:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:35:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:35:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:35:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:35:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:35:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:35:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:35:16] Production.INFO: call_cost start [2025-03-03 09:35:16] Production.INFO: call_cost end [2025-03-03 09:35:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:35:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:35:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:35:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:35:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:35:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:35:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:35:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:35:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:35:16] Production.INFO: ==3141== Releasing lock... [2025-03-03 09:35:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:35:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:35:17] Production.INFO: count ==409 [2025-03-03 09:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597583', 'tblTempUsageDetail_20' ) start [2025-03-03 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597583', 'tblTempUsageDetail_20' ) end [2025-03-03 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597583', 'tblTempVendorCDR_20' ) start [2025-03-03 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597583', 'tblTempVendorCDR_20' ) end [2025-03-03 09:35:17] Production.INFO: ProcessCDR(1,14597583,1,1,2) [2025-03-03 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597583', 'tblTempUsageDetail_20' ) start [2025-03-03 09:35:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597583', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:35:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:35:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:35:26] Production.INFO: ==3149== Releasing lock... [2025-03-03 09:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:35:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:36:01] Production.INFO: ==3223== Lock acquired, processing the job... [2025-03-03 14:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:36:01] Production.INFO: neon service started [2025-03-03 14:36:01] Production.INFO: neon service started [2025-03-03 14:36:01] Production.INFO: ==3223== Releasing lock... [2025-03-03 14:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:36:02] Production.INFO: ==3227== Lock acquired, processing the job... [2025-03-03 14:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:36:02] Production.INFO: ==3227== Releasing lock... [2025-03-03 14:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:36:02] Production.INFO: ==3225== Lock acquired, processing the job... [2025-03-03 09:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:36:02] Production.INFO: ==3225== Releasing lock... [2025-03-03 09:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:36:03] Production.INFO: ==3234== Lock acquired, processing the job... [2025-03-03 09:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:36:03] Production.INFO: ==3238== Lock acquired, processing the job... [2025-03-03 09:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:36:03] Production.INFO: ==3230== Lock acquired, processing the job... [2025-03-03 09:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:36:03] Production.INFO: ==3232== Lock acquired, processing the job... [2025-03-03 09:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:36:03] Production.INFO: ==3236== Lock acquired, processing the job... [2025-03-03 09:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:36:03] Production.ERROR: done [2025-03-03 09:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:36:04] Production.INFO: ==3240== Lock acquired, processing the job... [2025-03-03 09:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:36:04] Production.INFO: Account Balance Start. [2025-03-03 09:36:04] Production.INFO: CreateAllLog Start [2025-03-03 09:36:04] Production.INFO: 117 [2025-03-03 09:36:04] Production.ERROR: done [2025-03-03 09:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:36:04] Production.INFO: count ==13 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:36:04] Production.INFO: count ==21 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597588') start [2025-03-03 09:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: ==3232== Releasing lock... [2025-03-03 09:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597588') end [2025-03-03 09:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:36:04] Production.INFO: 1 [2025-03-03 09:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:36:04] Production.INFO: ==3240== Releasing lock... [2025-03-03 09:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:36:05] Production.INFO: Total Charge 0 [2025-03-03 09:36:05] Production.INFO: CreateAllLog End [2025-03-03 09:36:05] Production.INFO: Account Balance End. [2025-03-03 09:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:36:05] Production.INFO: ==3236== Releasing lock... [2025-03-03 09:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:36:12] Production.ERROR: CronJobId end10 [2025-03-03 09:36:12] Production.INFO: ==3234== Releasing lock... [2025-03-03 09:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:36:16] Production.INFO: call_cost start [2025-03-03 09:36:16] Production.INFO: call_cost end [2025-03-03 09:36:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:36:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:36:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:36:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:36:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:36:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:36:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:36:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:36:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:36:16] Production.INFO: ==3230== Releasing lock... [2025-03-03 09:36:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:36:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:36:16] Production.INFO: count ==409 [2025-03-03 09:36:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597587', 'tblTempUsageDetail_20' ) start [2025-03-03 09:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597587', 'tblTempUsageDetail_20' ) end [2025-03-03 09:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597587', 'tblTempVendorCDR_20' ) start [2025-03-03 09:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597587', 'tblTempVendorCDR_20' ) end [2025-03-03 09:36:16] Production.INFO: ProcessCDR(1,14597587,1,1,2) [2025-03-03 09:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597587', 'tblTempUsageDetail_20' ) start [2025-03-03 09:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597587', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:36:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:36:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:36:25] Production.INFO: ==3238== Releasing lock... [2025-03-03 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:36:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:37:02] Production.INFO: ==3307== Lock acquired, processing the job... [2025-03-03 14:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:37:02] Production.INFO: neon service started [2025-03-03 14:37:02] Production.INFO: neon service started [2025-03-03 14:37:02] Production.INFO: ==3307== Releasing lock... [2025-03-03 14:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:37:02] Production.INFO: ==3309== Lock acquired, processing the job... [2025-03-03 09:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:37:02] Production.INFO: ==3309== Releasing lock... [2025-03-03 09:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:37:03] Production.INFO: ==3311== Lock acquired, processing the job... [2025-03-03 14:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:37:03] Production.INFO: ==3311== Releasing lock... [2025-03-03 14:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:37:03] Production.INFO: ==3314== Lock acquired, processing the job... [2025-03-03 09:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:37:03] Production.INFO: ==3322== Lock acquired, processing the job... [2025-03-03 09:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:37:04] Production.INFO: ==3324== Lock acquired, processing the job... [2025-03-03 09:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:37:04] Production.INFO: ==3316== Lock acquired, processing the job... [2025-03-03 09:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:37:04] Production.INFO: ==3318== Lock acquired, processing the job... [2025-03-03 09:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:37:04] Production.INFO: ==3320== Lock acquired, processing the job... [2025-03-03 09:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:37:04] Production.INFO: Account Balance Start. [2025-03-03 09:37:04] Production.INFO: CreateAllLog Start [2025-03-03 09:37:04] Production.INFO: 117 [2025-03-03 09:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:37:04] Production.INFO: count ==13 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: count ==21 [2025-03-03 09:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597590') start [2025-03-03 09:37:04] Production.ERROR: done [2025-03-03 09:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.ERROR: done [2025-03-03 09:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597590') end [2025-03-03 09:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:37:04] Production.INFO: 1 [2025-03-03 09:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:37:04] Production.INFO: ==3316== Releasing lock... [2025-03-03 09:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: ==3324== Releasing lock... [2025-03-03 09:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:37:05] Production.INFO: Total Charge 0 [2025-03-03 09:37:05] Production.INFO: CreateAllLog End [2025-03-03 09:37:05] Production.INFO: Account Balance End. [2025-03-03 09:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:37:05] Production.INFO: ==3320== Releasing lock... [2025-03-03 09:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:37:12] Production.ERROR: CronJobId end10 [2025-03-03 09:37:12] Production.INFO: ==3318== Releasing lock... [2025-03-03 09:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:37:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:37:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:37:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:37:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:37:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:37:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:37:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:37:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:37:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:37:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:37:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:37:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:37:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:37:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:37:16] Production.INFO: call_cost start [2025-03-03 09:37:16] Production.INFO: call_cost end [2025-03-03 09:37:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:37:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:37:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:37:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:37:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:37:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:37:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:37:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:37:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:37:16] Production.INFO: ==3314== Releasing lock... [2025-03-03 09:37:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:37:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:37:16] Production.INFO: count ==409 [2025-03-03 09:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597593', 'tblTempUsageDetail_20' ) start [2025-03-03 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597593', 'tblTempUsageDetail_20' ) end [2025-03-03 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597593', 'tblTempVendorCDR_20' ) start [2025-03-03 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597593', 'tblTempVendorCDR_20' ) end [2025-03-03 09:37:17] Production.INFO: ProcessCDR(1,14597593,1,1,2) [2025-03-03 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597593', 'tblTempUsageDetail_20' ) start [2025-03-03 09:37:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597593', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:37:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:37:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:37:25] Production.INFO: ==3322== Releasing lock... [2025-03-03 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:37:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:38:01] Production.INFO: ==3435== Lock acquired, processing the job... [2025-03-03 14:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:38:01] Production.INFO: neon service started [2025-03-03 14:38:01] Production.INFO: neon service started [2025-03-03 14:38:01] Production.INFO: ==3435== Releasing lock... [2025-03-03 14:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:38:02] Production.INFO: ==3439== Lock acquired, processing the job... [2025-03-03 14:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:38:02] Production.INFO: ==3439== Releasing lock... [2025-03-03 14:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:38:02] Production.INFO: ==3437== Lock acquired, processing the job... [2025-03-03 09:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:38:02] Production.INFO: ==3437== Releasing lock... [2025-03-03 09:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:38:03] Production.INFO: ==3448== Lock acquired, processing the job... [2025-03-03 09:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:38:03] Production.INFO: ==3454== Lock acquired, processing the job... [2025-03-03 09:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:38:04] Production.INFO: count ==13 [2025-03-03 09:38:04] Production.INFO: ==3452== Lock acquired, processing the job... [2025-03-03 09:38:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:38:04] Production.INFO: count ==21 [2025-03-03 09:38:04] Production.INFO: ==3444== Lock acquired, processing the job... [2025-03-03 09:38:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597594') start [2025-03-03 09:38:04] Production.INFO: ==3446== Lock acquired, processing the job... [2025-03-03 09:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597594') end [2025-03-03 09:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:38:04] Production.INFO: 1 [2025-03-03 09:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:38:04] Production.INFO: ==3450== Lock acquired, processing the job... [2025-03-03 09:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:38:04] Production.INFO: ==3454== Releasing lock... [2025-03-03 09:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:38:04] Production.INFO: Account Balance Start. [2025-03-03 09:38:04] Production.INFO: CreateAllLog Start [2025-03-03 09:38:04] Production.INFO: 117 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.ERROR: done [2025-03-03 09:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.ERROR: done [2025-03-03 09:38:05] Production.INFO: ==3446== Releasing lock... [2025-03-03 09:38:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:38:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:38:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:38:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:38:05] Production.INFO: Total Charge 0 [2025-03-03 09:38:05] Production.INFO: CreateAllLog End [2025-03-03 09:38:05] Production.INFO: Account Balance End. [2025-03-03 09:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:38:05] Production.INFO: ==3450== Releasing lock... [2025-03-03 09:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:38:12] Production.ERROR: CronJobId end10 [2025-03-03 09:38:12] Production.INFO: ==3448== Releasing lock... [2025-03-03 09:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:38:15] Production.INFO: call_cost start [2025-03-03 09:38:15] Production.INFO: call_cost end [2025-03-03 09:38:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:38:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:38:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:38:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:38:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:38:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:38:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:38:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:38:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:38:15] Production.INFO: ==3444== Releasing lock... [2025-03-03 09:38:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:38:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:38:17] Production.INFO: count ==409 [2025-03-03 09:38:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597598', 'tblTempUsageDetail_20' ) start [2025-03-03 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597598', 'tblTempUsageDetail_20' ) end [2025-03-03 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597598', 'tblTempVendorCDR_20' ) start [2025-03-03 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597598', 'tblTempVendorCDR_20' ) end [2025-03-03 09:38:17] Production.INFO: ProcessCDR(1,14597598,1,1,2) [2025-03-03 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597598', 'tblTempUsageDetail_20' ) start [2025-03-03 09:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597598', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:38:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:38:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:38:25] Production.INFO: ==3452== Releasing lock... [2025-03-03 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:38:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:39:02] Production.INFO: ==3526== Lock acquired, processing the job... [2025-03-03 14:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:39:02] Production.INFO: neon service started [2025-03-03 14:39:02] Production.INFO: neon service started [2025-03-03 14:39:02] Production.INFO: ==3526== Releasing lock... [2025-03-03 14:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:39:02] Production.INFO: ==3528== Lock acquired, processing the job... [2025-03-03 09:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:39:02] Production.INFO: ==3528== Releasing lock... [2025-03-03 09:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:39:03] Production.INFO: ==3530== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:39:03] Production.INFO: ==3530== Releasing lock... [2025-03-03 14:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:39:03] Production.INFO: ==3537== Lock acquired, processing the job... [2025-03-03 09:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:39:04] Production.INFO: ==3543== Lock acquired, processing the job... [2025-03-03 09:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:39:04] Production.INFO: ==3533== Lock acquired, processing the job... [2025-03-03 09:39:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:39:04] Production.INFO: count ==13 [2025-03-03 09:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:39:04] Production.INFO: count ==21 [2025-03-03 09:39:04] Production.INFO: ==3535== Lock acquired, processing the job... [2025-03-03 09:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597599') start [2025-03-03 09:39:04] Production.INFO: ==3539== Lock acquired, processing the job... [2025-03-03 09:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:39:04] Production.INFO: ==3541== Lock acquired, processing the job... [2025-03-03 09:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:39:04] Production.INFO: Account Balance Start. [2025-03-03 09:39:04] Production.INFO: CreateAllLog Start [2025-03-03 09:39:04] Production.INFO: 117 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597599') end [2025-03-03 09:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:39:04] Production.INFO: 1 [2025-03-03 09:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:39:04] Production.INFO: ==3543== Releasing lock... [2025-03-03 09:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: ==3535== Releasing lock... [2025-03-03 09:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:04] Production.ERROR: done [2025-03-03 09:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.ERROR: done [2025-03-03 09:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:39:05] Production.INFO: Total Charge 0 [2025-03-03 09:39:05] Production.INFO: CreateAllLog End [2025-03-03 09:39:05] Production.INFO: Account Balance End. [2025-03-03 09:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:39:05] Production.INFO: ==3539== Releasing lock... [2025-03-03 09:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:39:12] Production.ERROR: CronJobId end10 [2025-03-03 09:39:12] Production.INFO: ==3537== Releasing lock... [2025-03-03 09:39:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:39:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:39:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:39:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:39:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:39:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:39:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:39:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:39:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:39:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:39:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:39:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:39:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:39:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:39:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:39:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:39:16] Production.INFO: call_cost start [2025-03-03 09:39:16] Production.INFO: call_cost end [2025-03-03 09:39:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:39:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:39:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:39:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:39:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:39:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:39:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:39:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:39:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:39:16] Production.INFO: ==3533== Releasing lock... [2025-03-03 09:39:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:39:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:39:17] Production.INFO: count ==409 [2025-03-03 09:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597603', 'tblTempUsageDetail_20' ) start [2025-03-03 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597603', 'tblTempUsageDetail_20' ) end [2025-03-03 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597603', 'tblTempVendorCDR_20' ) start [2025-03-03 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597603', 'tblTempVendorCDR_20' ) end [2025-03-03 09:39:17] Production.INFO: ProcessCDR(1,14597603,1,1,2) [2025-03-03 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597603', 'tblTempUsageDetail_20' ) start [2025-03-03 09:39:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597603', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:39:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:39:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:39:26] Production.INFO: ==3541== Releasing lock... [2025-03-03 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:39:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:40:01] Production.INFO: ==3612== Lock acquired, processing the job... [2025-03-03 14:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:40:01] Production.INFO: neon service started [2025-03-03 14:40:01] Production.INFO: neon service started [2025-03-03 14:40:01] Production.INFO: ==3612== Releasing lock... [2025-03-03 14:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:40:02] Production.INFO: ==3614== Lock acquired, processing the job... [2025-03-03 09:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:40:02] Production.INFO: ==3616== Lock acquired, processing the job... [2025-03-03 14:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:40:02] Production.INFO: ==3616== Releasing lock... [2025-03-03 14:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:40:02] Production.INFO: ==3614== Releasing lock... [2025-03-03 09:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:40:04] Production.INFO: ==3619== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 09:40:04] Production.INFO: ==3625== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 09:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 09:40:04] Production.INFO: ==3619== Releasing lock... [2025-03-03 09:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 09:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 09:40:04] Production.INFO: ==3629== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:40:04] Production.INFO: ==3633== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:40:04] Production.INFO: ==3621== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:40:04] Production.INFO: count ==13 [2025-03-03 09:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:40:04] Production.INFO: count ==21 [2025-03-03 09:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597604') start [2025-03-03 09:40:04] Production.INFO: ==3623== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:40:04] Production.INFO: ==3627== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:40:04] Production.INFO: ==3631== Lock acquired, processing the job... [2025-03-03 09:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 09:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597604') end [2025-03-03 09:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:40:04] Production.INFO: 1 [2025-03-03 09:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:40:04] Production.INFO: Account Balance Start. [2025-03-03 09:40:04] Production.INFO: CreateAllLog Start [2025-03-03 09:40:04] Production.INFO: 117 [2025-03-03 09:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:40:04] Production.INFO: ==3633== Releasing lock... [2025-03-03 09:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:40:04] Production.ERROR: done [2025-03-03 09:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: ==3623== Releasing lock... [2025-03-03 09:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:40:05] Production.ERROR: done [2025-03-03 09:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.ERROR: done [2025-03-03 09:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 09:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597609', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 09:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:40:05] Production.INFO: Total Charge 0 [2025-03-03 09:40:05] Production.INFO: CreateAllLog End [2025-03-03 09:40:05] Production.INFO: Account Balance End. [2025-03-03 09:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:40:06] Production.INFO: ==3627== Releasing lock... [2025-03-03 09:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:40:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597609', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 09:40:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 09:40:10] Production.INFO: ProcessCDR(1,14597609,1,1,2) [2025-03-03 09:40:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597609,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:40:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597609,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:40:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 09:40:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 09:40:10] Production.INFO: ==3631== Releasing lock... [2025-03-03 09:40:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 09:40:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:40:14] Production.ERROR: CronJobId end10 [2025-03-03 09:40:14] Production.INFO: ==3625== Releasing lock... [2025-03-03 09:40:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:40:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:40:17] Production.INFO: count ==409 [2025-03-03 09:40:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597608', 'tblTempUsageDetail_20' ) start [2025-03-03 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597608', 'tblTempUsageDetail_20' ) end [2025-03-03 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597608', 'tblTempVendorCDR_20' ) start [2025-03-03 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597608', 'tblTempVendorCDR_20' ) end [2025-03-03 09:40:17] Production.INFO: ProcessCDR(1,14597608,1,1,2) [2025-03-03 09:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:40:17] Production.INFO: call_cost start [2025-03-03 09:40:17] Production.INFO: call_cost end [2025-03-03 09:40:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:40:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:40:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:40:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:40:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:40:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:40:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:40:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:40:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:40:17] Production.INFO: ==3621== Releasing lock... [2025-03-03 09:40:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:40:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597608', 'tblTempUsageDetail_20' ) start [2025-03-03 09:40:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597608', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:40:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:40:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:40:26] Production.INFO: ==3629== Releasing lock... [2025-03-03 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:40:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:41:02] Production.INFO: ==3709== Lock acquired, processing the job... [2025-03-03 14:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:41:02] Production.INFO: neon service started [2025-03-03 14:41:02] Production.INFO: neon service started [2025-03-03 14:41:02] Production.INFO: ==3709== Releasing lock... [2025-03-03 14:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:41:02] Production.INFO: ==3711== Lock acquired, processing the job... [2025-03-03 09:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:41:03] Production.INFO: ==3711== Releasing lock... [2025-03-03 09:41:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:41:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:41:03] Production.INFO: ==3713== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:41:03] Production.INFO: ==3713== Releasing lock... [2025-03-03 14:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:41:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:41:04] Production.INFO: ==3720== Lock acquired, processing the job... [2025-03-03 09:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:41:04] Production.INFO: ==3726== Lock acquired, processing the job... [2025-03-03 09:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:41:04] Production.INFO: ==3716== Lock acquired, processing the job... [2025-03-03 09:41:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:41:04] Production.INFO: ==3718== Lock acquired, processing the job... [2025-03-03 09:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:41:04] Production.INFO: count ==13 [2025-03-03 09:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:41:04] Production.INFO: count ==21 [2025-03-03 09:41:04] Production.INFO: ==3722== Lock acquired, processing the job... [2025-03-03 09:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597610') start [2025-03-03 09:41:04] Production.INFO: ==3724== Lock acquired, processing the job... [2025-03-03 09:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597610') end [2025-03-03 09:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:41:04] Production.INFO: 1 [2025-03-03 09:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:41:04] Production.INFO: Account Balance Start. [2025-03-03 09:41:04] Production.INFO: CreateAllLog Start [2025-03-03 09:41:04] Production.INFO: 117 [2025-03-03 09:41:04] Production.INFO: ==3726== Releasing lock... [2025-03-03 09:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:04] Production.INFO: ==3718== Releasing lock... [2025-03-03 09:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:41:05] Production.INFO: Date 2025-02-09 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-10 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.ERROR: done [2025-03-03 09:41:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-11 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-12 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.ERROR: done [2025-03-03 09:41:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:41:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:06] Production.INFO: Date 2025-02-28 [2025-03-03 09:41:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:06] Production.INFO: Date 2025-03-01 [2025-03-03 09:41:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:06] Production.INFO: Date 2025-03-02 [2025-03-03 09:41:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:06] Production.INFO: Date 2025-03-03 [2025-03-03 09:41:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:41:06] Production.INFO: Total Charge 0 [2025-03-03 09:41:06] Production.INFO: CreateAllLog End [2025-03-03 09:41:06] Production.INFO: Account Balance End. [2025-03-03 09:41:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:41:06] Production.INFO: ==3722== Releasing lock... [2025-03-03 09:41:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:41:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:41:15] Production.ERROR: CronJobId end10 [2025-03-03 09:41:15] Production.INFO: ==3720== Releasing lock... [2025-03-03 09:41:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:41:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:41:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:41:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:41:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:41:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:41:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:41:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:41:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:41:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:41:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:41:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:41:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:41:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:41:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:41:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:41:17] Production.INFO: count ==409 [2025-03-03 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597614', 'tblTempUsageDetail_20' ) start [2025-03-03 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597614', 'tblTempUsageDetail_20' ) end [2025-03-03 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597614', 'tblTempVendorCDR_20' ) start [2025-03-03 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597614', 'tblTempVendorCDR_20' ) end [2025-03-03 09:41:18] Production.INFO: ProcessCDR(1,14597614,1,1,2) [2025-03-03 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:41:18] Production.INFO: call_cost start [2025-03-03 09:41:18] Production.INFO: call_cost end [2025-03-03 09:41:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:41:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:41:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:41:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:41:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:41:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:41:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:41:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:41:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:41:18] Production.INFO: ==3716== Releasing lock... [2025-03-03 09:41:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:41:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597614', 'tblTempUsageDetail_20' ) start [2025-03-03 09:41:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597614', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:41:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:41:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:41:26] Production.INFO: ==3724== Releasing lock... [2025-03-03 09:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:41:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:42:01] Production.INFO: ==3796== Lock acquired, processing the job... [2025-03-03 14:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:42:01] Production.INFO: neon service started [2025-03-03 14:42:01] Production.INFO: neon service started [2025-03-03 14:42:01] Production.INFO: ==3796== Releasing lock... [2025-03-03 14:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:42:02] Production.INFO: ==3798== Lock acquired, processing the job... [2025-03-03 09:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:42:02] Production.INFO: ==3800== Lock acquired, processing the job... [2025-03-03 14:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:42:02] Production.INFO: ==3800== Releasing lock... [2025-03-03 14:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:42:03] Production.INFO: ==3798== Releasing lock... [2025-03-03 09:42:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:42:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:42:03] Production.INFO: ==3805== Lock acquired, processing the job... [2025-03-03 09:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:42:04] Production.INFO: ==3807== Lock acquired, processing the job... [2025-03-03 09:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:42:04] Production.INFO: ==3811== Lock acquired, processing the job... [2025-03-03 09:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:42:04] Production.INFO: Account Balance Start. [2025-03-03 09:42:04] Production.INFO: CreateAllLog Start [2025-03-03 09:42:04] Production.INFO: 117 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: ==3809== Lock acquired, processing the job... [2025-03-03 09:42:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: ==3807== Releasing lock... [2025-03-03 09:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: ==3815== Lock acquired, processing the job... [2025-03-03 09:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: ==3813== Lock acquired, processing the job... [2025-03-03 09:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: count ==13 [2025-03-03 09:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:42:04] Production.INFO: count ==21 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597618') start [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597618') end [2025-03-03 09:42:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:42:05] Production.INFO: 1 [2025-03-03 09:42:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:42:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.ERROR: done [2025-03-03 09:42:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:42:05] Production.INFO: ==3815== Releasing lock... [2025-03-03 09:42:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:42:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:42:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.ERROR: done [2025-03-03 09:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:42:05] Production.INFO: Total Charge 0 [2025-03-03 09:42:05] Production.INFO: CreateAllLog End [2025-03-03 09:42:05] Production.INFO: Account Balance End. [2025-03-03 09:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:42:05] Production.INFO: ==3811== Releasing lock... [2025-03-03 09:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:42:13] Production.ERROR: CronJobId end10 [2025-03-03 09:42:13] Production.INFO: ==3809== Releasing lock... [2025-03-03 09:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:42:16] Production.INFO: call_cost start [2025-03-03 09:42:16] Production.INFO: call_cost end [2025-03-03 09:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:42:16] Production.INFO: ==3805== Releasing lock... [2025-03-03 09:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:42:17] Production.INFO: count ==409 [2025-03-03 09:42:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597619', 'tblTempUsageDetail_20' ) start [2025-03-03 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597619', 'tblTempUsageDetail_20' ) end [2025-03-03 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597619', 'tblTempVendorCDR_20' ) start [2025-03-03 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597619', 'tblTempVendorCDR_20' ) end [2025-03-03 09:42:17] Production.INFO: ProcessCDR(1,14597619,1,1,2) [2025-03-03 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597619', 'tblTempUsageDetail_20' ) start [2025-03-03 09:42:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597619', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:42:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:42:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:42:26] Production.INFO: ==3813== Releasing lock... [2025-03-03 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:42:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:43:01] Production.INFO: ==3879== Lock acquired, processing the job... [2025-03-03 14:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:43:01] Production.INFO: neon service started [2025-03-03 14:43:01] Production.INFO: neon service started [2025-03-03 14:43:01] Production.INFO: ==3879== Releasing lock... [2025-03-03 14:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:43:02] Production.INFO: ==3881== Lock acquired, processing the job... [2025-03-03 09:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:43:02] Production.INFO: ==3883== Lock acquired, processing the job... [2025-03-03 14:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:43:02] Production.INFO: ==3883== Releasing lock... [2025-03-03 14:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:43:02] Production.INFO: ==3881== Releasing lock... [2025-03-03 09:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:43:03] Production.INFO: ==3886== Lock acquired, processing the job... [2025-03-03 09:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:43:03] Production.INFO: ==3890== Lock acquired, processing the job... [2025-03-03 09:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:43:03] Production.INFO: ==3892== Lock acquired, processing the job... [2025-03-03 09:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:43:03] Production.INFO: ==3888== Lock acquired, processing the job... [2025-03-03 09:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:43:03] Production.INFO: Account Balance Start. [2025-03-03 09:43:03] Production.INFO: CreateAllLog Start [2025-03-03 09:43:03] Production.INFO: 117 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-11 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: ==3894== Lock acquired, processing the job... [2025-03-03 09:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:43:03] Production.INFO: Date 2025-02-12 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-13 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-14 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.INFO: Date 2025-02-15 [2025-03-03 09:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: ==3896== Lock acquired, processing the job... [2025-03-03 09:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: ==3888== Releasing lock... [2025-03-03 09:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: count ==13 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:43:04] Production.INFO: count ==21 [2025-03-03 09:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597623') start [2025-03-03 09:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.ERROR: done [2025-03-03 09:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597623') end [2025-03-03 09:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:43:04] Production.INFO: 1 [2025-03-03 09:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:43:04] Production.INFO: ==3896== Releasing lock... [2025-03-03 09:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.ERROR: done [2025-03-03 09:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:43:04] Production.INFO: Total Charge 0 [2025-03-03 09:43:04] Production.INFO: CreateAllLog End [2025-03-03 09:43:05] Production.INFO: Account Balance End. [2025-03-03 09:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:43:05] Production.INFO: ==3892== Releasing lock... [2025-03-03 09:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:43:12] Production.ERROR: CronJobId end10 [2025-03-03 09:43:12] Production.INFO: ==3890== Releasing lock... [2025-03-03 09:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:43:14] Production.INFO: call_cost start [2025-03-03 09:43:14] Production.INFO: call_cost end [2025-03-03 09:43:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:43:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:43:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:43:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:43:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:43:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:43:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:43:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:43:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:43:14] Production.INFO: ==3886== Releasing lock... [2025-03-03 09:43:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:43:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:43:17] Production.INFO: count ==409 [2025-03-03 09:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597624', 'tblTempUsageDetail_20' ) start [2025-03-03 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597624', 'tblTempUsageDetail_20' ) end [2025-03-03 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597624', 'tblTempVendorCDR_20' ) start [2025-03-03 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597624', 'tblTempVendorCDR_20' ) end [2025-03-03 09:43:17] Production.INFO: ProcessCDR(1,14597624,1,1,2) [2025-03-03 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597624', 'tblTempUsageDetail_20' ) start [2025-03-03 09:43:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597624', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:43:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:43:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:43:25] Production.INFO: ==3894== Releasing lock... [2025-03-03 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:43:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:44:01] Production.INFO: ==3960== Lock acquired, processing the job... [2025-03-03 14:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:44:01] Production.INFO: neon service started [2025-03-03 14:44:01] Production.INFO: neon service started [2025-03-03 14:44:01] Production.INFO: ==3960== Releasing lock... [2025-03-03 14:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:44:02] Production.INFO: ==3962== Lock acquired, processing the job... [2025-03-03 09:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:44:02] Production.INFO: ==3964== Lock acquired, processing the job... [2025-03-03 14:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:44:02] Production.INFO: ==3964== Releasing lock... [2025-03-03 14:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:44:02] Production.INFO: ==3962== Releasing lock... [2025-03-03 09:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:44:03] Production.INFO: ==3971== Lock acquired, processing the job... [2025-03-03 09:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:44:03] Production.INFO: ==3973== Lock acquired, processing the job... [2025-03-03 09:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:44:03] Production.INFO: ==3977== Lock acquired, processing the job... [2025-03-03 09:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:44:03] Production.INFO: Account Balance Start. [2025-03-03 09:44:03] Production.INFO: CreateAllLog Start [2025-03-03 09:44:03] Production.INFO: 117 [2025-03-03 09:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:03] Production.INFO: ==3967== Lock acquired, processing the job... [2025-03-03 09:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:44:03] Production.INFO: count ==13 [2025-03-03 09:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:44:03] Production.INFO: count ==21 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597626') start [2025-03-03 09:44:04] Production.INFO: ==3969== Lock acquired, processing the job... [2025-03-03 09:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597626') end [2025-03-03 09:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:44:04] Production.INFO: 1 [2025-03-03 09:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:44:04] Production.INFO: ==3975== Lock acquired, processing the job... [2025-03-03 09:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: ==3977== Releasing lock... [2025-03-03 09:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: ==3969== Releasing lock... [2025-03-03 09:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.ERROR: done [2025-03-03 09:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.ERROR: done [2025-03-03 09:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:44:05] Production.INFO: Total Charge 0 [2025-03-03 09:44:05] Production.INFO: CreateAllLog End [2025-03-03 09:44:05] Production.INFO: Account Balance End. [2025-03-03 09:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:44:05] Production.INFO: ==3973== Releasing lock... [2025-03-03 09:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:44:12] Production.ERROR: CronJobId end10 [2025-03-03 09:44:12] Production.INFO: ==3971== Releasing lock... [2025-03-03 09:44:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:44:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:44:16] Production.INFO: call_cost start [2025-03-03 09:44:16] Production.INFO: call_cost end [2025-03-03 09:44:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:44:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:44:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:44:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:44:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:44:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:44:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:44:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:44:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:44:16] Production.INFO: ==3967== Releasing lock... [2025-03-03 09:44:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:44:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:44:17] Production.INFO: count ==409 [2025-03-03 09:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597629', 'tblTempUsageDetail_20' ) start [2025-03-03 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597629', 'tblTempUsageDetail_20' ) end [2025-03-03 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597629', 'tblTempVendorCDR_20' ) start [2025-03-03 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597629', 'tblTempVendorCDR_20' ) end [2025-03-03 09:44:17] Production.INFO: ProcessCDR(1,14597629,1,1,2) [2025-03-03 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597629', 'tblTempUsageDetail_20' ) start [2025-03-03 09:44:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597629', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:44:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:44:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:44:26] Production.INFO: ==3975== Releasing lock... [2025-03-03 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:44:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:45:01] Production.INFO: ==4046== Lock acquired, processing the job... [2025-03-03 14:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:45:01] Production.INFO: neon service started [2025-03-03 14:45:01] Production.INFO: neon service started [2025-03-03 14:45:01] Production.INFO: ==4046== Releasing lock... [2025-03-03 14:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:45:02] Production.INFO: ==4050== Lock acquired, processing the job... [2025-03-03 09:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:45:02] Production.INFO: ==4052== Lock acquired, processing the job... [2025-03-03 14:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:45:02] Production.INFO: ==4052== Releasing lock... [2025-03-03 14:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:45:02] Production.INFO: ==4050== Releasing lock... [2025-03-03 09:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:45:03] Production.INFO: ==4055== Lock acquired, processing the job... [2025-03-03 09:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:45:03] Production.INFO: ==4057== Lock acquired, processing the job... [2025-03-03 09:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:45:03] Production.INFO: ==4059== Lock acquired, processing the job... [2025-03-03 09:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:45:03] Production.INFO: ==4057== Releasing lock... [2025-03-03 09:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:45:03] Production.INFO: ==4061== Lock acquired, processing the job... [2025-03-03 09:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:45:04] Production.INFO: ==4065== Lock acquired, processing the job... [2025-03-03 09:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:45:04] Production.INFO: ==4063== Lock acquired, processing the job... [2025-03-03 09:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:45:04] Production.INFO: Account Balance Start. [2025-03-03 09:45:04] Production.INFO: CreateAllLog Start [2025-03-03 09:45:04] Production.INFO: 117 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: count ==13 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:45:04] Production.INFO: count ==21 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597633') start [2025-03-03 09:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.ERROR: done [2025-03-03 09:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597633') end [2025-03-03 09:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:45:04] Production.INFO: 1 [2025-03-03 09:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:45:04] Production.INFO: ==4065== Releasing lock... [2025-03-03 09:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.ERROR: done [2025-03-03 09:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:45:05] Production.INFO: Total Charge 0 [2025-03-03 09:45:05] Production.INFO: CreateAllLog End [2025-03-03 09:45:05] Production.INFO: Account Balance End. [2025-03-03 09:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:45:05] Production.INFO: ==4061== Releasing lock... [2025-03-03 09:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:45:14] Production.ERROR: CronJobId end10 [2025-03-03 09:45:14] Production.INFO: ==4059== Releasing lock... [2025-03-03 09:45:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:45:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:45:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:45:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:45:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:45:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:45:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:45:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:45:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:45:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:45:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:45:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:45:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:45:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:45:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:45:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:45:16] Production.INFO: call_cost start [2025-03-03 09:45:16] Production.INFO: call_cost end [2025-03-03 09:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:45:16] Production.INFO: ==4055== Releasing lock... [2025-03-03 09:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:45:17] Production.INFO: count ==409 [2025-03-03 09:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597634', 'tblTempUsageDetail_20' ) start [2025-03-03 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597634', 'tblTempUsageDetail_20' ) end [2025-03-03 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597634', 'tblTempVendorCDR_20' ) start [2025-03-03 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597634', 'tblTempVendorCDR_20' ) end [2025-03-03 09:45:17] Production.INFO: ProcessCDR(1,14597634,1,1,2) [2025-03-03 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597634', 'tblTempUsageDetail_20' ) start [2025-03-03 09:45:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597634', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:45:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:45:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:45:26] Production.INFO: ==4063== Releasing lock... [2025-03-03 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:45:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:46:01] Production.INFO: ==4135== Lock acquired, processing the job... [2025-03-03 14:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:46:01] Production.INFO: neon service started [2025-03-03 14:46:02] Production.INFO: neon service started [2025-03-03 14:46:02] Production.INFO: ==4135== Releasing lock... [2025-03-03 14:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:46:02] Production.INFO: ==4137== Lock acquired, processing the job... [2025-03-03 09:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:46:02] Production.INFO: ==4139== Lock acquired, processing the job... [2025-03-03 14:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:46:02] Production.INFO: ==4139== Releasing lock... [2025-03-03 14:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:46:02] Production.INFO: ==4137== Releasing lock... [2025-03-03 09:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:46:03] Production.INFO: ==4146== Lock acquired, processing the job... [2025-03-03 09:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:46:03] Production.INFO: ==4148== Lock acquired, processing the job... [2025-03-03 09:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:46:04] Production.INFO: ==4146== Releasing lock... [2025-03-03 09:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:46:04] Production.INFO: ==4144== Lock acquired, processing the job... [2025-03-03 09:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:46:04] Production.INFO: ==4152== Lock acquired, processing the job... [2025-03-03 09:46:04] Production.INFO: ==4150== Lock acquired, processing the job... [2025-03-03 09:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:46:04] Production.INFO: ==4154== Lock acquired, processing the job... [2025-03-03 09:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:46:04] Production.INFO: Account Balance Start. [2025-03-03 09:46:04] Production.INFO: CreateAllLog Start [2025-03-03 09:46:04] Production.INFO: 117 [2025-03-03 09:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: count ==13 [2025-03-03 09:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:46:04] Production.INFO: count ==21 [2025-03-03 09:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597637') start [2025-03-03 09:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597637') end [2025-03-03 09:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:46:04] Production.INFO: 1 [2025-03-03 09:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: ==4154== Releasing lock... [2025-03-03 09:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:46:04] Production.ERROR: done [2025-03-03 09:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.ERROR: done [2025-03-03 09:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:46:05] Production.INFO: Total Charge 0 [2025-03-03 09:46:05] Production.INFO: CreateAllLog End [2025-03-03 09:46:05] Production.INFO: Account Balance End. [2025-03-03 09:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:46:05] Production.INFO: ==4150== Releasing lock... [2025-03-03 09:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:46:11] Production.ERROR: CronJobId end10 [2025-03-03 09:46:11] Production.INFO: ==4148== Releasing lock... [2025-03-03 09:46:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:46:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:46:15] Production.INFO: call_cost start [2025-03-03 09:46:15] Production.INFO: call_cost end [2025-03-03 09:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:46:15] Production.INFO: ==4144== Releasing lock... [2025-03-03 09:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:46:17] Production.INFO: count ==409 [2025-03-03 09:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597639', 'tblTempUsageDetail_20' ) start [2025-03-03 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597639', 'tblTempUsageDetail_20' ) end [2025-03-03 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597639', 'tblTempVendorCDR_20' ) start [2025-03-03 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597639', 'tblTempVendorCDR_20' ) end [2025-03-03 09:46:17] Production.INFO: ProcessCDR(1,14597639,1,1,2) [2025-03-03 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597639', 'tblTempUsageDetail_20' ) start [2025-03-03 09:46:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597639', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:46:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:46:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:46:26] Production.INFO: ==4152== Releasing lock... [2025-03-03 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:46:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:47:01] Production.INFO: ==4221== Lock acquired, processing the job... [2025-03-03 14:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:47:01] Production.INFO: neon service started [2025-03-03 14:47:01] Production.INFO: neon service started [2025-03-03 14:47:01] Production.INFO: ==4221== Releasing lock... [2025-03-03 14:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:47:01] Production.INFO: ==4225== Lock acquired, processing the job... [2025-03-03 14:47:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:47:01] Production.INFO: ==4225== Releasing lock... [2025-03-03 14:47:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:47:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:47:02] Production.INFO: ==4223== Lock acquired, processing the job... [2025-03-03 09:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:47:02] Production.INFO: ==4223== Releasing lock... [2025-03-03 09:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:47:03] Production.INFO: ==4228== Lock acquired, processing the job... [2025-03-03 09:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:47:03] Production.INFO: ==4236== Lock acquired, processing the job... [2025-03-03 09:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:47:03] Production.INFO: ==4230== Lock acquired, processing the job... [2025-03-03 09:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:47:03] Production.INFO: ==4232== Lock acquired, processing the job... [2025-03-03 09:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:47:03] Production.INFO: ==4234== Lock acquired, processing the job... [2025-03-03 09:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:47:03] Production.INFO: ==4238== Lock acquired, processing the job... [2025-03-03 09:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:47:03] Production.INFO: Account Balance Start. [2025-03-03 09:47:03] Production.INFO: CreateAllLog Start [2025-03-03 09:47:03] Production.INFO: 117 [2025-03-03 09:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:03] Production.INFO: count ==13 [2025-03-03 09:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:47:03] Production.INFO: count ==21 [2025-03-03 09:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597643') start [2025-03-03 09:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.ERROR: done [2025-03-03 09:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597643') end [2025-03-03 09:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:47:04] Production.INFO: 1 [2025-03-03 09:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: ==4238== Releasing lock... [2025-03-03 09:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:47:04] Production.INFO: ==4230== Releasing lock... [2025-03-03 09:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:47:04] Production.ERROR: done [2025-03-03 09:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:47:05] Production.INFO: Total Charge 0 [2025-03-03 09:47:05] Production.INFO: CreateAllLog End [2025-03-03 09:47:05] Production.INFO: Account Balance End. [2025-03-03 09:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:47:05] Production.INFO: ==4234== Releasing lock... [2025-03-03 09:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:47:12] Production.ERROR: CronJobId end10 [2025-03-03 09:47:12] Production.INFO: ==4232== Releasing lock... [2025-03-03 09:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:47:15] Production.INFO: call_cost start [2025-03-03 09:47:15] Production.INFO: call_cost end [2025-03-03 09:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:47:15] Production.INFO: ==4228== Releasing lock... [2025-03-03 09:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:47:16] Production.INFO: count ==409 [2025-03-03 09:47:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597644', 'tblTempUsageDetail_20' ) start [2025-03-03 09:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597644', 'tblTempUsageDetail_20' ) end [2025-03-03 09:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597644', 'tblTempVendorCDR_20' ) start [2025-03-03 09:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597644', 'tblTempVendorCDR_20' ) end [2025-03-03 09:47:16] Production.INFO: ProcessCDR(1,14597644,1,1,2) [2025-03-03 09:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597644', 'tblTempUsageDetail_20' ) start [2025-03-03 09:47:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597644', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:47:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:47:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:47:25] Production.INFO: ==4236== Releasing lock... [2025-03-03 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:47:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:48:01] Production.INFO: ==4306== Lock acquired, processing the job... [2025-03-03 14:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:48:01] Production.INFO: neon service started [2025-03-03 14:48:01] Production.INFO: neon service started [2025-03-03 14:48:01] Production.INFO: ==4306== Releasing lock... [2025-03-03 14:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:48:02] Production.INFO: ==4308== Lock acquired, processing the job... [2025-03-03 09:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:48:02] Production.INFO: ==4308== Releasing lock... [2025-03-03 09:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:48:02] Production.INFO: ==4310== Lock acquired, processing the job... [2025-03-03 14:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:48:02] Production.INFO: ==4310== Releasing lock... [2025-03-03 14:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:48:03] Production.INFO: ==4319== Lock acquired, processing the job... [2025-03-03 09:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:48:03] Production.INFO: ==4321== Lock acquired, processing the job... [2025-03-03 09:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:48:03] Production.INFO: Account Balance Start. [2025-03-03 09:48:03] Production.INFO: CreateAllLog Start [2025-03-03 09:48:03] Production.INFO: 117 [2025-03-03 09:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: ==4313== Lock acquired, processing the job... [2025-03-03 09:48:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:48:04] Production.INFO: ==4315== Lock acquired, processing the job... [2025-03-03 09:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: ==4323== Lock acquired, processing the job... [2025-03-03 09:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:48:04] Production.INFO: ==4317== Lock acquired, processing the job... [2025-03-03 09:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.ERROR: done [2025-03-03 09:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: count ==13 [2025-03-03 09:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:48:04] Production.INFO: count ==21 [2025-03-03 09:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597646') start [2025-03-03 09:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.ERROR: done [2025-03-03 09:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597646') end [2025-03-03 09:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:48:04] Production.INFO: 1 [2025-03-03 09:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: ==4323== Releasing lock... [2025-03-03 09:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: ==4315== Releasing lock... [2025-03-03 09:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:48:04] Production.INFO: Total Charge 0 [2025-03-03 09:48:04] Production.INFO: CreateAllLog End [2025-03-03 09:48:05] Production.INFO: Account Balance End. [2025-03-03 09:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:48:05] Production.INFO: ==4319== Releasing lock... [2025-03-03 09:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:48:12] Production.ERROR: CronJobId end10 [2025-03-03 09:48:12] Production.INFO: ==4317== Releasing lock... [2025-03-03 09:48:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:48:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:48:15] Production.INFO: call_cost start [2025-03-03 09:48:15] Production.INFO: call_cost end [2025-03-03 09:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:48:15] Production.INFO: ==4313== Releasing lock... [2025-03-03 09:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:48:16] Production.INFO: count ==409 [2025-03-03 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597649', 'tblTempUsageDetail_20' ) start [2025-03-03 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597649', 'tblTempUsageDetail_20' ) end [2025-03-03 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597649', 'tblTempVendorCDR_20' ) start [2025-03-03 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597649', 'tblTempVendorCDR_20' ) end [2025-03-03 09:48:17] Production.INFO: ProcessCDR(1,14597649,1,1,2) [2025-03-03 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597649', 'tblTempUsageDetail_20' ) start [2025-03-03 09:48:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597649', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:48:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:48:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:48:25] Production.INFO: ==4321== Releasing lock... [2025-03-03 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:48:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:49:02] Production.INFO: ==4395== Lock acquired, processing the job... [2025-03-03 14:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:49:02] Production.INFO: neon service started [2025-03-03 14:49:02] Production.INFO: neon service started [2025-03-03 14:49:02] Production.INFO: ==4395== Releasing lock... [2025-03-03 14:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:49:02] Production.INFO: ==4397== Lock acquired, processing the job... [2025-03-03 09:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:49:03] Production.INFO: ==4397== Releasing lock... [2025-03-03 09:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:49:03] Production.INFO: ==4399== Lock acquired, processing the job... [2025-03-03 14:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:49:03] Production.INFO: ==4399== Releasing lock... [2025-03-03 14:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:49:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:49:04] Production.INFO: ==4409== Lock acquired, processing the job... [2025-03-03 09:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:49:04] Production.INFO: ==4403== Lock acquired, processing the job... [2025-03-03 09:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:49:04] Production.INFO: ==4401== Lock acquired, processing the job... [2025-03-03 09:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:49:04] Production.INFO: ==4405== Lock acquired, processing the job... [2025-03-03 09:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:49:04] Production.INFO: ==4412== Lock acquired, processing the job... [2025-03-03 09:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:49:04] Production.INFO: ==4407== Lock acquired, processing the job... [2025-03-03 09:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:49:04] Production.INFO: Account Balance Start. [2025-03-03 09:49:04] Production.INFO: CreateAllLog Start [2025-03-03 09:49:04] Production.INFO: 117 [2025-03-03 09:49:04] Production.ERROR: done [2025-03-03 09:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:49:04] Production.INFO: count ==13 [2025-03-03 09:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:49:04] Production.INFO: count ==21 [2025-03-03 09:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597652') start [2025-03-03 09:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:04] Production.INFO: ==4403== Releasing lock... [2025-03-03 09:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597652') end [2025-03-03 09:49:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:49:05] Production.INFO: 1 [2025-03-03 09:49:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:49:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:49:05] Production.ERROR: done [2025-03-03 09:49:05] Production.INFO: ==4412== Releasing lock... [2025-03-03 09:49:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:49:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:49:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:49:05] Production.INFO: Total Charge 0 [2025-03-03 09:49:05] Production.INFO: CreateAllLog End [2025-03-03 09:49:05] Production.INFO: Account Balance End. [2025-03-03 09:49:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:49:06] Production.INFO: ==4407== Releasing lock... [2025-03-03 09:49:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:49:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:49:15] Production.ERROR: CronJobId end10 [2025-03-03 09:49:15] Production.INFO: ==4405== Releasing lock... [2025-03-03 09:49:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:49:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:49:17] Production.INFO: count ==409 [2025-03-03 09:49:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:49:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:49:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:49:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:49:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:49:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:49:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:49:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:49:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:49:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:49:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:49:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:49:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:49:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597654', 'tblTempUsageDetail_20' ) start [2025-03-03 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597654', 'tblTempUsageDetail_20' ) end [2025-03-03 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597654', 'tblTempVendorCDR_20' ) start [2025-03-03 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597654', 'tblTempVendorCDR_20' ) end [2025-03-03 09:49:17] Production.INFO: ProcessCDR(1,14597654,1,1,2) [2025-03-03 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:49:17] Production.INFO: call_cost start [2025-03-03 09:49:17] Production.INFO: call_cost end [2025-03-03 09:49:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:49:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:49:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:49:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:49:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:49:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:49:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:49:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:49:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:49:18] Production.INFO: ==4401== Releasing lock... [2025-03-03 09:49:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:49:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597654', 'tblTempUsageDetail_20' ) start [2025-03-03 09:49:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597654', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:49:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:49:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:49:26] Production.INFO: ==4409== Releasing lock... [2025-03-03 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:49:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:50:01] Production.INFO: ==4477== Lock acquired, processing the job... [2025-03-03 14:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:50:01] Production.INFO: neon service started [2025-03-03 14:50:01] Production.INFO: neon service started [2025-03-03 14:50:01] Production.INFO: ==4477== Releasing lock... [2025-03-03 14:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:50:02] Production.INFO: ==4481== Lock acquired, processing the job... [2025-03-03 14:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:50:02] Production.INFO: ==4481== Releasing lock... [2025-03-03 14:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:50:02] Production.INFO: ==4479== Lock acquired, processing the job... [2025-03-03 09:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:50:02] Production.INFO: ==4479== Releasing lock... [2025-03-03 09:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:50:04] Production.INFO: ==4486== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:50:04] Production.INFO: ==4484== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 09:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 09:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 09:50:04] Production.ERROR: CronJob PID - 4486 [2025-03-03 09:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 09:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 09:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 09:50:00 [2025-03-03 09:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 09:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 09:50:04] Production.INFO: ==4490== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 09:50:04] Production.INFO: ==4484== Releasing lock... [2025-03-03 09:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 09:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 09:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:50:04] Production.INFO: ==4494== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:50:04] Production.INFO: ==4488== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:50:04] Production.INFO: ==4492== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:50:04] Production.INFO: ==4496== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 09:50:04] Production.INFO: ==4498== Lock acquired, processing the job... [2025-03-03 09:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:50:04] Production.ERROR: done [2025-03-03 09:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:50:04] Production.INFO: Account Balance Start. [2025-03-03 09:50:04] Production.INFO: CreateAllLog Start [2025-03-03 09:50:04] Production.INFO: 117 [2025-03-03 09:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: ==4488== Releasing lock... [2025-03-03 09:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:50:05] Production.INFO: count ==13 [2025-03-03 09:50:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:50:05] Production.INFO: count ==21 [2025-03-03 09:50:05] Production.ERROR: done [2025-03-03 09:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597658') start [2025-03-03 09:50:05] Production.INFO: Date 2025-02-09 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-10 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-11 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:50:05] Production.ERROR: done [2025-03-03 09:50:05] Production.INFO: Date 2025-02-12 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597658') end [2025-03-03 09:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:50:05] Production.INFO: 1 [2025-03-03 09:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:50:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: ==4498== Releasing lock... [2025-03-03 09:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 09:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597660', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 09:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Date 2025-02-26 [2025-03-03 09:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Date 2025-02-27 [2025-03-03 09:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Date 2025-02-28 [2025-03-03 09:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Date 2025-03-01 [2025-03-03 09:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Date 2025-03-02 [2025-03-03 09:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 09:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:50:06] Production.INFO: Total Charge 0 [2025-03-03 09:50:06] Production.INFO: CreateAllLog End [2025-03-03 09:50:06] Production.INFO: Account Balance End. [2025-03-03 09:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:50:06] Production.INFO: ==4492== Releasing lock... [2025-03-03 09:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597660', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 09:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 09:50:10] Production.INFO: ProcessCDR(1,14597660,1,1,2) [2025-03-03 09:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597660,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597660,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 09:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 09:50:10] Production.INFO: ==4496== Releasing lock... [2025-03-03 09:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 09:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:50:14] Production.ERROR: CronJobId end10 [2025-03-03 09:50:14] Production.INFO: ==4490== Releasing lock... [2025-03-03 09:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:50:17] Production.INFO: call_cost start [2025-03-03 09:50:17] Production.INFO: call_cost end [2025-03-03 09:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:50:17] Production.INFO: ==4486== Releasing lock... [2025-03-03 09:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:50:17] Production.INFO: count ==409 [2025-03-03 09:50:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597659', 'tblTempUsageDetail_20' ) start [2025-03-03 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597659', 'tblTempUsageDetail_20' ) end [2025-03-03 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597659', 'tblTempVendorCDR_20' ) start [2025-03-03 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597659', 'tblTempVendorCDR_20' ) end [2025-03-03 09:50:17] Production.INFO: ProcessCDR(1,14597659,1,1,2) [2025-03-03 09:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597659', 'tblTempUsageDetail_20' ) start [2025-03-03 09:50:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597659', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:50:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:50:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:50:26] Production.INFO: ==4494== Releasing lock... [2025-03-03 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:50:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:51:02] Production.INFO: ==4563== Lock acquired, processing the job... [2025-03-03 14:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:51:02] Production.INFO: neon service started [2025-03-03 14:51:02] Production.INFO: neon service started [2025-03-03 14:51:02] Production.INFO: ==4563== Releasing lock... [2025-03-03 14:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:51:02] Production.INFO: ==4565== Lock acquired, processing the job... [2025-03-03 09:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:51:03] Production.INFO: ==4567== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:51:03] Production.INFO: ==4567== Releasing lock... [2025-03-03 14:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:51:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:51:03] Production.INFO: ==4565== Releasing lock... [2025-03-03 09:51:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:51:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:51:04] Production.INFO: ==4572== Lock acquired, processing the job... [2025-03-03 09:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:51:04] Production.INFO: ==4585== Lock acquired, processing the job... [2025-03-03 09:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:51:04] Production.INFO: ==4583== Lock acquired, processing the job... [2025-03-03 09:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:51:04] Production.INFO: Account Balance Start. [2025-03-03 09:51:04] Production.INFO: CreateAllLog Start [2025-03-03 09:51:04] Production.INFO: 117 [2025-03-03 09:51:04] Production.INFO: ==4569== Lock acquired, processing the job... [2025-03-03 09:51:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.INFO: ==4579== Lock acquired, processing the job... [2025-03-03 09:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.ERROR: done [2025-03-03 09:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:51:04] Production.INFO: ==4572== Releasing lock... [2025-03-03 09:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:51:04] Production.INFO: ==4587== Lock acquired, processing the job... [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.ERROR: done [2025-03-03 09:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:51:04] Production.INFO: count ==13 [2025-03-03 09:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:51:04] Production.INFO: count ==21 [2025-03-03 09:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597664') start [2025-03-03 09:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597664') end [2025-03-03 09:51:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:51:05] Production.INFO: 1 [2025-03-03 09:51:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:51:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: ==4587== Releasing lock... [2025-03-03 09:51:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:51:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:51:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:51:05] Production.INFO: Total Charge 0 [2025-03-03 09:51:05] Production.INFO: CreateAllLog End [2025-03-03 09:51:05] Production.INFO: Account Balance End. [2025-03-03 09:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:51:05] Production.INFO: ==4583== Releasing lock... [2025-03-03 09:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:51:13] Production.ERROR: CronJobId end10 [2025-03-03 09:51:13] Production.INFO: ==4579== Releasing lock... [2025-03-03 09:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:51:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:51:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:51:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:51:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:51:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:51:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:51:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:51:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:51:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:51:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:51:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:51:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:51:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:51:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:51:16] Production.INFO: call_cost start [2025-03-03 09:51:16] Production.INFO: call_cost end [2025-03-03 09:51:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:51:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:51:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:51:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:51:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:51:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:51:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:51:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:51:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:51:16] Production.INFO: ==4569== Releasing lock... [2025-03-03 09:51:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:51:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:51:17] Production.INFO: count ==409 [2025-03-03 09:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597665', 'tblTempUsageDetail_20' ) start [2025-03-03 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597665', 'tblTempUsageDetail_20' ) end [2025-03-03 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597665', 'tblTempVendorCDR_20' ) start [2025-03-03 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597665', 'tblTempVendorCDR_20' ) end [2025-03-03 09:51:17] Production.INFO: ProcessCDR(1,14597665,1,1,2) [2025-03-03 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597665', 'tblTempUsageDetail_20' ) start [2025-03-03 09:51:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597665', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:51:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:51:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:51:26] Production.INFO: ==4585== Releasing lock... [2025-03-03 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:51:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:52:01] Production.INFO: ==4653== Lock acquired, processing the job... [2025-03-03 14:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:52:01] Production.INFO: neon service started [2025-03-03 14:52:01] Production.INFO: neon service started [2025-03-03 14:52:01] Production.INFO: ==4653== Releasing lock... [2025-03-03 14:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:52:02] Production.INFO: ==4657== Lock acquired, processing the job... [2025-03-03 14:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:52:02] Production.INFO: ==4657== Releasing lock... [2025-03-03 14:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:52:02] Production.INFO: ==4655== Lock acquired, processing the job... [2025-03-03 09:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:52:02] Production.INFO: ==4655== Releasing lock... [2025-03-03 09:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:52:03] Production.INFO: ==4664== Lock acquired, processing the job... [2025-03-03 09:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:52:03] Production.INFO: ==4670== Lock acquired, processing the job... [2025-03-03 09:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:52:03] Production.INFO: ==4660== Lock acquired, processing the job... [2025-03-03 09:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:52:03] Production.INFO: count ==13 [2025-03-03 09:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:52:03] Production.INFO: count ==21 [2025-03-03 09:52:03] Production.INFO: ==4662== Lock acquired, processing the job... [2025-03-03 09:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597666') start [2025-03-03 09:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:52:04] Production.INFO: ==4666== Lock acquired, processing the job... [2025-03-03 09:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:52:04] Production.INFO: ==4668== Lock acquired, processing the job... [2025-03-03 09:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597666') end [2025-03-03 09:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:52:04] Production.INFO: 1 [2025-03-03 09:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:52:04] Production.INFO: ==4670== Releasing lock... [2025-03-03 09:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:52:04] Production.INFO: Account Balance Start. [2025-03-03 09:52:04] Production.INFO: CreateAllLog Start [2025-03-03 09:52:04] Production.INFO: 117 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: ==4662== Releasing lock... [2025-03-03 09:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.ERROR: done [2025-03-03 09:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:04] Production.ERROR: done [2025-03-03 09:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:52:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:52:05] Production.INFO: Total Charge 0 [2025-03-03 09:52:05] Production.INFO: CreateAllLog End [2025-03-03 09:52:05] Production.INFO: Account Balance End. [2025-03-03 09:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:52:05] Production.INFO: ==4666== Releasing lock... [2025-03-03 09:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:52:11] Production.ERROR: CronJobId end10 [2025-03-03 09:52:11] Production.INFO: ==4664== Releasing lock... [2025-03-03 09:52:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:52:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:52:15] Production.INFO: call_cost start [2025-03-03 09:52:15] Production.INFO: call_cost end [2025-03-03 09:52:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:52:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:52:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:52:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:52:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:52:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:52:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:52:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:52:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:52:15] Production.INFO: ==4660== Releasing lock... [2025-03-03 09:52:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:52:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:52:17] Production.INFO: count ==409 [2025-03-03 09:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597670', 'tblTempUsageDetail_20' ) start [2025-03-03 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597670', 'tblTempUsageDetail_20' ) end [2025-03-03 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597670', 'tblTempVendorCDR_20' ) start [2025-03-03 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597670', 'tblTempVendorCDR_20' ) end [2025-03-03 09:52:17] Production.INFO: ProcessCDR(1,14597670,1,1,2) [2025-03-03 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597670', 'tblTempUsageDetail_20' ) start [2025-03-03 09:52:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597670', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:52:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:52:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:52:26] Production.INFO: ==4668== Releasing lock... [2025-03-03 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:52:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:53:02] Production.INFO: ==4779== Lock acquired, processing the job... [2025-03-03 14:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:53:02] Production.INFO: neon service started [2025-03-03 14:53:02] Production.INFO: neon service started [2025-03-03 14:53:02] Production.INFO: ==4779== Releasing lock... [2025-03-03 14:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:53:02] Production.INFO: ==4783== Lock acquired, processing the job... [2025-03-03 14:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:53:02] Production.INFO: ==4783== Releasing lock... [2025-03-03 14:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:53:02] Production.INFO: ==4781== Lock acquired, processing the job... [2025-03-03 09:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:53:03] Production.INFO: ==4781== Releasing lock... [2025-03-03 09:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:53:04] Production.INFO: ==4789== Lock acquired, processing the job... [2025-03-03 09:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:53:04] Production.INFO: ==4785== Lock acquired, processing the job... [2025-03-03 09:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:53:04] Production.INFO: ==4791== Lock acquired, processing the job... [2025-03-03 09:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:53:04] Production.INFO: Account Balance Start. [2025-03-03 09:53:04] Production.INFO: CreateAllLog Start [2025-03-03 09:53:04] Production.INFO: 117 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: ==4787== Lock acquired, processing the job... [2025-03-03 09:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: ==4794== Lock acquired, processing the job... [2025-03-03 09:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: ==4796== Lock acquired, processing the job... [2025-03-03 09:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:53:04] Production.INFO: count ==13 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:53:04] Production.INFO: count ==21 [2025-03-03 09:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597674') start [2025-03-03 09:53:05] Production.INFO: ==4787== Releasing lock... [2025-03-03 09:53:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:53:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:53:05] Production.ERROR: done [2025-03-03 09:53:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597674') end [2025-03-03 09:53:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:53:05] Production.INFO: 1 [2025-03-03 09:53:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: ==4796== Releasing lock... [2025-03-03 09:53:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:53:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:53:05] Production.ERROR: done [2025-03-03 09:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:53:05] Production.INFO: Total Charge 0 [2025-03-03 09:53:05] Production.INFO: CreateAllLog End [2025-03-03 09:53:05] Production.INFO: Account Balance End. [2025-03-03 09:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:53:05] Production.INFO: ==4791== Releasing lock... [2025-03-03 09:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:53:12] Production.ERROR: CronJobId end10 [2025-03-03 09:53:12] Production.INFO: ==4789== Releasing lock... [2025-03-03 09:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:53:15] Production.INFO: call_cost start [2025-03-03 09:53:15] Production.INFO: call_cost end [2025-03-03 09:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:53:15] Production.INFO: ==4785== Releasing lock... [2025-03-03 09:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:53:17] Production.INFO: count ==409 [2025-03-03 09:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597675', 'tblTempUsageDetail_20' ) start [2025-03-03 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597675', 'tblTempUsageDetail_20' ) end [2025-03-03 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597675', 'tblTempVendorCDR_20' ) start [2025-03-03 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597675', 'tblTempVendorCDR_20' ) end [2025-03-03 09:53:17] Production.INFO: ProcessCDR(1,14597675,1,1,2) [2025-03-03 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597675', 'tblTempUsageDetail_20' ) start [2025-03-03 09:53:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597675', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:53:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:53:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:53:25] Production.INFO: ==4794== Releasing lock... [2025-03-03 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:53:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:54:01] Production.INFO: ==4861== Lock acquired, processing the job... [2025-03-03 14:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:54:01] Production.INFO: neon service started [2025-03-03 14:54:01] Production.INFO: neon service started [2025-03-03 14:54:01] Production.INFO: ==4861== Releasing lock... [2025-03-03 14:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:54:02] Production.INFO: ==4863== Lock acquired, processing the job... [2025-03-03 09:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:54:02] Production.INFO: ==4865== Lock acquired, processing the job... [2025-03-03 14:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:54:02] Production.INFO: ==4865== Releasing lock... [2025-03-03 14:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:54:02] Production.INFO: ==4863== Releasing lock... [2025-03-03 09:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:54:03] Production.INFO: ==4870== Lock acquired, processing the job... [2025-03-03 09:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:54:03] Production.INFO: ==4880== Lock acquired, processing the job... [2025-03-03 09:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:54:04] Production.INFO: count ==13 [2025-03-03 09:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:54:04] Production.INFO: count ==21 [2025-03-03 09:54:04] Production.INFO: ==4872== Lock acquired, processing the job... [2025-03-03 09:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:54:04] Production.INFO: ==4874== Lock acquired, processing the job... [2025-03-03 09:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597677') start [2025-03-03 09:54:04] Production.INFO: ==4876== Lock acquired, processing the job... [2025-03-03 09:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:54:04] Production.INFO: ==4878== Lock acquired, processing the job... [2025-03-03 09:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:54:04] Production.INFO: Account Balance Start. [2025-03-03 09:54:04] Production.INFO: CreateAllLog Start [2025-03-03 09:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:54:04] Production.INFO: 117 [2025-03-03 09:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597677') end [2025-03-03 09:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:54:04] Production.INFO: 1 [2025-03-03 09:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: ==4880== Releasing lock... [2025-03-03 09:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:54:04] Production.INFO: ==4872== Releasing lock... [2025-03-03 09:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:54:04] Production.ERROR: done [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:04] Production.ERROR: done [2025-03-03 09:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:54:05] Production.INFO: Total Charge 0 [2025-03-03 09:54:05] Production.INFO: CreateAllLog End [2025-03-03 09:54:05] Production.INFO: Account Balance End. [2025-03-03 09:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:54:05] Production.INFO: ==4876== Releasing lock... [2025-03-03 09:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:54:13] Production.ERROR: CronJobId end10 [2025-03-03 09:54:13] Production.INFO: ==4874== Releasing lock... [2025-03-03 09:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:54:16] Production.INFO: call_cost start [2025-03-03 09:54:16] Production.INFO: call_cost end [2025-03-03 09:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:54:16] Production.INFO: ==4870== Releasing lock... [2025-03-03 09:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:54:17] Production.INFO: count ==409 [2025-03-03 09:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597680', 'tblTempUsageDetail_20' ) start [2025-03-03 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597680', 'tblTempUsageDetail_20' ) end [2025-03-03 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597680', 'tblTempVendorCDR_20' ) start [2025-03-03 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597680', 'tblTempVendorCDR_20' ) end [2025-03-03 09:54:17] Production.INFO: ProcessCDR(1,14597680,1,1,2) [2025-03-03 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597680', 'tblTempUsageDetail_20' ) start [2025-03-03 09:54:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597680', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:54:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:54:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:54:25] Production.INFO: ==4878== Releasing lock... [2025-03-03 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:54:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:55:02] Production.INFO: ==4945== Lock acquired, processing the job... [2025-03-03 14:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:55:02] Production.INFO: neon service started [2025-03-03 14:55:02] Production.INFO: neon service started [2025-03-03 14:55:02] Production.INFO: ==4945== Releasing lock... [2025-03-03 14:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:55:02] Production.INFO: ==4947== Lock acquired, processing the job... [2025-03-03 09:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:55:03] Production.INFO: ==4949== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:55:03] Production.INFO: ==4949== Releasing lock... [2025-03-03 14:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:55:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:55:03] Production.INFO: ==4947== Releasing lock... [2025-03-03 09:55:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:55:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:55:04] Production.INFO: ==4952== Lock acquired, processing the job... [2025-03-03 09:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:55:04] Production.INFO: ==4962== Lock acquired, processing the job... [2025-03-03 09:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:55:04] Production.INFO: ==4954== Lock acquired, processing the job... [2025-03-03 09:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:55:04] Production.INFO: ==4956== Lock acquired, processing the job... [2025-03-03 09:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:55:04] Production.INFO: ==4958== Lock acquired, processing the job... [2025-03-03 09:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:55:04] Production.INFO: count ==13 [2025-03-03 09:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:55:04] Production.INFO: count ==21 [2025-03-03 09:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597682') start [2025-03-03 09:55:04] Production.INFO: Account Balance Start. [2025-03-03 09:55:04] Production.INFO: CreateAllLog Start [2025-03-03 09:55:04] Production.INFO: 117 [2025-03-03 09:55:04] Production.INFO: ==4960== Lock acquired, processing the job... [2025-03-03 09:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597682') end [2025-03-03 09:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:55:04] Production.INFO: 1 [2025-03-03 09:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:04] Production.INFO: ==4954== Releasing lock... [2025-03-03 09:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-11 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: ==4962== Releasing lock... [2025-03-03 09:55:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:55:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:55:05] Production.INFO: Date 2025-02-12 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-13 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-14 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.ERROR: done [2025-03-03 09:55:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-15 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-16 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-17 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.ERROR: done [2025-03-03 09:55:05] Production.INFO: Date 2025-02-18 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:55:05] Production.INFO: Date 2025-02-19 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-20 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:06] Production.INFO: Date 2025-03-02 [2025-03-03 09:55:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:06] Production.INFO: Date 2025-03-03 [2025-03-03 09:55:06] Production.INFO: Reseller ==> 0 [2025-03-03 09:55:06] Production.INFO: Total Charge 0 [2025-03-03 09:55:06] Production.INFO: CreateAllLog End [2025-03-03 09:55:06] Production.INFO: Account Balance End. [2025-03-03 09:55:06] Production.ERROR: CronJobId end 12 [2025-03-03 09:55:06] Production.INFO: ==4958== Releasing lock... [2025-03-03 09:55:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:55:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:55:13] Production.ERROR: CronJobId end10 [2025-03-03 09:55:13] Production.INFO: ==4956== Releasing lock... [2025-03-03 09:55:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:55:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:55:15] Production.INFO: call_cost start [2025-03-03 09:55:15] Production.INFO: call_cost end [2025-03-03 09:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:55:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:55:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:55:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:55:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:55:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:55:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:55:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:55:16] Production.INFO: ==4952== Releasing lock... [2025-03-03 09:55:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:55:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:55:17] Production.INFO: count ==409 [2025-03-03 09:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597685', 'tblTempUsageDetail_20' ) start [2025-03-03 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597685', 'tblTempUsageDetail_20' ) end [2025-03-03 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597685', 'tblTempVendorCDR_20' ) start [2025-03-03 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597685', 'tblTempVendorCDR_20' ) end [2025-03-03 09:55:17] Production.INFO: ProcessCDR(1,14597685,1,1,2) [2025-03-03 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597685', 'tblTempUsageDetail_20' ) start [2025-03-03 09:55:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597685', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:55:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:55:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:55:26] Production.INFO: ==4960== Releasing lock... [2025-03-03 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:55:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:56:01] Production.INFO: ==5039== Lock acquired, processing the job... [2025-03-03 14:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:56:01] Production.INFO: neon service started [2025-03-03 14:56:01] Production.INFO: neon service started [2025-03-03 14:56:01] Production.INFO: ==5039== Releasing lock... [2025-03-03 14:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:56:02] Production.INFO: ==5041== Lock acquired, processing the job... [2025-03-03 09:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:56:02] Production.INFO: ==5043== Lock acquired, processing the job... [2025-03-03 14:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:56:02] Production.INFO: ==5043== Releasing lock... [2025-03-03 14:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 09:56:02] Production.INFO: ==5041== Releasing lock... [2025-03-03 09:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:56:03] Production.INFO: ==5048== Lock acquired, processing the job... [2025-03-03 09:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:56:03] Production.INFO: ==5052== Lock acquired, processing the job... [2025-03-03 09:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:56:03] Production.INFO: Account Balance Start. [2025-03-03 09:56:03] Production.INFO: CreateAllLog Start [2025-03-03 09:56:03] Production.INFO: 117 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-08 [2025-03-03 09:56:03] Production.INFO: ==5056== Lock acquired, processing the job... [2025-03-03 09:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-09 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-10 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-11 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-12 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:56:03] Production.INFO: count ==13 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-13 [2025-03-03 09:56:03] Production.INFO: ==5048== Releasing lock... [2025-03-03 09:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:56:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:56:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:56:03] Production.INFO: count ==21 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597688') start [2025-03-03 09:56:03] Production.INFO: Date 2025-02-14 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: Date 2025-02-15 [2025-03-03 09:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:03] Production.INFO: ==5054== Lock acquired, processing the job... [2025-03-03 09:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:56:03] Production.INFO: ==5046== Lock acquired, processing the job... [2025-03-03 09:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:56:04] Production.INFO: ==5050== Lock acquired, processing the job... [2025-03-03 09:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597688') end [2025-03-03 09:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:56:04] Production.INFO: 1 [2025-03-03 09:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: ==5056== Releasing lock... [2025-03-03 09:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.ERROR: done [2025-03-03 09:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-25 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-26 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.ERROR: done [2025-03-03 09:56:04] Production.INFO: Date 2025-02-27 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-02-28 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-03-01 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:56:04] Production.INFO: Date 2025-03-02 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Date 2025-03-03 [2025-03-03 09:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:56:04] Production.INFO: Total Charge 0 [2025-03-03 09:56:04] Production.INFO: CreateAllLog End [2025-03-03 09:56:04] Production.INFO: Account Balance End. [2025-03-03 09:56:04] Production.ERROR: CronJobId end 12 [2025-03-03 09:56:04] Production.INFO: ==5052== Releasing lock... [2025-03-03 09:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:56:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:56:12] Production.ERROR: CronJobId end10 [2025-03-03 09:56:12] Production.INFO: ==5050== Releasing lock... [2025-03-03 09:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:56:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:56:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:56:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:56:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:56:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:56:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:56:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:56:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:56:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:56:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:56:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:56:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:56:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:56:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:56:15] Production.INFO: call_cost start [2025-03-03 09:56:15] Production.INFO: call_cost end [2025-03-03 09:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:56:15] Production.INFO: ==5046== Releasing lock... [2025-03-03 09:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:56:16] Production.INFO: count ==409 [2025-03-03 09:56:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597690', 'tblTempUsageDetail_20' ) start [2025-03-03 09:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597690', 'tblTempUsageDetail_20' ) end [2025-03-03 09:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597690', 'tblTempVendorCDR_20' ) start [2025-03-03 09:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597690', 'tblTempVendorCDR_20' ) end [2025-03-03 09:56:16] Production.INFO: ProcessCDR(1,14597690,1,1,2) [2025-03-03 09:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597690', 'tblTempUsageDetail_20' ) start [2025-03-03 09:56:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597690', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:56:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:56:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:56:25] Production.INFO: ==5054== Releasing lock... [2025-03-03 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:57:02] Production.INFO: ==5140== Lock acquired, processing the job... [2025-03-03 14:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:57:02] Production.INFO: neon service started [2025-03-03 14:57:02] Production.INFO: neon service started [2025-03-03 14:57:02] Production.INFO: ==5140== Releasing lock... [2025-03-03 14:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 09:57:02] Production.INFO: ==5142== Lock acquired, processing the job... [2025-03-03 09:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:57:02] Production.INFO: ==5144== Lock acquired, processing the job... [2025-03-03 14:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:57:02] Production.INFO: ==5144== Releasing lock... [2025-03-03 14:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:57:02] Production.INFO: ==5142== Releasing lock... [2025-03-03 09:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:57:03] Production.INFO: ==5150== Lock acquired, processing the job... [2025-03-03 09:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:57:03] Production.INFO: ==5152== Lock acquired, processing the job... [2025-03-03 09:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:57:03] Production.INFO: ==5154== Lock acquired, processing the job... [2025-03-03 09:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:57:04] Production.INFO: Account Balance Start. [2025-03-03 09:57:04] Production.INFO: CreateAllLog Start [2025-03-03 09:57:04] Production.INFO: 117 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: ==5146== Lock acquired, processing the job... [2025-03-03 09:57:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: ==5148== Lock acquired, processing the job... [2025-03-03 09:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:57:04] Production.INFO: ==5156== Lock acquired, processing the job... [2025-03-03 09:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.ERROR: done [2025-03-03 09:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:57:04] Production.INFO: count ==13 [2025-03-03 09:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:57:04] Production.INFO: count ==21 [2025-03-03 09:57:04] Production.ERROR: done [2025-03-03 09:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597694') start [2025-03-03 09:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:57:04] Production.INFO: ==5148== Releasing lock... [2025-03-03 09:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597694') end [2025-03-03 09:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:57:04] Production.INFO: 1 [2025-03-03 09:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:57:04] Production.INFO: ==5156== Releasing lock... [2025-03-03 09:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:57:05] Production.INFO: Total Charge 0 [2025-03-03 09:57:05] Production.INFO: CreateAllLog End [2025-03-03 09:57:05] Production.INFO: Account Balance End. [2025-03-03 09:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:57:05] Production.INFO: ==5152== Releasing lock... [2025-03-03 09:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:57:12] Production.ERROR: CronJobId end10 [2025-03-03 09:57:12] Production.INFO: ==5150== Releasing lock... [2025-03-03 09:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:57:16] Production.INFO: call_cost start [2025-03-03 09:57:16] Production.INFO: call_cost end [2025-03-03 09:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:57:16] Production.INFO: ==5146== Releasing lock... [2025-03-03 09:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:57:16] Production.INFO: count ==409 [2025-03-03 09:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597695', 'tblTempUsageDetail_20' ) start [2025-03-03 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597695', 'tblTempUsageDetail_20' ) end [2025-03-03 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597695', 'tblTempVendorCDR_20' ) start [2025-03-03 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597695', 'tblTempVendorCDR_20' ) end [2025-03-03 09:57:17] Production.INFO: ProcessCDR(1,14597695,1,1,2) [2025-03-03 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597695', 'tblTempUsageDetail_20' ) start [2025-03-03 09:57:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597695', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:57:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:57:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:57:25] Production.INFO: ==5154== Releasing lock... [2025-03-03 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:58:01] Production.INFO: ==5238== Lock acquired, processing the job... [2025-03-03 14:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:58:01] Production.INFO: neon service started [2025-03-03 14:58:01] Production.INFO: neon service started [2025-03-03 14:58:01] Production.INFO: ==5238== Releasing lock... [2025-03-03 14:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:58:02] Production.INFO: ==5242== Lock acquired, processing the job... [2025-03-03 14:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:58:02] Production.INFO: ==5242== Releasing lock... [2025-03-03 14:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:58:02] Production.INFO: ==5240== Lock acquired, processing the job... [2025-03-03 09:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:58:02] Production.INFO: ==5240== Releasing lock... [2025-03-03 09:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:58:03] Production.INFO: ==5245== Lock acquired, processing the job... [2025-03-03 09:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:58:03] Production.INFO: ==5247== Lock acquired, processing the job... [2025-03-03 09:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:58:03] Production.INFO: ==5249== Lock acquired, processing the job... [2025-03-03 09:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:58:03] Production.INFO: ==5251== Lock acquired, processing the job... [2025-03-03 09:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:58:03] Production.INFO: ==5253== Lock acquired, processing the job... [2025-03-03 09:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:58:04] Production.INFO: ==5255== Lock acquired, processing the job... [2025-03-03 09:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:58:04] Production.INFO: Account Balance Start. [2025-03-03 09:58:04] Production.INFO: CreateAllLog Start [2025-03-03 09:58:04] Production.INFO: 117 [2025-03-03 09:58:04] Production.INFO: ==5247== Releasing lock... [2025-03-03 09:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: count ==13 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:58:04] Production.INFO: count ==21 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.ERROR: done [2025-03-03 09:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597699') start [2025-03-03 09:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597699') end [2025-03-03 09:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:58:04] Production.INFO: 1 [2025-03-03 09:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:58:04] Production.INFO: ==5255== Releasing lock... [2025-03-03 09:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.ERROR: done [2025-03-03 09:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 09:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:58:05] Production.INFO: Total Charge 0 [2025-03-03 09:58:05] Production.INFO: CreateAllLog End [2025-03-03 09:58:05] Production.INFO: Account Balance End. [2025-03-03 09:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:58:05] Production.INFO: ==5251== Releasing lock... [2025-03-03 09:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:58:13] Production.ERROR: CronJobId end10 [2025-03-03 09:58:13] Production.INFO: ==5249== Releasing lock... [2025-03-03 09:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:58:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:58:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:58:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:58:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:58:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:58:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:58:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:58:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:58:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:58:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:58:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:58:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:58:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:58:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:58:16] Production.INFO: call_cost start [2025-03-03 09:58:16] Production.INFO: call_cost end [2025-03-03 09:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:58:16] Production.INFO: ==5245== Releasing lock... [2025-03-03 09:58:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:58:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:58:16] Production.INFO: count ==409 [2025-03-03 09:58:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597700', 'tblTempUsageDetail_20' ) start [2025-03-03 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597700', 'tblTempUsageDetail_20' ) end [2025-03-03 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597700', 'tblTempVendorCDR_20' ) start [2025-03-03 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597700', 'tblTempVendorCDR_20' ) end [2025-03-03 09:58:17] Production.INFO: ProcessCDR(1,14597700,1,1,2) [2025-03-03 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597700', 'tblTempUsageDetail_20' ) start [2025-03-03 09:58:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597700', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:58:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:58:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:58:25] Production.INFO: ==5253== Releasing lock... [2025-03-03 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:58:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 14:59:02] Production.INFO: ==5330== Lock acquired, processing the job... [2025-03-03 14:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 14:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 14:59:02] Production.INFO: neon service started [2025-03-03 14:59:02] Production.INFO: neon service started [2025-03-03 14:59:02] Production.INFO: ==5330== Releasing lock... [2025-03-03 14:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 14:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:59:02] Production.INFO: ==5335== Lock acquired, processing the job... [2025-03-03 14:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:59:02] Production.INFO: ==5335== Releasing lock... [2025-03-03 14:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 14:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 09:59:02] Production.INFO: ==5333== Lock acquired, processing the job... [2025-03-03 09:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 09:59:03] Production.INFO: ==5333== Releasing lock... [2025-03-03 09:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 09:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 09:59:04] Production.INFO: ==5339== Lock acquired, processing the job... [2025-03-03 09:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 09:59:04] Production.INFO: ==5341== Lock acquired, processing the job... [2025-03-03 09:59:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 09:59:04] Production.INFO: ==5343== Lock acquired, processing the job... [2025-03-03 09:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 09:59:04] Production.INFO: ==5337== Lock acquired, processing the job... [2025-03-03 09:59:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 09:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 09:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 09:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 09:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 09:59:04] Production.INFO: Account Balance Start. [2025-03-03 09:59:04] Production.INFO: CreateAllLog Start [2025-03-03 09:59:04] Production.INFO: 117 [2025-03-03 09:59:04] Production.INFO: ==5339== Releasing lock... [2025-03-03 09:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 09:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 09:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 09:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: ==5345== Lock acquired, processing the job... [2025-03-03 09:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 09:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: ==5348== Lock acquired, processing the job... [2025-03-03 09:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 09:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:04] Production.INFO: count ==13 [2025-03-03 09:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 09:59:04] Production.INFO: count ==21 [2025-03-03 09:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597704') start [2025-03-03 09:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 09:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.ERROR: done [2025-03-03 09:59:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 09:59:05] Production.INFO: Date 2025-02-21 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-02-22 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597704') end [2025-03-03 09:59:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 09:59:05] Production.INFO: 1 [2025-03-03 09:59:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 09:59:05] Production.ERROR: done [2025-03-03 09:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: ==5348== Releasing lock... [2025-03-03 09:59:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 09:59:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 09:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 09:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 09:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 09:59:05] Production.INFO: Total Charge 0 [2025-03-03 09:59:05] Production.INFO: CreateAllLog End [2025-03-03 09:59:05] Production.INFO: Account Balance End. [2025-03-03 09:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 09:59:05] Production.INFO: ==5343== Releasing lock... [2025-03-03 09:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 09:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 09:59:12] Production.ERROR: CronJobId end10 [2025-03-03 09:59:12] Production.INFO: ==5341== Releasing lock... [2025-03-03 09:59:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 09:59:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 09:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 09:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 09:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 09:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 09:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 09:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 09:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 09:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 09:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 09:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 09:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 09:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 09:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 09:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 09:59:16] Production.INFO: call_cost start [2025-03-03 09:59:16] Production.INFO: call_cost end [2025-03-03 09:59:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 09:59:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 09:59:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 09:59:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 09:59:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 09:59:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 09:59:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 09:59:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 09:59:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 09:59:16] Production.INFO: ==5337== Releasing lock... [2025-03-03 09:59:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 09:59:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 09:59:17] Production.INFO: count ==409 [2025-03-03 09:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597705', 'tblTempUsageDetail_20' ) start [2025-03-03 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597705', 'tblTempUsageDetail_20' ) end [2025-03-03 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597705', 'tblTempVendorCDR_20' ) start [2025-03-03 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597705', 'tblTempVendorCDR_20' ) end [2025-03-03 09:59:17] Production.INFO: ProcessCDR(1,14597705,1,1,2) [2025-03-03 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597705', 'tblTempUsageDetail_20' ) start [2025-03-03 09:59:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597705', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 09:59:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 09:59:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 09:59:26] Production.INFO: ==5345== Releasing lock... [2025-03-03 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 09:59:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:00:01] Production.INFO: ==5422== Lock acquired, processing the job... [2025-03-03 15:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:00:01] Production.INFO: neon service started [2025-03-03 15:00:01] Production.INFO: neon service started [2025-03-03 15:00:01] Production.INFO: ==5422== Releasing lock... [2025-03-03 15:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:00:02] Production.INFO: ==5424== Lock acquired, processing the job... [2025-03-03 10:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:00:02] Production.INFO: ==5424== Releasing lock... [2025-03-03 10:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:00:03] Production.INFO: ==5426== Lock acquired, processing the job... [2025-03-03 15:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:00:03] Production.INFO: ==5426== Releasing lock... [2025-03-03 15:00:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:00:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:00:03] Production.INFO: ==5428== Lock acquired, processing the job... [2025-03-03 10:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 10:00:03] Production.INFO: ==5430== Lock acquired, processing the job... [2025-03-03 10:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 10:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 10:00:03] Production.INFO: ==5428== Releasing lock... [2025-03-03 10:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 10:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 10:00:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:00:03] Production.INFO: ==5434== Lock acquired, processing the job... [2025-03-03 10:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:00:03] Production.INFO: ==5437== Lock acquired, processing the job... [2025-03-03 10:00:03] Production.INFO: bulkautopaymentcapture-command-bulkautopaymentcapture-companyid-1-cronjobid-11 #Starts# [2025-03-03 10:00:04] Production.INFO: ==5439== Lock acquired, processing the job... [2025-03-03 10:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '5', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '7', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '8', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '13', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '14', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '17', '0', '1' ) [2025-03-03 10:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '19', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '21', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '25', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '26', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '20', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '32', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '33', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '37', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '41', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '43', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:04] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:04] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '45', '0', '1' ) [2025-03-03 10:00:04] Production.INFO: PaymentPendingInvoice Count - 1 [2025-03-03 10:00:04] Production.INFO: ==5432== Lock acquired, processing the job... [2025-03-03 10:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:00:04] Production.INFO: Account Balance Start. [2025-03-03 10:00:04] Production.INFO: CreateAllLog Start [2025-03-03 10:00:04] Production.INFO: 117 [2025-03-03 10:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:00:04] Production.INFO: Outstanding Amount 38.43 [2025-03-03 10:00:04] Production.INFO: Invoice Full Number INV11632 [2025-03-03 10:00:04] Production.INFO: Transaction start [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: ==5441== Lock acquired, processing the job... [2025-03-03 10:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:00:04] Production.INFO: ==5443== Lock acquired, processing the job... [2025-03-03 10:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 10:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:00:04] Production.INFO: ==5445== Lock acquired, processing the job... [2025-03-03 10:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: ==5432== Releasing lock... [2025-03-03 10:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:04] Production.INFO: count ==13 [2025-03-03 10:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:00:04] Production.INFO: count ==21 [2025-03-03 10:00:05] Production.ERROR: done [2025-03-03 10:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597709') start [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.ERROR: done [2025-03-03 10:00:05] Production.ERROR: done [2025-03-03 10:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597709') end [2025-03-03 10:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:00:05] Production.INFO: 1 [2025-03-03 10:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:00:05] Production.INFO: ==5445== Releasing lock... [2025-03-03 10:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 10:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597710', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 10:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:00:05] Production.INFO: Total Charge 0 [2025-03-03 10:00:05] Production.INFO: CreateAllLog End [2025-03-03 10:00:05] Production.INFO: Account Balance End. [2025-03-03 10:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:00:05] Production.INFO: ==5439== Releasing lock... [2025-03-03 10:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:00:05] Production.INFO: Transaction end [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '49', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '47', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '52', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '53', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '54', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '57', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '58', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '34', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '59', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '63', '0', '1' ) [2025-03-03 10:00:06] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:06] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:06] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '65', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '67', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '73', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '74', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '70', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '82', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '83', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '84', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '85', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '93', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '95', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '92', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '86', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '78', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '87', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '88', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 5 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '90', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '98', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '99', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '97', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '100', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '101', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '102', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '104', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '106', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '107', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '110', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '111', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '113', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '114', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '115', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '119', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '121', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '123', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '124', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '127', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '131', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '130', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 6 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '134', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '137', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '138', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '136', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '139', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '140', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '146', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '147', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '151', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '153', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '154', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '155', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '157', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 0 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '149', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 1 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '160', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '152', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '161', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '165', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '166', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '183', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '184', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '185', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '187', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '195', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '190', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 1 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '192', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '193', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 4 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '205', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '208', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 1 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '206', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 18 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '182', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '211', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '188', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '218', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '226', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '227', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '189', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '229', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '230', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '232', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '236', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 0 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '239', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:07] Production.INFO: PaymentMethod - 1 [2025-03-03 10:00:07] Production.ERROR: CALL prc_getPaymentPendingInvoice ('1', '241', '0', '1' ) [2025-03-03 10:00:07] Production.INFO: PaymentPendingInvoice Count - 0 [2025-03-03 10:00:08] Production.ERROR: CronJobId end11 [2025-03-03 10:00:08] Production.INFO: ==5437== Releasing lock... [2025-03-03 10:00:08] Production.INFO: bulkautopaymentcapture-command-bulkautopaymentcapture-companyid-1-cronjobid-11 #Stops# [2025-03-03 10:00:08] Production.INFO: 34 MB #Memory Used# [2025-03-03 10:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597710', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 10:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 10:00:10] Production.INFO: ProcessCDR(1,14597710,1,1,2) [2025-03-03 10:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597710,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597710,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 10:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 10:00:10] Production.INFO: ==5443== Releasing lock... [2025-03-03 10:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 10:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:00:15] Production.ERROR: CronJobId end10 [2025-03-03 10:00:15] Production.INFO: ==5434== Releasing lock... [2025-03-03 10:00:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:00:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:00:17] Production.INFO: count ==409 [2025-03-03 10:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597711', 'tblTempUsageDetail_20' ) start [2025-03-03 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597711', 'tblTempUsageDetail_20' ) end [2025-03-03 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597711', 'tblTempVendorCDR_20' ) start [2025-03-03 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597711', 'tblTempVendorCDR_20' ) end [2025-03-03 10:00:17] Production.INFO: ProcessCDR(1,14597711,1,1,2) [2025-03-03 10:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:00:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:00:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:00:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:00:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:00:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:00:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:00:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:00:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:00:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:00:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:00:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:00:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:00:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:00:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:00:18] Production.INFO: call_cost start [2025-03-03 10:00:18] Production.INFO: call_cost end [2025-03-03 10:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:00:18] Production.INFO: ==5430== Releasing lock... [2025-03-03 10:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597711', 'tblTempUsageDetail_20' ) start [2025-03-03 10:00:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597711', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:00:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:00:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:00:27] Production.INFO: ==5441== Releasing lock... [2025-03-03 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:00:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:01:02] Production.INFO: ==5519== Lock acquired, processing the job... [2025-03-03 15:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:01:02] Production.INFO: neon service started [2025-03-03 15:01:02] Production.INFO: neon service started [2025-03-03 15:01:02] Production.INFO: ==5519== Releasing lock... [2025-03-03 15:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:01:02] Production.INFO: ==5533== Lock acquired, processing the job... [2025-03-03 10:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:01:02] Production.INFO: ==5535== Lock acquired, processing the job... [2025-03-03 15:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:01:02] Production.INFO: ==5535== Releasing lock... [2025-03-03 15:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:01:02] Production.INFO: ==5533== Releasing lock... [2025-03-03 10:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:01:03] Production.INFO: ==5543== Lock acquired, processing the job... [2025-03-03 10:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:01:04] Production.INFO: ==5547== Lock acquired, processing the job... [2025-03-03 10:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:01:04] Production.INFO: ==5539== Lock acquired, processing the job... [2025-03-03 10:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:01:04] Production.INFO: ==5541== Lock acquired, processing the job... [2025-03-03 10:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:01:04] Production.INFO: ==5549== Lock acquired, processing the job... [2025-03-03 10:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:01:04] Production.INFO: ==5545== Lock acquired, processing the job... [2025-03-03 10:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:01:04] Production.ERROR: done [2025-03-03 10:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:01:04] Production.INFO: count ==13 [2025-03-03 10:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:01:04] Production.INFO: count ==21 [2025-03-03 10:01:04] Production.ERROR: done [2025-03-03 10:01:04] Production.INFO: Account Balance Start. [2025-03-03 10:01:04] Production.INFO: CreateAllLog Start [2025-03-03 10:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597712') start [2025-03-03 10:01:04] Production.INFO: 117 [2025-03-03 10:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597712') end [2025-03-03 10:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:01:04] Production.INFO: 1 [2025-03-03 10:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:04] Production.INFO: ==5541== Releasing lock... [2025-03-03 10:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:01:04] Production.INFO: ==5549== Releasing lock... [2025-03-03 10:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:01:05] Production.INFO: Date 2025-02-11 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:01:05] Production.INFO: Total Charge 0 [2025-03-03 10:01:06] Production.INFO: CreateAllLog End [2025-03-03 10:01:06] Production.INFO: Account Balance End. [2025-03-03 10:01:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:01:06] Production.INFO: ==5545== Releasing lock... [2025-03-03 10:01:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:01:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:01:13] Production.ERROR: CronJobId end10 [2025-03-03 10:01:13] Production.INFO: ==5543== Releasing lock... [2025-03-03 10:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:01:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:01:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:01:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:01:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:01:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:01:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:01:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:01:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:01:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:01:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:01:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:01:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:01:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:01:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:01:16] Production.INFO: call_cost start [2025-03-03 10:01:16] Production.INFO: call_cost end [2025-03-03 10:01:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:01:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:01:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:01:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:01:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:01:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:01:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:01:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:01:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:01:16] Production.INFO: ==5539== Releasing lock... [2025-03-03 10:01:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:01:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:01:16] Production.INFO: count ==409 [2025-03-03 10:01:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597716', 'tblTempUsageDetail_20' ) start [2025-03-03 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597716', 'tblTempUsageDetail_20' ) end [2025-03-03 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597716', 'tblTempVendorCDR_20' ) start [2025-03-03 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597716', 'tblTempVendorCDR_20' ) end [2025-03-03 10:01:17] Production.INFO: ProcessCDR(1,14597716,1,1,2) [2025-03-03 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597716', 'tblTempUsageDetail_20' ) start [2025-03-03 10:01:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597716', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:01:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:01:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:01:25] Production.INFO: ==5547== Releasing lock... [2025-03-03 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:01:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:02:01] Production.INFO: ==5627== Lock acquired, processing the job... [2025-03-03 15:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:02:01] Production.INFO: neon service started [2025-03-03 15:02:01] Production.INFO: neon service started [2025-03-03 15:02:01] Production.INFO: ==5627== Releasing lock... [2025-03-03 15:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:02:02] Production.INFO: ==5629== Lock acquired, processing the job... [2025-03-03 10:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:02:02] Production.INFO: ==5631== Lock acquired, processing the job... [2025-03-03 10:02:02] Production.INFO: ==5629== Releasing lock... [2025-03-03 15:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:02:02] Production.INFO: ==5631== Releasing lock... [2025-03-03 15:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:02:03] Production.INFO: ==5642== Lock acquired, processing the job... [2025-03-03 10:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:02:03] Production.INFO: ==5644== Lock acquired, processing the job... [2025-03-03 10:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:02:03] Production.INFO: ==5634== Lock acquired, processing the job... [2025-03-03 10:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:02:03] Production.INFO: ==5636== Lock acquired, processing the job... [2025-03-03 10:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:02:03] Production.INFO: count ==13 [2025-03-03 10:02:03] Production.INFO: ==5640== Lock acquired, processing the job... [2025-03-03 10:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:02:03] Production.INFO: ==5638== Lock acquired, processing the job... [2025-03-03 10:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:02:03] Production.INFO: count ==21 [2025-03-03 10:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597717') start [2025-03-03 10:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597717') end [2025-03-03 10:02:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:02:03] Production.INFO: 1 [2025-03-03 10:02:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:02:03] Production.INFO: Account Balance Start. [2025-03-03 10:02:03] Production.INFO: CreateAllLog Start [2025-03-03 10:02:04] Production.INFO: 117 [2025-03-03 10:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: ==5644== Releasing lock... [2025-03-03 10:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:02:04] Production.ERROR: done [2025-03-03 10:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: ==5636== Releasing lock... [2025-03-03 10:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:02:04] Production.ERROR: done [2025-03-03 10:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:02:05] Production.INFO: Total Charge 0 [2025-03-03 10:02:05] Production.INFO: CreateAllLog End [2025-03-03 10:02:05] Production.INFO: Account Balance End. [2025-03-03 10:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:02:05] Production.INFO: ==5640== Releasing lock... [2025-03-03 10:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:02:13] Production.ERROR: CronJobId end10 [2025-03-03 10:02:13] Production.INFO: ==5638== Releasing lock... [2025-03-03 10:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:02:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:02:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:02:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:02:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:02:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:02:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:02:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:02:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:02:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:02:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:02:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:02:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:02:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:02:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:02:16] Production.INFO: call_cost start [2025-03-03 10:02:16] Production.INFO: call_cost end [2025-03-03 10:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:02:16] Production.INFO: ==5634== Releasing lock... [2025-03-03 10:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:02:16] Production.INFO: count ==409 [2025-03-03 10:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597721', 'tblTempUsageDetail_20' ) start [2025-03-03 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597721', 'tblTempUsageDetail_20' ) end [2025-03-03 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597721', 'tblTempVendorCDR_20' ) start [2025-03-03 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597721', 'tblTempVendorCDR_20' ) end [2025-03-03 10:02:17] Production.INFO: ProcessCDR(1,14597721,1,1,2) [2025-03-03 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597721', 'tblTempUsageDetail_20' ) start [2025-03-03 10:02:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597721', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:02:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:02:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:02:26] Production.INFO: ==5642== Releasing lock... [2025-03-03 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:02:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:03:02] Production.INFO: ==5731== Lock acquired, processing the job... [2025-03-03 15:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:03:02] Production.INFO: neon service started [2025-03-03 15:03:02] Production.INFO: neon service started [2025-03-03 15:03:02] Production.INFO: ==5731== Releasing lock... [2025-03-03 15:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:03:02] Production.INFO: ==5733== Lock acquired, processing the job... [2025-03-03 10:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:03:02] Production.INFO: ==5733== Releasing lock... [2025-03-03 10:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:03:02] Production.INFO: ==5735== Lock acquired, processing the job... [2025-03-03 15:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:03:03] Production.INFO: ==5735== Releasing lock... [2025-03-03 15:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:03:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:03:04] Production.INFO: ==5746== Lock acquired, processing the job... [2025-03-03 10:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:03:04] Production.INFO: ==5737== Lock acquired, processing the job... [2025-03-03 10:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:03:04] Production.INFO: ==5748== Lock acquired, processing the job... [2025-03-03 10:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:03:04] Production.INFO: ==5739== Lock acquired, processing the job... [2025-03-03 10:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:03:04] Production.INFO: ==5742== Lock acquired, processing the job... [2025-03-03 10:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:03:04] Production.INFO: count ==13 [2025-03-03 10:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:03:04] Production.INFO: ==5744== Lock acquired, processing the job... [2025-03-03 10:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:03:04] Production.INFO: count ==21 [2025-03-03 10:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597723') start [2025-03-03 10:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:03:04] Production.INFO: Account Balance Start. [2025-03-03 10:03:04] Production.INFO: CreateAllLog Start [2025-03-03 10:03:04] Production.INFO: 117 [2025-03-03 10:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597723') end [2025-03-03 10:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:03:04] Production.INFO: 1 [2025-03-03 10:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.INFO: ==5748== Releasing lock... [2025-03-03 10:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.ERROR: done [2025-03-03 10:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.ERROR: done [2025-03-03 10:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:04] Production.INFO: ==5739== Releasing lock... [2025-03-03 10:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:03:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:03:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:03:05] Production.INFO: Total Charge 0 [2025-03-03 10:03:05] Production.INFO: CreateAllLog End [2025-03-03 10:03:05] Production.INFO: Account Balance End. [2025-03-03 10:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:03:05] Production.INFO: ==5744== Releasing lock... [2025-03-03 10:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:03:13] Production.ERROR: CronJobId end10 [2025-03-03 10:03:13] Production.INFO: ==5742== Releasing lock... [2025-03-03 10:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:03:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:03:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:03:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:03:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:03:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:03:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:03:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:03:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:03:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:03:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:03:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:03:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:03:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:03:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:03:16] Production.INFO: call_cost start [2025-03-03 10:03:16] Production.INFO: call_cost end [2025-03-03 10:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:03:16] Production.INFO: ==5737== Releasing lock... [2025-03-03 10:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:03:17] Production.INFO: count ==409 [2025-03-03 10:03:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597726', 'tblTempUsageDetail_20' ) start [2025-03-03 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597726', 'tblTempUsageDetail_20' ) end [2025-03-03 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597726', 'tblTempVendorCDR_20' ) start [2025-03-03 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597726', 'tblTempVendorCDR_20' ) end [2025-03-03 10:03:17] Production.INFO: ProcessCDR(1,14597726,1,1,2) [2025-03-03 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597726', 'tblTempUsageDetail_20' ) start [2025-03-03 10:03:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597726', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:03:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:03:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:03:26] Production.INFO: ==5746== Releasing lock... [2025-03-03 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:03:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:04:01] Production.INFO: ==5834== Lock acquired, processing the job... [2025-03-03 15:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:04:01] Production.INFO: neon service started [2025-03-03 15:04:01] Production.INFO: neon service started [2025-03-03 15:04:01] Production.INFO: ==5834== Releasing lock... [2025-03-03 15:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:04:02] Production.INFO: ==5836== Lock acquired, processing the job... [2025-03-03 10:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:04:02] Production.INFO: ==5838== Lock acquired, processing the job... [2025-03-03 15:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:04:02] Production.INFO: ==5836== Releasing lock... [2025-03-03 10:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:04:02] Production.INFO: ==5838== Releasing lock... [2025-03-03 15:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:04:03] Production.INFO: ==5843== Lock acquired, processing the job... [2025-03-03 10:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:04:03] Production.INFO: ==5849== Lock acquired, processing the job... [2025-03-03 10:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:04:03] Production.INFO: ==5845== Lock acquired, processing the job... [2025-03-03 10:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:04:03] Production.INFO: Account Balance Start. [2025-03-03 10:04:03] Production.INFO: CreateAllLog Start [2025-03-03 10:04:03] Production.INFO: 117 [2025-03-03 10:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 10:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 10:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 10:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:03] Production.INFO: ==5847== Lock acquired, processing the job... [2025-03-03 10:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:04:03] Production.INFO: Date 2025-02-12 [2025-03-03 10:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:03] Production.INFO: Date 2025-02-13 [2025-03-03 10:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:03] Production.INFO: ==5851== Lock acquired, processing the job... [2025-03-03 10:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:04:04] Production.INFO: ==5853== Lock acquired, processing the job... [2025-03-03 10:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: ==5845== Releasing lock... [2025-03-03 10:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:04:04] Production.INFO: count ==13 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:04:04] Production.INFO: count ==21 [2025-03-03 10:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597730') start [2025-03-03 10:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.ERROR: done [2025-03-03 10:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597730') end [2025-03-03 10:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:04:04] Production.INFO: 1 [2025-03-03 10:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: ==5853== Releasing lock... [2025-03-03 10:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.ERROR: done [2025-03-03 10:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:04:05] Production.INFO: Total Charge 0 [2025-03-03 10:04:05] Production.INFO: CreateAllLog End [2025-03-03 10:04:05] Production.INFO: Account Balance End. [2025-03-03 10:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:04:05] Production.INFO: ==5849== Releasing lock... [2025-03-03 10:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:04:11] Production.ERROR: CronJobId end10 [2025-03-03 10:04:11] Production.INFO: ==5847== Releasing lock... [2025-03-03 10:04:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:04:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:04:15] Production.INFO: call_cost start [2025-03-03 10:04:15] Production.INFO: call_cost end [2025-03-03 10:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:04:15] Production.INFO: ==5843== Releasing lock... [2025-03-03 10:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:04:17] Production.INFO: count ==409 [2025-03-03 10:04:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597731', 'tblTempUsageDetail_20' ) start [2025-03-03 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597731', 'tblTempUsageDetail_20' ) end [2025-03-03 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597731', 'tblTempVendorCDR_20' ) start [2025-03-03 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597731', 'tblTempVendorCDR_20' ) end [2025-03-03 10:04:17] Production.INFO: ProcessCDR(1,14597731,1,1,2) [2025-03-03 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597731', 'tblTempUsageDetail_20' ) start [2025-03-03 10:04:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597731', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:04:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:04:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:04:26] Production.INFO: ==5851== Releasing lock... [2025-03-03 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:04:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:05:02] Production.INFO: ==5927== Lock acquired, processing the job... [2025-03-03 15:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:05:02] Production.INFO: neon service started [2025-03-03 15:05:02] Production.INFO: neon service started [2025-03-03 15:05:02] Production.INFO: ==5927== Releasing lock... [2025-03-03 15:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:05:02] Production.INFO: ==5931== Lock acquired, processing the job... [2025-03-03 15:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:05:02] Production.INFO: ==5931== Releasing lock... [2025-03-03 15:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:05:02] Production.INFO: ==5929== Lock acquired, processing the job... [2025-03-03 10:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:05:03] Production.INFO: ==5929== Releasing lock... [2025-03-03 10:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:05:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:05:03] Production.INFO: ==5934== Lock acquired, processing the job... [2025-03-03 10:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:05:04] Production.INFO: ==5936== Lock acquired, processing the job... [2025-03-03 10:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:05:04] Production.INFO: ==5938== Lock acquired, processing the job... [2025-03-03 10:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:05:04] Production.INFO: ==5942== Lock acquired, processing the job... [2025-03-03 10:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:05:04] Production.INFO: ==5940== Lock acquired, processing the job... [2025-03-03 10:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:05:04] Production.INFO: ==5936== Releasing lock... [2025-03-03 10:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:05:04] Production.INFO: ==5944== Lock acquired, processing the job... [2025-03-03 10:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:05:04] Production.INFO: Account Balance Start. [2025-03-03 10:05:04] Production.INFO: CreateAllLog Start [2025-03-03 10:05:04] Production.INFO: 117 [2025-03-03 10:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:04] Production.ERROR: done [2025-03-03 10:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:05:04] Production.ERROR: done [2025-03-03 10:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:04] Production.INFO: count ==13 [2025-03-03 10:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:05:04] Production.INFO: count ==21 [2025-03-03 10:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597735') start [2025-03-03 10:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:05:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597735') end [2025-03-03 10:05:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:05:05] Production.INFO: 1 [2025-03-03 10:05:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:05:05] Production.INFO: ==5944== Releasing lock... [2025-03-03 10:05:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:05:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:05:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:05:05] Production.INFO: Total Charge 0 [2025-03-03 10:05:05] Production.INFO: CreateAllLog End [2025-03-03 10:05:05] Production.INFO: Account Balance End. [2025-03-03 10:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:05:05] Production.INFO: ==5940== Releasing lock... [2025-03-03 10:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:05:13] Production.ERROR: CronJobId end10 [2025-03-03 10:05:13] Production.INFO: ==5938== Releasing lock... [2025-03-03 10:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:05:16] Production.INFO: call_cost start [2025-03-03 10:05:16] Production.INFO: call_cost end [2025-03-03 10:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:05:16] Production.INFO: ==5934== Releasing lock... [2025-03-03 10:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:05:17] Production.INFO: count ==409 [2025-03-03 10:05:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597736', 'tblTempUsageDetail_20' ) start [2025-03-03 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597736', 'tblTempUsageDetail_20' ) end [2025-03-03 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597736', 'tblTempVendorCDR_20' ) start [2025-03-03 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597736', 'tblTempVendorCDR_20' ) end [2025-03-03 10:05:17] Production.INFO: ProcessCDR(1,14597736,1,1,2) [2025-03-03 10:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597736', 'tblTempUsageDetail_20' ) start [2025-03-03 10:05:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597736', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:05:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:05:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:05:26] Production.INFO: ==5942== Releasing lock... [2025-03-03 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:05:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:06:01] Production.INFO: ==6009== Lock acquired, processing the job... [2025-03-03 15:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:06:01] Production.INFO: neon service started [2025-03-03 15:06:01] Production.INFO: neon service started [2025-03-03 15:06:01] Production.INFO: ==6009== Releasing lock... [2025-03-03 15:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:06:02] Production.INFO: ==6013== Lock acquired, processing the job... [2025-03-03 15:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:06:02] Production.INFO: ==6013== Releasing lock... [2025-03-03 15:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:06:02] Production.INFO: ==6011== Lock acquired, processing the job... [2025-03-03 10:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:06:02] Production.INFO: ==6011== Releasing lock... [2025-03-03 10:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:06:03] Production.INFO: ==6016== Lock acquired, processing the job... [2025-03-03 10:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:06:03] Production.INFO: ==6018== Lock acquired, processing the job... [2025-03-03 10:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:06:03] Production.INFO: ==6020== Lock acquired, processing the job... [2025-03-03 10:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:06:03] Production.INFO: ==6024== Lock acquired, processing the job... [2025-03-03 10:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:06:03] Production.INFO: ==6022== Lock acquired, processing the job... [2025-03-03 10:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:06:03] Production.INFO: ==6026== Lock acquired, processing the job... [2025-03-03 10:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:06:04] Production.INFO: ==6018== Releasing lock... [2025-03-03 10:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:06:04] Production.INFO: Account Balance Start. [2025-03-03 10:06:04] Production.INFO: CreateAllLog Start [2025-03-03 10:06:04] Production.INFO: 117 [2025-03-03 10:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: count ==13 [2025-03-03 10:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:06:04] Production.INFO: count ==21 [2025-03-03 10:06:04] Production.ERROR: done [2025-03-03 10:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597739') start [2025-03-03 10:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597739') end [2025-03-03 10:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:06:04] Production.INFO: 1 [2025-03-03 10:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: ==6026== Releasing lock... [2025-03-03 10:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:06:04] Production.ERROR: done [2025-03-03 10:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:06:05] Production.INFO: Total Charge 0 [2025-03-03 10:06:05] Production.INFO: CreateAllLog End [2025-03-03 10:06:05] Production.INFO: Account Balance End. [2025-03-03 10:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:06:05] Production.INFO: ==6022== Releasing lock... [2025-03-03 10:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:06:12] Production.ERROR: CronJobId end10 [2025-03-03 10:06:12] Production.INFO: ==6020== Releasing lock... [2025-03-03 10:06:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:06:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:06:15] Production.INFO: call_cost start [2025-03-03 10:06:15] Production.INFO: call_cost end [2025-03-03 10:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:06:15] Production.INFO: ==6016== Releasing lock... [2025-03-03 10:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:06:16] Production.INFO: count ==409 [2025-03-03 10:06:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597741', 'tblTempUsageDetail_20' ) start [2025-03-03 10:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597741', 'tblTempUsageDetail_20' ) end [2025-03-03 10:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597741', 'tblTempVendorCDR_20' ) start [2025-03-03 10:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597741', 'tblTempVendorCDR_20' ) end [2025-03-03 10:06:16] Production.INFO: ProcessCDR(1,14597741,1,1,2) [2025-03-03 10:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597741', 'tblTempUsageDetail_20' ) start [2025-03-03 10:06:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597741', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:06:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:06:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:06:25] Production.INFO: ==6024== Releasing lock... [2025-03-03 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:06:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:07:02] Production.INFO: ==6098== Lock acquired, processing the job... [2025-03-03 15:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:07:02] Production.INFO: neon service started [2025-03-03 15:07:02] Production.INFO: neon service started [2025-03-03 15:07:02] Production.INFO: ==6098== Releasing lock... [2025-03-03 15:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:07:02] Production.INFO: ==6101== Lock acquired, processing the job... [2025-03-03 10:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:07:02] Production.INFO: ==6103== Lock acquired, processing the job... [2025-03-03 15:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:07:03] Production.INFO: ==6103== Releasing lock... [2025-03-03 15:07:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:07:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:07:03] Production.INFO: ==6101== Releasing lock... [2025-03-03 10:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:07:04] Production.INFO: ==6112== Lock acquired, processing the job... [2025-03-03 10:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:07:04] Production.INFO: ==6116== Lock acquired, processing the job... [2025-03-03 10:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:07:04] Production.INFO: Account Balance Start. [2025-03-03 10:07:04] Production.INFO: CreateAllLog Start [2025-03-03 10:07:04] Production.INFO: 117 [2025-03-03 10:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.INFO: ==6106== Lock acquired, processing the job... [2025-03-03 10:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:07:04] Production.INFO: count ==13 [2025-03-03 10:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:07:04] Production.INFO: count ==21 [2025-03-03 10:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597743') start [2025-03-03 10:07:04] Production.INFO: ==6108== Lock acquired, processing the job... [2025-03-03 10:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.INFO: ==6110== Lock acquired, processing the job... [2025-03-03 10:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597743') end [2025-03-03 10:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:07:04] Production.INFO: 1 [2025-03-03 10:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:07:04] Production.INFO: ==6114== Lock acquired, processing the job... [2025-03-03 10:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:07:04] Production.INFO: ==6116== Releasing lock... [2025-03-03 10:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: ==6108== Releasing lock... [2025-03-03 10:07:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:07:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:07:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.ERROR: done [2025-03-03 10:07:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.ERROR: done [2025-03-03 10:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:07:05] Production.INFO: Total Charge 0 [2025-03-03 10:07:05] Production.INFO: CreateAllLog End [2025-03-03 10:07:06] Production.INFO: Account Balance End. [2025-03-03 10:07:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:07:06] Production.INFO: ==6112== Releasing lock... [2025-03-03 10:07:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:07:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:07:13] Production.ERROR: CronJobId end10 [2025-03-03 10:07:13] Production.INFO: ==6110== Releasing lock... [2025-03-03 10:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:07:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:07:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:07:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:07:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:07:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:07:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:07:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:07:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:07:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:07:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:07:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:07:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:07:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:07:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:07:16] Production.INFO: call_cost start [2025-03-03 10:07:16] Production.INFO: call_cost end [2025-03-03 10:07:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:07:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:07:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:07:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:07:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:07:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:07:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:07:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:07:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:07:16] Production.INFO: ==6106== Releasing lock... [2025-03-03 10:07:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:07:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:07:18] Production.INFO: count ==409 [2025-03-03 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597746', 'tblTempUsageDetail_20' ) start [2025-03-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597746', 'tblTempUsageDetail_20' ) end [2025-03-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597746', 'tblTempVendorCDR_20' ) start [2025-03-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597746', 'tblTempVendorCDR_20' ) end [2025-03-03 10:07:18] Production.INFO: ProcessCDR(1,14597746,1,1,2) [2025-03-03 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597746', 'tblTempUsageDetail_20' ) start [2025-03-03 10:07:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597746', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:07:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:07:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:07:26] Production.INFO: ==6114== Releasing lock... [2025-03-03 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:07:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:08:01] Production.INFO: ==6181== Lock acquired, processing the job... [2025-03-03 15:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:08:01] Production.INFO: neon service started [2025-03-03 15:08:01] Production.INFO: neon service started [2025-03-03 15:08:01] Production.INFO: ==6181== Releasing lock... [2025-03-03 15:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:08:02] Production.INFO: ==6183== Lock acquired, processing the job... [2025-03-03 10:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:08:02] Production.INFO: ==6183== Releasing lock... [2025-03-03 10:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:08:02] Production.INFO: ==6185== Lock acquired, processing the job... [2025-03-03 15:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:08:02] Production.INFO: ==6185== Releasing lock... [2025-03-03 15:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:08:03] Production.INFO: ==6198== Lock acquired, processing the job... [2025-03-03 10:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:08:03] Production.INFO: count ==13 [2025-03-03 10:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:08:03] Production.INFO: count ==21 [2025-03-03 10:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597747') start [2025-03-03 10:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597747') end [2025-03-03 10:08:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:08:03] Production.INFO: 1 [2025-03-03 10:08:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:08:03] Production.INFO: ==6198== Releasing lock... [2025-03-03 10:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:08:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:08:03] Production.INFO: ==6196== Lock acquired, processing the job... [2025-03-03 10:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:08:03] Production.INFO: ==6189== Lock acquired, processing the job... [2025-03-03 10:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:08:03] Production.INFO: ==6187== Lock acquired, processing the job... [2025-03-03 10:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:08:04] Production.INFO: ==6192== Lock acquired, processing the job... [2025-03-03 10:08:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:08:04] Production.INFO: ==6194== Lock acquired, processing the job... [2025-03-03 10:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:08:04] Production.INFO: Account Balance Start. [2025-03-03 10:08:04] Production.INFO: CreateAllLog Start [2025-03-03 10:08:04] Production.INFO: 117 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.ERROR: done [2025-03-03 10:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: ==6189== Releasing lock... [2025-03-03 10:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.ERROR: done [2025-03-03 10:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:08:05] Production.INFO: Total Charge 0 [2025-03-03 10:08:05] Production.INFO: CreateAllLog End [2025-03-03 10:08:05] Production.INFO: Account Balance End. [2025-03-03 10:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:08:05] Production.INFO: ==6194== Releasing lock... [2025-03-03 10:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:08:13] Production.ERROR: CronJobId end10 [2025-03-03 10:08:13] Production.INFO: ==6192== Releasing lock... [2025-03-03 10:08:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:08:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:08:15] Production.INFO: call_cost start [2025-03-03 10:08:15] Production.INFO: call_cost end [2025-03-03 10:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:08:15] Production.INFO: ==6187== Releasing lock... [2025-03-03 10:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:08:16] Production.INFO: count ==409 [2025-03-03 10:08:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597751', 'tblTempUsageDetail_20' ) start [2025-03-03 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597751', 'tblTempUsageDetail_20' ) end [2025-03-03 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597751', 'tblTempVendorCDR_20' ) start [2025-03-03 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597751', 'tblTempVendorCDR_20' ) end [2025-03-03 10:08:17] Production.INFO: ProcessCDR(1,14597751,1,1,2) [2025-03-03 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597751', 'tblTempUsageDetail_20' ) start [2025-03-03 10:08:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597751', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:08:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:08:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:08:25] Production.INFO: ==6196== Releasing lock... [2025-03-03 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:08:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:09:02] Production.INFO: ==6303== Lock acquired, processing the job... [2025-03-03 15:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:09:02] Production.INFO: neon service started [2025-03-03 15:09:02] Production.INFO: neon service started [2025-03-03 15:09:02] Production.INFO: ==6303== Releasing lock... [2025-03-03 15:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:09:02] Production.INFO: ==6305== Lock acquired, processing the job... [2025-03-03 10:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:09:02] Production.INFO: ==6307== Lock acquired, processing the job... [2025-03-03 15:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:09:02] Production.INFO: ==6305== Releasing lock... [2025-03-03 10:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:09:02] Production.INFO: ==6307== Releasing lock... [2025-03-03 15:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:09:03] Production.INFO: ==6312== Lock acquired, processing the job... [2025-03-03 10:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:09:03] Production.INFO: ==6314== Lock acquired, processing the job... [2025-03-03 10:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:09:03] Production.INFO: ==6310== Lock acquired, processing the job... [2025-03-03 10:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:09:04] Production.INFO: ==6318== Lock acquired, processing the job... [2025-03-03 10:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:09:04] Production.INFO: ==6316== Lock acquired, processing the job... [2025-03-03 10:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:09:04] Production.INFO: ==6320== Lock acquired, processing the job... [2025-03-03 10:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:09:04] Production.INFO: Account Balance Start. [2025-03-03 10:09:04] Production.INFO: CreateAllLog Start [2025-03-03 10:09:04] Production.INFO: 117 [2025-03-03 10:09:04] Production.INFO: ==6312== Releasing lock... [2025-03-03 10:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: count ==13 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:09:04] Production.INFO: count ==21 [2025-03-03 10:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597755') start [2025-03-03 10:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.ERROR: done [2025-03-03 10:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597755') end [2025-03-03 10:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:09:04] Production.INFO: 1 [2025-03-03 10:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:09:04] Production.ERROR: done [2025-03-03 10:09:04] Production.INFO: ==6320== Releasing lock... [2025-03-03 10:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:09:05] Production.INFO: Total Charge 0 [2025-03-03 10:09:05] Production.INFO: CreateAllLog End [2025-03-03 10:09:05] Production.INFO: Account Balance End. [2025-03-03 10:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:09:05] Production.INFO: ==6316== Releasing lock... [2025-03-03 10:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:09:12] Production.ERROR: CronJobId end10 [2025-03-03 10:09:12] Production.INFO: ==6314== Releasing lock... [2025-03-03 10:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:09:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:09:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:09:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:09:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:09:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:09:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:09:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:09:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:09:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:09:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:09:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:09:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:09:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:09:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:09:16] Production.INFO: call_cost start [2025-03-03 10:09:16] Production.INFO: call_cost end [2025-03-03 10:09:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:09:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:09:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:09:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:09:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:09:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:09:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:09:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:09:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:09:16] Production.INFO: ==6310== Releasing lock... [2025-03-03 10:09:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:09:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:09:17] Production.INFO: count ==409 [2025-03-03 10:09:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597756', 'tblTempUsageDetail_20' ) start [2025-03-03 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597756', 'tblTempUsageDetail_20' ) end [2025-03-03 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597756', 'tblTempVendorCDR_20' ) start [2025-03-03 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597756', 'tblTempVendorCDR_20' ) end [2025-03-03 10:09:17] Production.INFO: ProcessCDR(1,14597756,1,1,2) [2025-03-03 10:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597756', 'tblTempUsageDetail_20' ) start [2025-03-03 10:09:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597756', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:09:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:09:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:09:26] Production.INFO: ==6318== Releasing lock... [2025-03-03 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:09:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:10:01] Production.INFO: ==6384== Lock acquired, processing the job... [2025-03-03 15:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:10:01] Production.INFO: neon service started [2025-03-03 15:10:01] Production.INFO: neon service started [2025-03-03 15:10:01] Production.INFO: ==6384== Releasing lock... [2025-03-03 15:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:10:01] Production.INFO: ==6387== Lock acquired, processing the job... [2025-03-03 10:10:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:10:02] Production.INFO: ==6389== Lock acquired, processing the job... [2025-03-03 15:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:10:02] Production.INFO: ==6387== Releasing lock... [2025-03-03 10:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:10:02] Production.INFO: ==6389== Releasing lock... [2025-03-03 15:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:10:03] Production.INFO: ==6391== Lock acquired, processing the job... [2025-03-03 10:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 10:10:03] Production.INFO: ==6393== Lock acquired, processing the job... [2025-03-03 10:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:10:03] Production.INFO: ==6395== Lock acquired, processing the job... [2025-03-03 10:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:10:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 10:10:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:10:03] Production.ERROR: CronJob PID - 6393 [2025-03-03 10:10:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 10:10:03] Production.ERROR: CronJob ID - 5 [2025-03-03 10:10:03] Production.ERROR: CronJob Last Run Time 2025-03-03 10:10:00 [2025-03-03 10:10:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:10:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:10:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 10:10:03] Production.INFO: ==6391== Releasing lock... [2025-03-03 10:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 10:10:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 10:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:10:03] Production.INFO: ==6403== Lock acquired, processing the job... [2025-03-03 10:10:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 10:10:04] Production.INFO: ==6397== Lock acquired, processing the job... [2025-03-03 10:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:10:04] Production.INFO: ==6399== Lock acquired, processing the job... [2025-03-03 10:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:10:04] Production.INFO: ==6401== Lock acquired, processing the job... [2025-03-03 10:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:10:04] Production.INFO: ==6405== Lock acquired, processing the job... [2025-03-03 10:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:10:04] Production.INFO: Account Balance Start. [2025-03-03 10:10:04] Production.INFO: CreateAllLog Start [2025-03-03 10:10:04] Production.INFO: 117 [2025-03-03 10:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:10:04] Production.INFO: ==6395== Releasing lock... [2025-03-03 10:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:10:04] Production.INFO: count ==13 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:10:04] Production.INFO: count ==21 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.ERROR: done [2025-03-03 10:10:04] Production.ERROR: done [2025-03-03 10:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597760') start [2025-03-03 10:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 10:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597761', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 10:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.ERROR: done [2025-03-03 10:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597760') end [2025-03-03 10:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:10:04] Production.INFO: 1 [2025-03-03 10:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:04] Production.INFO: ==6405== Releasing lock... [2025-03-03 10:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:10:05] Production.INFO: Total Charge 0 [2025-03-03 10:10:05] Production.INFO: CreateAllLog End [2025-03-03 10:10:05] Production.INFO: Account Balance End. [2025-03-03 10:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:10:05] Production.INFO: ==6399== Releasing lock... [2025-03-03 10:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597761', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 10:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 10:10:09] Production.INFO: ProcessCDR(1,14597761,1,1,2) [2025-03-03 10:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597761,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597761,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 10:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 10:10:09] Production.INFO: ==6403== Releasing lock... [2025-03-03 10:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 10:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:10:14] Production.ERROR: CronJobId end10 [2025-03-03 10:10:14] Production.INFO: ==6397== Releasing lock... [2025-03-03 10:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:10:17] Production.INFO: count ==409 [2025-03-03 10:10:17] Production.INFO: call_cost start [2025-03-03 10:10:17] Production.INFO: call_cost end [2025-03-03 10:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:10:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597762', 'tblTempUsageDetail_20' ) start [2025-03-03 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597762', 'tblTempUsageDetail_20' ) end [2025-03-03 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597762', 'tblTempVendorCDR_20' ) start [2025-03-03 10:10:17] Production.INFO: ==6393== Releasing lock... [2025-03-03 10:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597762', 'tblTempVendorCDR_20' ) end [2025-03-03 10:10:17] Production.INFO: ProcessCDR(1,14597762,1,1,2) [2025-03-03 10:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597762', 'tblTempUsageDetail_20' ) start [2025-03-03 10:10:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597762', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:10:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:10:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:10:25] Production.INFO: ==6401== Releasing lock... [2025-03-03 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:10:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:11:01] Production.INFO: ==6472== Lock acquired, processing the job... [2025-03-03 15:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:11:02] Production.INFO: neon service started [2025-03-03 15:11:02] Production.INFO: neon service started [2025-03-03 15:11:02] Production.INFO: ==6472== Releasing lock... [2025-03-03 15:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:11:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:11:02] Production.INFO: ==6476== Lock acquired, processing the job... [2025-03-03 15:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:11:02] Production.INFO: ==6476== Releasing lock... [2025-03-03 15:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:11:02] Production.INFO: ==6474== Lock acquired, processing the job... [2025-03-03 10:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:11:02] Production.INFO: ==6474== Releasing lock... [2025-03-03 10:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:11:03] Production.INFO: ==6481== Lock acquired, processing the job... [2025-03-03 10:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:11:03] Production.INFO: ==6479== Lock acquired, processing the job... [2025-03-03 10:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:11:03] Production.INFO: ==6489== Lock acquired, processing the job... [2025-03-03 10:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:11:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:11:04] Production.INFO: count ==13 [2025-03-03 10:11:04] Production.INFO: ==6483== Lock acquired, processing the job... [2025-03-03 10:11:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:11:04] Production.INFO: count ==21 [2025-03-03 10:11:04] Production.INFO: ==6487== Lock acquired, processing the job... [2025-03-03 10:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:11:04] Production.INFO: ==6481== Releasing lock... [2025-03-03 10:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597764') start [2025-03-03 10:11:04] Production.INFO: ==6485== Lock acquired, processing the job... [2025-03-03 10:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597764') end [2025-03-03 10:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:11:04] Production.INFO: 1 [2025-03-03 10:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:11:04] Production.INFO: ==6489== Releasing lock... [2025-03-03 10:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:11:04] Production.INFO: Account Balance Start. [2025-03-03 10:11:04] Production.INFO: CreateAllLog Start [2025-03-03 10:11:04] Production.INFO: 117 [2025-03-03 10:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:04] Production.ERROR: done [2025-03-03 10:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:04] Production.ERROR: done [2025-03-03 10:11:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:11:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:11:05] Production.INFO: Total Charge 0 [2025-03-03 10:11:05] Production.INFO: CreateAllLog End [2025-03-03 10:11:06] Production.INFO: Account Balance End. [2025-03-03 10:11:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:11:06] Production.INFO: ==6485== Releasing lock... [2025-03-03 10:11:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:11:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:11:12] Production.ERROR: CronJobId end10 [2025-03-03 10:11:12] Production.INFO: ==6483== Releasing lock... [2025-03-03 10:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:11:15] Production.INFO: call_cost start [2025-03-03 10:11:15] Production.INFO: call_cost end [2025-03-03 10:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:11:15] Production.INFO: ==6479== Releasing lock... [2025-03-03 10:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:11:17] Production.INFO: count ==409 [2025-03-03 10:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597767', 'tblTempUsageDetail_20' ) start [2025-03-03 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597767', 'tblTempUsageDetail_20' ) end [2025-03-03 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597767', 'tblTempVendorCDR_20' ) start [2025-03-03 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597767', 'tblTempVendorCDR_20' ) end [2025-03-03 10:11:17] Production.INFO: ProcessCDR(1,14597767,1,1,2) [2025-03-03 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597767', 'tblTempUsageDetail_20' ) start [2025-03-03 10:11:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597767', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:11:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:11:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:11:26] Production.INFO: ==6487== Releasing lock... [2025-03-03 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:11:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:12:01] Production.INFO: ==6558== Lock acquired, processing the job... [2025-03-03 15:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:12:01] Production.INFO: neon service started [2025-03-03 15:12:01] Production.INFO: neon service started [2025-03-03 15:12:01] Production.INFO: ==6558== Releasing lock... [2025-03-03 15:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:12:01] Production.INFO: ==6562== Lock acquired, processing the job... [2025-03-03 15:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:12:02] Production.INFO: ==6562== Releasing lock... [2025-03-03 15:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:12:02] Production.INFO: ==6560== Lock acquired, processing the job... [2025-03-03 10:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:12:02] Production.INFO: ==6560== Releasing lock... [2025-03-03 10:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:12:03] Production.INFO: ==6565== Lock acquired, processing the job... [2025-03-03 10:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:12:03] Production.INFO: ==6567== Lock acquired, processing the job... [2025-03-03 10:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:12:03] Production.INFO: ==6575== Lock acquired, processing the job... [2025-03-03 10:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:12:03] Production.INFO: ==6569== Lock acquired, processing the job... [2025-03-03 10:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:12:03] Production.INFO: ==6567== Releasing lock... [2025-03-03 10:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:12:03] Production.INFO: ==6571== Lock acquired, processing the job... [2025-03-03 10:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:12:03] Production.INFO: ==6573== Lock acquired, processing the job... [2025-03-03 10:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:12:03] Production.INFO: count ==13 [2025-03-03 10:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:12:03] Production.INFO: Account Balance Start. [2025-03-03 10:12:03] Production.INFO: CreateAllLog Start [2025-03-03 10:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:12:03] Production.INFO: count ==21 [2025-03-03 10:12:03] Production.INFO: 117 [2025-03-03 10:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597770') start [2025-03-03 10:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597770') end [2025-03-03 10:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:12:04] Production.INFO: 1 [2025-03-03 10:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: ==6575== Releasing lock... [2025-03-03 10:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.ERROR: done [2025-03-03 10:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.ERROR: done [2025-03-03 10:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 10:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:12:05] Production.INFO: Total Charge 0 [2025-03-03 10:12:05] Production.INFO: CreateAllLog End [2025-03-03 10:12:05] Production.INFO: Account Balance End. [2025-03-03 10:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:12:05] Production.INFO: ==6571== Releasing lock... [2025-03-03 10:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:12:13] Production.ERROR: CronJobId end10 [2025-03-03 10:12:13] Production.INFO: ==6569== Releasing lock... [2025-03-03 10:12:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:12:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:12:16] Production.INFO: call_cost start [2025-03-03 10:12:16] Production.INFO: call_cost end [2025-03-03 10:12:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:12:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:12:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:12:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:12:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:12:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:12:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:12:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:12:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:12:16] Production.INFO: ==6565== Releasing lock... [2025-03-03 10:12:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:12:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:12:16] Production.INFO: count ==409 [2025-03-03 10:12:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597772', 'tblTempUsageDetail_20' ) start [2025-03-03 10:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597772', 'tblTempUsageDetail_20' ) end [2025-03-03 10:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597772', 'tblTempVendorCDR_20' ) start [2025-03-03 10:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597772', 'tblTempVendorCDR_20' ) end [2025-03-03 10:12:16] Production.INFO: ProcessCDR(1,14597772,1,1,2) [2025-03-03 10:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597772', 'tblTempUsageDetail_20' ) start [2025-03-03 10:12:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597772', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:12:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:12:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:12:26] Production.INFO: ==6573== Releasing lock... [2025-03-03 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:12:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:13:02] Production.INFO: ==6640== Lock acquired, processing the job... [2025-03-03 15:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:13:02] Production.INFO: neon service started [2025-03-03 15:13:02] Production.INFO: neon service started [2025-03-03 15:13:02] Production.INFO: ==6640== Releasing lock... [2025-03-03 15:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:13:02] Production.INFO: ==6643== Lock acquired, processing the job... [2025-03-03 10:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:13:02] Production.INFO: ==6645== Lock acquired, processing the job... [2025-03-03 15:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:13:02] Production.INFO: ==6645== Releasing lock... [2025-03-03 15:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:13:03] Production.INFO: ==6643== Releasing lock... [2025-03-03 10:13:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:13:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:13:04] Production.INFO: ==6647== Lock acquired, processing the job... [2025-03-03 10:13:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:13:04] Production.INFO: ==6649== Lock acquired, processing the job... [2025-03-03 10:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:13:04] Production.INFO: ==6651== Lock acquired, processing the job... [2025-03-03 10:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:13:04] Production.INFO: ==6649== Releasing lock... [2025-03-03 10:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:13:04] Production.INFO: ==6655== Lock acquired, processing the job... [2025-03-03 10:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:13:04] Production.INFO: ==6657== Lock acquired, processing the job... [2025-03-03 10:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:13:04] Production.INFO: ==6653== Lock acquired, processing the job... [2025-03-03 10:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:13:04] Production.INFO: count ==13 [2025-03-03 10:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:13:04] Production.INFO: count ==21 [2025-03-03 10:13:04] Production.INFO: Account Balance Start. [2025-03-03 10:13:04] Production.INFO: CreateAllLog Start [2025-03-03 10:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597775') start [2025-03-03 10:13:04] Production.INFO: 117 [2025-03-03 10:13:05] Production.ERROR: done [2025-03-03 10:13:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-08 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597775') end [2025-03-03 10:13:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:13:05] Production.INFO: 1 [2025-03-03 10:13:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:13:05] Production.INFO: Date 2025-02-09 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-10 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: ==6657== Releasing lock... [2025-03-03 10:13:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:13:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:13:05] Production.ERROR: done [2025-03-03 10:13:05] Production.INFO: Date 2025-02-11 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:13:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-22 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-23 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-24 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-25 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-26 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-27 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-02-28 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-03-01 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-03-02 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Date 2025-03-03 [2025-03-03 10:13:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:13:06] Production.INFO: Total Charge 0 [2025-03-03 10:13:06] Production.INFO: CreateAllLog End [2025-03-03 10:13:06] Production.INFO: Account Balance End. [2025-03-03 10:13:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:13:06] Production.INFO: ==6653== Releasing lock... [2025-03-03 10:13:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:13:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:13:13] Production.ERROR: CronJobId end10 [2025-03-03 10:13:13] Production.INFO: ==6651== Releasing lock... [2025-03-03 10:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:13:16] Production.INFO: call_cost start [2025-03-03 10:13:16] Production.INFO: call_cost end [2025-03-03 10:13:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:13:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:13:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:13:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:13:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:13:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:13:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:13:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:13:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:13:16] Production.INFO: ==6647== Releasing lock... [2025-03-03 10:13:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:13:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:13:17] Production.INFO: count ==409 [2025-03-03 10:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597777', 'tblTempUsageDetail_20' ) start [2025-03-03 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597777', 'tblTempUsageDetail_20' ) end [2025-03-03 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597777', 'tblTempVendorCDR_20' ) start [2025-03-03 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597777', 'tblTempVendorCDR_20' ) end [2025-03-03 10:13:17] Production.INFO: ProcessCDR(1,14597777,1,1,2) [2025-03-03 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597777', 'tblTempUsageDetail_20' ) start [2025-03-03 10:13:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597777', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:13:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:13:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:13:26] Production.INFO: ==6655== Releasing lock... [2025-03-03 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:13:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:14:01] Production.INFO: ==6721== Lock acquired, processing the job... [2025-03-03 15:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:14:01] Production.INFO: neon service started [2025-03-03 15:14:01] Production.INFO: neon service started [2025-03-03 15:14:01] Production.INFO: ==6721== Releasing lock... [2025-03-03 15:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:14:02] Production.INFO: ==6727== Lock acquired, processing the job... [2025-03-03 15:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:14:02] Production.INFO: ==6727== Releasing lock... [2025-03-03 15:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:14:02] Production.INFO: ==6725== Lock acquired, processing the job... [2025-03-03 10:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:14:02] Production.INFO: ==6725== Releasing lock... [2025-03-03 10:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:14:03] Production.INFO: ==6732== Lock acquired, processing the job... [2025-03-03 10:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:14:03] Production.INFO: ==6734== Lock acquired, processing the job... [2025-03-03 10:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:14:03] Production.INFO: ==6730== Lock acquired, processing the job... [2025-03-03 10:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:14:03] Production.INFO: ==6736== Lock acquired, processing the job... [2025-03-03 10:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:14:04] Production.INFO: Account Balance Start. [2025-03-03 10:14:04] Production.INFO: CreateAllLog Start [2025-03-03 10:14:04] Production.INFO: 117 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: ==6738== Lock acquired, processing the job... [2025-03-03 10:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:14:04] Production.INFO: ==6740== Lock acquired, processing the job... [2025-03-03 10:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:14:04] Production.INFO: ==6732== Releasing lock... [2025-03-03 10:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: count ==13 [2025-03-03 10:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:14:04] Production.INFO: count ==21 [2025-03-03 10:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597781') start [2025-03-03 10:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597781') end [2025-03-03 10:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:14:04] Production.INFO: 1 [2025-03-03 10:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: ==6740== Releasing lock... [2025-03-03 10:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:14:04] Production.ERROR: done [2025-03-03 10:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.ERROR: done [2025-03-03 10:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:14:05] Production.INFO: Total Charge 0 [2025-03-03 10:14:05] Production.INFO: CreateAllLog End [2025-03-03 10:14:05] Production.INFO: Account Balance End. [2025-03-03 10:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:14:05] Production.INFO: ==6736== Releasing lock... [2025-03-03 10:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:14:13] Production.ERROR: CronJobId end10 [2025-03-03 10:14:13] Production.INFO: ==6734== Releasing lock... [2025-03-03 10:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:14:15] Production.INFO: call_cost start [2025-03-03 10:14:15] Production.INFO: call_cost end [2025-03-03 10:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:14:15] Production.INFO: ==6730== Releasing lock... [2025-03-03 10:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:14:17] Production.INFO: count ==409 [2025-03-03 10:14:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597782', 'tblTempUsageDetail_20' ) start [2025-03-03 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597782', 'tblTempUsageDetail_20' ) end [2025-03-03 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597782', 'tblTempVendorCDR_20' ) start [2025-03-03 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597782', 'tblTempVendorCDR_20' ) end [2025-03-03 10:14:17] Production.INFO: ProcessCDR(1,14597782,1,1,2) [2025-03-03 10:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597782', 'tblTempUsageDetail_20' ) start [2025-03-03 10:14:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597782', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:14:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:14:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:14:26] Production.INFO: ==6738== Releasing lock... [2025-03-03 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:14:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:15:02] Production.INFO: ==6805== Lock acquired, processing the job... [2025-03-03 15:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:15:02] Production.INFO: neon service started [2025-03-03 15:15:02] Production.INFO: neon service started [2025-03-03 15:15:02] Production.INFO: ==6805== Releasing lock... [2025-03-03 15:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:15:02] Production.INFO: ==6811== Lock acquired, processing the job... [2025-03-03 15:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:15:02] Production.INFO: ==6811== Releasing lock... [2025-03-03 15:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:15:02] Production.INFO: ==6809== Lock acquired, processing the job... [2025-03-03 10:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:15:02] Production.INFO: ==6809== Releasing lock... [2025-03-03 10:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:15:03] Production.INFO: ==6820== Lock acquired, processing the job... [2025-03-03 10:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:15:04] Production.INFO: ==6824== Lock acquired, processing the job... [2025-03-03 10:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:15:04] Production.INFO: Account Balance Start. [2025-03-03 10:15:04] Production.INFO: CreateAllLog Start [2025-03-03 10:15:04] Production.INFO: 117 [2025-03-03 10:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.INFO: count ==13 [2025-03-03 10:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:15:04] Production.INFO: ==6818== Lock acquired, processing the job... [2025-03-03 10:15:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:15:04] Production.INFO: count ==21 [2025-03-03 10:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597784') start [2025-03-03 10:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.INFO: ==6814== Lock acquired, processing the job... [2025-03-03 10:15:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:15:04] Production.INFO: ==6816== Lock acquired, processing the job... [2025-03-03 10:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597784') end [2025-03-03 10:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:15:04] Production.INFO: 1 [2025-03-03 10:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:15:04] Production.INFO: ==6822== Lock acquired, processing the job... [2025-03-03 10:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:15:04] Production.INFO: ==6824== Releasing lock... [2025-03-03 10:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.ERROR: done [2025-03-03 10:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:15:04] Production.INFO: ==6816== Releasing lock... [2025-03-03 10:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:04] Production.ERROR: done [2025-03-03 10:15:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:15:05] Production.INFO: Total Charge 0 [2025-03-03 10:15:05] Production.INFO: CreateAllLog End [2025-03-03 10:15:05] Production.INFO: Account Balance End. [2025-03-03 10:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:15:05] Production.INFO: ==6820== Releasing lock... [2025-03-03 10:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:15:12] Production.ERROR: CronJobId end10 [2025-03-03 10:15:12] Production.INFO: ==6818== Releasing lock... [2025-03-03 10:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:15:16] Production.INFO: call_cost start [2025-03-03 10:15:16] Production.INFO: call_cost end [2025-03-03 10:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:15:16] Production.INFO: ==6814== Releasing lock... [2025-03-03 10:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:15:17] Production.INFO: count ==409 [2025-03-03 10:15:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597787', 'tblTempUsageDetail_20' ) start [2025-03-03 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597787', 'tblTempUsageDetail_20' ) end [2025-03-03 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597787', 'tblTempVendorCDR_20' ) start [2025-03-03 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597787', 'tblTempVendorCDR_20' ) end [2025-03-03 10:15:17] Production.INFO: ProcessCDR(1,14597787,1,1,2) [2025-03-03 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597787', 'tblTempUsageDetail_20' ) start [2025-03-03 10:15:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597787', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:15:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:15:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:15:26] Production.INFO: ==6822== Releasing lock... [2025-03-03 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:15:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:16:01] Production.INFO: ==6888== Lock acquired, processing the job... [2025-03-03 15:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:16:01] Production.INFO: neon service started [2025-03-03 15:16:01] Production.INFO: neon service started [2025-03-03 15:16:01] Production.INFO: ==6888== Releasing lock... [2025-03-03 15:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:16:02] Production.INFO: ==6890== Lock acquired, processing the job... [2025-03-03 10:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:16:02] Production.INFO: ==6892== Lock acquired, processing the job... [2025-03-03 15:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:16:02] Production.INFO: ==6892== Releasing lock... [2025-03-03 15:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:16:02] Production.INFO: ==6890== Releasing lock... [2025-03-03 10:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:16:03] Production.INFO: ==6897== Lock acquired, processing the job... [2025-03-03 10:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:16:03] Production.INFO: ==6899== Lock acquired, processing the job... [2025-03-03 10:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:16:03] Production.INFO: ==6904== Lock acquired, processing the job... [2025-03-03 10:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:16:03] Production.INFO: ==6895== Lock acquired, processing the job... [2025-03-03 10:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:16:03] Production.INFO: ==6902== Lock acquired, processing the job... [2025-03-03 10:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:16:04] Production.INFO: ==6907== Lock acquired, processing the job... [2025-03-03 10:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:16:04] Production.INFO: Account Balance Start. [2025-03-03 10:16:04] Production.INFO: CreateAllLog Start [2025-03-03 10:16:04] Production.INFO: 117 [2025-03-03 10:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:16:04] Production.INFO: count ==13 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:16:04] Production.INFO: count ==21 [2025-03-03 10:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597790') start [2025-03-03 10:16:04] Production.INFO: ==6897== Releasing lock... [2025-03-03 10:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:16:04] Production.ERROR: done [2025-03-03 10:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597790') end [2025-03-03 10:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:16:04] Production.INFO: 1 [2025-03-03 10:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:16:04] Production.ERROR: done [2025-03-03 10:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: ==6907== Releasing lock... [2025-03-03 10:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:16:05] Production.INFO: Total Charge 0 [2025-03-03 10:16:05] Production.INFO: CreateAllLog End [2025-03-03 10:16:05] Production.INFO: Account Balance End. [2025-03-03 10:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:16:05] Production.INFO: ==6902== Releasing lock... [2025-03-03 10:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:16:12] Production.ERROR: CronJobId end10 [2025-03-03 10:16:12] Production.INFO: ==6899== Releasing lock... [2025-03-03 10:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:16:15] Production.INFO: call_cost start [2025-03-03 10:16:15] Production.INFO: call_cost end [2025-03-03 10:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:16:15] Production.INFO: ==6895== Releasing lock... [2025-03-03 10:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:16:16] Production.INFO: count ==409 [2025-03-03 10:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597792', 'tblTempUsageDetail_20' ) start [2025-03-03 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597792', 'tblTempUsageDetail_20' ) end [2025-03-03 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597792', 'tblTempVendorCDR_20' ) start [2025-03-03 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597792', 'tblTempVendorCDR_20' ) end [2025-03-03 10:16:17] Production.INFO: ProcessCDR(1,14597792,1,1,2) [2025-03-03 10:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597792', 'tblTempUsageDetail_20' ) start [2025-03-03 10:16:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597792', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:16:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:16:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:16:25] Production.INFO: ==6904== Releasing lock... [2025-03-03 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:16:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:17:02] Production.INFO: ==6973== Lock acquired, processing the job... [2025-03-03 15:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:17:02] Production.INFO: neon service started [2025-03-03 15:17:02] Production.INFO: neon service started [2025-03-03 15:17:02] Production.INFO: ==6973== Releasing lock... [2025-03-03 15:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:17:02] Production.INFO: ==6977== Lock acquired, processing the job... [2025-03-03 15:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:17:02] Production.INFO: ==6977== Releasing lock... [2025-03-03 15:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:17:02] Production.INFO: ==6975== Lock acquired, processing the job... [2025-03-03 10:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:17:03] Production.INFO: ==6975== Releasing lock... [2025-03-03 10:17:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:17:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:17:03] Production.INFO: ==6984== Lock acquired, processing the job... [2025-03-03 10:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:17:04] Production.INFO: ==6990== Lock acquired, processing the job... [2025-03-03 10:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:17:04] Production.INFO: ==6980== Lock acquired, processing the job... [2025-03-03 10:17:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:17:04] Production.INFO: ==6982== Lock acquired, processing the job... [2025-03-03 10:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:17:04] Production.INFO: count ==13 [2025-03-03 10:17:04] Production.INFO: ==6986== Lock acquired, processing the job... [2025-03-03 10:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:17:04] Production.INFO: count ==21 [2025-03-03 10:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597793') start [2025-03-03 10:17:04] Production.INFO: ==6988== Lock acquired, processing the job... [2025-03-03 10:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597793') end [2025-03-03 10:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:17:04] Production.INFO: 1 [2025-03-03 10:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:17:04] Production.INFO: ==6990== Releasing lock... [2025-03-03 10:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:17:04] Production.INFO: Account Balance Start. [2025-03-03 10:17:04] Production.INFO: CreateAllLog Start [2025-03-03 10:17:04] Production.INFO: 117 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: ==6982== Releasing lock... [2025-03-03 10:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.ERROR: done [2025-03-03 10:17:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:17:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.ERROR: done [2025-03-03 10:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:17:05] Production.INFO: Total Charge 0 [2025-03-03 10:17:05] Production.INFO: CreateAllLog End [2025-03-03 10:17:05] Production.INFO: Account Balance End. [2025-03-03 10:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:17:05] Production.INFO: ==6986== Releasing lock... [2025-03-03 10:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:17:13] Production.ERROR: CronJobId end10 [2025-03-03 10:17:13] Production.INFO: ==6984== Releasing lock... [2025-03-03 10:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:17:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:17:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:17:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:17:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:17:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:17:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:17:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:17:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:17:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:17:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:17:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:17:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:17:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:17:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:17:16] Production.INFO: call_cost start [2025-03-03 10:17:16] Production.INFO: call_cost end [2025-03-03 10:17:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:17:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:17:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:17:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:17:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:17:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:17:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:17:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:17:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:17:16] Production.INFO: ==6980== Releasing lock... [2025-03-03 10:17:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:17:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:17:17] Production.INFO: count ==409 [2025-03-03 10:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597797', 'tblTempUsageDetail_20' ) start [2025-03-03 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597797', 'tblTempUsageDetail_20' ) end [2025-03-03 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597797', 'tblTempVendorCDR_20' ) start [2025-03-03 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597797', 'tblTempVendorCDR_20' ) end [2025-03-03 10:17:17] Production.INFO: ProcessCDR(1,14597797,1,1,2) [2025-03-03 10:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597797', 'tblTempUsageDetail_20' ) start [2025-03-03 10:17:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597797', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:17:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:17:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:17:25] Production.INFO: ==6988== Releasing lock... [2025-03-03 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:17:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:18:01] Production.INFO: ==7055== Lock acquired, processing the job... [2025-03-03 15:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:18:01] Production.INFO: neon service started [2025-03-03 15:18:01] Production.INFO: neon service started [2025-03-03 15:18:01] Production.INFO: ==7055== Releasing lock... [2025-03-03 15:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:18:01] Production.INFO: ==7059== Lock acquired, processing the job... [2025-03-03 15:18:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:18:01] Production.INFO: ==7059== Releasing lock... [2025-03-03 15:18:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:18:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:18:02] Production.INFO: ==7057== Lock acquired, processing the job... [2025-03-03 10:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:18:02] Production.INFO: ==7057== Releasing lock... [2025-03-03 10:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:18:03] Production.INFO: ==7064== Lock acquired, processing the job... [2025-03-03 10:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:18:03] Production.INFO: ==7066== Lock acquired, processing the job... [2025-03-03 10:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:18:03] Production.INFO: ==7070== Lock acquired, processing the job... [2025-03-03 10:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:18:03] Production.INFO: ==7062== Lock acquired, processing the job... [2025-03-03 10:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:18:03] Production.INFO: ==7064== Releasing lock... [2025-03-03 10:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:18:03] Production.INFO: ==7068== Lock acquired, processing the job... [2025-03-03 10:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:18:03] Production.INFO: ==7072== Lock acquired, processing the job... [2025-03-03 10:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:18:03] Production.ERROR: done [2025-03-03 10:18:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:18:03] Production.INFO: Account Balance Start. [2025-03-03 10:18:03] Production.INFO: CreateAllLog Start [2025-03-03 10:18:03] Production.INFO: 117 [2025-03-03 10:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:03] Production.INFO: Date 2025-02-09 [2025-03-03 10:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: count ==13 [2025-03-03 10:18:04] Production.ERROR: done [2025-03-03 10:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:18:04] Production.INFO: count ==21 [2025-03-03 10:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597801') start [2025-03-03 10:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597801') end [2025-03-03 10:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:18:04] Production.INFO: 1 [2025-03-03 10:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: ==7072== Releasing lock... [2025-03-03 10:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 10:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:18:04] Production.INFO: Total Charge 0 [2025-03-03 10:18:04] Production.INFO: CreateAllLog End [2025-03-03 10:18:05] Production.INFO: Account Balance End. [2025-03-03 10:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:18:05] Production.INFO: ==7068== Releasing lock... [2025-03-03 10:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:18:12] Production.ERROR: CronJobId end10 [2025-03-03 10:18:12] Production.INFO: ==7066== Releasing lock... [2025-03-03 10:18:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:18:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:18:15] Production.INFO: call_cost start [2025-03-03 10:18:15] Production.INFO: call_cost end [2025-03-03 10:18:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:18:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:18:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:18:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:18:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:18:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:18:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:18:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:18:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:18:15] Production.INFO: ==7062== Releasing lock... [2025-03-03 10:18:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:18:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:18:16] Production.INFO: count ==409 [2025-03-03 10:18:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597802', 'tblTempUsageDetail_20' ) start [2025-03-03 10:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597802', 'tblTempUsageDetail_20' ) end [2025-03-03 10:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597802', 'tblTempVendorCDR_20' ) start [2025-03-03 10:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597802', 'tblTempVendorCDR_20' ) end [2025-03-03 10:18:16] Production.INFO: ProcessCDR(1,14597802,1,1,2) [2025-03-03 10:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597802', 'tblTempUsageDetail_20' ) start [2025-03-03 10:18:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597802', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:18:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:18:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:18:25] Production.INFO: ==7070== Releasing lock... [2025-03-03 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:18:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:19:02] Production.INFO: ==7139== Lock acquired, processing the job... [2025-03-03 15:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:19:02] Production.INFO: neon service started [2025-03-03 15:19:02] Production.INFO: neon service started [2025-03-03 15:19:02] Production.INFO: ==7139== Releasing lock... [2025-03-03 15:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:19:02] Production.INFO: ==7143== Lock acquired, processing the job... [2025-03-03 15:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:19:02] Production.INFO: ==7143== Releasing lock... [2025-03-03 15:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:19:02] Production.INFO: ==7141== Lock acquired, processing the job... [2025-03-03 10:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:19:02] Production.INFO: ==7141== Releasing lock... [2025-03-03 10:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:19:03] Production.INFO: ==7148== Lock acquired, processing the job... [2025-03-03 10:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:19:04] Production.INFO: ==7146== Lock acquired, processing the job... [2025-03-03 10:19:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:19:04] Production.INFO: ==7150== Lock acquired, processing the job... [2025-03-03 10:19:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:19:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:19:04] Production.INFO: ==7152== Lock acquired, processing the job... [2025-03-03 10:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:19:04] Production.INFO: ==7156== Lock acquired, processing the job... [2025-03-03 10:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:19:04] Production.INFO: Account Balance Start. [2025-03-03 10:19:04] Production.INFO: CreateAllLog Start [2025-03-03 10:19:04] Production.INFO: 117 [2025-03-03 10:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.INFO: ==7154== Lock acquired, processing the job... [2025-03-03 10:19:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.INFO: count ==13 [2025-03-03 10:19:04] Production.INFO: ==7148== Releasing lock... [2025-03-03 10:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:19:04] Production.INFO: count ==21 [2025-03-03 10:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597806') start [2025-03-03 10:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597806') end [2025-03-03 10:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:19:04] Production.INFO: 1 [2025-03-03 10:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:19:04] Production.ERROR: done [2025-03-03 10:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:04] Production.INFO: ==7156== Releasing lock... [2025-03-03 10:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.ERROR: done [2025-03-03 10:19:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:19:05] Production.INFO: Total Charge 0 [2025-03-03 10:19:05] Production.INFO: CreateAllLog End [2025-03-03 10:19:05] Production.INFO: Account Balance End. [2025-03-03 10:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:19:05] Production.INFO: ==7152== Releasing lock... [2025-03-03 10:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:19:13] Production.ERROR: CronJobId end10 [2025-03-03 10:19:13] Production.INFO: ==7150== Releasing lock... [2025-03-03 10:19:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:19:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:19:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:19:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:19:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:19:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:19:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:19:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:19:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:19:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:19:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:19:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:19:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:19:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:19:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:19:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:19:16] Production.INFO: call_cost start [2025-03-03 10:19:16] Production.INFO: call_cost end [2025-03-03 10:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:19:16] Production.INFO: ==7146== Releasing lock... [2025-03-03 10:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:19:17] Production.INFO: count ==409 [2025-03-03 10:19:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597807', 'tblTempUsageDetail_20' ) start [2025-03-03 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597807', 'tblTempUsageDetail_20' ) end [2025-03-03 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597807', 'tblTempVendorCDR_20' ) start [2025-03-03 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597807', 'tblTempVendorCDR_20' ) end [2025-03-03 10:19:17] Production.INFO: ProcessCDR(1,14597807,1,1,2) [2025-03-03 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597807', 'tblTempUsageDetail_20' ) start [2025-03-03 10:19:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597807', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:19:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:19:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:19:26] Production.INFO: ==7154== Releasing lock... [2025-03-03 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:19:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:20:01] Production.INFO: ==7221== Lock acquired, processing the job... [2025-03-03 15:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:20:01] Production.INFO: neon service started [2025-03-03 15:20:01] Production.INFO: neon service started [2025-03-03 15:20:01] Production.INFO: ==7221== Releasing lock... [2025-03-03 15:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:20:01] Production.INFO: ==7225== Lock acquired, processing the job... [2025-03-03 15:20:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:20:01] Production.INFO: ==7225== Releasing lock... [2025-03-03 15:20:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:20:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:20:02] Production.INFO: ==7223== Lock acquired, processing the job... [2025-03-03 10:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:20:02] Production.INFO: ==7223== Releasing lock... [2025-03-03 10:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:20:03] Production.INFO: ==7234== Lock acquired, processing the job... [2025-03-03 10:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:20:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:20:03] Production.INFO: ==7238== Lock acquired, processing the job... [2025-03-03 10:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:20:04] Production.INFO: ==7228== Lock acquired, processing the job... [2025-03-03 10:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 10:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:20:04] Production.INFO: ==7240== Lock acquired, processing the job... [2025-03-03 10:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 10:20:04] Production.INFO: ==7230== Lock acquired, processing the job... [2025-03-03 10:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 10:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:20:04] Production.ERROR: CronJob PID - 7234 [2025-03-03 10:20:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 10:20:04] Production.ERROR: CronJob ID - 10 [2025-03-03 10:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 10:20:00 [2025-03-03 10:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:20:04] Production.ERROR: CronJob PID - 7238 [2025-03-03 10:20:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 10:20:04] Production.ERROR: CronJob ID - 16 [2025-03-03 10:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 10:20:00 [2025-03-03 10:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:20:04] Production.INFO: ==7232== Lock acquired, processing the job... [2025-03-03 10:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:20:04] Production.INFO: ==7236== Lock acquired, processing the job... [2025-03-03 10:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 10:20:04] Production.INFO: ==7228== Releasing lock... [2025-03-03 10:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 10:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 10:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:20:04] Production.INFO: ==7242== Lock acquired, processing the job... [2025-03-03 10:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:20:04] Production.INFO: Account Balance Start. [2025-03-03 10:20:04] Production.INFO: CreateAllLog Start [2025-03-03 10:20:04] Production.INFO: 117 [2025-03-03 10:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:04] Production.ERROR: done [2025-03-03 10:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:20:04] Production.INFO: count ==13 [2025-03-03 10:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:20:04] Production.INFO: count ==21 [2025-03-03 10:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597811') start [2025-03-03 10:20:05] Production.ERROR: done [2025-03-03 10:20:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.ERROR: done [2025-03-03 10:20:05] Production.INFO: ==7232== Releasing lock... [2025-03-03 10:20:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:20:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 10:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597812', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 10:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597811') end [2025-03-03 10:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:20:05] Production.INFO: 1 [2025-03-03 10:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: ==7242== Releasing lock... [2025-03-03 10:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:20:05] Production.INFO: Total Charge 0 [2025-03-03 10:20:05] Production.INFO: CreateAllLog End [2025-03-03 10:20:06] Production.INFO: Account Balance End. [2025-03-03 10:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:20:06] Production.INFO: ==7236== Releasing lock... [2025-03-03 10:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:20:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597812', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 10:20:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 10:20:10] Production.INFO: ProcessCDR(1,14597812,1,1,2) [2025-03-03 10:20:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597812,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:20:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597812,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:20:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 10:20:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 10:20:10] Production.INFO: ==7240== Releasing lock... [2025-03-03 10:20:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 10:20:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:20:15] Production.ERROR: CronJobId end10 [2025-03-03 10:20:15] Production.INFO: ==7234== Releasing lock... [2025-03-03 10:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:20:17] Production.INFO: count ==409 [2025-03-03 10:20:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597813', 'tblTempUsageDetail_20' ) start [2025-03-03 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597813', 'tblTempUsageDetail_20' ) end [2025-03-03 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597813', 'tblTempVendorCDR_20' ) start [2025-03-03 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597813', 'tblTempVendorCDR_20' ) end [2025-03-03 10:20:17] Production.INFO: ProcessCDR(1,14597813,1,1,2) [2025-03-03 10:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:20:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:20:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:20:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:20:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:20:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:20:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:20:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:20:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:20:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:20:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:20:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:20:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:20:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:20:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:20:18] Production.INFO: call_cost start [2025-03-03 10:20:18] Production.INFO: call_cost end [2025-03-03 10:20:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:20:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:20:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:20:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:20:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:20:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:20:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:20:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:20:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:20:18] Production.INFO: ==7230== Releasing lock... [2025-03-03 10:20:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:20:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597813', 'tblTempUsageDetail_20' ) start [2025-03-03 10:20:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597813', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:20:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:20:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:20:26] Production.INFO: ==7238== Releasing lock... [2025-03-03 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:20:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:21:02] Production.INFO: ==7308== Lock acquired, processing the job... [2025-03-03 15:21:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:21:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:21:02] Production.INFO: neon service started [2025-03-03 15:21:02] Production.INFO: neon service started [2025-03-03 15:21:02] Production.INFO: ==7308== Releasing lock... [2025-03-03 15:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:21:02] Production.INFO: ==7310== Lock acquired, processing the job... [2025-03-03 10:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:21:02] Production.INFO: ==7310== Releasing lock... [2025-03-03 10:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:21:03] Production.INFO: ==7312== Lock acquired, processing the job... [2025-03-03 15:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:21:03] Production.INFO: ==7312== Releasing lock... [2025-03-03 15:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:21:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:21:03] Production.INFO: ==7317== Lock acquired, processing the job... [2025-03-03 10:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:21:03] Production.INFO: ==7325== Lock acquired, processing the job... [2025-03-03 10:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:21:03] Production.INFO: ==7315== Lock acquired, processing the job... [2025-03-03 10:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:21:04] Production.INFO: ==7319== Lock acquired, processing the job... [2025-03-03 10:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:21:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:21:04] Production.INFO: ==7323== Lock acquired, processing the job... [2025-03-03 10:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:21:04] Production.INFO: ==7317== Releasing lock... [2025-03-03 10:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:21:04] Production.INFO: ==7321== Lock acquired, processing the job... [2025-03-03 10:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:21:04] Production.INFO: count ==13 [2025-03-03 10:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:21:04] Production.INFO: count ==21 [2025-03-03 10:21:04] Production.INFO: Account Balance Start. [2025-03-03 10:21:04] Production.INFO: CreateAllLog Start [2025-03-03 10:21:04] Production.INFO: 117 [2025-03-03 10:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597815') start [2025-03-03 10:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597815') end [2025-03-03 10:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:21:04] Production.INFO: 1 [2025-03-03 10:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: ==7325== Releasing lock... [2025-03-03 10:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.ERROR: done [2025-03-03 10:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.ERROR: done [2025-03-03 10:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:21:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:21:05] Production.INFO: Total Charge 0 [2025-03-03 10:21:05] Production.INFO: CreateAllLog End [2025-03-03 10:21:05] Production.INFO: Account Balance End. [2025-03-03 10:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:21:05] Production.INFO: ==7321== Releasing lock... [2025-03-03 10:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:21:13] Production.ERROR: CronJobId end10 [2025-03-03 10:21:13] Production.INFO: ==7319== Releasing lock... [2025-03-03 10:21:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:21:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:21:16] Production.INFO: call_cost start [2025-03-03 10:21:16] Production.INFO: call_cost end [2025-03-03 10:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:21:16] Production.INFO: ==7315== Releasing lock... [2025-03-03 10:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:21:17] Production.INFO: count ==409 [2025-03-03 10:21:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597818', 'tblTempUsageDetail_20' ) start [2025-03-03 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597818', 'tblTempUsageDetail_20' ) end [2025-03-03 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597818', 'tblTempVendorCDR_20' ) start [2025-03-03 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597818', 'tblTempVendorCDR_20' ) end [2025-03-03 10:21:17] Production.INFO: ProcessCDR(1,14597818,1,1,2) [2025-03-03 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597818', 'tblTempUsageDetail_20' ) start [2025-03-03 10:21:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597818', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:21:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:21:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:21:25] Production.INFO: ==7323== Releasing lock... [2025-03-03 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:21:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:22:01] Production.INFO: ==7392== Lock acquired, processing the job... [2025-03-03 15:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:22:01] Production.INFO: neon service started [2025-03-03 15:22:01] Production.INFO: neon service started [2025-03-03 15:22:01] Production.INFO: ==7392== Releasing lock... [2025-03-03 15:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:22:01] Production.INFO: ==7394== Lock acquired, processing the job... [2025-03-03 10:22:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:22:02] Production.INFO: ==7394== Releasing lock... [2025-03-03 10:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:22:02] Production.INFO: ==7396== Lock acquired, processing the job... [2025-03-03 15:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:22:02] Production.INFO: ==7396== Releasing lock... [2025-03-03 15:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:22:03] Production.INFO: ==7400== Lock acquired, processing the job... [2025-03-03 10:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:22:03] Production.INFO: ==7408== Lock acquired, processing the job... [2025-03-03 10:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:22:03] Production.INFO: ==7398== Lock acquired, processing the job... [2025-03-03 10:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:22:03] Production.INFO: ==7402== Lock acquired, processing the job... [2025-03-03 10:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:22:03] Production.INFO: ==7404== Lock acquired, processing the job... [2025-03-03 10:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:22:03] Production.INFO: ==7406== Lock acquired, processing the job... [2025-03-03 10:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:22:03] Production.INFO: count ==13 [2025-03-03 10:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:22:03] Production.INFO: count ==21 [2025-03-03 10:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597820') start [2025-03-03 10:22:03] Production.INFO: ==7400== Releasing lock... [2025-03-03 10:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:22:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:22:03] Production.INFO: Account Balance Start. [2025-03-03 10:22:03] Production.INFO: CreateAllLog Start [2025-03-03 10:22:03] Production.INFO: 117 [2025-03-03 10:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 10:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597820') end [2025-03-03 10:22:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:22:03] Production.INFO: 1 [2025-03-03 10:22:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 10:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:03] Production.INFO: Date 2025-02-11 [2025-03-03 10:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:03] Production.INFO: ==7408== Releasing lock... [2025-03-03 10:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:22:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:22:03] Production.INFO: Date 2025-02-12 [2025-03-03 10:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.ERROR: done [2025-03-03 10:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.ERROR: done [2025-03-03 10:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-03-02 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Date 2025-03-03 [2025-03-03 10:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:22:04] Production.INFO: Total Charge 0 [2025-03-03 10:22:05] Production.INFO: CreateAllLog End [2025-03-03 10:22:05] Production.INFO: Account Balance End. [2025-03-03 10:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:22:05] Production.INFO: ==7404== Releasing lock... [2025-03-03 10:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:22:11] Production.ERROR: CronJobId end10 [2025-03-03 10:22:11] Production.INFO: ==7402== Releasing lock... [2025-03-03 10:22:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:22:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:22:15] Production.INFO: call_cost start [2025-03-03 10:22:15] Production.INFO: call_cost end [2025-03-03 10:22:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:22:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:22:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:22:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:22:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:22:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:22:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:22:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:22:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:22:15] Production.INFO: ==7398== Releasing lock... [2025-03-03 10:22:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:22:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:22:16] Production.INFO: count ==409 [2025-03-03 10:22:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597823', 'tblTempUsageDetail_20' ) start [2025-03-03 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597823', 'tblTempUsageDetail_20' ) end [2025-03-03 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597823', 'tblTempVendorCDR_20' ) start [2025-03-03 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597823', 'tblTempVendorCDR_20' ) end [2025-03-03 10:22:17] Production.INFO: ProcessCDR(1,14597823,1,1,2) [2025-03-03 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597823', 'tblTempUsageDetail_20' ) start [2025-03-03 10:22:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597823', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:22:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:22:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:22:25] Production.INFO: ==7406== Releasing lock... [2025-03-03 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:22:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:23:01] Production.INFO: ==7477== Lock acquired, processing the job... [2025-03-03 15:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:23:01] Production.INFO: neon service started [2025-03-03 15:23:01] Production.INFO: neon service started [2025-03-03 15:23:01] Production.INFO: ==7477== Releasing lock... [2025-03-03 15:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:23:02] Production.INFO: ==7481== Lock acquired, processing the job... [2025-03-03 15:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:23:02] Production.INFO: ==7481== Releasing lock... [2025-03-03 15:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:23:02] Production.INFO: ==7479== Lock acquired, processing the job... [2025-03-03 10:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:23:02] Production.INFO: ==7479== Releasing lock... [2025-03-03 10:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:23:03] Production.INFO: ==7490== Lock acquired, processing the job... [2025-03-03 10:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:23:03] Production.INFO: ==7484== Lock acquired, processing the job... [2025-03-03 10:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:23:03] Production.INFO: ==7486== Lock acquired, processing the job... [2025-03-03 10:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:23:04] Production.INFO: ==7488== Lock acquired, processing the job... [2025-03-03 10:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:23:04] Production.INFO: Account Balance Start. [2025-03-03 10:23:04] Production.INFO: CreateAllLog Start [2025-03-03 10:23:04] Production.INFO: 117 [2025-03-03 10:23:04] Production.INFO: ==7494== Lock acquired, processing the job... [2025-03-03 10:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: ==7492== Lock acquired, processing the job... [2025-03-03 10:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: count ==13 [2025-03-03 10:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:23:04] Production.INFO: count ==21 [2025-03-03 10:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597827') start [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: ==7486== Releasing lock... [2025-03-03 10:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597827') end [2025-03-03 10:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:23:04] Production.INFO: 1 [2025-03-03 10:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: ==7494== Releasing lock... [2025-03-03 10:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:23:04] Production.ERROR: done [2025-03-03 10:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.ERROR: done [2025-03-03 10:23:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:23:05] Production.INFO: Total Charge 0 [2025-03-03 10:23:05] Production.INFO: CreateAllLog End [2025-03-03 10:23:05] Production.INFO: Account Balance End. [2025-03-03 10:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:23:05] Production.INFO: ==7490== Releasing lock... [2025-03-03 10:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:23:13] Production.ERROR: CronJobId end10 [2025-03-03 10:23:13] Production.INFO: ==7488== Releasing lock... [2025-03-03 10:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:23:16] Production.INFO: call_cost start [2025-03-03 10:23:16] Production.INFO: call_cost end [2025-03-03 10:23:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:23:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:23:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:23:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:23:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:23:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:23:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:23:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:23:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:23:16] Production.INFO: ==7484== Releasing lock... [2025-03-03 10:23:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:23:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:23:17] Production.INFO: count ==409 [2025-03-03 10:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597828', 'tblTempUsageDetail_20' ) start [2025-03-03 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597828', 'tblTempUsageDetail_20' ) end [2025-03-03 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597828', 'tblTempVendorCDR_20' ) start [2025-03-03 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597828', 'tblTempVendorCDR_20' ) end [2025-03-03 10:23:17] Production.INFO: ProcessCDR(1,14597828,1,1,2) [2025-03-03 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597828', 'tblTempUsageDetail_20' ) start [2025-03-03 10:23:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597828', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:23:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:23:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:23:26] Production.INFO: ==7492== Releasing lock... [2025-03-03 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:23:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:24:02] Production.INFO: ==7608== Lock acquired, processing the job... [2025-03-03 15:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:24:02] Production.INFO: neon service started [2025-03-03 15:24:02] Production.INFO: neon service started [2025-03-03 15:24:02] Production.INFO: ==7608== Releasing lock... [2025-03-03 15:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:24:02] Production.INFO: ==7610== Lock acquired, processing the job... [2025-03-03 10:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:24:03] Production.INFO: ==7610== Releasing lock... [2025-03-03 10:24:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:24:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:24:03] Production.INFO: ==7612== Lock acquired, processing the job... [2025-03-03 15:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:24:03] Production.INFO: ==7612== Releasing lock... [2025-03-03 15:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:24:04] Production.INFO: ==7625== Lock acquired, processing the job... [2025-03-03 10:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:24:04] Production.INFO: ==7621== Lock acquired, processing the job... [2025-03-03 10:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:24:04] Production.INFO: ==7615== Lock acquired, processing the job... [2025-03-03 10:24:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:24:04] Production.INFO: Account Balance Start. [2025-03-03 10:24:04] Production.INFO: CreateAllLog Start [2025-03-03 10:24:04] Production.INFO: 117 [2025-03-03 10:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:24:04] Production.INFO: ==7617== Lock acquired, processing the job... [2025-03-03 10:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: ==7619== Lock acquired, processing the job... [2025-03-03 10:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: count ==13 [2025-03-03 10:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:24:04] Production.INFO: count ==21 [2025-03-03 10:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: ==7623== Lock acquired, processing the job... [2025-03-03 10:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597830') start [2025-03-03 10:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597830') end [2025-03-03 10:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:24:04] Production.INFO: 1 [2025-03-03 10:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: ==7625== Releasing lock... [2025-03-03 10:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:24:05] Production.INFO: ==7617== Releasing lock... [2025-03-03 10:24:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:24:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.ERROR: done [2025-03-03 10:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.ERROR: done [2025-03-03 10:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:24:05] Production.INFO: Total Charge 0 [2025-03-03 10:24:05] Production.INFO: CreateAllLog End [2025-03-03 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:24:05] Production.INFO: Account Balance End. [2025-03-03 10:24:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:24:06] Production.INFO: ==7621== Releasing lock... [2025-03-03 10:24:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:24:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:24:14] Production.ERROR: CronJobId end10 [2025-03-03 10:24:14] Production.INFO: ==7619== Releasing lock... [2025-03-03 10:24:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:24:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:24:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:24:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:24:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:24:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:24:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:24:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:24:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:24:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:24:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:24:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:24:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:24:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:24:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:24:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:24:16] Production.INFO: call_cost start [2025-03-03 10:24:16] Production.INFO: call_cost end [2025-03-03 10:24:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:24:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:24:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:24:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:24:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:24:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:24:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:24:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:24:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:24:16] Production.INFO: ==7615== Releasing lock... [2025-03-03 10:24:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:24:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:24:17] Production.INFO: count ==409 [2025-03-03 10:24:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597833', 'tblTempUsageDetail_20' ) start [2025-03-03 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597833', 'tblTempUsageDetail_20' ) end [2025-03-03 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597833', 'tblTempVendorCDR_20' ) start [2025-03-03 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597833', 'tblTempVendorCDR_20' ) end [2025-03-03 10:24:18] Production.INFO: ProcessCDR(1,14597833,1,1,2) [2025-03-03 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597833', 'tblTempUsageDetail_20' ) start [2025-03-03 10:24:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597833', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:24:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:24:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:24:26] Production.INFO: ==7623== Releasing lock... [2025-03-03 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:24:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:25:01] Production.INFO: ==7690== Lock acquired, processing the job... [2025-03-03 15:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:25:01] Production.INFO: neon service started [2025-03-03 15:25:01] Production.INFO: neon service started [2025-03-03 15:25:01] Production.INFO: ==7690== Releasing lock... [2025-03-03 15:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:25:02] Production.INFO: ==7695== Lock acquired, processing the job... [2025-03-03 15:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:25:02] Production.INFO: ==7695== Releasing lock... [2025-03-03 15:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:25:02] Production.INFO: ==7693== Lock acquired, processing the job... [2025-03-03 10:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:25:02] Production.INFO: ==7693== Releasing lock... [2025-03-03 10:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:25:03] Production.INFO: ==7703== Lock acquired, processing the job... [2025-03-03 10:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:25:03] Production.INFO: ==7705== Lock acquired, processing the job... [2025-03-03 10:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:25:03] Production.INFO: Account Balance Start. [2025-03-03 10:25:03] Production.INFO: CreateAllLog Start [2025-03-03 10:25:03] Production.INFO: 117 [2025-03-03 10:25:04] Production.INFO: ==7697== Lock acquired, processing the job... [2025-03-03 10:25:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: ==7699== Lock acquired, processing the job... [2025-03-03 10:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:25:04] Production.INFO: ==7701== Lock acquired, processing the job... [2025-03-03 10:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: ==7707== Lock acquired, processing the job... [2025-03-03 10:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: count ==13 [2025-03-03 10:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:25:04] Production.INFO: count ==21 [2025-03-03 10:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597837') start [2025-03-03 10:25:04] Production.ERROR: done [2025-03-03 10:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597837') end [2025-03-03 10:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:25:04] Production.INFO: 1 [2025-03-03 10:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: ==7707== Releasing lock... [2025-03-03 10:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:25:04] Production.ERROR: done [2025-03-03 10:25:04] Production.INFO: ==7699== Releasing lock... [2025-03-03 10:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:25:05] Production.INFO: Total Charge 0 [2025-03-03 10:25:05] Production.INFO: CreateAllLog End [2025-03-03 10:25:05] Production.INFO: Account Balance End. [2025-03-03 10:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:25:05] Production.INFO: ==7703== Releasing lock... [2025-03-03 10:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:25:13] Production.ERROR: CronJobId end10 [2025-03-03 10:25:13] Production.INFO: ==7701== Releasing lock... [2025-03-03 10:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:25:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:25:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:25:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:25:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:25:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:25:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:25:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:25:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:25:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:25:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:25:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:25:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:25:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:25:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:25:16] Production.INFO: call_cost start [2025-03-03 10:25:16] Production.INFO: call_cost end [2025-03-03 10:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:25:16] Production.INFO: ==7697== Releasing lock... [2025-03-03 10:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:25:17] Production.INFO: count ==409 [2025-03-03 10:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597838', 'tblTempUsageDetail_20' ) start [2025-03-03 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597838', 'tblTempUsageDetail_20' ) end [2025-03-03 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597838', 'tblTempVendorCDR_20' ) start [2025-03-03 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597838', 'tblTempVendorCDR_20' ) end [2025-03-03 10:25:17] Production.INFO: ProcessCDR(1,14597838,1,1,2) [2025-03-03 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597838', 'tblTempUsageDetail_20' ) start [2025-03-03 10:25:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597838', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:25:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:25:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:25:25] Production.INFO: ==7705== Releasing lock... [2025-03-03 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:26:02] Production.INFO: ==7778== Lock acquired, processing the job... [2025-03-03 15:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:26:02] Production.INFO: neon service started [2025-03-03 15:26:02] Production.INFO: neon service started [2025-03-03 15:26:02] Production.INFO: ==7778== Releasing lock... [2025-03-03 15:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:26:02] Production.INFO: ==7782== Lock acquired, processing the job... [2025-03-03 15:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:26:02] Production.INFO: ==7782== Releasing lock... [2025-03-03 15:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:26:03] Production.INFO: ==7780== Lock acquired, processing the job... [2025-03-03 10:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:26:03] Production.INFO: ==7780== Releasing lock... [2025-03-03 10:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:26:04] Production.INFO: ==7793== Lock acquired, processing the job... [2025-03-03 10:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:26:04] Production.INFO: ==7791== Lock acquired, processing the job... [2025-03-03 10:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:26:04] Production.INFO: Account Balance Start. [2025-03-03 10:26:04] Production.INFO: CreateAllLog Start [2025-03-03 10:26:04] Production.INFO: 117 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: ==7785== Lock acquired, processing the job... [2025-03-03 10:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:26:04] Production.INFO: ==7789== Lock acquired, processing the job... [2025-03-03 10:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:26:04] Production.INFO: ==7787== Lock acquired, processing the job... [2025-03-03 10:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: ==7795== Lock acquired, processing the job... [2025-03-03 10:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.ERROR: done [2025-03-03 10:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:26:04] Production.INFO: count ==13 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:26:04] Production.INFO: count ==21 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597840') start [2025-03-03 10:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.ERROR: done [2025-03-03 10:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: ==7787== Releasing lock... [2025-03-03 10:26:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:26:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:26:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597840') end [2025-03-03 10:26:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:26:05] Production.INFO: 1 [2025-03-03 10:26:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:26:05] Production.INFO: ==7795== Releasing lock... [2025-03-03 10:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:26:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:26:05] Production.INFO: Total Charge 0 [2025-03-03 10:26:05] Production.INFO: CreateAllLog End [2025-03-03 10:26:05] Production.INFO: Account Balance End. [2025-03-03 10:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:26:05] Production.INFO: ==7791== Releasing lock... [2025-03-03 10:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:26:12] Production.ERROR: CronJobId end10 [2025-03-03 10:26:12] Production.INFO: ==7789== Releasing lock... [2025-03-03 10:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:26:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:26:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:26:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:26:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:26:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:26:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:26:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:26:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:26:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:26:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:26:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:26:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:26:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:26:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:26:16] Production.INFO: call_cost start [2025-03-03 10:26:17] Production.INFO: call_cost end [2025-03-03 10:26:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:26:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:26:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:26:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:26:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:26:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:26:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:26:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:26:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:26:17] Production.INFO: ==7785== Releasing lock... [2025-03-03 10:26:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:26:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:26:17] Production.INFO: count ==409 [2025-03-03 10:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597843', 'tblTempUsageDetail_20' ) start [2025-03-03 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597843', 'tblTempUsageDetail_20' ) end [2025-03-03 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597843', 'tblTempVendorCDR_20' ) start [2025-03-03 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597843', 'tblTempVendorCDR_20' ) end [2025-03-03 10:26:17] Production.INFO: ProcessCDR(1,14597843,1,1,2) [2025-03-03 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597843', 'tblTempUsageDetail_20' ) start [2025-03-03 10:26:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597843', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:26:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:26:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:26:26] Production.INFO: ==7793== Releasing lock... [2025-03-03 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:26:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:27:01] Production.INFO: ==7865== Lock acquired, processing the job... [2025-03-03 15:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:27:01] Production.INFO: neon service started [2025-03-03 15:27:01] Production.INFO: neon service started [2025-03-03 15:27:01] Production.INFO: ==7865== Releasing lock... [2025-03-03 15:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:27:02] Production.INFO: ==7867== Lock acquired, processing the job... [2025-03-03 10:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:27:02] Production.INFO: ==7867== Releasing lock... [2025-03-03 10:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:27:02] Production.INFO: ==7869== Lock acquired, processing the job... [2025-03-03 15:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:27:02] Production.INFO: ==7869== Releasing lock... [2025-03-03 15:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:27:03] Production.INFO: ==7880== Lock acquired, processing the job... [2025-03-03 10:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:27:03] Production.INFO: ==7882== Lock acquired, processing the job... [2025-03-03 10:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:27:03] Production.INFO: ==7872== Lock acquired, processing the job... [2025-03-03 10:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:27:03] Production.INFO: ==7878== Lock acquired, processing the job... [2025-03-03 10:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:27:03] Production.INFO: count ==13 [2025-03-03 10:27:03] Production.INFO: ==7874== Lock acquired, processing the job... [2025-03-03 10:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:27:04] Production.INFO: ==7876== Lock acquired, processing the job... [2025-03-03 10:27:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:27:04] Production.INFO: count ==21 [2025-03-03 10:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597844') start [2025-03-03 10:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597844') end [2025-03-03 10:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:27:04] Production.INFO: 1 [2025-03-03 10:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:27:04] Production.INFO: Account Balance Start. [2025-03-03 10:27:04] Production.INFO: CreateAllLog Start [2025-03-03 10:27:04] Production.INFO: 117 [2025-03-03 10:27:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:27:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:27:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:27:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:27:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:27:04] Production.ERROR: done [2025-03-03 10:27:04] Production.INFO: ==7882== Releasing lock... [2025-03-03 10:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.ERROR: done [2025-03-03 10:27:04] Production.INFO: ==7874== Releasing lock... [2025-03-03 10:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:27:05] Production.INFO: Total Charge 0 [2025-03-03 10:27:05] Production.INFO: CreateAllLog End [2025-03-03 10:27:05] Production.INFO: Account Balance End. [2025-03-03 10:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:27:05] Production.INFO: ==7878== Releasing lock... [2025-03-03 10:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:27:12] Production.ERROR: CronJobId end10 [2025-03-03 10:27:12] Production.INFO: ==7876== Releasing lock... [2025-03-03 10:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:27:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:27:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:27:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:27:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:27:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:27:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:27:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:27:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:27:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:27:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:27:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:27:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:27:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:27:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:27:15] Production.INFO: call_cost start [2025-03-03 10:27:15] Production.INFO: call_cost end [2025-03-03 10:27:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:27:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:27:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:27:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:27:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:27:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:27:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:27:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:27:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:27:15] Production.INFO: ==7872== Releasing lock... [2025-03-03 10:27:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:27:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:27:16] Production.INFO: count ==409 [2025-03-03 10:27:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597848', 'tblTempUsageDetail_20' ) start [2025-03-03 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597848', 'tblTempUsageDetail_20' ) end [2025-03-03 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597848', 'tblTempVendorCDR_20' ) start [2025-03-03 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597848', 'tblTempVendorCDR_20' ) end [2025-03-03 10:27:17] Production.INFO: ProcessCDR(1,14597848,1,1,2) [2025-03-03 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597848', 'tblTempUsageDetail_20' ) start [2025-03-03 10:27:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597848', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:27:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:27:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:27:25] Production.INFO: ==7880== Releasing lock... [2025-03-03 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:27:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:28:02] Production.INFO: ==7948== Lock acquired, processing the job... [2025-03-03 15:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:28:02] Production.INFO: neon service started [2025-03-03 15:28:02] Production.INFO: neon service started [2025-03-03 15:28:02] Production.INFO: ==7948== Releasing lock... [2025-03-03 15:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:28:02] Production.INFO: ==7950== Lock acquired, processing the job... [2025-03-03 10:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:28:03] Production.INFO: ==7950== Releasing lock... [2025-03-03 10:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:28:03] Production.INFO: ==7952== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:28:03] Production.INFO: ==7952== Releasing lock... [2025-03-03 15:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:28:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:28:04] Production.INFO: ==7957== Lock acquired, processing the job... [2025-03-03 10:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:28:04] Production.INFO: ==7963== Lock acquired, processing the job... [2025-03-03 10:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:28:04] Production.INFO: ==7965== Lock acquired, processing the job... [2025-03-03 10:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:28:04] Production.INFO: Account Balance Start. [2025-03-03 10:28:04] Production.INFO: CreateAllLog Start [2025-03-03 10:28:04] Production.INFO: 117 [2025-03-03 10:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: ==7959== Lock acquired, processing the job... [2025-03-03 10:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: ==7967== Lock acquired, processing the job... [2025-03-03 10:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: ==7961== Lock acquired, processing the job... [2025-03-03 10:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: count ==13 [2025-03-03 10:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:28:04] Production.INFO: count ==21 [2025-03-03 10:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597852') start [2025-03-03 10:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.ERROR: done [2025-03-03 10:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597852') end [2025-03-03 10:28:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:28:05] Production.INFO: 1 [2025-03-03 10:28:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:28:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: ==7967== Releasing lock... [2025-03-03 10:28:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:28:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:28:05] Production.INFO: ==7959== Releasing lock... [2025-03-03 10:28:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:28:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:28:05] Production.ERROR: done [2025-03-03 10:28:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:28:05] Production.INFO: Total Charge 0 [2025-03-03 10:28:05] Production.INFO: CreateAllLog End [2025-03-03 10:28:05] Production.INFO: Account Balance End. [2025-03-03 10:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:28:05] Production.INFO: ==7963== Releasing lock... [2025-03-03 10:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:28:13] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,10))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 10:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:28:13] Production.INFO: call_cost start [2025-03-03 10:28:13] Production.INFO: call_cost end [2025-03-03 10:28:13] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:28:13] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:28:13] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:28:13] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:28:13] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:28:13] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:28:13] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:28:13] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:28:13] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:28:13] Production.INFO: ==7957== Releasing lock... [2025-03-03 10:28:13] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:28:13] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:28:14] Production.ERROR: CronJobId end10 [2025-03-03 10:28:14] Production.INFO: ==7961== Releasing lock... [2025-03-03 10:28:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:28:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:28:17] Production.INFO: count ==409 [2025-03-03 10:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597853', 'tblTempUsageDetail_20' ) start [2025-03-03 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597853', 'tblTempUsageDetail_20' ) end [2025-03-03 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597853', 'tblTempVendorCDR_20' ) start [2025-03-03 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597853', 'tblTempVendorCDR_20' ) end [2025-03-03 10:28:17] Production.INFO: ProcessCDR(1,14597853,1,1,2) [2025-03-03 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597853', 'tblTempUsageDetail_20' ) start [2025-03-03 10:28:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597853', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:28:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:28:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:28:26] Production.INFO: ==7965== Releasing lock... [2025-03-03 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:28:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:29:01] Production.INFO: ==8029== Lock acquired, processing the job... [2025-03-03 15:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:29:01] Production.INFO: neon service started [2025-03-03 15:29:01] Production.INFO: neon service started [2025-03-03 15:29:01] Production.INFO: ==8029== Releasing lock... [2025-03-03 15:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:29:02] Production.INFO: ==8033== Lock acquired, processing the job... [2025-03-03 15:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:29:02] Production.INFO: ==8033== Releasing lock... [2025-03-03 15:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:29:02] Production.INFO: ==8031== Lock acquired, processing the job... [2025-03-03 10:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:29:02] Production.INFO: ==8031== Releasing lock... [2025-03-03 10:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:29:03] Production.INFO: ==8040== Lock acquired, processing the job... [2025-03-03 10:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:29:03] Production.INFO: ==8044== Lock acquired, processing the job... [2025-03-03 10:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:29:03] Production.INFO: ==8036== Lock acquired, processing the job... [2025-03-03 10:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:29:04] Production.INFO: ==8038== Lock acquired, processing the job... [2025-03-03 10:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:29:04] Production.INFO: ==8042== Lock acquired, processing the job... [2025-03-03 10:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:29:04] Production.INFO: ==8046== Lock acquired, processing the job... [2025-03-03 10:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:29:04] Production.ERROR: done [2025-03-03 10:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:29:04] Production.INFO: Account Balance Start. [2025-03-03 10:29:04] Production.INFO: CreateAllLog Start [2025-03-03 10:29:04] Production.INFO: 117 [2025-03-03 10:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:29:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:04] Production.INFO: count ==13 [2025-03-03 10:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:29:04] Production.INFO: count ==21 [2025-03-03 10:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597857') start [2025-03-03 10:29:04] Production.ERROR: done [2025-03-03 10:29:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:04] Production.INFO: ==8038== Releasing lock... [2025-03-03 10:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597857') end [2025-03-03 10:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:29:04] Production.INFO: 1 [2025-03-03 10:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:04] Production.INFO: ==8046== Releasing lock... [2025-03-03 10:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:29:05] Production.INFO: Total Charge 0 [2025-03-03 10:29:05] Production.INFO: CreateAllLog End [2025-03-03 10:29:05] Production.INFO: Account Balance End. [2025-03-03 10:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:29:05] Production.INFO: ==8042== Releasing lock... [2025-03-03 10:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:29:12] Production.ERROR: CronJobId end10 [2025-03-03 10:29:12] Production.INFO: ==8040== Releasing lock... [2025-03-03 10:29:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:29:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:29:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:29:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:29:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:29:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:29:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:29:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:29:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:29:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:29:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:29:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:29:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:29:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:29:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:29:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:29:15] Production.INFO: call_cost start [2025-03-03 10:29:15] Production.INFO: call_cost end [2025-03-03 10:29:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:29:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:29:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:29:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:29:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:29:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:29:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:29:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:29:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:29:15] Production.INFO: ==8036== Releasing lock... [2025-03-03 10:29:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:29:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:29:16] Production.INFO: count ==409 [2025-03-03 10:29:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597858', 'tblTempUsageDetail_20' ) start [2025-03-03 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597858', 'tblTempUsageDetail_20' ) end [2025-03-03 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597858', 'tblTempVendorCDR_20' ) start [2025-03-03 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597858', 'tblTempVendorCDR_20' ) end [2025-03-03 10:29:17] Production.INFO: ProcessCDR(1,14597858,1,1,2) [2025-03-03 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597858', 'tblTempUsageDetail_20' ) start [2025-03-03 10:29:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597858', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:29:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:29:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:29:25] Production.INFO: ==8044== Releasing lock... [2025-03-03 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:29:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:30:02] Production.INFO: ==8114== Lock acquired, processing the job... [2025-03-03 15:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:30:02] Production.INFO: neon service started [2025-03-03 15:30:02] Production.INFO: neon service started [2025-03-03 15:30:02] Production.INFO: ==8114== Releasing lock... [2025-03-03 15:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:30:03] Production.INFO: ==8117== Lock acquired, processing the job... [2025-03-03 10:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:30:03] Production.INFO: ==8119== Lock acquired, processing the job... [2025-03-03 15:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:30:03] Production.INFO: ==8119== Releasing lock... [2025-03-03 15:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:30:03] Production.INFO: ==8117== Releasing lock... [2025-03-03 10:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:30:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:30:04] Production.INFO: ==8127== Lock acquired, processing the job... [2025-03-03 10:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:30:04] Production.INFO: ==8129== Lock acquired, processing the job... [2025-03-03 10:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:30:04] Production.INFO: ==8123== Lock acquired, processing the job... [2025-03-03 10:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 10:30:05] Production.INFO: ==8125== Lock acquired, processing the job... [2025-03-03 10:30:05] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:30:05] Production.INFO: ==8138== Lock acquired, processing the job... [2025-03-03 10:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:30:05] Production.ERROR: CronJob PID - 8125 [2025-03-03 10:30:05] Production.ERROR: CronJob Title - System Alerts [2025-03-03 10:30:05] Production.ERROR: CronJob ID - 5 [2025-03-03 10:30:05] Production.ERROR: CronJob Last Run Time 2025-03-03 10:30:00 [2025-03-03 10:30:05] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:30:05] Production.ERROR: CronJob PID - 8127 [2025-03-03 10:30:05] Production.ERROR: CronJob Title - Account Block [2025-03-03 10:30:05] Production.ERROR: CronJob ID - 7 [2025-03-03 10:30:05] Production.ERROR: CronJob Last Run Time 2025-03-03 10:30:00 [2025-03-03 10:30:05] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:30:05] Production.ERROR: CronJob PID - 8129 [2025-03-03 10:30:05] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 10:30:05] Production.ERROR: CronJob ID - 10 [2025-03-03 10:30:05] Production.ERROR: CronJob Last Run Time 2025-03-03 10:30:00 [2025-03-03 10:30:05] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:30:05] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 10:30:05] Production.INFO: ==8123== Releasing lock... [2025-03-03 10:30:05] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 10:30:05] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 10:30:05] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:30:05] Production.INFO: ==8127== Releasing lock... [2025-03-03 10:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:30:05] Production.INFO: ==8131== Lock acquired, processing the job... [2025-03-03 10:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:30:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:30:05] Production.INFO: ==8133== Lock acquired, processing the job... [2025-03-03 10:30:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:30:05] Production.INFO: count ==13 [2025-03-03 10:30:05] Production.INFO: ==8135== Lock acquired, processing the job... [2025-03-03 10:30:05] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 10:30:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:30:05] Production.INFO: count ==21 [2025-03-03 10:30:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:30:05] Production.INFO: Account Balance Start. [2025-03-03 10:30:05] Production.INFO: CreateAllLog Start [2025-03-03 10:30:05] Production.INFO: 117 [2025-03-03 10:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597861') start [2025-03-03 10:30:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:30:05] Production.INFO: Date 2025-02-08 [2025-03-03 10:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597861') end [2025-03-03 10:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:30:05] Production.INFO: 1 [2025-03-03 10:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:30:05] Production.INFO: Date 2025-02-09 [2025-03-03 10:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:05] Production.INFO: ==8138== Releasing lock... [2025-03-03 10:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:30:05] Production.ERROR: done [2025-03-03 10:30:05] Production.ERROR: done [2025-03-03 10:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:30:05] Production.INFO: Date 2025-02-10 [2025-03-03 10:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 10:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597863', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 10:30:05] Production.INFO: Date 2025-02-11 [2025-03-03 10:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.ERROR: done [2025-03-03 10:30:06] Production.INFO: Date 2025-02-14 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-15 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:30:06] Production.INFO: Date 2025-02-16 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-17 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-18 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-19 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-20 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-21 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-22 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-23 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-24 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-25 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-26 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-27 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-02-28 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-03-01 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 10:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:30:06] Production.INFO: Total Charge 0 [2025-03-03 10:30:06] Production.INFO: CreateAllLog End [2025-03-03 10:30:07] Production.INFO: Account Balance End. [2025-03-03 10:30:07] Production.ERROR: CronJobId end 12 [2025-03-03 10:30:07] Production.INFO: ==8131== Releasing lock... [2025-03-03 10:30:07] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:30:07] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:30:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597863', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 10:30:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 10:30:10] Production.INFO: ProcessCDR(1,14597863,1,1,2) [2025-03-03 10:30:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597863,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:30:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597863,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:30:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 10:30:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 10:30:10] Production.INFO: ==8135== Releasing lock... [2025-03-03 10:30:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 10:30:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:30:16] Production.ERROR: CronJobId end10 [2025-03-03 10:30:16] Production.INFO: ==8129== Releasing lock... [2025-03-03 10:30:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:30:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:30:18] Production.INFO: count ==409 [2025-03-03 10:30:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597864', 'tblTempUsageDetail_20' ) start [2025-03-03 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597864', 'tblTempUsageDetail_20' ) end [2025-03-03 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597864', 'tblTempVendorCDR_20' ) start [2025-03-03 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597864', 'tblTempVendorCDR_20' ) end [2025-03-03 10:30:18] Production.INFO: ProcessCDR(1,14597864,1,1,2) [2025-03-03 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:30:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:30:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:30:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:30:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:30:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:30:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:30:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:30:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:30:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:30:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:30:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:30:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:30:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:30:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:30:19] Production.INFO: call_cost start [2025-03-03 10:30:19] Production.INFO: call_cost end [2025-03-03 10:30:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:30:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:30:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:30:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:30:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:30:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:30:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:30:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:30:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:30:19] Production.INFO: ==8125== Releasing lock... [2025-03-03 10:30:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:30:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597864', 'tblTempUsageDetail_20' ) start [2025-03-03 10:30:27] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597864', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:30:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:30:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:30:27] Production.INFO: ==8133== Releasing lock... [2025-03-03 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:30:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:31:01] Production.INFO: ==8203== Lock acquired, processing the job... [2025-03-03 15:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:31:01] Production.INFO: neon service started [2025-03-03 15:31:01] Production.INFO: neon service started [2025-03-03 15:31:01] Production.INFO: ==8203== Releasing lock... [2025-03-03 15:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:31:02] Production.INFO: ==8207== Lock acquired, processing the job... [2025-03-03 15:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:31:02] Production.INFO: ==8207== Releasing lock... [2025-03-03 15:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:31:02] Production.INFO: ==8205== Lock acquired, processing the job... [2025-03-03 10:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:31:02] Production.INFO: ==8205== Releasing lock... [2025-03-03 10:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:31:03] Production.INFO: ==8216== Lock acquired, processing the job... [2025-03-03 10:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:31:03] Production.INFO: ==8218== Lock acquired, processing the job... [2025-03-03 10:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:31:03] Production.INFO: Account Balance Start. [2025-03-03 10:31:03] Production.INFO: CreateAllLog Start [2025-03-03 10:31:03] Production.INFO: 117 [2025-03-03 10:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:31:03] Production.INFO: ==8210== Lock acquired, processing the job... [2025-03-03 10:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: ==8214== Lock acquired, processing the job... [2025-03-03 10:31:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:31:04] Production.INFO: ==8212== Lock acquired, processing the job... [2025-03-03 10:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: ==8220== Lock acquired, processing the job... [2025-03-03 10:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:31:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:31:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:31:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:31:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:31:04] Production.INFO: count ==13 [2025-03-03 10:31:04] Production.ERROR: done [2025-03-03 10:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:31:04] Production.INFO: count ==21 [2025-03-03 10:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597868') start [2025-03-03 10:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: ==8212== Releasing lock... [2025-03-03 10:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.ERROR: done [2025-03-03 10:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597868') end [2025-03-03 10:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:31:04] Production.INFO: 1 [2025-03-03 10:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: ==8220== Releasing lock... [2025-03-03 10:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:31:05] Production.INFO: Total Charge 0 [2025-03-03 10:31:05] Production.INFO: CreateAllLog End [2025-03-03 10:31:05] Production.INFO: Account Balance End. [2025-03-03 10:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:31:05] Production.INFO: ==8216== Releasing lock... [2025-03-03 10:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:31:13] Production.ERROR: CronJobId end10 [2025-03-03 10:31:13] Production.INFO: ==8214== Releasing lock... [2025-03-03 10:31:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:31:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:31:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:31:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:31:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:31:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:31:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:31:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:31:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:31:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:31:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:31:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:31:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:31:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:31:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:31:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:31:16] Production.INFO: call_cost start [2025-03-03 10:31:16] Production.INFO: call_cost end [2025-03-03 10:31:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:31:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:31:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:31:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:31:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:31:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:31:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:31:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:31:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:31:16] Production.INFO: ==8210== Releasing lock... [2025-03-03 10:31:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:31:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:31:17] Production.INFO: count ==409 [2025-03-03 10:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597869', 'tblTempUsageDetail_20' ) start [2025-03-03 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597869', 'tblTempUsageDetail_20' ) end [2025-03-03 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597869', 'tblTempVendorCDR_20' ) start [2025-03-03 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597869', 'tblTempVendorCDR_20' ) end [2025-03-03 10:31:17] Production.INFO: ProcessCDR(1,14597869,1,1,2) [2025-03-03 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597869', 'tblTempUsageDetail_20' ) start [2025-03-03 10:31:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597869', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:31:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:31:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:31:26] Production.INFO: ==8218== Releasing lock... [2025-03-03 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:31:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:32:02] Production.INFO: ==8286== Lock acquired, processing the job... [2025-03-03 15:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:32:02] Production.INFO: neon service started [2025-03-03 15:32:02] Production.INFO: neon service started [2025-03-03 15:32:02] Production.INFO: ==8286== Releasing lock... [2025-03-03 15:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:32:02] Production.INFO: ==8290== Lock acquired, processing the job... [2025-03-03 15:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:32:02] Production.INFO: ==8290== Releasing lock... [2025-03-03 15:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:32:02] Production.INFO: ==8288== Lock acquired, processing the job... [2025-03-03 10:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:32:03] Production.INFO: ==8288== Releasing lock... [2025-03-03 10:32:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:32:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:32:04] Production.INFO: ==8297== Lock acquired, processing the job... [2025-03-03 10:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:32:04] Production.INFO: ==8293== Lock acquired, processing the job... [2025-03-03 10:32:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:32:04] Production.INFO: ==8301== Lock acquired, processing the job... [2025-03-03 10:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:32:04] Production.INFO: ==8295== Lock acquired, processing the job... [2025-03-03 10:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:32:04] Production.INFO: ==8299== Lock acquired, processing the job... [2025-03-03 10:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:32:04] Production.INFO: ==8303== Lock acquired, processing the job... [2025-03-03 10:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:32:04] Production.INFO: Account Balance Start. [2025-03-03 10:32:04] Production.INFO: CreateAllLog Start [2025-03-03 10:32:04] Production.INFO: 117 [2025-03-03 10:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:04] Production.INFO: count ==13 [2025-03-03 10:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:32:05] Production.INFO: count ==21 [2025-03-03 10:32:05] Production.INFO: ==8295== Releasing lock... [2025-03-03 10:32:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:32:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:32:05] Production.ERROR: done [2025-03-03 10:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597873') start [2025-03-03 10:32:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-11 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597873') end [2025-03-03 10:32:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:32:05] Production.INFO: 1 [2025-03-03 10:32:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:32:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.ERROR: done [2025-03-03 10:32:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: ==8303== Releasing lock... [2025-03-03 10:32:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:32:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:32:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:32:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:06] Production.INFO: Date 2025-03-03 [2025-03-03 10:32:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:32:06] Production.INFO: Total Charge 0 [2025-03-03 10:32:06] Production.INFO: CreateAllLog End [2025-03-03 10:32:06] Production.INFO: Account Balance End. [2025-03-03 10:32:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:32:06] Production.INFO: ==8299== Releasing lock... [2025-03-03 10:32:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:32:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:32:12] Production.ERROR: CronJobId end10 [2025-03-03 10:32:12] Production.INFO: ==8297== Releasing lock... [2025-03-03 10:32:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:32:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:32:16] Production.INFO: call_cost start [2025-03-03 10:32:16] Production.INFO: call_cost end [2025-03-03 10:32:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:32:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:32:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:32:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:32:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:32:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:32:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:32:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:32:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:32:16] Production.INFO: ==8293== Releasing lock... [2025-03-03 10:32:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:32:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:32:17] Production.INFO: count ==409 [2025-03-03 10:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597874', 'tblTempUsageDetail_20' ) start [2025-03-03 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597874', 'tblTempUsageDetail_20' ) end [2025-03-03 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597874', 'tblTempVendorCDR_20' ) start [2025-03-03 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597874', 'tblTempVendorCDR_20' ) end [2025-03-03 10:32:17] Production.INFO: ProcessCDR(1,14597874,1,1,2) [2025-03-03 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597874', 'tblTempUsageDetail_20' ) start [2025-03-03 10:32:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597874', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:32:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:32:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:32:26] Production.INFO: ==8301== Releasing lock... [2025-03-03 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:32:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:33:01] Production.INFO: ==8368== Lock acquired, processing the job... [2025-03-03 15:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:33:01] Production.INFO: neon service started [2025-03-03 15:33:01] Production.INFO: neon service started [2025-03-03 15:33:01] Production.INFO: ==8368== Releasing lock... [2025-03-03 15:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:33:02] Production.INFO: ==8370== Lock acquired, processing the job... [2025-03-03 10:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:33:02] Production.INFO: ==8372== Lock acquired, processing the job... [2025-03-03 15:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:33:02] Production.INFO: ==8372== Releasing lock... [2025-03-03 15:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:33:02] Production.INFO: ==8370== Releasing lock... [2025-03-03 10:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:33:03] Production.INFO: ==8375== Lock acquired, processing the job... [2025-03-03 10:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:33:03] Production.INFO: ==8385== Lock acquired, processing the job... [2025-03-03 10:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:33:04] Production.INFO: ==8377== Lock acquired, processing the job... [2025-03-03 10:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:33:04] Production.INFO: count ==13 [2025-03-03 10:33:04] Production.INFO: ==8383== Lock acquired, processing the job... [2025-03-03 10:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:33:04] Production.INFO: ==8379== Lock acquired, processing the job... [2025-03-03 10:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:33:04] Production.INFO: ==8381== Lock acquired, processing the job... [2025-03-03 10:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:33:04] Production.INFO: count ==21 [2025-03-03 10:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597876') start [2025-03-03 10:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597876') end [2025-03-03 10:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:33:04] Production.INFO: 1 [2025-03-03 10:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:33:04] Production.INFO: Account Balance Start. [2025-03-03 10:33:04] Production.INFO: CreateAllLog Start [2025-03-03 10:33:04] Production.INFO: 117 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: ==8377== Releasing lock... [2025-03-03 10:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:33:04] Production.INFO: ==8385== Releasing lock... [2025-03-03 10:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.ERROR: done [2025-03-03 10:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.ERROR: done [2025-03-03 10:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:33:05] Production.INFO: Total Charge 0 [2025-03-03 10:33:05] Production.INFO: CreateAllLog End [2025-03-03 10:33:05] Production.INFO: Account Balance End. [2025-03-03 10:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:33:05] Production.INFO: ==8381== Releasing lock... [2025-03-03 10:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:33:13] Production.ERROR: CronJobId end10 [2025-03-03 10:33:13] Production.INFO: ==8379== Releasing lock... [2025-03-03 10:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:33:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:33:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:33:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:33:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:33:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:33:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:33:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:33:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:33:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:33:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:33:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:33:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:33:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:33:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:33:16] Production.INFO: call_cost start [2025-03-03 10:33:16] Production.INFO: call_cost end [2025-03-03 10:33:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:33:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:33:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:33:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:33:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:33:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:33:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:33:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:33:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:33:16] Production.INFO: ==8375== Releasing lock... [2025-03-03 10:33:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:33:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:33:17] Production.INFO: count ==409 [2025-03-03 10:33:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597879', 'tblTempUsageDetail_20' ) start [2025-03-03 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597879', 'tblTempUsageDetail_20' ) end [2025-03-03 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597879', 'tblTempVendorCDR_20' ) start [2025-03-03 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597879', 'tblTempVendorCDR_20' ) end [2025-03-03 10:33:17] Production.INFO: ProcessCDR(1,14597879,1,1,2) [2025-03-03 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597879', 'tblTempUsageDetail_20' ) start [2025-03-03 10:33:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597879', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:33:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:33:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:33:26] Production.INFO: ==8383== Releasing lock... [2025-03-03 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:33:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:34:02] Production.INFO: ==8454== Lock acquired, processing the job... [2025-03-03 15:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:34:02] Production.INFO: neon service started [2025-03-03 15:34:02] Production.INFO: neon service started [2025-03-03 15:34:02] Production.INFO: ==8454== Releasing lock... [2025-03-03 15:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:34:03] Production.INFO: ==8456== Lock acquired, processing the job... [2025-03-03 10:34:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:34:03] Production.INFO: ==8458== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:34:03] Production.INFO: ==8458== Releasing lock... [2025-03-03 15:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:34:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:34:03] Production.INFO: ==8456== Releasing lock... [2025-03-03 10:34:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:34:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:34:04] Production.INFO: ==8463== Lock acquired, processing the job... [2025-03-03 10:34:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:34:04] Production.INFO: ==8465== Lock acquired, processing the job... [2025-03-03 10:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:34:04] Production.INFO: ==8471== Lock acquired, processing the job... [2025-03-03 10:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:34:04] Production.INFO: ==8467== Lock acquired, processing the job... [2025-03-03 10:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:34:04] Production.INFO: ==8473== Lock acquired, processing the job... [2025-03-03 10:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:34:04] Production.INFO: ==8469== Lock acquired, processing the job... [2025-03-03 10:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:34:04] Production.INFO: Account Balance Start. [2025-03-03 10:34:04] Production.INFO: CreateAllLog Start [2025-03-03 10:34:04] Production.INFO: 117 [2025-03-03 10:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:04] Production.INFO: count ==13 [2025-03-03 10:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:34:04] Production.INFO: count ==21 [2025-03-03 10:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597882') start [2025-03-03 10:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: ==8465== Releasing lock... [2025-03-03 10:34:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:34:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:34:05] Production.ERROR: done [2025-03-03 10:34:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597882') end [2025-03-03 10:34:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:34:05] Production.INFO: 1 [2025-03-03 10:34:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:34:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: ==8473== Releasing lock... [2025-03-03 10:34:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:34:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:34:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.ERROR: done [2025-03-03 10:34:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:34:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:34:05] Production.INFO: Total Charge 0 [2025-03-03 10:34:05] Production.INFO: CreateAllLog End [2025-03-03 10:34:06] Production.INFO: Account Balance End. [2025-03-03 10:34:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:34:06] Production.INFO: ==8469== Releasing lock... [2025-03-03 10:34:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:34:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:34:15] Production.ERROR: CronJobId end10 [2025-03-03 10:34:15] Production.INFO: ==8467== Releasing lock... [2025-03-03 10:34:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:34:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:34:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:34:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:34:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:34:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:34:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:34:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:34:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:34:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:34:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:34:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:34:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:34:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:34:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:34:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:34:17] Production.INFO: count ==409 [2025-03-03 10:34:17] Production.INFO: call_cost start [2025-03-03 10:34:17] Production.INFO: call_cost end [2025-03-03 10:34:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:34:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:34:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:34:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:34:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:34:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:34:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:34:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:34:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:34:17] Production.INFO: ==8463== Releasing lock... [2025-03-03 10:34:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:34:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:34:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597884', 'tblTempUsageDetail_20' ) start [2025-03-03 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597884', 'tblTempUsageDetail_20' ) end [2025-03-03 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597884', 'tblTempVendorCDR_20' ) start [2025-03-03 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597884', 'tblTempVendorCDR_20' ) end [2025-03-03 10:34:17] Production.INFO: ProcessCDR(1,14597884,1,1,2) [2025-03-03 10:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597884', 'tblTempUsageDetail_20' ) start [2025-03-03 10:34:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597884', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:34:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:34:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:34:26] Production.INFO: ==8471== Releasing lock... [2025-03-03 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:34:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:35:01] Production.INFO: ==8536== Lock acquired, processing the job... [2025-03-03 15:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:35:01] Production.INFO: neon service started [2025-03-03 15:35:01] Production.INFO: neon service started [2025-03-03 15:35:01] Production.INFO: ==8536== Releasing lock... [2025-03-03 15:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:35:02] Production.INFO: ==8538== Lock acquired, processing the job... [2025-03-03 10:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:35:02] Production.INFO: ==8538== Releasing lock... [2025-03-03 10:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:35:02] Production.INFO: ==8540== Lock acquired, processing the job... [2025-03-03 15:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:35:02] Production.INFO: ==8540== Releasing lock... [2025-03-03 15:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:35:03] Production.INFO: ==8551== Lock acquired, processing the job... [2025-03-03 10:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:35:03] Production.INFO: ==8553== Lock acquired, processing the job... [2025-03-03 10:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:35:03] Production.INFO: ==8545== Lock acquired, processing the job... [2025-03-03 10:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:35:03] Production.INFO: ==8547== Lock acquired, processing the job... [2025-03-03 10:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:35:03] Production.INFO: ==8549== Lock acquired, processing the job... [2025-03-03 10:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:35:03] Production.INFO: ==8543== Lock acquired, processing the job... [2025-03-03 10:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:35:03] Production.INFO: count ==13 [2025-03-03 10:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:35:03] Production.INFO: count ==21 [2025-03-03 10:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597885') start [2025-03-03 10:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:35:04] Production.INFO: Account Balance Start. [2025-03-03 10:35:04] Production.INFO: CreateAllLog Start [2025-03-03 10:35:04] Production.INFO: 117 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597885') end [2025-03-03 10:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:35:04] Production.INFO: 1 [2025-03-03 10:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: ==8553== Releasing lock... [2025-03-03 10:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.ERROR: done [2025-03-03 10:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: ==8545== Releasing lock... [2025-03-03 10:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:35:04] Production.ERROR: done [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:35:05] Production.INFO: Total Charge 0 [2025-03-03 10:35:05] Production.INFO: CreateAllLog End [2025-03-03 10:35:05] Production.INFO: Account Balance End. [2025-03-03 10:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:35:05] Production.INFO: ==8549== Releasing lock... [2025-03-03 10:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:35:12] Production.ERROR: CronJobId end10 [2025-03-03 10:35:12] Production.INFO: ==8547== Releasing lock... [2025-03-03 10:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:35:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:35:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:35:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:35:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:35:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:35:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:35:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:35:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:35:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:35:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:35:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:35:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:35:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:35:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:35:16] Production.INFO: call_cost start [2025-03-03 10:35:16] Production.INFO: call_cost end [2025-03-03 10:35:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:35:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:35:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:35:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:35:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:35:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:35:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:35:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:35:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:35:16] Production.INFO: ==8543== Releasing lock... [2025-03-03 10:35:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:35:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:35:17] Production.INFO: count ==409 [2025-03-03 10:35:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597889', 'tblTempUsageDetail_20' ) start [2025-03-03 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597889', 'tblTempUsageDetail_20' ) end [2025-03-03 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597889', 'tblTempVendorCDR_20' ) start [2025-03-03 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597889', 'tblTempVendorCDR_20' ) end [2025-03-03 10:35:17] Production.INFO: ProcessCDR(1,14597889,1,1,2) [2025-03-03 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597889', 'tblTempUsageDetail_20' ) start [2025-03-03 10:35:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597889', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:35:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:35:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:35:25] Production.INFO: ==8551== Releasing lock... [2025-03-03 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:35:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:36:02] Production.INFO: ==8620== Lock acquired, processing the job... [2025-03-03 15:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:36:02] Production.INFO: neon service started [2025-03-03 15:36:02] Production.INFO: neon service started [2025-03-03 15:36:02] Production.INFO: ==8620== Releasing lock... [2025-03-03 15:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:36:02] Production.INFO: ==8622== Lock acquired, processing the job... [2025-03-03 10:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:36:03] Production.INFO: ==8622== Releasing lock... [2025-03-03 10:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:36:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:36:03] Production.INFO: ==8624== Lock acquired, processing the job... [2025-03-03 15:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:36:03] Production.INFO: ==8624== Releasing lock... [2025-03-03 15:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:36:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:36:04] Production.INFO: ==8626== Lock acquired, processing the job... [2025-03-03 10:36:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:36:04] Production.INFO: ==8628== Lock acquired, processing the job... [2025-03-03 10:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:36:04] Production.INFO: ==8630== Lock acquired, processing the job... [2025-03-03 10:36:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:36:04] Production.INFO: ==8632== Lock acquired, processing the job... [2025-03-03 10:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:36:04] Production.INFO: ==8634== Lock acquired, processing the job... [2025-03-03 10:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:36:04] Production.INFO: ==8637== Lock acquired, processing the job... [2025-03-03 10:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:36:04] Production.INFO: ==8628== Releasing lock... [2025-03-03 10:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:36:04] Production.INFO: Account Balance Start. [2025-03-03 10:36:04] Production.INFO: CreateAllLog Start [2025-03-03 10:36:04] Production.INFO: 117 [2025-03-03 10:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:36:04] Production.INFO: count ==13 [2025-03-03 10:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:36:04] Production.INFO: count ==21 [2025-03-03 10:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597893') start [2025-03-03 10:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:36:04] Production.ERROR: done [2025-03-03 10:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597893') end [2025-03-03 10:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:36:04] Production.INFO: 1 [2025-03-03 10:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: ==8637== Releasing lock... [2025-03-03 10:36:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:36:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:36:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.ERROR: done [2025-03-03 10:36:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:36:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:36:05] Production.INFO: Total Charge 0 [2025-03-03 10:36:05] Production.INFO: CreateAllLog End [2025-03-03 10:36:05] Production.INFO: Account Balance End. [2025-03-03 10:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:36:05] Production.INFO: ==8632== Releasing lock... [2025-03-03 10:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:36:12] Production.ERROR: CronJobId end10 [2025-03-03 10:36:12] Production.INFO: ==8630== Releasing lock... [2025-03-03 10:36:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:36:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:36:15] Production.INFO: call_cost start [2025-03-03 10:36:15] Production.INFO: call_cost end [2025-03-03 10:36:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:36:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:36:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:36:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:36:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:36:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:36:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:36:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:36:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:36:15] Production.INFO: ==8626== Releasing lock... [2025-03-03 10:36:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:36:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:36:17] Production.INFO: count ==409 [2025-03-03 10:36:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597894', 'tblTempUsageDetail_20' ) start [2025-03-03 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597894', 'tblTempUsageDetail_20' ) end [2025-03-03 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597894', 'tblTempVendorCDR_20' ) start [2025-03-03 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597894', 'tblTempVendorCDR_20' ) end [2025-03-03 10:36:17] Production.INFO: ProcessCDR(1,14597894,1,1,2) [2025-03-03 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597894', 'tblTempUsageDetail_20' ) start [2025-03-03 10:36:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597894', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:36:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:36:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:36:26] Production.INFO: ==8634== Releasing lock... [2025-03-03 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:36:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:37:01] Production.INFO: ==8703== Lock acquired, processing the job... [2025-03-03 15:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:37:01] Production.INFO: neon service started [2025-03-03 15:37:01] Production.INFO: neon service started [2025-03-03 15:37:01] Production.INFO: ==8703== Releasing lock... [2025-03-03 15:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:37:02] Production.INFO: ==8705== Lock acquired, processing the job... [2025-03-03 10:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:37:02] Production.INFO: ==8707== Lock acquired, processing the job... [2025-03-03 15:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:37:02] Production.INFO: ==8707== Releasing lock... [2025-03-03 15:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:37:02] Production.INFO: ==8705== Releasing lock... [2025-03-03 10:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:37:03] Production.INFO: ==8712== Lock acquired, processing the job... [2025-03-03 10:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:37:03] Production.INFO: ==8716== Lock acquired, processing the job... [2025-03-03 10:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:37:03] Production.INFO: ==8710== Lock acquired, processing the job... [2025-03-03 10:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:37:03] Production.INFO: ==8714== Lock acquired, processing the job... [2025-03-03 10:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:37:03] Production.INFO: ==8718== Lock acquired, processing the job... [2025-03-03 10:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:37:04] Production.INFO: ==8720== Lock acquired, processing the job... [2025-03-03 10:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:37:04] Production.INFO: ==8712== Releasing lock... [2025-03-03 10:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:37:04] Production.INFO: Account Balance Start. [2025-03-03 10:37:04] Production.INFO: CreateAllLog Start [2025-03-03 10:37:04] Production.INFO: 117 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:37:04] Production.INFO: count ==13 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:37:04] Production.INFO: count ==21 [2025-03-03 10:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597898') start [2025-03-03 10:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:37:04] Production.ERROR: done [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597898') end [2025-03-03 10:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:37:04] Production.INFO: 1 [2025-03-03 10:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: ==8720== Releasing lock... [2025-03-03 10:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:37:04] Production.ERROR: done [2025-03-03 10:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:37:05] Production.INFO: Total Charge 0 [2025-03-03 10:37:05] Production.INFO: CreateAllLog End [2025-03-03 10:37:05] Production.INFO: Account Balance End. [2025-03-03 10:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:37:05] Production.INFO: ==8716== Releasing lock... [2025-03-03 10:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:37:12] Production.ERROR: CronJobId end10 [2025-03-03 10:37:12] Production.INFO: ==8714== Releasing lock... [2025-03-03 10:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:37:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:37:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:37:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:37:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:37:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:37:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:37:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:37:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:37:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:37:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:37:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:37:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:37:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:37:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:37:16] Production.INFO: call_cost start [2025-03-03 10:37:16] Production.INFO: call_cost end [2025-03-03 10:37:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:37:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:37:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:37:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:37:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:37:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:37:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:37:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:37:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:37:16] Production.INFO: ==8710== Releasing lock... [2025-03-03 10:37:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:37:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:37:17] Production.INFO: count ==409 [2025-03-03 10:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597899', 'tblTempUsageDetail_20' ) start [2025-03-03 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597899', 'tblTempUsageDetail_20' ) end [2025-03-03 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597899', 'tblTempVendorCDR_20' ) start [2025-03-03 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597899', 'tblTempVendorCDR_20' ) end [2025-03-03 10:37:17] Production.INFO: ProcessCDR(1,14597899,1,1,2) [2025-03-03 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597899', 'tblTempUsageDetail_20' ) start [2025-03-03 10:37:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597899', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:37:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:37:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:37:26] Production.INFO: ==8718== Releasing lock... [2025-03-03 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:37:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:38:01] Production.INFO: ==8787== Lock acquired, processing the job... [2025-03-03 15:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:38:01] Production.INFO: neon service started [2025-03-03 15:38:01] Production.INFO: neon service started [2025-03-03 15:38:01] Production.INFO: ==8787== Releasing lock... [2025-03-03 15:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:38:01] Production.INFO: ==8789== Lock acquired, processing the job... [2025-03-03 10:38:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:38:02] Production.INFO: ==8789== Releasing lock... [2025-03-03 10:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:38:02] Production.INFO: ==8791== Lock acquired, processing the job... [2025-03-03 15:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:38:02] Production.INFO: ==8791== Releasing lock... [2025-03-03 15:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:38:03] Production.INFO: ==8793== Lock acquired, processing the job... [2025-03-03 10:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:38:03] Production.INFO: ==8798== Lock acquired, processing the job... [2025-03-03 10:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:38:03] Production.INFO: ==8800== Lock acquired, processing the job... [2025-03-03 10:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:38:03] Production.INFO: ==8802== Lock acquired, processing the job... [2025-03-03 10:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:38:03] Production.INFO: Account Balance Start. [2025-03-03 10:38:03] Production.INFO: CreateAllLog Start [2025-03-03 10:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:38:03] Production.INFO: 117 [2025-03-03 10:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:03] Production.INFO: ==8804== Lock acquired, processing the job... [2025-03-03 10:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:38:03] Production.INFO: Date 2025-02-09 [2025-03-03 10:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:38:03] Production.INFO: ==8795== Lock acquired, processing the job... [2025-03-03 10:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:38:03] Production.INFO: Date 2025-02-10 [2025-03-03 10:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:03] Production.INFO: Date 2025-02-11 [2025-03-03 10:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:03] Production.INFO: Date 2025-02-12 [2025-03-03 10:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:38:03] Production.INFO: count ==13 [2025-03-03 10:38:03] Production.INFO: Date 2025-02-13 [2025-03-03 10:38:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:38:03] Production.INFO: count ==21 [2025-03-03 10:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597903') start [2025-03-03 10:38:03] Production.ERROR: done [2025-03-03 10:38:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597903') end [2025-03-03 10:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:38:04] Production.INFO: 1 [2025-03-03 10:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:38:04] Production.INFO: ==8795== Releasing lock... [2025-03-03 10:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: ==8804== Releasing lock... [2025-03-03 10:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:38:04] Production.ERROR: done [2025-03-03 10:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 10:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:38:04] Production.INFO: Total Charge 0 [2025-03-03 10:38:04] Production.INFO: CreateAllLog End [2025-03-03 10:38:04] Production.INFO: Account Balance End. [2025-03-03 10:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:38:05] Production.INFO: ==8800== Releasing lock... [2025-03-03 10:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:38:12] Production.ERROR: CronJobId end10 [2025-03-03 10:38:12] Production.INFO: ==8798== Releasing lock... [2025-03-03 10:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:38:16] Production.INFO: call_cost start [2025-03-03 10:38:16] Production.INFO: call_cost end [2025-03-03 10:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:38:16] Production.INFO: ==8793== Releasing lock... [2025-03-03 10:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:38:16] Production.INFO: count ==409 [2025-03-03 10:38:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597904', 'tblTempUsageDetail_20' ) start [2025-03-03 10:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597904', 'tblTempUsageDetail_20' ) end [2025-03-03 10:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597904', 'tblTempVendorCDR_20' ) start [2025-03-03 10:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597904', 'tblTempVendorCDR_20' ) end [2025-03-03 10:38:16] Production.INFO: ProcessCDR(1,14597904,1,1,2) [2025-03-03 10:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597904', 'tblTempUsageDetail_20' ) start [2025-03-03 10:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597904', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:38:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:38:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:38:25] Production.INFO: ==8802== Releasing lock... [2025-03-03 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:38:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:39:01] Production.INFO: ==8874== Lock acquired, processing the job... [2025-03-03 15:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:39:01] Production.INFO: neon service started [2025-03-03 15:39:01] Production.INFO: neon service started [2025-03-03 15:39:01] Production.INFO: ==8874== Releasing lock... [2025-03-03 15:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:39:02] Production.INFO: ==8878== Lock acquired, processing the job... [2025-03-03 15:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:39:02] Production.INFO: ==8878== Releasing lock... [2025-03-03 15:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:39:02] Production.INFO: ==8876== Lock acquired, processing the job... [2025-03-03 10:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:39:02] Production.INFO: ==8876== Releasing lock... [2025-03-03 10:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:39:03] Production.INFO: ==8887== Lock acquired, processing the job... [2025-03-03 10:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:39:03] Production.INFO: ==8891== Lock acquired, processing the job... [2025-03-03 10:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:39:03] Production.INFO: ==8881== Lock acquired, processing the job... [2025-03-03 10:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:39:03] Production.INFO: Account Balance Start. [2025-03-03 10:39:03] Production.INFO: CreateAllLog Start [2025-03-03 10:39:03] Production.INFO: 117 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: ==8883== Lock acquired, processing the job... [2025-03-03 10:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:39:04] Production.INFO: ==8885== Lock acquired, processing the job... [2025-03-03 10:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:39:04] Production.INFO: count ==13 [2025-03-03 10:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:39:04] Production.INFO: count ==21 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597906') start [2025-03-03 10:39:04] Production.INFO: ==8889== Lock acquired, processing the job... [2025-03-03 10:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597906') end [2025-03-03 10:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:39:04] Production.INFO: 1 [2025-03-03 10:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:39:04] Production.INFO: ==8891== Releasing lock... [2025-03-03 10:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:39:04] Production.INFO: ==8883== Releasing lock... [2025-03-03 10:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:39:04] Production.ERROR: done [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.ERROR: done [2025-03-03 10:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:39:05] Production.INFO: Total Charge 0 [2025-03-03 10:39:05] Production.INFO: CreateAllLog End [2025-03-03 10:39:05] Production.INFO: Account Balance End. [2025-03-03 10:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:39:05] Production.INFO: ==8887== Releasing lock... [2025-03-03 10:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:39:13] Production.ERROR: CronJobId end10 [2025-03-03 10:39:13] Production.INFO: ==8885== Releasing lock... [2025-03-03 10:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:39:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:39:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:39:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:39:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:39:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:39:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:39:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:39:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:39:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:39:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:39:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:39:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:39:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:39:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:39:16] Production.INFO: call_cost start [2025-03-03 10:39:16] Production.INFO: call_cost end [2025-03-03 10:39:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:39:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:39:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:39:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:39:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:39:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:39:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:39:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:39:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:39:16] Production.INFO: ==8881== Releasing lock... [2025-03-03 10:39:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:39:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:39:17] Production.INFO: count ==409 [2025-03-03 10:39:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597909', 'tblTempUsageDetail_20' ) start [2025-03-03 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597909', 'tblTempUsageDetail_20' ) end [2025-03-03 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597909', 'tblTempVendorCDR_20' ) start [2025-03-03 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597909', 'tblTempVendorCDR_20' ) end [2025-03-03 10:39:17] Production.INFO: ProcessCDR(1,14597909,1,1,2) [2025-03-03 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597909', 'tblTempUsageDetail_20' ) start [2025-03-03 10:39:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597909', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:39:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:39:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:39:26] Production.INFO: ==8889== Releasing lock... [2025-03-03 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:39:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:40:02] Production.INFO: ==8999== Lock acquired, processing the job... [2025-03-03 15:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:40:02] Production.INFO: neon service started [2025-03-03 15:40:02] Production.INFO: neon service started [2025-03-03 15:40:02] Production.INFO: ==8999== Releasing lock... [2025-03-03 15:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:40:02] Production.INFO: ==9002== Lock acquired, processing the job... [2025-03-03 10:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:40:03] Production.INFO: ==9002== Releasing lock... [2025-03-03 10:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:40:03] Production.INFO: ==9004== Lock acquired, processing the job... [2025-03-03 15:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:40:03] Production.INFO: ==9004== Releasing lock... [2025-03-03 15:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:40:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:40:04] Production.INFO: ==9010== Lock acquired, processing the job... [2025-03-03 10:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:40:04] Production.INFO: ==9020== Lock acquired, processing the job... [2025-03-03 10:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:40:04] Production.INFO: ==9018== Lock acquired, processing the job... [2025-03-03 10:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 10:40:04] Production.INFO: ==9006== Lock acquired, processing the job... [2025-03-03 10:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 10:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:40:04] Production.INFO: ==9008== Lock acquired, processing the job... [2025-03-03 10:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:40:04] Production.ERROR: CronJob PID - 9010 [2025-03-03 10:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 10:40:04] Production.ERROR: CronJob ID - 7 [2025-03-03 10:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 10:40:00 [2025-03-03 10:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:40:04] Production.ERROR: CronJob PID - 9018 [2025-03-03 10:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 10:40:04] Production.ERROR: CronJob ID - 17 [2025-03-03 10:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 10:40:00 [2025-03-03 10:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:40:04] Production.ERROR: CronJob PID - 9020 [2025-03-03 10:40:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 10:40:04] Production.ERROR: CronJob ID - 19 [2025-03-03 10:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 10:40:00 [2025-03-03 10:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:40:04] Production.INFO: ==9012== Lock acquired, processing the job... [2025-03-03 10:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:40:04] Production.INFO: count ==13 [2025-03-03 10:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:40:04] Production.INFO: count ==21 [2025-03-03 10:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597911') start [2025-03-03 10:40:05] Production.INFO: ==9014== Lock acquired, processing the job... [2025-03-03 10:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:40:05] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:40:05] Production.INFO: ==9016== Lock acquired, processing the job... [2025-03-03 10:40:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:40:05] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 10:40:05] Production.INFO: ==9006== Releasing lock... [2025-03-03 10:40:05] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 10:40:05] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 10:40:05] Production.INFO: ==9010== Releasing lock... [2025-03-03 10:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597911') end [2025-03-03 10:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:40:05] Production.INFO: 1 [2025-03-03 10:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:40:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:40:05] Production.INFO: Account Balance Start. [2025-03-03 10:40:05] Production.INFO: CreateAllLog Start [2025-03-03 10:40:05] Production.INFO: 117 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-08 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:40:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:40:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:40:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:40:05] Production.INFO: Date 2025-02-09 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-10 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: ==9020== Releasing lock... [2025-03-03 10:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:40:05] Production.ERROR: done [2025-03-03 10:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 10:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597914', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 10:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.ERROR: done [2025-03-03 10:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:05] Production.ERROR: done [2025-03-03 10:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-20 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-21 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:40:06] Production.INFO: Date 2025-02-22 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-23 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-24 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-25 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-26 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-27 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-02-28 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-03-01 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-03-02 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Date 2025-03-03 [2025-03-03 10:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:40:06] Production.INFO: Total Charge 0 [2025-03-03 10:40:06] Production.INFO: CreateAllLog End [2025-03-03 10:40:06] Production.INFO: Account Balance End. [2025-03-03 10:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:40:06] Production.INFO: ==9014== Releasing lock... [2025-03-03 10:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:40:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597914', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 10:40:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 10:40:10] Production.INFO: ProcessCDR(1,14597914,1,1,2) [2025-03-03 10:40:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597914,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:40:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597914,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:40:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 10:40:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 10:40:10] Production.INFO: ==9018== Releasing lock... [2025-03-03 10:40:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 10:40:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:40:17] Production.ERROR: CronJobId end10 [2025-03-03 10:40:17] Production.INFO: ==9012== Releasing lock... [2025-03-03 10:40:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:40:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:40:18] Production.INFO: call_cost start [2025-03-03 10:40:18] Production.INFO: call_cost end [2025-03-03 10:40:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:40:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:40:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:40:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:40:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:40:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:40:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:40:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:40:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:40:18] Production.INFO: ==9008== Releasing lock... [2025-03-03 10:40:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:40:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:40:18] Production.INFO: count ==409 [2025-03-03 10:40:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597915', 'tblTempUsageDetail_20' ) start [2025-03-03 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597915', 'tblTempUsageDetail_20' ) end [2025-03-03 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597915', 'tblTempVendorCDR_20' ) start [2025-03-03 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597915', 'tblTempVendorCDR_20' ) end [2025-03-03 10:40:18] Production.INFO: ProcessCDR(1,14597915,1,1,2) [2025-03-03 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597915', 'tblTempUsageDetail_20' ) start [2025-03-03 10:40:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597915', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:40:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:40:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:40:27] Production.INFO: ==9016== Releasing lock... [2025-03-03 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:40:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:41:01] Production.INFO: ==9089== Lock acquired, processing the job... [2025-03-03 15:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:41:01] Production.INFO: neon service started [2025-03-03 15:41:02] Production.INFO: neon service started [2025-03-03 15:41:02] Production.INFO: ==9089== Releasing lock... [2025-03-03 15:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:41:02] Production.INFO: ==9091== Lock acquired, processing the job... [2025-03-03 10:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:41:02] Production.INFO: ==9091== Releasing lock... [2025-03-03 10:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:41:02] Production.INFO: ==9093== Lock acquired, processing the job... [2025-03-03 15:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:41:03] Production.INFO: ==9093== Releasing lock... [2025-03-03 15:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:41:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:41:03] Production.INFO: ==9102== Lock acquired, processing the job... [2025-03-03 10:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:41:03] Production.INFO: ==9104== Lock acquired, processing the job... [2025-03-03 10:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:41:03] Production.INFO: ==9098== Lock acquired, processing the job... [2025-03-03 10:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:41:03] Production.INFO: ==9096== Lock acquired, processing the job... [2025-03-03 10:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:41:03] Production.INFO: Account Balance Start. [2025-03-03 10:41:03] Production.INFO: CreateAllLog Start [2025-03-03 10:41:03] Production.INFO: 117 [2025-03-03 10:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:03] Production.INFO: ==9100== Lock acquired, processing the job... [2025-03-03 10:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 10:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 10:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: ==9106== Lock acquired, processing the job... [2025-03-03 10:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:41:04] Production.ERROR: done [2025-03-03 10:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: count ==13 [2025-03-03 10:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:41:04] Production.INFO: count ==21 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597919') start [2025-03-03 10:41:04] Production.ERROR: done [2025-03-03 10:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: ==9098== Releasing lock... [2025-03-03 10:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597919') end [2025-03-03 10:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:41:04] Production.INFO: 1 [2025-03-03 10:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:41:04] Production.INFO: ==9106== Releasing lock... [2025-03-03 10:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:41:05] Production.INFO: Total Charge 0 [2025-03-03 10:41:05] Production.INFO: CreateAllLog End [2025-03-03 10:41:05] Production.INFO: Account Balance End. [2025-03-03 10:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:41:05] Production.INFO: ==9102== Releasing lock... [2025-03-03 10:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:41:13] Production.ERROR: CronJobId end10 [2025-03-03 10:41:13] Production.INFO: ==9100== Releasing lock... [2025-03-03 10:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:41:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:41:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:41:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:41:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:41:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:41:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:41:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:41:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:41:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:41:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:41:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:41:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:41:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:41:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:41:16] Production.INFO: call_cost start [2025-03-03 10:41:16] Production.INFO: call_cost end [2025-03-03 10:41:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:41:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:41:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:41:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:41:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:41:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:41:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:41:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:41:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:41:16] Production.INFO: ==9096== Releasing lock... [2025-03-03 10:41:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:41:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:41:16] Production.INFO: count ==409 [2025-03-03 10:41:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597920', 'tblTempUsageDetail_20' ) start [2025-03-03 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597920', 'tblTempUsageDetail_20' ) end [2025-03-03 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597920', 'tblTempVendorCDR_20' ) start [2025-03-03 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597920', 'tblTempVendorCDR_20' ) end [2025-03-03 10:41:17] Production.INFO: ProcessCDR(1,14597920,1,1,2) [2025-03-03 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597920', 'tblTempUsageDetail_20' ) start [2025-03-03 10:41:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597920', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:41:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:41:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:41:25] Production.INFO: ==9104== Releasing lock... [2025-03-03 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:41:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:42:01] Production.INFO: ==9172== Lock acquired, processing the job... [2025-03-03 15:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:42:01] Production.INFO: neon service started [2025-03-03 15:42:01] Production.INFO: neon service started [2025-03-03 15:42:01] Production.INFO: ==9172== Releasing lock... [2025-03-03 15:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:42:01] Production.INFO: ==9176== Lock acquired, processing the job... [2025-03-03 15:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:42:01] Production.INFO: ==9176== Releasing lock... [2025-03-03 15:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:42:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:42:02] Production.INFO: ==9174== Lock acquired, processing the job... [2025-03-03 10:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:42:02] Production.INFO: ==9174== Releasing lock... [2025-03-03 10:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:42:03] Production.INFO: ==9181== Lock acquired, processing the job... [2025-03-03 10:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:42:03] Production.INFO: ==9183== Lock acquired, processing the job... [2025-03-03 10:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:42:03] Production.INFO: ==9187== Lock acquired, processing the job... [2025-03-03 10:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:42:03] Production.INFO: ==9179== Lock acquired, processing the job... [2025-03-03 10:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:42:03] Production.INFO: ==9189== Lock acquired, processing the job... [2025-03-03 10:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:42:03] Production.INFO: ==9185== Lock acquired, processing the job... [2025-03-03 10:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:42:03] Production.INFO: ==9181== Releasing lock... [2025-03-03 10:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:42:04] Production.INFO: Account Balance Start. [2025-03-03 10:42:04] Production.INFO: CreateAllLog Start [2025-03-03 10:42:04] Production.INFO: 117 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:42:04] Production.INFO: count ==13 [2025-03-03 10:42:04] Production.ERROR: done [2025-03-03 10:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:42:04] Production.INFO: count ==21 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597923') start [2025-03-03 10:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597923') end [2025-03-03 10:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:42:04] Production.INFO: 1 [2025-03-03 10:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:42:04] Production.ERROR: done [2025-03-03 10:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: ==9189== Releasing lock... [2025-03-03 10:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:42:05] Production.INFO: Total Charge 0 [2025-03-03 10:42:05] Production.INFO: CreateAllLog End [2025-03-03 10:42:05] Production.INFO: Account Balance End. [2025-03-03 10:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:42:05] Production.INFO: ==9185== Releasing lock... [2025-03-03 10:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:42:14] Production.ERROR: CronJobId end10 [2025-03-03 10:42:14] Production.INFO: ==9183== Releasing lock... [2025-03-03 10:42:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:42:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:42:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:42:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:42:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:42:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:42:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:42:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:42:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:42:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:42:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:42:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:42:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:42:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:42:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:42:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:42:16] Production.INFO: call_cost start [2025-03-03 10:42:16] Production.INFO: call_cost end [2025-03-03 10:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:42:16] Production.INFO: ==9179== Releasing lock... [2025-03-03 10:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:42:16] Production.INFO: count ==409 [2025-03-03 10:42:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597925', 'tblTempUsageDetail_20' ) start [2025-03-03 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597925', 'tblTempUsageDetail_20' ) end [2025-03-03 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597925', 'tblTempVendorCDR_20' ) start [2025-03-03 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597925', 'tblTempVendorCDR_20' ) end [2025-03-03 10:42:17] Production.INFO: ProcessCDR(1,14597925,1,1,2) [2025-03-03 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597925', 'tblTempUsageDetail_20' ) start [2025-03-03 10:42:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597925', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:42:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:42:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:42:25] Production.INFO: ==9187== Releasing lock... [2025-03-03 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:42:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:43:01] Production.INFO: ==9255== Lock acquired, processing the job... [2025-03-03 15:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:43:02] Production.INFO: neon service started [2025-03-03 15:43:02] Production.INFO: neon service started [2025-03-03 15:43:02] Production.INFO: ==9255== Releasing lock... [2025-03-03 15:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:43:02] Production.INFO: ==9259== Lock acquired, processing the job... [2025-03-03 15:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:43:02] Production.INFO: ==9259== Releasing lock... [2025-03-03 15:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:43:02] Production.INFO: ==9257== Lock acquired, processing the job... [2025-03-03 10:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:43:02] Production.INFO: ==9257== Releasing lock... [2025-03-03 10:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:43:03] Production.INFO: ==9262== Lock acquired, processing the job... [2025-03-03 10:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:43:03] Production.INFO: ==9264== Lock acquired, processing the job... [2025-03-03 10:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:43:03] Production.INFO: ==9270== Lock acquired, processing the job... [2025-03-03 10:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:43:04] Production.INFO: ==9266== Lock acquired, processing the job... [2025-03-03 10:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:43:04] Production.INFO: ==9264== Releasing lock... [2025-03-03 10:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:43:04] Production.INFO: ==9268== Lock acquired, processing the job... [2025-03-03 10:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:43:04] Production.INFO: ==9273== Lock acquired, processing the job... [2025-03-03 10:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:43:04] Production.INFO: Account Balance Start. [2025-03-03 10:43:04] Production.INFO: CreateAllLog Start [2025-03-03 10:43:04] Production.INFO: 117 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: count ==13 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:43:04] Production.INFO: count ==21 [2025-03-03 10:43:04] Production.ERROR: done [2025-03-03 10:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597929') start [2025-03-03 10:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597929') end [2025-03-03 10:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:43:04] Production.INFO: 1 [2025-03-03 10:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:43:04] Production.INFO: ==9273== Releasing lock... [2025-03-03 10:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.ERROR: done [2025-03-03 10:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:43:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:43:05] Production.INFO: Total Charge 0 [2025-03-03 10:43:05] Production.INFO: CreateAllLog End [2025-03-03 10:43:05] Production.INFO: Account Balance End. [2025-03-03 10:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:43:05] Production.INFO: ==9268== Releasing lock... [2025-03-03 10:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:43:13] Production.ERROR: CronJobId end10 [2025-03-03 10:43:13] Production.INFO: ==9266== Releasing lock... [2025-03-03 10:43:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:43:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:43:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:43:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:43:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:43:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:43:15] Production.INFO: call_cost start [2025-03-03 10:43:15] Production.INFO: call_cost end [2025-03-03 10:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:43:15] Production.INFO: ==9262== Releasing lock... [2025-03-03 10:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:43:17] Production.INFO: count ==409 [2025-03-03 10:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597930', 'tblTempUsageDetail_20' ) start [2025-03-03 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597930', 'tblTempUsageDetail_20' ) end [2025-03-03 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597930', 'tblTempVendorCDR_20' ) start [2025-03-03 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597930', 'tblTempVendorCDR_20' ) end [2025-03-03 10:43:17] Production.INFO: ProcessCDR(1,14597930,1,1,2) [2025-03-03 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597930', 'tblTempUsageDetail_20' ) start [2025-03-03 10:43:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597930', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:43:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:43:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:43:26] Production.INFO: ==9270== Releasing lock... [2025-03-03 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:43:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:44:01] Production.INFO: ==9344== Lock acquired, processing the job... [2025-03-03 15:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:44:01] Production.INFO: neon service started [2025-03-03 15:44:01] Production.INFO: neon service started [2025-03-03 15:44:01] Production.INFO: ==9344== Releasing lock... [2025-03-03 15:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:44:01] Production.INFO: ==9349== Lock acquired, processing the job... [2025-03-03 15:44:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:44:01] Production.INFO: ==9349== Releasing lock... [2025-03-03 15:44:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:44:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:44:02] Production.INFO: ==9347== Lock acquired, processing the job... [2025-03-03 10:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:44:02] Production.INFO: ==9347== Releasing lock... [2025-03-03 10:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:44:03] Production.INFO: ==9355== Lock acquired, processing the job... [2025-03-03 10:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:44:03] Production.INFO: ==9359== Lock acquired, processing the job... [2025-03-03 10:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:44:03] Production.INFO: ==9351== Lock acquired, processing the job... [2025-03-03 10:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:44:03] Production.INFO: ==9353== Lock acquired, processing the job... [2025-03-03 10:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:44:03] Production.INFO: ==9357== Lock acquired, processing the job... [2025-03-03 10:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:44:03] Production.INFO: ==9361== Lock acquired, processing the job... [2025-03-03 10:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:44:03] Production.INFO: Account Balance Start. [2025-03-03 10:44:03] Production.INFO: CreateAllLog Start [2025-03-03 10:44:03] Production.INFO: 117 [2025-03-03 10:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.INFO: count ==13 [2025-03-03 10:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:44:04] Production.INFO: count ==21 [2025-03-03 10:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597933') start [2025-03-03 10:44:04] Production.ERROR: done [2025-03-03 10:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597933') end [2025-03-03 10:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:44:04] Production.INFO: 1 [2025-03-03 10:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:44:04] Production.INFO: ==9353== Releasing lock... [2025-03-03 10:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.INFO: ==9361== Releasing lock... [2025-03-03 10:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:44:04] Production.ERROR: done [2025-03-03 10:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:44:05] Production.INFO: Total Charge 0 [2025-03-03 10:44:05] Production.INFO: CreateAllLog End [2025-03-03 10:44:05] Production.INFO: Account Balance End. [2025-03-03 10:44:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:44:06] Production.INFO: ==9357== Releasing lock... [2025-03-03 10:44:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:44:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:44:13] Production.ERROR: CronJobId end10 [2025-03-03 10:44:13] Production.INFO: ==9355== Releasing lock... [2025-03-03 10:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:44:15] Production.INFO: call_cost start [2025-03-03 10:44:15] Production.INFO: call_cost end [2025-03-03 10:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:44:15] Production.INFO: ==9351== Releasing lock... [2025-03-03 10:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:44:16] Production.INFO: count ==409 [2025-03-03 10:44:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597935', 'tblTempUsageDetail_20' ) start [2025-03-03 10:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597935', 'tblTempUsageDetail_20' ) end [2025-03-03 10:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597935', 'tblTempVendorCDR_20' ) start [2025-03-03 10:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597935', 'tblTempVendorCDR_20' ) end [2025-03-03 10:44:16] Production.INFO: ProcessCDR(1,14597935,1,1,2) [2025-03-03 10:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597935', 'tblTempUsageDetail_20' ) start [2025-03-03 10:44:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597935', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:44:25] Production.INFO: ==9359== Releasing lock... [2025-03-03 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:44:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:45:02] Production.INFO: ==9430== Lock acquired, processing the job... [2025-03-03 15:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:45:02] Production.INFO: neon service started [2025-03-03 15:45:02] Production.INFO: neon service started [2025-03-03 15:45:02] Production.INFO: ==9430== Releasing lock... [2025-03-03 15:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:45:02] Production.INFO: ==9433== Lock acquired, processing the job... [2025-03-03 10:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:45:02] Production.INFO: ==9435== Lock acquired, processing the job... [2025-03-03 15:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:45:02] Production.INFO: ==9435== Releasing lock... [2025-03-03 15:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:45:03] Production.INFO: ==9433== Releasing lock... [2025-03-03 10:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:45:03] Production.INFO: ==9437== Lock acquired, processing the job... [2025-03-03 10:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:45:04] Production.INFO: ==9443== Lock acquired, processing the job... [2025-03-03 10:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:45:04] Production.INFO: ==9445== Lock acquired, processing the job... [2025-03-03 10:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:45:04] Production.INFO: Account Balance Start. [2025-03-03 10:45:04] Production.INFO: CreateAllLog Start [2025-03-03 10:45:04] Production.INFO: 117 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: ==9439== Lock acquired, processing the job... [2025-03-03 10:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: ==9441== Lock acquired, processing the job... [2025-03-03 10:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: ==9447== Lock acquired, processing the job... [2025-03-03 10:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.ERROR: done [2025-03-03 10:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:45:04] Production.INFO: ==9439== Releasing lock... [2025-03-03 10:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:04] Production.INFO: count ==13 [2025-03-03 10:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:45:04] Production.INFO: count ==21 [2025-03-03 10:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597939') start [2025-03-03 10:45:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.ERROR: done [2025-03-03 10:45:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.ERROR: PBX CALL prc_importPBXExtension('14597939') end [2025-03-03 10:45:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:45:05] Production.INFO: 1 [2025-03-03 10:45:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:45:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: ==9447== Releasing lock... [2025-03-03 10:45:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:45:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:45:05] Production.INFO: Total Charge 0 [2025-03-03 10:45:05] Production.INFO: CreateAllLog End [2025-03-03 10:45:05] Production.INFO: Account Balance End. [2025-03-03 10:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:45:05] Production.INFO: ==9443== Releasing lock... [2025-03-03 10:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:45:13] Production.ERROR: CronJobId end10 [2025-03-03 10:45:13] Production.INFO: ==9441== Releasing lock... [2025-03-03 10:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:45:16] Production.INFO: call_cost start [2025-03-03 10:45:16] Production.INFO: call_cost end [2025-03-03 10:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:45:16] Production.INFO: ==9437== Releasing lock... [2025-03-03 10:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:45:17] Production.INFO: count ==409 [2025-03-03 10:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597940', 'tblTempUsageDetail_20' ) start [2025-03-03 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597940', 'tblTempUsageDetail_20' ) end [2025-03-03 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597940', 'tblTempVendorCDR_20' ) start [2025-03-03 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597940', 'tblTempVendorCDR_20' ) end [2025-03-03 10:45:17] Production.INFO: ProcessCDR(1,14597940,1,1,2) [2025-03-03 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597940', 'tblTempUsageDetail_20' ) start [2025-03-03 10:45:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597940', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:45:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:45:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:45:26] Production.INFO: ==9445== Releasing lock... [2025-03-03 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:45:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:46:01] Production.INFO: ==9515== Lock acquired, processing the job... [2025-03-03 15:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:46:01] Production.INFO: neon service started [2025-03-03 15:46:01] Production.INFO: neon service started [2025-03-03 15:46:01] Production.INFO: ==9515== Releasing lock... [2025-03-03 15:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:46:02] Production.INFO: ==9517== Lock acquired, processing the job... [2025-03-03 10:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:46:02] Production.INFO: ==9519== Lock acquired, processing the job... [2025-03-03 15:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:46:02] Production.INFO: ==9519== Releasing lock... [2025-03-03 15:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:46:02] Production.INFO: ==9517== Releasing lock... [2025-03-03 10:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:46:03] Production.INFO: ==9526== Lock acquired, processing the job... [2025-03-03 10:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:46:03] Production.INFO: ==9530== Lock acquired, processing the job... [2025-03-03 10:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:46:03] Production.INFO: ==9522== Lock acquired, processing the job... [2025-03-03 10:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:46:04] Production.INFO: ==9524== Lock acquired, processing the job... [2025-03-03 10:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:46:04] Production.INFO: ==9532== Lock acquired, processing the job... [2025-03-03 10:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:46:04] Production.INFO: ==9528== Lock acquired, processing the job... [2025-03-03 10:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:46:04] Production.INFO: Account Balance Start. [2025-03-03 10:46:04] Production.INFO: CreateAllLog Start [2025-03-03 10:46:04] Production.INFO: 117 [2025-03-03 10:46:04] Production.INFO: count ==13 [2025-03-03 10:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:46:04] Production.INFO: count ==21 [2025-03-03 10:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597943') start [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.ERROR: done [2025-03-03 10:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:46:04] Production.ERROR: done [2025-03-03 10:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597943') end [2025-03-03 10:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:46:04] Production.INFO: 1 [2025-03-03 10:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.INFO: ==9532== Releasing lock... [2025-03-03 10:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:46:04] Production.INFO: ==9524== Releasing lock... [2025-03-03 10:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:46:05] Production.INFO: Total Charge 0 [2025-03-03 10:46:05] Production.INFO: CreateAllLog End [2025-03-03 10:46:05] Production.INFO: Account Balance End. [2025-03-03 10:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:46:05] Production.INFO: ==9528== Releasing lock... [2025-03-03 10:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:46:13] Production.ERROR: CronJobId end10 [2025-03-03 10:46:13] Production.INFO: ==9526== Releasing lock... [2025-03-03 10:46:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:46:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:46:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:46:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:46:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:46:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:46:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:46:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:46:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:46:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:46:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:46:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:46:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:46:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:46:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:46:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:46:16] Production.INFO: call_cost start [2025-03-03 10:46:16] Production.INFO: call_cost end [2025-03-03 10:46:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:46:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:46:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:46:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:46:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:46:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:46:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:46:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:46:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:46:16] Production.INFO: ==9522== Releasing lock... [2025-03-03 10:46:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:46:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:46:17] Production.INFO: count ==409 [2025-03-03 10:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597945', 'tblTempUsageDetail_20' ) start [2025-03-03 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597945', 'tblTempUsageDetail_20' ) end [2025-03-03 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597945', 'tblTempVendorCDR_20' ) start [2025-03-03 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597945', 'tblTempVendorCDR_20' ) end [2025-03-03 10:46:17] Production.INFO: ProcessCDR(1,14597945,1,1,2) [2025-03-03 10:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597945', 'tblTempUsageDetail_20' ) start [2025-03-03 10:46:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597945', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:46:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:46:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:46:26] Production.INFO: ==9530== Releasing lock... [2025-03-03 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:46:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:47:02] Production.INFO: ==9603== Lock acquired, processing the job... [2025-03-03 15:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:47:02] Production.INFO: neon service started [2025-03-03 15:47:02] Production.INFO: neon service started [2025-03-03 15:47:02] Production.INFO: ==9603== Releasing lock... [2025-03-03 15:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:47:02] Production.INFO: ==9605== Lock acquired, processing the job... [2025-03-03 10:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:47:02] Production.INFO: ==9605== Releasing lock... [2025-03-03 10:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:47:03] Production.INFO: ==9607== Lock acquired, processing the job... [2025-03-03 15:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:47:03] Production.INFO: ==9607== Releasing lock... [2025-03-03 15:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:47:03] Production.INFO: ==9611== Lock acquired, processing the job... [2025-03-03 10:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:47:03] Production.INFO: ==9613== Lock acquired, processing the job... [2025-03-03 10:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:47:03] Production.INFO: ==9609== Lock acquired, processing the job... [2025-03-03 10:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:47:04] Production.INFO: ==9611== Releasing lock... [2025-03-03 10:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:47:04] Production.INFO: ==9618== Lock acquired, processing the job... [2025-03-03 10:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:47:04] Production.INFO: ==9615== Lock acquired, processing the job... [2025-03-03 10:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:47:04] Production.INFO: ==9620== Lock acquired, processing the job... [2025-03-03 10:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:47:04] Production.INFO: count ==13 [2025-03-03 10:47:04] Production.INFO: Account Balance Start. [2025-03-03 10:47:04] Production.INFO: CreateAllLog Start [2025-03-03 10:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:47:04] Production.INFO: 117 [2025-03-03 10:47:04] Production.INFO: count ==21 [2025-03-03 10:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597948') start [2025-03-03 10:47:04] Production.ERROR: done [2025-03-03 10:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597948') end [2025-03-03 10:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:47:04] Production.INFO: 1 [2025-03-03 10:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-12 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: ==9620== Releasing lock... [2025-03-03 10:47:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:47:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:47:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.ERROR: done [2025-03-03 10:47:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:47:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:47:05] Production.INFO: Total Charge 0 [2025-03-03 10:47:05] Production.INFO: CreateAllLog End [2025-03-03 10:47:05] Production.INFO: Account Balance End. [2025-03-03 10:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:47:05] Production.INFO: ==9615== Releasing lock... [2025-03-03 10:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:47:13] Production.ERROR: CronJobId end10 [2025-03-03 10:47:13] Production.INFO: ==9613== Releasing lock... [2025-03-03 10:47:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:47:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:47:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:47:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:47:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:47:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:47:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:47:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:47:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:47:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:47:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:47:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:47:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:47:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:47:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:47:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:47:16] Production.INFO: call_cost start [2025-03-03 10:47:16] Production.INFO: call_cost end [2025-03-03 10:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:47:16] Production.INFO: ==9609== Releasing lock... [2025-03-03 10:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:47:17] Production.INFO: count ==409 [2025-03-03 10:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597950', 'tblTempUsageDetail_20' ) start [2025-03-03 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597950', 'tblTempUsageDetail_20' ) end [2025-03-03 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597950', 'tblTempVendorCDR_20' ) start [2025-03-03 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597950', 'tblTempVendorCDR_20' ) end [2025-03-03 10:47:18] Production.INFO: ProcessCDR(1,14597950,1,1,2) [2025-03-03 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597950', 'tblTempUsageDetail_20' ) start [2025-03-03 10:47:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597950', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:47:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:47:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:47:26] Production.INFO: ==9618== Releasing lock... [2025-03-03 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:47:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:48:01] Production.INFO: ==9685== Lock acquired, processing the job... [2025-03-03 15:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:48:01] Production.INFO: neon service started [2025-03-03 15:48:01] Production.INFO: neon service started [2025-03-03 15:48:01] Production.INFO: ==9685== Releasing lock... [2025-03-03 15:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:48:01] Production.INFO: ==9687== Lock acquired, processing the job... [2025-03-03 10:48:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:48:02] Production.INFO: ==9687== Releasing lock... [2025-03-03 10:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:48:02] Production.INFO: ==9689== Lock acquired, processing the job... [2025-03-03 15:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:48:02] Production.INFO: ==9689== Releasing lock... [2025-03-03 15:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:48:03] Production.INFO: ==9700== Lock acquired, processing the job... [2025-03-03 10:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:48:03] Production.INFO: ==9702== Lock acquired, processing the job... [2025-03-03 10:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:48:03] Production.INFO: ==9692== Lock acquired, processing the job... [2025-03-03 10:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:48:03] Production.INFO: ==9694== Lock acquired, processing the job... [2025-03-03 10:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:48:03] Production.INFO: ==9696== Lock acquired, processing the job... [2025-03-03 10:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:48:03] Production.INFO: count ==13 [2025-03-03 10:48:03] Production.INFO: ==9698== Lock acquired, processing the job... [2025-03-03 10:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:48:03] Production.INFO: count ==21 [2025-03-03 10:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597951') start [2025-03-03 10:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:48:03] Production.INFO: Account Balance Start. [2025-03-03 10:48:03] Production.INFO: CreateAllLog Start [2025-03-03 10:48:03] Production.INFO: 117 [2025-03-03 10:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14597951') end [2025-03-03 10:48:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:48:03] Production.INFO: 1 [2025-03-03 10:48:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: ==9702== Releasing lock... [2025-03-03 10:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:48:04] Production.ERROR: done [2025-03-03 10:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.ERROR: done [2025-03-03 10:48:04] Production.INFO: ==9694== Releasing lock... [2025-03-03 10:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:04] Production.INFO: Date 2025-03-01 [2025-03-03 10:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:48:05] Production.INFO: Total Charge 0 [2025-03-03 10:48:05] Production.INFO: CreateAllLog End [2025-03-03 10:48:05] Production.INFO: Account Balance End. [2025-03-03 10:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:48:05] Production.INFO: ==9698== Releasing lock... [2025-03-03 10:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:48:13] Production.ERROR: CronJobId end10 [2025-03-03 10:48:13] Production.INFO: ==9696== Releasing lock... [2025-03-03 10:48:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:48:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:48:16] Production.INFO: call_cost start [2025-03-03 10:48:16] Production.INFO: call_cost end [2025-03-03 10:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:48:16] Production.INFO: ==9692== Releasing lock... [2025-03-03 10:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:48:16] Production.INFO: count ==409 [2025-03-03 10:48:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597955', 'tblTempUsageDetail_20' ) start [2025-03-03 10:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597955', 'tblTempUsageDetail_20' ) end [2025-03-03 10:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597955', 'tblTempVendorCDR_20' ) start [2025-03-03 10:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597955', 'tblTempVendorCDR_20' ) end [2025-03-03 10:48:16] Production.INFO: ProcessCDR(1,14597955,1,1,2) [2025-03-03 10:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597955', 'tblTempUsageDetail_20' ) start [2025-03-03 10:48:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597955', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:48:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:48:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:48:25] Production.INFO: ==9700== Releasing lock... [2025-03-03 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:48:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:49:02] Production.INFO: ==9771== Lock acquired, processing the job... [2025-03-03 15:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:49:02] Production.INFO: neon service started [2025-03-03 15:49:02] Production.INFO: neon service started [2025-03-03 15:49:02] Production.INFO: ==9771== Releasing lock... [2025-03-03 15:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:49:02] Production.INFO: ==9776== Lock acquired, processing the job... [2025-03-03 15:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:49:02] Production.INFO: ==9776== Releasing lock... [2025-03-03 15:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:49:02] Production.INFO: ==9774== Lock acquired, processing the job... [2025-03-03 10:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:49:03] Production.INFO: ==9774== Releasing lock... [2025-03-03 10:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:49:04] Production.INFO: ==9784== Lock acquired, processing the job... [2025-03-03 10:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:49:04] Production.INFO: ==9789== Lock acquired, processing the job... [2025-03-03 10:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:49:04] Production.INFO: ==9778== Lock acquired, processing the job... [2025-03-03 10:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:49:04] Production.INFO: Account Balance Start. [2025-03-03 10:49:04] Production.INFO: CreateAllLog Start [2025-03-03 10:49:04] Production.INFO: 117 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:49:04] Production.INFO: ==9780== Lock acquired, processing the job... [2025-03-03 10:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:49:04] Production.INFO: count ==13 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:49:04] Production.INFO: count ==21 [2025-03-03 10:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597957') start [2025-03-03 10:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: ==9782== Lock acquired, processing the job... [2025-03-03 10:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597957') end [2025-03-03 10:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:49:04] Production.INFO: 1 [2025-03-03 10:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:49:04] Production.INFO: ==9786== Lock acquired, processing the job... [2025-03-03 10:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: ==9789== Releasing lock... [2025-03-03 10:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:04] Production.INFO: ==9780== Releasing lock... [2025-03-03 10:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.ERROR: done [2025-03-03 10:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:49:05] Production.ERROR: done [2025-03-03 10:49:05] Production.INFO: Total Charge 0 [2025-03-03 10:49:05] Production.INFO: CreateAllLog End [2025-03-03 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:49:05] Production.INFO: Account Balance End. [2025-03-03 10:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:49:05] Production.INFO: ==9784== Releasing lock... [2025-03-03 10:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:49:12] Production.ERROR: CronJobId end10 [2025-03-03 10:49:12] Production.INFO: ==9782== Releasing lock... [2025-03-03 10:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:49:16] Production.INFO: call_cost start [2025-03-03 10:49:16] Production.INFO: call_cost end [2025-03-03 10:49:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:49:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:49:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:49:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:49:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:49:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:49:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:49:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:49:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:49:16] Production.INFO: ==9778== Releasing lock... [2025-03-03 10:49:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:49:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:49:17] Production.INFO: count ==409 [2025-03-03 10:49:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597960', 'tblTempUsageDetail_20' ) start [2025-03-03 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597960', 'tblTempUsageDetail_20' ) end [2025-03-03 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597960', 'tblTempVendorCDR_20' ) start [2025-03-03 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597960', 'tblTempVendorCDR_20' ) end [2025-03-03 10:49:18] Production.INFO: ProcessCDR(1,14597960,1,1,2) [2025-03-03 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597960', 'tblTempUsageDetail_20' ) start [2025-03-03 10:49:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597960', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:49:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:49:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:49:27] Production.INFO: ==9786== Releasing lock... [2025-03-03 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:49:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:50:01] Production.INFO: ==9861== Lock acquired, processing the job... [2025-03-03 15:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:50:01] Production.INFO: neon service started [2025-03-03 15:50:01] Production.INFO: neon service started [2025-03-03 15:50:01] Production.INFO: ==9861== Releasing lock... [2025-03-03 15:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:50:02] Production.INFO: ==9863== Lock acquired, processing the job... [2025-03-03 10:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:50:02] Production.INFO: ==9863== Releasing lock... [2025-03-03 10:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:50:02] Production.INFO: ==9865== Lock acquired, processing the job... [2025-03-03 15:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:50:02] Production.INFO: ==9865== Releasing lock... [2025-03-03 15:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:50:03] Production.INFO: ==9872== Lock acquired, processing the job... [2025-03-03 10:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:50:03] Production.INFO: ==9874== Lock acquired, processing the job... [2025-03-03 10:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:50:03] Production.INFO: ==9867== Lock acquired, processing the job... [2025-03-03 10:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 10:50:03] Production.INFO: ==9882== Lock acquired, processing the job... [2025-03-03 10:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 10:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:50:03] Production.ERROR: CronJob PID - 9872 [2025-03-03 10:50:03] Production.ERROR: CronJob Title - Account Block [2025-03-03 10:50:03] Production.ERROR: CronJob ID - 7 [2025-03-03 10:50:03] Production.ERROR: CronJob Last Run Time 2025-03-03 10:50:00 [2025-03-03 10:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:50:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 10:50:03] Production.ERROR: CronJob PID - 9874 [2025-03-03 10:50:03] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 10:50:03] Production.ERROR: CronJob ID - 10 [2025-03-03 10:50:03] Production.ERROR: CronJob Last Run Time 2025-03-03 10:50:00 [2025-03-03 10:50:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 10:50:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 10:50:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:50:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:50:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 10:50:04] Production.INFO: ==9867== Releasing lock... [2025-03-03 10:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 10:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 10:50:04] Production.INFO: ==9869== Lock acquired, processing the job... [2025-03-03 10:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:50:04] Production.INFO: ==9872== Releasing lock... [2025-03-03 10:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:50:04] Production.INFO: count ==13 [2025-03-03 10:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:50:04] Production.INFO: count ==21 [2025-03-03 10:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597962') start [2025-03-03 10:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:50:04] Production.INFO: ==9876== Lock acquired, processing the job... [2025-03-03 10:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597962') end [2025-03-03 10:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:50:04] Production.INFO: 1 [2025-03-03 10:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:50:04] Production.INFO: ==9880== Lock acquired, processing the job... [2025-03-03 10:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 10:50:04] Production.INFO: ==9878== Lock acquired, processing the job... [2025-03-03 10:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:50:04] Production.INFO: ==9882== Releasing lock... [2025-03-03 10:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:50:04] Production.INFO: Account Balance Start. [2025-03-03 10:50:04] Production.INFO: CreateAllLog Start [2025-03-03 10:50:04] Production.INFO: 117 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.ERROR: done [2025-03-03 10:50:05] Production.ERROR: done [2025-03-03 10:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 10:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597965', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 10:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.ERROR: done [2025-03-03 10:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 10:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 10:50:06] Production.INFO: Total Charge 0 [2025-03-03 10:50:06] Production.INFO: CreateAllLog End [2025-03-03 10:50:06] Production.INFO: Account Balance End. [2025-03-03 10:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:50:06] Production.INFO: ==9876== Releasing lock... [2025-03-03 10:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14597965', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 10:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 10:50:10] Production.INFO: ProcessCDR(1,14597965,1,1,2) [2025-03-03 10:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14597965,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14597965,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 10:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 10:50:10] Production.INFO: ==9880== Releasing lock... [2025-03-03 10:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 10:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:50:14] Production.ERROR: CronJobId end10 [2025-03-03 10:50:14] Production.INFO: ==9874== Releasing lock... [2025-03-03 10:50:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:50:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:50:17] Production.INFO: call_cost start [2025-03-03 10:50:17] Production.INFO: call_cost end [2025-03-03 10:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:50:17] Production.INFO: ==9869== Releasing lock... [2025-03-03 10:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:50:18] Production.INFO: count ==409 [2025-03-03 10:50:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597966', 'tblTempUsageDetail_20' ) start [2025-03-03 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597966', 'tblTempUsageDetail_20' ) end [2025-03-03 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597966', 'tblTempVendorCDR_20' ) start [2025-03-03 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597966', 'tblTempVendorCDR_20' ) end [2025-03-03 10:50:18] Production.INFO: ProcessCDR(1,14597966,1,1,2) [2025-03-03 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597966', 'tblTempUsageDetail_20' ) start [2025-03-03 10:50:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597966', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:50:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:50:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:50:27] Production.INFO: ==9878== Releasing lock... [2025-03-03 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:50:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:51:02] Production.INFO: ==9949== Lock acquired, processing the job... [2025-03-03 15:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:51:02] Production.INFO: neon service started [2025-03-03 15:51:02] Production.INFO: neon service started [2025-03-03 15:51:02] Production.INFO: ==9949== Releasing lock... [2025-03-03 15:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:51:02] Production.INFO: ==9951== Lock acquired, processing the job... [2025-03-03 10:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:51:02] Production.INFO: ==9951== Releasing lock... [2025-03-03 10:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:51:02] Production.INFO: ==9953== Lock acquired, processing the job... [2025-03-03 15:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:51:03] Production.INFO: ==9953== Releasing lock... [2025-03-03 15:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:51:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:51:03] Production.INFO: ==9960== Lock acquired, processing the job... [2025-03-03 10:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:51:04] Production.INFO: ==9966== Lock acquired, processing the job... [2025-03-03 10:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:51:04] Production.INFO: ==9956== Lock acquired, processing the job... [2025-03-03 10:51:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:51:04] Production.INFO: count ==13 [2025-03-03 10:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:51:04] Production.INFO: count ==21 [2025-03-03 10:51:04] Production.INFO: ==9958== Lock acquired, processing the job... [2025-03-03 10:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597967') start [2025-03-03 10:51:04] Production.INFO: ==9962== Lock acquired, processing the job... [2025-03-03 10:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:51:04] Production.INFO: ==9964== Lock acquired, processing the job... [2025-03-03 10:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597967') end [2025-03-03 10:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:51:04] Production.INFO: 1 [2025-03-03 10:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:51:04] Production.INFO: ==9966== Releasing lock... [2025-03-03 10:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:51:04] Production.INFO: Account Balance Start. [2025-03-03 10:51:04] Production.INFO: CreateAllLog Start [2025-03-03 10:51:04] Production.INFO: 117 [2025-03-03 10:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:04] Production.INFO: ==9958== Releasing lock... [2025-03-03 10:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:51:05] Production.ERROR: done [2025-03-03 10:51:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-13 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-14 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.ERROR: done [2025-03-03 10:51:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:51:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:51:05] Production.INFO: Total Charge 0 [2025-03-03 10:51:05] Production.INFO: CreateAllLog End [2025-03-03 10:51:06] Production.INFO: Account Balance End. [2025-03-03 10:51:06] Production.ERROR: CronJobId end 12 [2025-03-03 10:51:06] Production.INFO: ==9962== Releasing lock... [2025-03-03 10:51:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:51:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:51:13] Production.ERROR: CronJobId end10 [2025-03-03 10:51:13] Production.INFO: ==9960== Releasing lock... [2025-03-03 10:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:51:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:51:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:51:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:51:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:51:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:51:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:51:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:51:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:51:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:51:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:51:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:51:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:51:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:51:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:51:16] Production.INFO: call_cost start [2025-03-03 10:51:16] Production.INFO: call_cost end [2025-03-03 10:51:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:51:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:51:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:51:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:51:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:51:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:51:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:51:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:51:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:51:16] Production.INFO: ==9956== Releasing lock... [2025-03-03 10:51:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:51:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:51:17] Production.INFO: count ==409 [2025-03-03 10:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597971', 'tblTempUsageDetail_20' ) start [2025-03-03 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597971', 'tblTempUsageDetail_20' ) end [2025-03-03 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597971', 'tblTempVendorCDR_20' ) start [2025-03-03 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597971', 'tblTempVendorCDR_20' ) end [2025-03-03 10:51:17] Production.INFO: ProcessCDR(1,14597971,1,1,2) [2025-03-03 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597971', 'tblTempUsageDetail_20' ) start [2025-03-03 10:51:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597971', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:51:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:51:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:51:26] Production.INFO: ==9964== Releasing lock... [2025-03-03 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:51:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:52:01] Production.INFO: ==10034== Lock acquired, processing the job... [2025-03-03 15:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:52:01] Production.INFO: neon service started [2025-03-03 15:52:01] Production.INFO: neon service started [2025-03-03 15:52:01] Production.INFO: ==10034== Releasing lock... [2025-03-03 15:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:52:02] Production.INFO: ==10036== Lock acquired, processing the job... [2025-03-03 10:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:52:02] Production.INFO: ==10038== Lock acquired, processing the job... [2025-03-03 15:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:52:02] Production.INFO: ==10038== Releasing lock... [2025-03-03 15:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:52:02] Production.INFO: ==10036== Releasing lock... [2025-03-03 10:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:52:03] Production.INFO: ==10047== Lock acquired, processing the job... [2025-03-03 10:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:52:03] Production.INFO: Account Balance Start. [2025-03-03 10:52:03] Production.INFO: CreateAllLog Start [2025-03-03 10:52:03] Production.INFO: 117 [2025-03-03 10:52:03] Production.INFO: Date 2025-02-08 [2025-03-03 10:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:03] Production.INFO: ==10049== Lock acquired, processing the job... [2025-03-03 10:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:52:03] Production.INFO: Date 2025-02-09 [2025-03-03 10:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:03] Production.INFO: Date 2025-02-10 [2025-03-03 10:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:52:04] Production.INFO: ==10041== Lock acquired, processing the job... [2025-03-03 10:52:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:52:04] Production.INFO: ==10043== Lock acquired, processing the job... [2025-03-03 10:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: ==10051== Lock acquired, processing the job... [2025-03-03 10:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: ==10045== Lock acquired, processing the job... [2025-03-03 10:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: count ==13 [2025-03-03 10:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:52:04] Production.INFO: count ==21 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597973') start [2025-03-03 10:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: done [2025-03-03 10:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597973') end [2025-03-03 10:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:52:04] Production.INFO: 1 [2025-03-03 10:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: done [2025-03-03 10:52:04] Production.INFO: ==10051== Releasing lock... [2025-03-03 10:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.INFO: ==10043== Releasing lock... [2025-03-03 10:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:52:04] Production.INFO: Date 2025-02-27 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:52:04] Production.INFO: Date 2025-02-28 [2025-03-03 10:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:52:05] Production.INFO: Total Charge 0 [2025-03-03 10:52:05] Production.INFO: CreateAllLog End [2025-03-03 10:52:05] Production.INFO: Account Balance End. [2025-03-03 10:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:52:05] Production.INFO: ==10047== Releasing lock... [2025-03-03 10:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:52:12] Production.ERROR: CronJobId end10 [2025-03-03 10:52:12] Production.INFO: ==10045== Releasing lock... [2025-03-03 10:52:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:52:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:52:15] Production.INFO: call_cost start [2025-03-03 10:52:15] Production.INFO: call_cost end [2025-03-03 10:52:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:52:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:52:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:52:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:52:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:52:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:52:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:52:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:52:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:52:15] Production.INFO: ==10041== Releasing lock... [2025-03-03 10:52:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:52:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:52:17] Production.INFO: count ==409 [2025-03-03 10:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597976', 'tblTempUsageDetail_20' ) start [2025-03-03 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597976', 'tblTempUsageDetail_20' ) end [2025-03-03 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597976', 'tblTempVendorCDR_20' ) start [2025-03-03 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597976', 'tblTempVendorCDR_20' ) end [2025-03-03 10:52:17] Production.INFO: ProcessCDR(1,14597976,1,1,2) [2025-03-03 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597976', 'tblTempUsageDetail_20' ) start [2025-03-03 10:52:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597976', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:52:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:52:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:52:25] Production.INFO: ==10049== Releasing lock... [2025-03-03 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:52:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:53:02] Production.INFO: ==10126== Lock acquired, processing the job... [2025-03-03 15:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:53:02] Production.INFO: neon service started [2025-03-03 15:53:02] Production.INFO: neon service started [2025-03-03 15:53:02] Production.INFO: ==10126== Releasing lock... [2025-03-03 15:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:53:02] Production.INFO: ==10132== Lock acquired, processing the job... [2025-03-03 15:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:53:02] Production.INFO: ==10132== Releasing lock... [2025-03-03 15:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:53:02] Production.INFO: ==10128== Lock acquired, processing the job... [2025-03-03 10:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:53:03] Production.INFO: ==10128== Releasing lock... [2025-03-03 10:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:53:04] Production.INFO: ==10139== Lock acquired, processing the job... [2025-03-03 10:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:53:04] Production.INFO: ==10145== Lock acquired, processing the job... [2025-03-03 10:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:53:04] Production.INFO: count ==13 [2025-03-03 10:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:53:04] Production.INFO: count ==21 [2025-03-03 10:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597977') start [2025-03-03 10:53:04] Production.INFO: ==10135== Lock acquired, processing the job... [2025-03-03 10:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:53:04] Production.INFO: ==10137== Lock acquired, processing the job... [2025-03-03 10:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:53:04] Production.INFO: ==10141== Lock acquired, processing the job... [2025-03-03 10:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597977') end [2025-03-03 10:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:53:04] Production.INFO: 1 [2025-03-03 10:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:53:04] Production.INFO: ==10143== Lock acquired, processing the job... [2025-03-03 10:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:53:04] Production.INFO: ==10145== Releasing lock... [2025-03-03 10:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:53:04] Production.INFO: Account Balance Start. [2025-03-03 10:53:04] Production.INFO: CreateAllLog Start [2025-03-03 10:53:04] Production.INFO: 117 [2025-03-03 10:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:04] Production.INFO: ==10137== Releasing lock... [2025-03-03 10:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.ERROR: done [2025-03-03 10:53:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-15 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-16 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-17 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.ERROR: done [2025-03-03 10:53:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:53:05] Production.INFO: Total Charge 0 [2025-03-03 10:53:05] Production.INFO: CreateAllLog End [2025-03-03 10:53:05] Production.INFO: Account Balance End. [2025-03-03 10:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:53:05] Production.INFO: ==10141== Releasing lock... [2025-03-03 10:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:53:13] Production.ERROR: CronJobId end10 [2025-03-03 10:53:13] Production.INFO: ==10139== Releasing lock... [2025-03-03 10:53:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:53:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:53:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:53:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:53:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:53:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:53:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:53:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:53:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:53:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:53:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:53:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:53:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:53:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:53:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:53:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:53:17] Production.INFO: call_cost start [2025-03-03 10:53:17] Production.INFO: call_cost end [2025-03-03 10:53:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:53:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:53:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:53:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:53:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:53:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:53:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:53:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:53:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:53:17] Production.INFO: ==10135== Releasing lock... [2025-03-03 10:53:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:53:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:53:17] Production.INFO: count ==409 [2025-03-03 10:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597981', 'tblTempUsageDetail_20' ) start [2025-03-03 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597981', 'tblTempUsageDetail_20' ) end [2025-03-03 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597981', 'tblTempVendorCDR_20' ) start [2025-03-03 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597981', 'tblTempVendorCDR_20' ) end [2025-03-03 10:53:17] Production.INFO: ProcessCDR(1,14597981,1,1,2) [2025-03-03 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597981', 'tblTempUsageDetail_20' ) start [2025-03-03 10:53:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597981', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:53:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:53:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:53:26] Production.INFO: ==10143== Releasing lock... [2025-03-03 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:53:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:54:01] Production.INFO: ==10214== Lock acquired, processing the job... [2025-03-03 15:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:54:01] Production.INFO: neon service started [2025-03-03 15:54:01] Production.INFO: neon service started [2025-03-03 15:54:01] Production.INFO: ==10214== Releasing lock... [2025-03-03 15:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:54:02] Production.INFO: ==10216== Lock acquired, processing the job... [2025-03-03 10:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:54:02] Production.INFO: ==10216== Releasing lock... [2025-03-03 10:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:54:02] Production.INFO: ==10218== Lock acquired, processing the job... [2025-03-03 15:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:54:02] Production.INFO: ==10218== Releasing lock... [2025-03-03 15:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:54:03] Production.INFO: ==10221== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:54:03] Production.INFO: ==10225== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:54:03] Production.INFO: ==10229== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:54:03] Production.INFO: ==10223== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:54:03] Production.INFO: ==10227== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:54:03] Production.INFO: ==10231== Lock acquired, processing the job... [2025-03-03 10:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:54:04] Production.INFO: Account Balance Start. [2025-03-03 10:54:04] Production.INFO: CreateAllLog Start [2025-03-03 10:54:04] Production.INFO: 117 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: ==10223== Releasing lock... [2025-03-03 10:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:54:04] Production.ERROR: done [2025-03-03 10:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:54:04] Production.INFO: count ==13 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:54:04] Production.INFO: count ==21 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597985') start [2025-03-03 10:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.ERROR: done [2025-03-03 10:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597985') end [2025-03-03 10:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:54:04] Production.INFO: 1 [2025-03-03 10:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: ==10231== Releasing lock... [2025-03-03 10:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:54:05] Production.INFO: Total Charge 0 [2025-03-03 10:54:05] Production.INFO: CreateAllLog End [2025-03-03 10:54:05] Production.INFO: Account Balance End. [2025-03-03 10:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:54:05] Production.INFO: ==10227== Releasing lock... [2025-03-03 10:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:54:13] Production.ERROR: CronJobId end10 [2025-03-03 10:54:13] Production.INFO: ==10225== Releasing lock... [2025-03-03 10:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:54:16] Production.INFO: call_cost start [2025-03-03 10:54:16] Production.INFO: call_cost end [2025-03-03 10:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:54:16] Production.INFO: ==10221== Releasing lock... [2025-03-03 10:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:54:17] Production.INFO: count ==409 [2025-03-03 10:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597986', 'tblTempUsageDetail_20' ) start [2025-03-03 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597986', 'tblTempUsageDetail_20' ) end [2025-03-03 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597986', 'tblTempVendorCDR_20' ) start [2025-03-03 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597986', 'tblTempVendorCDR_20' ) end [2025-03-03 10:54:17] Production.INFO: ProcessCDR(1,14597986,1,1,2) [2025-03-03 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597986', 'tblTempUsageDetail_20' ) start [2025-03-03 10:54:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597986', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:54:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:54:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:54:26] Production.INFO: ==10229== Releasing lock... [2025-03-03 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:54:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:55:02] Production.INFO: ==10341== Lock acquired, processing the job... [2025-03-03 15:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:55:02] Production.INFO: neon service started [2025-03-03 15:55:02] Production.INFO: neon service started [2025-03-03 15:55:02] Production.INFO: ==10341== Releasing lock... [2025-03-03 15:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:55:02] Production.INFO: ==10343== Lock acquired, processing the job... [2025-03-03 10:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:55:02] Production.INFO: ==10343== Releasing lock... [2025-03-03 10:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:55:03] Production.INFO: ==10345== Lock acquired, processing the job... [2025-03-03 15:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:55:03] Production.INFO: ==10345== Releasing lock... [2025-03-03 15:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:55:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:55:03] Production.INFO: ==10353== Lock acquired, processing the job... [2025-03-03 10:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:55:03] Production.INFO: ==10357== Lock acquired, processing the job... [2025-03-03 10:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:55:04] Production.INFO: Account Balance Start. [2025-03-03 10:55:04] Production.INFO: CreateAllLog Start [2025-03-03 10:55:04] Production.INFO: 117 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:55:04] Production.INFO: count ==13 [2025-03-03 10:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:55:04] Production.INFO: count ==21 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597987') start [2025-03-03 10:55:04] Production.INFO: ==10349== Lock acquired, processing the job... [2025-03-03 10:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: ==10351== Lock acquired, processing the job... [2025-03-03 10:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:55:04] Production.INFO: ==10347== Lock acquired, processing the job... [2025-03-03 10:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597987') end [2025-03-03 10:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:55:04] Production.INFO: 1 [2025-03-03 10:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: ==10355== Lock acquired, processing the job... [2025-03-03 10:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:55:04] Production.INFO: ==10357== Releasing lock... [2025-03-03 10:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: ==10349== Releasing lock... [2025-03-03 10:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.ERROR: done [2025-03-03 10:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.ERROR: done [2025-03-03 10:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:55:05] Production.INFO: Total Charge 0 [2025-03-03 10:55:05] Production.INFO: CreateAllLog End [2025-03-03 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:55:05] Production.INFO: Account Balance End. [2025-03-03 10:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:55:05] Production.INFO: ==10353== Releasing lock... [2025-03-03 10:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:55:13] Production.ERROR: CronJobId end10 [2025-03-03 10:55:13] Production.INFO: ==10351== Releasing lock... [2025-03-03 10:55:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:55:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:55:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:55:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:55:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:55:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:55:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:55:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:55:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:55:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:55:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:55:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:55:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:55:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:55:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:55:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:55:16] Production.INFO: call_cost start [2025-03-03 10:55:16] Production.INFO: call_cost end [2025-03-03 10:55:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:55:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:55:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:55:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:55:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:55:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:55:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:55:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:55:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:55:16] Production.INFO: ==10347== Releasing lock... [2025-03-03 10:55:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:55:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:55:17] Production.INFO: count ==409 [2025-03-03 10:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597991', 'tblTempUsageDetail_20' ) start [2025-03-03 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597991', 'tblTempUsageDetail_20' ) end [2025-03-03 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597991', 'tblTempVendorCDR_20' ) start [2025-03-03 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597991', 'tblTempVendorCDR_20' ) end [2025-03-03 10:55:17] Production.INFO: ProcessCDR(1,14597991,1,1,2) [2025-03-03 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597991', 'tblTempUsageDetail_20' ) start [2025-03-03 10:55:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597991', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:55:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:55:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:55:26] Production.INFO: ==10355== Releasing lock... [2025-03-03 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:55:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:56:01] Production.INFO: ==10425== Lock acquired, processing the job... [2025-03-03 15:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:56:01] Production.INFO: neon service started [2025-03-03 15:56:01] Production.INFO: neon service started [2025-03-03 15:56:01] Production.INFO: ==10425== Releasing lock... [2025-03-03 15:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:56:02] Production.INFO: ==10427== Lock acquired, processing the job... [2025-03-03 10:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:56:02] Production.INFO: ==10429== Lock acquired, processing the job... [2025-03-03 15:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:56:02] Production.INFO: ==10429== Releasing lock... [2025-03-03 15:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 10:56:02] Production.INFO: ==10427== Releasing lock... [2025-03-03 10:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:56:03] Production.INFO: ==10436== Lock acquired, processing the job... [2025-03-03 10:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:56:03] Production.INFO: ==10440== Lock acquired, processing the job... [2025-03-03 10:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:56:03] Production.INFO: Account Balance Start. [2025-03-03 10:56:03] Production.INFO: CreateAllLog Start [2025-03-03 10:56:04] Production.INFO: 117 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:56:04] Production.INFO: ==10434== Lock acquired, processing the job... [2025-03-03 10:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: ==10438== Lock acquired, processing the job... [2025-03-03 10:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: ==10442== Lock acquired, processing the job... [2025-03-03 10:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:56:04] Production.INFO: ==10436== Releasing lock... [2025-03-03 10:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: ==10444== Lock acquired, processing the job... [2025-03-03 10:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:56:04] Production.INFO: count ==13 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:56:04] Production.INFO: count ==21 [2025-03-03 10:56:04] Production.ERROR: done [2025-03-03 10:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597995') start [2025-03-03 10:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.ERROR: done [2025-03-03 10:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14597995') end [2025-03-03 10:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:56:04] Production.INFO: 1 [2025-03-03 10:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 10:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:04] Production.INFO: ==10444== Releasing lock... [2025-03-03 10:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:56:05] Production.INFO: Total Charge 0 [2025-03-03 10:56:05] Production.INFO: CreateAllLog End [2025-03-03 10:56:05] Production.INFO: Account Balance End. [2025-03-03 10:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:56:05] Production.INFO: ==10440== Releasing lock... [2025-03-03 10:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:56:12] Production.ERROR: CronJobId end10 [2025-03-03 10:56:12] Production.INFO: ==10438== Releasing lock... [2025-03-03 10:56:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:56:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:56:16] Production.INFO: call_cost start [2025-03-03 10:56:16] Production.INFO: call_cost end [2025-03-03 10:56:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:56:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:56:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:56:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:56:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:56:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:56:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:56:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:56:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:56:16] Production.INFO: ==10434== Releasing lock... [2025-03-03 10:56:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:56:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:56:17] Production.INFO: count ==409 [2025-03-03 10:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597996', 'tblTempUsageDetail_20' ) start [2025-03-03 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14597996', 'tblTempUsageDetail_20' ) end [2025-03-03 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597996', 'tblTempVendorCDR_20' ) start [2025-03-03 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14597996', 'tblTempVendorCDR_20' ) end [2025-03-03 10:56:17] Production.INFO: ProcessCDR(1,14597996,1,1,2) [2025-03-03 10:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14597996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14597996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14597996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14597996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14597996', 'tblTempUsageDetail_20' ) start [2025-03-03 10:56:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14597996', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:56:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:56:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:56:26] Production.INFO: ==10442== Releasing lock... [2025-03-03 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:56:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:57:02] Production.INFO: ==10513== Lock acquired, processing the job... [2025-03-03 15:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:57:02] Production.INFO: neon service started [2025-03-03 15:57:02] Production.INFO: neon service started [2025-03-03 15:57:02] Production.INFO: ==10513== Releasing lock... [2025-03-03 15:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:57:02] Production.INFO: ==10515== Lock acquired, processing the job... [2025-03-03 10:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:57:02] Production.INFO: ==10517== Lock acquired, processing the job... [2025-03-03 15:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 10:57:02] Production.INFO: ==10515== Releasing lock... [2025-03-03 10:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:57:03] Production.INFO: ==10517== Releasing lock... [2025-03-03 15:57:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:57:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:57:03] Production.INFO: ==10522== Lock acquired, processing the job... [2025-03-03 10:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:57:03] Production.INFO: ==10520== Lock acquired, processing the job... [2025-03-03 10:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:57:03] Production.INFO: ==10524== Lock acquired, processing the job... [2025-03-03 10:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:57:04] Production.INFO: ==10530== Lock acquired, processing the job... [2025-03-03 10:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:57:04] Production.INFO: ==10526== Lock acquired, processing the job... [2025-03-03 10:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:57:04] Production.INFO: ==10522== Releasing lock... [2025-03-03 10:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:57:04] Production.INFO: ==10528== Lock acquired, processing the job... [2025-03-03 10:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:57:04] Production.INFO: Account Balance Start. [2025-03-03 10:57:04] Production.INFO: CreateAllLog Start [2025-03-03 10:57:04] Production.INFO: 117 [2025-03-03 10:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: count ==13 [2025-03-03 10:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:57:04] Production.INFO: count ==21 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598000') start [2025-03-03 10:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598000') end [2025-03-03 10:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:57:04] Production.INFO: 1 [2025-03-03 10:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: ==10530== Releasing lock... [2025-03-03 10:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:57:04] Production.ERROR: done [2025-03-03 10:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.ERROR: done [2025-03-03 10:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:57:05] Production.INFO: Total Charge 0 [2025-03-03 10:57:05] Production.INFO: CreateAllLog End [2025-03-03 10:57:05] Production.INFO: Account Balance End. [2025-03-03 10:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:57:05] Production.INFO: ==10526== Releasing lock... [2025-03-03 10:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:57:13] Production.ERROR: CronJobId end10 [2025-03-03 10:57:13] Production.INFO: ==10524== Releasing lock... [2025-03-03 10:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:57:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:57:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:57:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:57:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:57:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:57:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:57:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:57:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:57:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:57:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:57:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:57:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:57:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:57:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:57:16] Production.INFO: call_cost start [2025-03-03 10:57:16] Production.INFO: call_cost end [2025-03-03 10:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:57:16] Production.INFO: ==10520== Releasing lock... [2025-03-03 10:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:57:17] Production.INFO: count ==409 [2025-03-03 10:57:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598001', 'tblTempUsageDetail_20' ) start [2025-03-03 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598001', 'tblTempUsageDetail_20' ) end [2025-03-03 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598001', 'tblTempVendorCDR_20' ) start [2025-03-03 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598001', 'tblTempVendorCDR_20' ) end [2025-03-03 10:57:17] Production.INFO: ProcessCDR(1,14598001,1,1,2) [2025-03-03 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598001', 'tblTempUsageDetail_20' ) start [2025-03-03 10:57:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598001', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:57:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:57:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:57:26] Production.INFO: ==10528== Releasing lock... [2025-03-03 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:57:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:58:01] Production.INFO: ==10600== Lock acquired, processing the job... [2025-03-03 15:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:58:01] Production.INFO: neon service started [2025-03-03 15:58:01] Production.INFO: neon service started [2025-03-03 15:58:01] Production.INFO: ==10600== Releasing lock... [2025-03-03 15:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 10:58:02] Production.INFO: ==10602== Lock acquired, processing the job... [2025-03-03 10:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:58:02] Production.INFO: ==10604== Lock acquired, processing the job... [2025-03-03 15:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:58:02] Production.INFO: ==10604== Releasing lock... [2025-03-03 15:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:58:02] Production.INFO: ==10602== Releasing lock... [2025-03-03 10:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:58:03] Production.INFO: ==10607== Lock acquired, processing the job... [2025-03-03 10:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:58:03] Production.INFO: ==10609== Lock acquired, processing the job... [2025-03-03 10:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:58:03] Production.INFO: ==10613== Lock acquired, processing the job... [2025-03-03 10:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:58:04] Production.INFO: Account Balance Start. [2025-03-03 10:58:04] Production.INFO: CreateAllLog Start [2025-03-03 10:58:04] Production.INFO: 117 [2025-03-03 10:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.INFO: ==10611== Lock acquired, processing the job... [2025-03-03 10:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:58:04] Production.INFO: ==10609== Releasing lock... [2025-03-03 10:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:58:04] Production.INFO: ==10615== Lock acquired, processing the job... [2025-03-03 10:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.INFO: ==10617== Lock acquired, processing the job... [2025-03-03 10:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.INFO: count ==13 [2025-03-03 10:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:58:04] Production.INFO: count ==21 [2025-03-03 10:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598005') start [2025-03-03 10:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598005') end [2025-03-03 10:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:58:04] Production.INFO: 1 [2025-03-03 10:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:58:04] Production.INFO: ==10617== Releasing lock... [2025-03-03 10:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:58:04] Production.ERROR: done [2025-03-03 10:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-18 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.ERROR: done [2025-03-03 10:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:58:05] Production.INFO: Total Charge 0 [2025-03-03 10:58:05] Production.INFO: CreateAllLog End [2025-03-03 10:58:05] Production.INFO: Account Balance End. [2025-03-03 10:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:58:05] Production.INFO: ==10613== Releasing lock... [2025-03-03 10:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:58:13] Production.ERROR: CronJobId end10 [2025-03-03 10:58:13] Production.INFO: ==10611== Releasing lock... [2025-03-03 10:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:58:16] Production.INFO: call_cost start [2025-03-03 10:58:16] Production.INFO: call_cost end [2025-03-03 10:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:58:16] Production.INFO: ==10607== Releasing lock... [2025-03-03 10:58:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:58:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:58:17] Production.INFO: count ==409 [2025-03-03 10:58:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598006', 'tblTempUsageDetail_20' ) start [2025-03-03 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598006', 'tblTempUsageDetail_20' ) end [2025-03-03 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598006', 'tblTempVendorCDR_20' ) start [2025-03-03 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598006', 'tblTempVendorCDR_20' ) end [2025-03-03 10:58:17] Production.INFO: ProcessCDR(1,14598006,1,1,2) [2025-03-03 10:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598006', 'tblTempUsageDetail_20' ) start [2025-03-03 10:58:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598006', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:58:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:58:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:58:26] Production.INFO: ==10615== Releasing lock... [2025-03-03 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:58:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 15:59:02] Production.INFO: ==10691== Lock acquired, processing the job... [2025-03-03 15:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 15:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 15:59:02] Production.INFO: neon service started [2025-03-03 15:59:02] Production.INFO: neon service started [2025-03-03 15:59:02] Production.INFO: ==10691== Releasing lock... [2025-03-03 15:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 15:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:59:02] Production.INFO: ==10695== Lock acquired, processing the job... [2025-03-03 15:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:59:02] Production.INFO: ==10695== Releasing lock... [2025-03-03 15:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 15:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 10:59:02] Production.INFO: ==10693== Lock acquired, processing the job... [2025-03-03 10:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 10:59:03] Production.INFO: ==10693== Releasing lock... [2025-03-03 10:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 10:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 10:59:04] Production.INFO: ==10704== Lock acquired, processing the job... [2025-03-03 10:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 10:59:04] Production.INFO: Account Balance Start. [2025-03-03 10:59:04] Production.INFO: CreateAllLog Start [2025-03-03 10:59:04] Production.INFO: 117 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 10:59:04] Production.INFO: ==10698== Lock acquired, processing the job... [2025-03-03 10:59:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 10:59:04] Production.INFO: ==10708== Lock acquired, processing the job... [2025-03-03 10:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: ==10700== Lock acquired, processing the job... [2025-03-03 10:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 10:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 10:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: count ==13 [2025-03-03 10:59:04] Production.INFO: ==10702== Lock acquired, processing the job... [2025-03-03 10:59:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 10:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 10:59:04] Production.INFO: count ==21 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: ==10706== Lock acquired, processing the job... [2025-03-03 10:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 10:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598008') start [2025-03-03 10:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 10:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 10:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 10:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 10:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598008') end [2025-03-03 10:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 10:59:04] Production.INFO: 1 [2025-03-03 10:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 10:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.INFO: ==10708== Releasing lock... [2025-03-03 10:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 10:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 10:59:04] Production.INFO: ==10700== Releasing lock... [2025-03-03 10:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 10:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 10:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:04] Production.ERROR: done [2025-03-03 10:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 10:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 10:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.ERROR: done [2025-03-03 10:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 10:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 10:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 10:59:05] Production.INFO: Total Charge 0 [2025-03-03 10:59:05] Production.INFO: CreateAllLog End [2025-03-03 10:59:05] Production.INFO: Account Balance End. [2025-03-03 10:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 10:59:05] Production.INFO: ==10704== Releasing lock... [2025-03-03 10:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 10:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 10:59:14] Production.ERROR: CronJobId end10 [2025-03-03 10:59:14] Production.INFO: ==10702== Releasing lock... [2025-03-03 10:59:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 10:59:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 10:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 10:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 10:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 10:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 10:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 10:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 10:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 10:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 10:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 10:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 10:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 10:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 10:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 10:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 10:59:16] Production.INFO: call_cost start [2025-03-03 10:59:16] Production.INFO: call_cost end [2025-03-03 10:59:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 10:59:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 10:59:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 10:59:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 10:59:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 10:59:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 10:59:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 10:59:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 10:59:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 10:59:16] Production.INFO: ==10698== Releasing lock... [2025-03-03 10:59:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 10:59:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 10:59:17] Production.INFO: count ==409 [2025-03-03 10:59:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598011', 'tblTempUsageDetail_20' ) start [2025-03-03 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598011', 'tblTempUsageDetail_20' ) end [2025-03-03 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598011', 'tblTempVendorCDR_20' ) start [2025-03-03 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598011', 'tblTempVendorCDR_20' ) end [2025-03-03 10:59:17] Production.INFO: ProcessCDR(1,14598011,1,1,2) [2025-03-03 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598011', 'tblTempUsageDetail_20' ) start [2025-03-03 10:59:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598011', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 10:59:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 10:59:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 10:59:26] Production.INFO: ==10706== Releasing lock... [2025-03-03 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 10:59:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:00:01] Production.INFO: ==10778== Lock acquired, processing the job... [2025-03-03 16:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:00:01] Production.INFO: neon service started [2025-03-03 16:00:01] Production.INFO: neon service started [2025-03-03 16:00:01] Production.INFO: ==10778== Releasing lock... [2025-03-03 16:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:00:02] Production.INFO: ==10780== Lock acquired, processing the job... [2025-03-03 11:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:00:02] Production.INFO: ==10782== Lock acquired, processing the job... [2025-03-03 16:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:00:02] Production.INFO: ==10782== Releasing lock... [2025-03-03 16:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:00:03] Production.INFO: ==10780== Releasing lock... [2025-03-03 11:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:00:04] Production.INFO: ==10787== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:00:04] Production.INFO: ==10795== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:00:04] Production.INFO: ==10785== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 11:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 11:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:00:04] Production.ERROR: CronJob PID - 10787 [2025-03-03 11:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 11:00:04] Production.ERROR: CronJob ID - 5 [2025-03-03 11:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:00:00 [2025-03-03 11:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:00:04] Production.ERROR: CronJob PID - 10795 [2025-03-03 11:00:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 11:00:04] Production.ERROR: CronJob ID - 16 [2025-03-03 11:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:00:00 [2025-03-03 11:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:00:04] Production.INFO: ==10797== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 11:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 11:00:04] Production.INFO: ==10785== Releasing lock... [2025-03-03 11:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 11:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 11:00:04] Production.INFO: ==10789== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:00:04] Production.INFO: ==10791== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:00:04] Production.INFO: ==10793== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:00:04] Production.INFO: ==10799== Lock acquired, processing the job... [2025-03-03 11:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:00:04] Production.INFO: Account Balance Start. [2025-03-03 11:00:04] Production.INFO: CreateAllLog Start [2025-03-03 11:00:04] Production.INFO: 117 [2025-03-03 11:00:04] Production.ERROR: done [2025-03-03 11:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:04] Production.INFO: count ==13 [2025-03-03 11:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:00:05] Production.INFO: count ==21 [2025-03-03 11:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598015') start [2025-03-03 11:00:05] Production.INFO: Date 2025-02-09 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.ERROR: done [2025-03-03 11:00:05] Production.ERROR: done [2025-03-03 11:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 11:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598016', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 11:00:05] Production.INFO: ==10789== Releasing lock... [2025-03-03 11:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598015') end [2025-03-03 11:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:00:05] Production.INFO: 1 [2025-03-03 11:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: ==10799== Releasing lock... [2025-03-03 11:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:00:05] Production.INFO: Total Charge 0 [2025-03-03 11:00:05] Production.INFO: CreateAllLog End [2025-03-03 11:00:06] Production.INFO: Account Balance End. [2025-03-03 11:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:00:06] Production.INFO: ==10793== Releasing lock... [2025-03-03 11:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598016', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 11:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 11:00:10] Production.INFO: ProcessCDR(1,14598016,1,1,2) [2025-03-03 11:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598016,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598016,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:00:10] Production.INFO: ==10797== Releasing lock... [2025-03-03 11:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 11:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 11:00:15] Production.ERROR: CronJobId end10 [2025-03-03 11:00:15] Production.INFO: ==10791== Releasing lock... [2025-03-03 11:00:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:00:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:00:17] Production.INFO: count ==409 [2025-03-03 11:00:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598017', 'tblTempUsageDetail_20' ) start [2025-03-03 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598017', 'tblTempUsageDetail_20' ) end [2025-03-03 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598017', 'tblTempVendorCDR_20' ) start [2025-03-03 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598017', 'tblTempVendorCDR_20' ) end [2025-03-03 11:00:17] Production.INFO: ProcessCDR(1,14598017,1,1,2) [2025-03-03 11:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:00:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:00:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:00:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:00:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:00:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:00:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:00:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:00:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:00:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:00:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:00:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:00:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:00:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:00:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:00:18] Production.INFO: call_cost start [2025-03-03 11:00:18] Production.INFO: call_cost end [2025-03-03 11:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:00:18] Production.INFO: ==10787== Releasing lock... [2025-03-03 11:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598017', 'tblTempUsageDetail_20' ) start [2025-03-03 11:00:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598017', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:00:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:00:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:00:26] Production.INFO: ==10795== Releasing lock... [2025-03-03 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:00:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:01:02] Production.INFO: ==10876== Lock acquired, processing the job... [2025-03-03 16:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:01:02] Production.INFO: neon service started [2025-03-03 16:01:02] Production.INFO: neon service started [2025-03-03 16:01:02] Production.INFO: ==10876== Releasing lock... [2025-03-03 16:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:01:02] Production.INFO: ==10883== Lock acquired, processing the job... [2025-03-03 11:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:01:02] Production.INFO: ==10883== Releasing lock... [2025-03-03 11:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:01:03] Production.INFO: ==10885== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:01:03] Production.INFO: ==10885== Releasing lock... [2025-03-03 16:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:01:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:01:04] Production.INFO: ==10894== Lock acquired, processing the job... [2025-03-03 11:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:01:04] Production.INFO: ==10898== Lock acquired, processing the job... [2025-03-03 11:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:01:04] Production.INFO: Account Balance Start. [2025-03-03 11:01:04] Production.INFO: CreateAllLog Start [2025-03-03 11:01:04] Production.INFO: 117 [2025-03-03 11:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:01:04] Production.INFO: ==10888== Lock acquired, processing the job... [2025-03-03 11:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: count ==13 [2025-03-03 11:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:01:04] Production.INFO: count ==21 [2025-03-03 11:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598019') start [2025-03-03 11:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: ==10890== Lock acquired, processing the job... [2025-03-03 11:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: ==10892== Lock acquired, processing the job... [2025-03-03 11:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598019') end [2025-03-03 11:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:01:04] Production.INFO: 1 [2025-03-03 11:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: ==10898== Releasing lock... [2025-03-03 11:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: ==10896== Lock acquired, processing the job... [2025-03-03 11:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:04] Production.INFO: ==10890== Releasing lock... [2025-03-03 11:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.ERROR: done [2025-03-03 11:01:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.ERROR: done [2025-03-03 11:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:01:05] Production.INFO: Total Charge 0 [2025-03-03 11:01:05] Production.INFO: CreateAllLog End [2025-03-03 11:01:05] Production.INFO: Account Balance End. [2025-03-03 11:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:01:05] Production.INFO: ==10894== Releasing lock... [2025-03-03 11:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:01:13] Production.ERROR: CronJobId end10 [2025-03-03 11:01:13] Production.INFO: ==10892== Releasing lock... [2025-03-03 11:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:01:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:01:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:01:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:01:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:01:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:01:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:01:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:01:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:01:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:01:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:01:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:01:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:01:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:01:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:01:17] Production.INFO: call_cost start [2025-03-03 11:01:17] Production.INFO: call_cost end [2025-03-03 11:01:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:01:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:01:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:01:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:01:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:01:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:01:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:01:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:01:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:01:17] Production.INFO: ==10888== Releasing lock... [2025-03-03 11:01:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:01:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:01:17] Production.INFO: count ==409 [2025-03-03 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598022', 'tblTempUsageDetail_20' ) start [2025-03-03 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598022', 'tblTempUsageDetail_20' ) end [2025-03-03 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598022', 'tblTempVendorCDR_20' ) start [2025-03-03 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598022', 'tblTempVendorCDR_20' ) end [2025-03-03 11:01:18] Production.INFO: ProcessCDR(1,14598022,1,1,2) [2025-03-03 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598022', 'tblTempUsageDetail_20' ) start [2025-03-03 11:01:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598022', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:01:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:01:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:01:26] Production.INFO: ==10896== Releasing lock... [2025-03-03 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:01:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:02:01] Production.INFO: ==11046== Lock acquired, processing the job... [2025-03-03 16:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:02:01] Production.INFO: neon service started [2025-03-03 16:02:01] Production.INFO: neon service started [2025-03-03 16:02:01] Production.INFO: ==11046== Releasing lock... [2025-03-03 16:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:02:02] Production.INFO: ==11048== Lock acquired, processing the job... [2025-03-03 11:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:02:02] Production.INFO: ==11048== Releasing lock... [2025-03-03 11:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:02:02] Production.INFO: ==11050== Lock acquired, processing the job... [2025-03-03 16:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:02:02] Production.INFO: ==11050== Releasing lock... [2025-03-03 16:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:02:03] Production.INFO: ==11061== Lock acquired, processing the job... [2025-03-03 11:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:02:03] Production.INFO: ==11063== Lock acquired, processing the job... [2025-03-03 11:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:02:03] Production.INFO: ==11053== Lock acquired, processing the job... [2025-03-03 11:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:02:03] Production.INFO: count ==13 [2025-03-03 11:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:02:03] Production.INFO: count ==21 [2025-03-03 11:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598023') start [2025-03-03 11:02:04] Production.INFO: ==11057== Lock acquired, processing the job... [2025-03-03 11:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:02:04] Production.INFO: ==11055== Lock acquired, processing the job... [2025-03-03 11:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:02:04] Production.INFO: ==11059== Lock acquired, processing the job... [2025-03-03 11:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:02:04] Production.ERROR: done [2025-03-03 11:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598023') end [2025-03-03 11:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:02:04] Production.INFO: 1 [2025-03-03 11:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:02:04] Production.INFO: Account Balance Start. [2025-03-03 11:02:04] Production.INFO: CreateAllLog Start [2025-03-03 11:02:04] Production.INFO: 117 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: ==11063== Releasing lock... [2025-03-03 11:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.ERROR: done [2025-03-03 11:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: ==11055== Releasing lock... [2025-03-03 11:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-02-28 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:04] Production.INFO: Date 2025-03-01 [2025-03-03 11:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:02:05] Production.INFO: Total Charge 0 [2025-03-03 11:02:05] Production.INFO: CreateAllLog End [2025-03-03 11:02:05] Production.INFO: Account Balance End. [2025-03-03 11:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:02:05] Production.INFO: ==11059== Releasing lock... [2025-03-03 11:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:02:13] Production.ERROR: CronJobId end10 [2025-03-03 11:02:13] Production.INFO: ==11057== Releasing lock... [2025-03-03 11:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:02:16] Production.INFO: call_cost start [2025-03-03 11:02:16] Production.INFO: call_cost end [2025-03-03 11:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:02:16] Production.INFO: ==11053== Releasing lock... [2025-03-03 11:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:02:17] Production.INFO: count ==409 [2025-03-03 11:02:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598027', 'tblTempUsageDetail_20' ) start [2025-03-03 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598027', 'tblTempUsageDetail_20' ) end [2025-03-03 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598027', 'tblTempVendorCDR_20' ) start [2025-03-03 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598027', 'tblTempVendorCDR_20' ) end [2025-03-03 11:02:17] Production.INFO: ProcessCDR(1,14598027,1,1,2) [2025-03-03 11:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598027', 'tblTempUsageDetail_20' ) start [2025-03-03 11:02:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598027', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:02:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:02:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:02:26] Production.INFO: ==11061== Releasing lock... [2025-03-03 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:02:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:03:02] Production.INFO: ==11136== Lock acquired, processing the job... [2025-03-03 16:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:03:02] Production.INFO: neon service started [2025-03-03 16:03:02] Production.INFO: neon service started [2025-03-03 16:03:02] Production.INFO: ==11136== Releasing lock... [2025-03-03 16:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:03:03] Production.INFO: ==11140== Lock acquired, processing the job... [2025-03-03 11:03:03] Production.INFO: ==11138== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:03:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:03:03] Production.INFO: ==11140== Releasing lock... [2025-03-03 16:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:03:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:03:03] Production.INFO: ==11138== Releasing lock... [2025-03-03 11:03:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:03:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:03:04] Production.INFO: ==11143== Lock acquired, processing the job... [2025-03-03 11:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:03:04] Production.INFO: ==11145== Lock acquired, processing the job... [2025-03-03 11:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:03:04] Production.INFO: ==11150== Lock acquired, processing the job... [2025-03-03 11:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:03:04] Production.INFO: ==11147== Lock acquired, processing the job... [2025-03-03 11:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:03:04] Production.INFO: Account Balance Start. [2025-03-03 11:03:04] Production.INFO: CreateAllLog Start [2025-03-03 11:03:04] Production.INFO: 117 [2025-03-03 11:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:03:04] Production.INFO: ==11154== Lock acquired, processing the job... [2025-03-03 11:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:04] Production.INFO: ==11152== Lock acquired, processing the job... [2025-03-03 11:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: ==11145== Releasing lock... [2025-03-03 11:03:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:03:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:03:05] Production.INFO: count ==13 [2025-03-03 11:03:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:03:05] Production.INFO: count ==21 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598031') start [2025-03-03 11:03:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.ERROR: done [2025-03-03 11:03:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598031') end [2025-03-03 11:03:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:03:05] Production.INFO: 1 [2025-03-03 11:03:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: ==11154== Releasing lock... [2025-03-03 11:03:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:03:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.ERROR: done [2025-03-03 11:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:03:05] Production.INFO: Total Charge 0 [2025-03-03 11:03:05] Production.INFO: CreateAllLog End [2025-03-03 11:03:06] Production.INFO: Account Balance End. [2025-03-03 11:03:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:03:06] Production.INFO: ==11150== Releasing lock... [2025-03-03 11:03:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:03:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:03:13] Production.ERROR: CronJobId end10 [2025-03-03 11:03:13] Production.INFO: ==11147== Releasing lock... [2025-03-03 11:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:03:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:03:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:03:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:03:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:03:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:03:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:03:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:03:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:03:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:03:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:03:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:03:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:03:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:03:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:03:16] Production.INFO: call_cost start [2025-03-03 11:03:16] Production.INFO: call_cost end [2025-03-03 11:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:03:16] Production.INFO: ==11143== Releasing lock... [2025-03-03 11:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:03:19] Production.INFO: count ==409 [2025-03-03 11:03:19] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598032', 'tblTempUsageDetail_20' ) start [2025-03-03 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598032', 'tblTempUsageDetail_20' ) end [2025-03-03 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598032', 'tblTempVendorCDR_20' ) start [2025-03-03 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598032', 'tblTempVendorCDR_20' ) end [2025-03-03 11:03:19] Production.INFO: ProcessCDR(1,14598032,1,1,2) [2025-03-03 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598032', 'tblTempUsageDetail_20' ) start [2025-03-03 11:03:27] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598032', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:03:28] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:03:28] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:03:28] Production.INFO: ==11152== Releasing lock... [2025-03-03 11:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:03:28] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:04:01] Production.INFO: ==11211== Lock acquired, processing the job... [2025-03-03 16:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:04:01] Production.INFO: neon service started [2025-03-03 16:04:01] Production.INFO: neon service started [2025-03-03 16:04:01] Production.INFO: ==11211== Releasing lock... [2025-03-03 16:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:04:02] Production.INFO: ==11214== Lock acquired, processing the job... [2025-03-03 11:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:04:02] Production.INFO: ==11216== Lock acquired, processing the job... [2025-03-03 16:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:04:02] Production.INFO: ==11216== Releasing lock... [2025-03-03 16:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:04:03] Production.INFO: ==11214== Releasing lock... [2025-03-03 11:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:04:04] Production.INFO: ==11222== Lock acquired, processing the job... [2025-03-03 11:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:04:04] Production.INFO: ==11226== Lock acquired, processing the job... [2025-03-03 11:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:04:04] Production.INFO: ==11218== Lock acquired, processing the job... [2025-03-03 11:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:04:04] Production.INFO: ==11220== Lock acquired, processing the job... [2025-03-03 11:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:04:04] Production.INFO: ==11224== Lock acquired, processing the job... [2025-03-03 11:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:04:04] Production.INFO: ==11229== Lock acquired, processing the job... [2025-03-03 11:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:04:04] Production.ERROR: done [2025-03-03 11:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:04:04] Production.INFO: Account Balance Start. [2025-03-03 11:04:04] Production.INFO: CreateAllLog Start [2025-03-03 11:04:04] Production.INFO: 117 [2025-03-03 11:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:04:04] Production.INFO: count ==13 [2025-03-03 11:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:04:04] Production.INFO: count ==21 [2025-03-03 11:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598035') start [2025-03-03 11:04:04] Production.ERROR: done [2025-03-03 11:04:05] Production.INFO: Date 2025-02-10 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: ==11220== Releasing lock... [2025-03-03 11:04:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:04:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:04:05] Production.INFO: Date 2025-02-11 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598035') end [2025-03-03 11:04:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:04:05] Production.INFO: 1 [2025-03-03 11:04:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:04:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: ==11229== Releasing lock... [2025-03-03 11:04:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:04:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:04:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:04:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:04:05] Production.INFO: Total Charge 0 [2025-03-03 11:04:05] Production.INFO: CreateAllLog End [2025-03-03 11:04:05] Production.INFO: Account Balance End. [2025-03-03 11:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:04:05] Production.INFO: ==11224== Releasing lock... [2025-03-03 11:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:04:12] Production.ERROR: CronJobId end10 [2025-03-03 11:04:12] Production.INFO: ==11222== Releasing lock... [2025-03-03 11:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:04:15] Production.INFO: call_cost start [2025-03-03 11:04:15] Production.INFO: call_cost end [2025-03-03 11:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:04:15] Production.INFO: ==11218== Releasing lock... [2025-03-03 11:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:04:17] Production.INFO: count ==409 [2025-03-03 11:04:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598037', 'tblTempUsageDetail_20' ) start [2025-03-03 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598037', 'tblTempUsageDetail_20' ) end [2025-03-03 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598037', 'tblTempVendorCDR_20' ) start [2025-03-03 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598037', 'tblTempVendorCDR_20' ) end [2025-03-03 11:04:18] Production.INFO: ProcessCDR(1,14598037,1,1,2) [2025-03-03 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598037', 'tblTempUsageDetail_20' ) start [2025-03-03 11:04:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598037', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:04:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:04:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:04:27] Production.INFO: ==11226== Releasing lock... [2025-03-03 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:04:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:05:02] Production.INFO: ==11366== Lock acquired, processing the job... [2025-03-03 16:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:05:02] Production.INFO: neon service started [2025-03-03 16:05:02] Production.INFO: neon service started [2025-03-03 16:05:02] Production.INFO: ==11366== Releasing lock... [2025-03-03 16:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:05:02] Production.INFO: ==11368== Lock acquired, processing the job... [2025-03-03 11:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:05:03] Production.INFO: ==11368== Releasing lock... [2025-03-03 11:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:05:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:05:03] Production.INFO: ==11370== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:05:03] Production.INFO: ==11370== Releasing lock... [2025-03-03 16:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:05:04] Production.INFO: ==11381== Lock acquired, processing the job... [2025-03-03 11:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:05:04] Production.INFO: ==11379== Lock acquired, processing the job... [2025-03-03 11:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:05:04] Production.INFO: ==11373== Lock acquired, processing the job... [2025-03-03 11:05:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:05:04] Production.INFO: ==11375== Lock acquired, processing the job... [2025-03-03 11:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:05:04] Production.INFO: Account Balance Start. [2025-03-03 11:05:04] Production.INFO: CreateAllLog Start [2025-03-03 11:05:04] Production.INFO: 117 [2025-03-03 11:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:05:04] Production.INFO: ==11377== Lock acquired, processing the job... [2025-03-03 11:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:04] Production.INFO: ==11383== Lock acquired, processing the job... [2025-03-03 11:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:05:04] Production.INFO: count ==13 [2025-03-03 11:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:05:04] Production.INFO: count ==21 [2025-03-03 11:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598039') start [2025-03-03 11:05:04] Production.ERROR: done [2025-03-03 11:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598039') end [2025-03-03 11:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:05:04] Production.INFO: 1 [2025-03-03 11:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:05:04] Production.INFO: ==11383== Releasing lock... [2025-03-03 11:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: ==11375== Releasing lock... [2025-03-03 11:05:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:05:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:05:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.ERROR: done [2025-03-03 11:05:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:05:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:06] Production.INFO: Date 2025-03-03 [2025-03-03 11:05:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:05:06] Production.INFO: Total Charge 0 [2025-03-03 11:05:06] Production.INFO: CreateAllLog End [2025-03-03 11:05:06] Production.INFO: Account Balance End. [2025-03-03 11:05:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:05:06] Production.INFO: ==11379== Releasing lock... [2025-03-03 11:05:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:05:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:05:13] Production.ERROR: CronJobId end10 [2025-03-03 11:05:13] Production.INFO: ==11377== Releasing lock... [2025-03-03 11:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:05:16] Production.INFO: call_cost start [2025-03-03 11:05:16] Production.INFO: call_cost end [2025-03-03 11:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:05:16] Production.INFO: ==11373== Releasing lock... [2025-03-03 11:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:05:18] Production.INFO: count ==409 [2025-03-03 11:05:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598042', 'tblTempUsageDetail_20' ) start [2025-03-03 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598042', 'tblTempUsageDetail_20' ) end [2025-03-03 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598042', 'tblTempVendorCDR_20' ) start [2025-03-03 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598042', 'tblTempVendorCDR_20' ) end [2025-03-03 11:05:18] Production.INFO: ProcessCDR(1,14598042,1,1,2) [2025-03-03 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598042', 'tblTempUsageDetail_20' ) start [2025-03-03 11:05:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598042', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:05:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:05:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:05:26] Production.INFO: ==11381== Releasing lock... [2025-03-03 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:05:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:06:01] Production.INFO: ==11437== Lock acquired, processing the job... [2025-03-03 16:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:06:01] Production.INFO: neon service started [2025-03-03 16:06:01] Production.INFO: neon service started [2025-03-03 16:06:01] Production.INFO: ==11437== Releasing lock... [2025-03-03 16:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:06:02] Production.INFO: ==11439== Lock acquired, processing the job... [2025-03-03 11:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:06:02] Production.INFO: ==11439== Releasing lock... [2025-03-03 11:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:06:02] Production.INFO: ==11441== Lock acquired, processing the job... [2025-03-03 16:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:06:02] Production.INFO: ==11441== Releasing lock... [2025-03-03 16:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:06:03] Production.INFO: ==11454== Lock acquired, processing the job... [2025-03-03 11:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:06:03] Production.INFO: ==11444== Lock acquired, processing the job... [2025-03-03 11:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:06:03] Production.INFO: ==11450== Lock acquired, processing the job... [2025-03-03 11:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:06:04] Production.INFO: ==11446== Lock acquired, processing the job... [2025-03-03 11:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:06:04] Production.INFO: Account Balance Start. [2025-03-03 11:06:04] Production.INFO: CreateAllLog Start [2025-03-03 11:06:04] Production.INFO: 117 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:06:04] Production.INFO: count ==13 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: ==11448== Lock acquired, processing the job... [2025-03-03 11:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:06:04] Production.INFO: count ==21 [2025-03-03 11:06:04] Production.INFO: ==11452== Lock acquired, processing the job... [2025-03-03 11:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598043') start [2025-03-03 11:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598043') end [2025-03-03 11:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:06:04] Production.INFO: 1 [2025-03-03 11:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.ERROR: done [2025-03-03 11:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:06:04] Production.INFO: ==11454== Releasing lock... [2025-03-03 11:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: ==11446== Releasing lock... [2025-03-03 11:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:06:04] Production.ERROR: done [2025-03-03 11:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:06:05] Production.INFO: Total Charge 0 [2025-03-03 11:06:05] Production.INFO: CreateAllLog End [2025-03-03 11:06:05] Production.INFO: Account Balance End. [2025-03-03 11:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:06:05] Production.INFO: ==11450== Releasing lock... [2025-03-03 11:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:06:13] Production.ERROR: CronJobId end10 [2025-03-03 11:06:13] Production.INFO: ==11448== Releasing lock... [2025-03-03 11:06:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:06:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:06:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:06:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:06:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:06:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:06:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:06:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:06:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:06:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:06:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:06:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:06:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:06:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:06:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:06:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:06:16] Production.INFO: call_cost start [2025-03-03 11:06:16] Production.INFO: call_cost end [2025-03-03 11:06:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:06:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:06:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:06:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:06:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:06:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:06:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:06:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:06:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:06:16] Production.INFO: ==11444== Releasing lock... [2025-03-03 11:06:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:06:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:06:17] Production.INFO: count ==409 [2025-03-03 11:06:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598047', 'tblTempUsageDetail_20' ) start [2025-03-03 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598047', 'tblTempUsageDetail_20' ) end [2025-03-03 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598047', 'tblTempVendorCDR_20' ) start [2025-03-03 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598047', 'tblTempVendorCDR_20' ) end [2025-03-03 11:06:17] Production.INFO: ProcessCDR(1,14598047,1,1,2) [2025-03-03 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598047', 'tblTempUsageDetail_20' ) start [2025-03-03 11:06:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598047', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:06:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:06:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:06:26] Production.INFO: ==11452== Releasing lock... [2025-03-03 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:06:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:07:01] Production.INFO: ==11515== Lock acquired, processing the job... [2025-03-03 16:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:07:01] Production.INFO: neon service started [2025-03-03 16:07:01] Production.INFO: neon service started [2025-03-03 16:07:01] Production.INFO: ==11515== Releasing lock... [2025-03-03 16:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:07:02] Production.INFO: ==11519== Lock acquired, processing the job... [2025-03-03 16:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:07:02] Production.INFO: ==11517== Lock acquired, processing the job... [2025-03-03 11:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:07:02] Production.INFO: ==11519== Releasing lock... [2025-03-03 16:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:07:02] Production.INFO: ==11517== Releasing lock... [2025-03-03 11:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:07:03] Production.INFO: ==11527== Lock acquired, processing the job... [2025-03-03 11:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:07:03] Production.INFO: ==11525== Lock acquired, processing the job... [2025-03-03 11:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:07:03] Production.INFO: ==11523== Lock acquired, processing the job... [2025-03-03 11:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:07:03] Production.INFO: ==11533== Lock acquired, processing the job... [2025-03-03 11:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:07:03] Production.INFO: ==11529== Lock acquired, processing the job... [2025-03-03 11:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:07:03] Production.INFO: ==11531== Lock acquired, processing the job... [2025-03-03 11:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:07:03] Production.INFO: Account Balance Start. [2025-03-03 11:07:03] Production.INFO: CreateAllLog Start [2025-03-03 11:07:03] Production.INFO: 117 [2025-03-03 11:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:07:03] Production.INFO: ==11525== Releasing lock... [2025-03-03 11:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:07:03] Production.INFO: count ==13 [2025-03-03 11:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 11:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:03] Production.INFO: count ==21 [2025-03-03 11:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598051') start [2025-03-03 11:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 11:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:03] Production.INFO: Date 2025-02-11 [2025-03-03 11:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598051') end [2025-03-03 11:07:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:07:03] Production.INFO: 1 [2025-03-03 11:07:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:07:03] Production.INFO: Date 2025-02-12 [2025-03-03 11:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:03] Production.INFO: Date 2025-02-13 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: ==11533== Releasing lock... [2025-03-03 11:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.ERROR: done [2025-03-03 11:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.ERROR: done [2025-03-03 11:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:07:05] Production.INFO: Total Charge 0 [2025-03-03 11:07:05] Production.INFO: CreateAllLog End [2025-03-03 11:07:05] Production.INFO: Account Balance End. [2025-03-03 11:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:07:05] Production.INFO: ==11529== Releasing lock... [2025-03-03 11:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:07:12] Production.ERROR: CronJobId end10 [2025-03-03 11:07:12] Production.INFO: ==11527== Releasing lock... [2025-03-03 11:07:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:07:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:07:15] Production.INFO: call_cost start [2025-03-03 11:07:15] Production.INFO: call_cost end [2025-03-03 11:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:07:15] Production.INFO: ==11523== Releasing lock... [2025-03-03 11:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:07:17] Production.INFO: count ==409 [2025-03-03 11:07:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598052', 'tblTempUsageDetail_20' ) start [2025-03-03 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598052', 'tblTempUsageDetail_20' ) end [2025-03-03 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598052', 'tblTempVendorCDR_20' ) start [2025-03-03 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598052', 'tblTempVendorCDR_20' ) end [2025-03-03 11:07:17] Production.INFO: ProcessCDR(1,14598052,1,1,2) [2025-03-03 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598052', 'tblTempUsageDetail_20' ) start [2025-03-03 11:07:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598052', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:07:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:07:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:07:26] Production.INFO: ==11531== Releasing lock... [2025-03-03 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:07:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:08:02] Production.INFO: ==11659== Lock acquired, processing the job... [2025-03-03 16:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:08:02] Production.INFO: neon service started [2025-03-03 16:08:02] Production.INFO: neon service started [2025-03-03 16:08:02] Production.INFO: ==11659== Releasing lock... [2025-03-03 16:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:08:03] Production.INFO: ==11664== Lock acquired, processing the job... [2025-03-03 11:08:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:08:03] Production.INFO: ==11666== Lock acquired, processing the job... [2025-03-03 16:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:08:03] Production.INFO: ==11666== Releasing lock... [2025-03-03 16:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:08:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:08:04] Production.INFO: ==11664== Releasing lock... [2025-03-03 11:08:04] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:08:04] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:08:05] Production.INFO: ==11669== Lock acquired, processing the job... [2025-03-03 11:08:05] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:08:05] Production.INFO: ==11671== Lock acquired, processing the job... [2025-03-03 11:08:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:08:05] Production.INFO: ==11673== Lock acquired, processing the job... [2025-03-03 11:08:05] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:08:05] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:08:05] Production.INFO: ==11675== Lock acquired, processing the job... [2025-03-03 11:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:08:05] Production.INFO: ==11679== Lock acquired, processing the job... [2025-03-03 11:08:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:08:05] Production.INFO: ==11677== Lock acquired, processing the job... [2025-03-03 11:08:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:08:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:08:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:08:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:08:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:08:05] Production.INFO: Account Balance Start. [2025-03-03 11:08:05] Production.INFO: CreateAllLog Start [2025-03-03 11:08:05] Production.INFO: 117 [2025-03-03 11:08:05] Production.INFO: Date 2025-02-08 [2025-03-03 11:08:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:08:05] Production.INFO: Date 2025-02-09 [2025-03-03 11:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:05] Production.INFO: count ==13 [2025-03-03 11:08:05] Production.INFO: Date 2025-02-10 [2025-03-03 11:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:08:05] Production.INFO: count ==21 [2025-03-03 11:08:05] Production.INFO: ==11671== Releasing lock... [2025-03-03 11:08:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:08:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:08:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598056') start [2025-03-03 11:08:06] Production.INFO: Date 2025-02-11 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-12 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.ERROR: PBX CALL prc_importPBXExtension('14598056') end [2025-03-03 11:08:06] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:08:06] Production.INFO: 1 [2025-03-03 11:08:06] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:08:06] Production.INFO: Date 2025-02-13 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.ERROR: done [2025-03-03 11:08:06] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:08:06] Production.INFO: ==11679== Releasing lock... [2025-03-03 11:08:06] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:08:06] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:08:06] Production.INFO: Date 2025-02-14 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-15 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-16 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.ERROR: done [2025-03-03 11:08:06] Production.INFO: Date 2025-02-17 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:08:06] Production.INFO: Date 2025-02-18 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-19 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-20 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-21 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-22 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:06] Production.INFO: Date 2025-02-23 [2025-03-03 11:08:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-02-24 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-02-25 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-02-26 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-02-27 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-02-28 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-03-01 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-03-02 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Date 2025-03-03 [2025-03-03 11:08:07] Production.INFO: Reseller ==> 0 [2025-03-03 11:08:07] Production.INFO: Total Charge 0 [2025-03-03 11:08:07] Production.INFO: CreateAllLog End [2025-03-03 11:08:07] Production.INFO: Account Balance End. [2025-03-03 11:08:07] Production.ERROR: CronJobId end 12 [2025-03-03 11:08:07] Production.INFO: ==11675== Releasing lock... [2025-03-03 11:08:07] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:08:07] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:08:16] Production.ERROR: CronJobId end10 [2025-03-03 11:08:16] Production.INFO: ==11673== Releasing lock... [2025-03-03 11:08:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:08:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:08:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:08:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:08:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:08:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:08:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:08:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:08:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:08:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:08:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:08:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:08:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:08:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:08:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:08:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:08:19] Production.INFO: count ==409 [2025-03-03 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598057', 'tblTempUsageDetail_20' ) start [2025-03-03 11:08:19] Production.INFO: call_cost start [2025-03-03 11:08:19] Production.INFO: call_cost end [2025-03-03 11:08:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:08:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:08:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:08:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:08:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:08:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:08:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:08:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:08:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598057', 'tblTempUsageDetail_20' ) end [2025-03-03 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598057', 'tblTempVendorCDR_20' ) start [2025-03-03 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598057', 'tblTempVendorCDR_20' ) end [2025-03-03 11:08:19] Production.INFO: ProcessCDR(1,14598057,1,1,2) [2025-03-03 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:08:19] Production.INFO: ==11669== Releasing lock... [2025-03-03 11:08:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:08:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598057', 'tblTempUsageDetail_20' ) start [2025-03-03 11:08:28] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598057', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:08:28] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:08:28] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:08:28] Production.INFO: ==11677== Releasing lock... [2025-03-03 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:08:28] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:09:02] Production.INFO: ==11772== Lock acquired, processing the job... [2025-03-03 16:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:09:02] Production.INFO: neon service started [2025-03-03 16:09:02] Production.INFO: neon service started [2025-03-03 16:09:02] Production.INFO: ==11772== Releasing lock... [2025-03-03 16:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:09:02] Production.INFO: ==11776== Lock acquired, processing the job... [2025-03-03 16:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:09:02] Production.INFO: ==11776== Releasing lock... [2025-03-03 16:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:09:02] Production.INFO: ==11774== Lock acquired, processing the job... [2025-03-03 11:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:09:02] Production.INFO: ==11774== Releasing lock... [2025-03-03 11:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:09:03] Production.INFO: ==11783== Lock acquired, processing the job... [2025-03-03 11:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:09:03] Production.INFO: ==11785== Lock acquired, processing the job... [2025-03-03 11:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:09:04] Production.INFO: Account Balance Start. [2025-03-03 11:09:04] Production.INFO: CreateAllLog Start [2025-03-03 11:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:09:04] Production.INFO: 117 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: ==11779== Lock acquired, processing the job... [2025-03-03 11:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:09:04] Production.INFO: ==11781== Lock acquired, processing the job... [2025-03-03 11:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: ==11787== Lock acquired, processing the job... [2025-03-03 11:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:09:04] Production.INFO: ==11789== Lock acquired, processing the job... [2025-03-03 11:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:09:04] Production.INFO: count ==13 [2025-03-03 11:09:04] Production.INFO: ==11781== Releasing lock... [2025-03-03 11:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:09:04] Production.INFO: count ==21 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598061') start [2025-03-03 11:09:04] Production.ERROR: done [2025-03-03 11:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598061') end [2025-03-03 11:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:09:04] Production.INFO: 1 [2025-03-03 11:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: ==11789== Releasing lock... [2025-03-03 11:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:09:04] Production.ERROR: done [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:09:05] Production.INFO: Total Charge 0 [2025-03-03 11:09:05] Production.INFO: CreateAllLog End [2025-03-03 11:09:05] Production.INFO: Account Balance End. [2025-03-03 11:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:09:05] Production.INFO: ==11785== Releasing lock... [2025-03-03 11:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:09:12] Production.ERROR: CronJobId end10 [2025-03-03 11:09:12] Production.INFO: ==11783== Releasing lock... [2025-03-03 11:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:09:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:09:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:09:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:09:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:09:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:09:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:09:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:09:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:09:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:09:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:09:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:09:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:09:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:09:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:09:16] Production.INFO: call_cost start [2025-03-03 11:09:16] Production.INFO: call_cost end [2025-03-03 11:09:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:09:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:09:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:09:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:09:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:09:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:09:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:09:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:09:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:09:16] Production.INFO: ==11779== Releasing lock... [2025-03-03 11:09:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:09:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:09:18] Production.INFO: count ==409 [2025-03-03 11:09:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598062', 'tblTempUsageDetail_20' ) start [2025-03-03 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598062', 'tblTempUsageDetail_20' ) end [2025-03-03 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598062', 'tblTempVendorCDR_20' ) start [2025-03-03 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598062', 'tblTempVendorCDR_20' ) end [2025-03-03 11:09:18] Production.INFO: ProcessCDR(1,14598062,1,1,2) [2025-03-03 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598062', 'tblTempUsageDetail_20' ) start [2025-03-03 11:09:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598062', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:09:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:09:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:09:26] Production.INFO: ==11787== Releasing lock... [2025-03-03 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:09:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:10:01] Production.INFO: ==11844== Lock acquired, processing the job... [2025-03-03 16:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:10:01] Production.INFO: neon service started [2025-03-03 16:10:01] Production.INFO: neon service started [2025-03-03 16:10:01] Production.INFO: ==11844== Releasing lock... [2025-03-03 16:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:10:01] Production.INFO: ==11846== Lock acquired, processing the job... [2025-03-03 11:10:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:10:02] Production.INFO: ==11846== Releasing lock... [2025-03-03 11:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:10:02] Production.INFO: ==11848== Lock acquired, processing the job... [2025-03-03 16:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:10:02] Production.INFO: ==11848== Releasing lock... [2025-03-03 16:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:10:03] Production.INFO: ==11859== Lock acquired, processing the job... [2025-03-03 11:10:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:10:03] Production.INFO: ==11857== Lock acquired, processing the job... [2025-03-03 11:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:10:03] Production.INFO: Account Balance Start. [2025-03-03 11:10:03] Production.INFO: CreateAllLog Start [2025-03-03 11:10:03] Production.INFO: 117 [2025-03-03 11:10:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:03] Production.INFO: Date 2025-02-09 [2025-03-03 11:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:03] Production.INFO: Date 2025-02-10 [2025-03-03 11:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:10:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:10:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:10:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:10:03] Production.INFO: Date 2025-02-11 [2025-03-03 11:10:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:03] Production.INFO: ==11851== Lock acquired, processing the job... [2025-03-03 11:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 11:10:03] Production.INFO: ==11853== Lock acquired, processing the job... [2025-03-03 11:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: ==11855== Lock acquired, processing the job... [2025-03-03 11:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:10:04] Production.ERROR: CronJob PID - 11853 [2025-03-03 11:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 11:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 11:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:10:00 [2025-03-03 11:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:10:04] Production.ERROR: CronJob PID - 11857 [2025-03-03 11:10:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 11:10:04] Production.ERROR: CronJob ID - 10 [2025-03-03 11:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:10:00 [2025-03-03 11:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:10:04] Production.ERROR: CronJob PID - 11859 [2025-03-03 11:10:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 11:10:04] Production.ERROR: CronJob ID - 12 [2025-03-03 11:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:10:00 [2025-03-03 11:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: ==11861== Lock acquired, processing the job... [2025-03-03 11:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 11:10:04] Production.INFO: ==11851== Releasing lock... [2025-03-03 11:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 11:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 11:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:10:04] Production.INFO: ==11863== Lock acquired, processing the job... [2025-03-03 11:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 11:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: ==11865== Lock acquired, processing the job... [2025-03-03 11:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:10:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:10:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:10:04] Production.INFO: ==11855== Releasing lock... [2025-03-03 11:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:10:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:10:04] Production.INFO: count ==13 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:10:04] Production.INFO: count ==21 [2025-03-03 11:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598066') start [2025-03-03 11:10:04] Production.ERROR: done [2025-03-03 11:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:10:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598066') end [2025-03-03 11:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:10:05] Production.INFO: 1 [2025-03-03 11:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:10:05] Production.ERROR: done [2025-03-03 11:10:05] Production.INFO: ==11865== Releasing lock... [2025-03-03 11:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:10:05] Production.ERROR: done [2025-03-03 11:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 11:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598067', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 11:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:10:05] Production.INFO: Total Charge 0 [2025-03-03 11:10:05] Production.INFO: CreateAllLog End [2025-03-03 11:10:05] Production.INFO: Account Balance End. [2025-03-03 11:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:10:05] Production.INFO: ==11859== Releasing lock... [2025-03-03 11:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598067', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 11:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 11:10:09] Production.INFO: ProcessCDR(1,14598067,1,1,2) [2025-03-03 11:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598067,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:10:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598067,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:10:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:10:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:10:10] Production.INFO: ==11863== Releasing lock... [2025-03-03 11:10:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 11:10:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 11:10:14] Production.ERROR: CronJobId end10 [2025-03-03 11:10:14] Production.INFO: ==11857== Releasing lock... [2025-03-03 11:10:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:10:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:10:17] Production.INFO: count ==409 [2025-03-03 11:10:18] Production.INFO: call_cost start [2025-03-03 11:10:18] Production.INFO: call_cost end [2025-03-03 11:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:10:18] Production.INFO: ==11853== Releasing lock... [2025-03-03 11:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:10:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598068', 'tblTempUsageDetail_20' ) start [2025-03-03 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598068', 'tblTempUsageDetail_20' ) end [2025-03-03 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598068', 'tblTempVendorCDR_20' ) start [2025-03-03 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598068', 'tblTempVendorCDR_20' ) end [2025-03-03 11:10:18] Production.INFO: ProcessCDR(1,14598068,1,1,2) [2025-03-03 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598068', 'tblTempUsageDetail_20' ) start [2025-03-03 11:10:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598068', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:10:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:10:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:10:27] Production.INFO: ==11861== Releasing lock... [2025-03-03 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:10:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:11:02] Production.INFO: ==11965== Lock acquired, processing the job... [2025-03-03 16:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:11:02] Production.INFO: neon service started [2025-03-03 16:11:02] Production.INFO: neon service started [2025-03-03 16:11:02] Production.INFO: ==11965== Releasing lock... [2025-03-03 16:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:11:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:11:02] Production.INFO: ==11970== Lock acquired, processing the job... [2025-03-03 16:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:11:02] Production.INFO: ==11970== Releasing lock... [2025-03-03 16:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:11:02] Production.INFO: ==11968== Lock acquired, processing the job... [2025-03-03 11:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:11:03] Production.INFO: ==11968== Releasing lock... [2025-03-03 11:11:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:11:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:11:03] Production.INFO: ==11974== Lock acquired, processing the job... [2025-03-03 11:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:11:04] Production.INFO: ==11976== Lock acquired, processing the job... [2025-03-03 11:11:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:11:04] Production.INFO: ==11980== Lock acquired, processing the job... [2025-03-03 11:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:11:04] Production.INFO: ==11972== Lock acquired, processing the job... [2025-03-03 11:11:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:11:04] Production.INFO: ==11982== Lock acquired, processing the job... [2025-03-03 11:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:11:04] Production.INFO: ==11978== Lock acquired, processing the job... [2025-03-03 11:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:11:04] Production.INFO: ==11974== Releasing lock... [2025-03-03 11:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:11:04] Production.INFO: Account Balance Start. [2025-03-03 11:11:04] Production.INFO: CreateAllLog Start [2025-03-03 11:11:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:11:04] Production.INFO: 117 [2025-03-03 11:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:04] Production.INFO: count ==13 [2025-03-03 11:11:04] Production.ERROR: done [2025-03-03 11:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:11:04] Production.INFO: count ==21 [2025-03-03 11:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598070') start [2025-03-03 11:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:04] Production.ERROR: done [2025-03-03 11:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598070') end [2025-03-03 11:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:11:04] Production.INFO: 1 [2025-03-03 11:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:11:04] Production.INFO: ==11982== Releasing lock... [2025-03-03 11:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:11:05] Production.INFO: Total Charge 0 [2025-03-03 11:11:05] Production.INFO: CreateAllLog End [2025-03-03 11:11:05] Production.INFO: Account Balance End. [2025-03-03 11:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:11:05] Production.INFO: ==11978== Releasing lock... [2025-03-03 11:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:11:12] Production.ERROR: CronJobId end10 [2025-03-03 11:11:12] Production.INFO: ==11976== Releasing lock... [2025-03-03 11:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:11:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:11:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:11:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:11:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:11:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:11:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:11:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:11:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:11:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:11:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:11:16] Production.INFO: call_cost start [2025-03-03 11:11:16] Production.INFO: call_cost end [2025-03-03 11:11:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:11:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:11:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:11:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:11:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:11:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:11:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:11:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:11:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:11:16] Production.INFO: ==11972== Releasing lock... [2025-03-03 11:11:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:11:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:11:16] Production.INFO: count ==409 [2025-03-03 11:11:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598073', 'tblTempUsageDetail_20' ) start [2025-03-03 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598073', 'tblTempUsageDetail_20' ) end [2025-03-03 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598073', 'tblTempVendorCDR_20' ) start [2025-03-03 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598073', 'tblTempVendorCDR_20' ) end [2025-03-03 11:11:17] Production.INFO: ProcessCDR(1,14598073,1,1,2) [2025-03-03 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598073', 'tblTempUsageDetail_20' ) start [2025-03-03 11:11:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598073', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:11:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:11:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:11:25] Production.INFO: ==11980== Releasing lock... [2025-03-03 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:11:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:12:01] Production.INFO: ==12116== Lock acquired, processing the job... [2025-03-03 16:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:12:01] Production.INFO: neon service started [2025-03-03 16:12:01] Production.INFO: neon service started [2025-03-03 16:12:01] Production.INFO: ==12116== Releasing lock... [2025-03-03 16:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:12:02] Production.INFO: ==12118== Lock acquired, processing the job... [2025-03-03 11:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:12:02] Production.INFO: ==12120== Lock acquired, processing the job... [2025-03-03 16:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:12:02] Production.INFO: ==12120== Releasing lock... [2025-03-03 16:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:12:02] Production.INFO: ==12118== Releasing lock... [2025-03-03 11:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:12:03] Production.INFO: ==12127== Lock acquired, processing the job... [2025-03-03 11:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:12:03] Production.INFO: ==12133== Lock acquired, processing the job... [2025-03-03 11:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:12:03] Production.INFO: count ==13 [2025-03-03 11:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:12:03] Production.INFO: count ==21 [2025-03-03 11:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598074') start [2025-03-03 11:12:03] Production.INFO: ==12123== Lock acquired, processing the job... [2025-03-03 11:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598074') end [2025-03-03 11:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:12:04] Production.INFO: 1 [2025-03-03 11:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:12:04] Production.INFO: ==12133== Releasing lock... [2025-03-03 11:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:12:04] Production.INFO: ==12125== Lock acquired, processing the job... [2025-03-03 11:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:12:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:12:04] Production.INFO: ==12129== Lock acquired, processing the job... [2025-03-03 11:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:12:04] Production.INFO: ==12131== Lock acquired, processing the job... [2025-03-03 11:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:12:04] Production.INFO: Account Balance Start. [2025-03-03 11:12:04] Production.INFO: CreateAllLog Start [2025-03-03 11:12:04] Production.INFO: 117 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: ==12125== Releasing lock... [2025-03-03 11:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:12:04] Production.ERROR: done [2025-03-03 11:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.ERROR: done [2025-03-03 11:12:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:12:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:12:05] Production.INFO: Total Charge 0 [2025-03-03 11:12:05] Production.INFO: CreateAllLog End [2025-03-03 11:12:05] Production.INFO: Account Balance End. [2025-03-03 11:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:12:05] Production.INFO: ==12129== Releasing lock... [2025-03-03 11:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:12:13] Production.ERROR: CronJobId end10 [2025-03-03 11:12:13] Production.INFO: ==12127== Releasing lock... [2025-03-03 11:12:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:12:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:12:15] Production.INFO: call_cost start [2025-03-03 11:12:15] Production.INFO: call_cost end [2025-03-03 11:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:12:15] Production.INFO: ==12123== Releasing lock... [2025-03-03 11:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:12:17] Production.INFO: count ==409 [2025-03-03 11:12:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598078', 'tblTempUsageDetail_20' ) start [2025-03-03 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598078', 'tblTempUsageDetail_20' ) end [2025-03-03 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598078', 'tblTempVendorCDR_20' ) start [2025-03-03 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598078', 'tblTempVendorCDR_20' ) end [2025-03-03 11:12:17] Production.INFO: ProcessCDR(1,14598078,1,1,2) [2025-03-03 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598078', 'tblTempUsageDetail_20' ) start [2025-03-03 11:12:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598078', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:12:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:12:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:12:25] Production.INFO: ==12131== Releasing lock... [2025-03-03 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:12:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:13:02] Production.INFO: ==12191== Lock acquired, processing the job... [2025-03-03 16:13:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:13:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:13:02] Production.INFO: neon service started [2025-03-03 16:13:02] Production.INFO: neon service started [2025-03-03 16:13:02] Production.INFO: ==12191== Releasing lock... [2025-03-03 16:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:13:02] Production.INFO: ==12196== Lock acquired, processing the job... [2025-03-03 16:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:13:02] Production.INFO: ==12196== Releasing lock... [2025-03-03 16:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:13:02] Production.INFO: ==12194== Lock acquired, processing the job... [2025-03-03 11:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:13:03] Production.INFO: ==12194== Releasing lock... [2025-03-03 11:13:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:13:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:13:04] Production.INFO: ==12202== Lock acquired, processing the job... [2025-03-03 11:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:13:04] Production.INFO: ==12198== Lock acquired, processing the job... [2025-03-03 11:13:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:13:04] Production.INFO: ==12200== Lock acquired, processing the job... [2025-03-03 11:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:13:04] Production.INFO: ==12204== Lock acquired, processing the job... [2025-03-03 11:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:13:04] Production.INFO: Account Balance Start. [2025-03-03 11:13:04] Production.INFO: CreateAllLog Start [2025-03-03 11:13:04] Production.INFO: 117 [2025-03-03 11:13:04] Production.INFO: ==12208== Lock acquired, processing the job... [2025-03-03 11:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:13:04] Production.INFO: ==12206== Lock acquired, processing the job... [2025-03-03 11:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: ==12200== Releasing lock... [2025-03-03 11:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: count ==13 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:13:04] Production.INFO: count ==21 [2025-03-03 11:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598082') start [2025-03-03 11:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598082') end [2025-03-03 11:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:13:04] Production.INFO: 1 [2025-03-03 11:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:04] Production.ERROR: done [2025-03-03 11:13:04] Production.INFO: ==12208== Releasing lock... [2025-03-03 11:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.ERROR: done [2025-03-03 11:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:13:05] Production.INFO: Total Charge 0 [2025-03-03 11:13:05] Production.INFO: CreateAllLog End [2025-03-03 11:13:05] Production.INFO: Account Balance End. [2025-03-03 11:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:13:05] Production.INFO: ==12204== Releasing lock... [2025-03-03 11:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:13:12] Production.ERROR: CronJobId end10 [2025-03-03 11:13:12] Production.INFO: ==12202== Releasing lock... [2025-03-03 11:13:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:13:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:13:15] Production.INFO: call_cost start [2025-03-03 11:13:15] Production.INFO: call_cost end [2025-03-03 11:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:13:15] Production.INFO: ==12198== Releasing lock... [2025-03-03 11:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:13:17] Production.INFO: count ==409 [2025-03-03 11:13:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598083', 'tblTempUsageDetail_20' ) start [2025-03-03 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598083', 'tblTempUsageDetail_20' ) end [2025-03-03 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598083', 'tblTempVendorCDR_20' ) start [2025-03-03 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598083', 'tblTempVendorCDR_20' ) end [2025-03-03 11:13:17] Production.INFO: ProcessCDR(1,14598083,1,1,2) [2025-03-03 11:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598083', 'tblTempUsageDetail_20' ) start [2025-03-03 11:13:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598083', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:13:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:13:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:13:26] Production.INFO: ==12206== Releasing lock... [2025-03-03 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:13:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:14:01] Production.INFO: ==12276== Lock acquired, processing the job... [2025-03-03 16:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:14:01] Production.INFO: neon service started [2025-03-03 16:14:01] Production.INFO: neon service started [2025-03-03 16:14:01] Production.INFO: ==12276== Releasing lock... [2025-03-03 16:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:14:02] Production.INFO: ==12278== Lock acquired, processing the job... [2025-03-03 11:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:14:02] Production.INFO: ==12280== Lock acquired, processing the job... [2025-03-03 16:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:14:02] Production.INFO: ==12280== Releasing lock... [2025-03-03 16:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:14:02] Production.INFO: ==12278== Releasing lock... [2025-03-03 11:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:14:03] Production.INFO: ==12283== Lock acquired, processing the job... [2025-03-03 11:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:14:03] Production.INFO: ==12291== Lock acquired, processing the job... [2025-03-03 11:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:14:04] Production.INFO: ==12285== Lock acquired, processing the job... [2025-03-03 11:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:14:04] Production.INFO: ==12287== Lock acquired, processing the job... [2025-03-03 11:14:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:14:04] Production.INFO: ==12289== Lock acquired, processing the job... [2025-03-03 11:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:14:04] Production.INFO: ==12293== Lock acquired, processing the job... [2025-03-03 11:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:14:04] Production.ERROR: done [2025-03-03 11:14:04] Production.INFO: Account Balance Start. [2025-03-03 11:14:04] Production.INFO: CreateAllLog Start [2025-03-03 11:14:04] Production.INFO: 117 [2025-03-03 11:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: count ==13 [2025-03-03 11:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:14:04] Production.INFO: count ==21 [2025-03-03 11:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598087') start [2025-03-03 11:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: ==12285== Releasing lock... [2025-03-03 11:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:14:04] Production.ERROR: done [2025-03-03 11:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598087') end [2025-03-03 11:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:14:04] Production.INFO: 1 [2025-03-03 11:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: ==12293== Releasing lock... [2025-03-03 11:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:14:05] Production.INFO: Total Charge 0 [2025-03-03 11:14:05] Production.INFO: CreateAllLog End [2025-03-03 11:14:05] Production.INFO: Account Balance End. [2025-03-03 11:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:14:05] Production.INFO: ==12289== Releasing lock... [2025-03-03 11:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:14:13] Production.ERROR: CronJobId end10 [2025-03-03 11:14:13] Production.INFO: ==12287== Releasing lock... [2025-03-03 11:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:14:17] Production.INFO: count ==409 [2025-03-03 11:14:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598088', 'tblTempUsageDetail_20' ) start [2025-03-03 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598088', 'tblTempUsageDetail_20' ) end [2025-03-03 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598088', 'tblTempVendorCDR_20' ) start [2025-03-03 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598088', 'tblTempVendorCDR_20' ) end [2025-03-03 11:14:18] Production.INFO: ProcessCDR(1,14598088,1,1,2) [2025-03-03 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:14:19] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:14:19] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:14:19] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:14:19] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:14:19] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:14:19] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:14:19] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:14:19] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:14:19] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:14:19] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:14:19] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:14:19] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:14:19] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:14:19] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:14:20] Production.INFO: call_cost start [2025-03-03 11:14:20] Production.INFO: call_cost end [2025-03-03 11:14:20] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:14:20] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:14:20] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:14:20] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:14:20] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:14:20] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:14:20] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:14:20] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:14:20] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:14:20] Production.INFO: ==12283== Releasing lock... [2025-03-03 11:14:20] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598088', 'tblTempUsageDetail_20' ) start [2025-03-03 11:14:30] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598088', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:14:30] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:14:30] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:14:30] Production.INFO: ==12291== Releasing lock... [2025-03-03 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:14:30] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:15:02] Production.INFO: ==12392== Lock acquired, processing the job... [2025-03-03 16:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:15:02] Production.INFO: neon service started [2025-03-03 16:15:02] Production.INFO: neon service started [2025-03-03 16:15:02] Production.INFO: ==12392== Releasing lock... [2025-03-03 16:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:15:02] Production.INFO: ==12429== Lock acquired, processing the job... [2025-03-03 11:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:15:03] Production.INFO: ==12429== Releasing lock... [2025-03-03 11:15:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:15:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:15:03] Production.INFO: ==12432== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:15:03] Production.INFO: ==12432== Releasing lock... [2025-03-03 16:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:15:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:15:04] Production.INFO: ==12443== Lock acquired, processing the job... [2025-03-03 11:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:15:04] Production.INFO: ==12437== Lock acquired, processing the job... [2025-03-03 11:15:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:15:04] Production.INFO: Account Balance Start. [2025-03-03 11:15:04] Production.INFO: CreateAllLog Start [2025-03-03 11:15:04] Production.INFO: 117 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:15:04] Production.INFO: ==12447== Lock acquired, processing the job... [2025-03-03 11:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: ==12439== Lock acquired, processing the job... [2025-03-03 11:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: ==12441== Lock acquired, processing the job... [2025-03-03 11:15:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: count ==13 [2025-03-03 11:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:15:04] Production.INFO: count ==21 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598091') start [2025-03-03 11:15:04] Production.INFO: ==12445== Lock acquired, processing the job... [2025-03-03 11:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598091') end [2025-03-03 11:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:15:04] Production.INFO: 1 [2025-03-03 11:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:15:04] Production.INFO: ==12447== Releasing lock... [2025-03-03 11:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: ==12439== Releasing lock... [2025-03-03 11:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.ERROR: done [2025-03-03 11:15:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:15:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.ERROR: done [2025-03-03 11:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:15:05] Production.INFO: Total Charge 0 [2025-03-03 11:15:05] Production.INFO: CreateAllLog End [2025-03-03 11:15:05] Production.INFO: Account Balance End. [2025-03-03 11:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:15:05] Production.INFO: ==12443== Releasing lock... [2025-03-03 11:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:15:13] Production.ERROR: CronJobId end10 [2025-03-03 11:15:13] Production.INFO: ==12441== Releasing lock... [2025-03-03 11:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:15:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:15:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:15:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:15:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:15:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:15:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:15:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:15:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:15:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:15:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:15:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:15:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:15:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:15:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:15:16] Production.INFO: call_cost start [2025-03-03 11:15:16] Production.INFO: call_cost end [2025-03-03 11:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:15:16] Production.INFO: ==12437== Releasing lock... [2025-03-03 11:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:15:17] Production.INFO: count ==409 [2025-03-03 11:15:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598093', 'tblTempUsageDetail_20' ) start [2025-03-03 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598093', 'tblTempUsageDetail_20' ) end [2025-03-03 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598093', 'tblTempVendorCDR_20' ) start [2025-03-03 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598093', 'tblTempVendorCDR_20' ) end [2025-03-03 11:15:17] Production.INFO: ProcessCDR(1,14598093,1,1,2) [2025-03-03 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598093', 'tblTempUsageDetail_20' ) start [2025-03-03 11:15:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598093', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:15:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:15:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:15:26] Production.INFO: ==12445== Releasing lock... [2025-03-03 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:15:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:16:01] Production.INFO: ==12505== Lock acquired, processing the job... [2025-03-03 16:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:16:02] Production.INFO: neon service started [2025-03-03 16:16:02] Production.INFO: neon service started [2025-03-03 16:16:02] Production.INFO: ==12505== Releasing lock... [2025-03-03 16:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:16:02] Production.INFO: ==12507== Lock acquired, processing the job... [2025-03-03 11:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:16:02] Production.INFO: ==12509== Lock acquired, processing the job... [2025-03-03 16:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:16:02] Production.INFO: ==12509== Releasing lock... [2025-03-03 16:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:16:03] Production.INFO: ==12507== Releasing lock... [2025-03-03 11:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:16:04] Production.INFO: ==12518== Lock acquired, processing the job... [2025-03-03 11:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:16:04] Production.INFO: ==12522== Lock acquired, processing the job... [2025-03-03 11:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:16:04] Production.INFO: ==12516== Lock acquired, processing the job... [2025-03-03 11:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:16:04] Production.INFO: ==12514== Lock acquired, processing the job... [2025-03-03 11:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:16:04] Production.INFO: ==12512== Lock acquired, processing the job... [2025-03-03 11:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:16:04] Production.INFO: Account Balance Start. [2025-03-03 11:16:04] Production.INFO: CreateAllLog Start [2025-03-03 11:16:04] Production.INFO: ==12520== Lock acquired, processing the job... [2025-03-03 11:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:16:04] Production.INFO: 117 [2025-03-03 11:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:16:04] Production.INFO: count ==13 [2025-03-03 11:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:16:04] Production.INFO: count ==21 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598095') start [2025-03-03 11:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598095') end [2025-03-03 11:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:16:04] Production.INFO: 1 [2025-03-03 11:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:16:04] Production.INFO: ==12522== Releasing lock... [2025-03-03 11:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:04] Production.ERROR: done [2025-03-03 11:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:16:04] Production.INFO: ==12514== Releasing lock... [2025-03-03 11:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.ERROR: done [2025-03-03 11:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:16:05] Production.INFO: Total Charge 0 [2025-03-03 11:16:05] Production.INFO: CreateAllLog End [2025-03-03 11:16:05] Production.INFO: Account Balance End. [2025-03-03 11:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:16:05] Production.INFO: ==12518== Releasing lock... [2025-03-03 11:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:16:13] Production.ERROR: CronJobId end10 [2025-03-03 11:16:13] Production.INFO: ==12516== Releasing lock... [2025-03-03 11:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:16:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:16:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:16:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:16:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:16:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:16:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:16:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:16:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:16:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:16:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:16:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:16:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:16:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:16:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:16:16] Production.INFO: call_cost start [2025-03-03 11:16:16] Production.INFO: call_cost end [2025-03-03 11:16:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:16:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:16:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:16:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:16:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:16:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:16:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:16:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:16:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:16:16] Production.INFO: ==12512== Releasing lock... [2025-03-03 11:16:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:16:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:16:17] Production.INFO: count ==409 [2025-03-03 11:16:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598098', 'tblTempUsageDetail_20' ) start [2025-03-03 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598098', 'tblTempUsageDetail_20' ) end [2025-03-03 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598098', 'tblTempVendorCDR_20' ) start [2025-03-03 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598098', 'tblTempVendorCDR_20' ) end [2025-03-03 11:16:17] Production.INFO: ProcessCDR(1,14598098,1,1,2) [2025-03-03 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598098', 'tblTempUsageDetail_20' ) start [2025-03-03 11:16:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598098', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:16:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:16:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:16:26] Production.INFO: ==12520== Releasing lock... [2025-03-03 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:16:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:17:01] Production.INFO: ==12582== Lock acquired, processing the job... [2025-03-03 16:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:17:01] Production.INFO: neon service started [2025-03-03 16:17:01] Production.INFO: neon service started [2025-03-03 16:17:01] Production.INFO: ==12582== Releasing lock... [2025-03-03 16:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:17:02] Production.INFO: ==12584== Lock acquired, processing the job... [2025-03-03 11:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:17:02] Production.INFO: ==12586== Lock acquired, processing the job... [2025-03-03 16:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:17:02] Production.INFO: ==12586== Releasing lock... [2025-03-03 16:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:17:02] Production.INFO: ==12584== Releasing lock... [2025-03-03 11:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:17:03] Production.INFO: ==12589== Lock acquired, processing the job... [2025-03-03 11:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:17:03] Production.INFO: ==12591== Lock acquired, processing the job... [2025-03-03 11:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:17:03] Production.INFO: ==12593== Lock acquired, processing the job... [2025-03-03 11:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:17:03] Production.INFO: ==12595== Lock acquired, processing the job... [2025-03-03 11:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:17:04] Production.INFO: ==12597== Lock acquired, processing the job... [2025-03-03 11:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:17:04] Production.INFO: ==12599== Lock acquired, processing the job... [2025-03-03 11:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:17:04] Production.INFO: Account Balance Start. [2025-03-03 11:17:04] Production.INFO: CreateAllLog Start [2025-03-03 11:17:04] Production.INFO: 117 [2025-03-03 11:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:17:04] Production.INFO: count ==13 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:17:04] Production.INFO: count ==21 [2025-03-03 11:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598102') start [2025-03-03 11:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:17:04] Production.INFO: ==12591== Releasing lock... [2025-03-03 11:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598102') end [2025-03-03 11:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:17:04] Production.INFO: 1 [2025-03-03 11:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:17:04] Production.ERROR: done [2025-03-03 11:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:17:04] Production.INFO: ==12599== Releasing lock... [2025-03-03 11:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:04] Production.ERROR: done [2025-03-03 11:17:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:17:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:17:05] Production.INFO: Total Charge 0 [2025-03-03 11:17:05] Production.INFO: CreateAllLog End [2025-03-03 11:17:05] Production.INFO: Account Balance End. [2025-03-03 11:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:17:05] Production.INFO: ==12595== Releasing lock... [2025-03-03 11:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:17:12] Production.ERROR: CronJobId end10 [2025-03-03 11:17:12] Production.INFO: ==12593== Releasing lock... [2025-03-03 11:17:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:17:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:17:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:17:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:17:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:17:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:17:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:17:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:17:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:17:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:17:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:17:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:17:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:17:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:17:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:17:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:17:15] Production.INFO: call_cost start [2025-03-03 11:17:15] Production.INFO: call_cost end [2025-03-03 11:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:17:15] Production.INFO: ==12589== Releasing lock... [2025-03-03 11:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:17:17] Production.INFO: count ==409 [2025-03-03 11:17:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598103', 'tblTempUsageDetail_20' ) start [2025-03-03 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598103', 'tblTempUsageDetail_20' ) end [2025-03-03 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598103', 'tblTempVendorCDR_20' ) start [2025-03-03 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598103', 'tblTempVendorCDR_20' ) end [2025-03-03 11:17:17] Production.INFO: ProcessCDR(1,14598103,1,1,2) [2025-03-03 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598103', 'tblTempUsageDetail_20' ) start [2025-03-03 11:17:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598103', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:17:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:17:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:17:26] Production.INFO: ==12597== Releasing lock... [2025-03-03 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:17:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:18:02] Production.INFO: ==12662== Lock acquired, processing the job... [2025-03-03 16:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:18:02] Production.INFO: neon service started [2025-03-03 16:18:02] Production.INFO: neon service started [2025-03-03 16:18:02] Production.INFO: ==12662== Releasing lock... [2025-03-03 16:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:18:03] Production.INFO: ==12664== Lock acquired, processing the job... [2025-03-03 11:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:18:03] Production.INFO: ==12666== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:18:03] Production.INFO: ==12666== Releasing lock... [2025-03-03 16:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:18:03] Production.INFO: ==12664== Releasing lock... [2025-03-03 11:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:18:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:18:04] Production.INFO: ==12675== Lock acquired, processing the job... [2025-03-03 11:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:18:04] Production.INFO: ==12669== Lock acquired, processing the job... [2025-03-03 11:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:18:04] Production.INFO: ==12679== Lock acquired, processing the job... [2025-03-03 11:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:18:04] Production.INFO: Account Balance Start. [2025-03-03 11:18:04] Production.INFO: CreateAllLog Start [2025-03-03 11:18:04] Production.INFO: 117 [2025-03-03 11:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:18:04] Production.INFO: ==12671== Lock acquired, processing the job... [2025-03-03 11:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:18:04] Production.INFO: ==12673== Lock acquired, processing the job... [2025-03-03 11:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:18:04] Production.INFO: ==12677== Lock acquired, processing the job... [2025-03-03 11:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:18:04] Production.INFO: count ==13 [2025-03-03 11:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:18:04] Production.INFO: count ==21 [2025-03-03 11:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598106') start [2025-03-03 11:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:18:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:18:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:18:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:18:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598106') end [2025-03-03 11:18:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:18:05] Production.INFO: 1 [2025-03-03 11:18:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:18:05] Production.INFO: ==12671== Releasing lock... [2025-03-03 11:18:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:18:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:18:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: ==12679== Releasing lock... [2025-03-03 11:18:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:18:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:18:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.ERROR: done [2025-03-03 11:18:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.ERROR: done [2025-03-03 11:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:18:06] Production.INFO: Total Charge 0 [2025-03-03 11:18:06] Production.INFO: CreateAllLog End [2025-03-03 11:18:06] Production.INFO: Account Balance End. [2025-03-03 11:18:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:18:06] Production.INFO: ==12675== Releasing lock... [2025-03-03 11:18:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:18:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:18:13] Production.ERROR: CronJobId end10 [2025-03-03 11:18:13] Production.INFO: ==12673== Releasing lock... [2025-03-03 11:18:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:18:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:18:16] Production.INFO: call_cost start [2025-03-03 11:18:16] Production.INFO: call_cost end [2025-03-03 11:18:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:18:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:18:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:18:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:18:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:18:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:18:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:18:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:18:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:18:16] Production.INFO: ==12669== Releasing lock... [2025-03-03 11:18:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:18:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:18:18] Production.INFO: count ==409 [2025-03-03 11:18:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598108', 'tblTempUsageDetail_20' ) start [2025-03-03 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598108', 'tblTempUsageDetail_20' ) end [2025-03-03 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598108', 'tblTempVendorCDR_20' ) start [2025-03-03 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598108', 'tblTempVendorCDR_20' ) end [2025-03-03 11:18:18] Production.INFO: ProcessCDR(1,14598108,1,1,2) [2025-03-03 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598108', 'tblTempUsageDetail_20' ) start [2025-03-03 11:18:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598108', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:18:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:18:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:18:26] Production.INFO: ==12677== Releasing lock... [2025-03-03 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:18:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:19:01] Production.INFO: ==12736== Lock acquired, processing the job... [2025-03-03 16:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:19:01] Production.INFO: neon service started [2025-03-03 16:19:01] Production.INFO: neon service started [2025-03-03 16:19:01] Production.INFO: ==12736== Releasing lock... [2025-03-03 16:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:19:02] Production.INFO: ==12740== Lock acquired, processing the job... [2025-03-03 16:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:19:02] Production.INFO: ==12740== Releasing lock... [2025-03-03 16:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:19:02] Production.INFO: ==12738== Lock acquired, processing the job... [2025-03-03 11:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:19:02] Production.INFO: ==12738== Releasing lock... [2025-03-03 11:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:19:03] Production.INFO: ==12743== Lock acquired, processing the job... [2025-03-03 11:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:19:03] Production.INFO: ==12745== Lock acquired, processing the job... [2025-03-03 11:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:19:03] Production.INFO: ==12749== Lock acquired, processing the job... [2025-03-03 11:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:19:03] Production.INFO: Account Balance Start. [2025-03-03 11:19:03] Production.INFO: CreateAllLog Start [2025-03-03 11:19:04] Production.INFO: 117 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: ==12747== Lock acquired, processing the job... [2025-03-03 11:19:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: ==12751== Lock acquired, processing the job... [2025-03-03 11:19:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:19:04] Production.INFO: ==12753== Lock acquired, processing the job... [2025-03-03 11:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: count ==13 [2025-03-03 11:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:19:04] Production.INFO: count ==21 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598112') start [2025-03-03 11:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: ==12745== Releasing lock... [2025-03-03 11:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.ERROR: done [2025-03-03 11:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598112') end [2025-03-03 11:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:19:04] Production.INFO: 1 [2025-03-03 11:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: ==12753== Releasing lock... [2025-03-03 11:19:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:19:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.ERROR: done [2025-03-03 11:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:19:05] Production.INFO: Total Charge 0 [2025-03-03 11:19:05] Production.INFO: CreateAllLog End [2025-03-03 11:19:05] Production.INFO: Account Balance End. [2025-03-03 11:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:19:05] Production.INFO: ==12749== Releasing lock... [2025-03-03 11:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:19:14] Production.ERROR: CronJobId end10 [2025-03-03 11:19:14] Production.INFO: ==12747== Releasing lock... [2025-03-03 11:19:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:19:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:19:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:19:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:19:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:19:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:19:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:19:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:19:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:19:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:19:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:19:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:19:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:19:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:19:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:19:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:19:16] Production.INFO: call_cost start [2025-03-03 11:19:16] Production.INFO: call_cost end [2025-03-03 11:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:19:16] Production.INFO: ==12743== Releasing lock... [2025-03-03 11:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:19:17] Production.INFO: count ==409 [2025-03-03 11:19:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598113', 'tblTempUsageDetail_20' ) start [2025-03-03 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598113', 'tblTempUsageDetail_20' ) end [2025-03-03 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598113', 'tblTempVendorCDR_20' ) start [2025-03-03 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598113', 'tblTempVendorCDR_20' ) end [2025-03-03 11:19:17] Production.INFO: ProcessCDR(1,14598113,1,1,2) [2025-03-03 11:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598113', 'tblTempUsageDetail_20' ) start [2025-03-03 11:19:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598113', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:19:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:19:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:19:26] Production.INFO: ==12751== Releasing lock... [2025-03-03 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:19:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:20:02] Production.INFO: ==12814== Lock acquired, processing the job... [2025-03-03 16:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:20:02] Production.INFO: neon service started [2025-03-03 16:20:02] Production.INFO: neon service started [2025-03-03 16:20:02] Production.INFO: ==12814== Releasing lock... [2025-03-03 16:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:20:02] Production.INFO: ==12818== Lock acquired, processing the job... [2025-03-03 16:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:20:02] Production.INFO: ==12818== Releasing lock... [2025-03-03 16:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:20:02] Production.INFO: ==12816== Lock acquired, processing the job... [2025-03-03 11:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:20:03] Production.INFO: ==12816== Releasing lock... [2025-03-03 11:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:20:04] Production.INFO: ==12821== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 11:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 11:20:04] Production.INFO: ==12825== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 11:20:04] Production.INFO: ==12821== Releasing lock... [2025-03-03 11:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 11:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 11:20:04] Production.INFO: ==12829== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:20:04] Production.INFO: Account Balance Start. [2025-03-03 11:20:04] Production.INFO: CreateAllLog Start [2025-03-03 11:20:04] Production.INFO: 117 [2025-03-03 11:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:20:04] Production.INFO: ==12823== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.INFO: ==12825== Releasing lock... [2025-03-03 11:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:20:04] Production.INFO: ==12835== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:20:04] Production.INFO: ==12827== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:20:04] Production.INFO: ==12831== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.INFO: ==12833== Lock acquired, processing the job... [2025-03-03 11:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 11:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:20:04] Production.INFO: count ==13 [2025-03-03 11:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:20:04] Production.INFO: count ==21 [2025-03-03 11:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598117') start [2025-03-03 11:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598117') end [2025-03-03 11:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:20:05] Production.INFO: 1 [2025-03-03 11:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:20:05] Production.ERROR: done [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:20:05] Production.INFO: ==12835== Releasing lock... [2025-03-03 11:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:20:05] Production.ERROR: done [2025-03-03 11:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 11:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598118', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 11:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.ERROR: done [2025-03-03 11:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:20:05] Production.INFO: Total Charge 0 [2025-03-03 11:20:05] Production.INFO: CreateAllLog End [2025-03-03 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:20:05] Production.INFO: Account Balance End. [2025-03-03 11:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:20:06] Production.INFO: ==12829== Releasing lock... [2025-03-03 11:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598118', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 11:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 11:20:09] Production.INFO: ProcessCDR(1,14598118,1,1,2) [2025-03-03 11:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598118,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598118,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:20:09] Production.INFO: ==12833== Releasing lock... [2025-03-03 11:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 11:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 11:20:14] Production.ERROR: CronJobId end10 [2025-03-03 11:20:14] Production.INFO: ==12827== Releasing lock... [2025-03-03 11:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:20:17] Production.INFO: call_cost start [2025-03-03 11:20:17] Production.INFO: call_cost end [2025-03-03 11:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:20:17] Production.INFO: ==12823== Releasing lock... [2025-03-03 11:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:20:18] Production.INFO: count ==409 [2025-03-03 11:20:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598119', 'tblTempUsageDetail_20' ) start [2025-03-03 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598119', 'tblTempUsageDetail_20' ) end [2025-03-03 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598119', 'tblTempVendorCDR_20' ) start [2025-03-03 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598119', 'tblTempVendorCDR_20' ) end [2025-03-03 11:20:18] Production.INFO: ProcessCDR(1,14598119,1,1,2) [2025-03-03 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598119', 'tblTempUsageDetail_20' ) start [2025-03-03 11:20:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598119', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:20:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:20:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:20:26] Production.INFO: ==12831== Releasing lock... [2025-03-03 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:20:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:21:01] Production.INFO: ==12892== Lock acquired, processing the job... [2025-03-03 16:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:21:02] Production.INFO: neon service started [2025-03-03 16:21:02] Production.INFO: neon service started [2025-03-03 16:21:02] Production.INFO: ==12892== Releasing lock... [2025-03-03 16:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:21:02] Production.INFO: ==12895== Lock acquired, processing the job... [2025-03-03 11:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:21:02] Production.INFO: ==12895== Releasing lock... [2025-03-03 11:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:21:02] Production.INFO: ==12897== Lock acquired, processing the job... [2025-03-03 16:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:21:03] Production.INFO: ==12897== Releasing lock... [2025-03-03 16:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:21:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:21:03] Production.INFO: ==12905== Lock acquired, processing the job... [2025-03-03 11:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:21:03] Production.INFO: ==12909== Lock acquired, processing the job... [2025-03-03 11:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:21:03] Production.INFO: Account Balance Start. [2025-03-03 11:21:03] Production.INFO: CreateAllLog Start [2025-03-03 11:21:03] Production.INFO: 117 [2025-03-03 11:21:03] Production.INFO: ==12899== Lock acquired, processing the job... [2025-03-03 11:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: ==12901== Lock acquired, processing the job... [2025-03-03 11:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:21:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:21:04] Production.INFO: count ==13 [2025-03-03 11:21:04] Production.INFO: ==12903== Lock acquired, processing the job... [2025-03-03 11:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:21:04] Production.INFO: ==12907== Lock acquired, processing the job... [2025-03-03 11:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:21:04] Production.INFO: count ==21 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598121') start [2025-03-03 11:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598121') end [2025-03-03 11:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:21:04] Production.INFO: 1 [2025-03-03 11:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:21:04] Production.INFO: ==12909== Releasing lock... [2025-03-03 11:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: ==12901== Releasing lock... [2025-03-03 11:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.ERROR: done [2025-03-03 11:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.ERROR: done [2025-03-03 11:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:21:05] Production.INFO: Total Charge 0 [2025-03-03 11:21:05] Production.INFO: CreateAllLog End [2025-03-03 11:21:05] Production.INFO: Account Balance End. [2025-03-03 11:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:21:05] Production.INFO: ==12905== Releasing lock... [2025-03-03 11:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:21:12] Production.ERROR: CronJobId end10 [2025-03-03 11:21:12] Production.INFO: ==12903== Releasing lock... [2025-03-03 11:21:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:21:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:21:15] Production.INFO: call_cost start [2025-03-03 11:21:15] Production.INFO: call_cost end [2025-03-03 11:21:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:21:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:21:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:21:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:21:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:21:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:21:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:21:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:21:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:21:15] Production.INFO: ==12899== Releasing lock... [2025-03-03 11:21:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:21:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:21:17] Production.INFO: count ==409 [2025-03-03 11:21:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598124', 'tblTempUsageDetail_20' ) start [2025-03-03 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598124', 'tblTempUsageDetail_20' ) end [2025-03-03 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598124', 'tblTempVendorCDR_20' ) start [2025-03-03 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598124', 'tblTempVendorCDR_20' ) end [2025-03-03 11:21:17] Production.INFO: ProcessCDR(1,14598124,1,1,2) [2025-03-03 11:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598124', 'tblTempUsageDetail_20' ) start [2025-03-03 11:21:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598124', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:21:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:21:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:21:26] Production.INFO: ==12907== Releasing lock... [2025-03-03 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:21:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:22:01] Production.INFO: ==12968== Lock acquired, processing the job... [2025-03-03 16:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:22:01] Production.INFO: neon service started [2025-03-03 16:22:01] Production.INFO: neon service started [2025-03-03 16:22:01] Production.INFO: ==12968== Releasing lock... [2025-03-03 16:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:22:01] Production.INFO: ==12970== Lock acquired, processing the job... [2025-03-03 11:22:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:22:02] Production.INFO: ==12972== Lock acquired, processing the job... [2025-03-03 16:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:22:02] Production.INFO: ==12970== Releasing lock... [2025-03-03 11:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:22:02] Production.INFO: ==12972== Releasing lock... [2025-03-03 16:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:22:03] Production.INFO: ==12981== Lock acquired, processing the job... [2025-03-03 11:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:22:03] Production.INFO: ==12985== Lock acquired, processing the job... [2025-03-03 11:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:22:03] Production.INFO: Account Balance Start. [2025-03-03 11:22:03] Production.INFO: CreateAllLog Start [2025-03-03 11:22:03] Production.INFO: 117 [2025-03-03 11:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: ==12974== Lock acquired, processing the job... [2025-03-03 11:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:22:03] Production.INFO: count ==13 [2025-03-03 11:22:03] Production.INFO: Date 2025-02-11 [2025-03-03 11:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:22:03] Production.INFO: count ==21 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: ==12979== Lock acquired, processing the job... [2025-03-03 11:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:22:03] Production.INFO: Date 2025-02-12 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: ==12977== Lock acquired, processing the job... [2025-03-03 11:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598126') start [2025-03-03 11:22:03] Production.INFO: Date 2025-02-13 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: ==12983== Lock acquired, processing the job... [2025-03-03 11:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:22:03] Production.INFO: Date 2025-02-14 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.INFO: Date 2025-02-15 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:22:03] Production.INFO: Date 2025-02-16 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:22:03] Production.INFO: Date 2025-02-17 [2025-03-03 11:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598126') end [2025-03-03 11:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:22:04] Production.INFO: 1 [2025-03-03 11:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: ==12985== Releasing lock... [2025-03-03 11:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: ==12977== Releasing lock... [2025-03-03 11:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:22:04] Production.ERROR: done [2025-03-03 11:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.ERROR: done [2025-03-03 11:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-03-02 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Date 2025-03-03 [2025-03-03 11:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:22:04] Production.INFO: Total Charge 0 [2025-03-03 11:22:04] Production.INFO: CreateAllLog End [2025-03-03 11:22:05] Production.INFO: Account Balance End. [2025-03-03 11:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:22:05] Production.INFO: ==12981== Releasing lock... [2025-03-03 11:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:22:13] Production.ERROR: CronJobId end10 [2025-03-03 11:22:13] Production.INFO: ==12979== Releasing lock... [2025-03-03 11:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:22:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:22:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:22:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:22:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:22:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:22:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:22:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:22:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:22:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:22:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:22:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:22:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:22:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:22:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:22:16] Production.INFO: call_cost start [2025-03-03 11:22:16] Production.INFO: call_cost end [2025-03-03 11:22:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:22:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:22:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:22:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:22:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:22:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:22:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:22:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:22:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:22:16] Production.INFO: ==12974== Releasing lock... [2025-03-03 11:22:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:22:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:22:16] Production.INFO: count ==409 [2025-03-03 11:22:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598129', 'tblTempUsageDetail_20' ) start [2025-03-03 11:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598129', 'tblTempUsageDetail_20' ) end [2025-03-03 11:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598129', 'tblTempVendorCDR_20' ) start [2025-03-03 11:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598129', 'tblTempVendorCDR_20' ) end [2025-03-03 11:22:16] Production.INFO: ProcessCDR(1,14598129,1,1,2) [2025-03-03 11:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598129', 'tblTempUsageDetail_20' ) start [2025-03-03 11:22:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598129', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:22:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:22:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:22:25] Production.INFO: ==12983== Releasing lock... [2025-03-03 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:22:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:23:02] Production.INFO: ==13042== Lock acquired, processing the job... [2025-03-03 16:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:23:02] Production.INFO: neon service started [2025-03-03 16:23:02] Production.INFO: neon service started [2025-03-03 16:23:02] Production.INFO: ==13042== Releasing lock... [2025-03-03 16:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:23:02] Production.INFO: ==13045== Lock acquired, processing the job... [2025-03-03 11:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:23:02] Production.INFO: ==13047== Lock acquired, processing the job... [2025-03-03 16:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:23:02] Production.INFO: ==13047== Releasing lock... [2025-03-03 16:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:23:03] Production.INFO: ==13045== Releasing lock... [2025-03-03 11:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:23:04] Production.INFO: ==13051== Lock acquired, processing the job... [2025-03-03 11:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:23:04] Production.INFO: ==13053== Lock acquired, processing the job... [2025-03-03 11:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:23:04] Production.INFO: ==13049== Lock acquired, processing the job... [2025-03-03 11:23:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:23:04] Production.INFO: ==13057== Lock acquired, processing the job... [2025-03-03 11:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:23:04] Production.INFO: ==13051== Releasing lock... [2025-03-03 11:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:23:04] Production.INFO: ==13055== Lock acquired, processing the job... [2025-03-03 11:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:23:04] Production.INFO: ==13059== Lock acquired, processing the job... [2025-03-03 11:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:23:04] Production.INFO: Account Balance Start. [2025-03-03 11:23:04] Production.INFO: CreateAllLog Start [2025-03-03 11:23:04] Production.INFO: 117 [2025-03-03 11:23:04] Production.ERROR: done [2025-03-03 11:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:23:04] Production.INFO: count ==13 [2025-03-03 11:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:23:04] Production.INFO: count ==21 [2025-03-03 11:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598132') start [2025-03-03 11:23:04] Production.ERROR: done [2025-03-03 11:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598132') end [2025-03-03 11:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:23:04] Production.INFO: 1 [2025-03-03 11:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:23:05] Production.INFO: ==13059== Releasing lock... [2025-03-03 11:23:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:23:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:23:05] Production.INFO: Date 2025-02-10 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:23:05] Production.INFO: Date 2025-02-11 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-02-24 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-02-25 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-02-26 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-02-27 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-02-28 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-03-01 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-03-02 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Date 2025-03-03 [2025-03-03 11:23:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:23:06] Production.INFO: Total Charge 0 [2025-03-03 11:23:06] Production.INFO: CreateAllLog End [2025-03-03 11:23:06] Production.INFO: Account Balance End. [2025-03-03 11:23:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:23:06] Production.INFO: ==13055== Releasing lock... [2025-03-03 11:23:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:23:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:23:13] Production.ERROR: CronJobId end10 [2025-03-03 11:23:13] Production.INFO: ==13053== Releasing lock... [2025-03-03 11:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:23:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:23:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:23:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:23:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:23:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:23:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:23:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:23:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:23:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:23:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:23:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:23:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:23:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:23:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:23:16] Production.INFO: call_cost start [2025-03-03 11:23:16] Production.INFO: call_cost end [2025-03-03 11:23:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:23:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:23:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:23:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:23:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:23:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:23:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:23:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:23:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:23:16] Production.INFO: ==13049== Releasing lock... [2025-03-03 11:23:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:23:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:23:17] Production.INFO: count ==409 [2025-03-03 11:23:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598134', 'tblTempUsageDetail_20' ) start [2025-03-03 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598134', 'tblTempUsageDetail_20' ) end [2025-03-03 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598134', 'tblTempVendorCDR_20' ) start [2025-03-03 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598134', 'tblTempVendorCDR_20' ) end [2025-03-03 11:23:17] Production.INFO: ProcessCDR(1,14598134,1,1,2) [2025-03-03 11:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598134', 'tblTempUsageDetail_20' ) start [2025-03-03 11:23:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598134', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:23:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:23:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:23:25] Production.INFO: ==13057== Releasing lock... [2025-03-03 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:23:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:24:01] Production.INFO: ==13117== Lock acquired, processing the job... [2025-03-03 16:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:24:01] Production.INFO: neon service started [2025-03-03 16:24:01] Production.INFO: neon service started [2025-03-03 16:24:01] Production.INFO: ==13117== Releasing lock... [2025-03-03 16:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:24:02] Production.INFO: ==13122== Lock acquired, processing the job... [2025-03-03 16:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:24:02] Production.INFO: ==13122== Releasing lock... [2025-03-03 16:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:24:02] Production.INFO: ==13120== Lock acquired, processing the job... [2025-03-03 11:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:24:02] Production.INFO: ==13120== Releasing lock... [2025-03-03 11:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:24:03] Production.INFO: ==13130== Lock acquired, processing the job... [2025-03-03 11:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:24:03] Production.INFO: ==13134== Lock acquired, processing the job... [2025-03-03 11:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:24:03] Production.INFO: ==13124== Lock acquired, processing the job... [2025-03-03 11:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:24:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:24:03] Production.INFO: Account Balance Start. [2025-03-03 11:24:03] Production.INFO: CreateAllLog Start [2025-03-03 11:24:03] Production.INFO: 117 [2025-03-03 11:24:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:24:03] Production.INFO: ==13126== Lock acquired, processing the job... [2025-03-03 11:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:24:04] Production.INFO: count ==13 [2025-03-03 11:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:24:04] Production.INFO: count ==21 [2025-03-03 11:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598136') start [2025-03-03 11:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: ==13128== Lock acquired, processing the job... [2025-03-03 11:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598136') end [2025-03-03 11:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:24:04] Production.INFO: 1 [2025-03-03 11:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: ==13134== Releasing lock... [2025-03-03 11:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: ==13132== Lock acquired, processing the job... [2025-03-03 11:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: ==13126== Releasing lock... [2025-03-03 11:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.ERROR: done [2025-03-03 11:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:05] Production.ERROR: done [2025-03-03 11:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:24:05] Production.INFO: Total Charge 0 [2025-03-03 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:24:05] Production.INFO: CreateAllLog End [2025-03-03 11:24:05] Production.INFO: Account Balance End. [2025-03-03 11:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:24:05] Production.INFO: ==13130== Releasing lock... [2025-03-03 11:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:24:13] Production.ERROR: CronJobId end10 [2025-03-03 11:24:13] Production.INFO: ==13128== Releasing lock... [2025-03-03 11:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:24:15] Production.INFO: call_cost start [2025-03-03 11:24:15] Production.INFO: call_cost end [2025-03-03 11:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:24:15] Production.INFO: ==13124== Releasing lock... [2025-03-03 11:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:24:17] Production.INFO: count ==409 [2025-03-03 11:24:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598139', 'tblTempUsageDetail_20' ) start [2025-03-03 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598139', 'tblTempUsageDetail_20' ) end [2025-03-03 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598139', 'tblTempVendorCDR_20' ) start [2025-03-03 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598139', 'tblTempVendorCDR_20' ) end [2025-03-03 11:24:17] Production.INFO: ProcessCDR(1,14598139,1,1,2) [2025-03-03 11:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598139', 'tblTempUsageDetail_20' ) start [2025-03-03 11:24:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598139', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:24:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:24:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:24:26] Production.INFO: ==13132== Releasing lock... [2025-03-03 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:24:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:25:02] Production.INFO: ==13188== Lock acquired, processing the job... [2025-03-03 16:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:25:02] Production.INFO: neon service started [2025-03-03 16:25:02] Production.INFO: neon service started [2025-03-03 16:25:02] Production.INFO: ==13188== Releasing lock... [2025-03-03 16:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:25:02] Production.INFO: ==13190== Lock acquired, processing the job... [2025-03-03 11:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:25:02] Production.INFO: ==13190== Releasing lock... [2025-03-03 11:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:25:03] Production.INFO: ==13192== Lock acquired, processing the job... [2025-03-03 16:25:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:25:03] Production.INFO: ==13192== Releasing lock... [2025-03-03 16:25:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:25:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:25:03] Production.INFO: ==13197== Lock acquired, processing the job... [2025-03-03 11:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:25:04] Production.INFO: ==13205== Lock acquired, processing the job... [2025-03-03 11:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:25:04] Production.INFO: ==13195== Lock acquired, processing the job... [2025-03-03 11:25:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:25:04] Production.INFO: ==13199== Lock acquired, processing the job... [2025-03-03 11:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:25:04] Production.INFO: ==13201== Lock acquired, processing the job... [2025-03-03 11:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:25:04] Production.INFO: count ==13 [2025-03-03 11:25:04] Production.INFO: ==13197== Releasing lock... [2025-03-03 11:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:25:04] Production.INFO: ==13203== Lock acquired, processing the job... [2025-03-03 11:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:25:04] Production.INFO: count ==21 [2025-03-03 11:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598141') start [2025-03-03 11:25:04] Production.INFO: Account Balance Start. [2025-03-03 11:25:04] Production.INFO: CreateAllLog Start [2025-03-03 11:25:04] Production.INFO: 117 [2025-03-03 11:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598141') end [2025-03-03 11:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:25:04] Production.INFO: 1 [2025-03-03 11:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: ==13205== Releasing lock... [2025-03-03 11:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:25:04] Production.ERROR: done [2025-03-03 11:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:04] Production.ERROR: done [2025-03-03 11:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:25:05] Production.INFO: Total Charge 0 [2025-03-03 11:25:05] Production.INFO: CreateAllLog End [2025-03-03 11:25:05] Production.INFO: Account Balance End. [2025-03-03 11:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:25:05] Production.INFO: ==13201== Releasing lock... [2025-03-03 11:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:25:12] Production.ERROR: CronJobId end10 [2025-03-03 11:25:12] Production.INFO: ==13199== Releasing lock... [2025-03-03 11:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:25:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:25:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:25:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:25:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:25:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:25:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:25:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:25:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:25:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:25:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:25:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:25:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:25:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:25:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:25:16] Production.INFO: call_cost start [2025-03-03 11:25:16] Production.INFO: call_cost end [2025-03-03 11:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:25:16] Production.INFO: ==13195== Releasing lock... [2025-03-03 11:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:25:17] Production.INFO: count ==409 [2025-03-03 11:25:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598144', 'tblTempUsageDetail_20' ) start [2025-03-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598144', 'tblTempUsageDetail_20' ) end [2025-03-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598144', 'tblTempVendorCDR_20' ) start [2025-03-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598144', 'tblTempVendorCDR_20' ) end [2025-03-03 11:25:17] Production.INFO: ProcessCDR(1,14598144,1,1,2) [2025-03-03 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598144', 'tblTempUsageDetail_20' ) start [2025-03-03 11:25:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598144', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:25:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:25:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:25:26] Production.INFO: ==13203== Releasing lock... [2025-03-03 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:26:01] Production.INFO: ==13301== Lock acquired, processing the job... [2025-03-03 16:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:26:01] Production.INFO: neon service started [2025-03-03 16:26:01] Production.INFO: neon service started [2025-03-03 16:26:01] Production.INFO: ==13301== Releasing lock... [2025-03-03 16:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:26:02] Production.INFO: ==13303== Lock acquired, processing the job... [2025-03-03 11:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:26:02] Production.INFO: ==13305== Lock acquired, processing the job... [2025-03-03 16:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:26:02] Production.INFO: ==13305== Releasing lock... [2025-03-03 16:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:26:03] Production.INFO: ==13303== Releasing lock... [2025-03-03 11:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:26:03] Production.INFO: ==13308== Lock acquired, processing the job... [2025-03-03 11:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:26:04] Production.INFO: ==13310== Lock acquired, processing the job... [2025-03-03 11:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:26:04] Production.INFO: ==13312== Lock acquired, processing the job... [2025-03-03 11:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:26:04] Production.INFO: ==13314== Lock acquired, processing the job... [2025-03-03 11:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:26:04] Production.INFO: ==13319== Lock acquired, processing the job... [2025-03-03 11:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:26:04] Production.INFO: Account Balance Start. [2025-03-03 11:26:04] Production.INFO: CreateAllLog Start [2025-03-03 11:26:04] Production.INFO: 117 [2025-03-03 11:26:04] Production.INFO: ==13316== Lock acquired, processing the job... [2025-03-03 11:26:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:26:04] Production.INFO: count ==13 [2025-03-03 11:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:26:04] Production.INFO: count ==21 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598148') start [2025-03-03 11:26:04] Production.INFO: ==13310== Releasing lock... [2025-03-03 11:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598148') end [2025-03-03 11:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:26:04] Production.INFO: 1 [2025-03-03 11:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.INFO: ==13319== Releasing lock... [2025-03-03 11:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:26:04] Production.ERROR: done [2025-03-03 11:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.ERROR: done [2025-03-03 11:26:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:26:05] Production.INFO: Total Charge 0 [2025-03-03 11:26:05] Production.INFO: CreateAllLog End [2025-03-03 11:26:05] Production.INFO: Account Balance End. [2025-03-03 11:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:26:05] Production.INFO: ==13314== Releasing lock... [2025-03-03 11:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:26:12] Production.ERROR: CronJobId end10 [2025-03-03 11:26:12] Production.INFO: ==13312== Releasing lock... [2025-03-03 11:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:26:15] Production.INFO: call_cost start [2025-03-03 11:26:15] Production.INFO: call_cost end [2025-03-03 11:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:26:15] Production.INFO: ==13308== Releasing lock... [2025-03-03 11:26:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:26:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:26:17] Production.INFO: count ==409 [2025-03-03 11:26:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598149', 'tblTempUsageDetail_20' ) start [2025-03-03 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598149', 'tblTempUsageDetail_20' ) end [2025-03-03 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598149', 'tblTempVendorCDR_20' ) start [2025-03-03 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598149', 'tblTempVendorCDR_20' ) end [2025-03-03 11:26:17] Production.INFO: ProcessCDR(1,14598149,1,1,2) [2025-03-03 11:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598149', 'tblTempUsageDetail_20' ) start [2025-03-03 11:26:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598149', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:26:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:26:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:26:26] Production.INFO: ==13316== Releasing lock... [2025-03-03 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:26:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:27:02] Production.INFO: ==13376== Lock acquired, processing the job... [2025-03-03 16:27:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:27:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:27:02] Production.INFO: neon service started [2025-03-03 16:27:02] Production.INFO: neon service started [2025-03-03 16:27:02] Production.INFO: ==13376== Releasing lock... [2025-03-03 16:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:27:02] Production.INFO: ==13380== Lock acquired, processing the job... [2025-03-03 16:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:27:02] Production.INFO: ==13380== Releasing lock... [2025-03-03 16:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:27:02] Production.INFO: ==13378== Lock acquired, processing the job... [2025-03-03 11:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:27:03] Production.INFO: ==13378== Releasing lock... [2025-03-03 11:27:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:27:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:27:04] Production.INFO: ==13383== Lock acquired, processing the job... [2025-03-03 11:27:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:27:04] Production.INFO: ==13385== Lock acquired, processing the job... [2025-03-03 11:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:27:04] Production.INFO: ==13389== Lock acquired, processing the job... [2025-03-03 11:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:27:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:27:04] Production.INFO: Account Balance Start. [2025-03-03 11:27:04] Production.INFO: CreateAllLog Start [2025-03-03 11:27:04] Production.INFO: 117 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: ==13385== Releasing lock... [2025-03-03 11:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: ==13387== Lock acquired, processing the job... [2025-03-03 11:27:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:27:04] Production.INFO: ==13391== Lock acquired, processing the job... [2025-03-03 11:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:27:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:27:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:27:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:27:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: ==13393== Lock acquired, processing the job... [2025-03-03 11:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:27:05] Production.ERROR: done [2025-03-03 11:27:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: count ==13 [2025-03-03 11:27:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:27:05] Production.INFO: count ==21 [2025-03-03 11:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:27:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598153') start [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.ERROR: done [2025-03-03 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598153') end [2025-03-03 11:27:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:27:05] Production.INFO: 1 [2025-03-03 11:27:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:27:05] Production.INFO: ==13393== Releasing lock... [2025-03-03 11:27:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:27:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:27:05] Production.INFO: Total Charge 0 [2025-03-03 11:27:05] Production.INFO: CreateAllLog End [2025-03-03 11:27:05] Production.INFO: Account Balance End. [2025-03-03 11:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:27:05] Production.INFO: ==13389== Releasing lock... [2025-03-03 11:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:27:13] Production.ERROR: CronJobId end10 [2025-03-03 11:27:13] Production.INFO: ==13387== Releasing lock... [2025-03-03 11:27:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:27:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:27:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:27:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:27:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:27:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:27:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:27:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:27:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:27:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:27:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:27:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:27:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:27:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:27:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:27:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:27:15] Production.INFO: call_cost start [2025-03-03 11:27:15] Production.INFO: call_cost end [2025-03-03 11:27:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:27:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:27:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:27:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:27:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:27:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:27:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:27:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:27:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:27:15] Production.INFO: ==13383== Releasing lock... [2025-03-03 11:27:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:27:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:27:17] Production.INFO: count ==409 [2025-03-03 11:27:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598154', 'tblTempUsageDetail_20' ) start [2025-03-03 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598154', 'tblTempUsageDetail_20' ) end [2025-03-03 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598154', 'tblTempVendorCDR_20' ) start [2025-03-03 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598154', 'tblTempVendorCDR_20' ) end [2025-03-03 11:27:17] Production.INFO: ProcessCDR(1,14598154,1,1,2) [2025-03-03 11:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598154', 'tblTempUsageDetail_20' ) start [2025-03-03 11:27:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598154', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:27:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:27:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:27:26] Production.INFO: ==13391== Releasing lock... [2025-03-03 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:27:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:28:02] Production.INFO: ==13446== Lock acquired, processing the job... [2025-03-03 16:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:28:02] Production.INFO: neon service started [2025-03-03 16:28:02] Production.INFO: neon service started [2025-03-03 16:28:02] Production.INFO: ==13446== Releasing lock... [2025-03-03 16:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:28:02] Production.INFO: ==13449== Lock acquired, processing the job... [2025-03-03 11:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:28:02] Production.INFO: ==13449== Releasing lock... [2025-03-03 11:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:28:02] Production.INFO: ==13451== Lock acquired, processing the job... [2025-03-03 16:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:28:03] Production.INFO: ==13451== Releasing lock... [2025-03-03 16:28:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:28:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:28:03] Production.INFO: ==13455== Lock acquired, processing the job... [2025-03-03 11:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:28:03] Production.INFO: ==13455== Releasing lock... [2025-03-03 11:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:28:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:28:04] Production.INFO: ==13453== Lock acquired, processing the job... [2025-03-03 11:28:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:28:04] Production.INFO: ==13457== Lock acquired, processing the job... [2025-03-03 11:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:28:04] Production.INFO: ==13463== Lock acquired, processing the job... [2025-03-03 11:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:28:04] Production.INFO: ==13459== Lock acquired, processing the job... [2025-03-03 11:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:28:04] Production.INFO: ==13461== Lock acquired, processing the job... [2025-03-03 11:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:28:04] Production.INFO: count ==13 [2025-03-03 11:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:28:04] Production.INFO: count ==21 [2025-03-03 11:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598157') start [2025-03-03 11:28:04] Production.INFO: Account Balance Start. [2025-03-03 11:28:04] Production.INFO: CreateAllLog Start [2025-03-03 11:28:04] Production.INFO: 117 [2025-03-03 11:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598157') end [2025-03-03 11:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:28:04] Production.INFO: 1 [2025-03-03 11:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:28:04] Production.INFO: ==13463== Releasing lock... [2025-03-03 11:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:28:04] Production.ERROR: done [2025-03-03 11:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.ERROR: done [2025-03-03 11:28:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:28:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:28:05] Production.INFO: Total Charge 0 [2025-03-03 11:28:05] Production.INFO: CreateAllLog End [2025-03-03 11:28:05] Production.INFO: Account Balance End. [2025-03-03 11:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:28:05] Production.INFO: ==13459== Releasing lock... [2025-03-03 11:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:28:13] Production.ERROR: CronJobId end10 [2025-03-03 11:28:13] Production.INFO: ==13457== Releasing lock... [2025-03-03 11:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:28:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:28:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:28:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:28:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:28:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:28:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:28:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:28:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:28:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:28:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:28:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:28:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:28:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:28:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:28:16] Production.INFO: call_cost start [2025-03-03 11:28:16] Production.INFO: call_cost end [2025-03-03 11:28:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:28:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:28:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:28:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:28:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:28:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:28:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:28:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:28:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:28:16] Production.INFO: ==13453== Releasing lock... [2025-03-03 11:28:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:28:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:28:17] Production.INFO: count ==409 [2025-03-03 11:28:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598159', 'tblTempUsageDetail_20' ) start [2025-03-03 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598159', 'tblTempUsageDetail_20' ) end [2025-03-03 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598159', 'tblTempVendorCDR_20' ) start [2025-03-03 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598159', 'tblTempVendorCDR_20' ) end [2025-03-03 11:28:17] Production.INFO: ProcessCDR(1,14598159,1,1,2) [2025-03-03 11:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598159', 'tblTempUsageDetail_20' ) start [2025-03-03 11:28:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598159', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:28:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:28:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:28:26] Production.INFO: ==13461== Releasing lock... [2025-03-03 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:28:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:29:01] Production.INFO: ==13519== Lock acquired, processing the job... [2025-03-03 16:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:29:02] Production.INFO: neon service started [2025-03-03 16:29:02] Production.INFO: neon service started [2025-03-03 16:29:02] Production.INFO: ==13519== Releasing lock... [2025-03-03 16:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:29:02] Production.INFO: ==13524== Lock acquired, processing the job... [2025-03-03 16:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:29:02] Production.INFO: ==13524== Releasing lock... [2025-03-03 16:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:29:02] Production.INFO: ==13522== Lock acquired, processing the job... [2025-03-03 11:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:29:03] Production.INFO: ==13522== Releasing lock... [2025-03-03 11:29:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:29:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:29:04] Production.INFO: ==13535== Lock acquired, processing the job... [2025-03-03 11:29:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:29:04] Production.INFO: ==13533== Lock acquired, processing the job... [2025-03-03 11:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:29:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:29:04] Production.INFO: ==13527== Lock acquired, processing the job... [2025-03-03 11:29:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:29:04] Production.INFO: Account Balance Start. [2025-03-03 11:29:04] Production.INFO: CreateAllLog Start [2025-03-03 11:29:04] Production.INFO: 117 [2025-03-03 11:29:04] Production.ERROR: done [2025-03-03 11:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:29:04] Production.INFO: ==13529== Lock acquired, processing the job... [2025-03-03 11:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:29:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.INFO: ==13531== Lock acquired, processing the job... [2025-03-03 11:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:29:04] Production.INFO: ==13537== Lock acquired, processing the job... [2025-03-03 11:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:29:04] Production.ERROR: done [2025-03-03 11:29:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:29:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:29:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:29:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:29:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.INFO: count ==13 [2025-03-03 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:29:04] Production.INFO: count ==21 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598164') start [2025-03-03 11:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598164') end [2025-03-03 11:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:29:04] Production.INFO: 1 [2025-03-03 11:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:29:05] Production.INFO: ==13529== Releasing lock... [2025-03-03 11:29:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:29:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:29:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: ==13537== Releasing lock... [2025-03-03 11:29:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:29:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:29:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:29:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:06] Production.INFO: Date 2025-02-27 [2025-03-03 11:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:06] Production.INFO: Date 2025-02-28 [2025-03-03 11:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:06] Production.INFO: Date 2025-03-01 [2025-03-03 11:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:06] Production.INFO: Date 2025-03-02 [2025-03-03 11:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:06] Production.INFO: Date 2025-03-03 [2025-03-03 11:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:29:06] Production.INFO: Total Charge 0 [2025-03-03 11:29:06] Production.INFO: CreateAllLog End [2025-03-03 11:29:06] Production.INFO: Account Balance End. [2025-03-03 11:29:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:29:06] Production.INFO: ==13533== Releasing lock... [2025-03-03 11:29:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:29:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:29:13] Production.ERROR: CronJobId end10 [2025-03-03 11:29:13] Production.INFO: ==13531== Releasing lock... [2025-03-03 11:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:29:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:29:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:29:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:29:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:29:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:29:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:29:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:29:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:29:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:29:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:29:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:29:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:29:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:29:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:29:16] Production.INFO: call_cost start [2025-03-03 11:29:16] Production.INFO: call_cost end [2025-03-03 11:29:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:29:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:29:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:29:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:29:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:29:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:29:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:29:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:29:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:29:16] Production.INFO: ==13527== Releasing lock... [2025-03-03 11:29:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:29:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:29:17] Production.INFO: count ==409 [2025-03-03 11:29:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598163', 'tblTempUsageDetail_20' ) start [2025-03-03 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598163', 'tblTempUsageDetail_20' ) end [2025-03-03 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598163', 'tblTempVendorCDR_20' ) start [2025-03-03 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598163', 'tblTempVendorCDR_20' ) end [2025-03-03 11:29:17] Production.INFO: ProcessCDR(1,14598163,1,1,2) [2025-03-03 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598163', 'tblTempUsageDetail_20' ) start [2025-03-03 11:29:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598163', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:29:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:29:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:29:26] Production.INFO: ==13535== Releasing lock... [2025-03-03 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:29:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:30:01] Production.INFO: ==13600== Lock acquired, processing the job... [2025-03-03 16:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:30:01] Production.INFO: neon service started [2025-03-03 16:30:01] Production.INFO: neon service started [2025-03-03 16:30:01] Production.INFO: ==13600== Releasing lock... [2025-03-03 16:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:30:02] Production.INFO: ==13602== Lock acquired, processing the job... [2025-03-03 11:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:30:02] Production.INFO: ==13604== Lock acquired, processing the job... [2025-03-03 16:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:30:02] Production.INFO: ==13604== Releasing lock... [2025-03-03 16:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:30:02] Production.INFO: ==13602== Releasing lock... [2025-03-03 11:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:30:03] Production.INFO: ==13607== Lock acquired, processing the job... [2025-03-03 11:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 11:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 11:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 11:30:03] Production.INFO: ==13607== Releasing lock... [2025-03-03 11:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 11:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 11:30:03] Production.INFO: ==13609== Lock acquired, processing the job... [2025-03-03 11:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:30:04] Production.INFO: ==13615== Lock acquired, processing the job... [2025-03-03 11:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:30:04] Production.INFO: Account Balance Start. [2025-03-03 11:30:04] Production.INFO: CreateAllLog Start [2025-03-03 11:30:04] Production.INFO: 117 [2025-03-03 11:30:04] Production.INFO: ==13619== Lock acquired, processing the job... [2025-03-03 11:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 11:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:30:04] Production.INFO: ==13611== Lock acquired, processing the job... [2025-03-03 11:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.INFO: ==13613== Lock acquired, processing the job... [2025-03-03 11:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.INFO: ==13617== Lock acquired, processing the job... [2025-03-03 11:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:30:04] Production.INFO: ==13621== Lock acquired, processing the job... [2025-03-03 11:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:30:04] Production.INFO: count ==13 [2025-03-03 11:30:04] Production.ERROR: done [2025-03-03 11:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:30:04] Production.INFO: count ==21 [2025-03-03 11:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598168') start [2025-03-03 11:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 11:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598169', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 11:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: ==13611== Releasing lock... [2025-03-03 11:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598168') end [2025-03-03 11:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:30:05] Production.INFO: 1 [2025-03-03 11:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: ==13621== Releasing lock... [2025-03-03 11:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:30:05] Production.ERROR: done [2025-03-03 11:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.ERROR: done [2025-03-03 11:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:30:06] Production.INFO: Date 2025-02-26 [2025-03-03 11:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:06] Production.INFO: Date 2025-02-27 [2025-03-03 11:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:06] Production.INFO: Date 2025-02-28 [2025-03-03 11:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:06] Production.INFO: Date 2025-03-01 [2025-03-03 11:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 11:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 11:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:30:06] Production.INFO: Total Charge 0 [2025-03-03 11:30:06] Production.INFO: CreateAllLog End [2025-03-03 11:30:06] Production.INFO: Account Balance End. [2025-03-03 11:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:30:06] Production.INFO: ==13615== Releasing lock... [2025-03-03 11:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:30:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598169', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 11:30:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 11:30:10] Production.INFO: ProcessCDR(1,14598169,1,1,2) [2025-03-03 11:30:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598169,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:30:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598169,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:30:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:30:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:30:10] Production.INFO: ==13619== Releasing lock... [2025-03-03 11:30:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 11:30:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 11:30:15] Production.ERROR: CronJobId end10 [2025-03-03 11:30:15] Production.INFO: ==13613== Releasing lock... [2025-03-03 11:30:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:30:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:30:17] Production.INFO: call_cost start [2025-03-03 11:30:17] Production.INFO: call_cost end [2025-03-03 11:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:30:17] Production.INFO: ==13609== Releasing lock... [2025-03-03 11:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:30:18] Production.INFO: count ==409 [2025-03-03 11:30:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598170', 'tblTempUsageDetail_20' ) start [2025-03-03 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598170', 'tblTempUsageDetail_20' ) end [2025-03-03 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598170', 'tblTempVendorCDR_20' ) start [2025-03-03 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598170', 'tblTempVendorCDR_20' ) end [2025-03-03 11:30:18] Production.INFO: ProcessCDR(1,14598170,1,1,2) [2025-03-03 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598170', 'tblTempUsageDetail_20' ) start [2025-03-03 11:30:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598170', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:30:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:30:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:30:26] Production.INFO: ==13617== Releasing lock... [2025-03-03 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:30:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:31:01] Production.INFO: ==13678== Lock acquired, processing the job... [2025-03-03 16:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:31:01] Production.INFO: neon service started [2025-03-03 16:31:01] Production.INFO: neon service started [2025-03-03 16:31:01] Production.INFO: ==13678== Releasing lock... [2025-03-03 16:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:31:02] Production.INFO: ==13682== Lock acquired, processing the job... [2025-03-03 16:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:31:02] Production.INFO: ==13680== Lock acquired, processing the job... [2025-03-03 11:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:31:02] Production.INFO: ==13682== Releasing lock... [2025-03-03 16:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:31:02] Production.INFO: ==13680== Releasing lock... [2025-03-03 11:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:31:03] Production.INFO: ==13691== Lock acquired, processing the job... [2025-03-03 11:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:31:03] Production.INFO: ==13685== Lock acquired, processing the job... [2025-03-03 11:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:31:03] Production.INFO: ==13687== Lock acquired, processing the job... [2025-03-03 11:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:31:03] Production.INFO: ==13689== Lock acquired, processing the job... [2025-03-03 11:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:31:03] Production.INFO: ==13695== Lock acquired, processing the job... [2025-03-03 11:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:31:03] Production.INFO: Account Balance Start. [2025-03-03 11:31:03] Production.INFO: CreateAllLog Start [2025-03-03 11:31:03] Production.INFO: 117 [2025-03-03 11:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:31:03] Production.INFO: count ==13 [2025-03-03 11:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:31:04] Production.INFO: ==13693== Lock acquired, processing the job... [2025-03-03 11:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:31:04] Production.INFO: count ==21 [2025-03-03 11:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598174') start [2025-03-03 11:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598174') end [2025-03-03 11:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:31:04] Production.INFO: 1 [2025-03-03 11:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: ==13695== Releasing lock... [2025-03-03 11:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:31:04] Production.INFO: ==13687== Releasing lock... [2025-03-03 11:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.ERROR: done [2025-03-03 11:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.ERROR: done [2025-03-03 11:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:31:05] Production.INFO: Total Charge 0 [2025-03-03 11:31:05] Production.INFO: CreateAllLog End [2025-03-03 11:31:05] Production.INFO: Account Balance End. [2025-03-03 11:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:31:05] Production.INFO: ==13691== Releasing lock... [2025-03-03 11:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:31:12] Production.ERROR: CronJobId end10 [2025-03-03 11:31:12] Production.INFO: ==13689== Releasing lock... [2025-03-03 11:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:31:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:31:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:31:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:31:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:31:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:31:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:31:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:31:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:31:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:31:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:31:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:31:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:31:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:31:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:31:15] Production.INFO: call_cost start [2025-03-03 11:31:15] Production.INFO: call_cost end [2025-03-03 11:31:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:31:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:31:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:31:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:31:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:31:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:31:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:31:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:31:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:31:15] Production.INFO: ==13685== Releasing lock... [2025-03-03 11:31:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:31:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:31:17] Production.INFO: count ==409 [2025-03-03 11:31:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598175', 'tblTempUsageDetail_20' ) start [2025-03-03 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598175', 'tblTempUsageDetail_20' ) end [2025-03-03 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598175', 'tblTempVendorCDR_20' ) start [2025-03-03 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598175', 'tblTempVendorCDR_20' ) end [2025-03-03 11:31:17] Production.INFO: ProcessCDR(1,14598175,1,1,2) [2025-03-03 11:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598175', 'tblTempUsageDetail_20' ) start [2025-03-03 11:31:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598175', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:31:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:31:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:31:26] Production.INFO: ==13693== Releasing lock... [2025-03-03 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:31:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:32:02] Production.INFO: ==13753== Lock acquired, processing the job... [2025-03-03 16:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:32:02] Production.INFO: neon service started [2025-03-03 16:32:02] Production.INFO: neon service started [2025-03-03 16:32:02] Production.INFO: ==13753== Releasing lock... [2025-03-03 16:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:32:02] Production.INFO: ==13757== Lock acquired, processing the job... [2025-03-03 16:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:32:02] Production.INFO: ==13757== Releasing lock... [2025-03-03 16:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:32:02] Production.INFO: ==13755== Lock acquired, processing the job... [2025-03-03 11:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:32:03] Production.INFO: ==13755== Releasing lock... [2025-03-03 11:32:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:32:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:32:04] Production.INFO: ==13760== Lock acquired, processing the job... [2025-03-03 11:32:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:32:04] Production.INFO: ==13764== Lock acquired, processing the job... [2025-03-03 11:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:32:04] Production.INFO: ==13766== Lock acquired, processing the job... [2025-03-03 11:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:32:04] Production.INFO: ==13762== Lock acquired, processing the job... [2025-03-03 11:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:32:04] Production.INFO: Account Balance Start. [2025-03-03 11:32:04] Production.INFO: CreateAllLog Start [2025-03-03 11:32:04] Production.INFO: 117 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: ==13768== Lock acquired, processing the job... [2025-03-03 11:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:32:04] Production.INFO: ==13770== Lock acquired, processing the job... [2025-03-03 11:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: ==13762== Releasing lock... [2025-03-03 11:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:32:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.ERROR: done [2025-03-03 11:32:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:32:05] Production.INFO: count ==13 [2025-03-03 11:32:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:32:05] Production.INFO: count ==21 [2025-03-03 11:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598179') start [2025-03-03 11:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.ERROR: done [2025-03-03 11:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598179') end [2025-03-03 11:32:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:32:05] Production.INFO: 1 [2025-03-03 11:32:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: ==13770== Releasing lock... [2025-03-03 11:32:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:32:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:32:05] Production.INFO: Total Charge 0 [2025-03-03 11:32:05] Production.INFO: CreateAllLog End [2025-03-03 11:32:05] Production.INFO: Account Balance End. [2025-03-03 11:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:32:05] Production.INFO: ==13766== Releasing lock... [2025-03-03 11:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:32:13] Production.ERROR: CronJobId end10 [2025-03-03 11:32:13] Production.INFO: ==13764== Releasing lock... [2025-03-03 11:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:32:15] Production.INFO: call_cost start [2025-03-03 11:32:15] Production.INFO: call_cost end [2025-03-03 11:32:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:32:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:32:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:32:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:32:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:32:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:32:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:32:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:32:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:32:15] Production.INFO: ==13760== Releasing lock... [2025-03-03 11:32:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:32:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:32:17] Production.INFO: count ==409 [2025-03-03 11:32:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598180', 'tblTempUsageDetail_20' ) start [2025-03-03 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598180', 'tblTempUsageDetail_20' ) end [2025-03-03 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598180', 'tblTempVendorCDR_20' ) start [2025-03-03 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598180', 'tblTempVendorCDR_20' ) end [2025-03-03 11:32:17] Production.INFO: ProcessCDR(1,14598180,1,1,2) [2025-03-03 11:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598180', 'tblTempUsageDetail_20' ) start [2025-03-03 11:32:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598180', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:32:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:32:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:32:26] Production.INFO: ==13768== Releasing lock... [2025-03-03 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:32:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:33:01] Production.INFO: ==13830== Lock acquired, processing the job... [2025-03-03 16:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:33:01] Production.INFO: neon service started [2025-03-03 16:33:01] Production.INFO: neon service started [2025-03-03 16:33:01] Production.INFO: ==13830== Releasing lock... [2025-03-03 16:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:33:02] Production.INFO: ==13834== Lock acquired, processing the job... [2025-03-03 16:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:33:02] Production.INFO: ==13834== Releasing lock... [2025-03-03 16:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:33:02] Production.INFO: ==13832== Lock acquired, processing the job... [2025-03-03 11:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:33:02] Production.INFO: ==13832== Releasing lock... [2025-03-03 11:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:33:03] Production.INFO: ==13837== Lock acquired, processing the job... [2025-03-03 11:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:33:03] Production.INFO: ==13841== Lock acquired, processing the job... [2025-03-03 11:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:33:03] Production.INFO: ==13839== Lock acquired, processing the job... [2025-03-03 11:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:33:03] Production.INFO: ==13843== Lock acquired, processing the job... [2025-03-03 11:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:33:04] Production.INFO: ==13847== Lock acquired, processing the job... [2025-03-03 11:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:33:04] Production.INFO: Account Balance Start. [2025-03-03 11:33:04] Production.INFO: CreateAllLog Start [2025-03-03 11:33:04] Production.INFO: 117 [2025-03-03 11:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.INFO: ==13845== Lock acquired, processing the job... [2025-03-03 11:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.INFO: count ==13 [2025-03-03 11:33:04] Production.INFO: ==13839== Releasing lock... [2025-03-03 11:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.INFO: count ==21 [2025-03-03 11:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598184') start [2025-03-03 11:33:04] Production.ERROR: done [2025-03-03 11:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598184') end [2025-03-03 11:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:33:04] Production.INFO: 1 [2025-03-03 11:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:33:04] Production.ERROR: done [2025-03-03 11:33:04] Production.INFO: ==13847== Releasing lock... [2025-03-03 11:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:33:05] Production.INFO: Total Charge 0 [2025-03-03 11:33:05] Production.INFO: CreateAllLog End [2025-03-03 11:33:05] Production.INFO: Account Balance End. [2025-03-03 11:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:33:05] Production.INFO: ==13843== Releasing lock... [2025-03-03 11:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:33:12] Production.ERROR: CronJobId end10 [2025-03-03 11:33:12] Production.INFO: ==13841== Releasing lock... [2025-03-03 11:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:33:15] Production.INFO: call_cost start [2025-03-03 11:33:15] Production.INFO: call_cost end [2025-03-03 11:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:33:15] Production.INFO: ==13837== Releasing lock... [2025-03-03 11:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:33:16] Production.INFO: count ==409 [2025-03-03 11:33:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598185', 'tblTempUsageDetail_20' ) start [2025-03-03 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598185', 'tblTempUsageDetail_20' ) end [2025-03-03 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598185', 'tblTempVendorCDR_20' ) start [2025-03-03 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598185', 'tblTempVendorCDR_20' ) end [2025-03-03 11:33:17] Production.INFO: ProcessCDR(1,14598185,1,1,2) [2025-03-03 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598185', 'tblTempUsageDetail_20' ) start [2025-03-03 11:33:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598185', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:33:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:33:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:33:25] Production.INFO: ==13845== Releasing lock... [2025-03-03 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:33:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:34:02] Production.INFO: ==13909== Lock acquired, processing the job... [2025-03-03 16:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:34:02] Production.INFO: neon service started [2025-03-03 16:34:02] Production.INFO: neon service started [2025-03-03 16:34:02] Production.INFO: ==13909== Releasing lock... [2025-03-03 16:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:34:02] Production.INFO: ==13911== Lock acquired, processing the job... [2025-03-03 11:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:34:03] Production.INFO: ==13911== Releasing lock... [2025-03-03 11:34:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:34:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:34:03] Production.INFO: ==13913== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:34:03] Production.INFO: ==13913== Releasing lock... [2025-03-03 16:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:34:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:34:03] Production.INFO: ==13916== Lock acquired, processing the job... [2025-03-03 11:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:34:03] Production.INFO: ==13918== Lock acquired, processing the job... [2025-03-03 11:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:34:03] Production.INFO: ==13922== Lock acquired, processing the job... [2025-03-03 11:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:34:04] Production.INFO: Account Balance Start. [2025-03-03 11:34:04] Production.INFO: CreateAllLog Start [2025-03-03 11:34:04] Production.INFO: 117 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: ==13920== Lock acquired, processing the job... [2025-03-03 11:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: ==13924== Lock acquired, processing the job... [2025-03-03 11:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:34:04] Production.INFO: ==13918== Releasing lock... [2025-03-03 11:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: ==13926== Lock acquired, processing the job... [2025-03-03 11:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.INFO: count ==13 [2025-03-03 11:34:04] Production.ERROR: done [2025-03-03 11:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:34:04] Production.INFO: count ==21 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598189') start [2025-03-03 11:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598189') end [2025-03-03 11:34:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:34:05] Production.INFO: 1 [2025-03-03 11:34:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:34:05] Production.ERROR: done [2025-03-03 11:34:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: ==13926== Releasing lock... [2025-03-03 11:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:34:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:34:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:34:05] Production.INFO: Total Charge 0 [2025-03-03 11:34:05] Production.INFO: CreateAllLog End [2025-03-03 11:34:05] Production.INFO: Account Balance End. [2025-03-03 11:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:34:05] Production.INFO: ==13922== Releasing lock... [2025-03-03 11:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:34:13] Production.ERROR: CronJobId end10 [2025-03-03 11:34:13] Production.INFO: ==13920== Releasing lock... [2025-03-03 11:34:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:34:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:34:15] Production.INFO: call_cost start [2025-03-03 11:34:15] Production.INFO: call_cost end [2025-03-03 11:34:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:34:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:34:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:34:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:34:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:34:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:34:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:34:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:34:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:34:15] Production.INFO: ==13916== Releasing lock... [2025-03-03 11:34:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:34:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:34:17] Production.INFO: count ==409 [2025-03-03 11:34:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598190', 'tblTempUsageDetail_20' ) start [2025-03-03 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598190', 'tblTempUsageDetail_20' ) end [2025-03-03 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598190', 'tblTempVendorCDR_20' ) start [2025-03-03 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598190', 'tblTempVendorCDR_20' ) end [2025-03-03 11:34:17] Production.INFO: ProcessCDR(1,14598190,1,1,2) [2025-03-03 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598190', 'tblTempUsageDetail_20' ) start [2025-03-03 11:34:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598190', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:34:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:34:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:34:25] Production.INFO: ==13924== Releasing lock... [2025-03-03 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:34:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:35:01] Production.INFO: ==13986== Lock acquired, processing the job... [2025-03-03 16:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:35:01] Production.INFO: neon service started [2025-03-03 16:35:01] Production.INFO: neon service started [2025-03-03 16:35:01] Production.INFO: ==13986== Releasing lock... [2025-03-03 16:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:35:02] Production.INFO: ==13989== Lock acquired, processing the job... [2025-03-03 11:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:35:02] Production.INFO: ==13989== Releasing lock... [2025-03-03 11:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:35:02] Production.INFO: ==13991== Lock acquired, processing the job... [2025-03-03 16:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:35:02] Production.INFO: ==13991== Releasing lock... [2025-03-03 16:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:35:03] Production.INFO: ==13993== Lock acquired, processing the job... [2025-03-03 11:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:35:03] Production.INFO: ==13997== Lock acquired, processing the job... [2025-03-03 11:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:35:03] Production.INFO: ==13995== Lock acquired, processing the job... [2025-03-03 11:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:35:03] Production.INFO: ==14001== Lock acquired, processing the job... [2025-03-03 11:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:35:03] Production.INFO: ==13999== Lock acquired, processing the job... [2025-03-03 11:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:35:04] Production.INFO: Account Balance Start. [2025-03-03 11:35:04] Production.INFO: CreateAllLog Start [2025-03-03 11:35:04] Production.INFO: 117 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: ==14003== Lock acquired, processing the job... [2025-03-03 11:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.ERROR: done [2025-03-03 11:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:35:04] Production.INFO: count ==13 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:35:04] Production.INFO: count ==21 [2025-03-03 11:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598194') start [2025-03-03 11:35:04] Production.ERROR: done [2025-03-03 11:35:04] Production.INFO: ==13995== Releasing lock... [2025-03-03 11:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598194') end [2025-03-03 11:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:35:04] Production.INFO: 1 [2025-03-03 11:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: ==14003== Releasing lock... [2025-03-03 11:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 11:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:35:05] Production.INFO: Total Charge 0 [2025-03-03 11:35:05] Production.INFO: CreateAllLog End [2025-03-03 11:35:05] Production.INFO: Account Balance End. [2025-03-03 11:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:35:05] Production.INFO: ==13999== Releasing lock... [2025-03-03 11:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:35:13] Production.ERROR: CronJobId end10 [2025-03-03 11:35:13] Production.INFO: ==13997== Releasing lock... [2025-03-03 11:35:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:35:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:35:14] Production.INFO: call_cost start [2025-03-03 11:35:14] Production.INFO: call_cost end [2025-03-03 11:35:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:35:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:35:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:35:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:35:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:35:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:35:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:35:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:35:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:35:14] Production.INFO: ==13993== Releasing lock... [2025-03-03 11:35:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:35:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:35:16] Production.INFO: count ==409 [2025-03-03 11:35:16] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598195', 'tblTempUsageDetail_20' ) start [2025-03-03 11:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598195', 'tblTempUsageDetail_20' ) end [2025-03-03 11:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598195', 'tblTempVendorCDR_20' ) start [2025-03-03 11:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598195', 'tblTempVendorCDR_20' ) end [2025-03-03 11:35:16] Production.INFO: ProcessCDR(1,14598195,1,1,2) [2025-03-03 11:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598195', 'tblTempUsageDetail_20' ) start [2025-03-03 11:35:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598195', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:35:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:35:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:35:25] Production.INFO: ==14001== Releasing lock... [2025-03-03 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:35:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:36:01] Production.INFO: ==14058== Lock acquired, processing the job... [2025-03-03 16:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:36:01] Production.INFO: neon service started [2025-03-03 16:36:01] Production.INFO: neon service started [2025-03-03 16:36:01] Production.INFO: ==14058== Releasing lock... [2025-03-03 16:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:36:02] Production.INFO: ==14062== Lock acquired, processing the job... [2025-03-03 16:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:36:02] Production.INFO: ==14062== Releasing lock... [2025-03-03 16:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:36:02] Production.INFO: ==14060== Lock acquired, processing the job... [2025-03-03 11:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:36:02] Production.INFO: ==14060== Releasing lock... [2025-03-03 11:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:36:03] Production.INFO: ==14066== Lock acquired, processing the job... [2025-03-03 11:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:36:03] Production.INFO: ==14068== Lock acquired, processing the job... [2025-03-03 11:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:36:03] Production.INFO: ==14070== Lock acquired, processing the job... [2025-03-03 11:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:36:04] Production.INFO: ==14072== Lock acquired, processing the job... [2025-03-03 11:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:36:04] Production.INFO: ==14074== Lock acquired, processing the job... [2025-03-03 11:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:36:04] Production.INFO: ==14076== Lock acquired, processing the job... [2025-03-03 11:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:36:04] Production.INFO: Account Balance Start. [2025-03-03 11:36:04] Production.INFO: CreateAllLog Start [2025-03-03 11:36:04] Production.INFO: 117 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: count ==13 [2025-03-03 11:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:36:04] Production.INFO: count ==21 [2025-03-03 11:36:04] Production.ERROR: done [2025-03-03 11:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:36:04] Production.INFO: ==14068== Releasing lock... [2025-03-03 11:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598199') start [2025-03-03 11:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.ERROR: done [2025-03-03 11:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598199') end [2025-03-03 11:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:36:04] Production.INFO: 1 [2025-03-03 11:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:36:04] Production.INFO: ==14076== Releasing lock... [2025-03-03 11:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 11:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:36:05] Production.INFO: Total Charge 0 [2025-03-03 11:36:05] Production.INFO: CreateAllLog End [2025-03-03 11:36:05] Production.INFO: Account Balance End. [2025-03-03 11:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:36:05] Production.INFO: ==14072== Releasing lock... [2025-03-03 11:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:36:13] Production.ERROR: CronJobId end10 [2025-03-03 11:36:13] Production.INFO: ==14070== Releasing lock... [2025-03-03 11:36:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:36:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:36:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:36:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:36:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:36:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:36:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:36:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:36:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:36:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:36:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:36:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:36:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:36:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:36:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:36:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:36:16] Production.INFO: call_cost start [2025-03-03 11:36:16] Production.INFO: call_cost end [2025-03-03 11:36:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:36:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:36:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:36:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:36:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:36:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:36:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:36:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:36:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:36:16] Production.INFO: ==14066== Releasing lock... [2025-03-03 11:36:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:36:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:36:16] Production.INFO: count ==409 [2025-03-03 11:36:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598200', 'tblTempUsageDetail_20' ) start [2025-03-03 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598200', 'tblTempUsageDetail_20' ) end [2025-03-03 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598200', 'tblTempVendorCDR_20' ) start [2025-03-03 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598200', 'tblTempVendorCDR_20' ) end [2025-03-03 11:36:17] Production.INFO: ProcessCDR(1,14598200,1,1,2) [2025-03-03 11:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598200', 'tblTempUsageDetail_20' ) start [2025-03-03 11:36:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598200', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:36:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:36:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:36:25] Production.INFO: ==14074== Releasing lock... [2025-03-03 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:36:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:37:02] Production.INFO: ==14134== Lock acquired, processing the job... [2025-03-03 16:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:37:02] Production.INFO: neon service started [2025-03-03 16:37:02] Production.INFO: neon service started [2025-03-03 16:37:02] Production.INFO: ==14134== Releasing lock... [2025-03-03 16:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:37:02] Production.INFO: ==14136== Lock acquired, processing the job... [2025-03-03 11:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:37:03] Production.INFO: ==14136== Releasing lock... [2025-03-03 11:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:37:03] Production.INFO: ==14138== Lock acquired, processing the job... [2025-03-03 16:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:37:03] Production.INFO: ==14138== Releasing lock... [2025-03-03 16:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:37:04] Production.INFO: ==14145== Lock acquired, processing the job... [2025-03-03 11:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:37:04] Production.INFO: ==14150== Lock acquired, processing the job... [2025-03-03 11:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:37:04] Production.INFO: ==14141== Lock acquired, processing the job... [2025-03-03 11:37:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:37:04] Production.INFO: ==14143== Lock acquired, processing the job... [2025-03-03 11:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:37:04] Production.INFO: ==14148== Lock acquired, processing the job... [2025-03-03 11:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:37:04] Production.ERROR: done [2025-03-03 11:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:37:04] Production.INFO: Account Balance Start. [2025-03-03 11:37:04] Production.INFO: CreateAllLog Start [2025-03-03 11:37:04] Production.INFO: 117 [2025-03-03 11:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:37:04] Production.INFO: ==14153== Lock acquired, processing the job... [2025-03-03 11:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:04] Production.ERROR: done [2025-03-03 11:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:04] Production.INFO: ==14143== Releasing lock... [2025-03-03 11:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:37:04] Production.INFO: count ==13 [2025-03-03 11:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:37:04] Production.INFO: count ==21 [2025-03-03 11:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598205') start [2025-03-03 11:37:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598205') end [2025-03-03 11:37:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:37:05] Production.INFO: 1 [2025-03-03 11:37:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:37:05] Production.INFO: ==14153== Releasing lock... [2025-03-03 11:37:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:37:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:37:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:37:05] Production.INFO: Total Charge 0 [2025-03-03 11:37:05] Production.INFO: CreateAllLog End [2025-03-03 11:37:06] Production.INFO: Account Balance End. [2025-03-03 11:37:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:37:06] Production.INFO: ==14148== Releasing lock... [2025-03-03 11:37:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:37:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:37:13] Production.ERROR: CronJobId end10 [2025-03-03 11:37:13] Production.INFO: ==14145== Releasing lock... [2025-03-03 11:37:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:37:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:37:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:37:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:37:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:37:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:37:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:37:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:37:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:37:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:37:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:37:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:37:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:37:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:37:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:37:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:37:16] Production.INFO: call_cost start [2025-03-03 11:37:16] Production.INFO: call_cost end [2025-03-03 11:37:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:37:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:37:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:37:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:37:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:37:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:37:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:37:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:37:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:37:16] Production.INFO: ==14141== Releasing lock... [2025-03-03 11:37:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:37:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:37:17] Production.INFO: count ==409 [2025-03-03 11:37:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598204', 'tblTempUsageDetail_20' ) start [2025-03-03 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598204', 'tblTempUsageDetail_20' ) end [2025-03-03 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598204', 'tblTempVendorCDR_20' ) start [2025-03-03 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598204', 'tblTempVendorCDR_20' ) end [2025-03-03 11:37:17] Production.INFO: ProcessCDR(1,14598204,1,1,2) [2025-03-03 11:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598204', 'tblTempUsageDetail_20' ) start [2025-03-03 11:37:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598204', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:37:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:37:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:37:25] Production.INFO: ==14150== Releasing lock... [2025-03-03 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:37:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:38:01] Production.INFO: ==14210== Lock acquired, processing the job... [2025-03-03 16:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:38:01] Production.INFO: neon service started [2025-03-03 16:38:01] Production.INFO: neon service started [2025-03-03 16:38:01] Production.INFO: ==14210== Releasing lock... [2025-03-03 16:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:38:02] Production.INFO: ==14212== Lock acquired, processing the job... [2025-03-03 11:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:38:02] Production.INFO: ==14214== Lock acquired, processing the job... [2025-03-03 16:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:38:02] Production.INFO: ==14214== Releasing lock... [2025-03-03 16:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:38:02] Production.INFO: ==14212== Releasing lock... [2025-03-03 11:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:38:03] Production.INFO: ==14219== Lock acquired, processing the job... [2025-03-03 11:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:38:03] Production.INFO: ==14225== Lock acquired, processing the job... [2025-03-03 11:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:38:03] Production.INFO: ==14221== Lock acquired, processing the job... [2025-03-03 11:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:38:03] Production.INFO: ==14217== Lock acquired, processing the job... [2025-03-03 11:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:38:04] Production.INFO: ==14223== Lock acquired, processing the job... [2025-03-03 11:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:38:04] Production.INFO: ==14227== Lock acquired, processing the job... [2025-03-03 11:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:38:04] Production.INFO: ==14219== Releasing lock... [2025-03-03 11:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:38:04] Production.ERROR: done [2025-03-03 11:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:38:04] Production.INFO: Account Balance Start. [2025-03-03 11:38:04] Production.INFO: CreateAllLog Start [2025-03-03 11:38:04] Production.INFO: 117 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:38:04] Production.INFO: count ==13 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:38:04] Production.INFO: count ==21 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598208') start [2025-03-03 11:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.ERROR: done [2025-03-03 11:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598208') end [2025-03-03 11:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:38:04] Production.INFO: 1 [2025-03-03 11:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:38:04] Production.INFO: ==14227== Releasing lock... [2025-03-03 11:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:38:05] Production.INFO: Total Charge 0 [2025-03-03 11:38:05] Production.INFO: CreateAllLog End [2025-03-03 11:38:05] Production.INFO: Account Balance End. [2025-03-03 11:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:38:05] Production.INFO: ==14223== Releasing lock... [2025-03-03 11:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:38:12] Production.ERROR: CronJobId end10 [2025-03-03 11:38:12] Production.INFO: ==14221== Releasing lock... [2025-03-03 11:38:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:38:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:38:16] Production.INFO: call_cost start [2025-03-03 11:38:16] Production.INFO: call_cost end [2025-03-03 11:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:38:16] Production.INFO: ==14217== Releasing lock... [2025-03-03 11:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:38:17] Production.INFO: count ==409 [2025-03-03 11:38:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598210', 'tblTempUsageDetail_20' ) start [2025-03-03 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598210', 'tblTempUsageDetail_20' ) end [2025-03-03 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598210', 'tblTempVendorCDR_20' ) start [2025-03-03 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598210', 'tblTempVendorCDR_20' ) end [2025-03-03 11:38:17] Production.INFO: ProcessCDR(1,14598210,1,1,2) [2025-03-03 11:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598210', 'tblTempUsageDetail_20' ) start [2025-03-03 11:38:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598210', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:38:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:38:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:38:25] Production.INFO: ==14225== Releasing lock... [2025-03-03 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:38:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:39:02] Production.INFO: ==14282== Lock acquired, processing the job... [2025-03-03 16:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:39:02] Production.INFO: neon service started [2025-03-03 16:39:02] Production.INFO: neon service started [2025-03-03 16:39:02] Production.INFO: ==14282== Releasing lock... [2025-03-03 16:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:39:03] Production.INFO: ==14284== Lock acquired, processing the job... [2025-03-03 11:39:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:39:03] Production.INFO: ==14286== Lock acquired, processing the job... [2025-03-03 16:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:39:03] Production.INFO: ==14286== Releasing lock... [2025-03-03 16:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:39:03] Production.INFO: ==14284== Releasing lock... [2025-03-03 11:39:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:39:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:39:04] Production.INFO: ==14295== Lock acquired, processing the job... [2025-03-03 11:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:39:04] Production.INFO: Account Balance Start. [2025-03-03 11:39:04] Production.INFO: CreateAllLog Start [2025-03-03 11:39:04] Production.INFO: 117 [2025-03-03 11:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:39:04] Production.INFO: ==14299== Lock acquired, processing the job... [2025-03-03 11:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: ==14289== Lock acquired, processing the job... [2025-03-03 11:39:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: ==14291== Lock acquired, processing the job... [2025-03-03 11:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:39:04] Production.INFO: ==14293== Lock acquired, processing the job... [2025-03-03 11:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:39:04] Production.INFO: ==14297== Lock acquired, processing the job... [2025-03-03 11:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: count ==13 [2025-03-03 11:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:39:04] Production.INFO: count ==21 [2025-03-03 11:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598212') start [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598212') end [2025-03-03 11:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:39:04] Production.INFO: 1 [2025-03-03 11:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: ==14299== Releasing lock... [2025-03-03 11:39:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:39:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:39:05] Production.INFO: ==14291== Releasing lock... [2025-03-03 11:39:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:39:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:39:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.ERROR: done [2025-03-03 11:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.ERROR: done [2025-03-03 11:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:39:06] Production.INFO: Total Charge 0 [2025-03-03 11:39:06] Production.INFO: CreateAllLog End [2025-03-03 11:39:06] Production.INFO: Account Balance End. [2025-03-03 11:39:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:39:06] Production.INFO: ==14295== Releasing lock... [2025-03-03 11:39:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:39:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:39:14] Production.ERROR: CronJobId end10 [2025-03-03 11:39:14] Production.INFO: ==14293== Releasing lock... [2025-03-03 11:39:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:39:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:39:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:39:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:39:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:39:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:39:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:39:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:39:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:39:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:39:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:39:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:39:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:39:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:39:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:39:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:39:17] Production.INFO: call_cost start [2025-03-03 11:39:17] Production.INFO: call_cost end [2025-03-03 11:39:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:39:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:39:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:39:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:39:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:39:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:39:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:39:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:39:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:39:17] Production.INFO: ==14289== Releasing lock... [2025-03-03 11:39:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:39:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:39:18] Production.INFO: count ==409 [2025-03-03 11:39:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598215', 'tblTempUsageDetail_20' ) start [2025-03-03 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598215', 'tblTempUsageDetail_20' ) end [2025-03-03 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598215', 'tblTempVendorCDR_20' ) start [2025-03-03 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598215', 'tblTempVendorCDR_20' ) end [2025-03-03 11:39:18] Production.INFO: ProcessCDR(1,14598215,1,1,2) [2025-03-03 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598215', 'tblTempUsageDetail_20' ) start [2025-03-03 11:39:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598215', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:39:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:39:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:39:27] Production.INFO: ==14297== Releasing lock... [2025-03-03 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:39:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:40:02] Production.INFO: ==14355== Lock acquired, processing the job... [2025-03-03 16:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:40:02] Production.INFO: neon service started [2025-03-03 16:40:02] Production.INFO: neon service started [2025-03-03 16:40:02] Production.INFO: ==14355== Releasing lock... [2025-03-03 16:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:40:02] Production.INFO: ==14358== Lock acquired, processing the job... [2025-03-03 11:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:40:02] Production.INFO: ==14360== Lock acquired, processing the job... [2025-03-03 16:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:40:02] Production.INFO: ==14360== Releasing lock... [2025-03-03 16:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:40:03] Production.INFO: ==14358== Releasing lock... [2025-03-03 11:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:40:04] Production.INFO: ==14367== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:40:04] Production.INFO: ==14369== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:40:04] Production.INFO: ==14363== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 11:40:04] Production.INFO: ==14365== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:40:04] Production.INFO: ==14377== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:40:04] Production.ERROR: CronJob PID - 14365 [2025-03-03 11:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 11:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 11:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:40:00 [2025-03-03 11:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:40:04] Production.ERROR: CronJob PID - 14367 [2025-03-03 11:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 11:40:04] Production.ERROR: CronJob ID - 7 [2025-03-03 11:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:40:00 [2025-03-03 11:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:40:04] Production.ERROR: CronJob PID - 14369 [2025-03-03 11:40:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 11:40:04] Production.ERROR: CronJob ID - 10 [2025-03-03 11:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:40:00 [2025-03-03 11:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 11:40:04] Production.INFO: ==14363== Releasing lock... [2025-03-03 11:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 11:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 11:40:04] Production.INFO: ==14367== Releasing lock... [2025-03-03 11:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:40:04] Production.INFO: ==14371== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:40:04] Production.INFO: count ==13 [2025-03-03 11:40:04] Production.INFO: ==14373== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:40:04] Production.INFO: count ==21 [2025-03-03 11:40:04] Production.INFO: ==14375== Lock acquired, processing the job... [2025-03-03 11:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 11:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598218') start [2025-03-03 11:40:05] Production.INFO: Account Balance Start. [2025-03-03 11:40:05] Production.INFO: CreateAllLog Start [2025-03-03 11:40:05] Production.INFO: 117 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-08 [2025-03-03 11:40:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598218') end [2025-03-03 11:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:40:05] Production.INFO: 1 [2025-03-03 11:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:40:05] Production.INFO: Date 2025-02-09 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-10 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: ==14377== Releasing lock... [2025-03-03 11:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.ERROR: done [2025-03-03 11:40:05] Production.ERROR: done [2025-03-03 11:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 11:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598220', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 11:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.ERROR: done [2025-03-03 11:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-21 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-22 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-23 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-24 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-25 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-26 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-27 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-02-28 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-03-01 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-03-02 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Date 2025-03-03 [2025-03-03 11:40:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:40:06] Production.INFO: Total Charge 0 [2025-03-03 11:40:06] Production.INFO: CreateAllLog End [2025-03-03 11:40:06] Production.INFO: Account Balance End. [2025-03-03 11:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:40:06] Production.INFO: ==14371== Releasing lock... [2025-03-03 11:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598220', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 11:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 11:40:09] Production.INFO: ProcessCDR(1,14598220,1,1,2) [2025-03-03 11:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598220,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598220,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:40:09] Production.INFO: ==14375== Releasing lock... [2025-03-03 11:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 11:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 11:40:13] Production.ERROR: CronJobId end10 [2025-03-03 11:40:13] Production.INFO: ==14369== Releasing lock... [2025-03-03 11:40:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:40:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:40:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:40:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:40:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:40:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:40:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:40:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:40:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:40:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:40:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:40:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:40:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:40:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:40:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:40:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:40:17] Production.INFO: call_cost start [2025-03-03 11:40:17] Production.INFO: call_cost end [2025-03-03 11:40:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:40:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:40:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:40:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:40:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:40:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:40:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:40:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:40:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:40:17] Production.INFO: ==14365== Releasing lock... [2025-03-03 11:40:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:40:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:40:18] Production.INFO: count ==409 [2025-03-03 11:40:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598221', 'tblTempUsageDetail_20' ) start [2025-03-03 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598221', 'tblTempUsageDetail_20' ) end [2025-03-03 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598221', 'tblTempVendorCDR_20' ) start [2025-03-03 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598221', 'tblTempVendorCDR_20' ) end [2025-03-03 11:40:18] Production.INFO: ProcessCDR(1,14598221,1,1,2) [2025-03-03 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598221', 'tblTempUsageDetail_20' ) start [2025-03-03 11:40:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598221', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:40:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:40:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:40:27] Production.INFO: ==14373== Releasing lock... [2025-03-03 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:40:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:41:01] Production.INFO: ==14475== Lock acquired, processing the job... [2025-03-03 16:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:41:01] Production.INFO: neon service started [2025-03-03 16:41:01] Production.INFO: neon service started [2025-03-03 16:41:01] Production.INFO: ==14475== Releasing lock... [2025-03-03 16:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:41:02] Production.INFO: ==14477== Lock acquired, processing the job... [2025-03-03 11:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:41:02] Production.INFO: ==14479== Lock acquired, processing the job... [2025-03-03 16:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:41:02] Production.INFO: ==14479== Releasing lock... [2025-03-03 16:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:41:02] Production.INFO: ==14477== Releasing lock... [2025-03-03 11:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:41:03] Production.INFO: ==14482== Lock acquired, processing the job... [2025-03-03 11:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:41:03] Production.INFO: ==14488== Lock acquired, processing the job... [2025-03-03 11:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:41:03] Production.INFO: ==14490== Lock acquired, processing the job... [2025-03-03 11:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:41:03] Production.INFO: Account Balance Start. [2025-03-03 11:41:03] Production.INFO: CreateAllLog Start [2025-03-03 11:41:03] Production.INFO: 117 [2025-03-03 11:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:41:03] Production.INFO: ==14484== Lock acquired, processing the job... [2025-03-03 11:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:03] Production.INFO: ==14486== Lock acquired, processing the job... [2025-03-03 11:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 11:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 11:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 11:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 11:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: ==14492== Lock acquired, processing the job... [2025-03-03 11:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.ERROR: done [2025-03-03 11:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: ==14484== Releasing lock... [2025-03-03 11:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:41:04] Production.INFO: count ==13 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:41:04] Production.INFO: count ==21 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598225') start [2025-03-03 11:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.ERROR: done [2025-03-03 11:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598225') end [2025-03-03 11:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:41:04] Production.INFO: 1 [2025-03-03 11:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:41:04] Production.INFO: ==14492== Releasing lock... [2025-03-03 11:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:41:05] Production.INFO: Total Charge 0 [2025-03-03 11:41:05] Production.INFO: CreateAllLog End [2025-03-03 11:41:05] Production.INFO: Account Balance End. [2025-03-03 11:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:41:05] Production.INFO: ==14488== Releasing lock... [2025-03-03 11:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:41:12] Production.ERROR: CronJobId end10 [2025-03-03 11:41:12] Production.INFO: ==14486== Releasing lock... [2025-03-03 11:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:41:14] Production.INFO: call_cost start [2025-03-03 11:41:14] Production.INFO: call_cost end [2025-03-03 11:41:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:41:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:41:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:41:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:41:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:41:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:41:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:41:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:41:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:41:14] Production.INFO: ==14482== Releasing lock... [2025-03-03 11:41:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:41:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:41:16] Production.INFO: count ==409 [2025-03-03 11:41:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598226', 'tblTempUsageDetail_20' ) start [2025-03-03 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598226', 'tblTempUsageDetail_20' ) end [2025-03-03 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598226', 'tblTempVendorCDR_20' ) start [2025-03-03 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598226', 'tblTempVendorCDR_20' ) end [2025-03-03 11:41:17] Production.INFO: ProcessCDR(1,14598226,1,1,2) [2025-03-03 11:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598226', 'tblTempUsageDetail_20' ) start [2025-03-03 11:41:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598226', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:41:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:41:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:41:25] Production.INFO: ==14490== Releasing lock... [2025-03-03 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:41:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:42:02] Production.INFO: ==14553== Lock acquired, processing the job... [2025-03-03 16:42:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:42:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:42:02] Production.INFO: neon service started [2025-03-03 16:42:02] Production.INFO: neon service started [2025-03-03 16:42:02] Production.INFO: ==14553== Releasing lock... [2025-03-03 16:42:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:42:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:42:02] Production.INFO: ==14557== Lock acquired, processing the job... [2025-03-03 16:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:42:02] Production.INFO: ==14557== Releasing lock... [2025-03-03 16:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:42:02] Production.INFO: ==14555== Lock acquired, processing the job... [2025-03-03 11:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:42:03] Production.INFO: ==14555== Releasing lock... [2025-03-03 11:42:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:42:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:42:04] Production.INFO: ==14566== Lock acquired, processing the job... [2025-03-03 11:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:42:04] Production.INFO: ==14568== Lock acquired, processing the job... [2025-03-03 11:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:42:04] Production.INFO: ==14560== Lock acquired, processing the job... [2025-03-03 11:42:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:42:04] Production.INFO: Account Balance Start. [2025-03-03 11:42:04] Production.INFO: CreateAllLog Start [2025-03-03 11:42:04] Production.INFO: 117 [2025-03-03 11:42:04] Production.INFO: ==14562== Lock acquired, processing the job... [2025-03-03 11:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:42:04] Production.INFO: ==14564== Lock acquired, processing the job... [2025-03-03 11:42:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:42:04] Production.INFO: ==14570== Lock acquired, processing the job... [2025-03-03 11:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:04] Production.ERROR: done [2025-03-03 11:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:04] Production.INFO: count ==13 [2025-03-03 11:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:42:04] Production.INFO: count ==21 [2025-03-03 11:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598230') start [2025-03-03 11:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.ERROR: done [2025-03-03 11:42:05] Production.INFO: ==14562== Releasing lock... [2025-03-03 11:42:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:42:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:42:05] Production.INFO: Date 2025-02-15 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598230') end [2025-03-03 11:42:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:42:05] Production.INFO: 1 [2025-03-03 11:42:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:42:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: ==14570== Releasing lock... [2025-03-03 11:42:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:42:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:42:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:42:06] Production.INFO: Total Charge 0 [2025-03-03 11:42:06] Production.INFO: CreateAllLog End [2025-03-03 11:42:06] Production.INFO: Account Balance End. [2025-03-03 11:42:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:42:06] Production.INFO: ==14566== Releasing lock... [2025-03-03 11:42:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:42:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:42:12] Production.ERROR: CronJobId end10 [2025-03-03 11:42:12] Production.INFO: ==14564== Releasing lock... [2025-03-03 11:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:42:15] Production.INFO: call_cost start [2025-03-03 11:42:15] Production.INFO: call_cost end [2025-03-03 11:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:42:15] Production.INFO: ==14560== Releasing lock... [2025-03-03 11:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:42:17] Production.INFO: count ==409 [2025-03-03 11:42:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598231', 'tblTempUsageDetail_20' ) start [2025-03-03 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598231', 'tblTempUsageDetail_20' ) end [2025-03-03 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598231', 'tblTempVendorCDR_20' ) start [2025-03-03 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598231', 'tblTempVendorCDR_20' ) end [2025-03-03 11:42:17] Production.INFO: ProcessCDR(1,14598231,1,1,2) [2025-03-03 11:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598231', 'tblTempUsageDetail_20' ) start [2025-03-03 11:42:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598231', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:42:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:42:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:42:26] Production.INFO: ==14568== Releasing lock... [2025-03-03 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:42:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:43:02] Production.INFO: ==14627== Lock acquired, processing the job... [2025-03-03 16:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:43:02] Production.INFO: neon service started [2025-03-03 16:43:02] Production.INFO: neon service started [2025-03-03 16:43:02] Production.INFO: ==14627== Releasing lock... [2025-03-03 16:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:43:02] Production.INFO: ==14631== Lock acquired, processing the job... [2025-03-03 16:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:43:02] Production.INFO: ==14631== Releasing lock... [2025-03-03 16:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:43:02] Production.INFO: ==14629== Lock acquired, processing the job... [2025-03-03 11:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:43:03] Production.INFO: ==14629== Releasing lock... [2025-03-03 11:43:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:43:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:43:04] Production.INFO: ==14638== Lock acquired, processing the job... [2025-03-03 11:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:43:04] Production.INFO: ==14642== Lock acquired, processing the job... [2025-03-03 11:43:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:43:04] Production.INFO: ==14634== Lock acquired, processing the job... [2025-03-03 11:43:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:43:04] Production.INFO: ==14636== Lock acquired, processing the job... [2025-03-03 11:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:43:04] Production.INFO: ==14640== Lock acquired, processing the job... [2025-03-03 11:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:43:04] Production.INFO: ==14644== Lock acquired, processing the job... [2025-03-03 11:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:43:04] Production.INFO: Account Balance Start. [2025-03-03 11:43:04] Production.INFO: CreateAllLog Start [2025-03-03 11:43:04] Production.INFO: 117 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.ERROR: done [2025-03-03 11:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:43:04] Production.INFO: count ==13 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:43:04] Production.INFO: count ==21 [2025-03-03 11:43:04] Production.INFO: ==14636== Releasing lock... [2025-03-03 11:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598235') start [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.ERROR: done [2025-03-03 11:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598235') end [2025-03-03 11:43:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:43:05] Production.INFO: 1 [2025-03-03 11:43:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:43:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: ==14644== Releasing lock... [2025-03-03 11:43:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:43:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:43:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:43:05] Production.INFO: Total Charge 0 [2025-03-03 11:43:05] Production.INFO: CreateAllLog End [2025-03-03 11:43:05] Production.INFO: Account Balance End. [2025-03-03 11:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:43:05] Production.INFO: ==14640== Releasing lock... [2025-03-03 11:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:43:14] Production.ERROR: CronJobId end10 [2025-03-03 11:43:14] Production.INFO: ==14638== Releasing lock... [2025-03-03 11:43:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:43:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:43:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:43:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:43:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:43:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:43:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:43:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:43:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:43:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:43:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:43:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:43:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:43:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:43:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:43:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:43:16] Production.INFO: call_cost start [2025-03-03 11:43:16] Production.INFO: call_cost end [2025-03-03 11:43:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:43:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:43:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:43:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:43:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:43:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:43:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:43:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:43:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:43:16] Production.INFO: ==14634== Releasing lock... [2025-03-03 11:43:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:43:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:43:17] Production.INFO: count ==409 [2025-03-03 11:43:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598236', 'tblTempUsageDetail_20' ) start [2025-03-03 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598236', 'tblTempUsageDetail_20' ) end [2025-03-03 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598236', 'tblTempVendorCDR_20' ) start [2025-03-03 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598236', 'tblTempVendorCDR_20' ) end [2025-03-03 11:43:17] Production.INFO: ProcessCDR(1,14598236,1,1,2) [2025-03-03 11:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598236', 'tblTempUsageDetail_20' ) start [2025-03-03 11:43:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598236', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:43:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:43:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:43:26] Production.INFO: ==14642== Releasing lock... [2025-03-03 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:43:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:44:01] Production.INFO: ==14701== Lock acquired, processing the job... [2025-03-03 16:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:44:01] Production.INFO: neon service started [2025-03-03 16:44:01] Production.INFO: neon service started [2025-03-03 16:44:01] Production.INFO: ==14701== Releasing lock... [2025-03-03 16:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:44:02] Production.INFO: ==14705== Lock acquired, processing the job... [2025-03-03 16:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:44:02] Production.INFO: ==14705== Releasing lock... [2025-03-03 16:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:44:02] Production.INFO: ==14703== Lock acquired, processing the job... [2025-03-03 11:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:44:02] Production.INFO: ==14703== Releasing lock... [2025-03-03 11:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:44:03] Production.INFO: ==14714== Lock acquired, processing the job... [2025-03-03 11:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:44:03] Production.INFO: Account Balance Start. [2025-03-03 11:44:03] Production.INFO: CreateAllLog Start [2025-03-03 11:44:03] Production.INFO: 117 [2025-03-03 11:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:44:03] Production.INFO: ==14718== Lock acquired, processing the job... [2025-03-03 11:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 11:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:03] Production.INFO: ==14708== Lock acquired, processing the job... [2025-03-03 11:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 11:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:03] Production.INFO: Date 2025-02-11 [2025-03-03 11:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:03] Production.INFO: ==14710== Lock acquired, processing the job... [2025-03-03 11:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:44:03] Production.INFO: count ==13 [2025-03-03 11:44:03] Production.INFO: Date 2025-02-12 [2025-03-03 11:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:44:04] Production.INFO: count ==21 [2025-03-03 11:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:44:04] Production.INFO: ==14712== Lock acquired, processing the job... [2025-03-03 11:44:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598238') start [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: ==14716== Lock acquired, processing the job... [2025-03-03 11:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598238') end [2025-03-03 11:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:44:04] Production.INFO: 1 [2025-03-03 11:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: ==14710== Releasing lock... [2025-03-03 11:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:44:04] Production.INFO: ==14718== Releasing lock... [2025-03-03 11:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.ERROR: done [2025-03-03 11:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 11:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:44:04] Production.ERROR: done [2025-03-03 11:44:04] Production.INFO: Total Charge 0 [2025-03-03 11:44:04] Production.INFO: CreateAllLog End [2025-03-03 11:44:05] Production.INFO: Account Balance End. [2025-03-03 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:44:05] Production.INFO: ==14714== Releasing lock... [2025-03-03 11:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:44:13] Production.ERROR: CronJobId end10 [2025-03-03 11:44:13] Production.INFO: ==14712== Releasing lock... [2025-03-03 11:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:44:16] Production.INFO: call_cost start [2025-03-03 11:44:16] Production.INFO: call_cost end [2025-03-03 11:44:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:44:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:44:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:44:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:44:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:44:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:44:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:44:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:44:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:44:16] Production.INFO: ==14708== Releasing lock... [2025-03-03 11:44:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:44:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:44:17] Production.INFO: count ==409 [2025-03-03 11:44:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598241', 'tblTempUsageDetail_20' ) start [2025-03-03 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598241', 'tblTempUsageDetail_20' ) end [2025-03-03 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598241', 'tblTempVendorCDR_20' ) start [2025-03-03 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598241', 'tblTempVendorCDR_20' ) end [2025-03-03 11:44:17] Production.INFO: ProcessCDR(1,14598241,1,1,2) [2025-03-03 11:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598241', 'tblTempUsageDetail_20' ) start [2025-03-03 11:44:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598241', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:44:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:44:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:44:25] Production.INFO: ==14716== Releasing lock... [2025-03-03 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:44:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:45:02] Production.INFO: ==14776== Lock acquired, processing the job... [2025-03-03 16:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:45:02] Production.INFO: neon service started [2025-03-03 16:45:02] Production.INFO: neon service started [2025-03-03 16:45:02] Production.INFO: ==14776== Releasing lock... [2025-03-03 16:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:45:02] Production.INFO: ==14778== Lock acquired, processing the job... [2025-03-03 11:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:45:02] Production.INFO: ==14780== Lock acquired, processing the job... [2025-03-03 16:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:45:03] Production.INFO: ==14780== Releasing lock... [2025-03-03 16:45:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:45:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:45:03] Production.INFO: ==14778== Releasing lock... [2025-03-03 11:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:45:04] Production.INFO: ==14783== Lock acquired, processing the job... [2025-03-03 11:45:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:45:04] Production.INFO: ==14785== Lock acquired, processing the job... [2025-03-03 11:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:45:04] Production.INFO: ==14787== Lock acquired, processing the job... [2025-03-03 11:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:45:04] Production.INFO: ==14789== Lock acquired, processing the job... [2025-03-03 11:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:45:04] Production.INFO: ==14791== Lock acquired, processing the job... [2025-03-03 11:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:45:04] Production.INFO: Account Balance Start. [2025-03-03 11:45:04] Production.INFO: CreateAllLog Start [2025-03-03 11:45:04] Production.INFO: 117 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: ==14785== Releasing lock... [2025-03-03 11:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:45:04] Production.INFO: ==14793== Lock acquired, processing the job... [2025-03-03 11:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.ERROR: done [2025-03-03 11:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:04] Production.INFO: count ==13 [2025-03-03 11:45:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:45:05] Production.INFO: count ==21 [2025-03-03 11:45:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598245') start [2025-03-03 11:45:05] Production.ERROR: done [2025-03-03 11:45:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:45:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598245') end [2025-03-03 11:45:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:45:05] Production.INFO: 1 [2025-03-03 11:45:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:45:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: ==14793== Releasing lock... [2025-03-03 11:45:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:45:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:45:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:45:05] Production.INFO: Total Charge 0 [2025-03-03 11:45:05] Production.INFO: CreateAllLog End [2025-03-03 11:45:05] Production.INFO: Account Balance End. [2025-03-03 11:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:45:05] Production.INFO: ==14789== Releasing lock... [2025-03-03 11:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:45:13] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,10))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 11:45:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:45:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:45:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:45:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:45:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:45:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:45:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:45:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:45:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:45:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:45:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:45:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:45:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:45:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:45:13] Production.ERROR: CronJobId end10 [2025-03-03 11:45:13] Production.INFO: ==14787== Releasing lock... [2025-03-03 11:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:45:14] Production.INFO: call_cost start [2025-03-03 11:45:14] Production.INFO: call_cost end [2025-03-03 11:45:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:45:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:45:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:45:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:45:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:45:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:45:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:45:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:45:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:45:14] Production.INFO: ==14783== Releasing lock... [2025-03-03 11:45:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:45:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:45:17] Production.INFO: count ==409 [2025-03-03 11:45:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598246', 'tblTempUsageDetail_20' ) start [2025-03-03 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598246', 'tblTempUsageDetail_20' ) end [2025-03-03 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598246', 'tblTempVendorCDR_20' ) start [2025-03-03 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598246', 'tblTempVendorCDR_20' ) end [2025-03-03 11:45:17] Production.INFO: ProcessCDR(1,14598246,1,1,2) [2025-03-03 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598246', 'tblTempUsageDetail_20' ) start [2025-03-03 11:45:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598246', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:45:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:45:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:45:26] Production.INFO: ==14791== Releasing lock... [2025-03-03 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:45:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:46:02] Production.INFO: ==14850== Lock acquired, processing the job... [2025-03-03 16:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:46:02] Production.INFO: neon service started [2025-03-03 16:46:02] Production.INFO: neon service started [2025-03-03 16:46:02] Production.INFO: ==14850== Releasing lock... [2025-03-03 16:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:46:02] Production.INFO: ==14853== Lock acquired, processing the job... [2025-03-03 11:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:46:02] Production.INFO: ==14853== Releasing lock... [2025-03-03 11:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:46:03] Production.INFO: ==14855== Lock acquired, processing the job... [2025-03-03 16:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:46:03] Production.INFO: ==14855== Releasing lock... [2025-03-03 16:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:46:04] Production.INFO: ==14859== Lock acquired, processing the job... [2025-03-03 11:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:46:04] Production.INFO: ==14861== Lock acquired, processing the job... [2025-03-03 11:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:46:04] Production.INFO: ==14857== Lock acquired, processing the job... [2025-03-03 11:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:46:04] Production.INFO: ==14867== Lock acquired, processing the job... [2025-03-03 11:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:46:04] Production.INFO: ==14863== Lock acquired, processing the job... [2025-03-03 11:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:46:04] Production.INFO: ==14865== Lock acquired, processing the job... [2025-03-03 11:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:46:04] Production.INFO: Account Balance Start. [2025-03-03 11:46:04] Production.INFO: CreateAllLog Start [2025-03-03 11:46:04] Production.INFO: 117 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:46:04] Production.INFO: count ==13 [2025-03-03 11:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:46:04] Production.INFO: count ==21 [2025-03-03 11:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598249') start [2025-03-03 11:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: ==14859== Releasing lock... [2025-03-03 11:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598249') end [2025-03-03 11:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:46:04] Production.INFO: 1 [2025-03-03 11:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.ERROR: done [2025-03-03 11:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:46:04] Production.INFO: ==14867== Releasing lock... [2025-03-03 11:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.ERROR: done [2025-03-03 11:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:46:05] Production.INFO: Total Charge 0 [2025-03-03 11:46:05] Production.INFO: CreateAllLog End [2025-03-03 11:46:05] Production.INFO: Account Balance End. [2025-03-03 11:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:46:05] Production.INFO: ==14863== Releasing lock... [2025-03-03 11:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:46:12] Production.ERROR: CronJobId end10 [2025-03-03 11:46:12] Production.INFO: ==14861== Releasing lock... [2025-03-03 11:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:46:15] Production.INFO: call_cost start [2025-03-03 11:46:15] Production.INFO: call_cost end [2025-03-03 11:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:46:15] Production.INFO: ==14857== Releasing lock... [2025-03-03 11:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:46:17] Production.INFO: count ==409 [2025-03-03 11:46:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598251', 'tblTempUsageDetail_20' ) start [2025-03-03 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598251', 'tblTempUsageDetail_20' ) end [2025-03-03 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598251', 'tblTempVendorCDR_20' ) start [2025-03-03 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598251', 'tblTempVendorCDR_20' ) end [2025-03-03 11:46:17] Production.INFO: ProcessCDR(1,14598251,1,1,2) [2025-03-03 11:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598251', 'tblTempUsageDetail_20' ) start [2025-03-03 11:46:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598251', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:46:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:46:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:46:26] Production.INFO: ==14865== Releasing lock... [2025-03-03 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:46:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:47:02] Production.INFO: ==14929== Lock acquired, processing the job... [2025-03-03 16:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:47:02] Production.INFO: neon service started [2025-03-03 16:47:02] Production.INFO: neon service started [2025-03-03 16:47:02] Production.INFO: ==14929== Releasing lock... [2025-03-03 16:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:47:02] Production.INFO: ==14931== Lock acquired, processing the job... [2025-03-03 11:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:47:02] Production.INFO: ==14931== Releasing lock... [2025-03-03 11:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:47:03] Production.INFO: ==14933== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:47:03] Production.INFO: ==14933== Releasing lock... [2025-03-03 16:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:47:03] Production.INFO: ==14936== Lock acquired, processing the job... [2025-03-03 11:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:47:03] Production.INFO: ==14938== Lock acquired, processing the job... [2025-03-03 11:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:47:03] Production.INFO: ==14942== Lock acquired, processing the job... [2025-03-03 11:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:47:04] Production.INFO: Account Balance Start. [2025-03-03 11:47:04] Production.INFO: CreateAllLog Start [2025-03-03 11:47:04] Production.INFO: 117 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: ==14940== Lock acquired, processing the job... [2025-03-03 11:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:47:04] Production.INFO: ==14938== Releasing lock... [2025-03-03 11:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: ==14944== Lock acquired, processing the job... [2025-03-03 11:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: ==14946== Lock acquired, processing the job... [2025-03-03 11:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: count ==13 [2025-03-03 11:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:47:04] Production.INFO: count ==21 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598255') start [2025-03-03 11:47:04] Production.ERROR: done [2025-03-03 11:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598255') end [2025-03-03 11:47:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:47:05] Production.INFO: 1 [2025-03-03 11:47:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.INFO: ==14946== Releasing lock... [2025-03-03 11:47:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:47:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:47:05] Production.ERROR: done [2025-03-03 11:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:47:05] Production.INFO: Total Charge 0 [2025-03-03 11:47:05] Production.INFO: CreateAllLog End [2025-03-03 11:47:05] Production.INFO: Account Balance End. [2025-03-03 11:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:47:05] Production.INFO: ==14942== Releasing lock... [2025-03-03 11:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:47:14] Production.ERROR: CronJobId end10 [2025-03-03 11:47:14] Production.INFO: ==14940== Releasing lock... [2025-03-03 11:47:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:47:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:47:15] Production.INFO: call_cost start [2025-03-03 11:47:15] Production.INFO: call_cost end [2025-03-03 11:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:47:15] Production.INFO: ==14936== Releasing lock... [2025-03-03 11:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:47:17] Production.INFO: count ==409 [2025-03-03 11:47:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598256', 'tblTempUsageDetail_20' ) start [2025-03-03 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598256', 'tblTempUsageDetail_20' ) end [2025-03-03 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598256', 'tblTempVendorCDR_20' ) start [2025-03-03 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598256', 'tblTempVendorCDR_20' ) end [2025-03-03 11:47:17] Production.INFO: ProcessCDR(1,14598256,1,1,2) [2025-03-03 11:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598256', 'tblTempUsageDetail_20' ) start [2025-03-03 11:47:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598256', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:47:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:47:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:47:26] Production.INFO: ==14944== Releasing lock... [2025-03-03 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:47:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:48:01] Production.INFO: ==15004== Lock acquired, processing the job... [2025-03-03 16:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:48:01] Production.INFO: neon service started [2025-03-03 16:48:01] Production.INFO: neon service started [2025-03-03 16:48:01] Production.INFO: ==15004== Releasing lock... [2025-03-03 16:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:48:02] Production.INFO: ==15006== Lock acquired, processing the job... [2025-03-03 11:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:48:02] Production.INFO: ==15006== Releasing lock... [2025-03-03 11:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:48:02] Production.INFO: ==15008== Lock acquired, processing the job... [2025-03-03 16:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:48:03] Production.INFO: ==15008== Releasing lock... [2025-03-03 16:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:48:03] Production.INFO: ==15011== Lock acquired, processing the job... [2025-03-03 11:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:48:03] Production.INFO: ==15015== Lock acquired, processing the job... [2025-03-03 11:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:48:03] Production.INFO: ==15019== Lock acquired, processing the job... [2025-03-03 11:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:48:03] Production.INFO: ==15013== Lock acquired, processing the job... [2025-03-03 11:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:48:03] Production.INFO: ==15017== Lock acquired, processing the job... [2025-03-03 11:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:48:04] Production.INFO: ==15021== Lock acquired, processing the job... [2025-03-03 11:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:48:04] Production.ERROR: done [2025-03-03 11:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:48:04] Production.INFO: Account Balance Start. [2025-03-03 11:48:04] Production.INFO: CreateAllLog Start [2025-03-03 11:48:04] Production.INFO: 117 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: count ==13 [2025-03-03 11:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:48:04] Production.ERROR: done [2025-03-03 11:48:04] Production.INFO: count ==21 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598260') start [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: ==15013== Releasing lock... [2025-03-03 11:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598260') end [2025-03-03 11:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:48:04] Production.INFO: 1 [2025-03-03 11:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: ==15021== Releasing lock... [2025-03-03 11:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 11:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:48:05] Production.INFO: Total Charge 0 [2025-03-03 11:48:05] Production.INFO: CreateAllLog End [2025-03-03 11:48:05] Production.INFO: Account Balance End. [2025-03-03 11:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:48:05] Production.INFO: ==15017== Releasing lock... [2025-03-03 11:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:48:13] Production.ERROR: CronJobId end10 [2025-03-03 11:48:13] Production.INFO: ==15015== Releasing lock... [2025-03-03 11:48:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:48:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:48:16] Production.INFO: call_cost start [2025-03-03 11:48:16] Production.INFO: call_cost end [2025-03-03 11:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:48:16] Production.INFO: ==15011== Releasing lock... [2025-03-03 11:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:48:16] Production.INFO: count ==409 [2025-03-03 11:48:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598261', 'tblTempUsageDetail_20' ) start [2025-03-03 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598261', 'tblTempUsageDetail_20' ) end [2025-03-03 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598261', 'tblTempVendorCDR_20' ) start [2025-03-03 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598261', 'tblTempVendorCDR_20' ) end [2025-03-03 11:48:17] Production.INFO: ProcessCDR(1,14598261,1,1,2) [2025-03-03 11:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598261', 'tblTempUsageDetail_20' ) start [2025-03-03 11:48:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598261', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:48:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:48:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:48:25] Production.INFO: ==15019== Releasing lock... [2025-03-03 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:48:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:49:02] Production.INFO: ==15079== Lock acquired, processing the job... [2025-03-03 16:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:49:02] Production.INFO: neon service started [2025-03-03 16:49:02] Production.INFO: neon service started [2025-03-03 16:49:02] Production.INFO: ==15079== Releasing lock... [2025-03-03 16:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:49:02] Production.INFO: ==15082== Lock acquired, processing the job... [2025-03-03 11:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:49:02] Production.INFO: ==15082== Releasing lock... [2025-03-03 11:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:49:03] Production.INFO: ==15084== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:49:03] Production.INFO: ==15084== Releasing lock... [2025-03-03 16:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:49:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:49:03] Production.INFO: ==15090== Lock acquired, processing the job... [2025-03-03 11:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:49:04] Production.INFO: ==15096== Lock acquired, processing the job... [2025-03-03 11:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:49:04] Production.INFO: ==15086== Lock acquired, processing the job... [2025-03-03 11:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:49:04] Production.INFO: ==15088== Lock acquired, processing the job... [2025-03-03 11:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:49:04] Production.INFO: count ==13 [2025-03-03 11:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:49:04] Production.INFO: count ==21 [2025-03-03 11:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598262') start [2025-03-03 11:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:49:04] Production.INFO: ==15092== Lock acquired, processing the job... [2025-03-03 11:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:49:04] Production.INFO: ==15094== Lock acquired, processing the job... [2025-03-03 11:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598262') end [2025-03-03 11:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:49:04] Production.INFO: 1 [2025-03-03 11:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:49:04] Production.INFO: Account Balance Start. [2025-03-03 11:49:04] Production.INFO: CreateAllLog Start [2025-03-03 11:49:04] Production.INFO: 117 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:49:04] Production.INFO: ==15096== Releasing lock... [2025-03-03 11:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: ==15088== Releasing lock... [2025-03-03 11:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.ERROR: done [2025-03-03 11:49:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.ERROR: done [2025-03-03 11:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:49:05] Production.INFO: Total Charge 0 [2025-03-03 11:49:05] Production.INFO: CreateAllLog End [2025-03-03 11:49:05] Production.INFO: Account Balance End. [2025-03-03 11:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:49:05] Production.INFO: ==15092== Releasing lock... [2025-03-03 11:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:49:14] Production.ERROR: CronJobId end10 [2025-03-03 11:49:14] Production.INFO: ==15090== Releasing lock... [2025-03-03 11:49:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:49:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:49:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:49:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:49:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:49:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:49:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:49:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:49:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:49:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:49:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:49:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:49:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:49:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:49:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:49:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:49:16] Production.INFO: call_cost start [2025-03-03 11:49:16] Production.INFO: call_cost end [2025-03-03 11:49:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:49:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:49:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:49:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:49:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:49:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:49:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:49:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:49:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:49:16] Production.INFO: ==15086== Releasing lock... [2025-03-03 11:49:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:49:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:49:17] Production.INFO: count ==409 [2025-03-03 11:49:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598266', 'tblTempUsageDetail_20' ) start [2025-03-03 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598266', 'tblTempUsageDetail_20' ) end [2025-03-03 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598266', 'tblTempVendorCDR_20' ) start [2025-03-03 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598266', 'tblTempVendorCDR_20' ) end [2025-03-03 11:49:17] Production.INFO: ProcessCDR(1,14598266,1,1,2) [2025-03-03 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598266', 'tblTempUsageDetail_20' ) start [2025-03-03 11:49:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598266', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:49:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:49:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:49:26] Production.INFO: ==15094== Releasing lock... [2025-03-03 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:49:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:50:01] Production.INFO: ==15155== Lock acquired, processing the job... [2025-03-03 16:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:50:01] Production.INFO: neon service started [2025-03-03 16:50:01] Production.INFO: neon service started [2025-03-03 16:50:01] Production.INFO: ==15155== Releasing lock... [2025-03-03 16:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:50:02] Production.INFO: ==15157== Lock acquired, processing the job... [2025-03-03 11:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:50:02] Production.INFO: ==15159== Lock acquired, processing the job... [2025-03-03 16:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:50:02] Production.INFO: ==15159== Releasing lock... [2025-03-03 16:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:50:02] Production.INFO: ==15157== Releasing lock... [2025-03-03 11:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:50:04] Production.INFO: ==15170== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:50:04] Production.INFO: Account Balance Start. [2025-03-03 11:50:04] Production.INFO: CreateAllLog Start [2025-03-03 11:50:04] Production.INFO: 117 [2025-03-03 11:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:50:04] Production.INFO: ==15174== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: ==15162== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 11:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:50:04] Production.INFO: ==15176== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: ==15164== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: ==15166== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: ==15168== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:50:04] Production.INFO: ==15172== Lock acquired, processing the job... [2025-03-03 11:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:50:04] Production.ERROR: CronJob PID - 15164 [2025-03-03 11:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 11:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 11:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:50:00 [2025-03-03 11:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:50:04] Production.ERROR: CronJob PID - 15166 [2025-03-03 11:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 11:50:04] Production.ERROR: CronJob ID - 7 [2025-03-03 11:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:50:00 [2025-03-03 11:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:50:04] Production.ERROR: CronJob PID - 15168 [2025-03-03 11:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 11:50:04] Production.ERROR: CronJob ID - 10 [2025-03-03 11:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:50:00 [2025-03-03 11:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:50:04] Production.ERROR: CronJob PID - 15170 [2025-03-03 11:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 11:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 11:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:50:00 [2025-03-03 11:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:50:04] Production.ERROR: CronJob PID - 15174 [2025-03-03 11:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 11:50:04] Production.ERROR: CronJob ID - 17 [2025-03-03 11:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:50:00 [2025-03-03 11:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 11:50:04] Production.ERROR: CronJob PID - 15176 [2025-03-03 11:50:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 11:50:04] Production.ERROR: CronJob ID - 19 [2025-03-03 11:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 11:50:00 [2025-03-03 11:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 11:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:50:04] Production.INFO: count ==13 [2025-03-03 11:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:50:04] Production.INFO: count ==21 [2025-03-03 11:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598268') start [2025-03-03 11:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 11:50:04] Production.INFO: ==15162== Releasing lock... [2025-03-03 11:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 11:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 11:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:50:04] Production.ERROR: done [2025-03-03 11:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 11:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598271', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 11:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598268') end [2025-03-03 11:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:50:05] Production.INFO: 1 [2025-03-03 11:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: ==15176== Releasing lock... [2025-03-03 11:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:50:05] Production.INFO: ==15166== Releasing lock... [2025-03-03 11:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.ERROR: done [2025-03-03 11:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:50:05] Production.ERROR: done [2025-03-03 11:50:05] Production.INFO: Total Charge 0 [2025-03-03 11:50:05] Production.INFO: CreateAllLog End [2025-03-03 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:50:06] Production.INFO: Account Balance End. [2025-03-03 11:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:50:06] Production.INFO: ==15170== Releasing lock... [2025-03-03 11:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598271', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 11:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 11:50:10] Production.INFO: ProcessCDR(1,14598271,1,1,2) [2025-03-03 11:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598271,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598271,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:50:10] Production.INFO: ==15174== Releasing lock... [2025-03-03 11:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 11:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 11:50:15] Production.ERROR: CronJobId end10 [2025-03-03 11:50:15] Production.INFO: ==15168== Releasing lock... [2025-03-03 11:50:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:50:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:50:18] Production.INFO: call_cost start [2025-03-03 11:50:18] Production.INFO: call_cost end [2025-03-03 11:50:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:50:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:50:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:50:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:50:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:50:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:50:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:50:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:50:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:50:18] Production.INFO: ==15164== Releasing lock... [2025-03-03 11:50:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:50:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:50:18] Production.INFO: count ==409 [2025-03-03 11:50:18] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598272', 'tblTempUsageDetail_20' ) start [2025-03-03 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598272', 'tblTempUsageDetail_20' ) end [2025-03-03 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598272', 'tblTempVendorCDR_20' ) start [2025-03-03 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598272', 'tblTempVendorCDR_20' ) end [2025-03-03 11:50:18] Production.INFO: ProcessCDR(1,14598272,1,1,2) [2025-03-03 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598272', 'tblTempUsageDetail_20' ) start [2025-03-03 11:50:26] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598272', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:50:27] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:50:27] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:50:27] Production.INFO: ==15172== Releasing lock... [2025-03-03 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:50:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:51:02] Production.INFO: ==15232== Lock acquired, processing the job... [2025-03-03 16:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:51:02] Production.INFO: neon service started [2025-03-03 16:51:02] Production.INFO: neon service started [2025-03-03 16:51:02] Production.INFO: ==15232== Releasing lock... [2025-03-03 16:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:51:02] Production.INFO: ==15236== Lock acquired, processing the job... [2025-03-03 16:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:51:02] Production.INFO: ==15236== Releasing lock... [2025-03-03 16:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:51:02] Production.INFO: ==15234== Lock acquired, processing the job... [2025-03-03 11:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:51:03] Production.INFO: ==15234== Releasing lock... [2025-03-03 11:51:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:51:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:51:04] Production.INFO: ==15242== Lock acquired, processing the job... [2025-03-03 11:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:51:04] Production.INFO: ==15249== Lock acquired, processing the job... [2025-03-03 11:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:51:04] Production.INFO: ==15238== Lock acquired, processing the job... [2025-03-03 11:51:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:51:04] Production.INFO: ==15240== Lock acquired, processing the job... [2025-03-03 11:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:51:04] Production.INFO: count ==13 [2025-03-03 11:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:51:04] Production.INFO: count ==21 [2025-03-03 11:51:04] Production.INFO: ==15245== Lock acquired, processing the job... [2025-03-03 11:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598273') start [2025-03-03 11:51:04] Production.INFO: ==15247== Lock acquired, processing the job... [2025-03-03 11:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598273') end [2025-03-03 11:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:51:04] Production.INFO: 1 [2025-03-03 11:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:51:04] Production.INFO: Account Balance Start. [2025-03-03 11:51:04] Production.INFO: CreateAllLog Start [2025-03-03 11:51:04] Production.INFO: 117 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: ==15249== Releasing lock... [2025-03-03 11:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:04] Production.INFO: ==15240== Releasing lock... [2025-03-03 11:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:51:05] Production.ERROR: done [2025-03-03 11:51:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.ERROR: done [2025-03-03 11:51:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:51:05] Production.INFO: Total Charge 0 [2025-03-03 11:51:05] Production.INFO: CreateAllLog End [2025-03-03 11:51:05] Production.INFO: Account Balance End. [2025-03-03 11:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:51:05] Production.INFO: ==15245== Releasing lock... [2025-03-03 11:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:51:12] Production.ERROR: CronJobId end10 [2025-03-03 11:51:12] Production.INFO: ==15242== Releasing lock... [2025-03-03 11:51:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:51:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:51:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:51:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:51:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:51:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:51:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:51:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:51:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:51:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:51:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:51:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:51:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:51:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:51:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:51:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:51:15] Production.INFO: call_cost start [2025-03-03 11:51:15] Production.INFO: call_cost end [2025-03-03 11:51:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:51:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:51:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:51:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:51:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:51:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:51:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:51:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:51:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:51:15] Production.INFO: ==15238== Releasing lock... [2025-03-03 11:51:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:51:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:51:17] Production.INFO: count ==409 [2025-03-03 11:51:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598277', 'tblTempUsageDetail_20' ) start [2025-03-03 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598277', 'tblTempUsageDetail_20' ) end [2025-03-03 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598277', 'tblTempVendorCDR_20' ) start [2025-03-03 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598277', 'tblTempVendorCDR_20' ) end [2025-03-03 11:51:17] Production.INFO: ProcessCDR(1,14598277,1,1,2) [2025-03-03 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598277', 'tblTempUsageDetail_20' ) start [2025-03-03 11:51:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598277', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:51:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:51:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:51:26] Production.INFO: ==15247== Releasing lock... [2025-03-03 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:51:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:52:01] Production.INFO: ==15304== Lock acquired, processing the job... [2025-03-03 16:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:52:01] Production.INFO: neon service started [2025-03-03 16:52:01] Production.INFO: neon service started [2025-03-03 16:52:01] Production.INFO: ==15304== Releasing lock... [2025-03-03 16:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:52:02] Production.INFO: ==15306== Lock acquired, processing the job... [2025-03-03 11:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:52:02] Production.INFO: ==15306== Releasing lock... [2025-03-03 11:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:52:02] Production.INFO: ==15308== Lock acquired, processing the job... [2025-03-03 16:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:52:03] Production.INFO: ==15308== Releasing lock... [2025-03-03 16:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:52:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:52:03] Production.INFO: ==15310== Lock acquired, processing the job... [2025-03-03 11:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:52:03] Production.INFO: ==15312== Lock acquired, processing the job... [2025-03-03 11:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:52:03] Production.INFO: ==15316== Lock acquired, processing the job... [2025-03-03 11:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:52:03] Production.INFO: ==15314== Lock acquired, processing the job... [2025-03-03 11:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:52:03] Production.INFO: ==15318== Lock acquired, processing the job... [2025-03-03 11:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:52:03] Production.INFO: Account Balance Start. [2025-03-03 11:52:03] Production.INFO: CreateAllLog Start [2025-03-03 11:52:03] Production.INFO: 117 [2025-03-03 11:52:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:52:04] Production.INFO: ==15320== Lock acquired, processing the job... [2025-03-03 11:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: ==15312== Releasing lock... [2025-03-03 11:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: count ==13 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:52:04] Production.INFO: count ==21 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598281') start [2025-03-03 11:52:04] Production.ERROR: done [2025-03-03 11:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598281') end [2025-03-03 11:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:52:04] Production.INFO: 1 [2025-03-03 11:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: ==15320== Releasing lock... [2025-03-03 11:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:52:04] Production.ERROR: done [2025-03-03 11:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:52:05] Production.INFO: Total Charge 0 [2025-03-03 11:52:05] Production.INFO: CreateAllLog End [2025-03-03 11:52:05] Production.INFO: Account Balance End. [2025-03-03 11:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:52:05] Production.INFO: ==15316== Releasing lock... [2025-03-03 11:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:52:14] Production.ERROR: CronJobId end10 [2025-03-03 11:52:14] Production.INFO: ==15314== Releasing lock... [2025-03-03 11:52:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:52:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:52:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:52:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:52:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:52:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:52:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:52:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:52:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:52:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:52:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:52:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:52:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:52:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:52:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:52:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:52:16] Production.INFO: call_cost start [2025-03-03 11:52:16] Production.INFO: call_cost end [2025-03-03 11:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:52:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:52:16] Production.INFO: ==15310== Releasing lock... [2025-03-03 11:52:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:52:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:52:17] Production.INFO: count ==409 [2025-03-03 11:52:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598282', 'tblTempUsageDetail_20' ) start [2025-03-03 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598282', 'tblTempUsageDetail_20' ) end [2025-03-03 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598282', 'tblTempVendorCDR_20' ) start [2025-03-03 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598282', 'tblTempVendorCDR_20' ) end [2025-03-03 11:52:17] Production.INFO: ProcessCDR(1,14598282,1,1,2) [2025-03-03 11:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598282', 'tblTempUsageDetail_20' ) start [2025-03-03 11:52:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598282', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:52:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:52:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:52:25] Production.INFO: ==15318== Releasing lock... [2025-03-03 11:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:52:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:53:02] Production.INFO: ==15380== Lock acquired, processing the job... [2025-03-03 16:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:53:02] Production.INFO: neon service started [2025-03-03 16:53:02] Production.INFO: neon service started [2025-03-03 16:53:02] Production.INFO: ==15380== Releasing lock... [2025-03-03 16:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:53:02] Production.INFO: ==15384== Lock acquired, processing the job... [2025-03-03 16:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:53:02] Production.INFO: ==15384== Releasing lock... [2025-03-03 16:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:53:02] Production.INFO: ==15382== Lock acquired, processing the job... [2025-03-03 11:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:53:03] Production.INFO: ==15382== Releasing lock... [2025-03-03 11:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:53:03] Production.INFO: ==15391== Lock acquired, processing the job... [2025-03-03 11:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:53:04] Production.INFO: ==15397== Lock acquired, processing the job... [2025-03-03 11:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:53:04] Production.INFO: ==15387== Lock acquired, processing the job... [2025-03-03 11:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:53:04] Production.INFO: ==15389== Lock acquired, processing the job... [2025-03-03 11:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:53:04] Production.INFO: ==15393== Lock acquired, processing the job... [2025-03-03 11:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:53:04] Production.INFO: ==15395== Lock acquired, processing the job... [2025-03-03 11:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:53:04] Production.INFO: count ==13 [2025-03-03 11:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:53:04] Production.INFO: count ==21 [2025-03-03 11:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598283') start [2025-03-03 11:53:04] Production.INFO: Account Balance Start. [2025-03-03 11:53:04] Production.INFO: CreateAllLog Start [2025-03-03 11:53:04] Production.INFO: 117 [2025-03-03 11:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598283') end [2025-03-03 11:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:53:04] Production.INFO: 1 [2025-03-03 11:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.INFO: ==15389== Releasing lock... [2025-03-03 11:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:53:04] Production.INFO: ==15397== Releasing lock... [2025-03-03 11:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-16 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.ERROR: done [2025-03-03 11:53:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-17 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.ERROR: done [2025-03-03 11:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:53:05] Production.INFO: Total Charge 0 [2025-03-03 11:53:05] Production.INFO: CreateAllLog End [2025-03-03 11:53:05] Production.INFO: Account Balance End. [2025-03-03 11:53:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:53:06] Production.INFO: ==15393== Releasing lock... [2025-03-03 11:53:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:53:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:53:13] Production.ERROR: CronJobId end10 [2025-03-03 11:53:13] Production.INFO: ==15391== Releasing lock... [2025-03-03 11:53:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:53:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:53:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:53:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:53:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:53:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:53:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:53:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:53:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:53:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:53:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:53:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:53:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:53:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:53:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:53:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:53:15] Production.INFO: call_cost start [2025-03-03 11:53:15] Production.INFO: call_cost end [2025-03-03 11:53:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:53:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:53:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:53:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:53:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:53:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:53:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:53:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:53:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:53:15] Production.INFO: ==15387== Releasing lock... [2025-03-03 11:53:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:53:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:53:17] Production.INFO: count ==409 [2025-03-03 11:53:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598287', 'tblTempUsageDetail_20' ) start [2025-03-03 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598287', 'tblTempUsageDetail_20' ) end [2025-03-03 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598287', 'tblTempVendorCDR_20' ) start [2025-03-03 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598287', 'tblTempVendorCDR_20' ) end [2025-03-03 11:53:17] Production.INFO: ProcessCDR(1,14598287,1,1,2) [2025-03-03 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598287', 'tblTempUsageDetail_20' ) start [2025-03-03 11:53:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598287', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:53:26] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:53:26] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:53:26] Production.INFO: ==15395== Releasing lock... [2025-03-03 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:53:26] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:54:01] Production.INFO: ==15452== Lock acquired, processing the job... [2025-03-03 16:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:54:02] Production.INFO: neon service started [2025-03-03 16:54:02] Production.INFO: neon service started [2025-03-03 16:54:02] Production.INFO: ==15452== Releasing lock... [2025-03-03 16:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:54:02] Production.INFO: ==15455== Lock acquired, processing the job... [2025-03-03 11:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:54:02] Production.INFO: ==15457== Lock acquired, processing the job... [2025-03-03 16:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 11:54:02] Production.INFO: ==15455== Releasing lock... [2025-03-03 11:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:54:02] Production.INFO: ==15457== Releasing lock... [2025-03-03 16:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:54:04] Production.INFO: ==15459== Lock acquired, processing the job... [2025-03-03 11:54:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:54:04] Production.INFO: ==15466== Lock acquired, processing the job... [2025-03-03 11:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:54:04] Production.INFO: ==15461== Lock acquired, processing the job... [2025-03-03 11:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:54:04] Production.INFO: ==15464== Lock acquired, processing the job... [2025-03-03 11:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:54:04] Production.INFO: ==15468== Lock acquired, processing the job... [2025-03-03 11:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:54:04] Production.INFO: ==15470== Lock acquired, processing the job... [2025-03-03 11:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:54:04] Production.INFO: Account Balance Start. [2025-03-03 11:54:04] Production.INFO: CreateAllLog Start [2025-03-03 11:54:04] Production.INFO: 117 [2025-03-03 11:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: count ==13 [2025-03-03 11:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:54:04] Production.INFO: count ==21 [2025-03-03 11:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598291') start [2025-03-03 11:54:04] Production.ERROR: done [2025-03-03 11:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:54:04] Production.INFO: ==15461== Releasing lock... [2025-03-03 11:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598291') end [2025-03-03 11:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:54:04] Production.INFO: 1 [2025-03-03 11:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:54:04] Production.ERROR: done [2025-03-03 11:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: ==15470== Releasing lock... [2025-03-03 11:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:54:05] Production.INFO: Total Charge 0 [2025-03-03 11:54:05] Production.INFO: CreateAllLog End [2025-03-03 11:54:05] Production.INFO: Account Balance End. [2025-03-03 11:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:54:05] Production.INFO: ==15466== Releasing lock... [2025-03-03 11:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:54:12] Production.ERROR: CronJobId end10 [2025-03-03 11:54:12] Production.INFO: ==15464== Releasing lock... [2025-03-03 11:54:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:54:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:54:15] Production.INFO: call_cost start [2025-03-03 11:54:15] Production.INFO: call_cost end [2025-03-03 11:54:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:54:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:54:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:54:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:54:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:54:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:54:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:54:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:54:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:54:15] Production.INFO: ==15459== Releasing lock... [2025-03-03 11:54:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:54:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:54:17] Production.INFO: count ==409 [2025-03-03 11:54:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598292', 'tblTempUsageDetail_20' ) start [2025-03-03 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598292', 'tblTempUsageDetail_20' ) end [2025-03-03 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598292', 'tblTempVendorCDR_20' ) start [2025-03-03 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598292', 'tblTempVendorCDR_20' ) end [2025-03-03 11:54:17] Production.INFO: ProcessCDR(1,14598292,1,1,2) [2025-03-03 11:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598292', 'tblTempUsageDetail_20' ) start [2025-03-03 11:54:25] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598292', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:54:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:54:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:54:25] Production.INFO: ==15468== Releasing lock... [2025-03-03 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:54:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:55:01] Production.INFO: ==15526== Lock acquired, processing the job... [2025-03-03 16:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:55:01] Production.INFO: neon service started [2025-03-03 16:55:01] Production.INFO: neon service started [2025-03-03 16:55:01] Production.INFO: ==15526== Releasing lock... [2025-03-03 16:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:55:02] Production.INFO: ==15529== Lock acquired, processing the job... [2025-03-03 11:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:55:02] Production.INFO: ==15531== Lock acquired, processing the job... [2025-03-03 16:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:55:02] Production.INFO: ==15531== Releasing lock... [2025-03-03 16:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:55:02] Production.INFO: ==15529== Releasing lock... [2025-03-03 11:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:55:03] Production.INFO: ==15541== Lock acquired, processing the job... [2025-03-03 11:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:55:03] Production.INFO: ==15543== Lock acquired, processing the job... [2025-03-03 11:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:55:04] Production.INFO: ==15533== Lock acquired, processing the job... [2025-03-03 11:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:55:04] Production.INFO: ==15535== Lock acquired, processing the job... [2025-03-03 11:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:55:04] Production.INFO: count ==13 [2025-03-03 11:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:55:04] Production.INFO: count ==21 [2025-03-03 11:55:04] Production.INFO: ==15537== Lock acquired, processing the job... [2025-03-03 11:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:55:04] Production.INFO: ==15539== Lock acquired, processing the job... [2025-03-03 11:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598293') start [2025-03-03 11:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598293') end [2025-03-03 11:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:55:04] Production.INFO: 1 [2025-03-03 11:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:55:04] Production.INFO: Account Balance Start. [2025-03-03 11:55:04] Production.INFO: CreateAllLog Start [2025-03-03 11:55:04] Production.INFO: 117 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: ==15543== Releasing lock... [2025-03-03 11:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:55:04] Production.ERROR: done [2025-03-03 11:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: ==15535== Releasing lock... [2025-03-03 11:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.ERROR: done [2025-03-03 11:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 11: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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:55:05] Production.INFO: Total Charge 0 [2025-03-03 11:55:05] Production.INFO: CreateAllLog End [2025-03-03 11:55:05] Production.INFO: Account Balance End. [2025-03-03 11:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:55:05] Production.INFO: ==15539== Releasing lock... [2025-03-03 11:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:55:12] Production.ERROR: CronJobId end10 [2025-03-03 11:55:12] Production.INFO: ==15537== Releasing lock... [2025-03-03 11:55:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:55:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:55:15] Production.INFO: call_cost start [2025-03-03 11:55:15] Production.INFO: call_cost end [2025-03-03 11:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:55:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:55:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:55:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:55:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:55:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:55:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:55:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:55:15] Production.INFO: ==15533== Releasing lock... [2025-03-03 11:55:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:55:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:55:16] Production.INFO: count ==409 [2025-03-03 11:55:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598297', 'tblTempUsageDetail_20' ) start [2025-03-03 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598297', 'tblTempUsageDetail_20' ) end [2025-03-03 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598297', 'tblTempVendorCDR_20' ) start [2025-03-03 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598297', 'tblTempVendorCDR_20' ) end [2025-03-03 11:55:17] Production.INFO: ProcessCDR(1,14598297,1,1,2) [2025-03-03 11:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598297', 'tblTempUsageDetail_20' ) start [2025-03-03 11:55:24] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_Proce...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #8 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #9 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 (SQL: CALL prc_ProcessDiscountPlan ('14598297', 'tblTempUsageDetail_20' ))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_Proce...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_Proce...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->statement('CALL prc_Proce...') #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->__call('statement', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(210): Illuminate\Database\DatabaseManager->statement('CALL prc_Proce...') #6 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): Illuminate\Support\Facades\Facade::__callStatic('statement', Array) #7 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [2025-03-03 11:55:25] Production.ERROR: **Email Sent Status 1 [2025-03-03 11:55:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-03 11:55:25] Production.INFO: ==15541== Releasing lock... [2025-03-03 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:55:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-03 16:56:02] Production.INFO: ==15600== Lock acquired, processing the job... [2025-03-03 16:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:56:02] Production.INFO: neon service started [2025-03-03 16:56:02] Production.INFO: neon service started [2025-03-03 16:56:02] Production.INFO: ==15600== Releasing lock... [2025-03-03 16:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:56:02] Production.INFO: ==15604== Lock acquired, processing the job... [2025-03-03 16:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:56:02] Production.INFO: ==15604== Releasing lock... [2025-03-03 16:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:56:02] Production.INFO: ==15602== Lock acquired, processing the job... [2025-03-03 11:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:56:02] Production.INFO: ==15602== Releasing lock... [2025-03-03 11:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:56:03] Production.INFO: ==15609== Lock acquired, processing the job... [2025-03-03 11:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:56:04] Production.INFO: ==15617== Lock acquired, processing the job... [2025-03-03 11:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:56:04] Production.INFO: count ==13 [2025-03-03 11:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:56:04] Production.INFO: count ==21 [2025-03-03 11:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598299') start [2025-03-03 11:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598299') end [2025-03-03 11:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:56:04] Production.INFO: 1 [2025-03-03 11:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:56:04] Production.INFO: ==15607== Lock acquired, processing the job... [2025-03-03 11:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:56:04] Production.INFO: ==15609== Releasing lock... [2025-03-03 11:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:56:04] Production.INFO: ==15617== Releasing lock... [2025-03-03 11:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:56:04] Production.INFO: ==15613== Lock acquired, processing the job... [2025-03-03 11:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:56:04] Production.INFO: ==15611== Lock acquired, processing the job... [2025-03-03 11:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:56:04] Production.INFO: ==15615== Lock acquired, processing the job... [2025-03-03 11:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:56:04] Production.INFO: Account Balance Start. [2025-03-03 11:56:04] Production.INFO: CreateAllLog Start [2025-03-03 11:56:04] Production.INFO: 117 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:56:04] Production.ERROR: done [2025-03-03 11:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-18 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-19 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.ERROR: done [2025-03-03 11:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 17:49:05 [end_date_ymd] => 2025-03-02 20:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-02 17:49:05' and `end` < '2025-03-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:56:05] Production.INFO: Total Charge 0 [2025-03-03 11:56:05] Production.INFO: CreateAllLog End [2025-03-03 11:56:05] Production.INFO: Account Balance End. [2025-03-03 11:56:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:56:06] Production.INFO: ==15613== Releasing lock... [2025-03-03 11:56:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:56:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:56:13] Production.ERROR: CronJobId end10 [2025-03-03 11:56:13] Production.INFO: ==15611== Releasing lock... [2025-03-03 11:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:56:15] Production.INFO: call_cost start [2025-03-03 11:56:15] Production.INFO: call_cost end [2025-03-03 11:56:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:56:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:56:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:56:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:56:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:56:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:56:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:56:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:56:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:56:15] Production.INFO: ==15607== Releasing lock... [2025-03-03 11:56:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:56:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:56:17] Production.INFO: count ==409 [2025-03-03 11:56:17] Production.ERROR: pbx CDR StartTime 2025-03-02 17:49:05 - End Time 2025-03-02 20:49:05 [2025-03-03 11:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598302', 'tblTempUsageDetail_20' ) start [2025-03-03 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598302', 'tblTempUsageDetail_20' ) end [2025-03-03 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598302', 'tblTempVendorCDR_20' ) start [2025-03-03 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598302', 'tblTempVendorCDR_20' ) end [2025-03-03 11:56:17] Production.INFO: ProcessCDR(1,14598302,1,1,2) [2025-03-03 11:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598302', 'tblTempUsageDetail_20' ) start [2025-03-03 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598302', 'tblTempUsageDetail_20' ) end [2025-03-03 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:56:28] Production.INFO: ==15615== Releasing lock... [2025-03-03 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:56:28] Production.INFO: 33.5 MB #Memory Used# [2025-03-03 16:57:01] Production.INFO: ==15714== Lock acquired, processing the job... [2025-03-03 16:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:57:01] Production.INFO: neon service started [2025-03-03 16:57:01] Production.INFO: neon service started [2025-03-03 16:57:01] Production.INFO: ==15714== Releasing lock... [2025-03-03 16:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:57:02] Production.INFO: ==15716== Lock acquired, processing the job... [2025-03-03 11:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:57:02] Production.INFO: ==15718== Lock acquired, processing the job... [2025-03-03 16:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:57:02] Production.INFO: ==15718== Releasing lock... [2025-03-03 16:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:57:02] Production.INFO: ==15716== Releasing lock... [2025-03-03 11:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:57:03] Production.INFO: ==15723== Lock acquired, processing the job... [2025-03-03 11:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:57:03] Production.INFO: ==15729== Lock acquired, processing the job... [2025-03-03 11:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:57:03] Production.INFO: ==15731== Lock acquired, processing the job... [2025-03-03 11:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:57:03] Production.INFO: Account Balance Start. [2025-03-03 11:57:03] Production.INFO: CreateAllLog Start [2025-03-03 11:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:57:03] Production.INFO: 117 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 11:57:04] Production.INFO: ==15725== Lock acquired, processing the job... [2025-03-03 11:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:57:04] Production.INFO: ==15734== Lock acquired, processing the job... [2025-03-03 11:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:57:04] Production.INFO: ==15727== Lock acquired, processing the job... [2025-03-03 11:57:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: count ==13 [2025-03-03 11:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:57:04] Production.INFO: count ==21 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598305') start [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.ERROR: done [2025-03-03 11:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598305') end [2025-03-03 11:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:57:04] Production.INFO: 1 [2025-03-03 11:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: ==15734== Releasing lock... [2025-03-03 11:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.ERROR: done [2025-03-03 11:57:04] Production.INFO: ==15725== Releasing lock... [2025-03-03 11:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:57:05] Production.INFO: Total Charge 0 [2025-03-03 11:57:05] Production.INFO: CreateAllLog End [2025-03-03 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 20:49:05 [end_date_ymd] => 2025-03-02 23:49:05 [RateCDR] => 1 ) [2025-03-03 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 20:49:05' and `end` < '2025-03-02 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:57:05] Production.INFO: Account Balance End. [2025-03-03 11:57:06] Production.ERROR: CronJobId end 12 [2025-03-03 11:57:06] Production.INFO: ==15729== Releasing lock... [2025-03-03 11:57:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:57:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:57:13] Production.ERROR: CronJobId end10 [2025-03-03 11:57:13] Production.INFO: ==15727== Releasing lock... [2025-03-03 11:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:57:16] Production.INFO: call_cost start [2025-03-03 11:57:16] Production.INFO: call_cost end [2025-03-03 11:57:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:57:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:57:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:57:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:57:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:57:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:57:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:57:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:57:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:57:17] Production.INFO: ==15723== Releasing lock... [2025-03-03 11:57:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:57:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:57:18] Production.INFO: count ==268 [2025-03-03 11:57:18] Production.ERROR: pbx CDR StartTime 2025-03-02 20:49:05 - End Time 2025-03-02 23:49:05 [2025-03-03 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598307', 'tblTempUsageDetail_20' ) start [2025-03-03 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598307', 'tblTempUsageDetail_20' ) end [2025-03-03 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598307', 'tblTempVendorCDR_20' ) start [2025-03-03 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598307', 'tblTempVendorCDR_20' ) end [2025-03-03 11:57:18] Production.INFO: ProcessCDR(1,14598307,1,1,2) [2025-03-03 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598307', 'tblTempUsageDetail_20' ) start [2025-03-03 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598307', 'tblTempUsageDetail_20' ) end [2025-03-03 11:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:57:26] Production.INFO: ==15731== Releasing lock... [2025-03-03 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:57:26] Production.INFO: 30.5 MB #Memory Used# [2025-03-03 16:58:02] Production.INFO: ==15817== Lock acquired, processing the job... [2025-03-03 16:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:58:02] Production.INFO: neon service started [2025-03-03 16:58:02] Production.INFO: neon service started [2025-03-03 16:58:02] Production.INFO: ==15817== Releasing lock... [2025-03-03 16:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 11:58:03] Production.INFO: ==15820== Lock acquired, processing the job... [2025-03-03 11:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:58:03] Production.INFO: ==15822== Lock acquired, processing the job... [2025-03-03 16:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:58:03] Production.INFO: ==15822== Releasing lock... [2025-03-03 16:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:58:03] Production.INFO: ==15820== Releasing lock... [2025-03-03 11:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:58:04] Production.INFO: ==15825== Lock acquired, processing the job... [2025-03-03 11:58:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:58:04] Production.INFO: ==15829== Lock acquired, processing the job... [2025-03-03 11:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:58:04] Production.INFO: ==15827== Lock acquired, processing the job... [2025-03-03 11:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:58:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:58:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:58:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:58:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:58:05] Production.INFO: ==15833== Lock acquired, processing the job... [2025-03-03 11:58:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:58:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:58:05] Production.INFO: ==15831== Lock acquired, processing the job... [2025-03-03 11:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:58:05] Production.INFO: ==15835== Lock acquired, processing the job... [2025-03-03 11:58:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:58:05] Production.INFO: ==15827== Releasing lock... [2025-03-03 11:58:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:58:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:58:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:58:05] Production.INFO: Account Balance Start. [2025-03-03 11:58:05] Production.INFO: CreateAllLog Start [2025-03-03 11:58:05] Production.INFO: 117 [2025-03-03 11:58:05] Production.INFO: count ==13 [2025-03-03 11:58:05] Production.INFO: Date 2025-02-08 [2025-03-03 11:58:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:58:05] Production.INFO: count ==21 [2025-03-03 11:58:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598311') start [2025-03-03 11:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:05] Production.ERROR: done [2025-03-03 11:58:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:58:05] Production.INFO: Date 2025-02-09 [2025-03-03 11:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598311') end [2025-03-03 11:58:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:58:05] Production.INFO: 1 [2025-03-03 11:58:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:58:05] Production.INFO: ==15835== Releasing lock... [2025-03-03 11:58:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:58:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:58:05] Production.INFO: Date 2025-02-10 [2025-03-03 11:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:05] Production.ERROR: done [2025-03-03 11:58:05] Production.INFO: Date 2025-02-11 [2025-03-03 11:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:05] Production.INFO: Date 2025-02-12 [2025-03-03 11:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:05] Production.INFO: Date 2025-02-13 [2025-03-03 11:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-14 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-15 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-16 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-17 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-18 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-19 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-20 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-21 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-22 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-23 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-24 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-25 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-26 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-27 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-02-28 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-03-01 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-03-02 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Date 2025-03-03 [2025-03-03 11:58:06] Production.INFO: Reseller ==> 0 [2025-03-03 11:58:06] Production.INFO: Total Charge 0 [2025-03-03 11:58:06] Production.INFO: CreateAllLog End [2025-03-03 11:58:07] Production.INFO: Account Balance End. [2025-03-03 11:58:07] Production.ERROR: CronJobId end 12 [2025-03-03 11:58:07] Production.INFO: ==15831== Releasing lock... [2025-03-03 11:58:07] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:58:07] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-02 23:49:05 [end_date_ymd] => 2025-03-03 02:49:05 [RateCDR] => 1 ) [2025-03-03 11:58:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-02 23:49:05' and `end` < '2025-03-03 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:58:16] Production.ERROR: CronJobId end10 [2025-03-03 11:58:16] Production.INFO: ==15829== Releasing lock... [2025-03-03 11:58:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:58:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:58:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:58:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:58:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:58:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:58:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:58:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:58:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:58:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:58:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:58:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:58:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:58:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:58:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:58:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:58:18] Production.INFO: call_cost start [2025-03-03 11:58:18] Production.INFO: call_cost end [2025-03-03 11:58:19] Production.INFO: count ==463 [2025-03-03 11:58:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:58:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:58:19] Production.ERROR: pbx CDR StartTime 2025-03-02 23:49:05 - End Time 2025-03-03 02:49:05 [2025-03-03 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598312', 'tblTempUsageDetail_20' ) start [2025-03-03 11:58:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:58:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:58:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:58:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:58:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:58:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:58:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598312', 'tblTempUsageDetail_20' ) end [2025-03-03 11:58:19] Production.INFO: ==15825== Releasing lock... [2025-03-03 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598312', 'tblTempVendorCDR_20' ) start [2025-03-03 11:58:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:58:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598312', 'tblTempVendorCDR_20' ) end [2025-03-03 11:58:19] Production.INFO: ProcessCDR(1,14598312,1,1,2) [2025-03-03 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598312', 'tblTempUsageDetail_20' ) start [2025-03-03 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598312', 'tblTempUsageDetail_20' ) end [2025-03-03 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:58:25] Production.INFO: ==15833== Releasing lock... [2025-03-03 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:58:25] Production.INFO: 32.25 MB #Memory Used# [2025-03-03 16:59:02] Production.INFO: ==15891== Lock acquired, processing the job... [2025-03-03 16:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 16:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 16:59:02] Production.INFO: neon service started [2025-03-03 16:59:02] Production.INFO: neon service started [2025-03-03 16:59:02] Production.INFO: ==15891== Releasing lock... [2025-03-03 16:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 16:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:59:02] Production.INFO: ==15895== Lock acquired, processing the job... [2025-03-03 16:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:59:02] Production.INFO: ==15895== Releasing lock... [2025-03-03 16:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 16:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 11:59:02] Production.INFO: ==15893== Lock acquired, processing the job... [2025-03-03 11:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 11:59:02] Production.INFO: ==15893== Releasing lock... [2025-03-03 11:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 11:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 11:59:03] Production.INFO: ==15898== Lock acquired, processing the job... [2025-03-03 11:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 11:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 11:59:03] Production.INFO: ==15902== Lock acquired, processing the job... [2025-03-03 11:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 11:59:03] Production.INFO: ==15904== Lock acquired, processing the job... [2025-03-03 11:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 11:59:03] Production.INFO: ==15900== Lock acquired, processing the job... [2025-03-03 11:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 11:59:03] Production.INFO: Account Balance Start. [2025-03-03 11:59:03] Production.INFO: CreateAllLog Start [2025-03-03 11:59:03] Production.INFO: 117 [2025-03-03 11:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 11:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 11:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 11:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 11:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 11:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 11:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: ==15906== Lock acquired, processing the job... [2025-03-03 11:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 11:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: ==15908== Lock acquired, processing the job... [2025-03-03 11:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 11:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: ==15900== Releasing lock... [2025-03-03 11:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 11:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 11:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: count ==13 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 11:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 11:59:04] Production.INFO: count ==21 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598316') start [2025-03-03 11:59:04] Production.ERROR: done [2025-03-03 11:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.ERROR: done [2025-03-03 11:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598316') end [2025-03-03 11:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 11:59:04] Production.INFO: 1 [2025-03-03 11:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 11:59:04] Production.INFO: ==15908== Releasing lock... [2025-03-03 11:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 11:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 11:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 11:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 11:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 11:59:05] Production.INFO: Total Charge 0 [2025-03-03 11:59:05] Production.INFO: CreateAllLog End [2025-03-03 11:59:05] Production.INFO: Account Balance End. [2025-03-03 11:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 11:59:05] Production.INFO: ==15904== Releasing lock... [2025-03-03 11:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 11:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 02:49:05 [end_date_ymd] => 2025-03-03 05:49:05 [RateCDR] => 1 ) [2025-03-03 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 02:49:05' and `end` < '2025-03-03 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 11:59:13] Production.ERROR: CronJobId end10 [2025-03-03 11:59:13] Production.INFO: ==15902== Releasing lock... [2025-03-03 11:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 11:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 11:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 11:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 11:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 11:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 11:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 11:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 11:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 11:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 11:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 11:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 11:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 11:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 11:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 11:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 11:59:16] Production.INFO: call_cost start [2025-03-03 11:59:16] Production.INFO: call_cost end [2025-03-03 11:59:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 11:59:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 11:59:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 11:59:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 11:59:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 11:59:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 11:59:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 11:59:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 11:59:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 11:59:17] Production.INFO: ==15898== Releasing lock... [2025-03-03 11:59:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 11:59:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 11:59:18] Production.INFO: count ==165 [2025-03-03 11:59:18] Production.ERROR: pbx CDR StartTime 2025-03-03 02:49:05 - End Time 2025-03-03 05:49:05 [2025-03-03 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598317', 'tblTempUsageDetail_20' ) start [2025-03-03 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598317', 'tblTempUsageDetail_20' ) end [2025-03-03 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598317', 'tblTempVendorCDR_20' ) start [2025-03-03 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598317', 'tblTempVendorCDR_20' ) end [2025-03-03 11:59:18] Production.INFO: ProcessCDR(1,14598317,1,1,2) [2025-03-03 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598317', 'tblTempUsageDetail_20' ) start [2025-03-03 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598317', 'tblTempUsageDetail_20' ) end [2025-03-03 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 11:59:23] Production.INFO: ==15906== Releasing lock... [2025-03-03 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 11:59:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-03 17:00:01] Production.INFO: ==15965== Lock acquired, processing the job... [2025-03-03 17:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:00:01] Production.INFO: neon service started [2025-03-03 17:00:01] Production.INFO: neon service started [2025-03-03 17:00:01] Production.INFO: ==15965== Releasing lock... [2025-03-03 17:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:00:02] Production.INFO: ==15968== Lock acquired, processing the job... [2025-03-03 12:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:00:02] Production.INFO: ==15970== Lock acquired, processing the job... [2025-03-03 17:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:00:02] Production.INFO: ==15970== Releasing lock... [2025-03-03 17:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:00:02] Production.INFO: ==15968== Releasing lock... [2025-03-03 12:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:00:03] Production.INFO: ==15978== Lock acquired, processing the job... [2025-03-03 12:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:00:04] Production.INFO: ==15974== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 12:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 12:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:00:04] Production.ERROR: CronJob PID - 15978 [2025-03-03 12:00:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 12:00:04] Production.ERROR: CronJob ID - 7 [2025-03-03 12:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:00:00 [2025-03-03 12:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:00:04] Production.INFO: ==15982== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:00:04] Production.INFO: ==15976== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 12:00:04] Production.INFO: ==15974== Releasing lock... [2025-03-03 12:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 12:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 12:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:00:04] Production.INFO: ==15986== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 12:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:00:04] Production.INFO: ==15980== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:00:04] Production.INFO: ==15984== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:00:04] Production.INFO: Account Balance Start. [2025-03-03 12:00:04] Production.INFO: CreateAllLog Start [2025-03-03 12:00:04] Production.INFO: 117 [2025-03-03 12:00:04] Production.INFO: ==15988== Lock acquired, processing the job... [2025-03-03 12:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:00:04] Production.INFO: ==15978== Releasing lock... [2025-03-03 12:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:00:04] Production.INFO: count ==13 [2025-03-03 12:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:00:04] Production.INFO: count ==21 [2025-03-03 12:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598321') start [2025-03-03 12:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:00:04] Production.ERROR: done [2025-03-03 12:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.ERROR: done [2025-03-03 12:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598321') end [2025-03-03 12:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:00:04] Production.INFO: 1 [2025-03-03 12:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 12:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598322', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 12:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:04] Production.INFO: ==15988== Releasing lock... [2025-03-03 12:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.ERROR: done [2025-03-03 12:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:00:05] Production.INFO: Total Charge 0 [2025-03-03 12:00:05] Production.INFO: CreateAllLog End [2025-03-03 12:00:06] Production.INFO: Account Balance End. [2025-03-03 12:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:00:06] Production.INFO: ==15982== Releasing lock... [2025-03-03 12:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 05:49:05 [end_date_ymd] => 2025-03-03 08:49:05 [RateCDR] => 1 ) [2025-03-03 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 05:49:05' and `end` < '2025-03-03 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598322', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 12:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 12:00:09] Production.INFO: ProcessCDR(1,14598322,1,1,2) [2025-03-03 12:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598322,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598322,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:00:09] Production.INFO: ==15986== Releasing lock... [2025-03-03 12:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 12:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 12:00:14] Production.ERROR: CronJobId end10 [2025-03-03 12:00:14] Production.INFO: ==15980== Releasing lock... [2025-03-03 12:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:00:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:00:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:00:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:00:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:00:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:00:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:00:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:00:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:00:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:00:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:00:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:00:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:00:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:00:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:00:17] Production.INFO: call_cost start [2025-03-03 12:00:17] Production.INFO: call_cost end [2025-03-03 12:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:00:18] Production.INFO: ==15976== Releasing lock... [2025-03-03 12:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:00:19] Production.INFO: count ==798 [2025-03-03 12:00:19] Production.ERROR: pbx CDR StartTime 2025-03-03 05:49:05 - End Time 2025-03-03 08:49:05 [2025-03-03 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598323', 'tblTempUsageDetail_20' ) start [2025-03-03 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598323', 'tblTempUsageDetail_20' ) end [2025-03-03 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598323', 'tblTempVendorCDR_20' ) start [2025-03-03 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598323', 'tblTempVendorCDR_20' ) end [2025-03-03 12:00:19] Production.INFO: ProcessCDR(1,14598323,1,1,2) [2025-03-03 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598323', 'tblTempUsageDetail_20' ) start [2025-03-03 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598323', 'tblTempUsageDetail_20' ) end [2025-03-03 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:00:26] Production.INFO: ==15984== Releasing lock... [2025-03-03 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:00:26] Production.INFO: 34.5 MB #Memory Used# [2025-03-03 17:01:02] Production.INFO: ==16073== Lock acquired, processing the job... [2025-03-03 17:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:01:02] Production.INFO: neon service started [2025-03-03 17:01:02] Production.INFO: neon service started [2025-03-03 17:01:02] Production.INFO: ==16073== Releasing lock... [2025-03-03 17:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:01:02] Production.INFO: ==16075== Lock acquired, processing the job... [2025-03-03 12:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:01:03] Production.INFO: ==16077== Lock acquired, processing the job... [2025-03-03 17:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:01:03] Production.INFO: ==16077== Releasing lock... [2025-03-03 17:01:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:01:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:01:03] Production.INFO: ==16075== Releasing lock... [2025-03-03 12:01:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:01:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:01:04] Production.INFO: ==16088== Lock acquired, processing the job... [2025-03-03 12:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:01:04] Production.INFO: ==16086== Lock acquired, processing the job... [2025-03-03 12:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:01:04] Production.INFO: Account Balance Start. [2025-03-03 12:01:04] Production.INFO: CreateAllLog Start [2025-03-03 12:01:04] Production.INFO: 117 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:01:04] Production.INFO: ==16080== Lock acquired, processing the job... [2025-03-03 12:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: ==16082== Lock acquired, processing the job... [2025-03-03 12:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:01:04] Production.INFO: ==16084== Lock acquired, processing the job... [2025-03-03 12:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: ==16090== Lock acquired, processing the job... [2025-03-03 12:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:01:04] Production.ERROR: done [2025-03-03 12:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:04] Production.ERROR: done [2025-03-03 12:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:01:05] Production.INFO: count ==13 [2025-03-03 12:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:01:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:01:05] Production.INFO: count ==21 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598327') start [2025-03-03 12:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: ==16082== Releasing lock... [2025-03-03 12:01:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:01:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598327') end [2025-03-03 12:01:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:01:05] Production.INFO: 1 [2025-03-03 12:01:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: ==16090== Releasing lock... [2025-03-03 12:01:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:01:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:01:05] Production.INFO: Total Charge 0 [2025-03-03 12:01:05] Production.INFO: CreateAllLog End [2025-03-03 12:01:05] Production.INFO: Account Balance End. [2025-03-03 12:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:01:05] Production.INFO: ==16086== Releasing lock... [2025-03-03 12:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 08:49:05 [end_date_ymd] => 2025-03-03 11:49:05 [RateCDR] => 1 ) [2025-03-03 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 08:49:05' and `end` < '2025-03-03 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:01:14] Production.ERROR: CronJobId end10 [2025-03-03 12:01:14] Production.INFO: ==16084== Releasing lock... [2025-03-03 12:01:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:01:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:01:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:01:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:01:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:01:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:01:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:01:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:01:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:01:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:01:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:01:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:01:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:01:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:01:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:01:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:01:17] Production.INFO: call_cost start [2025-03-03 12:01:17] Production.INFO: call_cost end [2025-03-03 12:01:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:01:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:01:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:01:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:01:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:01:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:01:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:01:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:01:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:01:18] Production.INFO: ==16080== Releasing lock... [2025-03-03 12:01:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:01:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:01:19] Production.INFO: count ==5692 [2025-03-03 12:01:22] Production.ERROR: pbx CDR StartTime 2025-03-03 08:49:05 - End Time 2025-03-03 11:49:05 [2025-03-03 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598328', 'tblTempUsageDetail_20' ) start [2025-03-03 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598328', 'tblTempUsageDetail_20' ) end [2025-03-03 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598328', 'tblTempVendorCDR_20' ) start [2025-03-03 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598328', 'tblTempVendorCDR_20' ) end [2025-03-03 12:01:22] Production.INFO: ProcessCDR(1,14598328,1,1,2) [2025-03-03 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598328', 'tblTempUsageDetail_20' ) start [2025-03-03 12:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598328', 'tblTempUsageDetail_20' ) end [2025-03-03 12:01:36] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:01:42] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:01:42] Production.INFO: ==16088== Releasing lock... [2025-03-03 12:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:01:42] Production.INFO: 70.5 MB #Memory Used# [2025-03-03 17:02:02] Production.INFO: ==16147== Lock acquired, processing the job... [2025-03-03 17:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:02:02] Production.INFO: neon service started [2025-03-03 17:02:02] Production.INFO: neon service started [2025-03-03 17:02:02] Production.INFO: ==16147== Releasing lock... [2025-03-03 17:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:02:02] Production.INFO: ==16149== Lock acquired, processing the job... [2025-03-03 12:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:02:02] Production.INFO: ==16151== Lock acquired, processing the job... [2025-03-03 17:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:02:02] Production.INFO: ==16151== Releasing lock... [2025-03-03 17:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:02:03] Production.INFO: ==16149== Releasing lock... [2025-03-03 12:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:02:03] Production.INFO: ==16160== Lock acquired, processing the job... [2025-03-03 12:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:02:03] Production.INFO: ==16162== Lock acquired, processing the job... [2025-03-03 12:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:02:03] Production.INFO: Account Balance Start. [2025-03-03 12:02:03] Production.INFO: CreateAllLog Start [2025-03-03 12:02:03] Production.INFO: 117 [2025-03-03 12:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: ==16154== Lock acquired, processing the job... [2025-03-03 12:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:02:04] Production.INFO: ==16156== Lock acquired, processing the job... [2025-03-03 12:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:02:04] Production.INFO: ==16158== Lock acquired, processing the job... [2025-03-03 12:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: ==16164== Lock acquired, processing the job... [2025-03-03 12:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:02:04] Production.INFO: count ==13 [2025-03-03 12:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:02:04] Production.INFO: count ==21 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598332') start [2025-03-03 12:02:04] Production.ERROR: done [2025-03-03 12:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.ERROR: done [2025-03-03 12:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598332') end [2025-03-03 12:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:02:04] Production.INFO: 1 [2025-03-03 12:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:02:04] Production.INFO: ==16156== Releasing lock... [2025-03-03 12:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: ==16164== Releasing lock... [2025-03-03 12:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:02:05] Production.INFO: Total Charge 0 [2025-03-03 12:02:05] Production.INFO: CreateAllLog End [2025-03-03 12:02:05] Production.INFO: Account Balance End. [2025-03-03 12:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:02:05] Production.INFO: ==16160== Releasing lock... [2025-03-03 12:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:02:06 [end_date_ymd] => 2025-03-03 12:02:06 [RateCDR] => 1 ) [2025-03-03 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:02:06' and `end` < '2025-03-03 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:02:14] Production.ERROR: CronJobId end10 [2025-03-03 12:02:14] Production.INFO: ==16158== Releasing lock... [2025-03-03 12:02:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:02:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:02:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:02:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:02:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:02:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:02:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:02:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:02:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:02:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:02:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:02:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:02:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:02:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:02:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:02:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:02:15] Production.INFO: call_cost start [2025-03-03 12:02:15] Production.INFO: call_cost end [2025-03-03 12:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:02:16] Production.INFO: ==16154== Releasing lock... [2025-03-03 12:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:02:19] Production.INFO: count ==6084 [2025-03-03 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:02:06 - End Time 2025-03-03 12:02:06 [2025-03-03 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598333', 'tblTempUsageDetail_20' ) start [2025-03-03 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598333', 'tblTempUsageDetail_20' ) end [2025-03-03 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598333', 'tblTempVendorCDR_20' ) start [2025-03-03 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598333', 'tblTempVendorCDR_20' ) end [2025-03-03 12:02:22] Production.INFO: ProcessCDR(1,14598333,1,1,2) [2025-03-03 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598333', 'tblTempUsageDetail_20' ) start [2025-03-03 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598333', 'tblTempUsageDetail_20' ) end [2025-03-03 12:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:02:29] Production.INFO: ==16162== Releasing lock... [2025-03-03 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:02:29] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 17:03:01] Production.INFO: ==16221== Lock acquired, processing the job... [2025-03-03 17:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:03:01] Production.INFO: neon service started [2025-03-03 17:03:01] Production.INFO: neon service started [2025-03-03 17:03:01] Production.INFO: ==16221== Releasing lock... [2025-03-03 17:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:03:02] Production.INFO: ==16223== Lock acquired, processing the job... [2025-03-03 12:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:03:02] Production.INFO: ==16225== Lock acquired, processing the job... [2025-03-03 17:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:03:02] Production.INFO: ==16225== Releasing lock... [2025-03-03 17:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:03:02] Production.INFO: ==16223== Releasing lock... [2025-03-03 12:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:03:03] Production.INFO: ==16228== Lock acquired, processing the job... [2025-03-03 12:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:03:03] Production.INFO: ==16234== Lock acquired, processing the job... [2025-03-03 12:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:03:03] Production.INFO: Account Balance Start. [2025-03-03 12:03:03] Production.INFO: CreateAllLog Start [2025-03-03 12:03:03] Production.INFO: 117 [2025-03-03 12:03:03] Production.INFO: ==16238== Lock acquired, processing the job... [2025-03-03 12:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:03] Production.INFO: ==16230== Lock acquired, processing the job... [2025-03-03 12:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:03:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:03] Production.INFO: count ==13 [2025-03-03 12:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:03:04] Production.INFO: count ==21 [2025-03-03 12:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598336') start [2025-03-03 12:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: ==16232== Lock acquired, processing the job... [2025-03-03 12:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: ==16236== Lock acquired, processing the job... [2025-03-03 12:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598336') end [2025-03-03 12:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:03:04] Production.INFO: 1 [2025-03-03 12:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:03:04] Production.INFO: ==16238== Releasing lock... [2025-03-03 12:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: ==16230== Releasing lock... [2025-03-03 12:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.ERROR: done [2025-03-03 12:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.ERROR: done [2025-03-03 12:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:03:05] Production.INFO: Total Charge 0 [2025-03-03 12:03:05] Production.INFO: CreateAllLog End [2025-03-03 12:03:05] Production.INFO: Account Balance End. [2025-03-03 12:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:03:05] Production.INFO: ==16234== Releasing lock... [2025-03-03 12:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:03:06 [end_date_ymd] => 2025-03-03 12:03:06 [RateCDR] => 1 ) [2025-03-03 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:03:06' and `end` < '2025-03-03 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:03:17] Production.ERROR: CronJobId end10 [2025-03-03 12:03:17] Production.INFO: ==16232== Releasing lock... [2025-03-03 12:03:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:03:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:03:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:03:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:03:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:03:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:03:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:03:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:03:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:03:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:03:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:03:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:03:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:03:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:03:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:03:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:03:18] Production.INFO: call_cost start [2025-03-03 12:03:18] Production.INFO: call_cost end [2025-03-03 12:03:19] Production.INFO: count ==6111 [2025-03-03 12:03:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:03:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:03:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:03:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:03:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:03:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:03:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:03:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:03:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:03:19] Production.INFO: ==16228== Releasing lock... [2025-03-03 12:03:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:03:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:03:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:03:06 - End Time 2025-03-03 12:03:06 [2025-03-03 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598338', 'tblTempUsageDetail_20' ) start [2025-03-03 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598338', 'tblTempUsageDetail_20' ) end [2025-03-03 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598338', 'tblTempVendorCDR_20' ) start [2025-03-03 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598338', 'tblTempVendorCDR_20' ) end [2025-03-03 12:03:22] Production.INFO: ProcessCDR(1,14598338,1,1,2) [2025-03-03 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598338', 'tblTempUsageDetail_20' ) start [2025-03-03 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598338', 'tblTempUsageDetail_20' ) end [2025-03-03 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:03:28] Production.INFO: ==16236== Releasing lock... [2025-03-03 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:03:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 17:04:02] Production.INFO: ==16295== Lock acquired, processing the job... [2025-03-03 17:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:04:02] Production.INFO: neon service started [2025-03-03 17:04:02] Production.INFO: neon service started [2025-03-03 17:04:02] Production.INFO: ==16295== Releasing lock... [2025-03-03 17:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:04:02] Production.INFO: ==16299== Lock acquired, processing the job... [2025-03-03 17:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:04:02] Production.INFO: ==16299== Releasing lock... [2025-03-03 17:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:04:02] Production.INFO: ==16297== Lock acquired, processing the job... [2025-03-03 12:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:04:03] Production.INFO: ==16297== Releasing lock... [2025-03-03 12:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:04:04] Production.INFO: ==16301== Lock acquired, processing the job... [2025-03-03 12:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:04:04] Production.INFO: ==16305== Lock acquired, processing the job... [2025-03-03 12:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:04:04] Production.INFO: ==16307== Lock acquired, processing the job... [2025-03-03 12:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:04:04] Production.INFO: Account Balance Start. [2025-03-03 12:04:04] Production.INFO: CreateAllLog Start [2025-03-03 12:04:04] Production.INFO: 117 [2025-03-03 12:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.INFO: ==16312== Lock acquired, processing the job... [2025-03-03 12:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:04:04] Production.INFO: ==16303== Lock acquired, processing the job... [2025-03-03 12:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.INFO: ==16310== Lock acquired, processing the job... [2025-03-03 12:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:04:04] Production.INFO: count ==13 [2025-03-03 12:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:04:04] Production.INFO: count ==21 [2025-03-03 12:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598341') start [2025-03-03 12:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598341') end [2025-03-03 12:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:04:04] Production.INFO: 1 [2025-03-03 12:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:04:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: ==16312== Releasing lock... [2025-03-03 12:04:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:04:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:04:05] Production.ERROR: done [2025-03-03 12:04:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: ==16303== Releasing lock... [2025-03-03 12:04:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:04:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.ERROR: done [2025-03-03 12:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:04:05] Production.INFO: Total Charge 0 [2025-03-03 12:04:05] Production.INFO: CreateAllLog End [2025-03-03 12:04:06] Production.INFO: Account Balance End. [2025-03-03 12:04:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:04:06] Production.INFO: ==16307== Releasing lock... [2025-03-03 12:04:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:04:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:04:06 [end_date_ymd] => 2025-03-03 12:04:06 [RateCDR] => 1 ) [2025-03-03 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:04:06' and `end` < '2025-03-03 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:04:16] Production.ERROR: CronJobId end10 [2025-03-03 12:04:16] Production.INFO: ==16305== Releasing lock... [2025-03-03 12:04:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:04:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:04:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:04:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:04:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:04:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:04:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:04:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:04:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:04:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:04:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:04:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:04:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:04:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:04:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:04:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:04:18] Production.INFO: call_cost start [2025-03-03 12:04:18] Production.INFO: call_cost end [2025-03-03 12:04:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:04:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:04:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:04:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:04:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:04:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:04:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:04:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:04:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:04:19] Production.INFO: ==16301== Releasing lock... [2025-03-03 12:04:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:04:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:04:20] Production.INFO: count ==6117 [2025-03-03 12:04:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:04:06 - End Time 2025-03-03 12:04:06 [2025-03-03 12:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598343', 'tblTempUsageDetail_20' ) start [2025-03-03 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598343', 'tblTempUsageDetail_20' ) end [2025-03-03 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598343', 'tblTempVendorCDR_20' ) start [2025-03-03 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598343', 'tblTempVendorCDR_20' ) end [2025-03-03 12:04:23] Production.INFO: ProcessCDR(1,14598343,1,1,2) [2025-03-03 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598343', 'tblTempUsageDetail_20' ) start [2025-03-03 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598343', 'tblTempUsageDetail_20' ) end [2025-03-03 12:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:04:29] Production.INFO: ==16310== Releasing lock... [2025-03-03 12:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:04:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 17:05:01] Production.INFO: ==16369== Lock acquired, processing the job... [2025-03-03 17:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:05:02] Production.INFO: neon service started [2025-03-03 17:05:02] Production.INFO: neon service started [2025-03-03 17:05:02] Production.INFO: ==16369== Releasing lock... [2025-03-03 17:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:05:02] Production.INFO: ==16371== Lock acquired, processing the job... [2025-03-03 12:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:05:02] Production.INFO: ==16373== Lock acquired, processing the job... [2025-03-03 17:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:05:02] Production.INFO: ==16373== Releasing lock... [2025-03-03 17:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:05:03] Production.INFO: ==16371== Releasing lock... [2025-03-03 12:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:05:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:05:04] Production.INFO: ==16380== Lock acquired, processing the job... [2025-03-03 12:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:05:04] Production.INFO: ==16376== Lock acquired, processing the job... [2025-03-03 12:05:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:05:04] Production.INFO: ==16382== Lock acquired, processing the job... [2025-03-03 12:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:05:04] Production.INFO: ==16378== Lock acquired, processing the job... [2025-03-03 12:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:05:04] Production.INFO: ==16386== Lock acquired, processing the job... [2025-03-03 12:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:05:04] Production.INFO: Account Balance Start. [2025-03-03 12:05:04] Production.INFO: CreateAllLog Start [2025-03-03 12:05:04] Production.INFO: 117 [2025-03-03 12:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:05:04] Production.INFO: ==16384== Lock acquired, processing the job... [2025-03-03 12:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:04] Production.INFO: count ==13 [2025-03-03 12:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:05:04] Production.INFO: count ==21 [2025-03-03 12:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598347') start [2025-03-03 12:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598347') end [2025-03-03 12:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:05:04] Production.INFO: 1 [2025-03-03 12:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:05:04] Production.INFO: ==16386== Releasing lock... [2025-03-03 12:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:05:04] Production.INFO: ==16378== Releasing lock... [2025-03-03 12:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.ERROR: done [2025-03-03 12:05:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.ERROR: done [2025-03-03 12:05:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:05:05] Production.INFO: Total Charge 0 [2025-03-03 12:05:05] Production.INFO: CreateAllLog End [2025-03-03 12:05:05] Production.INFO: Account Balance End. [2025-03-03 12:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:05:05] Production.INFO: ==16382== Releasing lock... [2025-03-03 12:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:05:06 [end_date_ymd] => 2025-03-03 12:05:06 [RateCDR] => 1 ) [2025-03-03 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:05:06' and `end` < '2025-03-03 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:05:14] Production.ERROR: CronJobId end10 [2025-03-03 12:05:14] Production.INFO: ==16380== Releasing lock... [2025-03-03 12:05:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:05:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:05:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:05:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:05:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:05:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:05:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:05:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:05:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:05:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:05:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:05:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:05:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:05:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:05:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:05:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:05:17] Production.INFO: call_cost start [2025-03-03 12:05:17] Production.INFO: call_cost end [2025-03-03 12:05:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:05:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:05:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:05:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:05:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:05:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:05:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:05:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:05:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:05:18] Production.INFO: ==16376== Releasing lock... [2025-03-03 12:05:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:05:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:05:20] Production.INFO: count ==6131 [2025-03-03 12:05:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:05:06 - End Time 2025-03-03 12:05:06 [2025-03-03 12:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598348', 'tblTempUsageDetail_20' ) start [2025-03-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598348', 'tblTempUsageDetail_20' ) end [2025-03-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598348', 'tblTempVendorCDR_20' ) start [2025-03-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598348', 'tblTempVendorCDR_20' ) end [2025-03-03 12:05:23] Production.INFO: ProcessCDR(1,14598348,1,1,2) [2025-03-03 12:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598348', 'tblTempUsageDetail_20' ) start [2025-03-03 12:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598348', 'tblTempUsageDetail_20' ) end [2025-03-03 12:05:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:05:29] Production.INFO: ==16384== Releasing lock... [2025-03-03 12:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:05:29] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:06:01] Production.INFO: ==16447== Lock acquired, processing the job... [2025-03-03 17:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:06:01] Production.INFO: neon service started [2025-03-03 17:06:01] Production.INFO: neon service started [2025-03-03 17:06:01] Production.INFO: ==16447== Releasing lock... [2025-03-03 17:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:06:02] Production.INFO: ==16450== Lock acquired, processing the job... [2025-03-03 12:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:06:02] Production.INFO: ==16452== Lock acquired, processing the job... [2025-03-03 17:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:06:02] Production.INFO: ==16452== Releasing lock... [2025-03-03 17:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:06:02] Production.INFO: ==16450== Releasing lock... [2025-03-03 12:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:06:03] Production.INFO: ==16461== Lock acquired, processing the job... [2025-03-03 12:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:06:03] Production.INFO: ==16463== Lock acquired, processing the job... [2025-03-03 12:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:06:03] Production.INFO: ==16455== Lock acquired, processing the job... [2025-03-03 12:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:06:04] Production.INFO: Account Balance Start. [2025-03-03 12:06:04] Production.INFO: CreateAllLog Start [2025-03-03 12:06:04] Production.INFO: 117 [2025-03-03 12:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:06:04] Production.INFO: ==16457== Lock acquired, processing the job... [2025-03-03 12:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: ==16459== Lock acquired, processing the job... [2025-03-03 12:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:06:04] Production.INFO: ==16465== Lock acquired, processing the job... [2025-03-03 12:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:06:04] Production.INFO: count ==13 [2025-03-03 12:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:06:04] Production.INFO: count ==21 [2025-03-03 12:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598351') start [2025-03-03 12:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.ERROR: done [2025-03-03 12:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:06:04] Production.INFO: ==16457== Releasing lock... [2025-03-03 12:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598351') end [2025-03-03 12:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:06:04] Production.INFO: 1 [2025-03-03 12:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: ==16465== Releasing lock... [2025-03-03 12:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:06:04] Production.ERROR: done [2025-03-03 12:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:06:05] Production.INFO: Total Charge 0 [2025-03-03 12:06:05] Production.INFO: CreateAllLog End [2025-03-03 12:06:05] Production.INFO: Account Balance End. [2025-03-03 12:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:06:05] Production.INFO: ==16461== Releasing lock... [2025-03-03 12:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:06:05 [end_date_ymd] => 2025-03-03 12:06:05 [RateCDR] => 1 ) [2025-03-03 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:06:05' and `end` < '2025-03-03 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:06:14] Production.ERROR: CronJobId end10 [2025-03-03 12:06:14] Production.INFO: ==16459== Releasing lock... [2025-03-03 12:06:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:06:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:06:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:06:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:06:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:06:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:06:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:06:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:06:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:06:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:06:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:06:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:06:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:06:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:06:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:06:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:06:16] Production.INFO: call_cost start [2025-03-03 12:06:16] Production.INFO: call_cost end [2025-03-03 12:06:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:06:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:06:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:06:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:06:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:06:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:06:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:06:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:06:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:06:17] Production.INFO: ==16455== Releasing lock... [2025-03-03 12:06:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:06:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:06:19] Production.INFO: count ==6136 [2025-03-03 12:06:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:06:05 - End Time 2025-03-03 12:06:05 [2025-03-03 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598353', 'tblTempUsageDetail_20' ) start [2025-03-03 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598353', 'tblTempUsageDetail_20' ) end [2025-03-03 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598353', 'tblTempVendorCDR_20' ) start [2025-03-03 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598353', 'tblTempVendorCDR_20' ) end [2025-03-03 12:06:22] Production.INFO: ProcessCDR(1,14598353,1,1,2) [2025-03-03 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598353', 'tblTempUsageDetail_20' ) start [2025-03-03 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598353', 'tblTempUsageDetail_20' ) end [2025-03-03 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:06:28] Production.INFO: ==16463== Releasing lock... [2025-03-03 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:06:28] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:07:02] Production.INFO: ==16522== Lock acquired, processing the job... [2025-03-03 17:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:07:02] Production.INFO: neon service started [2025-03-03 17:07:02] Production.INFO: neon service started [2025-03-03 17:07:02] Production.INFO: ==16522== Releasing lock... [2025-03-03 17:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:07:02] Production.INFO: ==16524== Lock acquired, processing the job... [2025-03-03 12:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:07:03] Production.INFO: ==16524== Releasing lock... [2025-03-03 12:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:07:03] Production.INFO: ==16526== Lock acquired, processing the job... [2025-03-03 17:07:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:07:03] Production.INFO: ==16526== Releasing lock... [2025-03-03 17:07:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:07:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:07:04] Production.INFO: ==16533== Lock acquired, processing the job... [2025-03-03 12:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:07:04] Production.INFO: ==16539== Lock acquired, processing the job... [2025-03-03 12:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:07:04] Production.INFO: ==16529== Lock acquired, processing the job... [2025-03-03 12:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:07:04] Production.INFO: count ==13 [2025-03-03 12:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:07:04] Production.INFO: count ==21 [2025-03-03 12:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598354') start [2025-03-03 12:07:04] Production.INFO: ==16531== Lock acquired, processing the job... [2025-03-03 12:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:07:04] Production.INFO: ==16535== Lock acquired, processing the job... [2025-03-03 12:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598354') end [2025-03-03 12:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:07:04] Production.INFO: 1 [2025-03-03 12:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:07:04] Production.INFO: ==16537== Lock acquired, processing the job... [2025-03-03 12:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:07:04] Production.INFO: ==16539== Releasing lock... [2025-03-03 12:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:07:04] Production.INFO: Account Balance Start. [2025-03-03 12:07:04] Production.INFO: CreateAllLog Start [2025-03-03 12:07:04] Production.INFO: 117 [2025-03-03 12:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:04] Production.INFO: ==16531== Releasing lock... [2025-03-03 12:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.ERROR: done [2025-03-03 12:07:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-10 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-11 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-12 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.ERROR: done [2025-03-03 12:07:05] Production.INFO: Date 2025-02-13 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:06] Production.INFO: Date 2025-02-27 [2025-03-03 12:07:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:06] Production.INFO: Date 2025-02-28 [2025-03-03 12:07:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:06] Production.INFO: Date 2025-03-01 [2025-03-03 12:07:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:06] Production.INFO: Date 2025-03-02 [2025-03-03 12:07:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:06] Production.INFO: Date 2025-03-03 [2025-03-03 12:07:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:07:06] Production.INFO: Total Charge 0 [2025-03-03 12:07:06] Production.INFO: CreateAllLog End [2025-03-03 12:07:06] Production.INFO: Account Balance End. [2025-03-03 12:07:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:07:06] Production.INFO: ==16535== Releasing lock... [2025-03-03 12:07:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:07:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:07:06 [end_date_ymd] => 2025-03-03 12:07:06 [RateCDR] => 1 ) [2025-03-03 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:07:06' and `end` < '2025-03-03 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:07:15] Production.ERROR: CronJobId end10 [2025-03-03 12:07:15] Production.INFO: ==16533== Releasing lock... [2025-03-03 12:07:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:07:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:07:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:07:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:07:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:07:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:07:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:07:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:07:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:07:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:07:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:07:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:07:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:07:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:07:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:07:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:07:18] Production.INFO: call_cost start [2025-03-03 12:07:18] Production.INFO: call_cost end [2025-03-03 12:07:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:07:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:07:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:07:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:07:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:07:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:07:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:07:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:07:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:07:19] Production.INFO: ==16529== Releasing lock... [2025-03-03 12:07:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:07:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:07:20] Production.INFO: count ==6214 [2025-03-03 12:07:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:07:06 - End Time 2025-03-03 12:07:06 [2025-03-03 12:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598358', 'tblTempUsageDetail_20' ) start [2025-03-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598358', 'tblTempUsageDetail_20' ) end [2025-03-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598358', 'tblTempVendorCDR_20' ) start [2025-03-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598358', 'tblTempVendorCDR_20' ) end [2025-03-03 12:07:23] Production.INFO: ProcessCDR(1,14598358,1,1,2) [2025-03-03 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598358', 'tblTempUsageDetail_20' ) start [2025-03-03 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598358', 'tblTempUsageDetail_20' ) end [2025-03-03 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:07:29] Production.INFO: ==16537== Releasing lock... [2025-03-03 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:07:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-03 17:08:02] Production.INFO: ==16596== Lock acquired, processing the job... [2025-03-03 17:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:08:02] Production.INFO: neon service started [2025-03-03 17:08:02] Production.INFO: neon service started [2025-03-03 17:08:02] Production.INFO: ==16596== Releasing lock... [2025-03-03 17:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:08:02] Production.INFO: ==16598== Lock acquired, processing the job... [2025-03-03 12:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:08:02] Production.INFO: ==16598== Releasing lock... [2025-03-03 12:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:08:02] Production.INFO: ==16600== Lock acquired, processing the job... [2025-03-03 17:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:08:03] Production.INFO: ==16600== Releasing lock... [2025-03-03 17:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:08:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:08:03] Production.INFO: ==16609== Lock acquired, processing the job... [2025-03-03 12:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:08:03] Production.INFO: ==16611== Lock acquired, processing the job... [2025-03-03 12:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:08:03] Production.INFO: ==16605== Lock acquired, processing the job... [2025-03-03 12:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:08:03] Production.INFO: Account Balance Start. [2025-03-03 12:08:03] Production.INFO: CreateAllLog Start [2025-03-03 12:08:03] Production.INFO: 117 [2025-03-03 12:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:03] Production.INFO: ==16603== Lock acquired, processing the job... [2025-03-03 12:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:08:03] Production.INFO: ==16607== Lock acquired, processing the job... [2025-03-03 12:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:08:04] Production.INFO: ==16613== Lock acquired, processing the job... [2025-03-03 12:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:08:04] Production.INFO: count ==13 [2025-03-03 12:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:08:04] Production.INFO: count ==21 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598362') start [2025-03-03 12:08:04] Production.INFO: ==16605== Releasing lock... [2025-03-03 12:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:08:04] Production.ERROR: done [2025-03-03 12:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598362') end [2025-03-03 12:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:08:04] Production.INFO: 1 [2025-03-03 12:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:08:04] Production.INFO: ==16613== Releasing lock... [2025-03-03 12:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.ERROR: done [2025-03-03 12:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:08:05] Production.INFO: Total Charge 0 [2025-03-03 12:08:05] Production.INFO: CreateAllLog End [2025-03-03 12:08:05] Production.INFO: Account Balance End. [2025-03-03 12:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:08:05] Production.INFO: ==16609== Releasing lock... [2025-03-03 12:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:08:05 [end_date_ymd] => 2025-03-03 12:08:05 [RateCDR] => 1 ) [2025-03-03 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:08:05' and `end` < '2025-03-03 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:08:13] Production.ERROR: CronJobId end10 [2025-03-03 12:08:13] Production.INFO: ==16607== Releasing lock... [2025-03-03 12:08:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:08:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:08:15] Production.INFO: call_cost start [2025-03-03 12:08:15] Production.INFO: call_cost end [2025-03-03 12:08:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:08:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:08:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:08:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:08:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:08:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:08:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:08:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:08:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:08:16] Production.INFO: ==16603== Releasing lock... [2025-03-03 12:08:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:08:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:08:18] Production.INFO: count ==6133 [2025-03-03 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:08:05 - End Time 2025-03-03 12:08:05 [2025-03-03 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598363', 'tblTempUsageDetail_20' ) start [2025-03-03 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598363', 'tblTempUsageDetail_20' ) end [2025-03-03 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598363', 'tblTempVendorCDR_20' ) start [2025-03-03 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598363', 'tblTempVendorCDR_20' ) end [2025-03-03 12:08:22] Production.INFO: ProcessCDR(1,14598363,1,1,2) [2025-03-03 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598363', 'tblTempUsageDetail_20' ) start [2025-03-03 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598363', 'tblTempUsageDetail_20' ) end [2025-03-03 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:08:27] Production.INFO: ==16611== Releasing lock... [2025-03-03 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:08:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:09:01] Production.INFO: ==16667== Lock acquired, processing the job... [2025-03-03 17:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:09:01] Production.INFO: neon service started [2025-03-03 17:09:01] Production.INFO: neon service started [2025-03-03 17:09:01] Production.INFO: ==16667== Releasing lock... [2025-03-03 17:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:09:02] Production.INFO: ==16669== Lock acquired, processing the job... [2025-03-03 12:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:09:02] Production.INFO: ==16671== Lock acquired, processing the job... [2025-03-03 17:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:09:02] Production.INFO: ==16671== Releasing lock... [2025-03-03 17:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:09:02] Production.INFO: ==16669== Releasing lock... [2025-03-03 12:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:09:03] Production.INFO: ==16684== Lock acquired, processing the job... [2025-03-03 12:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:09:03] Production.INFO: ==16680== Lock acquired, processing the job... [2025-03-03 12:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:09:03] Production.INFO: Account Balance Start. [2025-03-03 12:09:03] Production.INFO: CreateAllLog Start [2025-03-03 12:09:03] Production.INFO: 117 [2025-03-03 12:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:09:03] Production.INFO: ==16674== Lock acquired, processing the job... [2025-03-03 12:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:03] Production.INFO: count ==13 [2025-03-03 12:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:09:03] Production.INFO: count ==21 [2025-03-03 12:09:03] Production.INFO: ==16676== Lock acquired, processing the job... [2025-03-03 12:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:09:03] Production.INFO: ==16682== Lock acquired, processing the job... [2025-03-03 12:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598365') start [2025-03-03 12:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:03] Production.INFO: ==16678== Lock acquired, processing the job... [2025-03-03 12:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:09:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598365') end [2025-03-03 12:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:09:04] Production.INFO: 1 [2025-03-03 12:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: ==16684== Releasing lock... [2025-03-03 12:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: ==16676== Releasing lock... [2025-03-03 12:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.ERROR: done [2025-03-03 12:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.ERROR: done [2025-03-03 12:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:09:04] Production.INFO: Total Charge 0 [2025-03-03 12:09:04] Production.INFO: CreateAllLog End [2025-03-03 12:09:05] Production.INFO: Account Balance End. [2025-03-03 12:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:09:05] Production.INFO: ==16680== Releasing lock... [2025-03-03 12:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:09:05 [end_date_ymd] => 2025-03-03 12:09:05 [RateCDR] => 1 ) [2025-03-03 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:09:05' and `end` < '2025-03-03 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:09:13] Production.ERROR: CronJobId end10 [2025-03-03 12:09:13] Production.INFO: ==16678== Releasing lock... [2025-03-03 12:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:09:15] Production.INFO: call_cost start [2025-03-03 12:09:15] Production.INFO: call_cost end [2025-03-03 12:09:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:09:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:09:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:09:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:09:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:09:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:09:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:09:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:09:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:09:16] Production.INFO: ==16674== Releasing lock... [2025-03-03 12:09:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:09:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:09:19] Production.INFO: count ==6129 [2025-03-03 12:09:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:09:05 - End Time 2025-03-03 12:09:05 [2025-03-03 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598368', 'tblTempUsageDetail_20' ) start [2025-03-03 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598368', 'tblTempUsageDetail_20' ) end [2025-03-03 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598368', 'tblTempVendorCDR_20' ) start [2025-03-03 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598368', 'tblTempVendorCDR_20' ) end [2025-03-03 12:09:22] Production.INFO: ProcessCDR(1,14598368,1,1,2) [2025-03-03 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598368', 'tblTempUsageDetail_20' ) start [2025-03-03 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598368', 'tblTempUsageDetail_20' ) end [2025-03-03 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:09:27] Production.INFO: ==16682== Releasing lock... [2025-03-03 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:09:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:10:02] Production.INFO: ==16740== Lock acquired, processing the job... [2025-03-03 17:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:10:02] Production.INFO: neon service started [2025-03-03 17:10:02] Production.INFO: neon service started [2025-03-03 17:10:02] Production.INFO: ==16740== Releasing lock... [2025-03-03 17:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:10:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:10:02] Production.INFO: ==16742== Lock acquired, processing the job... [2025-03-03 12:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:10:03] Production.INFO: ==16744== Lock acquired, processing the job... [2025-03-03 17:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:10:03] Production.INFO: ==16742== Releasing lock... [2025-03-03 12:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:10:03] Production.INFO: ==16744== Releasing lock... [2025-03-03 17:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:10:04] Production.INFO: ==16747== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 12:10:04] Production.INFO: ==16751== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 12:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 12:10:04] Production.INFO: ==16747== Releasing lock... [2025-03-03 12:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 12:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 12:10:04] Production.INFO: ==16749== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:10:04] Production.INFO: ==16761== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:10:04] Production.INFO: ==16759== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 12:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:10:04] Production.INFO: ==16755== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:10:04] Production.INFO: ==16753== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:10:04] Production.INFO: ==16757== Lock acquired, processing the job... [2025-03-03 12:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:10:04] Production.INFO: count ==13 [2025-03-03 12:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:10:04] Production.INFO: count ==21 [2025-03-03 12:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598371') start [2025-03-03 12:10:04] Production.INFO: ==16751== Releasing lock... [2025-03-03 12:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:10:04] Production.INFO: Account Balance Start. [2025-03-03 12:10:04] Production.INFO: CreateAllLog Start [2025-03-03 12:10:04] Production.INFO: 117 [2025-03-03 12:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598371') end [2025-03-03 12:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:10:04] Production.INFO: 1 [2025-03-03 12:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:04] Production.INFO: ==16761== Releasing lock... [2025-03-03 12:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:10:05] Production.INFO: Date 2025-02-10 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.ERROR: done [2025-03-03 12:10:05] Production.INFO: Date 2025-02-11 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-12 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 12:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598373', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 12:10:05] Production.INFO: Date 2025-02-13 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.ERROR: done [2025-03-03 12:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.ERROR: done [2025-03-03 12:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:10:05] Production.INFO: Total Charge 0 [2025-03-03 12:10:05] Production.INFO: CreateAllLog End [2025-03-03 12:10:06] Production.INFO: Account Balance End. [2025-03-03 12:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:10:06] Production.INFO: ==16755== Releasing lock... [2025-03-03 12:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:10:06 [end_date_ymd] => 2025-03-03 12:10:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:10:06' and `end` < '2025-03-03 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-03-03 12:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598373', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 12:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 12:10:09] Production.INFO: ProcessCDR(1,14598373,1,1,2) [2025-03-03 12:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598373,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598373,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:10:09] Production.INFO: ==16759== Releasing lock... [2025-03-03 12:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 12:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 12:10:15] Production.ERROR: CronJobId end10 [2025-03-03 12:10:15] Production.INFO: ==16753== Releasing lock... [2025-03-03 12:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:10:16] Production.INFO: call_cost start [2025-03-03 12:10:16] Production.INFO: call_cost end [2025-03-03 12:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:10:17] Production.INFO: ==16749== Releasing lock... [2025-03-03 12:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:10:20] Production.INFO: count ==6130 [2025-03-03 12:10:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:10:06 - End Time 2025-03-03 12:10:06 [2025-03-03 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598374', 'tblTempUsageDetail_20' ) start [2025-03-03 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598374', 'tblTempUsageDetail_20' ) end [2025-03-03 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598374', 'tblTempVendorCDR_20' ) start [2025-03-03 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598374', 'tblTempVendorCDR_20' ) end [2025-03-03 12:10:23] Production.INFO: ProcessCDR(1,14598374,1,1,2) [2025-03-03 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598374', 'tblTempUsageDetail_20' ) start [2025-03-03 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598374', 'tblTempUsageDetail_20' ) end [2025-03-03 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:10:28] Production.INFO: ==16757== Releasing lock... [2025-03-03 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:10:28] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:11:01] Production.INFO: ==16814== Lock acquired, processing the job... [2025-03-03 17:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:11:01] Production.INFO: neon service started [2025-03-03 17:11:01] Production.INFO: neon service started [2025-03-03 17:11:01] Production.INFO: ==16814== Releasing lock... [2025-03-03 17:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:11:02] Production.INFO: ==16816== Lock acquired, processing the job... [2025-03-03 12:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:11:02] Production.INFO: ==16818== Lock acquired, processing the job... [2025-03-03 17:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:11:02] Production.INFO: ==16818== Releasing lock... [2025-03-03 17:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:11:02] Production.INFO: ==16816== Releasing lock... [2025-03-03 12:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:11:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:11:03] Production.INFO: ==16821== Lock acquired, processing the job... [2025-03-03 12:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:11:03] Production.INFO: ==16823== Lock acquired, processing the job... [2025-03-03 12:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:11:03] Production.INFO: ==16825== Lock acquired, processing the job... [2025-03-03 12:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:11:04] Production.INFO: ==16829== Lock acquired, processing the job... [2025-03-03 12:11:04] Production.INFO: ==16827== Lock acquired, processing the job... [2025-03-03 12:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:11:04] Production.INFO: ==16831== Lock acquired, processing the job... [2025-03-03 12:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:11:04] Production.INFO: Account Balance Start. [2025-03-03 12:11:04] Production.INFO: CreateAllLog Start [2025-03-03 12:11:04] Production.INFO: 117 [2025-03-03 12:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:11:04] Production.INFO: count ==13 [2025-03-03 12:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:11:04] Production.INFO: count ==21 [2025-03-03 12:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598378') start [2025-03-03 12:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: ==16823== Releasing lock... [2025-03-03 12:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598378') end [2025-03-03 12:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:11:04] Production.INFO: 1 [2025-03-03 12:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: ==16831== Releasing lock... [2025-03-03 12:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:11:04] Production.ERROR: done [2025-03-03 12:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.ERROR: done [2025-03-03 12:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:11:05 [end_date_ymd] => 2025-03-03 12:11:05 [RateCDR] => 1 ) [2025-03-03 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:11:05' and `end` < '2025-03-03 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:06] Production.INFO: Date 2025-03-01 [2025-03-03 12:11:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:06] Production.INFO: Date 2025-03-02 [2025-03-03 12:11:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:06] Production.INFO: Date 2025-03-03 [2025-03-03 12:11:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:11:06] Production.INFO: Total Charge 0 [2025-03-03 12:11:06] Production.INFO: CreateAllLog End [2025-03-03 12:11:06] Production.INFO: Account Balance End. [2025-03-03 12:11:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:11:06] Production.INFO: ==16827== Releasing lock... [2025-03-03 12:11:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:11:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:11:13] Production.ERROR: CronJobId end10 [2025-03-03 12:11:13] Production.INFO: ==16825== Releasing lock... [2025-03-03 12:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:11:15] Production.INFO: call_cost start [2025-03-03 12:11:15] Production.INFO: call_cost end [2025-03-03 12:11:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:11:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:11:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:11:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:11:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:11:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:11:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:11:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:11:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:11:16] Production.INFO: ==16821== Releasing lock... [2025-03-03 12:11:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:11:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:11:19] Production.INFO: count ==6137 [2025-03-03 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:11:05 - End Time 2025-03-03 12:11:05 [2025-03-03 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598379', 'tblTempUsageDetail_20' ) start [2025-03-03 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598379', 'tblTempUsageDetail_20' ) end [2025-03-03 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598379', 'tblTempVendorCDR_20' ) start [2025-03-03 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598379', 'tblTempVendorCDR_20' ) end [2025-03-03 12:11:22] Production.INFO: ProcessCDR(1,14598379,1,1,2) [2025-03-03 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598379', 'tblTempUsageDetail_20' ) start [2025-03-03 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598379', 'tblTempUsageDetail_20' ) end [2025-03-03 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:11:27] Production.INFO: ==16829== Releasing lock... [2025-03-03 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:11:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:12:02] Production.INFO: ==16927== Lock acquired, processing the job... [2025-03-03 17:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:12:02] Production.INFO: neon service started [2025-03-03 17:12:02] Production.INFO: neon service started [2025-03-03 17:12:02] Production.INFO: ==16927== Releasing lock... [2025-03-03 17:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:12:02] Production.INFO: ==16929== Lock acquired, processing the job... [2025-03-03 12:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:12:03] Production.INFO: ==16929== Releasing lock... [2025-03-03 12:12:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:12:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:12:03] Production.INFO: ==16931== Lock acquired, processing the job... [2025-03-03 17:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:12:03] Production.INFO: ==16931== Releasing lock... [2025-03-03 17:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:12:03] Production.INFO: ==16933== Lock acquired, processing the job... [2025-03-03 12:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:12:04] Production.INFO: ==16944== Lock acquired, processing the job... [2025-03-03 12:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:12:04] Production.INFO: ==16937== Lock acquired, processing the job... [2025-03-03 12:12:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:12:04] Production.INFO: ==16935== Lock acquired, processing the job... [2025-03-03 12:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:12:04] Production.INFO: count ==13 [2025-03-03 12:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:12:04] Production.INFO: count ==21 [2025-03-03 12:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598381') start [2025-03-03 12:12:04] Production.INFO: ==16939== Lock acquired, processing the job... [2025-03-03 12:12:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:12:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:12:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:12:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:12:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:12:04] Production.INFO: ==16941== Lock acquired, processing the job... [2025-03-03 12:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:12:04] Production.INFO: Account Balance Start. [2025-03-03 12:12:04] Production.INFO: CreateAllLog Start [2025-03-03 12:12:04] Production.INFO: 117 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598381') end [2025-03-03 12:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:12:04] Production.INFO: 1 [2025-03-03 12:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: ==16935== Releasing lock... [2025-03-03 12:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:12:04] Production.INFO: ==16944== Releasing lock... [2025-03-03 12:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.ERROR: done [2025-03-03 12:12:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.ERROR: done [2025-03-03 12:12:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:12:05] Production.INFO: Total Charge 0 [2025-03-03 12:12:05] Production.INFO: CreateAllLog End [2025-03-03 12:12:05] Production.INFO: Account Balance End. [2025-03-03 12:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:12:05] Production.INFO: ==16939== Releasing lock... [2025-03-03 12:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:12:06 [end_date_ymd] => 2025-03-03 12:12:06 [RateCDR] => 1 ) [2025-03-03 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:12:06' and `end` < '2025-03-03 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:12:13] Production.ERROR: CronJobId end10 [2025-03-03 12:12:13] Production.INFO: ==16937== Releasing lock... [2025-03-03 12:12:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:12:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:12:16] Production.INFO: call_cost start [2025-03-03 12:12:16] Production.INFO: call_cost end [2025-03-03 12:12:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:12:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:12:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:12:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:12:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:12:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:12:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:12:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:12:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:12:17] Production.INFO: ==16933== Releasing lock... [2025-03-03 12:12:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:12:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:12:19] Production.INFO: count ==6122 [2025-03-03 12:12:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:12:06 - End Time 2025-03-03 12:12:06 [2025-03-03 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598384', 'tblTempUsageDetail_20' ) start [2025-03-03 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598384', 'tblTempUsageDetail_20' ) end [2025-03-03 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598384', 'tblTempVendorCDR_20' ) start [2025-03-03 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598384', 'tblTempVendorCDR_20' ) end [2025-03-03 12:12:22] Production.INFO: ProcessCDR(1,14598384,1,1,2) [2025-03-03 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598384', 'tblTempUsageDetail_20' ) start [2025-03-03 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598384', 'tblTempUsageDetail_20' ) end [2025-03-03 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:12:27] Production.INFO: ==16941== Releasing lock... [2025-03-03 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:12:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 17:13:01] Production.INFO: ==16999== Lock acquired, processing the job... [2025-03-03 17:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:13:01] Production.INFO: neon service started [2025-03-03 17:13:02] Production.INFO: neon service started [2025-03-03 17:13:02] Production.INFO: ==16999== Releasing lock... [2025-03-03 17:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:13:02] Production.INFO: ==17001== Lock acquired, processing the job... [2025-03-03 12:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:13:02] Production.INFO: ==17003== Lock acquired, processing the job... [2025-03-03 17:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:13:02] Production.INFO: ==17003== Releasing lock... [2025-03-03 17:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:13:03] Production.INFO: ==17001== Releasing lock... [2025-03-03 12:13:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:13:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:13:03] Production.INFO: ==17012== Lock acquired, processing the job... [2025-03-03 12:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:13:03] Production.INFO: ==17006== Lock acquired, processing the job... [2025-03-03 12:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:13:04] Production.INFO: Account Balance Start. [2025-03-03 12:13:04] Production.INFO: CreateAllLog Start [2025-03-03 12:13:04] Production.INFO: 117 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: ==17010== Lock acquired, processing the job... [2025-03-03 12:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:13:04] Production.INFO: ==17008== Lock acquired, processing the job... [2025-03-03 12:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:13:04] Production.INFO: ==17016== Lock acquired, processing the job... [2025-03-03 12:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:13:04] Production.INFO: ==17014== Lock acquired, processing the job... [2025-03-03 12:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: count ==13 [2025-03-03 12:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:13:04] Production.INFO: count ==21 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598388') start [2025-03-03 12:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: ==17008== Releasing lock... [2025-03-03 12:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598388') end [2025-03-03 12:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:13:04] Production.INFO: 1 [2025-03-03 12:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: ==17016== Releasing lock... [2025-03-03 12:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:04] Production.ERROR: done [2025-03-03 12:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:13:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.ERROR: done [2025-03-03 12:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:13:05] Production.INFO: Total Charge 0 [2025-03-03 12:13:05] Production.INFO: CreateAllLog End [2025-03-03 12:13:05] Production.INFO: Account Balance End. [2025-03-03 12:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:13:05] Production.INFO: ==17012== Releasing lock... [2025-03-03 12:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:13:06 [end_date_ymd] => 2025-03-03 12:13:06 [RateCDR] => 1 ) [2025-03-03 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:13:06' and `end` < '2025-03-03 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:13:12] Production.ERROR: CronJobId end10 [2025-03-03 12:13:12] Production.INFO: ==17010== Releasing lock... [2025-03-03 12:13:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:13:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:13:15] Production.INFO: call_cost start [2025-03-03 12:13:15] Production.INFO: call_cost end [2025-03-03 12:13:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:13:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:13:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:13:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:13:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:13:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:13:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:13:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:13:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:13:16] Production.INFO: ==17006== Releasing lock... [2025-03-03 12:13:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:13:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:13:19] Production.INFO: count ==6098 [2025-03-03 12:13:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:13:06 - End Time 2025-03-03 12:13:06 [2025-03-03 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598389', 'tblTempUsageDetail_20' ) start [2025-03-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598389', 'tblTempUsageDetail_20' ) end [2025-03-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598389', 'tblTempVendorCDR_20' ) start [2025-03-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598389', 'tblTempVendorCDR_20' ) end [2025-03-03 12:13:22] Production.INFO: ProcessCDR(1,14598389,1,1,2) [2025-03-03 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598389', 'tblTempUsageDetail_20' ) start [2025-03-03 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598389', 'tblTempUsageDetail_20' ) end [2025-03-03 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:13:27] Production.INFO: ==17014== Releasing lock... [2025-03-03 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:13:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 17:14:01] Production.INFO: ==17071== Lock acquired, processing the job... [2025-03-03 17:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:14:01] Production.INFO: neon service started [2025-03-03 17:14:01] Production.INFO: neon service started [2025-03-03 17:14:01] Production.INFO: ==17071== Releasing lock... [2025-03-03 17:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:14:01] Production.INFO: ==17075== Lock acquired, processing the job... [2025-03-03 17:14:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:14:01] Production.INFO: ==17075== Releasing lock... [2025-03-03 17:14:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:14:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:14:02] Production.INFO: ==17073== Lock acquired, processing the job... [2025-03-03 12:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:14:02] Production.INFO: ==17073== Releasing lock... [2025-03-03 12:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:14:03] Production.INFO: ==17082== Lock acquired, processing the job... [2025-03-03 12:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:14:03] Production.INFO: ==17088== Lock acquired, processing the job... [2025-03-03 12:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:14:03] Production.INFO: ==17078== Lock acquired, processing the job... [2025-03-03 12:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:14:03] Production.INFO: ==17080== Lock acquired, processing the job... [2025-03-03 12:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:14:03] Production.INFO: count ==13 [2025-03-03 12:14:03] Production.INFO: ==17086== Lock acquired, processing the job... [2025-03-03 12:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:14:03] Production.INFO: ==17084== Lock acquired, processing the job... [2025-03-03 12:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:14:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:14:03] Production.INFO: count ==21 [2025-03-03 12:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598391') start [2025-03-03 12:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598391') end [2025-03-03 12:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:14:04] Production.INFO: 1 [2025-03-03 12:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:14:04] Production.INFO: Account Balance Start. [2025-03-03 12:14:04] Production.INFO: CreateAllLog Start [2025-03-03 12:14:04] Production.INFO: 117 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: ==17088== Releasing lock... [2025-03-03 12:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:14:04] Production.INFO: ==17080== Releasing lock... [2025-03-03 12:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.ERROR: done [2025-03-03 12:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.ERROR: done [2025-03-03 12:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:14:05] Production.INFO: Total Charge 0 [2025-03-03 12:14:05] Production.INFO: CreateAllLog End [2025-03-03 12:14:05] Production.INFO: Account Balance End. [2025-03-03 12:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:14:05] Production.INFO: ==17084== Releasing lock... [2025-03-03 12:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:14:05 [end_date_ymd] => 2025-03-03 12:14:05 [RateCDR] => 1 ) [2025-03-03 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:14:05' and `end` < '2025-03-03 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:14:12] Production.ERROR: CronJobId end10 [2025-03-03 12:14:12] Production.INFO: ==17082== Releasing lock... [2025-03-03 12:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:14:15] Production.INFO: call_cost start [2025-03-03 12:14:15] Production.INFO: call_cost end [2025-03-03 12:14:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:14:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:14:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:14:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:14:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:14:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:14:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:14:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:14:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:14:16] Production.INFO: ==17078== Releasing lock... [2025-03-03 12:14:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:14:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:14:19] Production.INFO: count ==6092 [2025-03-03 12:14:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:14:05 - End Time 2025-03-03 12:14:05 [2025-03-03 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598394', 'tblTempUsageDetail_20' ) start [2025-03-03 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598394', 'tblTempUsageDetail_20' ) end [2025-03-03 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598394', 'tblTempVendorCDR_20' ) start [2025-03-03 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598394', 'tblTempVendorCDR_20' ) end [2025-03-03 12:14:22] Production.INFO: ProcessCDR(1,14598394,1,1,2) [2025-03-03 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598394', 'tblTempUsageDetail_20' ) start [2025-03-03 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598394', 'tblTempUsageDetail_20' ) end [2025-03-03 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:14:27] Production.INFO: ==17086== Releasing lock... [2025-03-03 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:14:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 17:15:02] Production.INFO: ==17143== Lock acquired, processing the job... [2025-03-03 17:15:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:15:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:15:02] Production.INFO: neon service started [2025-03-03 17:15:02] Production.INFO: neon service started [2025-03-03 17:15:02] Production.INFO: ==17143== Releasing lock... [2025-03-03 17:15:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:15:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:15:02] Production.INFO: ==17145== Lock acquired, processing the job... [2025-03-03 12:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:15:02] Production.INFO: ==17145== Releasing lock... [2025-03-03 12:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:15:02] Production.INFO: ==17147== Lock acquired, processing the job... [2025-03-03 17:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:15:03] Production.INFO: ==17147== Releasing lock... [2025-03-03 17:15:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:15:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:15:03] Production.INFO: ==17154== Lock acquired, processing the job... [2025-03-03 12:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:15:03] Production.INFO: ==17152== Lock acquired, processing the job... [2025-03-03 12:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:15:03] Production.INFO: ==17160== Lock acquired, processing the job... [2025-03-03 12:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:15:04] Production.INFO: ==17150== Lock acquired, processing the job... [2025-03-03 12:15:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:15:04] Production.INFO: count ==13 [2025-03-03 12:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:15:04] Production.INFO: count ==21 [2025-03-03 12:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598396') start [2025-03-03 12:15:04] Production.INFO: ==17156== Lock acquired, processing the job... [2025-03-03 12:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:15:04] Production.INFO: ==17158== Lock acquired, processing the job... [2025-03-03 12:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598396') end [2025-03-03 12:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:15:04] Production.INFO: 1 [2025-03-03 12:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:15:04] Production.INFO: ==17160== Releasing lock... [2025-03-03 12:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:15:04] Production.INFO: Account Balance Start. [2025-03-03 12:15:04] Production.INFO: CreateAllLog Start [2025-03-03 12:15:04] Production.INFO: 117 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: ==17152== Releasing lock... [2025-03-03 12:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.ERROR: done [2025-03-03 12:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:15:04] Production.ERROR: done [2025-03-03 12:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:15:05] Production.INFO: Total Charge 0 [2025-03-03 12:15:05] Production.INFO: CreateAllLog End [2025-03-03 12:15:05] Production.INFO: Account Balance End. [2025-03-03 12:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:15:05] Production.INFO: ==17156== Releasing lock... [2025-03-03 12:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:15:06 [end_date_ymd] => 2025-03-03 12:15:06 [RateCDR] => 1 ) [2025-03-03 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:15:06' and `end` < '2025-03-03 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:15:13] Production.ERROR: CronJobId end10 [2025-03-03 12:15:13] Production.INFO: ==17154== Releasing lock... [2025-03-03 12:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:15:15] Production.INFO: call_cost start [2025-03-03 12:15:15] Production.INFO: call_cost end [2025-03-03 12:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:15:16] Production.INFO: ==17150== Releasing lock... [2025-03-03 12:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:15:19] Production.INFO: count ==6079 [2025-03-03 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:15:06 - End Time 2025-03-03 12:15:06 [2025-03-03 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598399', 'tblTempUsageDetail_20' ) start [2025-03-03 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598399', 'tblTempUsageDetail_20' ) end [2025-03-03 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598399', 'tblTempVendorCDR_20' ) start [2025-03-03 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598399', 'tblTempVendorCDR_20' ) end [2025-03-03 12:15:23] Production.INFO: ProcessCDR(1,14598399,1,1,2) [2025-03-03 12:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598399', 'tblTempUsageDetail_20' ) start [2025-03-03 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598399', 'tblTempUsageDetail_20' ) end [2025-03-03 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:15:28] Production.INFO: ==17158== Releasing lock... [2025-03-03 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:15:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 17:16:01] Production.INFO: ==17213== Lock acquired, processing the job... [2025-03-03 17:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:16:01] Production.INFO: neon service started [2025-03-03 17:16:01] Production.INFO: neon service started [2025-03-03 17:16:01] Production.INFO: ==17213== Releasing lock... [2025-03-03 17:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:16:02] Production.INFO: ==17217== Lock acquired, processing the job... [2025-03-03 17:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:16:02] Production.INFO: ==17215== Lock acquired, processing the job... [2025-03-03 12:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:16:02] Production.INFO: ==17217== Releasing lock... [2025-03-03 17:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:16:02] Production.INFO: ==17215== Releasing lock... [2025-03-03 12:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:16:03] Production.INFO: ==17222== Lock acquired, processing the job... [2025-03-03 12:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:16:03] Production.INFO: ==17231== Lock acquired, processing the job... [2025-03-03 12:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:16:03] Production.INFO: count ==13 [2025-03-03 12:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:16:03] Production.INFO: count ==21 [2025-03-03 12:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598401') start [2025-03-03 12:16:03] Production.INFO: ==17222== Releasing lock... [2025-03-03 12:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:16:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:16:03] Production.INFO: ==17220== Lock acquired, processing the job... [2025-03-03 12:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:16:03] Production.INFO: ==17224== Lock acquired, processing the job... [2025-03-03 12:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598401') end [2025-03-03 12:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:16:04] Production.INFO: 1 [2025-03-03 12:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:16:04] Production.INFO: ==17226== Lock acquired, processing the job... [2025-03-03 12:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:16:04] Production.INFO: ==17228== Lock acquired, processing the job... [2025-03-03 12:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:16:04] Production.INFO: ==17231== Releasing lock... [2025-03-03 12:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:16:04] Production.INFO: Account Balance Start. [2025-03-03 12:16:04] Production.INFO: CreateAllLog Start [2025-03-03 12:16:04] Production.INFO: 117 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.ERROR: done [2025-03-03 12:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.ERROR: done [2025-03-03 12:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:16:05] Production.INFO: Total Charge 0 [2025-03-03 12:16:05] Production.INFO: CreateAllLog End [2025-03-03 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:16:05 [end_date_ymd] => 2025-03-03 12:16:05 [RateCDR] => 1 ) [2025-03-03 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:16:05' and `end` < '2025-03-03 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:16:05] Production.INFO: Account Balance End. [2025-03-03 12:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:16:05] Production.INFO: ==17226== Releasing lock... [2025-03-03 12:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:16:13] Production.ERROR: CronJobId end10 [2025-03-03 12:16:13] Production.INFO: ==17224== Releasing lock... [2025-03-03 12:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:16:15] Production.INFO: call_cost start [2025-03-03 12:16:15] Production.INFO: call_cost end [2025-03-03 12:16:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:16:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:16:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:16:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:16:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:16:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:16:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:16:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:16:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:16:16] Production.INFO: ==17220== Releasing lock... [2025-03-03 12:16:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:16:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:16:19] Production.INFO: count ==6109 [2025-03-03 12:16:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:16:05 - End Time 2025-03-03 12:16:05 [2025-03-03 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598404', 'tblTempUsageDetail_20' ) start [2025-03-03 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598404', 'tblTempUsageDetail_20' ) end [2025-03-03 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598404', 'tblTempVendorCDR_20' ) start [2025-03-03 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598404', 'tblTempVendorCDR_20' ) end [2025-03-03 12:16:22] Production.INFO: ProcessCDR(1,14598404,1,1,2) [2025-03-03 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598404', 'tblTempUsageDetail_20' ) start [2025-03-03 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598404', 'tblTempUsageDetail_20' ) end [2025-03-03 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:16:27] Production.INFO: ==17228== Releasing lock... [2025-03-03 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:16:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 17:17:02] Production.INFO: ==17285== Lock acquired, processing the job... [2025-03-03 17:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:17:02] Production.INFO: neon service started [2025-03-03 17:17:02] Production.INFO: neon service started [2025-03-03 17:17:02] Production.INFO: ==17285== Releasing lock... [2025-03-03 17:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:17:02] Production.INFO: ==17290== Lock acquired, processing the job... [2025-03-03 17:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:17:02] Production.INFO: ==17290== Releasing lock... [2025-03-03 17:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:17:02] Production.INFO: ==17288== Lock acquired, processing the job... [2025-03-03 12:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:17:03] Production.INFO: ==17288== Releasing lock... [2025-03-03 12:17:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:17:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:17:03] Production.INFO: ==17296== Lock acquired, processing the job... [2025-03-03 12:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:17:03] Production.INFO: ==17292== Lock acquired, processing the job... [2025-03-03 12:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:17:03] Production.INFO: ==17298== Lock acquired, processing the job... [2025-03-03 12:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:17:04] Production.INFO: Account Balance Start. [2025-03-03 12:17:04] Production.INFO: CreateAllLog Start [2025-03-03 12:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:17:04] Production.INFO: 117 [2025-03-03 12:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:17:04] Production.INFO: ==17294== Lock acquired, processing the job... [2025-03-03 12:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: ==17300== Lock acquired, processing the job... [2025-03-03 12:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: ==17302== Lock acquired, processing the job... [2025-03-03 12:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:17:04] Production.INFO: count ==13 [2025-03-03 12:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:17:04] Production.INFO: count ==21 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598408') start [2025-03-03 12:17:04] Production.INFO: ==17294== Releasing lock... [2025-03-03 12:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598408') end [2025-03-03 12:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:17:04] Production.INFO: 1 [2025-03-03 12:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: ==17302== Releasing lock... [2025-03-03 12:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:17:04] Production.ERROR: done [2025-03-03 12:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.ERROR: done [2025-03-03 12:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:17:05] Production.INFO: Total Charge 0 [2025-03-03 12:17:05] Production.INFO: CreateAllLog End [2025-03-03 12:17:05] Production.INFO: Account Balance End. [2025-03-03 12:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:17:05] Production.INFO: ==17298== Releasing lock... [2025-03-03 12:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:17:05 [end_date_ymd] => 2025-03-03 12:17:05 [RateCDR] => 1 ) [2025-03-03 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:17:05' and `end` < '2025-03-03 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:17:13] Production.ERROR: CronJobId end10 [2025-03-03 12:17:13] Production.INFO: ==17296== Releasing lock... [2025-03-03 12:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:17:15] Production.INFO: call_cost start [2025-03-03 12:17:15] Production.INFO: call_cost end [2025-03-03 12:17:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:17:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:17:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:17:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:17:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:17:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:17:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:17:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:17:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:17:16] Production.INFO: ==17292== Releasing lock... [2025-03-03 12:17:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:17:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:17:19] Production.INFO: count ==6149 [2025-03-03 12:17:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:17:05 - End Time 2025-03-03 12:17:05 [2025-03-03 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598409', 'tblTempUsageDetail_20' ) start [2025-03-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598409', 'tblTempUsageDetail_20' ) end [2025-03-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598409', 'tblTempVendorCDR_20' ) start [2025-03-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598409', 'tblTempVendorCDR_20' ) end [2025-03-03 12:17:22] Production.INFO: ProcessCDR(1,14598409,1,1,2) [2025-03-03 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598409', 'tblTempUsageDetail_20' ) start [2025-03-03 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598409', 'tblTempUsageDetail_20' ) end [2025-03-03 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:17:27] Production.INFO: ==17300== Releasing lock... [2025-03-03 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:17:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 17:18:02] Production.INFO: ==17368== Lock acquired, processing the job... [2025-03-03 17:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:18:02] Production.INFO: neon service started [2025-03-03 17:18:02] Production.INFO: neon service started [2025-03-03 17:18:02] Production.INFO: ==17368== Releasing lock... [2025-03-03 17:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:18:02] Production.INFO: ==17370== Lock acquired, processing the job... [2025-03-03 12:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:18:02] Production.INFO: ==17370== Releasing lock... [2025-03-03 12:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:18:02] Production.INFO: ==17372== Lock acquired, processing the job... [2025-03-03 17:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:18:03] Production.INFO: ==17372== Releasing lock... [2025-03-03 17:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:18:03] Production.INFO: ==17385== Lock acquired, processing the job... [2025-03-03 12:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:18:03] Production.INFO: ==17383== Lock acquired, processing the job... [2025-03-03 12:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:18:04] Production.INFO: ==17375== Lock acquired, processing the job... [2025-03-03 12:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:18:04] Production.INFO: ==17377== Lock acquired, processing the job... [2025-03-03 12:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:18:04] Production.INFO: ==17379== Lock acquired, processing the job... [2025-03-03 12:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:18:04] Production.INFO: count ==13 [2025-03-03 12:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:18:04] Production.INFO: count ==21 [2025-03-03 12:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598410') start [2025-03-03 12:18:04] Production.INFO: ==17381== Lock acquired, processing the job... [2025-03-03 12:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598410') end [2025-03-03 12:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:18:04] Production.INFO: 1 [2025-03-03 12:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:18:04] Production.INFO: Account Balance Start. [2025-03-03 12:18:04] Production.INFO: CreateAllLog Start [2025-03-03 12:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:18:04] Production.INFO: 117 [2025-03-03 12:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: ==17385== Releasing lock... [2025-03-03 12:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.ERROR: done [2025-03-03 12:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: ==17377== Releasing lock... [2025-03-03 12:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.ERROR: done [2025-03-03 12:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:18:05] Production.INFO: Total Charge 0 [2025-03-03 12:18:05] Production.INFO: CreateAllLog End [2025-03-03 12:18:05] Production.INFO: Account Balance End. [2025-03-03 12:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:18:05] Production.INFO: ==17381== Releasing lock... [2025-03-03 12:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:18:06 [end_date_ymd] => 2025-03-03 12:18:06 [RateCDR] => 1 ) [2025-03-03 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:18:06' and `end` < '2025-03-03 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:18:14] Production.ERROR: CronJobId end10 [2025-03-03 12:18:14] Production.INFO: ==17379== Releasing lock... [2025-03-03 12:18:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:18:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:18:16] Production.INFO: call_cost start [2025-03-03 12:18:16] Production.INFO: call_cost end [2025-03-03 12:18:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:18:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:18:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:18:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:18:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:18:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:18:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:18:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:18:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:18:17] Production.INFO: ==17375== Releasing lock... [2025-03-03 12:18:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:18:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:18:19] Production.INFO: count ==6166 [2025-03-03 12:18:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:18:06 - End Time 2025-03-03 12:18:06 [2025-03-03 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598414', 'tblTempUsageDetail_20' ) start [2025-03-03 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598414', 'tblTempUsageDetail_20' ) end [2025-03-03 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598414', 'tblTempVendorCDR_20' ) start [2025-03-03 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598414', 'tblTempVendorCDR_20' ) end [2025-03-03 12:18:22] Production.INFO: ProcessCDR(1,14598414,1,1,2) [2025-03-03 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598414', 'tblTempUsageDetail_20' ) start [2025-03-03 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598414', 'tblTempUsageDetail_20' ) end [2025-03-03 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:18:27] Production.INFO: ==17383== Releasing lock... [2025-03-03 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:18:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-03 17:19:01] Production.INFO: ==17440== Lock acquired, processing the job... [2025-03-03 17:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:19:01] Production.INFO: neon service started [2025-03-03 17:19:01] Production.INFO: neon service started [2025-03-03 17:19:01] Production.INFO: ==17440== Releasing lock... [2025-03-03 17:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:19:02] Production.INFO: ==17443== Lock acquired, processing the job... [2025-03-03 12:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:19:02] Production.INFO: ==17445== Lock acquired, processing the job... [2025-03-03 17:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:19:02] Production.INFO: ==17445== Releasing lock... [2025-03-03 17:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:19:02] Production.INFO: ==17443== Releasing lock... [2025-03-03 12:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:19:03] Production.INFO: ==17451== Lock acquired, processing the job... [2025-03-03 12:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:19:03] Production.INFO: ==17455== Lock acquired, processing the job... [2025-03-03 12:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:19:03] Production.INFO: ==17457== Lock acquired, processing the job... [2025-03-03 12:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:19:03] Production.INFO: ==17449== Lock acquired, processing the job... [2025-03-03 12:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:19:03] Production.INFO: count ==13 [2025-03-03 12:19:03] Production.INFO: ==17447== Lock acquired, processing the job... [2025-03-03 12:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:19:03] Production.INFO: count ==21 [2025-03-03 12:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598415') start [2025-03-03 12:19:03] Production.INFO: ==17453== Lock acquired, processing the job... [2025-03-03 12:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:19:03] Production.ERROR: done [2025-03-03 12:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598415') end [2025-03-03 12:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:19:03] Production.INFO: 1 [2025-03-03 12:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:19:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:19:04] Production.INFO: Account Balance Start. [2025-03-03 12:19:04] Production.INFO: CreateAllLog Start [2025-03-03 12:19:04] Production.INFO: 117 [2025-03-03 12:19:04] Production.ERROR: done [2025-03-03 12:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: ==17457== Releasing lock... [2025-03-03 12:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: ==17449== Releasing lock... [2025-03-03 12:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:19:04] Production.INFO: Total Charge 0 [2025-03-03 12:19:04] Production.INFO: CreateAllLog End [2025-03-03 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:19:05 [end_date_ymd] => 2025-03-03 12:19:05 [RateCDR] => 1 ) [2025-03-03 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:19:05' and `end` < '2025-03-03 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:19:05] Production.INFO: Account Balance End. [2025-03-03 12:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:19:05] Production.INFO: ==17453== Releasing lock... [2025-03-03 12:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:19:14] Production.ERROR: CronJobId end10 [2025-03-03 12:19:14] Production.INFO: ==17451== Releasing lock... [2025-03-03 12:19:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:19:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:19:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:19:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:19:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:19:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:19:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:19:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:19:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:19:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:19:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:19:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:19:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:19:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:19:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:19:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:19:15] Production.INFO: call_cost start [2025-03-03 12:19:15] Production.INFO: call_cost end [2025-03-03 12:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:19:16] Production.INFO: ==17447== Releasing lock... [2025-03-03 12:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:19:18] Production.INFO: count ==6169 [2025-03-03 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:19:05 - End Time 2025-03-03 12:19:05 [2025-03-03 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598419', 'tblTempUsageDetail_20' ) start [2025-03-03 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598419', 'tblTempUsageDetail_20' ) end [2025-03-03 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598419', 'tblTempVendorCDR_20' ) start [2025-03-03 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598419', 'tblTempVendorCDR_20' ) end [2025-03-03 12:19:21] Production.INFO: ProcessCDR(1,14598419,1,1,2) [2025-03-03 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598419', 'tblTempUsageDetail_20' ) start [2025-03-03 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598419', 'tblTempUsageDetail_20' ) end [2025-03-03 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:19:27] Production.INFO: ==17455== Releasing lock... [2025-03-03 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:19:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-03 17:20:01] Production.INFO: ==17510== Lock acquired, processing the job... [2025-03-03 17:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:20:01] Production.INFO: neon service started [2025-03-03 17:20:01] Production.INFO: neon service started [2025-03-03 17:20:01] Production.INFO: ==17510== Releasing lock... [2025-03-03 17:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:20:02] Production.INFO: ==17512== Lock acquired, processing the job... [2025-03-03 12:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:20:02] Production.INFO: ==17514== Lock acquired, processing the job... [2025-03-03 17:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:20:02] Production.INFO: ==17514== Releasing lock... [2025-03-03 17:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:20:02] Production.INFO: ==17512== Releasing lock... [2025-03-03 12:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:20:03] Production.INFO: ==17517== Lock acquired, processing the job... [2025-03-03 12:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 12:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 12:20:03] Production.INFO: ==17525== Lock acquired, processing the job... [2025-03-03 12:20:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:20:03] Production.INFO: ==17523== Lock acquired, processing the job... [2025-03-03 12:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 12:20:03] Production.INFO: ==17517== Releasing lock... [2025-03-03 12:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 12:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 12:20:03] Production.INFO: ==17527== Lock acquired, processing the job... [2025-03-03 12:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:20:03] Production.INFO: Account Balance Start. [2025-03-03 12:20:03] Production.INFO: CreateAllLog Start [2025-03-03 12:20:03] Production.INFO: 117 [2025-03-03 12:20:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:20:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: ==17521== Lock acquired, processing the job... [2025-03-03 12:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: ==17519== Lock acquired, processing the job... [2025-03-03 12:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: ==17531== Lock acquired, processing the job... [2025-03-03 12:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:20:04] Production.INFO: ==17529== Lock acquired, processing the job... [2025-03-03 12:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 12:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: count ==13 [2025-03-03 12:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:20:04] Production.INFO: count ==21 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598421') start [2025-03-03 12:20:04] Production.ERROR: done [2025-03-03 12:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598421') end [2025-03-03 12:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:20:04] Production.INFO: 1 [2025-03-03 12:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:20:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.ERROR: done [2025-03-03 12:20:04] Production.INFO: ==17531== Releasing lock... [2025-03-03 12:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 12:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598424', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 12:20:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:20:04] Production.INFO: ==17521== Releasing lock... [2025-03-03 12:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.ERROR: done [2025-03-03 12:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:20:05] Production.INFO: Total Charge 0 [2025-03-03 12:20:05] Production.INFO: CreateAllLog End [2025-03-03 12:20:05] Production.INFO: Account Balance End. [2025-03-03 12:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:20:05] Production.INFO: ==17525== Releasing lock... [2025-03-03 12:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:20:06 [end_date_ymd] => 2025-03-03 12:20:06 [RateCDR] => 1 ) [2025-03-03 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:20:06' and `end` < '2025-03-03 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598424', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 12:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 12:20:09] Production.INFO: ProcessCDR(1,14598424,1,1,2) [2025-03-03 12:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598424,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598424,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:20:09] Production.INFO: ==17529== Releasing lock... [2025-03-03 12:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 12:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 12:20:14] Production.ERROR: CronJobId end10 [2025-03-03 12:20:14] Production.INFO: ==17523== Releasing lock... [2025-03-03 12:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:20:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:20:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:20:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:20:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:20:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:20:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:20:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:20:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:20:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:20:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:20:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:20:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:20:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:20:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:20:17] Production.INFO: call_cost start [2025-03-03 12:20:17] Production.INFO: call_cost end [2025-03-03 12:20:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:20:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:20:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:20:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:20:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:20:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:20:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:20:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:20:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:20:18] Production.INFO: ==17519== Releasing lock... [2025-03-03 12:20:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:20:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:20:20] Production.INFO: count ==6187 [2025-03-03 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:20:06 - End Time 2025-03-03 12:20:06 [2025-03-03 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598425', 'tblTempUsageDetail_20' ) start [2025-03-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598425', 'tblTempUsageDetail_20' ) end [2025-03-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598425', 'tblTempVendorCDR_20' ) start [2025-03-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598425', 'tblTempVendorCDR_20' ) end [2025-03-03 12:20:23] Production.INFO: ProcessCDR(1,14598425,1,1,2) [2025-03-03 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598425', 'tblTempUsageDetail_20' ) start [2025-03-03 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598425', 'tblTempUsageDetail_20' ) end [2025-03-03 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:20:27] Production.INFO: ==17527== Releasing lock... [2025-03-03 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:20:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-03 17:21:01] Production.INFO: ==17590== Lock acquired, processing the job... [2025-03-03 17:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:21:01] Production.INFO: neon service started [2025-03-03 17:21:01] Production.INFO: neon service started [2025-03-03 17:21:01] Production.INFO: ==17590== Releasing lock... [2025-03-03 17:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:21:02] Production.INFO: ==17592== Lock acquired, processing the job... [2025-03-03 12:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:21:02] Production.INFO: ==17592== Releasing lock... [2025-03-03 12:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:21:02] Production.INFO: ==17594== Lock acquired, processing the job... [2025-03-03 17:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:21:02] Production.INFO: ==17594== Releasing lock... [2025-03-03 17:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:21:03] Production.INFO: ==17598== Lock acquired, processing the job... [2025-03-03 12:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:21:03] Production.INFO: ==17596== Lock acquired, processing the job... [2025-03-03 12:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:21:03] Production.INFO: ==17606== Lock acquired, processing the job... [2025-03-03 12:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:21:03] Production.INFO: ==17602== Lock acquired, processing the job... [2025-03-03 12:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:21:03] Production.INFO: ==17600== Lock acquired, processing the job... [2025-03-03 12:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:21:03] Production.INFO: Account Balance Start. [2025-03-03 12:21:03] Production.INFO: CreateAllLog Start [2025-03-03 12:21:03] Production.INFO: ==17604== Lock acquired, processing the job... [2025-03-03 12:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:21:03] Production.INFO: 117 [2025-03-03 12:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:21:03] Production.INFO: count ==13 [2025-03-03 12:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:21:03] Production.INFO: count ==21 [2025-03-03 12:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598429') start [2025-03-03 12:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: ==17598== Releasing lock... [2025-03-03 12:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598429') end [2025-03-03 12:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:21:04] Production.INFO: 1 [2025-03-03 12:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: ==17606== Releasing lock... [2025-03-03 12:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:21:04] Production.ERROR: done [2025-03-03 12:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.ERROR: done [2025-03-03 12:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:21:04] Production.INFO: Total Charge 0 [2025-03-03 12:21:04] Production.INFO: CreateAllLog End [2025-03-03 12:21:05] Production.INFO: Account Balance End. [2025-03-03 12:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:21:05] Production.INFO: ==17602== Releasing lock... [2025-03-03 12:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:21:05 [end_date_ymd] => 2025-03-03 12:21:05 [RateCDR] => 1 ) [2025-03-03 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:21:05' and `end` < '2025-03-03 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:21:13] Production.ERROR: CronJobId end10 [2025-03-03 12:21:13] Production.INFO: ==17600== Releasing lock... [2025-03-03 12:21:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:21:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:21:14] Production.INFO: call_cost start [2025-03-03 12:21:14] Production.INFO: call_cost end [2025-03-03 12:21:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:21:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:21:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:21:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:21:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:21:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:21:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:21:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:21:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:21:15] Production.INFO: ==17596== Releasing lock... [2025-03-03 12:21:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:21:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:21:18] Production.INFO: count ==6213 [2025-03-03 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:21:05 - End Time 2025-03-03 12:21:05 [2025-03-03 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598430', 'tblTempUsageDetail_20' ) start [2025-03-03 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598430', 'tblTempUsageDetail_20' ) end [2025-03-03 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598430', 'tblTempVendorCDR_20' ) start [2025-03-03 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598430', 'tblTempVendorCDR_20' ) end [2025-03-03 12:21:21] Production.INFO: ProcessCDR(1,14598430,1,1,2) [2025-03-03 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598430', 'tblTempUsageDetail_20' ) start [2025-03-03 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598430', 'tblTempUsageDetail_20' ) end [2025-03-03 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:21:27] Production.INFO: ==17604== Releasing lock... [2025-03-03 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:21:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-03 17:22:01] Production.INFO: ==17660== Lock acquired, processing the job... [2025-03-03 17:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:22:01] Production.INFO: neon service started [2025-03-03 17:22:01] Production.INFO: neon service started [2025-03-03 17:22:01] Production.INFO: ==17660== Releasing lock... [2025-03-03 17:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:22:02] Production.INFO: ==17662== Lock acquired, processing the job... [2025-03-03 12:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:22:02] Production.INFO: ==17664== Lock acquired, processing the job... [2025-03-03 17:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:22:02] Production.INFO: ==17664== Releasing lock... [2025-03-03 17:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:22:02] Production.INFO: ==17662== Releasing lock... [2025-03-03 12:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:22:03] Production.INFO: ==17669== Lock acquired, processing the job... [2025-03-03 12:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:22:03] Production.INFO: ==17671== Lock acquired, processing the job... [2025-03-03 12:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:22:03] Production.INFO: ==17673== Lock acquired, processing the job... [2025-03-03 12:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:22:03] Production.INFO: Account Balance Start. [2025-03-03 12:22:03] Production.INFO: CreateAllLog Start [2025-03-03 12:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:22:03] Production.INFO: 117 [2025-03-03 12:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:03] Production.INFO: ==17667== Lock acquired, processing the job... [2025-03-03 12:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:03] Production.INFO: ==17677== Lock acquired, processing the job... [2025-03-03 12:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:22:03] Production.INFO: ==17669== Releasing lock... [2025-03-03 12:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:22:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:22:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:03] Production.INFO: ==17675== Lock acquired, processing the job... [2025-03-03 12:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:22:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:22:03] Production.INFO: count ==13 [2025-03-03 12:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:22:03] Production.INFO: count ==21 [2025-03-03 12:22:03] Production.INFO: Date 2025-02-14 [2025-03-03 12:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598434') start [2025-03-03 12:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598434') end [2025-03-03 12:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:22:04] Production.INFO: 1 [2025-03-03 12:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: ==17677== Releasing lock... [2025-03-03 12:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.ERROR: done [2025-03-03 12:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.ERROR: done [2025-03-03 12:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:22:04] Production.INFO: Total Charge 0 [2025-03-03 12:22:05] Production.INFO: CreateAllLog End [2025-03-03 12:22:05] Production.INFO: Account Balance End. [2025-03-03 12:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:22:05] Production.INFO: ==17673== Releasing lock... [2025-03-03 12:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:22:05 [end_date_ymd] => 2025-03-03 12:22:05 [RateCDR] => 1 ) [2025-03-03 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:22:05' and `end` < '2025-03-03 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:22:12] Production.ERROR: CronJobId end10 [2025-03-03 12:22:12] Production.INFO: ==17671== Releasing lock... [2025-03-03 12:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:22:16] Production.INFO: call_cost start [2025-03-03 12:22:16] Production.INFO: call_cost end [2025-03-03 12:22:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:22:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:22:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:22:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:22:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:22:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:22:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:22:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:22:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:22:17] Production.INFO: ==17667== Releasing lock... [2025-03-03 12:22:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:22:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:22:19] Production.INFO: count ==6225 [2025-03-03 12:22:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:22:05 - End Time 2025-03-03 12:22:05 [2025-03-03 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598435', 'tblTempUsageDetail_20' ) start [2025-03-03 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598435', 'tblTempUsageDetail_20' ) end [2025-03-03 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598435', 'tblTempVendorCDR_20' ) start [2025-03-03 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598435', 'tblTempVendorCDR_20' ) end [2025-03-03 12:22:22] Production.INFO: ProcessCDR(1,14598435,1,1,2) [2025-03-03 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598435', 'tblTempUsageDetail_20' ) start [2025-03-03 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598435', 'tblTempUsageDetail_20' ) end [2025-03-03 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:22:27] Production.INFO: ==17675== Releasing lock... [2025-03-03 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:22:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-03 17:23:01] Production.INFO: ==17733== Lock acquired, processing the job... [2025-03-03 17:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:23:01] Production.INFO: neon service started [2025-03-03 17:23:02] Production.INFO: neon service started [2025-03-03 17:23:02] Production.INFO: ==17733== Releasing lock... [2025-03-03 17:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:23:02] Production.INFO: ==17735== Lock acquired, processing the job... [2025-03-03 12:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:23:02] Production.INFO: ==17737== Lock acquired, processing the job... [2025-03-03 17:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:23:02] Production.INFO: ==17737== Releasing lock... [2025-03-03 17:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:23:02] Production.INFO: ==17735== Releasing lock... [2025-03-03 12:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:23:03] Production.INFO: ==17740== Lock acquired, processing the job... [2025-03-03 12:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:23:03] Production.INFO: ==17748== Lock acquired, processing the job... [2025-03-03 12:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:23:03] Production.INFO: ==17742== Lock acquired, processing the job... [2025-03-03 12:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:23:03] Production.INFO: ==17744== Lock acquired, processing the job... [2025-03-03 12:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:23:03] Production.INFO: ==17746== Lock acquired, processing the job... [2025-03-03 12:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:23:03] Production.INFO: ==17750== Lock acquired, processing the job... [2025-03-03 12:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:23:04] Production.INFO: Account Balance Start. [2025-03-03 12:23:04] Production.INFO: CreateAllLog Start [2025-03-03 12:23:04] Production.INFO: 117 [2025-03-03 12:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: count ==13 [2025-03-03 12:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:23:04] Production.INFO: count ==21 [2025-03-03 12:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598439') start [2025-03-03 12:23:04] Production.ERROR: done [2025-03-03 12:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:23:04] Production.INFO: ==17742== Releasing lock... [2025-03-03 12:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598439') end [2025-03-03 12:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:23:04] Production.INFO: 1 [2025-03-03 12:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:23:04] Production.ERROR: done [2025-03-03 12:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: ==17750== Releasing lock... [2025-03-03 12:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:23:05 [end_date_ymd] => 2025-03-03 12:23:05 [RateCDR] => 1 ) [2025-03-03 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:23:05' and `end` < '2025-03-03 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:23:05] Production.INFO: Total Charge 0 [2025-03-03 12:23:05] Production.INFO: CreateAllLog End [2025-03-03 12:23:05] Production.INFO: Account Balance End. [2025-03-03 12:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:23:05] Production.INFO: ==17746== Releasing lock... [2025-03-03 12:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:23:13] Production.ERROR: CronJobId end10 [2025-03-03 12:23:13] Production.INFO: ==17744== Releasing lock... [2025-03-03 12:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:23:14] Production.INFO: call_cost start [2025-03-03 12:23:14] Production.INFO: call_cost end [2025-03-03 12:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:23:15] Production.INFO: ==17740== Releasing lock... [2025-03-03 12:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:23:18] Production.INFO: count ==6227 [2025-03-03 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:23:05 - End Time 2025-03-03 12:23:05 [2025-03-03 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598440', 'tblTempUsageDetail_20' ) start [2025-03-03 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598440', 'tblTempUsageDetail_20' ) end [2025-03-03 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598440', 'tblTempVendorCDR_20' ) start [2025-03-03 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598440', 'tblTempVendorCDR_20' ) end [2025-03-03 12:23:21] Production.INFO: ProcessCDR(1,14598440,1,1,2) [2025-03-03 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598440', 'tblTempUsageDetail_20' ) start [2025-03-03 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598440', 'tblTempUsageDetail_20' ) end [2025-03-03 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:23:26] Production.INFO: ==17748== Releasing lock... [2025-03-03 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:23:26] Production.INFO: 74.75 MB #Memory Used# [2025-03-03 17:24:01] Production.INFO: ==17805== Lock acquired, processing the job... [2025-03-03 17:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:24:01] Production.INFO: neon service started [2025-03-03 17:24:01] Production.INFO: neon service started [2025-03-03 17:24:01] Production.INFO: ==17805== Releasing lock... [2025-03-03 17:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:24:02] Production.INFO: ==17807== Lock acquired, processing the job... [2025-03-03 12:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:24:02] Production.INFO: ==17809== Lock acquired, processing the job... [2025-03-03 17:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:24:02] Production.INFO: ==17809== Releasing lock... [2025-03-03 17:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:24:02] Production.INFO: ==17807== Releasing lock... [2025-03-03 12:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:24:03] Production.INFO: ==17812== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:24:03] Production.INFO: ==17816== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:24:03] Production.INFO: ==17818== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:24:03] Production.INFO: ==17814== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:24:03] Production.INFO: Account Balance Start. [2025-03-03 12:24:03] Production.INFO: CreateAllLog Start [2025-03-03 12:24:03] Production.INFO: 117 [2025-03-03 12:24:03] Production.INFO: ==17820== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:24:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:24:03] Production.INFO: ==17822== Lock acquired, processing the job... [2025-03-03 12:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: ==17814== Releasing lock... [2025-03-03 12:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: count ==13 [2025-03-03 12:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:24:04] Production.INFO: count ==21 [2025-03-03 12:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598444') start [2025-03-03 12:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.ERROR: done [2025-03-03 12:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598444') end [2025-03-03 12:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:24:04] Production.INFO: 1 [2025-03-03 12:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: ==17822== Releasing lock... [2025-03-03 12:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.ERROR: done [2025-03-03 12:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:24:04] Production.INFO: Total Charge 0 [2025-03-03 12:24:04] Production.INFO: CreateAllLog End [2025-03-03 12:24:05] Production.INFO: Account Balance End. [2025-03-03 12:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:24:05] Production.INFO: ==17818== Releasing lock... [2025-03-03 12:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:24:06 [end_date_ymd] => 2025-03-03 12:24:06 [RateCDR] => 1 ) [2025-03-03 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:24:06' and `end` < '2025-03-03 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:24:16] Production.ERROR: CronJobId end10 [2025-03-03 12:24:16] Production.INFO: ==17816== Releasing lock... [2025-03-03 12:24:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:24:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:24:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:24:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:24:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:24:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:24:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:24:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:24:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:24:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:24:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:24:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:24:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:24:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:24:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:24:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:24:18] Production.INFO: call_cost start [2025-03-03 12:24:18] Production.INFO: call_cost end [2025-03-03 12:24:19] Production.INFO: count ==6224 [2025-03-03 12:24:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:24:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:24:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:24:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:24:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:24:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:24:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:24:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:24:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:24:19] Production.INFO: ==17812== Releasing lock... [2025-03-03 12:24:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:24:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:24:24] Production.ERROR: pbx CDR StartTime 2025-03-03 09:24:06 - End Time 2025-03-03 12:24:06 [2025-03-03 12:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598445', 'tblTempUsageDetail_20' ) start [2025-03-03 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598445', 'tblTempUsageDetail_20' ) end [2025-03-03 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598445', 'tblTempVendorCDR_20' ) start [2025-03-03 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598445', 'tblTempVendorCDR_20' ) end [2025-03-03 12:24:24] Production.INFO: ProcessCDR(1,14598445,1,1,2) [2025-03-03 12:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598445', 'tblTempUsageDetail_20' ) start [2025-03-03 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598445', 'tblTempUsageDetail_20' ) end [2025-03-03 12:24:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:24:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:24:29] Production.INFO: ==17820== Releasing lock... [2025-03-03 12:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:24:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-03 17:25:02] Production.INFO: ==17875== Lock acquired, processing the job... [2025-03-03 17:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:25:02] Production.INFO: neon service started [2025-03-03 17:25:02] Production.INFO: neon service started [2025-03-03 17:25:02] Production.INFO: ==17875== Releasing lock... [2025-03-03 17:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:25:02] Production.INFO: ==17877== Lock acquired, processing the job... [2025-03-03 12:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:25:02] Production.INFO: ==17879== Lock acquired, processing the job... [2025-03-03 17:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:25:02] Production.INFO: ==17877== Releasing lock... [2025-03-03 12:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:25:02] Production.INFO: ==17879== Releasing lock... [2025-03-03 17:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:25:03] Production.INFO: ==17890== Lock acquired, processing the job... [2025-03-03 12:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:25:03] Production.INFO: ==17892== Lock acquired, processing the job... [2025-03-03 12:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:25:03] Production.INFO: ==17881== Lock acquired, processing the job... [2025-03-03 12:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:25:03] Production.INFO: ==17883== Lock acquired, processing the job... [2025-03-03 12:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:25:03] Production.INFO: ==17887== Lock acquired, processing the job... [2025-03-03 12:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:25:03] Production.INFO: ==17885== Lock acquired, processing the job... [2025-03-03 12:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:25:04] Production.INFO: count ==13 [2025-03-03 12:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:25:04] Production.INFO: count ==21 [2025-03-03 12:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598446') start [2025-03-03 12:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:25:04] Production.INFO: Account Balance Start. [2025-03-03 12:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:25:04] Production.INFO: CreateAllLog Start [2025-03-03 12:25:04] Production.INFO: 117 [2025-03-03 12:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598446') end [2025-03-03 12:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:25:04] Production.INFO: 1 [2025-03-03 12:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:25:04] Production.INFO: ==17892== Releasing lock... [2025-03-03 12:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.ERROR: done [2025-03-03 12:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: ==17883== Releasing lock... [2025-03-03 12:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:25:04] Production.ERROR: done [2025-03-03 12:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:25:05] Production.INFO: Total Charge 0 [2025-03-03 12:25:05] Production.INFO: CreateAllLog End [2025-03-03 12:25:05] Production.INFO: Account Balance End. [2025-03-03 12:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:25:05] Production.INFO: ==17887== Releasing lock... [2025-03-03 12:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:25:05 [end_date_ymd] => 2025-03-03 12:25:05 [RateCDR] => 1 ) [2025-03-03 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:25:05' and `end` < '2025-03-03 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:25:13] Production.ERROR: CronJobId end10 [2025-03-03 12:25:13] Production.INFO: ==17885== Releasing lock... [2025-03-03 12:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:25:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:25:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:25:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:25:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:25:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:25:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:25:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:25:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:25:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:25:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:25:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:25:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:25:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:25:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:25:16] Production.INFO: call_cost start [2025-03-03 12:25:16] Production.INFO: call_cost end [2025-03-03 12:25:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:25:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:25:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:25:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:25:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:25:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:25:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:25:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:25:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:25:17] Production.INFO: ==17881== Releasing lock... [2025-03-03 12:25:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:25:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:25:18] Production.INFO: count ==6229 [2025-03-03 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:25:05 - End Time 2025-03-03 12:25:05 [2025-03-03 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598450', 'tblTempUsageDetail_20' ) start [2025-03-03 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598450', 'tblTempUsageDetail_20' ) end [2025-03-03 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598450', 'tblTempVendorCDR_20' ) start [2025-03-03 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598450', 'tblTempVendorCDR_20' ) end [2025-03-03 12:25:21] Production.INFO: ProcessCDR(1,14598450,1,1,2) [2025-03-03 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598450', 'tblTempUsageDetail_20' ) start [2025-03-03 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598450', 'tblTempUsageDetail_20' ) end [2025-03-03 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:25:27] Production.INFO: ==17890== Releasing lock... [2025-03-03 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:25:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-03 17:26:01] Production.INFO: ==17946== Lock acquired, processing the job... [2025-03-03 17:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:26:01] Production.INFO: neon service started [2025-03-03 17:26:01] Production.INFO: neon service started [2025-03-03 17:26:01] Production.INFO: ==17946== Releasing lock... [2025-03-03 17:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:26:02] Production.INFO: ==17950== Lock acquired, processing the job... [2025-03-03 17:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:26:02] Production.INFO: ==17950== Releasing lock... [2025-03-03 17:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:26:02] Production.INFO: ==17948== Lock acquired, processing the job... [2025-03-03 12:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:26:03] Production.INFO: ==17948== Releasing lock... [2025-03-03 12:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:26:03] Production.INFO: ==17961== Lock acquired, processing the job... [2025-03-03 12:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:26:04] Production.INFO: ==17963== Lock acquired, processing the job... [2025-03-03 12:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:26:04] Production.INFO: ==17953== Lock acquired, processing the job... [2025-03-03 12:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:26:04] Production.INFO: ==17955== Lock acquired, processing the job... [2025-03-03 12:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:26:04] Production.INFO: ==17957== Lock acquired, processing the job... [2025-03-03 12:26:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:26:04] Production.INFO: ==17959== Lock acquired, processing the job... [2025-03-03 12:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:26:04] Production.INFO: count ==13 [2025-03-03 12:26:04] Production.INFO: Account Balance Start. [2025-03-03 12:26:04] Production.INFO: CreateAllLog Start [2025-03-03 12:26:04] Production.INFO: 117 [2025-03-03 12:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:26:04] Production.INFO: count ==21 [2025-03-03 12:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598451') start [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:04] Production.ERROR: done [2025-03-03 12:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598451') end [2025-03-03 12:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:26:04] Production.INFO: 1 [2025-03-03 12:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:04] Production.INFO: ==17963== Releasing lock... [2025-03-03 12:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:26:04] Production.ERROR: done [2025-03-03 12:26:04] Production.INFO: ==17955== Releasing lock... [2025-03-03 12:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:26:05 [end_date_ymd] => 2025-03-03 12:26:05 [RateCDR] => 1 ) [2025-03-03 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:26:05' and `end` < '2025-03-03 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:06] Production.INFO: Date 2025-03-01 [2025-03-03 12:26:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:06] Production.INFO: Date 2025-03-02 [2025-03-03 12:26:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:06] Production.INFO: Date 2025-03-03 [2025-03-03 12:26:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:26:06] Production.INFO: Total Charge 0 [2025-03-03 12:26:06] Production.INFO: CreateAllLog End [2025-03-03 12:26:06] Production.INFO: Account Balance End. [2025-03-03 12:26:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:26:06] Production.INFO: ==17959== Releasing lock... [2025-03-03 12:26:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:26:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:26:12] Production.ERROR: CronJobId end10 [2025-03-03 12:26:12] Production.INFO: ==17957== Releasing lock... [2025-03-03 12:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:26:15] Production.INFO: call_cost start [2025-03-03 12:26:15] Production.INFO: call_cost end [2025-03-03 12:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:26:16] Production.INFO: ==17953== Releasing lock... [2025-03-03 12:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:26:18] Production.INFO: count ==6248 [2025-03-03 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:26:05 - End Time 2025-03-03 12:26:05 [2025-03-03 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598455', 'tblTempUsageDetail_20' ) start [2025-03-03 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598455', 'tblTempUsageDetail_20' ) end [2025-03-03 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598455', 'tblTempVendorCDR_20' ) start [2025-03-03 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598455', 'tblTempVendorCDR_20' ) end [2025-03-03 12:26:22] Production.INFO: ProcessCDR(1,14598455,1,1,2) [2025-03-03 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598455', 'tblTempUsageDetail_20' ) start [2025-03-03 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598455', 'tblTempUsageDetail_20' ) end [2025-03-03 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:26:26] Production.INFO: ==17961== Releasing lock... [2025-03-03 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:26:26] Production.INFO: 74.75 MB #Memory Used# [2025-03-03 17:27:01] Production.INFO: ==18017== Lock acquired, processing the job... [2025-03-03 17:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:27:01] Production.INFO: neon service started [2025-03-03 17:27:01] Production.INFO: neon service started [2025-03-03 17:27:01] Production.INFO: ==18017== Releasing lock... [2025-03-03 17:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:27:01] Production.INFO: ==18019== Lock acquired, processing the job... [2025-03-03 12:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:27:02] Production.INFO: ==18021== Lock acquired, processing the job... [2025-03-03 17:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:27:02] Production.INFO: ==18019== Releasing lock... [2025-03-03 12:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:27:02] Production.INFO: ==18021== Releasing lock... [2025-03-03 17:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:27:03] Production.INFO: ==18024== Lock acquired, processing the job... [2025-03-03 12:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:27:03] Production.INFO: ==18026== Lock acquired, processing the job... [2025-03-03 12:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:27:03] Production.INFO: ==18032== Lock acquired, processing the job... [2025-03-03 12:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:27:03] Production.INFO: ==18028== Lock acquired, processing the job... [2025-03-03 12:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:27:03] Production.INFO: ==18030== Lock acquired, processing the job... [2025-03-03 12:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:27:03] Production.INFO: ==18034== Lock acquired, processing the job... [2025-03-03 12:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:27:03] Production.INFO: Account Balance Start. [2025-03-03 12:27:03] Production.INFO: CreateAllLog Start [2025-03-03 12:27:03] Production.INFO: 117 [2025-03-03 12:27:03] Production.INFO: ==18026== Releasing lock... [2025-03-03 12:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.INFO: count ==13 [2025-03-03 12:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:27:03] Production.INFO: count ==21 [2025-03-03 12:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598458') start [2025-03-03 12:27:03] Production.ERROR: done [2025-03-03 12:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598458') end [2025-03-03 12:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:27:03] Production.INFO: 1 [2025-03-03 12:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.INFO: ==18034== Releasing lock... [2025-03-03 12:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:27:03] Production.ERROR: done [2025-03-03 12:27:03] Production.INFO: Date 2025-02-14 [2025-03-03 12:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:03] Production.INFO: Date 2025-02-15 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:27:04] Production.INFO: Total Charge 0 [2025-03-03 12:27:04] Production.INFO: CreateAllLog End [2025-03-03 12:27:04] Production.INFO: Account Balance End. [2025-03-03 12:27:04] Production.ERROR: CronJobId end 12 [2025-03-03 12:27:04] Production.INFO: ==18030== Releasing lock... [2025-03-03 12:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:27:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:27:05 [end_date_ymd] => 2025-03-03 12:27:05 [RateCDR] => 1 ) [2025-03-03 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:27:05' and `end` < '2025-03-03 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:27:12] Production.ERROR: CronJobId end10 [2025-03-03 12:27:12] Production.INFO: ==18028== Releasing lock... [2025-03-03 12:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:27:14] Production.INFO: call_cost start [2025-03-03 12:27:14] Production.INFO: call_cost end [2025-03-03 12:27:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:27:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:27:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:27:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:27:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:27:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:27:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:27:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:27:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:27:15] Production.INFO: ==18024== Releasing lock... [2025-03-03 12:27:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:27:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:27:18] Production.INFO: count ==6251 [2025-03-03 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:27:05 - End Time 2025-03-03 12:27:05 [2025-03-03 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598460', 'tblTempUsageDetail_20' ) start [2025-03-03 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598460', 'tblTempUsageDetail_20' ) end [2025-03-03 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598460', 'tblTempVendorCDR_20' ) start [2025-03-03 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598460', 'tblTempVendorCDR_20' ) end [2025-03-03 12:27:21] Production.INFO: ProcessCDR(1,14598460,1,1,2) [2025-03-03 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598460', 'tblTempUsageDetail_20' ) start [2025-03-03 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598460', 'tblTempUsageDetail_20' ) end [2025-03-03 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:27:26] Production.INFO: ==18032== Releasing lock... [2025-03-03 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:27:26] Production.INFO: 74.75 MB #Memory Used# [2025-03-03 17:28:01] Production.INFO: ==18131== Lock acquired, processing the job... [2025-03-03 17:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:28:01] Production.INFO: neon service started [2025-03-03 17:28:01] Production.INFO: neon service started [2025-03-03 17:28:01] Production.INFO: ==18131== Releasing lock... [2025-03-03 17:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:28:02] Production.INFO: ==18135== Lock acquired, processing the job... [2025-03-03 17:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:28:02] Production.INFO: ==18135== Releasing lock... [2025-03-03 17:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:28:02] Production.INFO: ==18133== Lock acquired, processing the job... [2025-03-03 12:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:28:02] Production.INFO: ==18133== Releasing lock... [2025-03-03 12:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:28:03] Production.INFO: ==18144== Lock acquired, processing the job... [2025-03-03 12:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:28:03] Production.INFO: ==18148== Lock acquired, processing the job... [2025-03-03 12:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:28:03] Production.INFO: ==18138== Lock acquired, processing the job... [2025-03-03 12:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:28:03] Production.INFO: Account Balance Start. [2025-03-03 12:28:03] Production.INFO: CreateAllLog Start [2025-03-03 12:28:03] Production.INFO: 117 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: ==18140== Lock acquired, processing the job... [2025-03-03 12:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:28:04] Production.INFO: count ==13 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:28:04] Production.INFO: count ==21 [2025-03-03 12:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598461') start [2025-03-03 12:28:04] Production.INFO: ==18142== Lock acquired, processing the job... [2025-03-03 12:28:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: ==18146== Lock acquired, processing the job... [2025-03-03 12:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598461') end [2025-03-03 12:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:28:04] Production.INFO: 1 [2025-03-03 12:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:28:04] Production.INFO: ==18148== Releasing lock... [2025-03-03 12:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: ==18140== Releasing lock... [2025-03-03 12:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.ERROR: done [2025-03-03 12:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:04] Production.ERROR: done [2025-03-03 12:28:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:28:05] Production.INFO: Total Charge 0 [2025-03-03 12:28:05] Production.INFO: CreateAllLog End [2025-03-03 12:28:05] Production.INFO: Account Balance End. [2025-03-03 12:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:28:05] Production.INFO: ==18144== Releasing lock... [2025-03-03 12:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:28:06 [end_date_ymd] => 2025-03-03 12:28:06 [RateCDR] => 1 ) [2025-03-03 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:28:06' and `end` < '2025-03-03 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:28:13] Production.ERROR: CronJobId end10 [2025-03-03 12:28:13] Production.INFO: ==18142== Releasing lock... [2025-03-03 12:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:28:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:28:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:28:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:28:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:28:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:28:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:28:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:28:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:28:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:28:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:28:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:28:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:28:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:28:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:28:16] Production.INFO: call_cost start [2025-03-03 12:28:16] Production.INFO: call_cost end [2025-03-03 12:28:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:28:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:28:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:28:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:28:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:28:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:28:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:28:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:28:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:28:17] Production.INFO: ==18138== Releasing lock... [2025-03-03 12:28:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:28:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:28:19] Production.INFO: count ==6281 [2025-03-03 12:28:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:28:06 - End Time 2025-03-03 12:28:06 [2025-03-03 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598465', 'tblTempUsageDetail_20' ) start [2025-03-03 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598465', 'tblTempUsageDetail_20' ) end [2025-03-03 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598465', 'tblTempVendorCDR_20' ) start [2025-03-03 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598465', 'tblTempVendorCDR_20' ) end [2025-03-03 12:28:22] Production.INFO: ProcessCDR(1,14598465,1,1,2) [2025-03-03 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598465', 'tblTempUsageDetail_20' ) start [2025-03-03 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598465', 'tblTempUsageDetail_20' ) end [2025-03-03 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:28:28] Production.INFO: ==18146== Releasing lock... [2025-03-03 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:28:28] Production.INFO: 75 MB #Memory Used# [2025-03-03 17:29:01] Production.INFO: ==18201== Lock acquired, processing the job... [2025-03-03 17:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:29:01] Production.INFO: neon service started [2025-03-03 17:29:01] Production.INFO: neon service started [2025-03-03 17:29:01] Production.INFO: ==18201== Releasing lock... [2025-03-03 17:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:29:01] Production.INFO: ==18203== Lock acquired, processing the job... [2025-03-03 12:29:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:29:02] Production.INFO: ==18203== Releasing lock... [2025-03-03 12:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:29:02] Production.INFO: ==18205== Lock acquired, processing the job... [2025-03-03 17:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:29:02] Production.INFO: ==18205== Releasing lock... [2025-03-03 17:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:29:02] Production.INFO: ==18211== Lock acquired, processing the job... [2025-03-03 12:29:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:29:02] Production.INFO: ==18219== Lock acquired, processing the job... [2025-03-03 12:29:02] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:29:03] Production.INFO: count ==13 [2025-03-03 12:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:29:03] Production.INFO: ==18208== Lock acquired, processing the job... [2025-03-03 12:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:29:03] Production.INFO: count ==21 [2025-03-03 12:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598466') start [2025-03-03 12:29:03] Production.INFO: ==18217== Lock acquired, processing the job... [2025-03-03 12:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:29:03] Production.INFO: ==18213== Lock acquired, processing the job... [2025-03-03 12:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598466') end [2025-03-03 12:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:29:03] Production.INFO: 1 [2025-03-03 12:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:29:03] Production.INFO: ==18215== Lock acquired, processing the job... [2025-03-03 12:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:29:03] Production.INFO: ==18211== Releasing lock... [2025-03-03 12:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:29:03] Production.INFO: ==18219== Releasing lock... [2025-03-03 12:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:29:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:29:03] Production.INFO: Account Balance Start. [2025-03-03 12:29:03] Production.INFO: CreateAllLog Start [2025-03-03 12:29:03] Production.INFO: 117 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.ERROR: done [2025-03-03 12:29:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-16 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:03] Production.INFO: Date 2025-02-17 [2025-03-03 12:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.ERROR: done [2025-03-03 12:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:29:04] Production.INFO: Total Charge 0 [2025-03-03 12:29:04] Production.INFO: CreateAllLog End [2025-03-03 12:29:04] Production.INFO: Account Balance End. [2025-03-03 12:29:04] Production.ERROR: CronJobId end 12 [2025-03-03 12:29:04] Production.INFO: ==18215== Releasing lock... [2025-03-03 12:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:29:05 [end_date_ymd] => 2025-03-03 12:29:05 [RateCDR] => 1 ) [2025-03-03 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:29:05' and `end` < '2025-03-03 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:29:13] Production.ERROR: CronJobId end10 [2025-03-03 12:29:13] Production.INFO: ==18213== Releasing lock... [2025-03-03 12:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:29:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:29:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:29:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:29:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:29:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:29:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:29:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:29:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:29:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:29:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:29:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:29:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:29:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:29:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:29:15] Production.INFO: call_cost start [2025-03-03 12:29:15] Production.INFO: call_cost end [2025-03-03 12:29:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:29:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:29:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:29:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:29:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:29:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:29:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:29:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:29:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:29:16] Production.INFO: ==18208== Releasing lock... [2025-03-03 12:29:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:29:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:29:19] Production.INFO: count ==6296 [2025-03-03 12:29:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:29:05 - End Time 2025-03-03 12:29:05 [2025-03-03 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598470', 'tblTempUsageDetail_20' ) start [2025-03-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598470', 'tblTempUsageDetail_20' ) end [2025-03-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598470', 'tblTempVendorCDR_20' ) start [2025-03-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598470', 'tblTempVendorCDR_20' ) end [2025-03-03 12:29:22] Production.INFO: ProcessCDR(1,14598470,1,1,2) [2025-03-03 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598470', 'tblTempUsageDetail_20' ) start [2025-03-03 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598470', 'tblTempUsageDetail_20' ) end [2025-03-03 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:29:27] Production.INFO: ==18217== Releasing lock... [2025-03-03 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:29:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-03 17:30:01] Production.INFO: ==18274== Lock acquired, processing the job... [2025-03-03 17:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:30:01] Production.INFO: neon service started [2025-03-03 17:30:01] Production.INFO: neon service started [2025-03-03 17:30:01] Production.INFO: ==18274== Releasing lock... [2025-03-03 17:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:30:02] Production.INFO: ==18276== Lock acquired, processing the job... [2025-03-03 12:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:30:02] Production.INFO: ==18278== Lock acquired, processing the job... [2025-03-03 17:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:30:02] Production.INFO: ==18278== Releasing lock... [2025-03-03 17:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:30:03] Production.INFO: ==18276== Releasing lock... [2025-03-03 12:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:30:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:30:04] Production.INFO: ==18281== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 12:30:04] Production.INFO: ==18283== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 12:30:04] Production.INFO: ==18285== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 12:30:04] Production.INFO: ==18281== Releasing lock... [2025-03-03 12:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 12:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 12:30:04] Production.INFO: ==18289== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:30:04] Production.INFO: ==18287== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:30:04] Production.INFO: Account Balance Start. [2025-03-03 12:30:04] Production.INFO: CreateAllLog Start [2025-03-03 12:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:30:04] Production.INFO: 117 [2025-03-03 12:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.INFO: ==18291== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:30:04] Production.INFO: ==18295== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.INFO: ==18293== Lock acquired, processing the job... [2025-03-03 12:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 12:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.INFO: ==18285== Releasing lock... [2025-03-03 12:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:30:04] Production.INFO: count ==13 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:30:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:30:05] Production.INFO: count ==21 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598474') start [2025-03-03 12:30:05] Production.ERROR: done [2025-03-03 12:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.ERROR: done [2025-03-03 12:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598474') end [2025-03-03 12:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:30:05] Production.INFO: 1 [2025-03-03 12:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.ERROR: done [2025-03-03 12:30:05] Production.INFO: ==18295== Releasing lock... [2025-03-03 12:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 12:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598476', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 12:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:30:05] Production.INFO: Total Charge 0 [2025-03-03 12:30:05] Production.INFO: CreateAllLog End [2025-03-03 12:30:06] Production.INFO: Account Balance End. [2025-03-03 12:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:30:06] Production.INFO: ==18289== Releasing lock... [2025-03-03 12:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:30:06 [end_date_ymd] => 2025-03-03 12:30:06 [RateCDR] => 1 ) [2025-03-03 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:30:06' and `end` < '2025-03-03 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598476', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 12:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 12:30:09] Production.INFO: ProcessCDR(1,14598476,1,1,2) [2025-03-03 12:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598476,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598476,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:30:09] Production.INFO: ==18293== Releasing lock... [2025-03-03 12:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 12:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 12:30:15] Production.ERROR: CronJobId end10 [2025-03-03 12:30:15] Production.INFO: ==18287== Releasing lock... [2025-03-03 12:30:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:30:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:30:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:30:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:30:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:30:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:30:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:30:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:30:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:30:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:30:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:30:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:30:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:30:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:30:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:30:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:30:17] Production.INFO: call_cost start [2025-03-03 12:30:17] Production.INFO: call_cost end [2025-03-03 12:30:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:30:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:30:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:30:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:30:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:30:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:30:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:30:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:30:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:30:18] Production.INFO: ==18283== Releasing lock... [2025-03-03 12:30:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:30:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:30:20] Production.INFO: count ==6310 [2025-03-03 12:30:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:30:06 - End Time 2025-03-03 12:30:06 [2025-03-03 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598475', 'tblTempUsageDetail_20' ) start [2025-03-03 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598475', 'tblTempUsageDetail_20' ) end [2025-03-03 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598475', 'tblTempVendorCDR_20' ) start [2025-03-03 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598475', 'tblTempVendorCDR_20' ) end [2025-03-03 12:30:23] Production.INFO: ProcessCDR(1,14598475,1,1,2) [2025-03-03 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598475', 'tblTempUsageDetail_20' ) start [2025-03-03 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598475', 'tblTempUsageDetail_20' ) end [2025-03-03 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:30:28] Production.INFO: ==18291== Releasing lock... [2025-03-03 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:30:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-03 17:31:01] Production.INFO: ==18353== Lock acquired, processing the job... [2025-03-03 17:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:31:01] Production.INFO: neon service started [2025-03-03 17:31:01] Production.INFO: neon service started [2025-03-03 17:31:01] Production.INFO: ==18353== Releasing lock... [2025-03-03 17:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:31:01] Production.INFO: ==18355== Lock acquired, processing the job... [2025-03-03 12:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:31:02] Production.INFO: ==18355== Releasing lock... [2025-03-03 12:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:31:02] Production.INFO: ==18357== Lock acquired, processing the job... [2025-03-03 17:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:31:02] Production.INFO: ==18357== Releasing lock... [2025-03-03 17:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:31:03] Production.INFO: ==18364== Lock acquired, processing the job... [2025-03-03 12:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:31:03] Production.INFO: ==18368== Lock acquired, processing the job... [2025-03-03 12:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:31:03] Production.INFO: ==18360== Lock acquired, processing the job... [2025-03-03 12:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:31:03] Production.INFO: ==18362== Lock acquired, processing the job... [2025-03-03 12:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:31:03] Production.INFO: ==18366== Lock acquired, processing the job... [2025-03-03 12:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:31:03] Production.INFO: ==18370== Lock acquired, processing the job... [2025-03-03 12:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:31:03] Production.INFO: Account Balance Start. [2025-03-03 12:31:03] Production.INFO: CreateAllLog Start [2025-03-03 12:31:03] Production.INFO: 117 [2025-03-03 12:31:03] Production.INFO: count ==13 [2025-03-03 12:31:03] Production.ERROR: done [2025-03-03 12:31:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:31:03] Production.INFO: count ==21 [2025-03-03 12:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598477') start [2025-03-03 12:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:03] Production.ERROR: done [2025-03-03 12:31:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:03] Production.INFO: ==18362== Releasing lock... [2025-03-03 12:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:31:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:31:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598477') end [2025-03-03 12:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:31:03] Production.INFO: 1 [2025-03-03 12:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: ==18370== Releasing lock... [2025-03-03 12:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:31:04] Production.INFO: Total Charge 0 [2025-03-03 12:31:04] Production.INFO: CreateAllLog End [2025-03-03 12:31:04] Production.INFO: Account Balance End. [2025-03-03 12:31:04] Production.ERROR: CronJobId end 12 [2025-03-03 12:31:04] Production.INFO: ==18366== Releasing lock... [2025-03-03 12:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:31:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:31:05 [end_date_ymd] => 2025-03-03 12:31:05 [RateCDR] => 1 ) [2025-03-03 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:31:05' and `end` < '2025-03-03 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:31:12] Production.ERROR: CronJobId end10 [2025-03-03 12:31:12] Production.INFO: ==18364== Releasing lock... [2025-03-03 12:31:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:31:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:31:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:31:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:31:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:31:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:31:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:31:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:31:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:31:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:31:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:31:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:31:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:31:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:31:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:31:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:31:15] Production.INFO: call_cost start [2025-03-03 12:31:15] Production.INFO: call_cost end [2025-03-03 12:31:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:31:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:31:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:31:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:31:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:31:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:31:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:31:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:31:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:31:16] Production.INFO: ==18360== Releasing lock... [2025-03-03 12:31:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:31:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:31:18] Production.INFO: count ==6395 [2025-03-03 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:31:05 - End Time 2025-03-03 12:31:05 [2025-03-03 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598481', 'tblTempUsageDetail_20' ) start [2025-03-03 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598481', 'tblTempUsageDetail_20' ) end [2025-03-03 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598481', 'tblTempVendorCDR_20' ) start [2025-03-03 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598481', 'tblTempVendorCDR_20' ) end [2025-03-03 12:31:21] Production.INFO: ProcessCDR(1,14598481,1,1,2) [2025-03-03 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598481', 'tblTempUsageDetail_20' ) start [2025-03-03 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598481', 'tblTempUsageDetail_20' ) end [2025-03-03 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:31:27] Production.INFO: ==18368== Releasing lock... [2025-03-03 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:31:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 17:32:02] Production.INFO: ==18427== Lock acquired, processing the job... [2025-03-03 17:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:32:02] Production.INFO: neon service started [2025-03-03 17:32:02] Production.INFO: neon service started [2025-03-03 17:32:02] Production.INFO: ==18427== Releasing lock... [2025-03-03 17:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:32:02] Production.INFO: ==18429== Lock acquired, processing the job... [2025-03-03 12:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:32:02] Production.INFO: ==18429== Releasing lock... [2025-03-03 12:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:32:03] Production.INFO: ==18432== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:32:03] Production.INFO: ==18432== Releasing lock... [2025-03-03 17:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:32:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:32:03] Production.INFO: ==18440== Lock acquired, processing the job... [2025-03-03 12:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:32:03] Production.INFO: ==18442== Lock acquired, processing the job... [2025-03-03 12:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:32:03] Production.INFO: Account Balance Start. [2025-03-03 12:32:03] Production.INFO: CreateAllLog Start [2025-03-03 12:32:03] Production.INFO: 117 [2025-03-03 12:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:03] Production.INFO: ==18436== Lock acquired, processing the job... [2025-03-03 12:32:03] Production.INFO: ==18434== Lock acquired, processing the job... [2025-03-03 12:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:32:03] Production.INFO: ==18444== Lock acquired, processing the job... [2025-03-03 12:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:32:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: ==18438== Lock acquired, processing the job... [2025-03-03 12:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:32:04] Production.INFO: count ==13 [2025-03-03 12:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:32:04] Production.INFO: count ==21 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598484') start [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.ERROR: done [2025-03-03 12:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598484') end [2025-03-03 12:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:32:04] Production.INFO: 1 [2025-03-03 12:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: ==18444== Releasing lock... [2025-03-03 12:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.ERROR: done [2025-03-03 12:32:04] Production.INFO: ==18436== Releasing lock... [2025-03-03 12:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:32:05] Production.INFO: Total Charge 0 [2025-03-03 12:32:05] Production.INFO: CreateAllLog End [2025-03-03 12:32:05] Production.INFO: Account Balance End. [2025-03-03 12:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:32:05] Production.INFO: ==18440== Releasing lock... [2025-03-03 12:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:32:05 [end_date_ymd] => 2025-03-03 12:32:05 [RateCDR] => 1 ) [2025-03-03 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:32:05' and `end` < '2025-03-03 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:32:13] Production.ERROR: CronJobId end10 [2025-03-03 12:32:13] Production.INFO: ==18438== Releasing lock... [2025-03-03 12:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:32:15] Production.INFO: call_cost start [2025-03-03 12:32:15] Production.INFO: call_cost end [2025-03-03 12:32:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:32:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:32:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:32:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:32:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:32:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:32:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:32:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:32:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:32:16] Production.INFO: ==18434== Releasing lock... [2025-03-03 12:32:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:32:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:32:18] Production.INFO: count ==6394 [2025-03-03 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:32:05 - End Time 2025-03-03 12:32:05 [2025-03-03 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598486', 'tblTempUsageDetail_20' ) start [2025-03-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598486', 'tblTempUsageDetail_20' ) end [2025-03-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598486', 'tblTempVendorCDR_20' ) start [2025-03-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598486', 'tblTempVendorCDR_20' ) end [2025-03-03 12:32:21] Production.INFO: ProcessCDR(1,14598486,1,1,2) [2025-03-03 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598486', 'tblTempUsageDetail_20' ) start [2025-03-03 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598486', 'tblTempUsageDetail_20' ) end [2025-03-03 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:32:26] Production.INFO: ==18442== Releasing lock... [2025-03-03 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:32:26] Production.INFO: 76 MB #Memory Used# [2025-03-03 17:33:01] Production.INFO: ==18503== Lock acquired, processing the job... [2025-03-03 17:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:33:01] Production.INFO: neon service started [2025-03-03 17:33:01] Production.INFO: neon service started [2025-03-03 17:33:01] Production.INFO: ==18503== Releasing lock... [2025-03-03 17:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:33:02] Production.INFO: ==18505== Lock acquired, processing the job... [2025-03-03 12:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:33:02] Production.INFO: ==18507== Lock acquired, processing the job... [2025-03-03 17:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:33:02] Production.INFO: ==18507== Releasing lock... [2025-03-03 17:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:33:02] Production.INFO: ==18505== Releasing lock... [2025-03-03 12:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:33:03] Production.INFO: ==18510== Lock acquired, processing the job... [2025-03-03 12:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:33:03] Production.INFO: ==18516== Lock acquired, processing the job... [2025-03-03 12:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:33:03] Production.INFO: ==18520== Lock acquired, processing the job... [2025-03-03 12:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:33:03] Production.INFO: ==18512== Lock acquired, processing the job... [2025-03-03 12:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:33:03] Production.INFO: Account Balance Start. [2025-03-03 12:33:03] Production.INFO: CreateAllLog Start [2025-03-03 12:33:03] Production.INFO: 117 [2025-03-03 12:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.INFO: ==18514== Lock acquired, processing the job... [2025-03-03 12:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:33:03] Production.INFO: count ==13 [2025-03-03 12:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:33:03] Production.INFO: count ==21 [2025-03-03 12:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598489') start [2025-03-03 12:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.INFO: ==18518== Lock acquired, processing the job... [2025-03-03 12:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598489') end [2025-03-03 12:33:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:33:03] Production.INFO: 1 [2025-03-03 12:33:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.INFO: Date 2025-02-14 [2025-03-03 12:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:03] Production.INFO: ==18520== Releasing lock... [2025-03-03 12:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:33:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:33:03] Production.INFO: ==18512== Releasing lock... [2025-03-03 12:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:33:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.ERROR: done [2025-03-03 12:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.ERROR: done [2025-03-03 12:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:33:04] Production.INFO: Total Charge 0 [2025-03-03 12:33:04] Production.INFO: CreateAllLog End [2025-03-03 12:33:04] Production.INFO: Account Balance End. [2025-03-03 12:33:04] Production.ERROR: CronJobId end 12 [2025-03-03 12:33:04] Production.INFO: ==18516== Releasing lock... [2025-03-03 12:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:33:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:33:05 [end_date_ymd] => 2025-03-03 12:33:05 [RateCDR] => 1 ) [2025-03-03 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:33:05' and `end` < '2025-03-03 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:33:12] Production.ERROR: CronJobId end10 [2025-03-03 12:33:12] Production.INFO: ==18514== Releasing lock... [2025-03-03 12:33:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:33:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:33:15] Production.INFO: call_cost start [2025-03-03 12:33:15] Production.INFO: call_cost end [2025-03-03 12:33:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:33:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:33:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:33:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:33:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:33:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:33:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:33:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:33:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:33:16] Production.INFO: ==18510== Releasing lock... [2025-03-03 12:33:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:33:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:33:18] Production.INFO: count ==6397 [2025-03-03 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:33:05 - End Time 2025-03-03 12:33:05 [2025-03-03 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598491', 'tblTempUsageDetail_20' ) start [2025-03-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598491', 'tblTempUsageDetail_20' ) end [2025-03-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598491', 'tblTempVendorCDR_20' ) start [2025-03-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598491', 'tblTempVendorCDR_20' ) end [2025-03-03 12:33:22] Production.INFO: ProcessCDR(1,14598491,1,1,2) [2025-03-03 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598491', 'tblTempUsageDetail_20' ) start [2025-03-03 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598491', 'tblTempUsageDetail_20' ) end [2025-03-03 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:33:27] Production.INFO: ==18518== Releasing lock... [2025-03-03 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:33:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 17:34:02] Production.INFO: ==18573== Lock acquired, processing the job... [2025-03-03 17:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:34:02] Production.INFO: neon service started [2025-03-03 17:34:02] Production.INFO: neon service started [2025-03-03 17:34:02] Production.INFO: ==18573== Releasing lock... [2025-03-03 17:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:34:02] Production.INFO: ==18576== Lock acquired, processing the job... [2025-03-03 12:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:34:02] Production.INFO: ==18578== Lock acquired, processing the job... [2025-03-03 17:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:34:02] Production.INFO: ==18578== Releasing lock... [2025-03-03 17:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:34:02] Production.INFO: ==18576== Releasing lock... [2025-03-03 12:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:34:03] Production.INFO: ==18582== Lock acquired, processing the job... [2025-03-03 12:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:34:03] Production.INFO: ==18584== Lock acquired, processing the job... [2025-03-03 12:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:34:04] Production.INFO: ==18580== Lock acquired, processing the job... [2025-03-03 12:34:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:34:04] Production.INFO: ==18582== Releasing lock... [2025-03-03 12:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:34:04] Production.INFO: ==18590== Lock acquired, processing the job... [2025-03-03 12:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:34:04] Production.INFO: ==18586== Lock acquired, processing the job... [2025-03-03 12:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:34:04] Production.INFO: ==18588== Lock acquired, processing the job... [2025-03-03 12:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:34:04] Production.INFO: Account Balance Start. [2025-03-03 12:34:04] Production.INFO: CreateAllLog Start [2025-03-03 12:34:04] Production.INFO: 117 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: count ==13 [2025-03-03 12:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:34:04] Production.INFO: count ==21 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598495') start [2025-03-03 12:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598495') end [2025-03-03 12:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:34:04] Production.INFO: 1 [2025-03-03 12:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:34:04] Production.INFO: ==18590== Releasing lock... [2025-03-03 12:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.ERROR: done [2025-03-03 12:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:04] Production.ERROR: done [2025-03-03 12:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:34:05] Production.INFO: Total Charge 0 [2025-03-03 12:34:05] Production.INFO: CreateAllLog End [2025-03-03 12:34:05] Production.INFO: Account Balance End. [2025-03-03 12:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:34:05] Production.INFO: ==18586== Releasing lock... [2025-03-03 12:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:34:06 [end_date_ymd] => 2025-03-03 12:34:06 [RateCDR] => 1 ) [2025-03-03 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:34:06' and `end` < '2025-03-03 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:34:14] Production.ERROR: CronJobId end10 [2025-03-03 12:34:14] Production.INFO: ==18584== Releasing lock... [2025-03-03 12:34:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:34:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:34:15] Production.INFO: call_cost start [2025-03-03 12:34:15] Production.INFO: call_cost end [2025-03-03 12:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:34:16] Production.INFO: ==18580== Releasing lock... [2025-03-03 12:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:34:19] Production.INFO: count ==6373 [2025-03-03 12:34:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:34:06 - End Time 2025-03-03 12:34:06 [2025-03-03 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598496', 'tblTempUsageDetail_20' ) start [2025-03-03 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598496', 'tblTempUsageDetail_20' ) end [2025-03-03 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598496', 'tblTempVendorCDR_20' ) start [2025-03-03 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598496', 'tblTempVendorCDR_20' ) end [2025-03-03 12:34:22] Production.INFO: ProcessCDR(1,14598496,1,1,2) [2025-03-03 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598496', 'tblTempUsageDetail_20' ) start [2025-03-03 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598496', 'tblTempUsageDetail_20' ) end [2025-03-03 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:34:27] Production.INFO: ==18588== Releasing lock... [2025-03-03 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:34:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:35:01] Production.INFO: ==18651== Lock acquired, processing the job... [2025-03-03 17:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:35:01] Production.INFO: neon service started [2025-03-03 17:35:01] Production.INFO: neon service started [2025-03-03 17:35:01] Production.INFO: ==18651== Releasing lock... [2025-03-03 17:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:35:02] Production.INFO: ==18653== Lock acquired, processing the job... [2025-03-03 12:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:35:02] Production.INFO: ==18655== Lock acquired, processing the job... [2025-03-03 17:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:35:02] Production.INFO: ==18655== Releasing lock... [2025-03-03 17:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:35:02] Production.INFO: ==18653== Releasing lock... [2025-03-03 12:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:35:03] Production.INFO: ==18660== Lock acquired, processing the job... [2025-03-03 12:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:35:03] Production.INFO: ==18667== Lock acquired, processing the job... [2025-03-03 12:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:35:03] Production.INFO: ==18669== Lock acquired, processing the job... [2025-03-03 12:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:35:03] Production.INFO: ==18657== Lock acquired, processing the job... [2025-03-03 12:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:35:03] Production.INFO: count ==13 [2025-03-03 12:35:03] Production.INFO: ==18664== Lock acquired, processing the job... [2025-03-03 12:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:35:03] Production.INFO: count ==21 [2025-03-03 12:35:03] Production.INFO: ==18662== Lock acquired, processing the job... [2025-03-03 12:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598498') start [2025-03-03 12:35:03] Production.INFO: ==18660== Releasing lock... [2025-03-03 12:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:35:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:35:03] Production.INFO: Account Balance Start. [2025-03-03 12:35:03] Production.INFO: CreateAllLog Start [2025-03-03 12:35:03] Production.INFO: 117 [2025-03-03 12:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598498') end [2025-03-03 12:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:35:03] Production.INFO: 1 [2025-03-03 12:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:35:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:03] Production.INFO: ==18669== Releasing lock... [2025-03-03 12:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:35:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:35:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:03] Production.ERROR: done [2025-03-03 12:35:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.ERROR: done [2025-03-03 12:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:35:04] Production.INFO: Total Charge 0 [2025-03-03 12:35:04] Production.INFO: CreateAllLog End [2025-03-03 12:35:05] Production.INFO: Account Balance End. [2025-03-03 12:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:35:05] Production.INFO: ==18664== Releasing lock... [2025-03-03 12:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:35:05 [end_date_ymd] => 2025-03-03 12:35:05 [RateCDR] => 1 ) [2025-03-03 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:35:05' and `end` < '2025-03-03 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:35:13] Production.ERROR: CronJobId end10 [2025-03-03 12:35:13] Production.INFO: ==18662== Releasing lock... [2025-03-03 12:35:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:35:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:35:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:35:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:35:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:35:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:35:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:35:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:35:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:35:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:35:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:35:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:35:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:35:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:35:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:35:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:35:16] Production.INFO: call_cost start [2025-03-03 12:35:16] Production.INFO: call_cost end [2025-03-03 12:35:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:35:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:35:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:35:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:35:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:35:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:35:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:35:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:35:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:35:17] Production.INFO: ==18657== Releasing lock... [2025-03-03 12:35:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:35:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:35:18] Production.INFO: count ==6389 [2025-03-03 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:35:05 - End Time 2025-03-03 12:35:05 [2025-03-03 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598501', 'tblTempUsageDetail_20' ) start [2025-03-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598501', 'tblTempUsageDetail_20' ) end [2025-03-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598501', 'tblTempVendorCDR_20' ) start [2025-03-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598501', 'tblTempVendorCDR_20' ) end [2025-03-03 12:35:22] Production.INFO: ProcessCDR(1,14598501,1,1,2) [2025-03-03 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598501', 'tblTempUsageDetail_20' ) start [2025-03-03 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598501', 'tblTempUsageDetail_20' ) end [2025-03-03 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:35:27] Production.INFO: ==18667== Releasing lock... [2025-03-03 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:35:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:36:02] Production.INFO: ==18732== Lock acquired, processing the job... [2025-03-03 17:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:36:02] Production.INFO: neon service started [2025-03-03 17:36:02] Production.INFO: neon service started [2025-03-03 17:36:02] Production.INFO: ==18732== Releasing lock... [2025-03-03 17:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:36:03] Production.INFO: ==18736== Lock acquired, processing the job... [2025-03-03 12:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:36:03] Production.INFO: ==18738== Lock acquired, processing the job... [2025-03-03 17:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:36:03] Production.INFO: ==18738== Releasing lock... [2025-03-03 17:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:36:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:36:03] Production.INFO: ==18736== Releasing lock... [2025-03-03 12:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:36:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:36:04] Production.INFO: ==18751== Lock acquired, processing the job... [2025-03-03 12:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:36:04] Production.INFO: ==18747== Lock acquired, processing the job... [2025-03-03 12:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:36:04] Production.INFO: Account Balance Start. [2025-03-03 12:36:04] Production.INFO: CreateAllLog Start [2025-03-03 12:36:04] Production.INFO: 117 [2025-03-03 12:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:36:04] Production.INFO: ==18741== Lock acquired, processing the job... [2025-03-03 12:36:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:04] Production.INFO: ==18743== Lock acquired, processing the job... [2025-03-03 12:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:36:04] Production.INFO: count ==13 [2025-03-03 12:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:36:04] Production.INFO: count ==21 [2025-03-03 12:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598503') start [2025-03-03 12:36:04] Production.INFO: ==18745== Lock acquired, processing the job... [2025-03-03 12:36:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:04] Production.INFO: ==18749== Lock acquired, processing the job... [2025-03-03 12:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598503') end [2025-03-03 12:36:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:36:05] Production.INFO: 1 [2025-03-03 12:36:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:36:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-12 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:36:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:36:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:36:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:36:05] Production.INFO: Date 2025-02-13 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: ==18751== Releasing lock... [2025-03-03 12:36:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:36:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:36:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.ERROR: done [2025-03-03 12:36:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:36:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: ==18743== Releasing lock... [2025-03-03 12:36:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:36:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:36:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.ERROR: done [2025-03-03 12:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:36:06] Production.INFO: Total Charge 0 [2025-03-03 12:36:06] Production.INFO: CreateAllLog End [2025-03-03 12:36:06] Production.INFO: Account Balance End. [2025-03-03 12:36:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:36:06] Production.INFO: ==18747== Releasing lock... [2025-03-03 12:36:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:36:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:36:06 [end_date_ymd] => 2025-03-03 12:36:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:36:06' and `end` < '2025-03-03 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-03-03 12:36:15] Production.ERROR: CronJobId end10 [2025-03-03 12:36:15] Production.INFO: ==18745== Releasing lock... [2025-03-03 12:36:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:36:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:36:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:36:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:36:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:36:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:36:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:36:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:36:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:36:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:36:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:36:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:36:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:36:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:36:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:36:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:36:17] Production.INFO: call_cost start [2025-03-03 12:36:17] Production.INFO: call_cost end [2025-03-03 12:36:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:36:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:36:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:36:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:36:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:36:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:36:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:36:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:36:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:36:19] Production.INFO: ==18741== Releasing lock... [2025-03-03 12:36:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:36:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:36:20] Production.INFO: count ==6390 [2025-03-03 12:36:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:36:06 - End Time 2025-03-03 12:36:06 [2025-03-03 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598506', 'tblTempUsageDetail_20' ) start [2025-03-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598506', 'tblTempUsageDetail_20' ) end [2025-03-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598506', 'tblTempVendorCDR_20' ) start [2025-03-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598506', 'tblTempVendorCDR_20' ) end [2025-03-03 12:36:23] Production.INFO: ProcessCDR(1,14598506,1,1,2) [2025-03-03 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598506', 'tblTempUsageDetail_20' ) start [2025-03-03 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598506', 'tblTempUsageDetail_20' ) end [2025-03-03 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:36:29] Production.INFO: ==18749== Releasing lock... [2025-03-03 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:36:29] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:37:01] Production.INFO: ==18812== Lock acquired, processing the job... [2025-03-03 17:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:37:01] Production.INFO: neon service started [2025-03-03 17:37:01] Production.INFO: neon service started [2025-03-03 17:37:01] Production.INFO: ==18812== Releasing lock... [2025-03-03 17:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:37:02] Production.INFO: ==18815== Lock acquired, processing the job... [2025-03-03 12:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:37:02] Production.INFO: ==18815== Releasing lock... [2025-03-03 12:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:37:02] Production.INFO: ==18817== Lock acquired, processing the job... [2025-03-03 17:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:37:02] Production.INFO: ==18817== Releasing lock... [2025-03-03 17:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:37:03] Production.INFO: ==18819== Lock acquired, processing the job... [2025-03-03 12:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:37:03] Production.INFO: ==18823== Lock acquired, processing the job... [2025-03-03 12:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:37:03] Production.INFO: ==18825== Lock acquired, processing the job... [2025-03-03 12:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:37:03] Production.INFO: ==18821== Lock acquired, processing the job... [2025-03-03 12:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:37:03] Production.INFO: Account Balance Start. [2025-03-03 12:37:03] Production.INFO: CreateAllLog Start [2025-03-03 12:37:03] Production.INFO: 117 [2025-03-03 12:37:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:37:03] Production.INFO: ==18827== Lock acquired, processing the job... [2025-03-03 12:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: ==18829== Lock acquired, processing the job... [2025-03-03 12:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: ==18821== Releasing lock... [2025-03-03 12:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: count ==13 [2025-03-03 12:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:37:04] Production.INFO: count ==21 [2025-03-03 12:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598510') start [2025-03-03 12:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:37:04] Production.ERROR: done [2025-03-03 12:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598510') end [2025-03-03 12:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:37:04] Production.INFO: 1 [2025-03-03 12:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:37:04] Production.ERROR: done [2025-03-03 12:37:04] Production.INFO: ==18829== Releasing lock... [2025-03-03 12:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:37:05] Production.INFO: Total Charge 0 [2025-03-03 12:37:05] Production.INFO: CreateAllLog End [2025-03-03 12:37:05] Production.INFO: Account Balance End. [2025-03-03 12:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:37:05] Production.INFO: ==18825== Releasing lock... [2025-03-03 12:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:37:06 [end_date_ymd] => 2025-03-03 12:37:06 [RateCDR] => 1 ) [2025-03-03 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:37:06' and `end` < '2025-03-03 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:37:14] Production.ERROR: CronJobId end10 [2025-03-03 12:37:14] Production.INFO: ==18823== Releasing lock... [2025-03-03 12:37:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:37:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:37:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:37:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:37:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:37:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:37:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:37:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:37:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:37:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:37:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:37:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:37:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:37:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:37:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:37:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:37:16] Production.INFO: call_cost start [2025-03-03 12:37:16] Production.INFO: call_cost end [2025-03-03 12:37:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:37:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:37:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:37:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:37:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:37:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:37:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:37:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:37:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:37:17] Production.INFO: ==18819== Releasing lock... [2025-03-03 12:37:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:37:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:37:19] Production.INFO: count ==6393 [2025-03-03 12:37:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:37:06 - End Time 2025-03-03 12:37:06 [2025-03-03 12:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598511', 'tblTempUsageDetail_20' ) start [2025-03-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598511', 'tblTempUsageDetail_20' ) end [2025-03-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598511', 'tblTempVendorCDR_20' ) start [2025-03-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598511', 'tblTempVendorCDR_20' ) end [2025-03-03 12:37:23] Production.INFO: ProcessCDR(1,14598511,1,1,2) [2025-03-03 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598511', 'tblTempUsageDetail_20' ) start [2025-03-03 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598511', 'tblTempUsageDetail_20' ) end [2025-03-03 12:37:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:37:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:37:29] Production.INFO: ==18827== Releasing lock... [2025-03-03 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:37:29] Production.INFO: 76 MB #Memory Used# [2025-03-03 17:38:02] Production.INFO: ==18894== Lock acquired, processing the job... [2025-03-03 17:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:38:02] Production.INFO: neon service started [2025-03-03 17:38:02] Production.INFO: neon service started [2025-03-03 17:38:02] Production.INFO: ==18894== Releasing lock... [2025-03-03 17:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:38:02] Production.INFO: ==18896== Lock acquired, processing the job... [2025-03-03 12:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:38:03] Production.INFO: ==18898== Lock acquired, processing the job... [2025-03-03 17:38:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:38:03] Production.INFO: ==18896== Releasing lock... [2025-03-03 12:38:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:38:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:38:03] Production.INFO: ==18898== Releasing lock... [2025-03-03 17:38:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:38:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:38:04] Production.INFO: ==18909== Lock acquired, processing the job... [2025-03-03 12:38:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:38:04] Production.INFO: ==18907== Lock acquired, processing the job... [2025-03-03 12:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:38:04] Production.INFO: ==18901== Lock acquired, processing the job... [2025-03-03 12:38:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:38:04] Production.INFO: Account Balance Start. [2025-03-03 12:38:04] Production.INFO: CreateAllLog Start [2025-03-03 12:38:04] Production.INFO: 117 [2025-03-03 12:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.INFO: ==18905== Lock acquired, processing the job... [2025-03-03 12:38:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:38:04] Production.INFO: ==18903== Lock acquired, processing the job... [2025-03-03 12:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.INFO: ==18911== Lock acquired, processing the job... [2025-03-03 12:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.ERROR: done [2025-03-03 12:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:38:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:38:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:38:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.INFO: count ==13 [2025-03-03 12:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:38:04] Production.INFO: count ==21 [2025-03-03 12:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598515') start [2025-03-03 12:38:04] Production.ERROR: done [2025-03-03 12:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:04] Production.INFO: ==18903== Releasing lock... [2025-03-03 12:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598515') end [2025-03-03 12:38:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:38:05] Production.INFO: 1 [2025-03-03 12:38:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:38:05] Production.INFO: ==18911== Releasing lock... [2025-03-03 12:38:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:38:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:38:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:38:05] Production.INFO: Total Charge 0 [2025-03-03 12:38:05] Production.INFO: CreateAllLog End [2025-03-03 12:38:05] Production.INFO: Account Balance End. [2025-03-03 12:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:38:05] Production.INFO: ==18907== Releasing lock... [2025-03-03 12:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:38:06 [end_date_ymd] => 2025-03-03 12:38:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:38:06' and `end` < '2025-03-03 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-03-03 12:38:14] Production.ERROR: CronJobId end10 [2025-03-03 12:38:14] Production.INFO: ==18905== Releasing lock... [2025-03-03 12:38:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:38:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:38:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:38:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:38:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:38:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:38:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:38:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:38:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:38:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:38:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:38:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:38:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:38:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:38:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:38:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:38:17] Production.INFO: call_cost start [2025-03-03 12:38:17] Production.INFO: call_cost end [2025-03-03 12:38:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:38:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:38:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:38:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:38:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:38:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:38:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:38:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:38:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:38:18] Production.INFO: ==18901== Releasing lock... [2025-03-03 12:38:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:38:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:38:20] Production.INFO: count ==6383 [2025-03-03 12:38:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:38:06 - End Time 2025-03-03 12:38:06 [2025-03-03 12:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598516', 'tblTempUsageDetail_20' ) start [2025-03-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598516', 'tblTempUsageDetail_20' ) end [2025-03-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598516', 'tblTempVendorCDR_20' ) start [2025-03-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598516', 'tblTempVendorCDR_20' ) end [2025-03-03 12:38:23] Production.INFO: ProcessCDR(1,14598516,1,1,2) [2025-03-03 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598516', 'tblTempUsageDetail_20' ) start [2025-03-03 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598516', 'tblTempUsageDetail_20' ) end [2025-03-03 12:38:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:38:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:38:29] Production.INFO: ==18909== Releasing lock... [2025-03-03 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:38:29] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:39:01] Production.INFO: ==18973== Lock acquired, processing the job... [2025-03-03 17:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:39:01] Production.INFO: neon service started [2025-03-03 17:39:01] Production.INFO: neon service started [2025-03-03 17:39:01] Production.INFO: ==18973== Releasing lock... [2025-03-03 17:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:39:02] Production.INFO: ==18975== Lock acquired, processing the job... [2025-03-03 12:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:39:02] Production.INFO: ==18975== Releasing lock... [2025-03-03 12:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:39:03] Production.INFO: ==18977== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:39:03] Production.INFO: ==18977== Releasing lock... [2025-03-03 17:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:39:03] Production.INFO: ==18990== Lock acquired, processing the job... [2025-03-03 12:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:39:03] Production.INFO: count ==13 [2025-03-03 12:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:39:03] Production.INFO: count ==21 [2025-03-03 12:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598517') start [2025-03-03 12:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598517') end [2025-03-03 12:39:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:39:03] Production.INFO: 1 [2025-03-03 12:39:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:39:04] Production.INFO: ==18990== Releasing lock... [2025-03-03 12:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:39:04] Production.INFO: ==18979== Lock acquired, processing the job... [2025-03-03 12:39:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:39:04] Production.INFO: ==18981== Lock acquired, processing the job... [2025-03-03 12:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:39:04] Production.INFO: ==18983== Lock acquired, processing the job... [2025-03-03 12:39:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:39:04] Production.INFO: ==18986== Lock acquired, processing the job... [2025-03-03 12:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:39:04] Production.INFO: ==18988== Lock acquired, processing the job... [2025-03-03 12:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:39:04] Production.INFO: Account Balance Start. [2025-03-03 12:39:04] Production.INFO: CreateAllLog Start [2025-03-03 12:39:04] Production.INFO: 117 [2025-03-03 12:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:04] Production.INFO: ==18981== Releasing lock... [2025-03-03 12:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:04] Production.ERROR: done [2025-03-03 12:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:04] Production.ERROR: done [2025-03-03 12:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:39:05] Production.INFO: Total Charge 0 [2025-03-03 12:39:05] Production.INFO: CreateAllLog End [2025-03-03 12:39:06] Production.INFO: Account Balance End. [2025-03-03 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:39:06 [end_date_ymd] => 2025-03-03 12:39:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:39:06' and `end` < '2025-03-03 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-03-03 12:39:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:39:06] Production.INFO: ==18986== Releasing lock... [2025-03-03 12:39:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:39:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:39:13] Production.ERROR: CronJobId end10 [2025-03-03 12:39:13] Production.INFO: ==18983== Releasing lock... [2025-03-03 12:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:39:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:39:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:39:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:39:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:39:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:39:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:39:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:39:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:39:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:39:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:39:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:39:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:39:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:39:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:39:15] Production.INFO: call_cost start [2025-03-03 12:39:15] Production.INFO: call_cost end [2025-03-03 12:39:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:39:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:39:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:39:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:39:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:39:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:39:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:39:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:39:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:39:16] Production.INFO: ==18979== Releasing lock... [2025-03-03 12:39:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:39:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:39:20] Production.INFO: count ==6385 [2025-03-03 12:39:24] Production.ERROR: pbx CDR StartTime 2025-03-03 09:39:06 - End Time 2025-03-03 12:39:06 [2025-03-03 12:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598521', 'tblTempUsageDetail_20' ) start [2025-03-03 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598521', 'tblTempUsageDetail_20' ) end [2025-03-03 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598521', 'tblTempVendorCDR_20' ) start [2025-03-03 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598521', 'tblTempVendorCDR_20' ) end [2025-03-03 12:39:24] Production.INFO: ProcessCDR(1,14598521,1,1,2) [2025-03-03 12:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598521', 'tblTempUsageDetail_20' ) start [2025-03-03 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598521', 'tblTempUsageDetail_20' ) end [2025-03-03 12:39:30] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:39:30] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:39:30] Production.INFO: ==18988== Releasing lock... [2025-03-03 12:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:39:30] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:40:01] Production.INFO: ==19057== Lock acquired, processing the job... [2025-03-03 17:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:40:01] Production.INFO: neon service started [2025-03-03 17:40:01] Production.INFO: neon service started [2025-03-03 17:40:01] Production.INFO: ==19057== Releasing lock... [2025-03-03 17:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:40:01] Production.INFO: ==19059== Lock acquired, processing the job... [2025-03-03 12:40:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:40:02] Production.INFO: ==19061== Lock acquired, processing the job... [2025-03-03 17:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:40:02] Production.INFO: ==19059== Releasing lock... [2025-03-03 12:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:40:02] Production.INFO: ==19061== Releasing lock... [2025-03-03 17:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:40:03] Production.INFO: ==19065== Lock acquired, processing the job... [2025-03-03 12:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 12:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 12:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 12:40:03] Production.INFO: ==19065== Releasing lock... [2025-03-03 12:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 12:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 12:40:03] Production.INFO: ==19067== Lock acquired, processing the job... [2025-03-03 12:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:40:03] Production.INFO: ==19074== Lock acquired, processing the job... [2025-03-03 12:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:40:03] Production.INFO: ==19076== Lock acquired, processing the job... [2025-03-03 12:40:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:40:03] Production.INFO: Account Balance Start. [2025-03-03 12:40:03] Production.INFO: CreateAllLog Start [2025-03-03 12:40:03] Production.INFO: 117 [2025-03-03 12:40:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:40:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:03] Production.INFO: ==19069== Lock acquired, processing the job... [2025-03-03 12:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:40:04] Production.INFO: ==19071== Lock acquired, processing the job... [2025-03-03 12:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:40:04] Production.INFO: ==19078== Lock acquired, processing the job... [2025-03-03 12:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 12:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: ==19085== Lock acquired, processing the job... [2025-03-03 12:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.ERROR: done [2025-03-03 12:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: count ==13 [2025-03-03 12:40:04] Production.ERROR: done [2025-03-03 12:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:40:04] Production.INFO: ==19069== Releasing lock... [2025-03-03 12:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:40:04] Production.INFO: count ==21 [2025-03-03 12:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.ERROR: done [2025-03-03 12:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598525') start [2025-03-03 12:40:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 12:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598527', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598525') end [2025-03-03 12:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:40:04] Production.INFO: 1 [2025-03-03 12:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:40:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: ==19085== Releasing lock... [2025-03-03 12:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:40:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:40:05] Production.INFO: Total Charge 0 [2025-03-03 12:40:05] Production.INFO: CreateAllLog End [2025-03-03 12:40:05] Production.INFO: Account Balance End. [2025-03-03 12:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:40:05] Production.INFO: ==19074== Releasing lock... [2025-03-03 12:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:40:06 [end_date_ymd] => 2025-03-03 12:40:06 [RateCDR] => 1 ) [2025-03-03 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:40:06' and `end` < '2025-03-03 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598527', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 12:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 12:40:09] Production.INFO: ProcessCDR(1,14598527,1,1,2) [2025-03-03 12:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598527,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598527,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:40:09] Production.INFO: ==19078== Releasing lock... [2025-03-03 12:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 12:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 12:40:16] Production.ERROR: CronJobId end10 [2025-03-03 12:40:16] Production.INFO: ==19071== Releasing lock... [2025-03-03 12:40:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:40:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:40:17] Production.INFO: call_cost start [2025-03-03 12:40:17] Production.INFO: call_cost end [2025-03-03 12:40:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:40:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:40:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:40:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:40:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:40:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:40:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:40:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:40:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:40:18] Production.INFO: ==19067== Releasing lock... [2025-03-03 12:40:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:40:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:40:20] Production.INFO: count ==6362 [2025-03-03 12:40:23] Production.ERROR: pbx CDR StartTime 2025-03-03 09:40:06 - End Time 2025-03-03 12:40:06 [2025-03-03 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598526', 'tblTempUsageDetail_20' ) start [2025-03-03 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598526', 'tblTempUsageDetail_20' ) end [2025-03-03 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598526', 'tblTempVendorCDR_20' ) start [2025-03-03 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598526', 'tblTempVendorCDR_20' ) end [2025-03-03 12:40:23] Production.INFO: ProcessCDR(1,14598526,1,1,2) [2025-03-03 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598526', 'tblTempUsageDetail_20' ) start [2025-03-03 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598526', 'tblTempUsageDetail_20' ) end [2025-03-03 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:40:28] Production.INFO: ==19076== Releasing lock... [2025-03-03 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:40:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:41:01] Production.INFO: ==19151== Lock acquired, processing the job... [2025-03-03 17:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:41:01] Production.INFO: neon service started [2025-03-03 17:41:02] Production.INFO: neon service started [2025-03-03 17:41:02] Production.INFO: ==19151== Releasing lock... [2025-03-03 17:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:41:02] Production.INFO: ==19153== Lock acquired, processing the job... [2025-03-03 12:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:41:02] Production.INFO: ==19155== Lock acquired, processing the job... [2025-03-03 17:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:41:02] Production.INFO: ==19155== Releasing lock... [2025-03-03 17:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:41:03] Production.INFO: ==19153== Releasing lock... [2025-03-03 12:41:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:41:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:41:03] Production.INFO: ==19164== Lock acquired, processing the job... [2025-03-03 12:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:41:03] Production.INFO: Account Balance Start. [2025-03-03 12:41:03] Production.INFO: CreateAllLog Start [2025-03-03 12:41:03] Production.INFO: 117 [2025-03-03 12:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: ==19168== Lock acquired, processing the job... [2025-03-03 12:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:41:04] Production.INFO: ==19160== Lock acquired, processing the job... [2025-03-03 12:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:41:04] Production.INFO: ==19158== Lock acquired, processing the job... [2025-03-03 12:41:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:41:04] Production.INFO: ==19162== Lock acquired, processing the job... [2025-03-03 12:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:41:04] Production.INFO: ==19166== Lock acquired, processing the job... [2025-03-03 12:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:41:04] Production.INFO: count ==13 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:41:04] Production.INFO: count ==21 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598529') start [2025-03-03 12:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598529') end [2025-03-03 12:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:41:04] Production.INFO: 1 [2025-03-03 12:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: ==19168== Releasing lock... [2025-03-03 12:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:41:04] Production.INFO: ==19160== Releasing lock... [2025-03-03 12:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.ERROR: done [2025-03-03 12:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.ERROR: done [2025-03-03 12:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:41:04] Production.INFO: Total Charge 0 [2025-03-03 12:41:04] Production.INFO: CreateAllLog End [2025-03-03 12:41:05] Production.INFO: Account Balance End. [2025-03-03 12:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:41:05] Production.INFO: ==19164== Releasing lock... [2025-03-03 12:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:41:05 [end_date_ymd] => 2025-03-03 12:41:05 [RateCDR] => 1 ) [2025-03-03 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:41:05' and `end` < '2025-03-03 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:41:12] Production.ERROR: CronJobId end10 [2025-03-03 12:41:12] Production.INFO: ==19162== Releasing lock... [2025-03-03 12:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:41:15] Production.INFO: call_cost start [2025-03-03 12:41:15] Production.INFO: call_cost end [2025-03-03 12:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:41:16] Production.INFO: ==19158== Releasing lock... [2025-03-03 12:41:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:41:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:41:20] Production.INFO: count ==6376 [2025-03-03 12:41:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:41:05 - End Time 2025-03-03 12:41:05 [2025-03-03 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598532', 'tblTempUsageDetail_20' ) start [2025-03-03 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598532', 'tblTempUsageDetail_20' ) end [2025-03-03 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598532', 'tblTempVendorCDR_20' ) start [2025-03-03 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598532', 'tblTempVendorCDR_20' ) end [2025-03-03 12:41:23] Production.INFO: ProcessCDR(1,14598532,1,1,2) [2025-03-03 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598532', 'tblTempUsageDetail_20' ) start [2025-03-03 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598532', 'tblTempUsageDetail_20' ) end [2025-03-03 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:41:26] Production.INFO: ==19166== Releasing lock... [2025-03-03 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:41:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:42:01] Production.INFO: ==19227== Lock acquired, processing the job... [2025-03-03 17:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:42:01] Production.INFO: neon service started [2025-03-03 17:42:01] Production.INFO: neon service started [2025-03-03 17:42:01] Production.INFO: ==19227== Releasing lock... [2025-03-03 17:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:42:01] Production.INFO: ==19231== Lock acquired, processing the job... [2025-03-03 17:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:42:01] Production.INFO: ==19231== Releasing lock... [2025-03-03 17:42:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:42:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:42:02] Production.INFO: ==19229== Lock acquired, processing the job... [2025-03-03 12:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:42:02] Production.INFO: ==19229== Releasing lock... [2025-03-03 12:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:42:03] Production.INFO: ==19233== Lock acquired, processing the job... [2025-03-03 12:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:42:03] Production.INFO: ==19237== Lock acquired, processing the job... [2025-03-03 12:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:42:03] Production.INFO: ==19244== Lock acquired, processing the job... [2025-03-03 12:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:42:03] Production.INFO: count ==13 [2025-03-03 12:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:42:03] Production.INFO: ==19235== Lock acquired, processing the job... [2025-03-03 12:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:42:03] Production.INFO: count ==21 [2025-03-03 12:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598534') start [2025-03-03 12:42:03] Production.INFO: ==19239== Lock acquired, processing the job... [2025-03-03 12:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598534') end [2025-03-03 12:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:42:03] Production.INFO: 1 [2025-03-03 12:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:42:03] Production.INFO: ==19242== Lock acquired, processing the job... [2025-03-03 12:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:42:03] Production.INFO: ==19244== Releasing lock... [2025-03-03 12:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:42:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:42:03] Production.INFO: Account Balance Start. [2025-03-03 12:42:03] Production.INFO: CreateAllLog Start [2025-03-03 12:42:03] Production.INFO: 117 [2025-03-03 12:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.ERROR: done [2025-03-03 12:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: ==19235== Releasing lock... [2025-03-03 12:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.ERROR: done [2025-03-03 12:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:42:04] Production.INFO: Total Charge 0 [2025-03-03 12:42:04] Production.INFO: CreateAllLog End [2025-03-03 12:42:04] Production.INFO: Account Balance End. [2025-03-03 12:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:42:05] Production.INFO: ==19239== Releasing lock... [2025-03-03 12:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:42:05 [end_date_ymd] => 2025-03-03 12:42:05 [RateCDR] => 1 ) [2025-03-03 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:42:05' and `end` < '2025-03-03 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:42:12] Production.ERROR: CronJobId end10 [2025-03-03 12:42:12] Production.INFO: ==19237== Releasing lock... [2025-03-03 12:42:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:42:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:42:15] Production.INFO: call_cost start [2025-03-03 12:42:15] Production.INFO: call_cost end [2025-03-03 12:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:42:16] Production.INFO: ==19233== Releasing lock... [2025-03-03 12:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:42:19] Production.INFO: count ==6380 [2025-03-03 12:42:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:42:05 - End Time 2025-03-03 12:42:05 [2025-03-03 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598537', 'tblTempUsageDetail_20' ) start [2025-03-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598537', 'tblTempUsageDetail_20' ) end [2025-03-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598537', 'tblTempVendorCDR_20' ) start [2025-03-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598537', 'tblTempVendorCDR_20' ) end [2025-03-03 12:42:22] Production.INFO: ProcessCDR(1,14598537,1,1,2) [2025-03-03 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598537', 'tblTempUsageDetail_20' ) start [2025-03-03 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598537', 'tblTempUsageDetail_20' ) end [2025-03-03 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:42:27] Production.INFO: ==19242== Releasing lock... [2025-03-03 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:42:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:43:01] Production.INFO: ==19346== Lock acquired, processing the job... [2025-03-03 17:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:43:01] Production.INFO: neon service started [2025-03-03 17:43:01] Production.INFO: neon service started [2025-03-03 17:43:01] Production.INFO: ==19346== Releasing lock... [2025-03-03 17:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:43:02] Production.INFO: ==19348== Lock acquired, processing the job... [2025-03-03 12:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:43:02] Production.INFO: ==19348== Releasing lock... [2025-03-03 12:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:43:02] Production.INFO: ==19350== Lock acquired, processing the job... [2025-03-03 17:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:43:02] Production.INFO: ==19350== Releasing lock... [2025-03-03 17:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:43:03] Production.INFO: ==19353== Lock acquired, processing the job... [2025-03-03 12:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:43:03] Production.INFO: ==19357== Lock acquired, processing the job... [2025-03-03 12:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:43:03] Production.INFO: ==19361== Lock acquired, processing the job... [2025-03-03 12:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:43:03] Production.INFO: ==19359== Lock acquired, processing the job... [2025-03-03 12:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:43:03] Production.INFO: ==19355== Lock acquired, processing the job... [2025-03-03 12:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:43:03] Production.INFO: ==19363== Lock acquired, processing the job... [2025-03-03 12:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:43:03] Production.ERROR: done [2025-03-03 12:43:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:43:04] Production.INFO: Account Balance Start. [2025-03-03 12:43:04] Production.INFO: CreateAllLog Start [2025-03-03 12:43:04] Production.INFO: 117 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: count ==13 [2025-03-03 12:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:43:04] Production.INFO: count ==21 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598540') start [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.ERROR: done [2025-03-03 12:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: ==19355== Releasing lock... [2025-03-03 12:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598540') end [2025-03-03 12:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:43:04] Production.INFO: 1 [2025-03-03 12:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:43:04] Production.INFO: ==19363== Releasing lock... [2025-03-03 12:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:43:05] Production.INFO: Total Charge 0 [2025-03-03 12:43:05] Production.INFO: CreateAllLog End [2025-03-03 12:43:05] Production.INFO: Account Balance End. [2025-03-03 12:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:43:05] Production.INFO: ==19359== Releasing lock... [2025-03-03 12:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:43:05 [end_date_ymd] => 2025-03-03 12:43:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:43:05' and `end` < '2025-03-03 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-03-03 12:43:12] Production.ERROR: CronJobId end10 [2025-03-03 12:43:12] Production.INFO: ==19357== Releasing lock... [2025-03-03 12:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:43:15] Production.INFO: call_cost start [2025-03-03 12:43:15] Production.INFO: call_cost end [2025-03-03 12:43:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:43:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:43:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:43:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:43:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:43:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:43:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:43:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:43:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:43:16] Production.INFO: ==19353== Releasing lock... [2025-03-03 12:43:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:43:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:43:19] Production.INFO: count ==6395 [2025-03-03 12:43:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:43:05 - End Time 2025-03-03 12:43:05 [2025-03-03 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598542', 'tblTempUsageDetail_20' ) start [2025-03-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598542', 'tblTempUsageDetail_20' ) end [2025-03-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598542', 'tblTempVendorCDR_20' ) start [2025-03-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598542', 'tblTempVendorCDR_20' ) end [2025-03-03 12:43:22] Production.INFO: ProcessCDR(1,14598542,1,1,2) [2025-03-03 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598542', 'tblTempUsageDetail_20' ) start [2025-03-03 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598542', 'tblTempUsageDetail_20' ) end [2025-03-03 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:43:27] Production.INFO: ==19361== Releasing lock... [2025-03-03 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:43:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-03 17:44:01] Production.INFO: ==19424== Lock acquired, processing the job... [2025-03-03 17:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:44:01] Production.INFO: neon service started [2025-03-03 17:44:01] Production.INFO: neon service started [2025-03-03 17:44:01] Production.INFO: ==19424== Releasing lock... [2025-03-03 17:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:44:01] Production.INFO: ==19426== Lock acquired, processing the job... [2025-03-03 12:44:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:44:02] Production.INFO: ==19426== Releasing lock... [2025-03-03 12:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:44:02] Production.INFO: ==19428== Lock acquired, processing the job... [2025-03-03 17:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:44:02] Production.INFO: ==19428== Releasing lock... [2025-03-03 17:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:44:03] Production.INFO: ==19430== Lock acquired, processing the job... [2025-03-03 12:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:44:03] Production.INFO: ==19439== Lock acquired, processing the job... [2025-03-03 12:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:44:03] Production.INFO: ==19441== Lock acquired, processing the job... [2025-03-03 12:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:44:03] Production.INFO: ==19432== Lock acquired, processing the job... [2025-03-03 12:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:44:03] Production.INFO: ==19434== Lock acquired, processing the job... [2025-03-03 12:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:44:03] Production.INFO: ==19437== Lock acquired, processing the job... [2025-03-03 12:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:44:03] Production.INFO: count ==13 [2025-03-03 12:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:44:03] Production.INFO: count ==21 [2025-03-03 12:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598544') start [2025-03-03 12:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598544') end [2025-03-03 12:44:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:44:03] Production.INFO: 1 [2025-03-03 12:44:03] Production.INFO: Account Balance Start. [2025-03-03 12:44:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:44:03] Production.INFO: CreateAllLog Start [2025-03-03 12:44:03] Production.INFO: 117 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: ==19441== Releasing lock... [2025-03-03 12:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:44:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:44:03] Production.ERROR: done [2025-03-03 12:44:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-14 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-15 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: ==19432== Releasing lock... [2025-03-03 12:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:44:03] Production.ERROR: done [2025-03-03 12:44:03] Production.INFO: Date 2025-02-16 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:03] Production.INFO: Date 2025-02-17 [2025-03-03 12:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:44:04] Production.INFO: Total Charge 0 [2025-03-03 12:44:04] Production.INFO: CreateAllLog End [2025-03-03 12:44:04] Production.INFO: Account Balance End. [2025-03-03 12:44:04] Production.ERROR: CronJobId end 12 [2025-03-03 12:44:04] Production.INFO: ==19437== Releasing lock... [2025-03-03 12:44:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:44:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:44:04 [end_date_ymd] => 2025-03-03 12:44:04 [RateCDR] => 1 ) [2025-03-03 12:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:44:04' and `end` < '2025-03-03 12:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:44:13] Production.ERROR: CronJobId end10 [2025-03-03 12:44:13] Production.INFO: ==19434== Releasing lock... [2025-03-03 12:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:44:14] Production.INFO: call_cost start [2025-03-03 12:44:14] Production.INFO: call_cost end [2025-03-03 12:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:44:15] Production.INFO: ==19430== Releasing lock... [2025-03-03 12:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:44:17] Production.INFO: count ==6395 [2025-03-03 12:44:20] Production.ERROR: pbx CDR StartTime 2025-03-03 09:44:04 - End Time 2025-03-03 12:44:04 [2025-03-03 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598547', 'tblTempUsageDetail_20' ) start [2025-03-03 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598547', 'tblTempUsageDetail_20' ) end [2025-03-03 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598547', 'tblTempVendorCDR_20' ) start [2025-03-03 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598547', 'tblTempVendorCDR_20' ) end [2025-03-03 12:44:21] Production.INFO: ProcessCDR(1,14598547,1,1,2) [2025-03-03 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598547', 'tblTempUsageDetail_20' ) start [2025-03-03 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598547', 'tblTempUsageDetail_20' ) end [2025-03-03 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:44:26] Production.INFO: ==19439== Releasing lock... [2025-03-03 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:44:26] Production.INFO: 76 MB #Memory Used# [2025-03-03 17:45:01] Production.INFO: ==19503== Lock acquired, processing the job... [2025-03-03 17:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:45:01] Production.INFO: neon service started [2025-03-03 17:45:01] Production.INFO: neon service started [2025-03-03 17:45:01] Production.INFO: ==19503== Releasing lock... [2025-03-03 17:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:45:02] Production.INFO: ==19505== Lock acquired, processing the job... [2025-03-03 12:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:45:02] Production.INFO: ==19507== Lock acquired, processing the job... [2025-03-03 17:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:45:02] Production.INFO: ==19507== Releasing lock... [2025-03-03 17:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:45:02] Production.INFO: ==19505== Releasing lock... [2025-03-03 12:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:45:03] Production.INFO: ==19509== Lock acquired, processing the job... [2025-03-03 12:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:45:03] Production.INFO: ==19512== Lock acquired, processing the job... [2025-03-03 12:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:45:03] Production.INFO: ==19514== Lock acquired, processing the job... [2025-03-03 12:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:45:03] Production.INFO: ==19516== Lock acquired, processing the job... [2025-03-03 12:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:45:03] Production.INFO: ==19518== Lock acquired, processing the job... [2025-03-03 12:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:45:03] Production.INFO: Account Balance Start. [2025-03-03 12:45:03] Production.INFO: CreateAllLog Start [2025-03-03 12:45:03] Production.INFO: 117 [2025-03-03 12:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:45:03] Production.INFO: ==19512== Releasing lock... [2025-03-03 12:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: ==19520== Lock acquired, processing the job... [2025-03-03 12:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:45:04] Production.INFO: count ==13 [2025-03-03 12:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:45:04] Production.INFO: count ==21 [2025-03-03 12:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598551') start [2025-03-03 12:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.ERROR: done [2025-03-03 12:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598551') end [2025-03-03 12:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:45:04] Production.INFO: 1 [2025-03-03 12:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: ==19520== Releasing lock... [2025-03-03 12:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.ERROR: done [2025-03-03 12:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:45:05] Production.INFO: Total Charge 0 [2025-03-03 12:45:05] Production.INFO: CreateAllLog End [2025-03-03 12:45:05] Production.INFO: Account Balance End. [2025-03-03 12:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:45:05] Production.INFO: ==19516== Releasing lock... [2025-03-03 12:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:45:05 [end_date_ymd] => 2025-03-03 12:45:05 [RateCDR] => 1 ) [2025-03-03 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:45:05' and `end` < '2025-03-03 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:45:13] Production.ERROR: CronJobId end10 [2025-03-03 12:45:13] Production.INFO: ==19514== Releasing lock... [2025-03-03 12:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:45:15] Production.INFO: call_cost start [2025-03-03 12:45:15] Production.INFO: call_cost end [2025-03-03 12:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:45:16] Production.INFO: ==19509== Releasing lock... [2025-03-03 12:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:45:19] Production.INFO: count ==6386 [2025-03-03 12:45:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:45:05 - End Time 2025-03-03 12:45:05 [2025-03-03 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598552', 'tblTempUsageDetail_20' ) start [2025-03-03 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598552', 'tblTempUsageDetail_20' ) end [2025-03-03 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598552', 'tblTempVendorCDR_20' ) start [2025-03-03 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598552', 'tblTempVendorCDR_20' ) end [2025-03-03 12:45:22] Production.INFO: ProcessCDR(1,14598552,1,1,2) [2025-03-03 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598552', 'tblTempUsageDetail_20' ) start [2025-03-03 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598552', 'tblTempUsageDetail_20' ) end [2025-03-03 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:45:27] Production.INFO: ==19518== Releasing lock... [2025-03-03 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:45:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:46:02] Production.INFO: ==19586== Lock acquired, processing the job... [2025-03-03 17:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:46:02] Production.INFO: neon service started [2025-03-03 17:46:02] Production.INFO: neon service started [2025-03-03 17:46:02] Production.INFO: ==19586== Releasing lock... [2025-03-03 17:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:46:02] Production.INFO: ==19588== Lock acquired, processing the job... [2025-03-03 12:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:46:03] Production.INFO: ==19588== Releasing lock... [2025-03-03 12:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:46:03] Production.INFO: ==19590== Lock acquired, processing the job... [2025-03-03 17:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:46:03] Production.INFO: ==19590== Releasing lock... [2025-03-03 17:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:46:04] Production.INFO: ==19594== Lock acquired, processing the job... [2025-03-03 12:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:46:04] Production.INFO: ==19601== Lock acquired, processing the job... [2025-03-03 12:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:46:04] Production.INFO: ==19592== Lock acquired, processing the job... [2025-03-03 12:46:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:46:04] Production.INFO: ==19596== Lock acquired, processing the job... [2025-03-03 12:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:46:04] Production.INFO: ==19599== Lock acquired, processing the job... [2025-03-03 12:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:46:04] Production.INFO: ==19603== Lock acquired, processing the job... [2025-03-03 12:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:46:04] Production.INFO: ==19594== Releasing lock... [2025-03-03 12:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:46:04] Production.ERROR: done [2025-03-03 12:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:46:04] Production.INFO: Account Balance Start. [2025-03-03 12:46:04] Production.INFO: CreateAllLog Start [2025-03-03 12:46:04] Production.INFO: 117 [2025-03-03 12:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:46:04] Production.ERROR: done [2025-03-03 12:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:04] Production.INFO: count ==13 [2025-03-03 12:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:46:04] Production.INFO: count ==21 [2025-03-03 12:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598556') start [2025-03-03 12:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598556') end [2025-03-03 12:46:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:46:05] Production.INFO: 1 [2025-03-03 12:46:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:46:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: ==19603== Releasing lock... [2025-03-03 12:46:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:46:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:46:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:46:05] Production.INFO: Total Charge 0 [2025-03-03 12:46:05] Production.INFO: CreateAllLog End [2025-03-03 12:46:06] Production.INFO: Account Balance End. [2025-03-03 12:46:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:46:06] Production.INFO: ==19599== Releasing lock... [2025-03-03 12:46:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:46:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:46:06 [end_date_ymd] => 2025-03-03 12:46:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:46:06' and `end` < '2025-03-03 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-03-03 12:46:12] Production.ERROR: CronJobId end10 [2025-03-03 12:46:12] Production.INFO: ==19596== Releasing lock... [2025-03-03 12:46:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:46:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:46:14] Production.INFO: call_cost start [2025-03-03 12:46:14] Production.INFO: call_cost end [2025-03-03 12:46:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:46:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:46:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:46:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:46:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:46:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:46:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:46:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:46:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:46:15] Production.INFO: ==19592== Releasing lock... [2025-03-03 12:46:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:46:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:46:19] Production.INFO: count ==6368 [2025-03-03 12:46:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:46:06 - End Time 2025-03-03 12:46:06 [2025-03-03 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598557', 'tblTempUsageDetail_20' ) start [2025-03-03 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598557', 'tblTempUsageDetail_20' ) end [2025-03-03 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598557', 'tblTempVendorCDR_20' ) start [2025-03-03 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598557', 'tblTempVendorCDR_20' ) end [2025-03-03 12:46:22] Production.INFO: ProcessCDR(1,14598557,1,1,2) [2025-03-03 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598557', 'tblTempUsageDetail_20' ) start [2025-03-03 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598557', 'tblTempUsageDetail_20' ) end [2025-03-03 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:46:27] Production.INFO: ==19601== Releasing lock... [2025-03-03 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:46:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:47:01] Production.INFO: ==19663== Lock acquired, processing the job... [2025-03-03 17:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:47:01] Production.INFO: neon service started [2025-03-03 17:47:01] Production.INFO: neon service started [2025-03-03 17:47:01] Production.INFO: ==19663== Releasing lock... [2025-03-03 17:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:47:02] Production.INFO: ==19665== Lock acquired, processing the job... [2025-03-03 12:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:47:02] Production.INFO: ==19665== Releasing lock... [2025-03-03 12:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:47:02] Production.INFO: ==19667== Lock acquired, processing the job... [2025-03-03 17:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:47:02] Production.INFO: ==19667== Releasing lock... [2025-03-03 17:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:47:03] Production.INFO: ==19669== Lock acquired, processing the job... [2025-03-03 12:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:47:03] Production.INFO: ==19673== Lock acquired, processing the job... [2025-03-03 12:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:47:03] Production.INFO: ==19677== Lock acquired, processing the job... [2025-03-03 12:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:47:03] Production.INFO: ==19675== Lock acquired, processing the job... [2025-03-03 12:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:47:03] Production.INFO: ==19671== Lock acquired, processing the job... [2025-03-03 12:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:47:03] Production.INFO: ==19679== Lock acquired, processing the job... [2025-03-03 12:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:47:03] Production.INFO: Account Balance Start. [2025-03-03 12:47:03] Production.INFO: CreateAllLog Start [2025-03-03 12:47:03] Production.INFO: 117 [2025-03-03 12:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.ERROR: done [2025-03-03 12:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: count ==13 [2025-03-03 12:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:47:04] Production.INFO: count ==21 [2025-03-03 12:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598561') start [2025-03-03 12:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: ==19671== Releasing lock... [2025-03-03 12:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:47:04] Production.ERROR: done [2025-03-03 12:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598561') end [2025-03-03 12:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:47:04] Production.INFO: 1 [2025-03-03 12:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: ==19679== Releasing lock... [2025-03-03 12:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:47:05] Production.INFO: Total Charge 0 [2025-03-03 12:47:05] Production.INFO: CreateAllLog End [2025-03-03 12:47:05] Production.INFO: Account Balance End. [2025-03-03 12:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:47:05] Production.INFO: ==19675== Releasing lock... [2025-03-03 12:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:47:05 [end_date_ymd] => 2025-03-03 12:47:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:47:05' and `end` < '2025-03-03 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-03-03 12:47:13] Production.ERROR: CronJobId end10 [2025-03-03 12:47:13] Production.INFO: ==19673== Releasing lock... [2025-03-03 12:47:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:47:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:47:14] Production.INFO: call_cost start [2025-03-03 12:47:14] Production.INFO: call_cost end [2025-03-03 12:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:47:15] Production.INFO: ==19669== Releasing lock... [2025-03-03 12:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:47:19] Production.INFO: count ==6344 [2025-03-03 12:47:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:47:05 - End Time 2025-03-03 12:47:05 [2025-03-03 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598562', 'tblTempUsageDetail_20' ) start [2025-03-03 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598562', 'tblTempUsageDetail_20' ) end [2025-03-03 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598562', 'tblTempVendorCDR_20' ) start [2025-03-03 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598562', 'tblTempVendorCDR_20' ) end [2025-03-03 12:47:22] Production.INFO: ProcessCDR(1,14598562,1,1,2) [2025-03-03 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598562', 'tblTempUsageDetail_20' ) start [2025-03-03 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598562', 'tblTempUsageDetail_20' ) end [2025-03-03 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:47:27] Production.INFO: ==19677== Releasing lock... [2025-03-03 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:47:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:48:02] Production.INFO: ==19742== Lock acquired, processing the job... [2025-03-03 17:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:48:02] Production.INFO: neon service started [2025-03-03 17:48:02] Production.INFO: neon service started [2025-03-03 17:48:02] Production.INFO: ==19742== Releasing lock... [2025-03-03 17:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:48:02] Production.INFO: ==19744== Lock acquired, processing the job... [2025-03-03 12:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:48:03] Production.INFO: ==19744== Releasing lock... [2025-03-03 12:48:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:48:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:48:03] Production.INFO: ==19746== Lock acquired, processing the job... [2025-03-03 17:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:48:03] Production.INFO: ==19746== Releasing lock... [2025-03-03 17:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:48:03] Production.INFO: ==19750== Lock acquired, processing the job... [2025-03-03 12:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:48:04] Production.INFO: ==19759== Lock acquired, processing the job... [2025-03-03 12:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:48:04] Production.INFO: count ==13 [2025-03-03 12:48:04] Production.INFO: ==19748== Lock acquired, processing the job... [2025-03-03 12:48:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:48:04] Production.INFO: count ==21 [2025-03-03 12:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598563') start [2025-03-03 12:48:04] Production.INFO: ==19754== Lock acquired, processing the job... [2025-03-03 12:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:48:04] Production.INFO: ==19750== Releasing lock... [2025-03-03 12:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:48:04] Production.INFO: ==19757== Lock acquired, processing the job... [2025-03-03 12:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:48:04] Production.INFO: ==19752== Lock acquired, processing the job... [2025-03-03 12:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:48:04] Production.INFO: Account Balance Start. [2025-03-03 12:48:04] Production.INFO: CreateAllLog Start [2025-03-03 12:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598563') end [2025-03-03 12:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:48:04] Production.INFO: 1 [2025-03-03 12:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:48:04] Production.INFO: 117 [2025-03-03 12:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:48:04] Production.INFO: ==19759== Releasing lock... [2025-03-03 12:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.ERROR: done [2025-03-03 12:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:04] Production.ERROR: done [2025-03-03 12:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:48:05] Production.INFO: Total Charge 0 [2025-03-03 12:48:05] Production.INFO: CreateAllLog End [2025-03-03 12:48:05] Production.INFO: Account Balance End. [2025-03-03 12:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:48:05] Production.INFO: ==19754== Releasing lock... [2025-03-03 12:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:48:06 [end_date_ymd] => 2025-03-03 12:48:06 [RateCDR] => 1 ) [2025-03-03 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:48:06' and `end` < '2025-03-03 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:48:14] Production.ERROR: CronJobId end10 [2025-03-03 12:48:14] Production.INFO: ==19752== Releasing lock... [2025-03-03 12:48:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:48:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:48:16] Production.INFO: call_cost start [2025-03-03 12:48:16] Production.INFO: call_cost end [2025-03-03 12:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:48:16] Production.INFO: ==19748== Releasing lock... [2025-03-03 12:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:48:19] Production.INFO: count ==6341 [2025-03-03 12:48:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:48:06 - End Time 2025-03-03 12:48:06 [2025-03-03 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598567', 'tblTempUsageDetail_20' ) start [2025-03-03 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598567', 'tblTempUsageDetail_20' ) end [2025-03-03 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598567', 'tblTempVendorCDR_20' ) start [2025-03-03 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598567', 'tblTempVendorCDR_20' ) end [2025-03-03 12:48:22] Production.INFO: ProcessCDR(1,14598567,1,1,2) [2025-03-03 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598567', 'tblTempUsageDetail_20' ) start [2025-03-03 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598567', 'tblTempUsageDetail_20' ) end [2025-03-03 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:48:27] Production.INFO: ==19757== Releasing lock... [2025-03-03 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:48:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:49:01] Production.INFO: ==19819== Lock acquired, processing the job... [2025-03-03 17:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:49:01] Production.INFO: neon service started [2025-03-03 17:49:01] Production.INFO: neon service started [2025-03-03 17:49:02] Production.INFO: ==19819== Releasing lock... [2025-03-03 17:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:49:02] Production.INFO: ==19821== Lock acquired, processing the job... [2025-03-03 12:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:49:02] Production.INFO: ==19823== Lock acquired, processing the job... [2025-03-03 17:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:49:02] Production.INFO: ==19823== Releasing lock... [2025-03-03 17:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:49:02] Production.INFO: ==19821== Releasing lock... [2025-03-03 12:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:49:03] Production.INFO: ==19830== Lock acquired, processing the job... [2025-03-03 12:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:49:03] Production.INFO: ==19836== Lock acquired, processing the job... [2025-03-03 12:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:49:03] Production.INFO: ==19830== Releasing lock... [2025-03-03 12:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:49:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:49:03] Production.INFO: ==19828== Lock acquired, processing the job... [2025-03-03 12:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:49:04] Production.INFO: ==19832== Lock acquired, processing the job... [2025-03-03 12:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:49:04] Production.INFO: ==19834== Lock acquired, processing the job... [2025-03-03 12:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:49:04] Production.INFO: ==19838== Lock acquired, processing the job... [2025-03-03 12:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:49:04] Production.ERROR: done [2025-03-03 12:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:49:04] Production.INFO: Account Balance Start. [2025-03-03 12:49:04] Production.INFO: CreateAllLog Start [2025-03-03 12:49:04] Production.INFO: 117 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:49:04] Production.INFO: count ==13 [2025-03-03 12:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:49:04] Production.INFO: count ==21 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598571') start [2025-03-03 12:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.ERROR: done [2025-03-03 12:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598571') end [2025-03-03 12:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:49:04] Production.INFO: 1 [2025-03-03 12:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:49:04] Production.INFO: ==19838== Releasing lock... [2025-03-03 12:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:49:05 [end_date_ymd] => 2025-03-03 12:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:49:05' and `end` < '2025-03-03 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-03-03 12:49:05] Production.INFO: Total Charge 0 [2025-03-03 12:49:05] Production.INFO: CreateAllLog End [2025-03-03 12:49:05] Production.INFO: Account Balance End. [2025-03-03 12:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:49:05] Production.INFO: ==19834== Releasing lock... [2025-03-03 12:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:49:12] Production.ERROR: CronJobId end10 [2025-03-03 12:49:12] Production.INFO: ==19832== Releasing lock... [2025-03-03 12:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:49:15] Production.INFO: call_cost start [2025-03-03 12:49:15] Production.INFO: call_cost end [2025-03-03 12:49:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:49:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:49:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:49:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:49:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:49:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:49:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:49:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:49:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:49:16] Production.INFO: ==19828== Releasing lock... [2025-03-03 12:49:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:49:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:49:18] Production.INFO: count ==6345 [2025-03-03 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:49:05 - End Time 2025-03-03 12:49:05 [2025-03-03 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598572', 'tblTempUsageDetail_20' ) start [2025-03-03 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598572', 'tblTempUsageDetail_20' ) end [2025-03-03 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598572', 'tblTempVendorCDR_20' ) start [2025-03-03 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598572', 'tblTempVendorCDR_20' ) end [2025-03-03 12:49:21] Production.INFO: ProcessCDR(1,14598572,1,1,2) [2025-03-03 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598572', 'tblTempUsageDetail_20' ) start [2025-03-03 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598572', 'tblTempUsageDetail_20' ) end [2025-03-03 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:49:26] Production.INFO: ==19836== Releasing lock... [2025-03-03 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:49:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:50:01] Production.INFO: ==19897== Lock acquired, processing the job... [2025-03-03 17:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:50:01] Production.INFO: neon service started [2025-03-03 17:50:01] Production.INFO: neon service started [2025-03-03 17:50:01] Production.INFO: ==19897== Releasing lock... [2025-03-03 17:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:50:01] Production.INFO: ==19899== Lock acquired, processing the job... [2025-03-03 12:50:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:50:02] Production.INFO: ==19899== Releasing lock... [2025-03-03 12:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:50:02] Production.INFO: ==19901== Lock acquired, processing the job... [2025-03-03 17:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:50:02] Production.INFO: ==19901== Releasing lock... [2025-03-03 17:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:50:03] Production.INFO: ==19905== Lock acquired, processing the job... [2025-03-03 12:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:50:03] Production.INFO: ==19918== Lock acquired, processing the job... [2025-03-03 12:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:50:03] Production.INFO: ==19916== Lock acquired, processing the job... [2025-03-03 12:50:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 12:50:03] Production.INFO: ==19903== Lock acquired, processing the job... [2025-03-03 12:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 12:50:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:50:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:50:03] Production.INFO: count ==13 [2025-03-03 12:50:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:50:03] Production.INFO: count ==21 [2025-03-03 12:50:03] Production.INFO: ==19910== Lock acquired, processing the job... [2025-03-03 12:50:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:50:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598574') start [2025-03-03 12:50:04] Production.INFO: ==19912== Lock acquired, processing the job... [2025-03-03 12:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:50:04] Production.INFO: ==19907== Lock acquired, processing the job... [2025-03-03 12:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598574') end [2025-03-03 12:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:50:04] Production.INFO: 1 [2025-03-03 12:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:50:04] Production.INFO: ==19914== Lock acquired, processing the job... [2025-03-03 12:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:50:04] Production.ERROR: CronJob PID - 19905 [2025-03-03 12:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 12:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 12:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:50:00 [2025-03-03 12:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:50:04] Production.ERROR: CronJob PID - 19907 [2025-03-03 12:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 12:50:04] Production.ERROR: CronJob ID - 7 [2025-03-03 12:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:50:00 [2025-03-03 12:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:50:04] Production.ERROR: CronJob PID - 19910 [2025-03-03 12:50:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 12:50:04] Production.ERROR: CronJob ID - 10 [2025-03-03 12:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:50:00 [2025-03-03 12:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:50:04] Production.ERROR: CronJob PID - 19912 [2025-03-03 12:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 12:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 12:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:50:00 [2025-03-03 12:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:50:04] Production.ERROR: CronJob PID - 19916 [2025-03-03 12:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 12:50:04] Production.ERROR: CronJob ID - 17 [2025-03-03 12:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:50:00 [2025-03-03 12:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 12:50:04] Production.ERROR: CronJob PID - 19918 [2025-03-03 12:50:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 12:50:04] Production.ERROR: CronJob ID - 19 [2025-03-03 12:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 12:50:00 [2025-03-03 12:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 12:50:04] Production.INFO: Account Balance Start. [2025-03-03 12:50:04] Production.INFO: CreateAllLog Start [2025-03-03 12:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:50:04] Production.INFO: 117 [2025-03-03 12:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:50:04] Production.INFO: ==19918== Releasing lock... [2025-03-03 12:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 12:50:04] Production.INFO: ==19903== Releasing lock... [2025-03-03 12:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 12:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 12:50:04] Production.ERROR: done [2025-03-03 12:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 12:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598577', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 12:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: ==19907== Releasing lock... [2025-03-03 12:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.ERROR: done [2025-03-03 12:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.ERROR: done [2025-03-03 12:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:50:05] Production.INFO: Total Charge 0 [2025-03-03 12:50:05] Production.INFO: CreateAllLog End [2025-03-03 12:50:05] Production.INFO: Account Balance End. [2025-03-03 12:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:50:05] Production.INFO: ==19912== Releasing lock... [2025-03-03 12:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:50:06 [end_date_ymd] => 2025-03-03 12:50:06 [RateCDR] => 1 ) [2025-03-03 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:50:06' and `end` < '2025-03-03 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598577', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 12:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 12:50:09] Production.INFO: ProcessCDR(1,14598577,1,1,2) [2025-03-03 12:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598577,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598577,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:50:09] Production.INFO: ==19916== Releasing lock... [2025-03-03 12:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 12:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 12:50:15] Production.ERROR: CronJobId end10 [2025-03-03 12:50:15] Production.INFO: ==19910== Releasing lock... [2025-03-03 12:50:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:50:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:50:17] Production.INFO: call_cost start [2025-03-03 12:50:17] Production.INFO: call_cost end [2025-03-03 12:50:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:50:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:50:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:50:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:50:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:50:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:50:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:50:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:50:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:50:18] Production.INFO: ==19905== Releasing lock... [2025-03-03 12:50:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:50:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:50:19] Production.INFO: count ==6366 [2025-03-03 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:50:06 - End Time 2025-03-03 12:50:06 [2025-03-03 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598578', 'tblTempUsageDetail_20' ) start [2025-03-03 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598578', 'tblTempUsageDetail_20' ) end [2025-03-03 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598578', 'tblTempVendorCDR_20' ) start [2025-03-03 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598578', 'tblTempVendorCDR_20' ) end [2025-03-03 12:50:23] Production.INFO: ProcessCDR(1,14598578,1,1,2) [2025-03-03 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598578', 'tblTempUsageDetail_20' ) start [2025-03-03 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598578', 'tblTempUsageDetail_20' ) end [2025-03-03 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:50:28] Production.INFO: ==19914== Releasing lock... [2025-03-03 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:50:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:51:01] Production.INFO: ==19979== Lock acquired, processing the job... [2025-03-03 17:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:51:01] Production.INFO: neon service started [2025-03-03 17:51:01] Production.INFO: neon service started [2025-03-03 17:51:01] Production.INFO: ==19979== Releasing lock... [2025-03-03 17:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:51:02] Production.INFO: ==19981== Lock acquired, processing the job... [2025-03-03 12:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:51:02] Production.INFO: ==19981== Releasing lock... [2025-03-03 12:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:51:02] Production.INFO: ==19983== Lock acquired, processing the job... [2025-03-03 17:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:51:02] Production.INFO: ==19983== Releasing lock... [2025-03-03 17:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:51:03] Production.INFO: ==19986== Lock acquired, processing the job... [2025-03-03 12:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:51:03] Production.INFO: ==19990== Lock acquired, processing the job... [2025-03-03 12:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:51:03] Production.INFO: ==19992== Lock acquired, processing the job... [2025-03-03 12:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:51:03] Production.INFO: ==19988== Lock acquired, processing the job... [2025-03-03 12:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:51:03] Production.INFO: Account Balance Start. [2025-03-03 12:51:03] Production.INFO: CreateAllLog Start [2025-03-03 12:51:03] Production.INFO: 117 [2025-03-03 12:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:51:03] Production.INFO: ==19994== Lock acquired, processing the job... [2025-03-03 12:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: ==19996== Lock acquired, processing the job... [2025-03-03 12:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: ==19988== Releasing lock... [2025-03-03 12:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: count ==13 [2025-03-03 12:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:51:04] Production.INFO: count ==21 [2025-03-03 12:51:04] Production.ERROR: done [2025-03-03 12:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598582') start [2025-03-03 12:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.ERROR: done [2025-03-03 12:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598582') end [2025-03-03 12:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:51:04] Production.INFO: 1 [2025-03-03 12:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: ==19996== Releasing lock... [2025-03-03 12:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:51:05] Production.INFO: Total Charge 0 [2025-03-03 12:51:05] Production.INFO: CreateAllLog End [2025-03-03 12:51:05] Production.INFO: Account Balance End. [2025-03-03 12:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:51:05] Production.INFO: ==19992== Releasing lock... [2025-03-03 12:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:51:05 [end_date_ymd] => 2025-03-03 12:51:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 09:51:05' and `end` < '2025-03-03 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-03-03 12:51:13] Production.ERROR: CronJobId end10 [2025-03-03 12:51:13] Production.INFO: ==19990== Releasing lock... [2025-03-03 12:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:51:14] Production.INFO: call_cost start [2025-03-03 12:51:14] Production.INFO: call_cost end [2025-03-03 12:51:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:51:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:51:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:51:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:51:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:51:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:51:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:51:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:51:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:51:15] Production.INFO: ==19986== Releasing lock... [2025-03-03 12:51:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:51:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:51:19] Production.INFO: count ==6328 [2025-03-03 12:51:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:51:05 - End Time 2025-03-03 12:51:05 [2025-03-03 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598583', 'tblTempUsageDetail_20' ) start [2025-03-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598583', 'tblTempUsageDetail_20' ) end [2025-03-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598583', 'tblTempVendorCDR_20' ) start [2025-03-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598583', 'tblTempVendorCDR_20' ) end [2025-03-03 12:51:22] Production.INFO: ProcessCDR(1,14598583,1,1,2) [2025-03-03 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598583', 'tblTempUsageDetail_20' ) start [2025-03-03 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598583', 'tblTempUsageDetail_20' ) end [2025-03-03 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:51:26] Production.INFO: ==19994== Releasing lock... [2025-03-03 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:51:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:52:02] Production.INFO: ==20058== Lock acquired, processing the job... [2025-03-03 17:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:52:02] Production.INFO: neon service started [2025-03-03 17:52:02] Production.INFO: neon service started [2025-03-03 17:52:02] Production.INFO: ==20058== Releasing lock... [2025-03-03 17:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:52:02] Production.INFO: ==20062== Lock acquired, processing the job... [2025-03-03 17:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:52:02] Production.INFO: ==20062== Releasing lock... [2025-03-03 17:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:52:02] Production.INFO: ==20060== Lock acquired, processing the job... [2025-03-03 12:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:52:03] Production.INFO: ==20060== Releasing lock... [2025-03-03 12:52:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:52:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:52:03] Production.INFO: ==20065== Lock acquired, processing the job... [2025-03-03 12:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:52:04] Production.INFO: ==20067== Lock acquired, processing the job... [2025-03-03 12:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:52:04] Production.INFO: ==20069== Lock acquired, processing the job... [2025-03-03 12:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:52:04] Production.INFO: ==20073== Lock acquired, processing the job... [2025-03-03 12:52:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:52:04] Production.INFO: ==20067== Releasing lock... [2025-03-03 12:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:52:04] Production.INFO: ==20071== Lock acquired, processing the job... [2025-03-03 12:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:52:04] Production.INFO: ==20075== Lock acquired, processing the job... [2025-03-03 12:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:52:04] Production.INFO: Account Balance Start. [2025-03-03 12:52:04] Production.INFO: CreateAllLog Start [2025-03-03 12:52:04] Production.INFO: 117 [2025-03-03 12:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:04] Production.INFO: count ==13 [2025-03-03 12:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:52:04] Production.INFO: count ==21 [2025-03-03 12:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598586') start [2025-03-03 12:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598586') end [2025-03-03 12:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:52:04] Production.INFO: 1 [2025-03-03 12:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:52:04] Production.ERROR: done [2025-03-03 12:52:04] Production.INFO: ==20075== Releasing lock... [2025-03-03 12:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-11 [2025-03-03 12:52:05] Production.ERROR: done [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-12 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-13 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:52:06] Production.INFO: Reseller ==> 0 [2025-03-03 12:52:06] Production.INFO: Total Charge 0 [2025-03-03 12:52:06] Production.INFO: CreateAllLog End [2025-03-03 12:52:06] Production.INFO: Account Balance End. [2025-03-03 12:52:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:52:06] Production.INFO: ==20071== Releasing lock... [2025-03-03 12:52:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:52:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:52:06 [end_date_ymd] => 2025-03-03 12:52:06 [RateCDR] => 1 ) [2025-03-03 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:52:06' and `end` < '2025-03-03 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:52:13] Production.ERROR: CronJobId end10 [2025-03-03 12:52:13] Production.INFO: ==20069== Releasing lock... [2025-03-03 12:52:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:52:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:52:16] Production.INFO: call_cost start [2025-03-03 12:52:16] Production.INFO: call_cost end [2025-03-03 12:52:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:52:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:52:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:52:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:52:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:52:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:52:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:52:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:52:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:52:17] Production.INFO: ==20065== Releasing lock... [2025-03-03 12:52:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:52:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:52:19] Production.INFO: count ==6331 [2025-03-03 12:52:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:52:06 - End Time 2025-03-03 12:52:06 [2025-03-03 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598588', 'tblTempUsageDetail_20' ) start [2025-03-03 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598588', 'tblTempUsageDetail_20' ) end [2025-03-03 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598588', 'tblTempVendorCDR_20' ) start [2025-03-03 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598588', 'tblTempVendorCDR_20' ) end [2025-03-03 12:52:22] Production.INFO: ProcessCDR(1,14598588,1,1,2) [2025-03-03 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598588', 'tblTempUsageDetail_20' ) start [2025-03-03 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598588', 'tblTempUsageDetail_20' ) end [2025-03-03 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:52:27] Production.INFO: ==20073== Releasing lock... [2025-03-03 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:52:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:53:01] Production.INFO: ==20139== Lock acquired, processing the job... [2025-03-03 17:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:53:01] Production.INFO: neon service started [2025-03-03 17:53:01] Production.INFO: neon service started [2025-03-03 17:53:01] Production.INFO: ==20139== Releasing lock... [2025-03-03 17:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:53:02] Production.INFO: ==20141== Lock acquired, processing the job... [2025-03-03 12:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:53:02] Production.INFO: ==20143== Lock acquired, processing the job... [2025-03-03 17:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:53:02] Production.INFO: ==20143== Releasing lock... [2025-03-03 17:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:53:02] Production.INFO: ==20141== Releasing lock... [2025-03-03 12:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:53:03] Production.INFO: ==20146== Lock acquired, processing the job... [2025-03-03 12:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:53:03] Production.INFO: ==20152== Lock acquired, processing the job... [2025-03-03 12:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:53:03] Production.INFO: ==20156== Lock acquired, processing the job... [2025-03-03 12:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:53:03] Production.INFO: Account Balance Start. [2025-03-03 12:53:03] Production.INFO: CreateAllLog Start [2025-03-03 12:53:03] Production.INFO: 117 [2025-03-03 12:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:53:03] Production.INFO: ==20148== Lock acquired, processing the job... [2025-03-03 12:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:53:03] Production.INFO: count ==13 [2025-03-03 12:53:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:53:03] Production.INFO: count ==21 [2025-03-03 12:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598591') start [2025-03-03 12:53:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: ==20150== Lock acquired, processing the job... [2025-03-03 12:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:53:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: ==20154== Lock acquired, processing the job... [2025-03-03 12:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598591') end [2025-03-03 12:53:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:53:03] Production.INFO: 1 [2025-03-03 12:53:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:53:03] Production.INFO: Date 2025-02-14 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: ==20156== Releasing lock... [2025-03-03 12:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:53:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:53:03] Production.INFO: Date 2025-02-15 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: Date 2025-02-16 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:03] Production.INFO: Date 2025-02-17 [2025-03-03 12:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: ==20148== Releasing lock... [2025-03-03 12:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.ERROR: done [2025-03-03 12:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.ERROR: done [2025-03-03 12:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-03-02 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Date 2025-03-03 [2025-03-03 12:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:53:04] Production.INFO: Total Charge 0 [2025-03-03 12:53:04] Production.INFO: CreateAllLog End [2025-03-03 12:53:04] Production.INFO: Account Balance End. [2025-03-03 12:53:04] Production.ERROR: CronJobId end 12 [2025-03-03 12:53:04] Production.INFO: ==20152== Releasing lock... [2025-03-03 12:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:53:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:53:05 [end_date_ymd] => 2025-03-03 12:53:05 [RateCDR] => 1 ) [2025-03-03 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:53:05' and `end` < '2025-03-03 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:53:13] Production.ERROR: CronJobId end10 [2025-03-03 12:53:13] Production.INFO: ==20150== Releasing lock... [2025-03-03 12:53:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:53:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:53:15] Production.INFO: call_cost start [2025-03-03 12:53:15] Production.INFO: call_cost end [2025-03-03 12:53:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:53:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:53:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:53:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:53:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:53:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:53:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:53:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:53:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:53:16] Production.INFO: ==20146== Releasing lock... [2025-03-03 12:53:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:53:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:53:18] Production.INFO: count ==6311 [2025-03-03 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:53:05 - End Time 2025-03-03 12:53:05 [2025-03-03 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598593', 'tblTempUsageDetail_20' ) start [2025-03-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598593', 'tblTempUsageDetail_20' ) end [2025-03-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598593', 'tblTempVendorCDR_20' ) start [2025-03-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598593', 'tblTempVendorCDR_20' ) end [2025-03-03 12:53:21] Production.INFO: ProcessCDR(1,14598593,1,1,2) [2025-03-03 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598593', 'tblTempUsageDetail_20' ) start [2025-03-03 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598593', 'tblTempUsageDetail_20' ) end [2025-03-03 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:53:26] Production.INFO: ==20154== Releasing lock... [2025-03-03 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:53:26] Production.INFO: 75.25 MB #Memory Used# [2025-03-03 17:54:02] Production.INFO: ==20216== Lock acquired, processing the job... [2025-03-03 17:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:54:02] Production.INFO: neon service started [2025-03-03 17:54:02] Production.INFO: neon service started [2025-03-03 17:54:02] Production.INFO: ==20216== Releasing lock... [2025-03-03 17:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:54:02] Production.INFO: ==20218== Lock acquired, processing the job... [2025-03-03 12:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:54:02] Production.INFO: ==20218== Releasing lock... [2025-03-03 12:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:54:03] Production.INFO: ==20220== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:54:03] Production.INFO: ==20220== Releasing lock... [2025-03-03 17:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:54:03] Production.INFO: ==20225== Lock acquired, processing the job... [2025-03-03 12:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:54:03] Production.INFO: ==20222== Lock acquired, processing the job... [2025-03-03 12:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:54:04] Production.INFO: ==20231== Lock acquired, processing the job... [2025-03-03 12:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:54:04] Production.INFO: ==20227== Lock acquired, processing the job... [2025-03-03 12:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:54:04] Production.INFO: ==20229== Lock acquired, processing the job... [2025-03-03 12:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:54:04] Production.INFO: ==20233== Lock acquired, processing the job... [2025-03-03 12:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:54:04] Production.INFO: Account Balance Start. [2025-03-03 12:54:04] Production.INFO: CreateAllLog Start [2025-03-03 12:54:04] Production.INFO: 117 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: count ==13 [2025-03-03 12:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:54:04] Production.INFO: count ==21 [2025-03-03 12:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598597') start [2025-03-03 12:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.ERROR: done [2025-03-03 12:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:54:04] Production.INFO: ==20225== Releasing lock... [2025-03-03 12:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598597') end [2025-03-03 12:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:54:04] Production.INFO: 1 [2025-03-03 12:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: ==20233== Releasing lock... [2025-03-03 12:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:54:04] Production.ERROR: done [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:54:05] Production.INFO: Total Charge 0 [2025-03-03 12:54:05] Production.INFO: CreateAllLog End [2025-03-03 12:54:05] Production.INFO: Account Balance End. [2025-03-03 12:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:54:05] Production.INFO: ==20229== Releasing lock... [2025-03-03 12:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:54:05 [end_date_ymd] => 2025-03-03 12:54:05 [RateCDR] => 1 ) [2025-03-03 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:54:05' and `end` < '2025-03-03 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:54:13] Production.ERROR: CronJobId end10 [2025-03-03 12:54:13] Production.INFO: ==20227== Releasing lock... [2025-03-03 12:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:54:15] Production.INFO: call_cost start [2025-03-03 12:54:15] Production.INFO: call_cost end [2025-03-03 12:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:54:16] Production.INFO: ==20222== Releasing lock... [2025-03-03 12:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:54:18] Production.INFO: count ==6317 [2025-03-03 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:54:05 - End Time 2025-03-03 12:54:05 [2025-03-03 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598598', 'tblTempUsageDetail_20' ) start [2025-03-03 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598598', 'tblTempUsageDetail_20' ) end [2025-03-03 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598598', 'tblTempVendorCDR_20' ) start [2025-03-03 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598598', 'tblTempVendorCDR_20' ) end [2025-03-03 12:54:21] Production.INFO: ProcessCDR(1,14598598,1,1,2) [2025-03-03 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598598', 'tblTempUsageDetail_20' ) start [2025-03-03 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598598', 'tblTempUsageDetail_20' ) end [2025-03-03 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:54:27] Production.INFO: ==20231== Releasing lock... [2025-03-03 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:54:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-03 17:55:01] Production.INFO: ==20293== Lock acquired, processing the job... [2025-03-03 17:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:55:01] Production.INFO: neon service started [2025-03-03 17:55:01] Production.INFO: neon service started [2025-03-03 17:55:01] Production.INFO: ==20293== Releasing lock... [2025-03-03 17:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:55:02] Production.INFO: ==20297== Lock acquired, processing the job... [2025-03-03 17:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:55:02] Production.INFO: ==20297== Releasing lock... [2025-03-03 17:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:55:02] Production.INFO: ==20295== Lock acquired, processing the job... [2025-03-03 12:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:55:02] Production.INFO: ==20295== Releasing lock... [2025-03-03 12:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:55:03] Production.INFO: ==20303== Lock acquired, processing the job... [2025-03-03 12:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:55:03] Production.INFO: ==20306== Lock acquired, processing the job... [2025-03-03 12:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:55:03] Production.INFO: Account Balance Start. [2025-03-03 12:55:03] Production.INFO: CreateAllLog Start [2025-03-03 12:55:03] Production.INFO: 117 [2025-03-03 12:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:03] Production.INFO: ==20299== Lock acquired, processing the job... [2025-03-03 12:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:55:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:03] Production.INFO: ==20301== Lock acquired, processing the job... [2025-03-03 12:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:55:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:55:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:03] Production.INFO: ==20308== Lock acquired, processing the job... [2025-03-03 12:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:55:03] Production.INFO: ==20310== Lock acquired, processing the job... [2025-03-03 12:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:55:03] Production.INFO: Date 2025-02-13 [2025-03-03 12:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: ==20301== Releasing lock... [2025-03-03 12:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:55:04] Production.INFO: count ==13 [2025-03-03 12:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:55:04] Production.INFO: count ==21 [2025-03-03 12:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598602') start [2025-03-03 12:55:04] Production.ERROR: done [2025-03-03 12:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598602') end [2025-03-03 12:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:55:04] Production.INFO: 1 [2025-03-03 12:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: ==20310== Releasing lock... [2025-03-03 12:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.ERROR: done [2025-03-03 12:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:55:05] Production.INFO: Total Charge 0 [2025-03-03 12:55:05] Production.INFO: CreateAllLog End [2025-03-03 12:55:05] Production.INFO: Account Balance End. [2025-03-03 12:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:55:05] Production.INFO: ==20306== Releasing lock... [2025-03-03 12:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:55:05 [end_date_ymd] => 2025-03-03 12:55:05 [RateCDR] => 1 ) [2025-03-03 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:55:05' and `end` < '2025-03-03 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:55:13] Production.ERROR: CronJobId end10 [2025-03-03 12:55:13] Production.INFO: ==20303== Releasing lock... [2025-03-03 12:55:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:55:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:55:15] Production.INFO: call_cost start [2025-03-03 12:55:15] Production.INFO: call_cost end [2025-03-03 12:55:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:55:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:55:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:55:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:55:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:55:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:55:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:55:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:55:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:55:16] Production.INFO: ==20299== Releasing lock... [2025-03-03 12:55:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:55:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:55:19] Production.INFO: count ==6339 [2025-03-03 12:55:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:55:05 - End Time 2025-03-03 12:55:05 [2025-03-03 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598603', 'tblTempUsageDetail_20' ) start [2025-03-03 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598603', 'tblTempUsageDetail_20' ) end [2025-03-03 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598603', 'tblTempVendorCDR_20' ) start [2025-03-03 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598603', 'tblTempVendorCDR_20' ) end [2025-03-03 12:55:22] Production.INFO: ProcessCDR(1,14598603,1,1,2) [2025-03-03 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598603', 'tblTempUsageDetail_20' ) start [2025-03-03 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598603', 'tblTempUsageDetail_20' ) end [2025-03-03 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:55:27] Production.INFO: ==20308== Releasing lock... [2025-03-03 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:55:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:56:02] Production.INFO: ==20374== Lock acquired, processing the job... [2025-03-03 17:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:56:02] Production.INFO: neon service started [2025-03-03 17:56:02] Production.INFO: neon service started [2025-03-03 17:56:02] Production.INFO: ==20374== Releasing lock... [2025-03-03 17:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:56:02] Production.INFO: ==20378== Lock acquired, processing the job... [2025-03-03 17:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:56:02] Production.INFO: ==20378== Releasing lock... [2025-03-03 17:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:56:02] Production.INFO: ==20376== Lock acquired, processing the job... [2025-03-03 12:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:56:03] Production.INFO: ==20376== Releasing lock... [2025-03-03 12:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:56:04] Production.INFO: ==20382== Lock acquired, processing the job... [2025-03-03 12:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:56:04] Production.INFO: ==20380== Lock acquired, processing the job... [2025-03-03 12:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:56:04] Production.INFO: ==20389== Lock acquired, processing the job... [2025-03-03 12:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:56:04] Production.INFO: ==20385== Lock acquired, processing the job... [2025-03-03 12:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:56:04] Production.INFO: ==20387== Lock acquired, processing the job... [2025-03-03 12:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:56:04] Production.INFO: ==20382== Releasing lock... [2025-03-03 12:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:56:04] Production.INFO: ==20391== Lock acquired, processing the job... [2025-03-03 12:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:56:04] Production.ERROR: done [2025-03-03 12:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:56:04] Production.INFO: Account Balance Start. [2025-03-03 12:56:04] Production.INFO: CreateAllLog Start [2025-03-03 12:56:04] Production.INFO: 117 [2025-03-03 12:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:04] Production.INFO: count ==13 [2025-03-03 12:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:56:04] Production.INFO: count ==21 [2025-03-03 12:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598606') start [2025-03-03 12:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:04] Production.ERROR: done [2025-03-03 12:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598606') end [2025-03-03 12:56:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:56:05] Production.INFO: 1 [2025-03-03 12:56:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:56:05] Production.INFO: Date 2025-02-11 [2025-03-03 12:56:05] Production.INFO: ==20391== Releasing lock... [2025-03-03 12:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-12 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-13 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-14 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-15 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-16 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-17 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:56:05] Production.INFO: Total Charge 0 [2025-03-03 12:56:06] Production.INFO: CreateAllLog End [2025-03-03 12:56:06] Production.INFO: Account Balance End. [2025-03-03 12:56:06] Production.ERROR: CronJobId end 12 [2025-03-03 12:56:06] Production.INFO: ==20387== Releasing lock... [2025-03-03 12:56:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:56:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:56:06 [end_date_ymd] => 2025-03-03 12:56:06 [RateCDR] => 1 ) [2025-03-03 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:56:06' and `end` < '2025-03-03 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:56:14] Production.ERROR: CronJobId end10 [2025-03-03 12:56:14] Production.INFO: ==20385== Releasing lock... [2025-03-03 12:56:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:56:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:56:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:56:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:56:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:56:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:56:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:56:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:56:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:56:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:56:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:56:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:56:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:56:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:56:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:56:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:56:16] Production.INFO: call_cost start [2025-03-03 12:56:16] Production.INFO: call_cost end [2025-03-03 12:56:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:56:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:56:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:56:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:56:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:56:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:56:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:56:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:56:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:56:17] Production.INFO: ==20380== Releasing lock... [2025-03-03 12:56:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:56:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:56:19] Production.INFO: count ==6350 [2025-03-03 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:56:06 - End Time 2025-03-03 12:56:06 [2025-03-03 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598608', 'tblTempUsageDetail_20' ) start [2025-03-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598608', 'tblTempUsageDetail_20' ) end [2025-03-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598608', 'tblTempVendorCDR_20' ) start [2025-03-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598608', 'tblTempVendorCDR_20' ) end [2025-03-03 12:56:22] Production.INFO: ProcessCDR(1,14598608,1,1,2) [2025-03-03 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598608', 'tblTempUsageDetail_20' ) start [2025-03-03 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598608', 'tblTempUsageDetail_20' ) end [2025-03-03 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:56:28] Production.INFO: ==20389== Releasing lock... [2025-03-03 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:56:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 17:57:01] Production.INFO: ==20452== Lock acquired, processing the job... [2025-03-03 17:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:57:01] Production.INFO: neon service started [2025-03-03 17:57:01] Production.INFO: neon service started [2025-03-03 17:57:01] Production.INFO: ==20452== Releasing lock... [2025-03-03 17:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:57:02] Production.INFO: ==20454== Lock acquired, processing the job... [2025-03-03 12:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 12:57:02] Production.INFO: ==20454== Releasing lock... [2025-03-03 12:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:57:02] Production.INFO: ==20456== Lock acquired, processing the job... [2025-03-03 17:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:57:02] Production.INFO: ==20456== Releasing lock... [2025-03-03 17:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:57:03] Production.INFO: ==20461== Lock acquired, processing the job... [2025-03-03 12:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:57:03] Production.INFO: ==20467== Lock acquired, processing the job... [2025-03-03 12:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:57:03] Production.INFO: ==20459== Lock acquired, processing the job... [2025-03-03 12:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:57:03] Production.INFO: ==20461== Releasing lock... [2025-03-03 12:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:57:03] Production.INFO: ==20465== Lock acquired, processing the job... [2025-03-03 12:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:57:03] Production.INFO: ==20463== Lock acquired, processing the job... [2025-03-03 12:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:57:03] Production.INFO: Account Balance Start. [2025-03-03 12:57:03] Production.INFO: CreateAllLog Start [2025-03-03 12:57:03] Production.INFO: 117 [2025-03-03 12:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 12:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:57:03] Production.INFO: ==20469== Lock acquired, processing the job... [2025-03-03 12:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:57:03] Production.INFO: Date 2025-02-09 [2025-03-03 12:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:03] Production.INFO: Date 2025-02-10 [2025-03-03 12:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:03] Production.INFO: Date 2025-02-11 [2025-03-03 12:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:03] Production.ERROR: done [2025-03-03 12:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:57:03] Production.INFO: Date 2025-02-12 [2025-03-03 12:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:57:04] Production.INFO: count ==13 [2025-03-03 12:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:57:04] Production.INFO: count ==21 [2025-03-03 12:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598612') start [2025-03-03 12:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.ERROR: done [2025-03-03 12:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598612') end [2025-03-03 12:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:57:04] Production.INFO: 1 [2025-03-03 12:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: ==20469== Releasing lock... [2025-03-03 12:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:04] Production.INFO: Date 2025-03-01 [2025-03-03 12:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:57:05] Production.INFO: Total Charge 0 [2025-03-03 12:57:05] Production.INFO: CreateAllLog End [2025-03-03 12:57:05] Production.INFO: Account Balance End. [2025-03-03 12:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:57:05] Production.INFO: ==20465== Releasing lock... [2025-03-03 12:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:57:05 [end_date_ymd] => 2025-03-03 12:57:05 [RateCDR] => 1 ) [2025-03-03 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:57:05' and `end` < '2025-03-03 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:57:12] Production.ERROR: CronJobId end10 [2025-03-03 12:57:12] Production.INFO: ==20463== Releasing lock... [2025-03-03 12:57:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:57:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:57:15] Production.INFO: call_cost start [2025-03-03 12:57:15] Production.INFO: call_cost end [2025-03-03 12:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:57:16] Production.INFO: ==20459== Releasing lock... [2025-03-03 12:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:57:18] Production.INFO: count ==6375 [2025-03-03 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:57:05 - End Time 2025-03-03 12:57:05 [2025-03-03 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598613', 'tblTempUsageDetail_20' ) start [2025-03-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598613', 'tblTempUsageDetail_20' ) end [2025-03-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598613', 'tblTempVendorCDR_20' ) start [2025-03-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598613', 'tblTempVendorCDR_20' ) end [2025-03-03 12:57:21] Production.INFO: ProcessCDR(1,14598613,1,1,2) [2025-03-03 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598613', 'tblTempUsageDetail_20' ) start [2025-03-03 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598613', 'tblTempUsageDetail_20' ) end [2025-03-03 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:57:27] Production.INFO: ==20467== Releasing lock... [2025-03-03 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:57:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 17:58:02] Production.INFO: ==20533== Lock acquired, processing the job... [2025-03-03 17:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:58:02] Production.INFO: neon service started [2025-03-03 17:58:02] Production.INFO: neon service started [2025-03-03 17:58:02] Production.INFO: ==20533== Releasing lock... [2025-03-03 17:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:58:02] Production.INFO: ==20535== Lock acquired, processing the job... [2025-03-03 12:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:58:02] Production.INFO: ==20537== Lock acquired, processing the job... [2025-03-03 17:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 12:58:02] Production.INFO: ==20535== Releasing lock... [2025-03-03 12:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:58:02] Production.INFO: ==20537== Releasing lock... [2025-03-03 17:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:58:03] Production.INFO: ==20539== Lock acquired, processing the job... [2025-03-03 12:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:58:03] Production.INFO: ==20541== Lock acquired, processing the job... [2025-03-03 12:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:58:03] Production.INFO: ==20543== Lock acquired, processing the job... [2025-03-03 12:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:58:03] Production.INFO: ==20550== Lock acquired, processing the job... [2025-03-03 12:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:58:04] Production.INFO: ==20545== Lock acquired, processing the job... [2025-03-03 12:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:58:04] Production.INFO: ==20548== Lock acquired, processing the job... [2025-03-03 12:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:58:04] Production.INFO: count ==13 [2025-03-03 12:58:04] Production.INFO: Account Balance Start. [2025-03-03 12:58:04] Production.INFO: CreateAllLog Start [2025-03-03 12:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:58:04] Production.INFO: ==20541== Releasing lock... [2025-03-03 12:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:58:04] Production.INFO: 117 [2025-03-03 12:58:04] Production.INFO: count ==21 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598616') start [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598616') end [2025-03-03 12:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:58:04] Production.INFO: 1 [2025-03-03 12:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:58:04] Production.INFO: ==20550== Releasing lock... [2025-03-03 12:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.ERROR: done [2025-03-03 12:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:58:04] Production.ERROR: done [2025-03-03 12:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-18 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:58:05] Production.INFO: Total Charge 0 [2025-03-03 12:58:05] Production.INFO: CreateAllLog End [2025-03-03 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:58:05 [end_date_ymd] => 2025-03-03 12:58:05 [RateCDR] => 1 ) [2025-03-03 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:58:05' and `end` < '2025-03-03 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:58:05] Production.INFO: Account Balance End. [2025-03-03 12:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:58:05] Production.INFO: ==20545== Releasing lock... [2025-03-03 12:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:58:13] Production.ERROR: CronJobId end10 [2025-03-03 12:58:13] Production.INFO: ==20543== Releasing lock... [2025-03-03 12:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:58:16] Production.INFO: call_cost start [2025-03-03 12:58:16] Production.INFO: call_cost end [2025-03-03 12:58:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:58:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:58:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:58:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:58:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:58:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:58:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:58:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:58:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:58:17] Production.INFO: ==20539== Releasing lock... [2025-03-03 12:58:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:58:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:58:18] Production.INFO: count ==6408 [2025-03-03 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-03 09:58:05 - End Time 2025-03-03 12:58:05 [2025-03-03 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598618', 'tblTempUsageDetail_20' ) start [2025-03-03 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598618', 'tblTempUsageDetail_20' ) end [2025-03-03 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598618', 'tblTempVendorCDR_20' ) start [2025-03-03 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598618', 'tblTempVendorCDR_20' ) end [2025-03-03 12:58:22] Production.INFO: ProcessCDR(1,14598618,1,1,2) [2025-03-03 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598618', 'tblTempUsageDetail_20' ) start [2025-03-03 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598618', 'tblTempUsageDetail_20' ) end [2025-03-03 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:58:27] Production.INFO: ==20548== Releasing lock... [2025-03-03 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:58:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 17:59:01] Production.INFO: ==20654== Lock acquired, processing the job... [2025-03-03 17:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 17:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 17:59:01] Production.INFO: neon service started [2025-03-03 17:59:01] Production.INFO: neon service started [2025-03-03 17:59:01] Production.INFO: ==20654== Releasing lock... [2025-03-03 17:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 17:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 12:59:02] Production.INFO: ==20658== Lock acquired, processing the job... [2025-03-03 12:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:59:02] Production.INFO: ==20660== Lock acquired, processing the job... [2025-03-03 17:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:59:02] Production.INFO: ==20660== Releasing lock... [2025-03-03 17:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 17:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 12:59:02] Production.INFO: ==20658== Releasing lock... [2025-03-03 12:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 12:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 12:59:03] Production.INFO: ==20667== Lock acquired, processing the job... [2025-03-03 12:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 12:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 12:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 12:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 12:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 12:59:03] Production.INFO: ==20673== Lock acquired, processing the job... [2025-03-03 12:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 12:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:59:03] Production.INFO: ==20663== Lock acquired, processing the job... [2025-03-03 12:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 12:59:03] Production.INFO: ==20665== Lock acquired, processing the job... [2025-03-03 12:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 12:59:03] Production.INFO: count ==13 [2025-03-03 12:59:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 12:59:03] Production.INFO: count ==21 [2025-03-03 12:59:03] Production.INFO: ==20671== Lock acquired, processing the job... [2025-03-03 12:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 12:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598619') start [2025-03-03 12:59:03] Production.INFO: ==20669== Lock acquired, processing the job... [2025-03-03 12:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 12:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598619') end [2025-03-03 12:59:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 12:59:03] Production.INFO: 1 [2025-03-03 12:59:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 12:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 12:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 12:59:04] Production.INFO: Account Balance Start. [2025-03-03 12:59:04] Production.INFO: CreateAllLog Start [2025-03-03 12:59:04] Production.INFO: 117 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: ==20673== Releasing lock... [2025-03-03 12:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 12:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 12:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: ==20665== Releasing lock... [2025-03-03 12:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 12:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 12:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.ERROR: done [2025-03-03 12:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.ERROR: done [2025-03-03 12:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 12:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 12:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 12:59:05] Production.INFO: Total Charge 0 [2025-03-03 12:59:05] Production.INFO: CreateAllLog End [2025-03-03 12:59:05] Production.INFO: Account Balance End. [2025-03-03 12:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 12:59:05] Production.INFO: ==20669== Releasing lock... [2025-03-03 12:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 12:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 09:59:06 [end_date_ymd] => 2025-03-03 12:59:06 [RateCDR] => 1 ) [2025-03-03 12:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 09:59:06' and `end` < '2025-03-03 12:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 12:59:13] Production.ERROR: CronJobId end10 [2025-03-03 12:59:13] Production.INFO: ==20667== Releasing lock... [2025-03-03 12:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 12:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 12:59:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 12:59:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 12:59:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 12:59:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 12:59:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 12:59:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 12:59:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 12:59:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 12:59:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 12:59:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 12:59:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 12:59:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 12:59:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 12:59:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 12:59:16] Production.INFO: call_cost start [2025-03-03 12:59:16] Production.INFO: call_cost end [2025-03-03 12:59:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 12:59:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 12:59:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 12:59:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 12:59:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 12:59:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 12:59:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 12:59:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 12:59:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 12:59:17] Production.INFO: ==20663== Releasing lock... [2025-03-03 12:59:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 12:59:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 12:59:19] Production.INFO: count ==6378 [2025-03-03 12:59:22] Production.ERROR: pbx CDR StartTime 2025-03-03 09:59:06 - End Time 2025-03-03 12:59:06 [2025-03-03 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598623', 'tblTempUsageDetail_20' ) start [2025-03-03 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598623', 'tblTempUsageDetail_20' ) end [2025-03-03 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598623', 'tblTempVendorCDR_20' ) start [2025-03-03 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598623', 'tblTempVendorCDR_20' ) end [2025-03-03 12:59:22] Production.INFO: ProcessCDR(1,14598623,1,1,2) [2025-03-03 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598623', 'tblTempUsageDetail_20' ) start [2025-03-03 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598623', 'tblTempUsageDetail_20' ) end [2025-03-03 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 12:59:27] Production.INFO: ==20671== Releasing lock... [2025-03-03 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 12:59:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:00:02] Production.INFO: ==20734== Lock acquired, processing the job... [2025-03-03 18:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:00:02] Production.INFO: neon service started [2025-03-03 18:00:02] Production.INFO: neon service started [2025-03-03 18:00:02] Production.INFO: ==20734== Releasing lock... [2025-03-03 18:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:00:02] Production.INFO: ==20738== Lock acquired, processing the job... [2025-03-03 18:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:00:02] Production.INFO: ==20738== Releasing lock... [2025-03-03 18:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:00:02] Production.INFO: ==20736== Lock acquired, processing the job... [2025-03-03 13:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:00:03] Production.INFO: ==20736== Releasing lock... [2025-03-03 13:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:00:03] Production.INFO: ==20745== Lock acquired, processing the job... [2025-03-03 13:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:00:03] Production.INFO: ==20747== Lock acquired, processing the job... [2025-03-03 13:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:00:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:00:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:00:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:00:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:00:04] Production.INFO: ==20745== Releasing lock... [2025-03-03 13:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:00:04] Production.INFO: ==20741== Lock acquired, processing the job... [2025-03-03 13:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 13:00:04] Production.INFO: ==20755== Lock acquired, processing the job... [2025-03-03 13:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:00:04] Production.INFO: ==20743== Lock acquired, processing the job... [2025-03-03 13:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 13:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:00:04] Production.ERROR: CronJob PID - 20743 [2025-03-03 13:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 13:00:04] Production.ERROR: CronJob ID - 5 [2025-03-03 13:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:00:00 [2025-03-03 13:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:00:04] Production.ERROR: CronJob PID - 20747 [2025-03-03 13:00:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 13:00:04] Production.ERROR: CronJob ID - 10 [2025-03-03 13:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:00:00 [2025-03-03 13:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:00:04] Production.ERROR: CronJob PID - 20755 [2025-03-03 13:00:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 13:00:04] Production.ERROR: CronJob ID - 19 [2025-03-03 13:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:00:00 [2025-03-03 13:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:00:04] Production.INFO: ==20749== Lock acquired, processing the job... [2025-03-03 13:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:00:04] Production.INFO: ==20753== Lock acquired, processing the job... [2025-03-03 13:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 13:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:00:04] Production.INFO: count ==13 [2025-03-03 13:00:04] Production.INFO: ==20751== Lock acquired, processing the job... [2025-03-03 13:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:00:04] Production.INFO: count ==21 [2025-03-03 13:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598625') start [2025-03-03 13:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 13:00:04] Production.INFO: ==20741== Releasing lock... [2025-03-03 13:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 13:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:00:05] Production.INFO: Account Balance Start. [2025-03-03 13:00:05] Production.INFO: CreateAllLog Start [2025-03-03 13:00:05] Production.INFO: 117 [2025-03-03 13:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598625') end [2025-03-03 13:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:00:05] Production.INFO: 1 [2025-03-03 13:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:00:05] Production.INFO: Date 2025-02-08 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: ==20755== Releasing lock... [2025-03-03 13:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:00:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:00:05] Production.INFO: Date 2025-02-09 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.ERROR: done [2025-03-03 13:00:05] Production.ERROR: done [2025-03-03 13:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 13:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598628', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 13:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.ERROR: done [2025-03-03 13:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-20 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-21 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-22 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-23 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-24 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-25 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-26 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-27 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-02-28 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-03-01 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-03-02 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Date 2025-03-03 [2025-03-03 13:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:00:06] Production.INFO: Total Charge 0 [2025-03-03 13:00:06] Production.INFO: CreateAllLog End [2025-03-03 13:00:06] Production.INFO: Account Balance End. [2025-03-03 13:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:00:06] Production.INFO: ==20749== Releasing lock... [2025-03-03 13:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:00:07 [end_date_ymd] => 2025-03-03 13:00:07 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:00:07' and `end` < '2025-03-03 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-03-03 13:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598628', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 13:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 13:00:10] Production.INFO: ProcessCDR(1,14598628,1,1,2) [2025-03-03 13:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598628,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598628,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:00:10] Production.INFO: ==20753== Releasing lock... [2025-03-03 13:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 13:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:00:15] Production.ERROR: CronJobId end10 [2025-03-03 13:00:15] Production.INFO: ==20747== Releasing lock... [2025-03-03 13:00:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:00:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:00:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:00:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:00:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:00:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:00:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:00:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:00:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:00:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:00:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:00:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:00:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:00:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:00:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:00:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:00:18] Production.INFO: call_cost start [2025-03-03 13:00:18] Production.INFO: call_cost end [2025-03-03 13:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:00:18] Production.INFO: ==20743== Releasing lock... [2025-03-03 13:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:00:20] Production.INFO: count ==6377 [2025-03-03 13:00:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:00:07 - End Time 2025-03-03 13:00:07 [2025-03-03 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598629', 'tblTempUsageDetail_20' ) start [2025-03-03 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598629', 'tblTempUsageDetail_20' ) end [2025-03-03 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598629', 'tblTempVendorCDR_20' ) start [2025-03-03 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598629', 'tblTempVendorCDR_20' ) end [2025-03-03 13:00:23] Production.INFO: ProcessCDR(1,14598629,1,1,2) [2025-03-03 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598629', 'tblTempUsageDetail_20' ) start [2025-03-03 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598629', 'tblTempUsageDetail_20' ) end [2025-03-03 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:00:28] Production.INFO: ==20751== Releasing lock... [2025-03-03 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:00:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:01:01] Production.INFO: ==20818== Lock acquired, processing the job... [2025-03-03 18:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:01:01] Production.INFO: neon service started [2025-03-03 18:01:01] Production.INFO: neon service started [2025-03-03 18:01:01] Production.INFO: ==20818== Releasing lock... [2025-03-03 18:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:01:02] Production.INFO: ==20834== Lock acquired, processing the job... [2025-03-03 18:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:01:02] Production.INFO: ==20834== Releasing lock... [2025-03-03 18:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:01:02] Production.INFO: ==20832== Lock acquired, processing the job... [2025-03-03 13:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:01:02] Production.INFO: ==20832== Releasing lock... [2025-03-03 13:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:01:03] Production.INFO: ==20841== Lock acquired, processing the job... [2025-03-03 13:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:01:03] Production.INFO: ==20847== Lock acquired, processing the job... [2025-03-03 13:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:01:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:01:03] Production.INFO: count ==13 [2025-03-03 13:01:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:01:03] Production.INFO: count ==21 [2025-03-03 13:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598630') start [2025-03-03 13:01:03] Production.INFO: ==20839== Lock acquired, processing the job... [2025-03-03 13:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:01:03] Production.INFO: ==20837== Lock acquired, processing the job... [2025-03-03 13:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:01:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598630') end [2025-03-03 13:01:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:01:03] Production.INFO: 1 [2025-03-03 13:01:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:01:04] Production.INFO: ==20843== Lock acquired, processing the job... [2025-03-03 13:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:01:04] Production.INFO: ==20845== Lock acquired, processing the job... [2025-03-03 13:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:01:04] Production.INFO: ==20847== Releasing lock... [2025-03-03 13:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:01:04] Production.INFO: Account Balance Start. [2025-03-03 13:01:04] Production.INFO: CreateAllLog Start [2025-03-03 13:01:04] Production.INFO: 117 [2025-03-03 13:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:04] Production.ERROR: done [2025-03-03 13:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:04] Production.INFO: ==20839== Releasing lock... [2025-03-03 13:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:04] Production.ERROR: done [2025-03-03 13:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-14 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:01:05] Production.INFO: Total Charge 0 [2025-03-03 13:01:05] Production.INFO: CreateAllLog End [2025-03-03 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:01:05 [end_date_ymd] => 2025-03-03 13:01:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:01:05' and `end` < '2025-03-03 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-03-03 13:01:05] Production.INFO: Account Balance End. [2025-03-03 13:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:01:05] Production.INFO: ==20843== Releasing lock... [2025-03-03 13:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:01:13] Production.ERROR: CronJobId end10 [2025-03-03 13:01:13] Production.INFO: ==20841== Releasing lock... [2025-03-03 13:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:01:15] Production.INFO: call_cost start [2025-03-03 13:01:15] Production.INFO: call_cost end [2025-03-03 13:01:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:01:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:01:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:01:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:01:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:01:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:01:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:01:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:01:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:01:16] Production.INFO: ==20837== Releasing lock... [2025-03-03 13:01:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:01:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:01:19] Production.INFO: count ==6405 [2025-03-03 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:01:05 - End Time 2025-03-03 13:01:05 [2025-03-03 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598634', 'tblTempUsageDetail_20' ) start [2025-03-03 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598634', 'tblTempUsageDetail_20' ) end [2025-03-03 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598634', 'tblTempVendorCDR_20' ) start [2025-03-03 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598634', 'tblTempVendorCDR_20' ) end [2025-03-03 13:01:22] Production.INFO: ProcessCDR(1,14598634,1,1,2) [2025-03-03 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598634', 'tblTempUsageDetail_20' ) start [2025-03-03 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598634', 'tblTempUsageDetail_20' ) end [2025-03-03 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:01:27] Production.INFO: ==20845== Releasing lock... [2025-03-03 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:01:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 18:02:02] Production.INFO: ==20911== Lock acquired, processing the job... [2025-03-03 18:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:02:02] Production.INFO: neon service started [2025-03-03 18:02:02] Production.INFO: neon service started [2025-03-03 18:02:02] Production.INFO: ==20911== Releasing lock... [2025-03-03 18:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:02:02] Production.INFO: ==20913== Lock acquired, processing the job... [2025-03-03 13:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:02:02] Production.INFO: ==20913== Releasing lock... [2025-03-03 13:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:02:03] Production.INFO: ==20915== Lock acquired, processing the job... [2025-03-03 18:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:02:03] Production.INFO: ==20915== Releasing lock... [2025-03-03 18:02:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:02:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:02:03] Production.INFO: ==20921== Lock acquired, processing the job... [2025-03-03 13:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:02:03] Production.INFO: ==20917== Lock acquired, processing the job... [2025-03-03 13:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:02:03] Production.INFO: ==20919== Lock acquired, processing the job... [2025-03-03 13:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:02:03] Production.INFO: ==20928== Lock acquired, processing the job... [2025-03-03 13:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:02:03] Production.INFO: ==20923== Lock acquired, processing the job... [2025-03-03 13:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:02:03] Production.INFO: ==20925== Lock acquired, processing the job... [2025-03-03 13:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:02:04] Production.INFO: Account Balance Start. [2025-03-03 13:02:04] Production.INFO: CreateAllLog Start [2025-03-03 13:02:04] Production.INFO: 117 [2025-03-03 13:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: ==20919== Releasing lock... [2025-03-03 13:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:02:04] Production.INFO: count ==13 [2025-03-03 13:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:02:04] Production.INFO: count ==21 [2025-03-03 13:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598638') start [2025-03-03 13:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598638') end [2025-03-03 13:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:02:04] Production.INFO: 1 [2025-03-03 13:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: ==20928== Releasing lock... [2025-03-03 13:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:02:04] Production.ERROR: done [2025-03-03 13:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.ERROR: done [2025-03-03 13:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:02:05] Production.INFO: Total Charge 0 [2025-03-03 13:02:05] Production.INFO: CreateAllLog End [2025-03-03 13:02:05] Production.INFO: Account Balance End. [2025-03-03 13:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:02:05] Production.INFO: ==20923== Releasing lock... [2025-03-03 13:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:02:05 [end_date_ymd] => 2025-03-03 13:02:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:02:05' and `end` < '2025-03-03 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-03-03 13:02:13] Production.ERROR: CronJobId end10 [2025-03-03 13:02:13] Production.INFO: ==20921== Releasing lock... [2025-03-03 13:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:02:16] Production.INFO: call_cost start [2025-03-03 13:02:16] Production.INFO: call_cost end [2025-03-03 13:02:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:02:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:02:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:02:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:02:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:02:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:02:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:02:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:02:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:02:17] Production.INFO: ==20917== Releasing lock... [2025-03-03 13:02:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:02:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:02:18] Production.INFO: count ==6413 [2025-03-03 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:02:05 - End Time 2025-03-03 13:02:05 [2025-03-03 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598639', 'tblTempUsageDetail_20' ) start [2025-03-03 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598639', 'tblTempUsageDetail_20' ) end [2025-03-03 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598639', 'tblTempVendorCDR_20' ) start [2025-03-03 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598639', 'tblTempVendorCDR_20' ) end [2025-03-03 13:02:22] Production.INFO: ProcessCDR(1,14598639,1,1,2) [2025-03-03 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598639', 'tblTempUsageDetail_20' ) start [2025-03-03 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598639', 'tblTempUsageDetail_20' ) end [2025-03-03 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:02:27] Production.INFO: ==20925== Releasing lock... [2025-03-03 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:02:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 18:03:01] Production.INFO: ==20989== Lock acquired, processing the job... [2025-03-03 18:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:03:01] Production.INFO: neon service started [2025-03-03 18:03:01] Production.INFO: neon service started [2025-03-03 18:03:01] Production.INFO: ==20989== Releasing lock... [2025-03-03 18:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:03:01] Production.INFO: ==20991== Lock acquired, processing the job... [2025-03-03 13:03:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:03:02] Production.INFO: ==20993== Lock acquired, processing the job... [2025-03-03 18:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:03:02] Production.INFO: ==20993== Releasing lock... [2025-03-03 18:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:03:02] Production.INFO: ==20991== Releasing lock... [2025-03-03 13:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:03:03] Production.INFO: ==20997== Lock acquired, processing the job... [2025-03-03 13:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:03:03] Production.INFO: ==21001== Lock acquired, processing the job... [2025-03-03 13:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:03:03] Production.INFO: ==21003== Lock acquired, processing the job... [2025-03-03 13:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:03:03] Production.INFO: Account Balance Start. [2025-03-03 13:03:03] Production.INFO: CreateAllLog Start [2025-03-03 13:03:03] Production.INFO: 117 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:03:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: ==20999== Lock acquired, processing the job... [2025-03-03 13:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:03:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: ==21008== Lock acquired, processing the job... [2025-03-03 13:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:03:03] Production.INFO: Date 2025-02-14 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: ==21006== Lock acquired, processing the job... [2025-03-03 13:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:03:03] Production.INFO: Date 2025-02-15 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-16 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-17 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-18 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-19 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:03:03] Production.INFO: Date 2025-02-20 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-21 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-22 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: count ==13 [2025-03-03 13:03:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:03:03] Production.INFO: count ==21 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-23 [2025-03-03 13:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598643') start [2025-03-03 13:03:03] Production.INFO: ==20999== Releasing lock... [2025-03-03 13:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:03:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:03] Production.INFO: Date 2025-02-24 [2025-03-03 13:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598643') end [2025-03-03 13:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:03:04] Production.INFO: 1 [2025-03-03 13:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.INFO: ==21008== Releasing lock... [2025-03-03 13:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.ERROR: done [2025-03-03 13:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:03:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:03:04] Production.INFO: Total Charge 0 [2025-03-03 13:03:04] Production.INFO: CreateAllLog End [2025-03-03 13:03:04] Production.ERROR: done [2025-03-03 13:03:04] Production.INFO: Account Balance End. [2025-03-03 13:03:04] Production.ERROR: CronJobId end 12 [2025-03-03 13:03:04] Production.INFO: ==21003== Releasing lock... [2025-03-03 13:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:03:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:03:05 [end_date_ymd] => 2025-03-03 13:03:05 [RateCDR] => 1 ) [2025-03-03 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:03:05' and `end` < '2025-03-03 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:03:13] Production.ERROR: CronJobId end10 [2025-03-03 13:03:13] Production.INFO: ==21001== Releasing lock... [2025-03-03 13:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:03:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:03:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:03:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:03:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:03:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:03:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:03:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:03:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:03:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:03:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:03:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:03:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:03:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:03:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:03:14] Production.INFO: call_cost start [2025-03-03 13:03:14] Production.INFO: call_cost end [2025-03-03 13:03:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:03:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:03:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:03:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:03:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:03:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:03:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:03:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:03:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:03:15] Production.INFO: ==20997== Releasing lock... [2025-03-03 13:03:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:03:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:03:18] Production.INFO: count ==6388 [2025-03-03 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:03:05 - End Time 2025-03-03 13:03:05 [2025-03-03 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598644', 'tblTempUsageDetail_20' ) start [2025-03-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598644', 'tblTempUsageDetail_20' ) end [2025-03-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598644', 'tblTempVendorCDR_20' ) start [2025-03-03 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598644', 'tblTempVendorCDR_20' ) end [2025-03-03 13:03:22] Production.INFO: ProcessCDR(1,14598644,1,1,2) [2025-03-03 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598644', 'tblTempUsageDetail_20' ) start [2025-03-03 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598644', 'tblTempUsageDetail_20' ) end [2025-03-03 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:03:26] Production.INFO: ==21006== Releasing lock... [2025-03-03 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:03:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:04:02] Production.INFO: ==21072== Lock acquired, processing the job... [2025-03-03 18:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:04:02] Production.INFO: neon service started [2025-03-03 18:04:02] Production.INFO: neon service started [2025-03-03 18:04:02] Production.INFO: ==21072== Releasing lock... [2025-03-03 18:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:04:02] Production.INFO: ==21074== Lock acquired, processing the job... [2025-03-03 13:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:04:02] Production.INFO: ==21074== Releasing lock... [2025-03-03 13:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:04:02] Production.INFO: ==21076== Lock acquired, processing the job... [2025-03-03 18:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:04:02] Production.INFO: ==21076== Releasing lock... [2025-03-03 18:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:04:03] Production.INFO: ==21079== Lock acquired, processing the job... [2025-03-03 13:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:04:03] Production.INFO: ==21085== Lock acquired, processing the job... [2025-03-03 13:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:04:03] Production.INFO: ==21083== Lock acquired, processing the job... [2025-03-03 13:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:04:03] Production.INFO: Account Balance Start. [2025-03-03 13:04:03] Production.INFO: CreateAllLog Start [2025-03-03 13:04:03] Production.INFO: 117 [2025-03-03 13:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:04:04] Production.INFO: ==21081== Lock acquired, processing the job... [2025-03-03 13:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: ==21087== Lock acquired, processing the job... [2025-03-03 13:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:04:04] Production.INFO: ==21089== Lock acquired, processing the job... [2025-03-03 13:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: ==21081== Releasing lock... [2025-03-03 13:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: count ==13 [2025-03-03 13:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:04:04] Production.INFO: count ==21 [2025-03-03 13:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598648') start [2025-03-03 13:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:04:04] Production.ERROR: done [2025-03-03 13:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598648') end [2025-03-03 13:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:04:04] Production.INFO: 1 [2025-03-03 13:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: ==21089== Releasing lock... [2025-03-03 13:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:04:04] Production.ERROR: done [2025-03-03 13:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:04:05] Production.INFO: Total Charge 0 [2025-03-03 13:04:05] Production.INFO: CreateAllLog End [2025-03-03 13:04:05] Production.INFO: Account Balance End. [2025-03-03 13:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:04:05] Production.INFO: ==21085== Releasing lock... [2025-03-03 13:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:04:06 [end_date_ymd] => 2025-03-03 13:04:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:04:06' and `end` < '2025-03-03 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-03-03 13:04:13] Production.ERROR: CronJobId end10 [2025-03-03 13:04:13] Production.INFO: ==21083== Releasing lock... [2025-03-03 13:04:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:04:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:04:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:04:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:04:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:04:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:04:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:04:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:04:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:04:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:04:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:04:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:04:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:04:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:04:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:04:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:04:16] Production.INFO: call_cost start [2025-03-03 13:04:16] Production.INFO: call_cost end [2025-03-03 13:04:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:04:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:04:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:04:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:04:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:04:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:04:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:04:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:04:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:04:17] Production.INFO: ==21079== Releasing lock... [2025-03-03 13:04:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:04:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:04:19] Production.INFO: count ==6371 [2025-03-03 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:04:06 - End Time 2025-03-03 13:04:06 [2025-03-03 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598649', 'tblTempUsageDetail_20' ) start [2025-03-03 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598649', 'tblTempUsageDetail_20' ) end [2025-03-03 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598649', 'tblTempVendorCDR_20' ) start [2025-03-03 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598649', 'tblTempVendorCDR_20' ) end [2025-03-03 13:04:22] Production.INFO: ProcessCDR(1,14598649,1,1,2) [2025-03-03 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598649', 'tblTempUsageDetail_20' ) start [2025-03-03 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598649', 'tblTempUsageDetail_20' ) end [2025-03-03 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:04:27] Production.INFO: ==21087== Releasing lock... [2025-03-03 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:04:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:05:01] Production.INFO: ==21147== Lock acquired, processing the job... [2025-03-03 18:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:05:01] Production.INFO: neon service started [2025-03-03 18:05:01] Production.INFO: neon service started [2025-03-03 18:05:01] Production.INFO: ==21147== Releasing lock... [2025-03-03 18:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:05:01] Production.INFO: ==21151== Lock acquired, processing the job... [2025-03-03 18:05:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:05:01] Production.INFO: ==21151== Releasing lock... [2025-03-03 18:05:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:05:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:05:02] Production.INFO: ==21149== Lock acquired, processing the job... [2025-03-03 13:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:05:02] Production.INFO: ==21149== Releasing lock... [2025-03-03 13:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:05:03] Production.INFO: ==21154== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:05:03] Production.INFO: ==21158== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:05:03] Production.INFO: ==21160== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:05:03] Production.INFO: ==21156== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:05:03] Production.INFO: Account Balance Start. [2025-03-03 13:05:03] Production.INFO: CreateAllLog Start [2025-03-03 13:05:03] Production.INFO: 117 [2025-03-03 13:05:03] Production.INFO: ==21162== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:05:03] Production.INFO: ==21164== Lock acquired, processing the job... [2025-03-03 13:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:05:04] Production.INFO: ==21156== Releasing lock... [2025-03-03 13:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:05:04] Production.INFO: count ==13 [2025-03-03 13:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:05:04] Production.INFO: count ==21 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598653') start [2025-03-03 13:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598653') end [2025-03-03 13:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:05:04] Production.INFO: 1 [2025-03-03 13:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: ==21164== Releasing lock... [2025-03-03 13:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:05:04] Production.ERROR: done [2025-03-03 13:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.ERROR: done [2025-03-03 13:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:05:04] Production.INFO: Total Charge 0 [2025-03-03 13:05:05] Production.INFO: CreateAllLog End [2025-03-03 13:05:05] Production.INFO: Account Balance End. [2025-03-03 13:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:05:05] Production.INFO: ==21160== Releasing lock... [2025-03-03 13:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:05:05 [end_date_ymd] => 2025-03-03 13:05:05 [RateCDR] => 1 ) [2025-03-03 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:05:05' and `end` < '2025-03-03 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:05:13] Production.ERROR: CronJobId end10 [2025-03-03 13:05:13] Production.INFO: ==21158== Releasing lock... [2025-03-03 13:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:05:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:05:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:05:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:05:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:05:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:05:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:05:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:05:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:05:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:05:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:05:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:05:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:05:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:05:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:05:14] Production.INFO: call_cost start [2025-03-03 13:05:14] Production.INFO: call_cost end [2025-03-03 13:05:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:05:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:05:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:05:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:05:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:05:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:05:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:05:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:05:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:05:15] Production.INFO: ==21154== Releasing lock... [2025-03-03 13:05:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:05:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:05:19] Production.INFO: count ==6348 [2025-03-03 13:05:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:05:05 - End Time 2025-03-03 13:05:05 [2025-03-03 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598654', 'tblTempUsageDetail_20' ) start [2025-03-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598654', 'tblTempUsageDetail_20' ) end [2025-03-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598654', 'tblTempVendorCDR_20' ) start [2025-03-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598654', 'tblTempVendorCDR_20' ) end [2025-03-03 13:05:22] Production.INFO: ProcessCDR(1,14598654,1,1,2) [2025-03-03 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598654', 'tblTempUsageDetail_20' ) start [2025-03-03 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598654', 'tblTempUsageDetail_20' ) end [2025-03-03 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:05:27] Production.INFO: ==21162== Releasing lock... [2025-03-03 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:05:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 18:06:02] Production.INFO: ==21229== Lock acquired, processing the job... [2025-03-03 18:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:06:02] Production.INFO: neon service started [2025-03-03 18:06:02] Production.INFO: neon service started [2025-03-03 18:06:02] Production.INFO: ==21229== Releasing lock... [2025-03-03 18:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:06:02] Production.INFO: ==21231== Lock acquired, processing the job... [2025-03-03 13:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:06:02] Production.INFO: ==21233== Lock acquired, processing the job... [2025-03-03 18:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:06:02] Production.INFO: ==21233== Releasing lock... [2025-03-03 18:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:06:03] Production.INFO: ==21231== Releasing lock... [2025-03-03 13:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:06:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:06:03] Production.INFO: ==21242== Lock acquired, processing the job... [2025-03-03 13:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:06:03] Production.INFO: Account Balance Start. [2025-03-03 13:06:03] Production.INFO: CreateAllLog Start [2025-03-03 13:06:03] Production.INFO: 117 [2025-03-03 13:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: ==21236== Lock acquired, processing the job... [2025-03-03 13:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: ==21238== Lock acquired, processing the job... [2025-03-03 13:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:06:04] Production.INFO: ==21240== Lock acquired, processing the job... [2025-03-03 13:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: ==21246== Lock acquired, processing the job... [2025-03-03 13:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: ==21244== Lock acquired, processing the job... [2025-03-03 13:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: count ==13 [2025-03-03 13:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:06:04] Production.INFO: count ==21 [2025-03-03 13:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598658') start [2025-03-03 13:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598658') end [2025-03-03 13:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:06:04] Production.INFO: 1 [2025-03-03 13:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:06:05] Production.INFO: ==21246== Releasing lock... [2025-03-03 13:06:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:06:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:06:05] Production.INFO: ==21238== Releasing lock... [2025-03-03 13:06:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:06:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:06:05] Production.INFO: Total Charge 0 [2025-03-03 13:06:05] Production.INFO: CreateAllLog End [2025-03-03 13:06:05] Production.ERROR: done [2025-03-03 13:06:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:06:05] Production.ERROR: done [2025-03-03 13:06:05] Production.INFO: Account Balance End. [2025-03-03 13:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:06:05] Production.INFO: ==21242== Releasing lock... [2025-03-03 13:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:06:06 [end_date_ymd] => 2025-03-03 13:06:06 [RateCDR] => 1 ) [2025-03-03 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:06:06' and `end` < '2025-03-03 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:06:13] Production.ERROR: CronJobId end10 [2025-03-03 13:06:13] Production.INFO: ==21240== Releasing lock... [2025-03-03 13:06:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:06:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:06:15] Production.INFO: call_cost start [2025-03-03 13:06:15] Production.INFO: call_cost end [2025-03-03 13:06:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:06:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:06:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:06:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:06:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:06:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:06:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:06:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:06:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:06:16] Production.INFO: ==21236== Releasing lock... [2025-03-03 13:06:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:06:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:06:20] Production.INFO: count ==6368 [2025-03-03 13:06:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:06:06 - End Time 2025-03-03 13:06:06 [2025-03-03 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598659', 'tblTempUsageDetail_20' ) start [2025-03-03 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598659', 'tblTempUsageDetail_20' ) end [2025-03-03 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598659', 'tblTempVendorCDR_20' ) start [2025-03-03 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598659', 'tblTempVendorCDR_20' ) end [2025-03-03 13:06:23] Production.INFO: ProcessCDR(1,14598659,1,1,2) [2025-03-03 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598659', 'tblTempUsageDetail_20' ) start [2025-03-03 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598659', 'tblTempUsageDetail_20' ) end [2025-03-03 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:06:28] Production.INFO: ==21244== Releasing lock... [2025-03-03 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:06:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:07:01] Production.INFO: ==21307== Lock acquired, processing the job... [2025-03-03 18:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:07:01] Production.INFO: neon service started [2025-03-03 18:07:01] Production.INFO: neon service started [2025-03-03 18:07:01] Production.INFO: ==21307== Releasing lock... [2025-03-03 18:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:07:02] Production.INFO: ==21309== Lock acquired, processing the job... [2025-03-03 13:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:07:02] Production.INFO: ==21311== Lock acquired, processing the job... [2025-03-03 18:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:07:02] Production.INFO: ==21311== Releasing lock... [2025-03-03 18:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:07:02] Production.INFO: ==21309== Releasing lock... [2025-03-03 13:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:07:03] Production.INFO: ==21320== Lock acquired, processing the job... [2025-03-03 13:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:07:03] Production.INFO: ==21324== Lock acquired, processing the job... [2025-03-03 13:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:07:03] Production.INFO: Account Balance Start. [2025-03-03 13:07:03] Production.INFO: CreateAllLog Start [2025-03-03 13:07:03] Production.INFO: 117 [2025-03-03 13:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:07:03] Production.INFO: count ==13 [2025-03-03 13:07:03] Production.INFO: ==21314== Lock acquired, processing the job... [2025-03-03 13:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:07:03] Production.INFO: count ==21 [2025-03-03 13:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598661') start [2025-03-03 13:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:07:03] Production.INFO: ==21316== Lock acquired, processing the job... [2025-03-03 13:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.INFO: ==21318== Lock acquired, processing the job... [2025-03-03 13:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598661') end [2025-03-03 13:07:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:07:03] Production.INFO: 1 [2025-03-03 13:07:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:07:03] Production.INFO: ==21322== Lock acquired, processing the job... [2025-03-03 13:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:07:03] Production.INFO: ==21324== Releasing lock... [2025-03-03 13:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:07:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:07:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:07:03] Production.INFO: Date 2025-02-14 [2025-03-03 13:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: ==21316== Releasing lock... [2025-03-03 13:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.ERROR: done [2025-03-03 13:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:07:04] Production.ERROR: done [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:07:04] Production.INFO: Total Charge 0 [2025-03-03 13:07:04] Production.INFO: CreateAllLog End [2025-03-03 13:07:04] Production.INFO: Account Balance End. [2025-03-03 13:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:07:05] Production.INFO: ==21320== Releasing lock... [2025-03-03 13:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:07:05 [end_date_ymd] => 2025-03-03 13:07:05 [RateCDR] => 1 ) [2025-03-03 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:07:05' and `end` < '2025-03-03 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:07:13] Production.ERROR: CronJobId end10 [2025-03-03 13:07:13] Production.INFO: ==21318== Releasing lock... [2025-03-03 13:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:07:16] Production.INFO: call_cost start [2025-03-03 13:07:16] Production.INFO: call_cost end [2025-03-03 13:07:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:07:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:07:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:07:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:07:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:07:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:07:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:07:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:07:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:07:17] Production.INFO: ==21314== Releasing lock... [2025-03-03 13:07:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:07:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:07:18] Production.INFO: count ==6370 [2025-03-03 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:07:05 - End Time 2025-03-03 13:07:05 [2025-03-03 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598664', 'tblTempUsageDetail_20' ) start [2025-03-03 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598664', 'tblTempUsageDetail_20' ) end [2025-03-03 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598664', 'tblTempVendorCDR_20' ) start [2025-03-03 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598664', 'tblTempVendorCDR_20' ) end [2025-03-03 13:07:22] Production.INFO: ProcessCDR(1,14598664,1,1,2) [2025-03-03 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598664', 'tblTempUsageDetail_20' ) start [2025-03-03 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598664', 'tblTempUsageDetail_20' ) end [2025-03-03 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:07:27] Production.INFO: ==21322== Releasing lock... [2025-03-03 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:07:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:08:02] Production.INFO: ==21384== Lock acquired, processing the job... [2025-03-03 18:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:08:02] Production.INFO: neon service started [2025-03-03 18:08:02] Production.INFO: neon service started [2025-03-03 18:08:02] Production.INFO: ==21384== Releasing lock... [2025-03-03 18:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:08:02] Production.INFO: ==21388== Lock acquired, processing the job... [2025-03-03 18:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:08:02] Production.INFO: ==21388== Releasing lock... [2025-03-03 18:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:08:02] Production.INFO: ==21386== Lock acquired, processing the job... [2025-03-03 13:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:08:03] Production.INFO: ==21386== Releasing lock... [2025-03-03 13:08:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:08:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:08:04] Production.INFO: ==21397== Lock acquired, processing the job... [2025-03-03 13:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:08:04] Production.INFO: ==21399== Lock acquired, processing the job... [2025-03-03 13:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:08:04] Production.INFO: ==21391== Lock acquired, processing the job... [2025-03-03 13:08:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:08:04] Production.INFO: Account Balance Start. [2025-03-03 13:08:04] Production.INFO: CreateAllLog Start [2025-03-03 13:08:04] Production.INFO: 117 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: ==21393== Lock acquired, processing the job... [2025-03-03 13:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: ==21395== Lock acquired, processing the job... [2025-03-03 13:08:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: ==21401== Lock acquired, processing the job... [2025-03-03 13:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:08:04] Production.ERROR: done [2025-03-03 13:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:08:04] Production.INFO: ==21393== Releasing lock... [2025-03-03 13:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: count ==13 [2025-03-03 13:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:08:04] Production.INFO: count ==21 [2025-03-03 13:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598668') start [2025-03-03 13:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.ERROR: done [2025-03-03 13:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598668') end [2025-03-03 13:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:08:04] Production.INFO: 1 [2025-03-03 13:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: ==21401== Releasing lock... [2025-03-03 13:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:08:05] Production.INFO: Total Charge 0 [2025-03-03 13:08:05] Production.INFO: CreateAllLog End [2025-03-03 13:08:05] Production.INFO: Account Balance End. [2025-03-03 13:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:08:05] Production.INFO: ==21397== Releasing lock... [2025-03-03 13:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:08:06 [end_date_ymd] => 2025-03-03 13:08:06 [RateCDR] => 1 ) [2025-03-03 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:08:06' and `end` < '2025-03-03 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:08:13] Production.ERROR: CronJobId end10 [2025-03-03 13:08:13] Production.INFO: ==21395== Releasing lock... [2025-03-03 13:08:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:08:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:08:16] Production.INFO: call_cost start [2025-03-03 13:08:16] Production.INFO: call_cost end [2025-03-03 13:08:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:08:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:08:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:08:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:08:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:08:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:08:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:08:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:08:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:08:17] Production.INFO: ==21391== Releasing lock... [2025-03-03 13:08:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:08:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:08:19] Production.INFO: count ==6378 [2025-03-03 13:08:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:08:06 - End Time 2025-03-03 13:08:06 [2025-03-03 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598669', 'tblTempUsageDetail_20' ) start [2025-03-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598669', 'tblTempUsageDetail_20' ) end [2025-03-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598669', 'tblTempVendorCDR_20' ) start [2025-03-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598669', 'tblTempVendorCDR_20' ) end [2025-03-03 13:08:22] Production.INFO: ProcessCDR(1,14598669,1,1,2) [2025-03-03 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598669', 'tblTempUsageDetail_20' ) start [2025-03-03 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598669', 'tblTempUsageDetail_20' ) end [2025-03-03 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:08:28] Production.INFO: ==21399== Releasing lock... [2025-03-03 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:08:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:09:01] Production.INFO: ==21461== Lock acquired, processing the job... [2025-03-03 18:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:09:01] Production.INFO: neon service started [2025-03-03 18:09:01] Production.INFO: neon service started [2025-03-03 18:09:01] Production.INFO: ==21461== Releasing lock... [2025-03-03 18:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:09:01] Production.INFO: ==21463== Lock acquired, processing the job... [2025-03-03 13:09:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:09:02] Production.INFO: ==21463== Releasing lock... [2025-03-03 13:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:09:02] Production.INFO: ==21465== Lock acquired, processing the job... [2025-03-03 18:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:09:02] Production.INFO: ==21465== Releasing lock... [2025-03-03 18:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:09:03] Production.INFO: ==21468== Lock acquired, processing the job... [2025-03-03 13:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:09:03] Production.INFO: ==21472== Lock acquired, processing the job... [2025-03-03 13:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:09:03] Production.INFO: ==21470== Lock acquired, processing the job... [2025-03-03 13:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:09:03] Production.INFO: ==21478== Lock acquired, processing the job... [2025-03-03 13:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:09:03] Production.INFO: ==21476== Lock acquired, processing the job... [2025-03-03 13:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:09:03] Production.INFO: ==21474== Lock acquired, processing the job... [2025-03-03 13:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:09:03] Production.INFO: ==21470== Releasing lock... [2025-03-03 13:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:09:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:09:03] Production.INFO: count ==13 [2025-03-03 13:09:03] Production.INFO: Account Balance Start. [2025-03-03 13:09:03] Production.INFO: CreateAllLog Start [2025-03-03 13:09:03] Production.INFO: 117 [2025-03-03 13:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:09:03] Production.INFO: count ==21 [2025-03-03 13:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598672') start [2025-03-03 13:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598672') end [2025-03-03 13:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:09:03] Production.INFO: 1 [2025-03-03 13:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:09:03] Production.INFO: ==21478== Releasing lock... [2025-03-03 13:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:09:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:09:04] Production.ERROR: done [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.ERROR: done [2025-03-03 13:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:09:05 [end_date_ymd] => 2025-03-03 13:09:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:09:05' and `end` < '2025-03-03 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-03-03 13:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:09:05] Production.INFO: Total Charge 0 [2025-03-03 13:09:05] Production.INFO: CreateAllLog End [2025-03-03 13:09:05] Production.INFO: Account Balance End. [2025-03-03 13:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:09:05] Production.INFO: ==21474== Releasing lock... [2025-03-03 13:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:09:12] Production.ERROR: CronJobId end10 [2025-03-03 13:09:12] Production.INFO: ==21472== Releasing lock... [2025-03-03 13:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:09:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:09:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:09:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:09:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:09:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:09:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:09:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:09:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:09:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:09:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:09:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:09:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:09:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:09:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:09:14] Production.INFO: call_cost start [2025-03-03 13:09:14] Production.INFO: call_cost end [2025-03-03 13:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:09:15] Production.INFO: ==21468== Releasing lock... [2025-03-03 13:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:09:18] Production.INFO: count ==6375 [2025-03-03 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:09:05 - End Time 2025-03-03 13:09:05 [2025-03-03 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598674', 'tblTempUsageDetail_20' ) start [2025-03-03 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598674', 'tblTempUsageDetail_20' ) end [2025-03-03 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598674', 'tblTempVendorCDR_20' ) start [2025-03-03 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598674', 'tblTempVendorCDR_20' ) end [2025-03-03 13:09:21] Production.INFO: ProcessCDR(1,14598674,1,1,2) [2025-03-03 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598674', 'tblTempUsageDetail_20' ) start [2025-03-03 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598674', 'tblTempUsageDetail_20' ) end [2025-03-03 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:09:26] Production.INFO: ==21476== Releasing lock... [2025-03-03 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:09:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:10:02] Production.INFO: ==21538== Lock acquired, processing the job... [2025-03-03 18:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:10:02] Production.INFO: neon service started [2025-03-03 18:10:02] Production.INFO: neon service started [2025-03-03 18:10:02] Production.INFO: ==21538== Releasing lock... [2025-03-03 18:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:10:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:10:02] Production.INFO: ==21541== Lock acquired, processing the job... [2025-03-03 13:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:10:02] Production.INFO: ==21543== Lock acquired, processing the job... [2025-03-03 18:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:10:02] Production.INFO: ==21543== Releasing lock... [2025-03-03 18:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:10:03] Production.INFO: ==21541== Releasing lock... [2025-03-03 13:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:10:04] Production.INFO: ==21545== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 13:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 13:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 13:10:04] Production.INFO: ==21545== Releasing lock... [2025-03-03 13:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 13:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:10:04] Production.INFO: ==21555== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:10:04] Production.INFO: ==21559== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:10:04] Production.INFO: ==21547== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:10:04] Production.INFO: ==21549== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:10:04] Production.INFO: ==21551== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:10:04] Production.INFO: ==21553== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:10:04] Production.INFO: ==21557== Lock acquired, processing the job... [2025-03-03 13:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 13:10:04] Production.INFO: count ==13 [2025-03-03 13:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:10:04] Production.INFO: count ==21 [2025-03-03 13:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598675') start [2025-03-03 13:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:10:04] Production.INFO: Account Balance Start. [2025-03-03 13:10:04] Production.INFO: CreateAllLog Start [2025-03-03 13:10:04] Production.INFO: 117 [2025-03-03 13:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-09 [2025-03-03 13:10:05] Production.ERROR: done [2025-03-03 13:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598675') end [2025-03-03 13:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:10:05] Production.INFO: 1 [2025-03-03 13:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-10 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-11 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-12 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: ==21549== Releasing lock... [2025-03-03 13:10:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:10:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:10:05] Production.INFO: Date 2025-02-13 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.ERROR: done [2025-03-03 13:10:05] Production.INFO: ==21559== Releasing lock... [2025-03-03 13:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.ERROR: done [2025-03-03 13:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 13:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598680', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 13:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:10:06] Production.INFO: Total Charge 0 [2025-03-03 13:10:06] Production.INFO: CreateAllLog End [2025-03-03 13:10:06] Production.INFO: Account Balance End. [2025-03-03 13:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:10:06] Production.INFO: ==21553== Releasing lock... [2025-03-03 13:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:10:06 [end_date_ymd] => 2025-03-03 13:10:06 [RateCDR] => 1 ) [2025-03-03 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:10:06' and `end` < '2025-03-03 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598680', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 13:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 13:10:09] Production.INFO: ProcessCDR(1,14598680,1,1,2) [2025-03-03 13:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598680,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598680,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:10:09] Production.INFO: ==21557== Releasing lock... [2025-03-03 13:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 13:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:10:15] Production.ERROR: CronJobId end10 [2025-03-03 13:10:15] Production.INFO: ==21551== Releasing lock... [2025-03-03 13:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:10:17] Production.INFO: call_cost start [2025-03-03 13:10:17] Production.INFO: call_cost end [2025-03-03 13:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:10:18] Production.INFO: ==21547== Releasing lock... [2025-03-03 13:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:10:20] Production.INFO: count ==6387 [2025-03-03 13:10:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:10:06 - End Time 2025-03-03 13:10:06 [2025-03-03 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598679', 'tblTempUsageDetail_20' ) start [2025-03-03 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598679', 'tblTempUsageDetail_20' ) end [2025-03-03 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598679', 'tblTempVendorCDR_20' ) start [2025-03-03 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598679', 'tblTempVendorCDR_20' ) end [2025-03-03 13:10:23] Production.INFO: ProcessCDR(1,14598679,1,1,2) [2025-03-03 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598679', 'tblTempUsageDetail_20' ) start [2025-03-03 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598679', 'tblTempUsageDetail_20' ) end [2025-03-03 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:10:28] Production.INFO: ==21555== Releasing lock... [2025-03-03 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:10:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:11:01] Production.INFO: ==21615== Lock acquired, processing the job... [2025-03-03 18:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:11:01] Production.INFO: neon service started [2025-03-03 18:11:01] Production.INFO: neon service started [2025-03-03 18:11:01] Production.INFO: ==21615== Releasing lock... [2025-03-03 18:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:11:01] Production.INFO: ==21621== Lock acquired, processing the job... [2025-03-03 18:11:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:11:01] Production.INFO: ==21621== Releasing lock... [2025-03-03 18:11:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:11:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:11:02] Production.INFO: ==21619== Lock acquired, processing the job... [2025-03-03 13:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:11:02] Production.INFO: ==21619== Releasing lock... [2025-03-03 13:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:11:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:11:03] Production.INFO: ==21626== Lock acquired, processing the job... [2025-03-03 13:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:11:03] Production.INFO: ==21630== Lock acquired, processing the job... [2025-03-03 13:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:11:03] Production.INFO: ==21632== Lock acquired, processing the job... [2025-03-03 13:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:11:03] Production.INFO: Account Balance Start. [2025-03-03 13:11:03] Production.INFO: CreateAllLog Start [2025-03-03 13:11:03] Production.INFO: 117 [2025-03-03 13:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: ==21626== Releasing lock... [2025-03-03 13:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:11:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: ==21624== Lock acquired, processing the job... [2025-03-03 13:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:11:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: ==21628== Lock acquired, processing the job... [2025-03-03 13:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:11:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: ==21634== Lock acquired, processing the job... [2025-03-03 13:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:11:03] Production.INFO: Date 2025-02-14 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: Date 2025-02-15 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:11:03] Production.INFO: Date 2025-02-16 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:11:03] Production.INFO: Date 2025-02-17 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.ERROR: done [2025-03-03 13:11:03] Production.INFO: Date 2025-02-18 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:11:03] Production.INFO: count ==13 [2025-03-03 13:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:11:03] Production.INFO: count ==21 [2025-03-03 13:11:03] Production.ERROR: done [2025-03-03 13:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598684') start [2025-03-03 13:11:03] Production.INFO: Date 2025-02-19 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:03] Production.INFO: Date 2025-02-20 [2025-03-03 13:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598684') end [2025-03-03 13:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:11:04] Production.INFO: 1 [2025-03-03 13:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:11:04] Production.INFO: ==21634== Releasing lock... [2025-03-03 13:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:11:04] Production.INFO: Total Charge 0 [2025-03-03 13:11:04] Production.INFO: CreateAllLog End [2025-03-03 13:11:04] Production.INFO: Account Balance End. [2025-03-03 13:11:04] Production.ERROR: CronJobId end 12 [2025-03-03 13:11:04] Production.INFO: ==21630== Releasing lock... [2025-03-03 13:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:11:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:11:04 [end_date_ymd] => 2025-03-03 13:11:04 [RateCDR] => 1 ) [2025-03-03 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:11:04' and `end` < '2025-03-03 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:11:13] Production.ERROR: CronJobId end10 [2025-03-03 13:11:13] Production.INFO: ==21628== Releasing lock... [2025-03-03 13:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:11:14] Production.INFO: call_cost start [2025-03-03 13:11:14] Production.INFO: call_cost end [2025-03-03 13:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:11:15] Production.INFO: ==21624== Releasing lock... [2025-03-03 13:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:11:18] Production.INFO: count ==6365 [2025-03-03 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:11:04 - End Time 2025-03-03 13:11:04 [2025-03-03 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598685', 'tblTempUsageDetail_20' ) start [2025-03-03 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598685', 'tblTempUsageDetail_20' ) end [2025-03-03 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598685', 'tblTempVendorCDR_20' ) start [2025-03-03 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598685', 'tblTempVendorCDR_20' ) end [2025-03-03 13:11:21] Production.INFO: ProcessCDR(1,14598685,1,1,2) [2025-03-03 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598685', 'tblTempUsageDetail_20' ) start [2025-03-03 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598685', 'tblTempUsageDetail_20' ) end [2025-03-03 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:11:26] Production.INFO: ==21632== Releasing lock... [2025-03-03 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:11:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:12:01] Production.INFO: ==21692== Lock acquired, processing the job... [2025-03-03 18:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:12:02] Production.INFO: neon service started [2025-03-03 18:12:02] Production.INFO: neon service started [2025-03-03 18:12:02] Production.INFO: ==21692== Releasing lock... [2025-03-03 18:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:12:02] Production.INFO: ==21694== Lock acquired, processing the job... [2025-03-03 13:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:12:02] Production.INFO: ==21694== Releasing lock... [2025-03-03 13:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:12:02] Production.INFO: ==21696== Lock acquired, processing the job... [2025-03-03 18:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:12:03] Production.INFO: ==21696== Releasing lock... [2025-03-03 18:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:12:03] Production.INFO: ==21699== Lock acquired, processing the job... [2025-03-03 13:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:12:03] Production.INFO: ==21701== Lock acquired, processing the job... [2025-03-03 13:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:12:03] Production.INFO: ==21703== Lock acquired, processing the job... [2025-03-03 13:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:12:03] Production.INFO: ==21707== Lock acquired, processing the job... [2025-03-03 13:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:12:03] Production.INFO: ==21705== Lock acquired, processing the job... [2025-03-03 13:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:12:03] Production.INFO: ==21709== Lock acquired, processing the job... [2025-03-03 13:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:12:03] Production.INFO: Account Balance Start. [2025-03-03 13:12:03] Production.INFO: CreateAllLog Start [2025-03-03 13:12:03] Production.INFO: 117 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: ==21701== Releasing lock... [2025-03-03 13:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:12:04] Production.INFO: count ==13 [2025-03-03 13:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:12:04] Production.INFO: count ==21 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598689') start [2025-03-03 13:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598689') end [2025-03-03 13:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:12:04] Production.INFO: 1 [2025-03-03 13:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:12:04] Production.ERROR: done [2025-03-03 13:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: ==21709== Releasing lock... [2025-03-03 13:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:12:04] Production.ERROR: done [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:12:04] Production.INFO: Total Charge 0 [2025-03-03 13:12:04] Production.INFO: CreateAllLog End [2025-03-03 13:12:05] Production.INFO: Account Balance End. [2025-03-03 13:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:12:05] Production.INFO: ==21705== Releasing lock... [2025-03-03 13:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:12:05 [end_date_ymd] => 2025-03-03 13:12:05 [RateCDR] => 1 ) [2025-03-03 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:12:05' and `end` < '2025-03-03 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:12:12] Production.ERROR: CronJobId end10 [2025-03-03 13:12:12] Production.INFO: ==21703== Releasing lock... [2025-03-03 13:12:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:12:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:12:14] Production.INFO: call_cost start [2025-03-03 13:12:14] Production.INFO: call_cost end [2025-03-03 13:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:12:15] Production.INFO: ==21699== Releasing lock... [2025-03-03 13:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:12:18] Production.INFO: count ==6368 [2025-03-03 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:12:05 - End Time 2025-03-03 13:12:05 [2025-03-03 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598690', 'tblTempUsageDetail_20' ) start [2025-03-03 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598690', 'tblTempUsageDetail_20' ) end [2025-03-03 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598690', 'tblTempVendorCDR_20' ) start [2025-03-03 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598690', 'tblTempVendorCDR_20' ) end [2025-03-03 13:12:22] Production.INFO: ProcessCDR(1,14598690,1,1,2) [2025-03-03 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598690', 'tblTempUsageDetail_20' ) start [2025-03-03 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598690', 'tblTempUsageDetail_20' ) end [2025-03-03 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:12:26] Production.INFO: ==21707== Releasing lock... [2025-03-03 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:12:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:13:01] Production.INFO: ==21766== Lock acquired, processing the job... [2025-03-03 18:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:13:01] Production.INFO: neon service started [2025-03-03 18:13:01] Production.INFO: neon service started [2025-03-03 18:13:01] Production.INFO: ==21766== Releasing lock... [2025-03-03 18:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:13:01] Production.INFO: ==21770== Lock acquired, processing the job... [2025-03-03 18:13:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:13:01] Production.INFO: ==21770== Releasing lock... [2025-03-03 18:13:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:13:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:13:01] Production.INFO: ==21768== Lock acquired, processing the job... [2025-03-03 13:13:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:13:02] Production.INFO: ==21768== Releasing lock... [2025-03-03 13:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:13:03] Production.INFO: ==21775== Lock acquired, processing the job... [2025-03-03 13:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:13:03] Production.INFO: ==21783== Lock acquired, processing the job... [2025-03-03 13:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:13:03] Production.INFO: ==21773== Lock acquired, processing the job... [2025-03-03 13:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:13:03] Production.INFO: count ==13 [2025-03-03 13:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:13:03] Production.INFO: count ==21 [2025-03-03 13:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:13:03] Production.INFO: ==21775== Releasing lock... [2025-03-03 13:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:13:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598691') start [2025-03-03 13:13:03] Production.INFO: ==21779== Lock acquired, processing the job... [2025-03-03 13:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:13:03] Production.INFO: ==21777== Lock acquired, processing the job... [2025-03-03 13:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:13:03] Production.INFO: ==21781== Lock acquired, processing the job... [2025-03-03 13:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598691') end [2025-03-03 13:13:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:13:03] Production.INFO: 1 [2025-03-03 13:13:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:13:03] Production.INFO: Account Balance Start. [2025-03-03 13:13:03] Production.INFO: CreateAllLog Start [2025-03-03 13:13:03] Production.INFO: 117 [2025-03-03 13:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:03] Production.INFO: ==21783== Releasing lock... [2025-03-03 13:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:13:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:13:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.ERROR: done [2025-03-03 13:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.ERROR: done [2025-03-03 13:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:13:04] Production.INFO: Total Charge 0 [2025-03-03 13:13:04] Production.INFO: CreateAllLog End [2025-03-03 13:13:04] Production.INFO: Account Balance End. [2025-03-03 13:13:04] Production.ERROR: CronJobId end 12 [2025-03-03 13:13:04] Production.INFO: ==21779== Releasing lock... [2025-03-03 13:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:13:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:13:05 [end_date_ymd] => 2025-03-03 13:13:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:13:05' and `end` < '2025-03-03 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-03-03 13:13:13] Production.ERROR: CronJobId end10 [2025-03-03 13:13:13] Production.INFO: ==21777== Releasing lock... [2025-03-03 13:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:13:14] Production.INFO: call_cost start [2025-03-03 13:13:14] Production.INFO: call_cost end [2025-03-03 13:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:13:15] Production.INFO: ==21773== Releasing lock... [2025-03-03 13:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:13:18] Production.INFO: count ==6350 [2025-03-03 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:13:05 - End Time 2025-03-03 13:13:05 [2025-03-03 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598695', 'tblTempUsageDetail_20' ) start [2025-03-03 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598695', 'tblTempUsageDetail_20' ) end [2025-03-03 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598695', 'tblTempVendorCDR_20' ) start [2025-03-03 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598695', 'tblTempVendorCDR_20' ) end [2025-03-03 13:13:21] Production.INFO: ProcessCDR(1,14598695,1,1,2) [2025-03-03 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598695', 'tblTempUsageDetail_20' ) start [2025-03-03 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598695', 'tblTempUsageDetail_20' ) end [2025-03-03 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:13:26] Production.INFO: ==21781== Releasing lock... [2025-03-03 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:13:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 18:14:01] Production.INFO: ==21880== Lock acquired, processing the job... [2025-03-03 18:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:14:01] Production.INFO: neon service started [2025-03-03 18:14:01] Production.INFO: neon service started [2025-03-03 18:14:01] Production.INFO: ==21880== Releasing lock... [2025-03-03 18:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:14:02] Production.INFO: ==21882== Lock acquired, processing the job... [2025-03-03 13:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:14:02] Production.INFO: ==21884== Lock acquired, processing the job... [2025-03-03 18:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:14:02] Production.INFO: ==21884== Releasing lock... [2025-03-03 18:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:14:02] Production.INFO: ==21882== Releasing lock... [2025-03-03 13:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:14:03] Production.INFO: ==21887== Lock acquired, processing the job... [2025-03-03 13:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:14:03] Production.INFO: ==21893== Lock acquired, processing the job... [2025-03-03 13:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:14:03] Production.INFO: ==21895== Lock acquired, processing the job... [2025-03-03 13:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:14:03] Production.INFO: ==21889== Lock acquired, processing the job... [2025-03-03 13:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:14:03] Production.INFO: ==21891== Lock acquired, processing the job... [2025-03-03 13:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:14:03] Production.INFO: ==21897== Lock acquired, processing the job... [2025-03-03 13:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:14:03] Production.INFO: Account Balance Start. [2025-03-03 13:14:03] Production.INFO: CreateAllLog Start [2025-03-03 13:14:04] Production.INFO: 117 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:14:04] Production.INFO: count ==13 [2025-03-03 13:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:14:04] Production.INFO: count ==21 [2025-03-03 13:14:04] Production.ERROR: done [2025-03-03 13:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598699') start [2025-03-03 13:14:04] Production.INFO: ==21889== Releasing lock... [2025-03-03 13:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.ERROR: done [2025-03-03 13:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598699') end [2025-03-03 13:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:14:04] Production.INFO: 1 [2025-03-03 13:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:14:04] Production.INFO: ==21897== Releasing lock... [2025-03-03 13:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:14:05 [end_date_ymd] => 2025-03-03 13:14:05 [RateCDR] => 1 ) [2025-03-03 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:14:05' and `end` < '2025-03-03 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:14:05] Production.INFO: Total Charge 0 [2025-03-03 13:14:05] Production.INFO: CreateAllLog End [2025-03-03 13:14:05] Production.INFO: Account Balance End. [2025-03-03 13:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:14:05] Production.INFO: ==21893== Releasing lock... [2025-03-03 13:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:14:14] Production.ERROR: CronJobId end10 [2025-03-03 13:14:14] Production.INFO: ==21891== Releasing lock... [2025-03-03 13:14:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:14:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:14:15] Production.INFO: call_cost start [2025-03-03 13:14:15] Production.INFO: call_cost end [2025-03-03 13:14:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:14:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:14:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:14:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:14:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:14:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:14:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:14:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:14:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:14:16] Production.INFO: ==21887== Releasing lock... [2025-03-03 13:14:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:14:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:14:18] Production.INFO: count ==6353 [2025-03-03 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:14:05 - End Time 2025-03-03 13:14:05 [2025-03-03 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598700', 'tblTempUsageDetail_20' ) start [2025-03-03 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598700', 'tblTempUsageDetail_20' ) end [2025-03-03 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598700', 'tblTempVendorCDR_20' ) start [2025-03-03 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598700', 'tblTempVendorCDR_20' ) end [2025-03-03 13:14:21] Production.INFO: ProcessCDR(1,14598700,1,1,2) [2025-03-03 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598700', 'tblTempUsageDetail_20' ) start [2025-03-03 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598700', 'tblTempUsageDetail_20' ) end [2025-03-03 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:14:26] Production.INFO: ==21895== Releasing lock... [2025-03-03 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:14:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 18:15:01] Production.INFO: ==21952== Lock acquired, processing the job... [2025-03-03 18:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:15:01] Production.INFO: neon service started [2025-03-03 18:15:01] Production.INFO: neon service started [2025-03-03 18:15:01] Production.INFO: ==21952== Releasing lock... [2025-03-03 18:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:15:01] Production.INFO: ==21957== Lock acquired, processing the job... [2025-03-03 18:15:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:15:01] Production.INFO: ==21957== Releasing lock... [2025-03-03 18:15:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:15:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:15:01] Production.INFO: ==21955== Lock acquired, processing the job... [2025-03-03 13:15:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:15:02] Production.INFO: ==21955== Releasing lock... [2025-03-03 13:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:15:03] Production.INFO: ==21959== Lock acquired, processing the job... [2025-03-03 13:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:15:03] Production.INFO: ==21969== Lock acquired, processing the job... [2025-03-03 13:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:15:03] Production.INFO: count ==13 [2025-03-03 13:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:15:03] Production.INFO: count ==21 [2025-03-03 13:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598702') start [2025-03-03 13:15:03] Production.INFO: ==21961== Lock acquired, processing the job... [2025-03-03 13:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:15:03] Production.INFO: ==21963== Lock acquired, processing the job... [2025-03-03 13:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:15:03] Production.INFO: ==21965== Lock acquired, processing the job... [2025-03-03 13:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:15:03] Production.INFO: ==21967== Lock acquired, processing the job... [2025-03-03 13:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598702') end [2025-03-03 13:15:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:15:03] Production.INFO: 1 [2025-03-03 13:15:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:15:03] Production.INFO: ==21969== Releasing lock... [2025-03-03 13:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:15:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:15:03] Production.INFO: Account Balance Start. [2025-03-03 13:15:03] Production.INFO: CreateAllLog Start [2025-03-03 13:15:03] Production.INFO: 117 [2025-03-03 13:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.ERROR: done [2025-03-03 13:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:15:04] Production.INFO: ==21961== Releasing lock... [2025-03-03 13:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.ERROR: done [2025-03-03 13:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:15:04] Production.INFO: Total Charge 0 [2025-03-03 13:15:04] Production.INFO: CreateAllLog End [2025-03-03 13:15:04] Production.INFO: Account Balance End. [2025-03-03 13:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:15:05] Production.INFO: ==21965== Releasing lock... [2025-03-03 13:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:15:05 [end_date_ymd] => 2025-03-03 13:15:05 [RateCDR] => 1 ) [2025-03-03 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:15:05' and `end` < '2025-03-03 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:15:14] Production.ERROR: CronJobId end10 [2025-03-03 13:15:14] Production.INFO: ==21963== Releasing lock... [2025-03-03 13:15:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:15:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:15:16] Production.INFO: call_cost start [2025-03-03 13:15:16] Production.INFO: call_cost end [2025-03-03 13:15:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:15:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:15:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:15:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:15:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:15:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:15:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:15:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:15:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:15:17] Production.INFO: ==21959== Releasing lock... [2025-03-03 13:15:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:15:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:15:18] Production.INFO: count ==6350 [2025-03-03 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:15:05 - End Time 2025-03-03 13:15:05 [2025-03-03 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598705', 'tblTempUsageDetail_20' ) start [2025-03-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598705', 'tblTempUsageDetail_20' ) end [2025-03-03 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598705', 'tblTempVendorCDR_20' ) start [2025-03-03 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598705', 'tblTempVendorCDR_20' ) end [2025-03-03 13:15:22] Production.INFO: ProcessCDR(1,14598705,1,1,2) [2025-03-03 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598705', 'tblTempUsageDetail_20' ) start [2025-03-03 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598705', 'tblTempUsageDetail_20' ) end [2025-03-03 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:15:26] Production.INFO: ==21967== Releasing lock... [2025-03-03 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:15:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 18:16:01] Production.INFO: ==22024== Lock acquired, processing the job... [2025-03-03 18:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:16:01] Production.INFO: neon service started [2025-03-03 18:16:01] Production.INFO: neon service started [2025-03-03 18:16:01] Production.INFO: ==22024== Releasing lock... [2025-03-03 18:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:16:02] Production.INFO: ==22027== Lock acquired, processing the job... [2025-03-03 13:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:16:02] Production.INFO: ==22027== Releasing lock... [2025-03-03 13:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:16:02] Production.INFO: ==22029== Lock acquired, processing the job... [2025-03-03 18:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:16:02] Production.INFO: ==22029== Releasing lock... [2025-03-03 18:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:16:03] Production.INFO: ==22031== Lock acquired, processing the job... [2025-03-03 13:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:16:03] Production.INFO: ==22035== Lock acquired, processing the job... [2025-03-03 13:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:16:03] Production.INFO: ==22039== Lock acquired, processing the job... [2025-03-03 13:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:16:03] Production.INFO: ==22041== Lock acquired, processing the job... [2025-03-03 13:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:16:03] Production.INFO: ==22033== Lock acquired, processing the job... [2025-03-03 13:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:16:03] Production.INFO: ==22037== Lock acquired, processing the job... [2025-03-03 13:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:16:03] Production.INFO: count ==13 [2025-03-03 13:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:16:03] Production.INFO: count ==21 [2025-03-03 13:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598707') start [2025-03-03 13:16:03] Production.INFO: Account Balance Start. [2025-03-03 13:16:03] Production.INFO: CreateAllLog Start [2025-03-03 13:16:03] Production.INFO: 117 [2025-03-03 13:16:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:16:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598707') end [2025-03-03 13:16:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:16:03] Production.INFO: 1 [2025-03-03 13:16:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:16:04] Production.ERROR: done [2025-03-03 13:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: ==22041== Releasing lock... [2025-03-03 13:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.ERROR: done [2025-03-03 13:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: ==22033== Releasing lock... [2025-03-03 13:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:16:05] Production.INFO: Total Charge 0 [2025-03-03 13:16:05] Production.INFO: CreateAllLog End [2025-03-03 13:16:05] Production.INFO: Account Balance End. [2025-03-03 13:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:16:05] Production.INFO: ==22037== Releasing lock... [2025-03-03 13:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:16:05 [end_date_ymd] => 2025-03-03 13:16:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:16:05' and `end` < '2025-03-03 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-03-03 13:16:12] Production.ERROR: CronJobId end10 [2025-03-03 13:16:12] Production.INFO: ==22035== Releasing lock... [2025-03-03 13:16:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:16:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:16:14] Production.INFO: call_cost start [2025-03-03 13:16:14] Production.INFO: call_cost end [2025-03-03 13:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:16:15] Production.INFO: ==22031== Releasing lock... [2025-03-03 13:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:16:18] Production.INFO: count ==6365 [2025-03-03 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:16:05 - End Time 2025-03-03 13:16:05 [2025-03-03 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598710', 'tblTempUsageDetail_20' ) start [2025-03-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598710', 'tblTempUsageDetail_20' ) end [2025-03-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598710', 'tblTempVendorCDR_20' ) start [2025-03-03 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598710', 'tblTempVendorCDR_20' ) end [2025-03-03 13:16:22] Production.INFO: ProcessCDR(1,14598710,1,1,2) [2025-03-03 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598710', 'tblTempUsageDetail_20' ) start [2025-03-03 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598710', 'tblTempUsageDetail_20' ) end [2025-03-03 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:16:26] Production.INFO: ==22039== Releasing lock... [2025-03-03 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:16:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:17:02] Production.INFO: ==22099== Lock acquired, processing the job... [2025-03-03 18:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:17:02] Production.INFO: neon service started [2025-03-03 18:17:02] Production.INFO: neon service started [2025-03-03 18:17:02] Production.INFO: ==22099== Releasing lock... [2025-03-03 18:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:17:02] Production.INFO: ==22103== Lock acquired, processing the job... [2025-03-03 18:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:17:02] Production.INFO: ==22103== Releasing lock... [2025-03-03 18:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:17:02] Production.INFO: ==22101== Lock acquired, processing the job... [2025-03-03 13:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:17:03] Production.INFO: ==22101== Releasing lock... [2025-03-03 13:17:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:17:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:17:03] Production.INFO: ==22112== Lock acquired, processing the job... [2025-03-03 13:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:17:03] Production.INFO: ==22118== Lock acquired, processing the job... [2025-03-03 13:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:17:04] Production.INFO: ==22108== Lock acquired, processing the job... [2025-03-03 13:17:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:17:04] Production.INFO: count ==13 [2025-03-03 13:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:17:04] Production.INFO: count ==21 [2025-03-03 13:17:04] Production.INFO: ==22110== Lock acquired, processing the job... [2025-03-03 13:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598711') start [2025-03-03 13:17:04] Production.INFO: ==22114== Lock acquired, processing the job... [2025-03-03 13:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:17:04] Production.INFO: ==22116== Lock acquired, processing the job... [2025-03-03 13:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598711') end [2025-03-03 13:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:17:04] Production.INFO: 1 [2025-03-03 13:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:17:04] Production.INFO: Account Balance Start. [2025-03-03 13:17:04] Production.INFO: CreateAllLog Start [2025-03-03 13:17:04] Production.INFO: 117 [2025-03-03 13:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:17:04] Production.INFO: ==22118== Releasing lock... [2025-03-03 13:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.ERROR: done [2025-03-03 13:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:17:04] Production.INFO: ==22110== Releasing lock... [2025-03-03 13:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:17:04] Production.ERROR: done [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:17:05] Production.INFO: Total Charge 0 [2025-03-03 13:17:05] Production.INFO: CreateAllLog End [2025-03-03 13:17:05] Production.INFO: Account Balance End. [2025-03-03 13:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:17:05] Production.INFO: ==22114== Releasing lock... [2025-03-03 13:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:17:06 [end_date_ymd] => 2025-03-03 13:17:06 [RateCDR] => 1 ) [2025-03-03 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:17:06' and `end` < '2025-03-03 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:17:13] Production.ERROR: CronJobId end10 [2025-03-03 13:17:13] Production.INFO: ==22112== Releasing lock... [2025-03-03 13:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:17:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:17:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:17:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:17:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:17:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:17:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:17:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:17:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:17:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:17:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:17:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:17:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:17:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:17:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:17:16] Production.INFO: call_cost start [2025-03-03 13:17:16] Production.INFO: call_cost end [2025-03-03 13:17:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:17:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:17:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:17:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:17:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:17:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:17:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:17:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:17:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:17:17] Production.INFO: ==22108== Releasing lock... [2025-03-03 13:17:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:17:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:17:19] Production.INFO: count ==6364 [2025-03-03 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:17:06 - End Time 2025-03-03 13:17:06 [2025-03-03 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598715', 'tblTempUsageDetail_20' ) start [2025-03-03 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598715', 'tblTempUsageDetail_20' ) end [2025-03-03 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598715', 'tblTempVendorCDR_20' ) start [2025-03-03 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598715', 'tblTempVendorCDR_20' ) end [2025-03-03 13:17:22] Production.INFO: ProcessCDR(1,14598715,1,1,2) [2025-03-03 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598715', 'tblTempUsageDetail_20' ) start [2025-03-03 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598715', 'tblTempUsageDetail_20' ) end [2025-03-03 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:17:28] Production.INFO: ==22116== Releasing lock... [2025-03-03 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:17:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:18:01] Production.INFO: ==22176== Lock acquired, processing the job... [2025-03-03 18:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:18:01] Production.INFO: neon service started [2025-03-03 18:18:01] Production.INFO: neon service started [2025-03-03 18:18:01] Production.INFO: ==22176== Releasing lock... [2025-03-03 18:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:18:02] Production.INFO: ==22180== Lock acquired, processing the job... [2025-03-03 18:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:18:02] Production.INFO: ==22178== Lock acquired, processing the job... [2025-03-03 13:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:18:02] Production.INFO: ==22180== Releasing lock... [2025-03-03 18:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:18:02] Production.INFO: ==22178== Releasing lock... [2025-03-03 13:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:18:03] Production.INFO: ==22189== Lock acquired, processing the job... [2025-03-03 13:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:18:03] Production.INFO: Account Balance Start. [2025-03-03 13:18:03] Production.INFO: CreateAllLog Start [2025-03-03 13:18:04] Production.INFO: 117 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: ==22193== Lock acquired, processing the job... [2025-03-03 13:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:18:04] Production.INFO: ==22183== Lock acquired, processing the job... [2025-03-03 13:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: count ==13 [2025-03-03 13:18:04] Production.INFO: ==22185== Lock acquired, processing the job... [2025-03-03 13:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:18:04] Production.INFO: count ==21 [2025-03-03 13:18:04] Production.INFO: ==22191== Lock acquired, processing the job... [2025-03-03 13:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598717') start [2025-03-03 13:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: ==22187== Lock acquired, processing the job... [2025-03-03 13:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598717') end [2025-03-03 13:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:18:04] Production.INFO: 1 [2025-03-03 13:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: ==22193== Releasing lock... [2025-03-03 13:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.ERROR: done [2025-03-03 13:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: ==22185== Releasing lock... [2025-03-03 13:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:04] Production.ERROR: done [2025-03-03 13:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:18:05] Production.INFO: Total Charge 0 [2025-03-03 13:18:05] Production.INFO: CreateAllLog End [2025-03-03 13:18:05] Production.INFO: Account Balance End. [2025-03-03 13:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:18:05] Production.INFO: ==22189== Releasing lock... [2025-03-03 13:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:18:06 [end_date_ymd] => 2025-03-03 13:18:06 [RateCDR] => 1 ) [2025-03-03 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:18:06' and `end` < '2025-03-03 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:18:13] Production.ERROR: CronJobId end10 [2025-03-03 13:18:13] Production.INFO: ==22187== Releasing lock... [2025-03-03 13:18:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:18:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:18:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:18:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:18:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:18:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:18:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:18:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:18:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:18:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:18:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:18:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:18:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:18:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:18:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:18:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:18:16] Production.INFO: call_cost start [2025-03-03 13:18:16] Production.INFO: call_cost end [2025-03-03 13:18:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:18:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:18:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:18:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:18:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:18:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:18:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:18:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:18:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:18:17] Production.INFO: ==22183== Releasing lock... [2025-03-03 13:18:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:18:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:18:19] Production.INFO: count ==6364 [2025-03-03 13:18:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:18:06 - End Time 2025-03-03 13:18:06 [2025-03-03 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598720', 'tblTempUsageDetail_20' ) start [2025-03-03 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598720', 'tblTempUsageDetail_20' ) end [2025-03-03 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598720', 'tblTempVendorCDR_20' ) start [2025-03-03 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598720', 'tblTempVendorCDR_20' ) end [2025-03-03 13:18:22] Production.INFO: ProcessCDR(1,14598720,1,1,2) [2025-03-03 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598720', 'tblTempUsageDetail_20' ) start [2025-03-03 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598720', 'tblTempUsageDetail_20' ) end [2025-03-03 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:18:27] Production.INFO: ==22191== Releasing lock... [2025-03-03 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:18:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:19:02] Production.INFO: ==22252== Lock acquired, processing the job... [2025-03-03 18:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:19:02] Production.INFO: neon service started [2025-03-03 18:19:02] Production.INFO: neon service started [2025-03-03 18:19:02] Production.INFO: ==22252== Releasing lock... [2025-03-03 18:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:19:02] Production.INFO: ==22254== Lock acquired, processing the job... [2025-03-03 13:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:19:02] Production.INFO: ==22256== Lock acquired, processing the job... [2025-03-03 18:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:19:03] Production.INFO: ==22256== Releasing lock... [2025-03-03 18:19:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:19:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:19:03] Production.INFO: ==22254== Releasing lock... [2025-03-03 13:19:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:19:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:19:03] Production.INFO: ==22266== Lock acquired, processing the job... [2025-03-03 13:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:19:03] Production.INFO: ==22264== Lock acquired, processing the job... [2025-03-03 13:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:19:04] Production.INFO: ==22258== Lock acquired, processing the job... [2025-03-03 13:19:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:19:04] Production.INFO: Account Balance Start. [2025-03-03 13:19:04] Production.INFO: CreateAllLog Start [2025-03-03 13:19:04] Production.INFO: ==22260== Lock acquired, processing the job... [2025-03-03 13:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:19:04] Production.INFO: 117 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: ==22262== Lock acquired, processing the job... [2025-03-03 13:19:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: ==22268== Lock acquired, processing the job... [2025-03-03 13:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:19:04] Production.ERROR: done [2025-03-03 13:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:19:04] Production.INFO: count ==13 [2025-03-03 13:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:19:04] Production.INFO: count ==21 [2025-03-03 13:19:04] Production.INFO: ==22260== Releasing lock... [2025-03-03 13:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598724') start [2025-03-03 13:19:04] Production.ERROR: done [2025-03-03 13:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598724') end [2025-03-03 13:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:19:04] Production.INFO: 1 [2025-03-03 13:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:19:04] Production.INFO: ==22268== Releasing lock... [2025-03-03 13:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:19:05] Production.INFO: Total Charge 0 [2025-03-03 13:19:05] Production.INFO: CreateAllLog End [2025-03-03 13:19:05] Production.INFO: Account Balance End. [2025-03-03 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:19:05 [end_date_ymd] => 2025-03-03 13:19:05 [RateCDR] => 1 ) [2025-03-03 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:19:05' and `end` < '2025-03-03 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:19:05] Production.INFO: ==22264== Releasing lock... [2025-03-03 13:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:19:13] Production.ERROR: CronJobId end10 [2025-03-03 13:19:13] Production.INFO: ==22262== Releasing lock... [2025-03-03 13:19:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:19:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:19:15] Production.INFO: call_cost start [2025-03-03 13:19:15] Production.INFO: call_cost end [2025-03-03 13:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:19:16] Production.INFO: ==22258== Releasing lock... [2025-03-03 13:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:19:19] Production.INFO: count ==6383 [2025-03-03 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:19:05 - End Time 2025-03-03 13:19:05 [2025-03-03 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598725', 'tblTempUsageDetail_20' ) start [2025-03-03 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598725', 'tblTempUsageDetail_20' ) end [2025-03-03 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598725', 'tblTempVendorCDR_20' ) start [2025-03-03 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598725', 'tblTempVendorCDR_20' ) end [2025-03-03 13:19:22] Production.INFO: ProcessCDR(1,14598725,1,1,2) [2025-03-03 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598725', 'tblTempUsageDetail_20' ) start [2025-03-03 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598725', 'tblTempUsageDetail_20' ) end [2025-03-03 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:19:27] Production.INFO: ==22266== Releasing lock... [2025-03-03 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:19:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:20:01] Production.INFO: ==22326== Lock acquired, processing the job... [2025-03-03 18:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:20:01] Production.INFO: neon service started [2025-03-03 18:20:01] Production.INFO: neon service started [2025-03-03 18:20:01] Production.INFO: ==22326== Releasing lock... [2025-03-03 18:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:20:02] Production.INFO: ==22330== Lock acquired, processing the job... [2025-03-03 18:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:20:02] Production.INFO: ==22330== Releasing lock... [2025-03-03 18:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:20:02] Production.INFO: ==22328== Lock acquired, processing the job... [2025-03-03 13:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:20:02] Production.INFO: ==22328== Releasing lock... [2025-03-03 13:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:20:03] Production.INFO: ==22339== Lock acquired, processing the job... [2025-03-03 13:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:20:04] Production.INFO: ==22343== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:20:04] Production.INFO: ==22333== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 13:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:20:04] Production.INFO: ==22335== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:20:04] Production.INFO: ==22337== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:20:04] Production.INFO: ==22347== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:20:04] Production.INFO: ==22341== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:20:04] Production.INFO: ==22345== Lock acquired, processing the job... [2025-03-03 13:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 13:20:04] Production.INFO: Account Balance Start. [2025-03-03 13:20:04] Production.INFO: CreateAllLog Start [2025-03-03 13:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:20:04] Production.INFO: 117 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22335 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 5 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22337 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 7 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22339 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 10 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22341 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 12 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22343 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 16 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22345 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 17 [2025-03-03 13:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:20:04] Production.INFO: count ==13 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:20:04] Production.ERROR: CronJob PID - 22347 [2025-03-03 13:20:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 13:20:04] Production.ERROR: CronJob ID - 19 [2025-03-03 13:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:20:00 [2025-03-03 13:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:20:04] Production.INFO: count ==21 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598727') start [2025-03-03 13:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 13:20:04] Production.INFO: ==22333== Releasing lock... [2025-03-03 13:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 13:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.ERROR: done [2025-03-03 13:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598727') end [2025-03-03 13:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:20:04] Production.INFO: 1 [2025-03-03 13:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.INFO: ==22337== Releasing lock... [2025-03-03 13:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:20:04] Production.INFO: ==22347== Releasing lock... [2025-03-03 13:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:20:04] Production.ERROR: done [2025-03-03 13:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.ERROR: done [2025-03-03 13:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 13:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598730', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 13:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:20:05] Production.INFO: Total Charge 0 [2025-03-03 13:20:05] Production.INFO: CreateAllLog End [2025-03-03 13:20:05] Production.INFO: Account Balance End. [2025-03-03 13:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:20:05] Production.INFO: ==22341== Releasing lock... [2025-03-03 13:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:20:06 [end_date_ymd] => 2025-03-03 13:20:06 [RateCDR] => 1 ) [2025-03-03 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:20:06' and `end` < '2025-03-03 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598730', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 13:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 13:20:09] Production.INFO: ProcessCDR(1,14598730,1,1,2) [2025-03-03 13:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598730,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598730,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:20:09] Production.INFO: ==22345== Releasing lock... [2025-03-03 13:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 13:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:20:15] Production.ERROR: CronJobId end10 [2025-03-03 13:20:15] Production.INFO: ==22339== Releasing lock... [2025-03-03 13:20:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:20:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:20:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:20:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:20:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:20:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:20:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:20:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:20:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:20:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:20:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:20:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:20:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:20:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:20:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:20:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:20:16] Production.INFO: call_cost start [2025-03-03 13:20:16] Production.INFO: call_cost end [2025-03-03 13:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:20:17] Production.INFO: ==22335== Releasing lock... [2025-03-03 13:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:20:19] Production.INFO: count ==6383 [2025-03-03 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:20:06 - End Time 2025-03-03 13:20:06 [2025-03-03 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598731', 'tblTempUsageDetail_20' ) start [2025-03-03 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598731', 'tblTempUsageDetail_20' ) end [2025-03-03 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598731', 'tblTempVendorCDR_20' ) start [2025-03-03 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598731', 'tblTempVendorCDR_20' ) end [2025-03-03 13:20:22] Production.INFO: ProcessCDR(1,14598731,1,1,2) [2025-03-03 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598731', 'tblTempUsageDetail_20' ) start [2025-03-03 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598731', 'tblTempUsageDetail_20' ) end [2025-03-03 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:20:28] Production.INFO: ==22343== Releasing lock... [2025-03-03 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:20:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:21:02] Production.INFO: ==22400== Lock acquired, processing the job... [2025-03-03 18:21:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:21:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:21:02] Production.INFO: neon service started [2025-03-03 18:21:02] Production.INFO: neon service started [2025-03-03 18:21:02] Production.INFO: ==22400== Releasing lock... [2025-03-03 18:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:21:02] Production.INFO: ==22402== Lock acquired, processing the job... [2025-03-03 13:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:21:02] Production.INFO: ==22402== Releasing lock... [2025-03-03 13:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:21:03] Production.INFO: ==22404== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:21:03] Production.INFO: ==22404== Releasing lock... [2025-03-03 18:21:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:21:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:21:03] Production.INFO: ==22409== Lock acquired, processing the job... [2025-03-03 13:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:21:03] Production.INFO: ==22417== Lock acquired, processing the job... [2025-03-03 13:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:21:04] Production.INFO: ==22407== Lock acquired, processing the job... [2025-03-03 13:21:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:21:04] Production.INFO: count ==13 [2025-03-03 13:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:21:04] Production.INFO: count ==21 [2025-03-03 13:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598733') start [2025-03-03 13:21:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:21:04] Production.INFO: ==22411== Lock acquired, processing the job... [2025-03-03 13:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:21:04] Production.INFO: ==22413== Lock acquired, processing the job... [2025-03-03 13:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:21:04] Production.INFO: ==22415== Lock acquired, processing the job... [2025-03-03 13:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598733') end [2025-03-03 13:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:21:04] Production.INFO: 1 [2025-03-03 13:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:21:04] Production.INFO: ==22409== Releasing lock... [2025-03-03 13:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:21:04] Production.INFO: Account Balance Start. [2025-03-03 13:21:04] Production.INFO: ==22417== Releasing lock... [2025-03-03 13:21:04] Production.INFO: CreateAllLog Start [2025-03-03 13:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:21:04] Production.INFO: 117 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.ERROR: done [2025-03-03 13:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.ERROR: done [2025-03-03 13:21:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:21:05] Production.INFO: Total Charge 0 [2025-03-03 13:21:05] Production.INFO: CreateAllLog End [2025-03-03 13:21:05] Production.INFO: Account Balance End. [2025-03-03 13:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:21:05] Production.INFO: ==22413== Releasing lock... [2025-03-03 13:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:21:06 [end_date_ymd] => 2025-03-03 13:21:06 [RateCDR] => 1 ) [2025-03-03 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:21:06' and `end` < '2025-03-03 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:21:14] Production.ERROR: CronJobId end10 [2025-03-03 13:21:14] Production.INFO: ==22411== Releasing lock... [2025-03-03 13:21:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:21:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:21:15] Production.INFO: call_cost start [2025-03-03 13:21:15] Production.INFO: call_cost end [2025-03-03 13:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:21:16] Production.INFO: ==22407== Releasing lock... [2025-03-03 13:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:21:19] Production.INFO: count ==6392 [2025-03-03 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:21:06 - End Time 2025-03-03 13:21:06 [2025-03-03 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598736', 'tblTempUsageDetail_20' ) start [2025-03-03 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598736', 'tblTempUsageDetail_20' ) end [2025-03-03 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598736', 'tblTempVendorCDR_20' ) start [2025-03-03 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598736', 'tblTempVendorCDR_20' ) end [2025-03-03 13:21:22] Production.INFO: ProcessCDR(1,14598736,1,1,2) [2025-03-03 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598736', 'tblTempUsageDetail_20' ) start [2025-03-03 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598736', 'tblTempUsageDetail_20' ) end [2025-03-03 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:21:27] Production.INFO: ==22415== Releasing lock... [2025-03-03 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:21:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 18:22:01] Production.INFO: ==22470== Lock acquired, processing the job... [2025-03-03 18:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:22:01] Production.INFO: neon service started [2025-03-03 18:22:01] Production.INFO: neon service started [2025-03-03 18:22:01] Production.INFO: ==22470== Releasing lock... [2025-03-03 18:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:22:02] Production.INFO: ==22472== Lock acquired, processing the job... [2025-03-03 13:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:22:02] Production.INFO: ==22474== Lock acquired, processing the job... [2025-03-03 18:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:22:02] Production.INFO: ==22474== Releasing lock... [2025-03-03 18:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:22:02] Production.INFO: ==22472== Releasing lock... [2025-03-03 13:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:22:03] Production.INFO: ==22477== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:22:03] Production.INFO: ==22479== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:22:03] Production.INFO: ==22481== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:22:03] Production.INFO: ==22483== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:22:03] Production.INFO: ==22485== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:22:03] Production.INFO: ==22487== Lock acquired, processing the job... [2025-03-03 13:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:22:03] Production.INFO: Account Balance Start. [2025-03-03 13:22:03] Production.INFO: CreateAllLog Start [2025-03-03 13:22:03] Production.INFO: 117 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: count ==13 [2025-03-03 13:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:22:04] Production.INFO: count ==21 [2025-03-03 13:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598740') start [2025-03-03 13:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:22:04] Production.INFO: ==22479== Releasing lock... [2025-03-03 13:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598740') end [2025-03-03 13:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:22:04] Production.INFO: 1 [2025-03-03 13:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:22:04] Production.INFO: ==22487== Releasing lock... [2025-03-03 13:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.ERROR: done [2025-03-03 13:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.ERROR: done [2025-03-03 13:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:22:05] Production.INFO: Total Charge 0 [2025-03-03 13:22:05] Production.INFO: CreateAllLog End [2025-03-03 13:22:05] Production.INFO: Account Balance End. [2025-03-03 13:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:22:05] Production.INFO: ==22483== Releasing lock... [2025-03-03 13:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:22:05 [end_date_ymd] => 2025-03-03 13:22:05 [RateCDR] => 1 ) [2025-03-03 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:22:05' and `end` < '2025-03-03 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:22:12] Production.ERROR: CronJobId end10 [2025-03-03 13:22:12] Production.INFO: ==22481== Releasing lock... [2025-03-03 13:22:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:22:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:22:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:22:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:22:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:22:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:22:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:22:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:22:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:22:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:22:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:22:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:22:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:22:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:22:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:22:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:22:13] Production.INFO: call_cost start [2025-03-03 13:22:13] Production.INFO: call_cost end [2025-03-03 13:22:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:22:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:22:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:22:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:22:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:22:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:22:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:22:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:22:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:22:14] Production.INFO: ==22477== Releasing lock... [2025-03-03 13:22:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:22:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:22:19] Production.INFO: count ==6389 [2025-03-03 13:22:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:22:05 - End Time 2025-03-03 13:22:05 [2025-03-03 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598741', 'tblTempUsageDetail_20' ) start [2025-03-03 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598741', 'tblTempUsageDetail_20' ) end [2025-03-03 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598741', 'tblTempVendorCDR_20' ) start [2025-03-03 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598741', 'tblTempVendorCDR_20' ) end [2025-03-03 13:22:22] Production.INFO: ProcessCDR(1,14598741,1,1,2) [2025-03-03 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598741', 'tblTempUsageDetail_20' ) start [2025-03-03 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598741', 'tblTempUsageDetail_20' ) end [2025-03-03 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:22:27] Production.INFO: ==22485== Releasing lock... [2025-03-03 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:22:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:23:02] Production.INFO: ==22544== Lock acquired, processing the job... [2025-03-03 18:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:23:02] Production.INFO: neon service started [2025-03-03 18:23:02] Production.INFO: neon service started [2025-03-03 18:23:02] Production.INFO: ==22544== Releasing lock... [2025-03-03 18:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:23:02] Production.INFO: ==22546== Lock acquired, processing the job... [2025-03-03 13:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:23:02] Production.INFO: ==22548== Lock acquired, processing the job... [2025-03-03 18:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:23:03] Production.INFO: ==22548== Releasing lock... [2025-03-03 18:23:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:23:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:23:03] Production.INFO: ==22546== Releasing lock... [2025-03-03 13:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:23:04] Production.INFO: ==22555== Lock acquired, processing the job... [2025-03-03 13:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:23:04] Production.INFO: ==22561== Lock acquired, processing the job... [2025-03-03 13:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:23:04] Production.INFO: ==22551== Lock acquired, processing the job... [2025-03-03 13:23:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:23:04] Production.INFO: ==22553== Lock acquired, processing the job... [2025-03-03 13:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:23:04] Production.INFO: count ==13 [2025-03-03 13:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:23:04] Production.INFO: count ==21 [2025-03-03 13:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598742') start [2025-03-03 13:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:23:04] Production.INFO: ==22557== Lock acquired, processing the job... [2025-03-03 13:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:23:04] Production.INFO: ==22559== Lock acquired, processing the job... [2025-03-03 13:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598742') end [2025-03-03 13:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:23:04] Production.INFO: 1 [2025-03-03 13:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:23:04] Production.INFO: Account Balance Start. [2025-03-03 13:23:04] Production.INFO: CreateAllLog Start [2025-03-03 13:23:04] Production.INFO: 117 [2025-03-03 13:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:04] Production.INFO: ==22561== Releasing lock... [2025-03-03 13:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:04] Production.INFO: ==22553== Releasing lock... [2025-03-03 13:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:04] Production.ERROR: done [2025-03-03 13:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-14 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.ERROR: done [2025-03-03 13:23:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:23:05] Production.INFO: Total Charge 0 [2025-03-03 13:23:05] Production.INFO: CreateAllLog End [2025-03-03 13:23:05] Production.INFO: Account Balance End. [2025-03-03 13:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:23:05] Production.INFO: ==22557== Releasing lock... [2025-03-03 13:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:23:06 [end_date_ymd] => 2025-03-03 13:23:06 [RateCDR] => 1 ) [2025-03-03 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:23:06' and `end` < '2025-03-03 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:23:14] Production.ERROR: CronJobId end10 [2025-03-03 13:23:14] Production.INFO: ==22555== Releasing lock... [2025-03-03 13:23:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:23:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:23:16] Production.INFO: call_cost start [2025-03-03 13:23:16] Production.INFO: call_cost end [2025-03-03 13:23:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:23:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:23:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:23:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:23:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:23:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:23:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:23:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:23:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:23:17] Production.INFO: ==22551== Releasing lock... [2025-03-03 13:23:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:23:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:23:19] Production.INFO: count ==6375 [2025-03-03 13:23:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:23:06 - End Time 2025-03-03 13:23:06 [2025-03-03 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598746', 'tblTempUsageDetail_20' ) start [2025-03-03 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598746', 'tblTempUsageDetail_20' ) end [2025-03-03 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598746', 'tblTempVendorCDR_20' ) start [2025-03-03 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598746', 'tblTempVendorCDR_20' ) end [2025-03-03 13:23:23] Production.INFO: ProcessCDR(1,14598746,1,1,2) [2025-03-03 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598746', 'tblTempUsageDetail_20' ) start [2025-03-03 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598746', 'tblTempUsageDetail_20' ) end [2025-03-03 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:23:28] Production.INFO: ==22559== Releasing lock... [2025-03-03 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:23:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:24:01] Production.INFO: ==22621== Lock acquired, processing the job... [2025-03-03 18:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:24:01] Production.INFO: neon service started [2025-03-03 18:24:01] Production.INFO: neon service started [2025-03-03 18:24:01] Production.INFO: ==22621== Releasing lock... [2025-03-03 18:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:24:02] Production.INFO: ==22625== Lock acquired, processing the job... [2025-03-03 18:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:24:02] Production.INFO: ==22625== Releasing lock... [2025-03-03 18:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:24:02] Production.INFO: ==22623== Lock acquired, processing the job... [2025-03-03 13:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:24:02] Production.INFO: ==22623== Releasing lock... [2025-03-03 13:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:24:03] Production.INFO: ==22628== Lock acquired, processing the job... [2025-03-03 13:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:24:04] Production.INFO: ==22630== Lock acquired, processing the job... [2025-03-03 13:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:24:04] Production.INFO: ==22632== Lock acquired, processing the job... [2025-03-03 13:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:24:04] Production.INFO: ==22638== Lock acquired, processing the job... [2025-03-03 13:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:24:04] Production.INFO: ==22636== Lock acquired, processing the job... [2025-03-03 13:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:24:04] Production.INFO: ==22634== Lock acquired, processing the job... [2025-03-03 13:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:24:04] Production.INFO: count ==13 [2025-03-03 13:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:24:04] Production.INFO: count ==21 [2025-03-03 13:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598749') start [2025-03-03 13:24:04] Production.INFO: Account Balance Start. [2025-03-03 13:24:04] Production.INFO: CreateAllLog Start [2025-03-03 13:24:04] Production.INFO: 117 [2025-03-03 13:24:04] Production.INFO: ==22630== Releasing lock... [2025-03-03 13:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598749') end [2025-03-03 13:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:24:04] Production.INFO: 1 [2025-03-03 13:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.ERROR: done [2025-03-03 13:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:24:04] Production.INFO: ==22638== Releasing lock... [2025-03-03 13:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.ERROR: done [2025-03-03 13:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:24:05] Production.INFO: Total Charge 0 [2025-03-03 13:24:05] Production.INFO: CreateAllLog End [2025-03-03 13:24:05] Production.INFO: Account Balance End. [2025-03-03 13:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:24:05] Production.INFO: ==22634== Releasing lock... [2025-03-03 13:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:24:06 [end_date_ymd] => 2025-03-03 13:24:06 [RateCDR] => 1 ) [2025-03-03 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:24:06' and `end` < '2025-03-03 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:24:14] Production.ERROR: CronJobId end10 [2025-03-03 13:24:14] Production.INFO: ==22632== Releasing lock... [2025-03-03 13:24:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:24:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:24:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:24:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:24:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:24:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:24:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:24:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:24:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:24:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:24:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:24:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:24:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:24:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:24:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:24:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:24:16] Production.INFO: call_cost start [2025-03-03 13:24:16] Production.INFO: call_cost end [2025-03-03 13:24:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:24:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:24:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:24:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:24:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:24:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:24:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:24:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:24:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:24:17] Production.INFO: ==22628== Releasing lock... [2025-03-03 13:24:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:24:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:24:19] Production.INFO: count ==6370 [2025-03-03 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:24:06 - End Time 2025-03-03 13:24:06 [2025-03-03 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598751', 'tblTempUsageDetail_20' ) start [2025-03-03 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598751', 'tblTempUsageDetail_20' ) end [2025-03-03 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598751', 'tblTempVendorCDR_20' ) start [2025-03-03 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598751', 'tblTempVendorCDR_20' ) end [2025-03-03 13:24:22] Production.INFO: ProcessCDR(1,14598751,1,1,2) [2025-03-03 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598751', 'tblTempUsageDetail_20' ) start [2025-03-03 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598751', 'tblTempUsageDetail_20' ) end [2025-03-03 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:24:28] Production.INFO: ==22636== Releasing lock... [2025-03-03 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:24:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:25:02] Production.INFO: ==22695== Lock acquired, processing the job... [2025-03-03 18:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:25:02] Production.INFO: neon service started [2025-03-03 18:25:02] Production.INFO: neon service started [2025-03-03 18:25:02] Production.INFO: ==22695== Releasing lock... [2025-03-03 18:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:25:02] Production.INFO: ==22697== Lock acquired, processing the job... [2025-03-03 13:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:25:02] Production.INFO: ==22697== Releasing lock... [2025-03-03 13:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:25:03] Production.INFO: ==22699== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:25:03] Production.INFO: ==22699== Releasing lock... [2025-03-03 18:25:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:25:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:25:03] Production.INFO: ==22704== Lock acquired, processing the job... [2025-03-03 13:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:25:03] Production.INFO: ==22702== Lock acquired, processing the job... [2025-03-03 13:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:25:04] Production.INFO: ==22710== Lock acquired, processing the job... [2025-03-03 13:25:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:25:04] Production.INFO: ==22706== Lock acquired, processing the job... [2025-03-03 13:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:25:04] Production.INFO: ==22712== Lock acquired, processing the job... [2025-03-03 13:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:25:04] Production.INFO: ==22708== Lock acquired, processing the job... [2025-03-03 13:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:25:04] Production.INFO: ==22704== Releasing lock... [2025-03-03 13:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:25:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:25:04] Production.INFO: Account Balance Start. [2025-03-03 13:25:04] Production.INFO: CreateAllLog Start [2025-03-03 13:25:04] Production.INFO: 117 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: count ==13 [2025-03-03 13:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:25:04] Production.INFO: count ==21 [2025-03-03 13:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598755') start [2025-03-03 13:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:25:04] Production.ERROR: done [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598755') end [2025-03-03 13:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:25:04] Production.INFO: 1 [2025-03-03 13:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: ==22712== Releasing lock... [2025-03-03 13:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:25:04] Production.ERROR: done [2025-03-03 13:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:25:05] Production.INFO: Total Charge 0 [2025-03-03 13:25:05] Production.INFO: CreateAllLog End [2025-03-03 13:25:05] Production.INFO: Account Balance End. [2025-03-03 13:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:25:05] Production.INFO: ==22708== Releasing lock... [2025-03-03 13:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:25:06 [end_date_ymd] => 2025-03-03 13:25:06 [RateCDR] => 1 ) [2025-03-03 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:25:06' and `end` < '2025-03-03 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:25:14] Production.ERROR: CronJobId end10 [2025-03-03 13:25:14] Production.INFO: ==22706== Releasing lock... [2025-03-03 13:25:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:25:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:25:15] Production.INFO: call_cost start [2025-03-03 13:25:15] Production.INFO: call_cost end [2025-03-03 13:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:25:16] Production.INFO: ==22702== Releasing lock... [2025-03-03 13:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:25:19] Production.INFO: count ==6366 [2025-03-03 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:25:06 - End Time 2025-03-03 13:25:06 [2025-03-03 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598756', 'tblTempUsageDetail_20' ) start [2025-03-03 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598756', 'tblTempUsageDetail_20' ) end [2025-03-03 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598756', 'tblTempVendorCDR_20' ) start [2025-03-03 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598756', 'tblTempVendorCDR_20' ) end [2025-03-03 13:25:22] Production.INFO: ProcessCDR(1,14598756,1,1,2) [2025-03-03 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598756', 'tblTempUsageDetail_20' ) start [2025-03-03 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598756', 'tblTempUsageDetail_20' ) end [2025-03-03 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:25:27] Production.INFO: ==22710== Releasing lock... [2025-03-03 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:25:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:26:01] Production.INFO: ==22766== Lock acquired, processing the job... [2025-03-03 18:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:26:01] Production.INFO: neon service started [2025-03-03 18:26:01] Production.INFO: neon service started [2025-03-03 18:26:01] Production.INFO: ==22766== Releasing lock... [2025-03-03 18:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:26:02] Production.INFO: ==22770== Lock acquired, processing the job... [2025-03-03 18:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:26:02] Production.INFO: ==22770== Releasing lock... [2025-03-03 18:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:26:02] Production.INFO: ==22768== Lock acquired, processing the job... [2025-03-03 13:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:26:02] Production.INFO: ==22768== Releasing lock... [2025-03-03 13:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:26:03] Production.INFO: ==22779== Lock acquired, processing the job... [2025-03-03 13:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:26:03] Production.INFO: Account Balance Start. [2025-03-03 13:26:03] Production.INFO: CreateAllLog Start [2025-03-03 13:26:03] Production.INFO: 117 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: ==22783== Lock acquired, processing the job... [2025-03-03 13:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:26:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-14 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:26:03] Production.INFO: ==22773== Lock acquired, processing the job... [2025-03-03 13:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:26:03] Production.INFO: ==22775== Lock acquired, processing the job... [2025-03-03 13:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:26:03] Production.INFO: count ==13 [2025-03-03 13:26:03] Production.INFO: Date 2025-02-15 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:26:03] Production.INFO: count ==21 [2025-03-03 13:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598758') start [2025-03-03 13:26:03] Production.INFO: Date 2025-02-16 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.INFO: ==22777== Lock acquired, processing the job... [2025-03-03 13:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:26:03] Production.INFO: ==22781== Lock acquired, processing the job... [2025-03-03 13:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:26:03] Production.INFO: Date 2025-02-17 [2025-03-03 13:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598758') end [2025-03-03 13:26:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:26:03] Production.INFO: 1 [2025-03-03 13:26:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:26:03] Production.INFO: ==22783== Releasing lock... [2025-03-03 13:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:26:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.ERROR: done [2025-03-03 13:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:26:04] Production.INFO: ==22775== Releasing lock... [2025-03-03 13:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.ERROR: done [2025-03-03 13:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:26:04] Production.INFO: Total Charge 0 [2025-03-03 13:26:04] Production.INFO: CreateAllLog End [2025-03-03 13:26:04] Production.INFO: Account Balance End. [2025-03-03 13:26:04] Production.ERROR: CronJobId end 12 [2025-03-03 13:26:04] Production.INFO: ==22779== Releasing lock... [2025-03-03 13:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:26:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:26:05 [end_date_ymd] => 2025-03-03 13:26:05 [RateCDR] => 1 ) [2025-03-03 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:26:05' and `end` < '2025-03-03 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:26:13] Production.ERROR: CronJobId end10 [2025-03-03 13:26:13] Production.INFO: ==22777== Releasing lock... [2025-03-03 13:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:26:15] Production.INFO: call_cost start [2025-03-03 13:26:15] Production.INFO: call_cost end [2025-03-03 13:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:26:16] Production.INFO: ==22773== Releasing lock... [2025-03-03 13:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:26:19] Production.INFO: count ==6378 [2025-03-03 13:26:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:26:05 - End Time 2025-03-03 13:26:05 [2025-03-03 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598761', 'tblTempUsageDetail_20' ) start [2025-03-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598761', 'tblTempUsageDetail_20' ) end [2025-03-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598761', 'tblTempVendorCDR_20' ) start [2025-03-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598761', 'tblTempVendorCDR_20' ) end [2025-03-03 13:26:22] Production.INFO: ProcessCDR(1,14598761,1,1,2) [2025-03-03 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598761', 'tblTempUsageDetail_20' ) start [2025-03-03 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598761', 'tblTempUsageDetail_20' ) end [2025-03-03 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:26:25] Production.INFO: ==22781== Releasing lock... [2025-03-03 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:26:25] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 18:27:02] Production.INFO: ==22841== Lock acquired, processing the job... [2025-03-03 18:27:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:27:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:27:02] Production.INFO: neon service started [2025-03-03 18:27:02] Production.INFO: neon service started [2025-03-03 18:27:02] Production.INFO: ==22841== Releasing lock... [2025-03-03 18:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:27:02] Production.INFO: ==22843== Lock acquired, processing the job... [2025-03-03 13:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:27:02] Production.INFO: ==22845== Lock acquired, processing the job... [2025-03-03 18:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:27:02] Production.INFO: ==22845== Releasing lock... [2025-03-03 18:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:27:03] Production.INFO: ==22843== Releasing lock... [2025-03-03 13:27:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:27:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:27:04] Production.INFO: ==22854== Lock acquired, processing the job... [2025-03-03 13:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:27:04] Production.INFO: ==22856== Lock acquired, processing the job... [2025-03-03 13:27:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:27:04] Production.INFO: Account Balance Start. [2025-03-03 13:27:04] Production.INFO: CreateAllLog Start [2025-03-03 13:27:04] Production.INFO: 117 [2025-03-03 13:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:27:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: ==22848== Lock acquired, processing the job... [2025-03-03 13:27:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: ==22852== Lock acquired, processing the job... [2025-03-03 13:27:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:27:04] Production.INFO: ==22850== Lock acquired, processing the job... [2025-03-03 13:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: ==22858== Lock acquired, processing the job... [2025-03-03 13:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:27:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:27:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:27:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: count ==13 [2025-03-03 13:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:27:04] Production.INFO: count ==21 [2025-03-03 13:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598764') start [2025-03-03 13:27:04] Production.ERROR: done [2025-03-03 13:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598764') end [2025-03-03 13:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:27:04] Production.INFO: 1 [2025-03-03 13:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:04] Production.INFO: ==22858== Releasing lock... [2025-03-03 13:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:27:04] Production.INFO: ==22850== Releasing lock... [2025-03-03 13:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:27:05] Production.ERROR: done [2025-03-03 13:27:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:27:05] Production.INFO: Total Charge 0 [2025-03-03 13:27:05] Production.INFO: CreateAllLog End [2025-03-03 13:27:05] Production.INFO: Account Balance End. [2025-03-03 13:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:27:05] Production.INFO: ==22854== Releasing lock... [2025-03-03 13:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:27:06 [end_date_ymd] => 2025-03-03 13:27:06 [RateCDR] => 1 ) [2025-03-03 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:27:06' and `end` < '2025-03-03 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:27:13] Production.ERROR: CronJobId end10 [2025-03-03 13:27:13] Production.INFO: ==22852== Releasing lock... [2025-03-03 13:27:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:27:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:27:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:27:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:27:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:27:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:27:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:27:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:27:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:27:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:27:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:27:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:27:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:27:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:27:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:27:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:27:15] Production.INFO: call_cost start [2025-03-03 13:27:15] Production.INFO: call_cost end [2025-03-03 13:27:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:27:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:27:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:27:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:27:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:27:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:27:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:27:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:27:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:27:16] Production.INFO: ==22848== Releasing lock... [2025-03-03 13:27:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:27:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:27:19] Production.INFO: count ==6407 [2025-03-03 13:27:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:27:06 - End Time 2025-03-03 13:27:06 [2025-03-03 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598766', 'tblTempUsageDetail_20' ) start [2025-03-03 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598766', 'tblTempUsageDetail_20' ) end [2025-03-03 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598766', 'tblTempVendorCDR_20' ) start [2025-03-03 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598766', 'tblTempVendorCDR_20' ) end [2025-03-03 13:27:22] Production.INFO: ProcessCDR(1,14598766,1,1,2) [2025-03-03 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598766', 'tblTempUsageDetail_20' ) start [2025-03-03 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598766', 'tblTempUsageDetail_20' ) end [2025-03-03 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:27:27] Production.INFO: ==22856== Releasing lock... [2025-03-03 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:27:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 18:28:01] Production.INFO: ==22910== Lock acquired, processing the job... [2025-03-03 18:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:28:01] Production.INFO: neon service started [2025-03-03 18:28:01] Production.INFO: neon service started [2025-03-03 18:28:01] Production.INFO: ==22910== Releasing lock... [2025-03-03 18:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:28:01] Production.INFO: ==22912== Lock acquired, processing the job... [2025-03-03 13:28:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:28:02] Production.INFO: ==22912== Releasing lock... [2025-03-03 13:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:28:02] Production.INFO: ==22914== Lock acquired, processing the job... [2025-03-03 18:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:28:02] Production.INFO: ==22914== Releasing lock... [2025-03-03 18:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:28:03] Production.INFO: ==22916== Lock acquired, processing the job... [2025-03-03 13:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:28:03] Production.INFO: ==22918== Lock acquired, processing the job... [2025-03-03 13:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:28:03] Production.INFO: ==22924== Lock acquired, processing the job... [2025-03-03 13:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:28:03] Production.INFO: ==22920== Lock acquired, processing the job... [2025-03-03 13:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:28:03] Production.INFO: ==22922== Lock acquired, processing the job... [2025-03-03 13:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:28:03] Production.INFO: ==22926== Lock acquired, processing the job... [2025-03-03 13:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:28:03] Production.INFO: ==22918== Releasing lock... [2025-03-03 13:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:28:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:28:03] Production.INFO: Account Balance Start. [2025-03-03 13:28:03] Production.INFO: CreateAllLog Start [2025-03-03 13:28:03] Production.INFO: count ==13 [2025-03-03 13:28:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:28:03] Production.INFO: 117 [2025-03-03 13:28:03] Production.INFO: count ==21 [2025-03-03 13:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:28:03] Production.ERROR: done [2025-03-03 13:28:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:28:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598770') start [2025-03-03 13:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598770') end [2025-03-03 13:28:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:28:03] Production.INFO: 1 [2025-03-03 13:28:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:28:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.ERROR: done [2025-03-03 13:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: ==22926== Releasing lock... [2025-03-03 13:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:28:04] Production.INFO: Total Charge 0 [2025-03-03 13:28:04] Production.INFO: CreateAllLog End [2025-03-03 13:28:05] Production.INFO: Account Balance End. [2025-03-03 13:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:28:05] Production.INFO: ==22922== Releasing lock... [2025-03-03 13:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:28:05 [end_date_ymd] => 2025-03-03 13:28:05 [RateCDR] => 1 ) [2025-03-03 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:28:05' and `end` < '2025-03-03 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:28:13] Production.ERROR: CronJobId end10 [2025-03-03 13:28:13] Production.INFO: ==22920== Releasing lock... [2025-03-03 13:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:28:14] Production.INFO: call_cost start [2025-03-03 13:28:14] Production.INFO: call_cost end [2025-03-03 13:28:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:28:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:28:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:28:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:28:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:28:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:28:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:28:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:28:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:28:15] Production.INFO: ==22916== Releasing lock... [2025-03-03 13:28:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:28:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:28:18] Production.INFO: count ==6415 [2025-03-03 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:28:05 - End Time 2025-03-03 13:28:05 [2025-03-03 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598771', 'tblTempUsageDetail_20' ) start [2025-03-03 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598771', 'tblTempUsageDetail_20' ) end [2025-03-03 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598771', 'tblTempVendorCDR_20' ) start [2025-03-03 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598771', 'tblTempVendorCDR_20' ) end [2025-03-03 13:28:22] Production.INFO: ProcessCDR(1,14598771,1,1,2) [2025-03-03 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598771', 'tblTempUsageDetail_20' ) start [2025-03-03 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598771', 'tblTempUsageDetail_20' ) end [2025-03-03 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:28:27] Production.INFO: ==22924== Releasing lock... [2025-03-03 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:28:27] Production.INFO: 76 MB #Memory Used# [2025-03-03 18:29:01] Production.INFO: ==22980== Lock acquired, processing the job... [2025-03-03 18:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:29:01] Production.INFO: neon service started [2025-03-03 18:29:02] Production.INFO: neon service started [2025-03-03 18:29:02] Production.INFO: ==22980== Releasing lock... [2025-03-03 18:29:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:29:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:29:02] Production.INFO: ==22982== Lock acquired, processing the job... [2025-03-03 13:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:29:02] Production.INFO: ==22984== Lock acquired, processing the job... [2025-03-03 18:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:29:02] Production.INFO: ==22984== Releasing lock... [2025-03-03 18:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:29:02] Production.INFO: ==22982== Releasing lock... [2025-03-03 13:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:29:03] Production.INFO: ==23028== Lock acquired, processing the job... [2025-03-03 13:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:29:03] Production.INFO: ==23032== Lock acquired, processing the job... [2025-03-03 13:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:29:03] Production.INFO: ==23034== Lock acquired, processing the job... [2025-03-03 13:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:29:03] Production.INFO: Account Balance Start. [2025-03-03 13:29:03] Production.INFO: CreateAllLog Start [2025-03-03 13:29:03] Production.INFO: 117 [2025-03-03 13:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: ==23026== Lock acquired, processing the job... [2025-03-03 13:29:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: ==23030== Lock acquired, processing the job... [2025-03-03 13:29:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: ==23028== Releasing lock... [2025-03-03 13:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: ==23036== Lock acquired, processing the job... [2025-03-03 13:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:29:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:29:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:29:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.ERROR: done [2025-03-03 13:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.ERROR: done [2025-03-03 13:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:29:04] Production.INFO: count ==13 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:29:04] Production.INFO: count ==21 [2025-03-03 13:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598775') start [2025-03-03 13:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598775') end [2025-03-03 13:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:29:04] Production.INFO: 1 [2025-03-03 13:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: ==23036== Releasing lock... [2025-03-03 13:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:29:04] Production.INFO: Total Charge 0 [2025-03-03 13:29:05] Production.INFO: CreateAllLog End [2025-03-03 13:29:05] Production.INFO: Account Balance End. [2025-03-03 13:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:29:05] Production.INFO: ==23032== Releasing lock... [2025-03-03 13:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:29:06 [end_date_ymd] => 2025-03-03 13:29:06 [RateCDR] => 1 ) [2025-03-03 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:29:06' and `end` < '2025-03-03 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:29:13] Production.ERROR: CronJobId end10 [2025-03-03 13:29:13] Production.INFO: ==23030== Releasing lock... [2025-03-03 13:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:29:14] Production.INFO: call_cost start [2025-03-03 13:29:14] Production.INFO: call_cost end [2025-03-03 13:29:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:29:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:29:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:29:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:29:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:29:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:29:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:29:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:29:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:29:15] Production.INFO: ==23026== Releasing lock... [2025-03-03 13:29:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:29:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:29:19] Production.INFO: count ==6449 [2025-03-03 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:29:06 - End Time 2025-03-03 13:29:06 [2025-03-03 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598776', 'tblTempUsageDetail_20' ) start [2025-03-03 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598776', 'tblTempUsageDetail_20' ) end [2025-03-03 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598776', 'tblTempVendorCDR_20' ) start [2025-03-03 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598776', 'tblTempVendorCDR_20' ) end [2025-03-03 13:29:22] Production.INFO: ProcessCDR(1,14598776,1,1,2) [2025-03-03 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598776', 'tblTempUsageDetail_20' ) start [2025-03-03 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598776', 'tblTempUsageDetail_20' ) end [2025-03-03 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:29:28] Production.INFO: ==23034== Releasing lock... [2025-03-03 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:29:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-03 18:30:01] Production.INFO: ==23093== Lock acquired, processing the job... [2025-03-03 18:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:30:01] Production.INFO: neon service started [2025-03-03 18:30:01] Production.INFO: neon service started [2025-03-03 18:30:01] Production.INFO: ==23093== Releasing lock... [2025-03-03 18:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:30:01] Production.INFO: ==23095== Lock acquired, processing the job... [2025-03-03 13:30:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:30:02] Production.INFO: ==23095== Releasing lock... [2025-03-03 13:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:30:02] Production.INFO: ==23097== Lock acquired, processing the job... [2025-03-03 18:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:30:02] Production.INFO: ==23097== Releasing lock... [2025-03-03 18:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:30:03] Production.INFO: ==23102== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:30:03] Production.INFO: ==23100== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 13:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 13:30:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:30:03] Production.ERROR: CronJob PID - 23102 [2025-03-03 13:30:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 13:30:03] Production.ERROR: CronJob ID - 5 [2025-03-03 13:30:03] Production.ERROR: CronJob Last Run Time 2025-03-03 13:30:00 [2025-03-03 13:30:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:30:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:30:03] Production.INFO: ==23104== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 13:30:03] Production.INFO: ==23100== Releasing lock... [2025-03-03 13:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 13:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:30:03] Production.INFO: ==23106== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:30:03] Production.INFO: ==23110== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:30:03] Production.INFO: ==23108== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:30:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:30:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:30:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:30:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:30:03] Production.INFO: ==23114== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:30:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:30:03] Production.INFO: ==23112== Lock acquired, processing the job... [2025-03-03 13:30:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 13:30:03] Production.INFO: Account Balance Start. [2025-03-03 13:30:03] Production.INFO: CreateAllLog Start [2025-03-03 13:30:03] Production.INFO: 117 [2025-03-03 13:30:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:30:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.INFO: ==23104== Releasing lock... [2025-03-03 13:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.INFO: count ==13 [2025-03-03 13:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:30:04] Production.INFO: count ==21 [2025-03-03 13:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598780') start [2025-03-03 13:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598780') end [2025-03-03 13:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:30:04] Production.INFO: 1 [2025-03-03 13:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.ERROR: done [2025-03-03 13:30:04] Production.INFO: ==23114== Releasing lock... [2025-03-03 13:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:30:04] Production.ERROR: done [2025-03-03 13:30:04] Production.ERROR: done [2025-03-03 13:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 13:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598782', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 13:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:30:05] Production.INFO: Total Charge 0 [2025-03-03 13:30:05] Production.INFO: CreateAllLog End [2025-03-03 13:30:06] Production.INFO: Account Balance End. [2025-03-03 13:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:30:06] Production.INFO: ==23108== Releasing lock... [2025-03-03 13:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:30:06 [end_date_ymd] => 2025-03-03 13:30:06 [RateCDR] => 1 ) [2025-03-03 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:30:06' and `end` < '2025-03-03 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598782', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 13:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 13:30:09] Production.INFO: ProcessCDR(1,14598782,1,1,2) [2025-03-03 13:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598782,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598782,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:30:09] Production.INFO: ==23112== Releasing lock... [2025-03-03 13:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 13:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:30:14] Production.ERROR: CronJobId end10 [2025-03-03 13:30:14] Production.INFO: ==23106== Releasing lock... [2025-03-03 13:30:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:30:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:30:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:30:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:30:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:30:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:30:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:30:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:30:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:30:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:30:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:30:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:30:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:30:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:30:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:30:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:30:16] Production.INFO: call_cost start [2025-03-03 13:30:16] Production.INFO: call_cost end [2025-03-03 13:30:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:30:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:30:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:30:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:30:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:30:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:30:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:30:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:30:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:30:17] Production.INFO: ==23102== Releasing lock... [2025-03-03 13:30:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:30:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:30:20] Production.INFO: count ==6429 [2025-03-03 13:30:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:30:06 - End Time 2025-03-03 13:30:06 [2025-03-03 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598781', 'tblTempUsageDetail_20' ) start [2025-03-03 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598781', 'tblTempUsageDetail_20' ) end [2025-03-03 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598781', 'tblTempVendorCDR_20' ) start [2025-03-03 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598781', 'tblTempVendorCDR_20' ) end [2025-03-03 13:30:23] Production.INFO: ProcessCDR(1,14598781,1,1,2) [2025-03-03 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598781', 'tblTempUsageDetail_20' ) start [2025-03-03 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598781', 'tblTempUsageDetail_20' ) end [2025-03-03 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:30:28] Production.INFO: ==23110== Releasing lock... [2025-03-03 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:30:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-03 18:31:01] Production.INFO: ==23171== Lock acquired, processing the job... [2025-03-03 18:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:31:01] Production.INFO: neon service started [2025-03-03 18:31:01] Production.INFO: neon service started [2025-03-03 18:31:01] Production.INFO: ==23171== Releasing lock... [2025-03-03 18:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:31:02] Production.INFO: ==23175== Lock acquired, processing the job... [2025-03-03 18:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:31:02] Production.INFO: ==23175== Releasing lock... [2025-03-03 18:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:31:02] Production.INFO: ==23173== Lock acquired, processing the job... [2025-03-03 13:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:31:02] Production.INFO: ==23173== Releasing lock... [2025-03-03 13:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:31:03] Production.INFO: ==23184== Lock acquired, processing the job... [2025-03-03 13:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:31:03] Production.INFO: ==23178== Lock acquired, processing the job... [2025-03-03 13:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:31:03] Production.INFO: ==23186== Lock acquired, processing the job... [2025-03-03 13:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:31:03] Production.INFO: ==23180== Lock acquired, processing the job... [2025-03-03 13:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:31:03] Production.INFO: ==23182== Lock acquired, processing the job... [2025-03-03 13:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:31:03] Production.INFO: Account Balance Start. [2025-03-03 13:31:03] Production.INFO: CreateAllLog Start [2025-03-03 13:31:03] Production.INFO: 117 [2025-03-03 13:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:03] Production.INFO: ==23188== Lock acquired, processing the job... [2025-03-03 13:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:31:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:31:03] Production.INFO: count ==13 [2025-03-03 13:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:31:03] Production.INFO: count ==21 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598786') start [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.ERROR: done [2025-03-03 13:31:04] Production.INFO: ==23180== Releasing lock... [2025-03-03 13:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598786') end [2025-03-03 13:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:31:04] Production.INFO: 1 [2025-03-03 13:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:31:04] Production.INFO: ==23188== Releasing lock... [2025-03-03 13:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.ERROR: done [2025-03-03 13:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:31:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:31:05] Production.INFO: Total Charge 0 [2025-03-03 13:31:05] Production.INFO: CreateAllLog End [2025-03-03 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:31:05 [end_date_ymd] => 2025-03-03 13:31:05 [RateCDR] => 1 ) [2025-03-03 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:31:05' and `end` < '2025-03-03 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:31:05] Production.INFO: Account Balance End. [2025-03-03 13:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:31:05] Production.INFO: ==23184== Releasing lock... [2025-03-03 13:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:31:13] Production.ERROR: CronJobId end10 [2025-03-03 13:31:13] Production.INFO: ==23182== Releasing lock... [2025-03-03 13:31:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:31:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:31:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:31:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:31:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:31:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:31:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:31:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:31:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:31:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:31:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:31:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:31:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:31:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:31:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:31:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:31:15] Production.INFO: call_cost start [2025-03-03 13:31:15] Production.INFO: call_cost end [2025-03-03 13:31:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:31:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:31:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:31:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:31:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:31:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:31:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:31:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:31:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:31:16] Production.INFO: ==23178== Releasing lock... [2025-03-03 13:31:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:31:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:31:18] Production.INFO: count ==6467 [2025-03-03 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:31:05 - End Time 2025-03-03 13:31:05 [2025-03-03 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598787', 'tblTempUsageDetail_20' ) start [2025-03-03 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598787', 'tblTempUsageDetail_20' ) end [2025-03-03 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598787', 'tblTempVendorCDR_20' ) start [2025-03-03 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598787', 'tblTempVendorCDR_20' ) end [2025-03-03 13:31:21] Production.INFO: ProcessCDR(1,14598787,1,1,2) [2025-03-03 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598787', 'tblTempUsageDetail_20' ) start [2025-03-03 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598787', 'tblTempUsageDetail_20' ) end [2025-03-03 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:31:27] Production.INFO: ==23186== Releasing lock... [2025-03-03 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:31:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:32:02] Production.INFO: ==23245== Lock acquired, processing the job... [2025-03-03 18:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:32:02] Production.INFO: neon service started [2025-03-03 18:32:02] Production.INFO: neon service started [2025-03-03 18:32:02] Production.INFO: ==23245== Releasing lock... [2025-03-03 18:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:32:02] Production.INFO: ==23250== Lock acquired, processing the job... [2025-03-03 18:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:32:02] Production.INFO: ==23250== Releasing lock... [2025-03-03 18:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:32:02] Production.INFO: ==23248== Lock acquired, processing the job... [2025-03-03 13:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:32:03] Production.INFO: ==23248== Releasing lock... [2025-03-03 13:32:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:32:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:32:04] Production.INFO: ==23254== Lock acquired, processing the job... [2025-03-03 13:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:32:04] Production.INFO: ==23258== Lock acquired, processing the job... [2025-03-03 13:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:32:04] Production.INFO: ==23252== Lock acquired, processing the job... [2025-03-03 13:32:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:32:04] Production.INFO: ==23260== Lock acquired, processing the job... [2025-03-03 13:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:32:04] Production.INFO: ==23256== Lock acquired, processing the job... [2025-03-03 13:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:32:04] Production.INFO: Account Balance Start. [2025-03-03 13:32:04] Production.INFO: CreateAllLog Start [2025-03-03 13:32:04] Production.INFO: 117 [2025-03-03 13:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:04] Production.INFO: ==23262== Lock acquired, processing the job... [2025-03-03 13:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:32:04] Production.INFO: count ==13 [2025-03-03 13:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:32:04] Production.INFO: count ==21 [2025-03-03 13:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:04] Production.INFO: ==23254== Releasing lock... [2025-03-03 13:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598791') start [2025-03-03 13:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598791') end [2025-03-03 13:32:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:32:05] Production.INFO: 1 [2025-03-03 13:32:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:32:05] Production.INFO: Date 2025-02-12 [2025-03-03 13:32:05] Production.ERROR: done [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: ==23262== Releasing lock... [2025-03-03 13:32:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:32:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:32:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-13 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-14 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.ERROR: done [2025-03-03 13:32:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:06] Production.INFO: Date 2025-03-03 [2025-03-03 13:32:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:32:06] Production.INFO: Total Charge 0 [2025-03-03 13:32:06] Production.INFO: CreateAllLog End [2025-03-03 13:32:06] Production.INFO: Account Balance End. [2025-03-03 13:32:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:32:06] Production.INFO: ==23258== Releasing lock... [2025-03-03 13:32:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:32:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:32:06 [end_date_ymd] => 2025-03-03 13:32:06 [RateCDR] => 1 ) [2025-03-03 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:32:06' and `end` < '2025-03-03 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:32:15] Production.ERROR: CronJobId end10 [2025-03-03 13:32:15] Production.INFO: ==23256== Releasing lock... [2025-03-03 13:32:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:32:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:32:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:32:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:32:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:32:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:32:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:32:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:32:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:32:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:32:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:32:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:32:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:32:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:32:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:32:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:32:17] Production.INFO: call_cost start [2025-03-03 13:32:17] Production.INFO: call_cost end [2025-03-03 13:32:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:32:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:32:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:32:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:32:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:32:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:32:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:32:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:32:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:32:18] Production.INFO: ==23252== Releasing lock... [2025-03-03 13:32:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:32:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:32:20] Production.INFO: count ==6475 [2025-03-03 13:32:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:32:06 - End Time 2025-03-03 13:32:06 [2025-03-03 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598792', 'tblTempUsageDetail_20' ) start [2025-03-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598792', 'tblTempUsageDetail_20' ) end [2025-03-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598792', 'tblTempVendorCDR_20' ) start [2025-03-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598792', 'tblTempVendorCDR_20' ) end [2025-03-03 13:32:23] Production.INFO: ProcessCDR(1,14598792,1,1,2) [2025-03-03 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598792', 'tblTempUsageDetail_20' ) start [2025-03-03 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598792', 'tblTempUsageDetail_20' ) end [2025-03-03 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:32:28] Production.INFO: ==23260== Releasing lock... [2025-03-03 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:32:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:33:01] Production.INFO: ==23318== Lock acquired, processing the job... [2025-03-03 18:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:33:01] Production.INFO: neon service started [2025-03-03 18:33:01] Production.INFO: neon service started [2025-03-03 18:33:01] Production.INFO: ==23318== Releasing lock... [2025-03-03 18:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:33:02] Production.INFO: ==23323== Lock acquired, processing the job... [2025-03-03 18:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:33:02] Production.INFO: ==23323== Releasing lock... [2025-03-03 18:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:33:02] Production.INFO: ==23320== Lock acquired, processing the job... [2025-03-03 13:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:33:02] Production.INFO: ==23320== Releasing lock... [2025-03-03 13:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:33:03] Production.INFO: ==23329== Lock acquired, processing the job... [2025-03-03 13:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:33:03] Production.INFO: ==23333== Lock acquired, processing the job... [2025-03-03 13:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:33:03] Production.INFO: ==23325== Lock acquired, processing the job... [2025-03-03 13:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:33:03] Production.INFO: ==23327== Lock acquired, processing the job... [2025-03-03 13:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:33:03] Production.INFO: ==23331== Lock acquired, processing the job... [2025-03-03 13:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:33:03] Production.INFO: ==23335== Lock acquired, processing the job... [2025-03-03 13:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:33:04] Production.ERROR: done [2025-03-03 13:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:33:04] Production.INFO: count ==13 [2025-03-03 13:33:04] Production.INFO: Account Balance Start. [2025-03-03 13:33:04] Production.INFO: CreateAllLog Start [2025-03-03 13:33:04] Production.INFO: 117 [2025-03-03 13:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:33:04] Production.ERROR: done [2025-03-03 13:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:33:04] Production.INFO: count ==21 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598795') start [2025-03-03 13:33:04] Production.INFO: ==23327== Releasing lock... [2025-03-03 13:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598795') end [2025-03-03 13:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:33:04] Production.INFO: 1 [2025-03-03 13:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:33:04] Production.INFO: ==23335== Releasing lock... [2025-03-03 13:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:33:05] Production.INFO: Total Charge 0 [2025-03-03 13:33:05] Production.INFO: CreateAllLog End [2025-03-03 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:33:05 [end_date_ymd] => 2025-03-03 13:33:05 [RateCDR] => 1 ) [2025-03-03 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:33:05' and `end` < '2025-03-03 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:33:05] Production.INFO: Account Balance End. [2025-03-03 13:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:33:05] Production.INFO: ==23331== Releasing lock... [2025-03-03 13:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:33:13] Production.ERROR: CronJobId end10 [2025-03-03 13:33:13] Production.INFO: ==23329== Releasing lock... [2025-03-03 13:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:33:15] Production.INFO: call_cost start [2025-03-03 13:33:15] Production.INFO: call_cost end [2025-03-03 13:33:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:33:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:33:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:33:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:33:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:33:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:33:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:33:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:33:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:33:16] Production.INFO: ==23325== Releasing lock... [2025-03-03 13:33:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:33:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:33:18] Production.INFO: count ==6484 [2025-03-03 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:33:05 - End Time 2025-03-03 13:33:05 [2025-03-03 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598797', 'tblTempUsageDetail_20' ) start [2025-03-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598797', 'tblTempUsageDetail_20' ) end [2025-03-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598797', 'tblTempVendorCDR_20' ) start [2025-03-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598797', 'tblTempVendorCDR_20' ) end [2025-03-03 13:33:21] Production.INFO: ProcessCDR(1,14598797,1,1,2) [2025-03-03 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598797', 'tblTempUsageDetail_20' ) start [2025-03-03 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598797', 'tblTempUsageDetail_20' ) end [2025-03-03 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:33:27] Production.INFO: ==23333== Releasing lock... [2025-03-03 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:33:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:34:02] Production.INFO: ==23391== Lock acquired, processing the job... [2025-03-03 18:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:34:02] Production.INFO: neon service started [2025-03-03 18:34:02] Production.INFO: neon service started [2025-03-03 18:34:02] Production.INFO: ==23391== Releasing lock... [2025-03-03 18:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:34:02] Production.INFO: ==23393== Lock acquired, processing the job... [2025-03-03 13:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:34:02] Production.INFO: ==23395== Lock acquired, processing the job... [2025-03-03 18:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:34:02] Production.INFO: ==23395== Releasing lock... [2025-03-03 18:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:34:03] Production.INFO: ==23393== Releasing lock... [2025-03-03 13:34:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:34:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:34:04] Production.INFO: ==23398== Lock acquired, processing the job... [2025-03-03 13:34:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:34:04] Production.INFO: ==23402== Lock acquired, processing the job... [2025-03-03 13:34:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:34:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:34:04] Production.INFO: ==23404== Lock acquired, processing the job... [2025-03-03 13:34:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:34:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:34:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:34:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:34:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:34:04] Production.INFO: Account Balance Start. [2025-03-03 13:34:04] Production.INFO: CreateAllLog Start [2025-03-03 13:34:04] Production.INFO: 117 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: ==23400== Lock acquired, processing the job... [2025-03-03 13:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: ==23406== Lock acquired, processing the job... [2025-03-03 13:34:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: ==23408== Lock acquired, processing the job... [2025-03-03 13:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:34:04] Production.INFO: count ==13 [2025-03-03 13:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:34:05] Production.INFO: count ==21 [2025-03-03 13:34:05] Production.ERROR: done [2025-03-03 13:34:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:34:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598801') start [2025-03-03 13:34:05] Production.INFO: ==23400== Releasing lock... [2025-03-03 13:34:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:34:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:34:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598801') end [2025-03-03 13:34:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:34:05] Production.INFO: 1 [2025-03-03 13:34:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:34:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: ==23408== Releasing lock... [2025-03-03 13:34:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:34:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:34:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.ERROR: done [2025-03-03 13:34:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:34:05] Production.INFO: Total Charge 0 [2025-03-03 13:34:05] Production.INFO: CreateAllLog End [2025-03-03 13:34:05] Production.INFO: Account Balance End. [2025-03-03 13:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:34:05] Production.INFO: ==23404== Releasing lock... [2025-03-03 13:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:34:06 [end_date_ymd] => 2025-03-03 13:34:06 [RateCDR] => 1 ) [2025-03-03 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:34:06' and `end` < '2025-03-03 13:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:34:12] Production.ERROR: CronJobId end10 [2025-03-03 13:34:12] Production.INFO: ==23402== Releasing lock... [2025-03-03 13:34:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:34:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:34:15] Production.INFO: call_cost start [2025-03-03 13:34:15] Production.INFO: call_cost end [2025-03-03 13:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:34:16] Production.INFO: ==23398== Releasing lock... [2025-03-03 13:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:34:19] Production.INFO: count ==6477 [2025-03-03 13:34:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:34:06 - End Time 2025-03-03 13:34:06 [2025-03-03 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598802', 'tblTempUsageDetail_20' ) start [2025-03-03 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598802', 'tblTempUsageDetail_20' ) end [2025-03-03 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598802', 'tblTempVendorCDR_20' ) start [2025-03-03 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598802', 'tblTempVendorCDR_20' ) end [2025-03-03 13:34:22] Production.INFO: ProcessCDR(1,14598802,1,1,2) [2025-03-03 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598802', 'tblTempUsageDetail_20' ) start [2025-03-03 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598802', 'tblTempUsageDetail_20' ) end [2025-03-03 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:34:27] Production.INFO: ==23406== Releasing lock... [2025-03-03 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:34:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:35:01] Production.INFO: ==23462== Lock acquired, processing the job... [2025-03-03 18:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:35:01] Production.INFO: neon service started [2025-03-03 18:35:01] Production.INFO: neon service started [2025-03-03 18:35:01] Production.INFO: ==23462== Releasing lock... [2025-03-03 18:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:35:02] Production.INFO: ==23464== Lock acquired, processing the job... [2025-03-03 13:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:35:02] Production.INFO: ==23466== Lock acquired, processing the job... [2025-03-03 18:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:35:02] Production.INFO: ==23466== Releasing lock... [2025-03-03 18:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:35:02] Production.INFO: ==23464== Releasing lock... [2025-03-03 13:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:35:03] Production.INFO: ==23469== Lock acquired, processing the job... [2025-03-03 13:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:35:03] Production.INFO: ==23473== Lock acquired, processing the job... [2025-03-03 13:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:35:03] Production.INFO: ==23477== Lock acquired, processing the job... [2025-03-03 13:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:35:03] Production.INFO: ==23471== Lock acquired, processing the job... [2025-03-03 13:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:35:03] Production.INFO: ==23475== Lock acquired, processing the job... [2025-03-03 13:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:35:03] Production.INFO: ==23479== Lock acquired, processing the job... [2025-03-03 13:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:35:04] Production.INFO: Account Balance Start. [2025-03-03 13:35:04] Production.INFO: CreateAllLog Start [2025-03-03 13:35:04] Production.INFO: 117 [2025-03-03 13:35:04] Production.INFO: count ==13 [2025-03-03 13:35:04] Production.ERROR: done [2025-03-03 13:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:35:04] Production.INFO: count ==21 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598805') start [2025-03-03 13:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598805') end [2025-03-03 13:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:35:04] Production.INFO: 1 [2025-03-03 13:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:35:04] Production.ERROR: done [2025-03-03 13:35:04] Production.INFO: ==23479== Releasing lock... [2025-03-03 13:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: ==23471== Releasing lock... [2025-03-03 13:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:35:05] Production.INFO: Total Charge 0 [2025-03-03 13:35:05] Production.INFO: CreateAllLog End [2025-03-03 13:35:05] Production.INFO: Account Balance End. [2025-03-03 13:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:35:05] Production.INFO: ==23475== Releasing lock... [2025-03-03 13:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:35:05 [end_date_ymd] => 2025-03-03 13:35:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:35:05' and `end` < '2025-03-03 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-03-03 13:35:12] Production.ERROR: CronJobId end10 [2025-03-03 13:35:12] Production.INFO: ==23473== Releasing lock... [2025-03-03 13:35:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:35:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:35:14] Production.INFO: call_cost start [2025-03-03 13:35:14] Production.INFO: call_cost end [2025-03-03 13:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:35:15] Production.INFO: ==23469== Releasing lock... [2025-03-03 13:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:35:19] Production.INFO: count ==6465 [2025-03-03 13:35:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:35:05 - End Time 2025-03-03 13:35:05 [2025-03-03 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598807', 'tblTempUsageDetail_20' ) start [2025-03-03 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598807', 'tblTempUsageDetail_20' ) end [2025-03-03 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598807', 'tblTempVendorCDR_20' ) start [2025-03-03 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598807', 'tblTempVendorCDR_20' ) end [2025-03-03 13:35:22] Production.INFO: ProcessCDR(1,14598807,1,1,2) [2025-03-03 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598807', 'tblTempUsageDetail_20' ) start [2025-03-03 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598807', 'tblTempUsageDetail_20' ) end [2025-03-03 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:35:27] Production.INFO: ==23477== Releasing lock... [2025-03-03 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:35:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:36:02] Production.INFO: ==23534== Lock acquired, processing the job... [2025-03-03 18:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:36:02] Production.INFO: neon service started [2025-03-03 18:36:02] Production.INFO: neon service started [2025-03-03 18:36:02] Production.INFO: ==23534== Releasing lock... [2025-03-03 18:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:36:02] Production.INFO: ==23538== Lock acquired, processing the job... [2025-03-03 18:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:36:02] Production.INFO: ==23538== Releasing lock... [2025-03-03 18:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:36:02] Production.INFO: ==23536== Lock acquired, processing the job... [2025-03-03 13:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:36:03] Production.INFO: ==23536== Releasing lock... [2025-03-03 13:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:36:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:36:03] Production.INFO: ==23543== Lock acquired, processing the job... [2025-03-03 13:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:36:03] Production.INFO: ==23541== Lock acquired, processing the job... [2025-03-03 13:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:36:04] Production.INFO: ==23547== Lock acquired, processing the job... [2025-03-03 13:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:36:04] Production.INFO: Account Balance Start. [2025-03-03 13:36:04] Production.INFO: CreateAllLog Start [2025-03-03 13:36:04] Production.INFO: 117 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: ==23543== Releasing lock... [2025-03-03 13:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: ==23545== Lock acquired, processing the job... [2025-03-03 13:36:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:36:04] Production.INFO: ==23551== Lock acquired, processing the job... [2025-03-03 13:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:36:04] Production.INFO: count ==13 [2025-03-03 13:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:36:04] Production.INFO: count ==21 [2025-03-03 13:36:04] Production.INFO: ==23549== Lock acquired, processing the job... [2025-03-03 13:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598811') start [2025-03-03 13:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598811') end [2025-03-03 13:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:36:04] Production.INFO: 1 [2025-03-03 13:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: ==23551== Releasing lock... [2025-03-03 13:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.ERROR: done [2025-03-03 13:36:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.ERROR: done [2025-03-03 13:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:36:05] Production.INFO: Total Charge 0 [2025-03-03 13:36:05] Production.INFO: CreateAllLog End [2025-03-03 13:36:05] Production.INFO: Account Balance End. [2025-03-03 13:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:36:05] Production.INFO: ==23547== Releasing lock... [2025-03-03 13:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:36:06 [end_date_ymd] => 2025-03-03 13:36:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:36:06' and `end` < '2025-03-03 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-03-03 13:36:13] Production.ERROR: CronJobId end10 [2025-03-03 13:36:13] Production.INFO: ==23545== Releasing lock... [2025-03-03 13:36:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:36:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:36:15] Production.INFO: call_cost start [2025-03-03 13:36:15] Production.INFO: call_cost end [2025-03-03 13:36:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:36:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:36:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:36:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:36:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:36:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:36:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:36:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:36:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:36:16] Production.INFO: ==23541== Releasing lock... [2025-03-03 13:36:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:36:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:36:19] Production.INFO: count ==6481 [2025-03-03 13:36:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:36:06 - End Time 2025-03-03 13:36:06 [2025-03-03 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598812', 'tblTempUsageDetail_20' ) start [2025-03-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598812', 'tblTempUsageDetail_20' ) end [2025-03-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598812', 'tblTempVendorCDR_20' ) start [2025-03-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598812', 'tblTempVendorCDR_20' ) end [2025-03-03 13:36:23] Production.INFO: ProcessCDR(1,14598812,1,1,2) [2025-03-03 13:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598812', 'tblTempUsageDetail_20' ) start [2025-03-03 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598812', 'tblTempUsageDetail_20' ) end [2025-03-03 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:36:28] Production.INFO: ==23549== Releasing lock... [2025-03-03 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:36:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:37:01] Production.INFO: ==23607== Lock acquired, processing the job... [2025-03-03 18:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:37:01] Production.INFO: neon service started [2025-03-03 18:37:01] Production.INFO: neon service started [2025-03-03 18:37:01] Production.INFO: ==23607== Releasing lock... [2025-03-03 18:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:37:02] Production.INFO: ==23609== Lock acquired, processing the job... [2025-03-03 13:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:37:02] Production.INFO: ==23611== Lock acquired, processing the job... [2025-03-03 18:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:37:02] Production.INFO: ==23611== Releasing lock... [2025-03-03 18:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:37:02] Production.INFO: ==23609== Releasing lock... [2025-03-03 13:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:37:03] Production.INFO: ==23618== Lock acquired, processing the job... [2025-03-03 13:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:37:03] Production.INFO: ==23622== Lock acquired, processing the job... [2025-03-03 13:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:37:03] Production.INFO: ==23614== Lock acquired, processing the job... [2025-03-03 13:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:37:03] Production.INFO: ==23616== Lock acquired, processing the job... [2025-03-03 13:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:37:03] Production.INFO: ==23620== Lock acquired, processing the job... [2025-03-03 13:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:37:03] Production.INFO: ==23624== Lock acquired, processing the job... [2025-03-03 13:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:37:03] Production.INFO: Account Balance Start. [2025-03-03 13:37:03] Production.INFO: CreateAllLog Start [2025-03-03 13:37:03] Production.INFO: 117 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.ERROR: done [2025-03-03 13:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: count ==13 [2025-03-03 13:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:37:04] Production.INFO: count ==21 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598816') start [2025-03-03 13:37:04] Production.ERROR: done [2025-03-03 13:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: ==23616== Releasing lock... [2025-03-03 13:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598816') end [2025-03-03 13:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:37:04] Production.INFO: 1 [2025-03-03 13:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: ==23624== Releasing lock... [2025-03-03 13:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:37:05] Production.INFO: Total Charge 0 [2025-03-03 13:37:05] Production.INFO: CreateAllLog End [2025-03-03 13:37:05] Production.INFO: Account Balance End. [2025-03-03 13:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:37:05] Production.INFO: ==23620== Releasing lock... [2025-03-03 13:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:37:05 [end_date_ymd] => 2025-03-03 13:37:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:37:05' and `end` < '2025-03-03 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-03-03 13:37:12] Production.ERROR: CronJobId end10 [2025-03-03 13:37:12] Production.INFO: ==23618== Releasing lock... [2025-03-03 13:37:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:37:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:37:15] Production.INFO: call_cost start [2025-03-03 13:37:15] Production.INFO: call_cost end [2025-03-03 13:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:37:15] Production.INFO: ==23614== Releasing lock... [2025-03-03 13:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:37:19] Production.INFO: count ==6460 [2025-03-03 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:37:05 - End Time 2025-03-03 13:37:05 [2025-03-03 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598817', 'tblTempUsageDetail_20' ) start [2025-03-03 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598817', 'tblTempUsageDetail_20' ) end [2025-03-03 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598817', 'tblTempVendorCDR_20' ) start [2025-03-03 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598817', 'tblTempVendorCDR_20' ) end [2025-03-03 13:37:22] Production.INFO: ProcessCDR(1,14598817,1,1,2) [2025-03-03 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598817', 'tblTempUsageDetail_20' ) start [2025-03-03 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598817', 'tblTempUsageDetail_20' ) end [2025-03-03 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:37:27] Production.INFO: ==23622== Releasing lock... [2025-03-03 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:37:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:38:02] Production.INFO: ==23684== Lock acquired, processing the job... [2025-03-03 18:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:38:02] Production.INFO: neon service started [2025-03-03 18:38:02] Production.INFO: neon service started [2025-03-03 18:38:02] Production.INFO: ==23684== Releasing lock... [2025-03-03 18:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:38:02] Production.INFO: ==23688== Lock acquired, processing the job... [2025-03-03 18:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:38:02] Production.INFO: ==23688== Releasing lock... [2025-03-03 18:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:38:02] Production.INFO: ==23686== Lock acquired, processing the job... [2025-03-03 13:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:38:02] Production.INFO: ==23686== Releasing lock... [2025-03-03 13:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:38:03] Production.INFO: ==23694== Lock acquired, processing the job... [2025-03-03 13:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:38:03] Production.INFO: ==23690== Lock acquired, processing the job... [2025-03-03 13:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:38:04] Production.INFO: ==23692== Lock acquired, processing the job... [2025-03-03 13:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:38:04] Production.INFO: ==23696== Lock acquired, processing the job... [2025-03-03 13:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:38:04] Production.INFO: ==23698== Lock acquired, processing the job... [2025-03-03 13:38:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:38:04] Production.INFO: ==23700== Lock acquired, processing the job... [2025-03-03 13:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:38:04] Production.INFO: Account Balance Start. [2025-03-03 13:38:04] Production.INFO: CreateAllLog Start [2025-03-03 13:38:04] Production.INFO: 117 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: ==23692== Releasing lock... [2025-03-03 13:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:38:04] Production.INFO: count ==13 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:38:04] Production.INFO: count ==21 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598821') start [2025-03-03 13:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.ERROR: done [2025-03-03 13:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598821') end [2025-03-03 13:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:38:04] Production.INFO: 1 [2025-03-03 13:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:38:04] Production.ERROR: done [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:04] Production.INFO: ==23700== Releasing lock... [2025-03-03 13:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:38:05] Production.INFO: Total Charge 0 [2025-03-03 13:38:05] Production.INFO: CreateAllLog End [2025-03-03 13:38:05] Production.INFO: Account Balance End. [2025-03-03 13:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:38:05] Production.INFO: ==23696== Releasing lock... [2025-03-03 13:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:38:06 [end_date_ymd] => 2025-03-03 13:38:06 [RateCDR] => 1 ) [2025-03-03 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:38:06' and `end` < '2025-03-03 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:38:13] Production.ERROR: CronJobId end10 [2025-03-03 13:38:13] Production.INFO: ==23694== Releasing lock... [2025-03-03 13:38:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:38:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:38:15] Production.INFO: call_cost start [2025-03-03 13:38:15] Production.INFO: call_cost end [2025-03-03 13:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:38:16] Production.INFO: ==23690== Releasing lock... [2025-03-03 13:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:38:19] Production.INFO: count ==6459 [2025-03-03 13:38:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:38:06 - End Time 2025-03-03 13:38:06 [2025-03-03 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598822', 'tblTempUsageDetail_20' ) start [2025-03-03 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598822', 'tblTempUsageDetail_20' ) end [2025-03-03 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598822', 'tblTempVendorCDR_20' ) start [2025-03-03 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598822', 'tblTempVendorCDR_20' ) end [2025-03-03 13:38:22] Production.INFO: ProcessCDR(1,14598822,1,1,2) [2025-03-03 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598822', 'tblTempUsageDetail_20' ) start [2025-03-03 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598822', 'tblTempUsageDetail_20' ) end [2025-03-03 13:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:38:28] Production.INFO: ==23698== Releasing lock... [2025-03-03 13:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:38:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 18:39:01] Production.INFO: ==23753== Lock acquired, processing the job... [2025-03-03 18:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:39:01] Production.INFO: neon service started [2025-03-03 18:39:01] Production.INFO: neon service started [2025-03-03 18:39:01] Production.INFO: ==23753== Releasing lock... [2025-03-03 18:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:39:02] Production.INFO: ==23758== Lock acquired, processing the job... [2025-03-03 18:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:39:02] Production.INFO: ==23758== Releasing lock... [2025-03-03 18:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:39:02] Production.INFO: ==23756== Lock acquired, processing the job... [2025-03-03 13:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:39:02] Production.INFO: ==23756== Releasing lock... [2025-03-03 13:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:39:03] Production.INFO: ==23762== Lock acquired, processing the job... [2025-03-03 13:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:39:03] Production.INFO: ==23770== Lock acquired, processing the job... [2025-03-03 13:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:39:03] Production.INFO: ==23762== Releasing lock... [2025-03-03 13:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:39:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:39:03] Production.INFO: count ==13 [2025-03-03 13:39:03] Production.INFO: ==23760== Lock acquired, processing the job... [2025-03-03 13:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:39:03] Production.INFO: count ==21 [2025-03-03 13:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598824') start [2025-03-03 13:39:03] Production.INFO: ==23764== Lock acquired, processing the job... [2025-03-03 13:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598824') end [2025-03-03 13:39:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:39:03] Production.INFO: 1 [2025-03-03 13:39:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:39:03] Production.INFO: ==23766== Lock acquired, processing the job... [2025-03-03 13:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:39:03] Production.INFO: ==23768== Lock acquired, processing the job... [2025-03-03 13:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:39:03] Production.INFO: ==23770== Releasing lock... [2025-03-03 13:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:39:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:39:03] Production.INFO: Account Balance Start. [2025-03-03 13:39:03] Production.INFO: CreateAllLog Start [2025-03-03 13:39:03] Production.INFO: 117 [2025-03-03 13:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.ERROR: done [2025-03-03 13:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.ERROR: done [2025-03-03 13:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:39:04] Production.INFO: Total Charge 0 [2025-03-03 13:39:04] Production.INFO: CreateAllLog End [2025-03-03 13:39:05] Production.INFO: Account Balance End. [2025-03-03 13:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:39:05] Production.INFO: ==23766== Releasing lock... [2025-03-03 13:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:39:05 [end_date_ymd] => 2025-03-03 13:39:05 [RateCDR] => 1 ) [2025-03-03 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:39:05' and `end` < '2025-03-03 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:39:12] Production.ERROR: CronJobId end10 [2025-03-03 13:39:12] Production.INFO: ==23764== Releasing lock... [2025-03-03 13:39:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:39:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:39:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:39:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:39:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:39:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:39:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:39:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:39:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:39:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:39:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:39:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:39:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:39:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:39:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:39:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:39:14] Production.INFO: call_cost start [2025-03-03 13:39:14] Production.INFO: call_cost end [2025-03-03 13:39:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:39:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:39:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:39:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:39:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:39:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:39:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:39:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:39:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:39:15] Production.INFO: ==23760== Releasing lock... [2025-03-03 13:39:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:39:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:39:19] Production.INFO: count ==6554 [2025-03-03 13:39:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:39:05 - End Time 2025-03-03 13:39:05 [2025-03-03 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598827', 'tblTempUsageDetail_20' ) start [2025-03-03 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598827', 'tblTempUsageDetail_20' ) end [2025-03-03 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598827', 'tblTempVendorCDR_20' ) start [2025-03-03 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598827', 'tblTempVendorCDR_20' ) end [2025-03-03 13:39:22] Production.INFO: ProcessCDR(1,14598827,1,1,2) [2025-03-03 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598827', 'tblTempUsageDetail_20' ) start [2025-03-03 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598827', 'tblTempUsageDetail_20' ) end [2025-03-03 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:39:27] Production.INFO: ==23768== Releasing lock... [2025-03-03 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:39:27] Production.INFO: 77 MB #Memory Used# [2025-03-03 18:40:02] Production.INFO: ==23823== Lock acquired, processing the job... [2025-03-03 18:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:40:02] Production.INFO: neon service started [2025-03-03 18:40:02] Production.INFO: neon service started [2025-03-03 18:40:02] Production.INFO: ==23823== Releasing lock... [2025-03-03 18:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:40:02] Production.INFO: ==23825== Lock acquired, processing the job... [2025-03-03 13:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:40:02] Production.INFO: ==23827== Lock acquired, processing the job... [2025-03-03 18:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:40:03] Production.INFO: ==23827== Releasing lock... [2025-03-03 18:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:40:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:40:03] Production.INFO: ==23825== Releasing lock... [2025-03-03 13:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:40:03] Production.INFO: ==23836== Lock acquired, processing the job... [2025-03-03 13:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:40:03] Production.INFO: ==23830== Lock acquired, processing the job... [2025-03-03 13:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 13:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:40:04] Production.INFO: ==23838== Lock acquired, processing the job... [2025-03-03 13:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 13:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 13:40:04] Production.ERROR: CronJob PID - 23836 [2025-03-03 13:40:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 13:40:04] Production.ERROR: CronJob ID - 10 [2025-03-03 13:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 13:40:00 [2025-03-03 13:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 13:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 13:40:04] Production.INFO: ==23840== Lock acquired, processing the job... [2025-03-03 13:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:40:04] Production.INFO: ==23832== Lock acquired, processing the job... [2025-03-03 13:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 13:40:04] Production.INFO: ==23830== Releasing lock... [2025-03-03 13:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 13:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:40:04] Production.INFO: Account Balance Start. [2025-03-03 13:40:04] Production.INFO: CreateAllLog Start [2025-03-03 13:40:04] Production.INFO: 117 [2025-03-03 13:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: ==23834== Lock acquired, processing the job... [2025-03-03 13:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: ==23842== Lock acquired, processing the job... [2025-03-03 13:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 13:40:04] Production.INFO: ==23844== Lock acquired, processing the job... [2025-03-03 13:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:40:04] Production.ERROR: done [2025-03-03 13:40:04] Production.INFO: count ==13 [2025-03-03 13:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:40:04] Production.INFO: count ==21 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598831') start [2025-03-03 13:40:04] Production.ERROR: done [2025-03-03 13:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.ERROR: done [2025-03-03 13:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: ==23834== Releasing lock... [2025-03-03 13:40:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:40:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598831') end [2025-03-03 13:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:40:05] Production.INFO: 1 [2025-03-03 13:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:40:05] Production.INFO: ==23844== Releasing lock... [2025-03-03 13:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 13:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598833', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 13:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:40:05] Production.INFO: Total Charge 0 [2025-03-03 13:40:05] Production.INFO: CreateAllLog End [2025-03-03 13:40:05] Production.INFO: Account Balance End. [2025-03-03 13:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:40:05] Production.INFO: ==23838== Releasing lock... [2025-03-03 13:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:40:06 [end_date_ymd] => 2025-03-03 13:40:06 [RateCDR] => 1 ) [2025-03-03 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:40:06' and `end` < '2025-03-03 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598833', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 13:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 13:40:09] Production.INFO: ProcessCDR(1,14598833,1,1,2) [2025-03-03 13:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598833,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598833,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:40:09] Production.INFO: ==23842== Releasing lock... [2025-03-03 13:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 13:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:40:16] Production.ERROR: CronJobId end10 [2025-03-03 13:40:16] Production.INFO: ==23836== Releasing lock... [2025-03-03 13:40:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:40:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:40:18] Production.INFO: call_cost start [2025-03-03 13:40:18] Production.INFO: call_cost end [2025-03-03 13:40:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:40:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:40:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:40:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:40:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:40:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:40:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:40:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:40:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:40:19] Production.INFO: ==23832== Releasing lock... [2025-03-03 13:40:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:40:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:40:19] Production.INFO: count ==6586 [2025-03-03 13:40:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:40:06 - End Time 2025-03-03 13:40:06 [2025-03-03 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598832', 'tblTempUsageDetail_20' ) start [2025-03-03 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598832', 'tblTempUsageDetail_20' ) end [2025-03-03 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598832', 'tblTempVendorCDR_20' ) start [2025-03-03 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598832', 'tblTempVendorCDR_20' ) end [2025-03-03 13:40:23] Production.INFO: ProcessCDR(1,14598832,1,1,2) [2025-03-03 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598832', 'tblTempUsageDetail_20' ) start [2025-03-03 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598832', 'tblTempUsageDetail_20' ) end [2025-03-03 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:40:28] Production.INFO: ==23840== Releasing lock... [2025-03-03 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:40:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 18:41:01] Production.INFO: ==23897== Lock acquired, processing the job... [2025-03-03 18:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:41:01] Production.INFO: neon service started [2025-03-03 18:41:01] Production.INFO: neon service started [2025-03-03 18:41:01] Production.INFO: ==23897== Releasing lock... [2025-03-03 18:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:41:01] Production.INFO: ==23900== Lock acquired, processing the job... [2025-03-03 13:41:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:41:02] Production.INFO: ==23902== Lock acquired, processing the job... [2025-03-03 18:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:41:02] Production.INFO: ==23900== Releasing lock... [2025-03-03 13:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:41:02] Production.INFO: ==23902== Releasing lock... [2025-03-03 18:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:41:03] Production.INFO: ==23909== Lock acquired, processing the job... [2025-03-03 13:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:41:03] Production.INFO: ==23905== Lock acquired, processing the job... [2025-03-03 13:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:41:03] Production.INFO: ==23915== Lock acquired, processing the job... [2025-03-03 13:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:41:03] Production.INFO: ==23907== Lock acquired, processing the job... [2025-03-03 13:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:41:03] Production.INFO: count ==13 [2025-03-03 13:41:03] Production.INFO: ==23911== Lock acquired, processing the job... [2025-03-03 13:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:41:03] Production.INFO: ==23913== Lock acquired, processing the job... [2025-03-03 13:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:41:03] Production.INFO: count ==21 [2025-03-03 13:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598834') start [2025-03-03 13:41:03] Production.INFO: Account Balance Start. [2025-03-03 13:41:03] Production.INFO: CreateAllLog Start [2025-03-03 13:41:03] Production.INFO: 117 [2025-03-03 13:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598834') end [2025-03-03 13:41:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:41:03] Production.INFO: 1 [2025-03-03 13:41:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:03] Production.INFO: ==23915== Releasing lock... [2025-03-03 13:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:41:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:41:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:03] Production.INFO: ==23907== Releasing lock... [2025-03-03 13:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.ERROR: done [2025-03-03 13:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.ERROR: done [2025-03-03 13:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:41:04] Production.INFO: Total Charge 0 [2025-03-03 13:41:05] Production.INFO: CreateAllLog End [2025-03-03 13:41:05] Production.INFO: Account Balance End. [2025-03-03 13:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:41:05] Production.INFO: ==23911== Releasing lock... [2025-03-03 13:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:41:05 [end_date_ymd] => 2025-03-03 13:41:05 [RateCDR] => 1 ) [2025-03-03 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:41:05' and `end` < '2025-03-03 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:41:12] Production.ERROR: CronJobId end10 [2025-03-03 13:41:12] Production.INFO: ==23909== Releasing lock... [2025-03-03 13:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:41:15] Production.INFO: call_cost start [2025-03-03 13:41:15] Production.INFO: call_cost end [2025-03-03 13:41:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:41:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:41:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:41:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:41:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:41:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:41:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:41:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:41:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:41:16] Production.INFO: ==23905== Releasing lock... [2025-03-03 13:41:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:41:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:41:18] Production.INFO: count ==6639 [2025-03-03 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:41:05 - End Time 2025-03-03 13:41:05 [2025-03-03 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598838', 'tblTempUsageDetail_20' ) start [2025-03-03 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598838', 'tblTempUsageDetail_20' ) end [2025-03-03 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598838', 'tblTempVendorCDR_20' ) start [2025-03-03 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598838', 'tblTempVendorCDR_20' ) end [2025-03-03 13:41:22] Production.INFO: ProcessCDR(1,14598838,1,1,2) [2025-03-03 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598838', 'tblTempUsageDetail_20' ) start [2025-03-03 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598838', 'tblTempUsageDetail_20' ) end [2025-03-03 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:41:28] Production.INFO: ==23913== Releasing lock... [2025-03-03 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:41:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:42:02] Production.INFO: ==23972== Lock acquired, processing the job... [2025-03-03 18:42:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:42:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:42:02] Production.INFO: neon service started [2025-03-03 18:42:02] Production.INFO: neon service started [2025-03-03 18:42:02] Production.INFO: ==23972== Releasing lock... [2025-03-03 18:42:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:42:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:42:02] Production.INFO: ==23976== Lock acquired, processing the job... [2025-03-03 18:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:42:02] Production.INFO: ==23976== Releasing lock... [2025-03-03 18:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:42:02] Production.INFO: ==23974== Lock acquired, processing the job... [2025-03-03 13:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:42:02] Production.INFO: ==23974== Releasing lock... [2025-03-03 13:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:42:03] Production.INFO: ==23981== Lock acquired, processing the job... [2025-03-03 13:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:42:03] Production.INFO: ==23979== Lock acquired, processing the job... [2025-03-03 13:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:42:03] Production.INFO: ==23987== Lock acquired, processing the job... [2025-03-03 13:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:42:03] Production.INFO: ==23983== Lock acquired, processing the job... [2025-03-03 13:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:42:03] Production.INFO: ==23985== Lock acquired, processing the job... [2025-03-03 13:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:42:04] Production.INFO: ==23989== Lock acquired, processing the job... [2025-03-03 13:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:42:04] Production.INFO: ==23981== Releasing lock... [2025-03-03 13:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:42:04] Production.INFO: Account Balance Start. [2025-03-03 13:42:04] Production.INFO: CreateAllLog Start [2025-03-03 13:42:04] Production.INFO: 117 [2025-03-03 13:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:42:04] Production.INFO: count ==13 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.ERROR: done [2025-03-03 13:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:42:04] Production.INFO: count ==21 [2025-03-03 13:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598841') start [2025-03-03 13:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598841') end [2025-03-03 13:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:42:04] Production.INFO: 1 [2025-03-03 13:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:42:04] Production.INFO: ==23989== Releasing lock... [2025-03-03 13:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:42:04] Production.ERROR: done [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:42:05] Production.INFO: Total Charge 0 [2025-03-03 13:42:05] Production.INFO: CreateAllLog End [2025-03-03 13:42:05] Production.INFO: Account Balance End. [2025-03-03 13:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:42:05] Production.INFO: ==23985== Releasing lock... [2025-03-03 13:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:42:05 [end_date_ymd] => 2025-03-03 13:42:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:42:05' and `end` < '2025-03-03 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-03-03 13:42:13] Production.ERROR: CronJobId end10 [2025-03-03 13:42:13] Production.INFO: ==23983== Releasing lock... [2025-03-03 13:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:42:15] Production.INFO: call_cost start [2025-03-03 13:42:15] Production.INFO: call_cost end [2025-03-03 13:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:42:16] Production.INFO: ==23979== Releasing lock... [2025-03-03 13:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:42:19] Production.INFO: count ==6648 [2025-03-03 13:42:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:42:05 - End Time 2025-03-03 13:42:05 [2025-03-03 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598843', 'tblTempUsageDetail_20' ) start [2025-03-03 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598843', 'tblTempUsageDetail_20' ) end [2025-03-03 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598843', 'tblTempVendorCDR_20' ) start [2025-03-03 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598843', 'tblTempVendorCDR_20' ) end [2025-03-03 13:42:22] Production.INFO: ProcessCDR(1,14598843,1,1,2) [2025-03-03 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598843', 'tblTempUsageDetail_20' ) start [2025-03-03 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598843', 'tblTempUsageDetail_20' ) end [2025-03-03 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:42:28] Production.INFO: ==23987== Releasing lock... [2025-03-03 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:42:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:43:01] Production.INFO: ==24051== Lock acquired, processing the job... [2025-03-03 18:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:43:01] Production.INFO: neon service started [2025-03-03 18:43:01] Production.INFO: neon service started [2025-03-03 18:43:01] Production.INFO: ==24051== Releasing lock... [2025-03-03 18:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:43:01] Production.INFO: ==24053== Lock acquired, processing the job... [2025-03-03 13:43:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:43:02] Production.INFO: ==24053== Releasing lock... [2025-03-03 13:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:43:02] Production.INFO: ==24055== Lock acquired, processing the job... [2025-03-03 18:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:43:02] Production.INFO: ==24055== Releasing lock... [2025-03-03 18:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:43:03] Production.INFO: ==24057== Lock acquired, processing the job... [2025-03-03 13:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:43:03] Production.INFO: ==24061== Lock acquired, processing the job... [2025-03-03 13:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:43:03] Production.INFO: ==24068== Lock acquired, processing the job... [2025-03-03 13:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:43:03] Production.INFO: ==24059== Lock acquired, processing the job... [2025-03-03 13:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:43:03] Production.INFO: ==24066== Lock acquired, processing the job... [2025-03-03 13:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:43:03] Production.INFO: ==24064== Lock acquired, processing the job... [2025-03-03 13:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:43:03] Production.INFO: Account Balance Start. [2025-03-03 13:43:03] Production.INFO: CreateAllLog Start [2025-03-03 13:43:03] Production.INFO: 117 [2025-03-03 13:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:03] Production.INFO: count ==13 [2025-03-03 13:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:43:03] Production.INFO: count ==21 [2025-03-03 13:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598846') start [2025-03-03 13:43:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:03] Production.INFO: ==24059== Releasing lock... [2025-03-03 13:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:43:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:43:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598846') end [2025-03-03 13:43:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:43:03] Production.INFO: 1 [2025-03-03 13:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:43:04] Production.INFO: ==24068== Releasing lock... [2025-03-03 13:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.ERROR: done [2025-03-03 13:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.ERROR: done [2025-03-03 13:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:43:05] Production.INFO: Total Charge 0 [2025-03-03 13:43:05] Production.INFO: CreateAllLog End [2025-03-03 13:43:05] Production.INFO: Account Balance End. [2025-03-03 13:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:43:05] Production.INFO: ==24064== Releasing lock... [2025-03-03 13:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:43:05 [end_date_ymd] => 2025-03-03 13:43:05 [RateCDR] => 1 ) [2025-03-03 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:43:05' and `end` < '2025-03-03 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:43:12] Production.ERROR: CronJobId end10 [2025-03-03 13:43:12] Production.INFO: ==24061== Releasing lock... [2025-03-03 13:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:43:14] Production.INFO: call_cost start [2025-03-03 13:43:14] Production.INFO: call_cost end [2025-03-03 13:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:43:15] Production.INFO: ==24057== Releasing lock... [2025-03-03 13:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:43:19] Production.INFO: count ==6643 [2025-03-03 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:43:05 - End Time 2025-03-03 13:43:05 [2025-03-03 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598848', 'tblTempUsageDetail_20' ) start [2025-03-03 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598848', 'tblTempUsageDetail_20' ) end [2025-03-03 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598848', 'tblTempVendorCDR_20' ) start [2025-03-03 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598848', 'tblTempVendorCDR_20' ) end [2025-03-03 13:43:22] Production.INFO: ProcessCDR(1,14598848,1,1,2) [2025-03-03 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598848', 'tblTempUsageDetail_20' ) start [2025-03-03 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598848', 'tblTempUsageDetail_20' ) end [2025-03-03 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:43:28] Production.INFO: ==24066== Releasing lock... [2025-03-03 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:43:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:44:01] Production.INFO: ==24123== Lock acquired, processing the job... [2025-03-03 18:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:44:01] Production.INFO: neon service started [2025-03-03 18:44:01] Production.INFO: neon service started [2025-03-03 18:44:01] Production.INFO: ==24123== Releasing lock... [2025-03-03 18:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:44:02] Production.INFO: ==24127== Lock acquired, processing the job... [2025-03-03 18:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:44:02] Production.INFO: ==24127== Releasing lock... [2025-03-03 18:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:44:02] Production.INFO: ==24125== Lock acquired, processing the job... [2025-03-03 13:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:44:02] Production.INFO: ==24125== Releasing lock... [2025-03-03 13:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:44:03] Production.INFO: ==24133== Lock acquired, processing the job... [2025-03-03 13:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:44:03] Production.INFO: ==24129== Lock acquired, processing the job... [2025-03-03 13:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:44:03] Production.INFO: ==24137== Lock acquired, processing the job... [2025-03-03 13:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:44:03] Production.INFO: ==24131== Lock acquired, processing the job... [2025-03-03 13:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:44:03] Production.INFO: ==24135== Lock acquired, processing the job... [2025-03-03 13:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:44:03] Production.INFO: ==24139== Lock acquired, processing the job... [2025-03-03 13:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:44:04] Production.INFO: Account Balance Start. [2025-03-03 13:44:04] Production.INFO: CreateAllLog Start [2025-03-03 13:44:04] Production.INFO: 117 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: count ==13 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:44:04] Production.INFO: count ==21 [2025-03-03 13:44:04] Production.ERROR: done [2025-03-03 13:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: ==24131== Releasing lock... [2025-03-03 13:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598851') start [2025-03-03 13:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598851') end [2025-03-03 13:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:44:04] Production.INFO: 1 [2025-03-03 13:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: ==24139== Releasing lock... [2025-03-03 13:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:44:04] Production.ERROR: done [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:44:05] Production.INFO: Total Charge 0 [2025-03-03 13:44:05] Production.INFO: CreateAllLog End [2025-03-03 13:44:05] Production.INFO: Account Balance End. [2025-03-03 13:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:44:05] Production.INFO: ==24135== Releasing lock... [2025-03-03 13:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:44:05 [end_date_ymd] => 2025-03-03 13:44:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:44:05' and `end` < '2025-03-03 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-03-03 13:44:13] Production.ERROR: CronJobId end10 [2025-03-03 13:44:13] Production.INFO: ==24133== Releasing lock... [2025-03-03 13:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:44:14] Production.INFO: call_cost start [2025-03-03 13:44:14] Production.INFO: call_cost end [2025-03-03 13:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:44:15] Production.INFO: ==24129== Releasing lock... [2025-03-03 13:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:44:19] Production.INFO: count ==6642 [2025-03-03 13:44:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:44:05 - End Time 2025-03-03 13:44:05 [2025-03-03 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598853', 'tblTempUsageDetail_20' ) start [2025-03-03 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598853', 'tblTempUsageDetail_20' ) end [2025-03-03 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598853', 'tblTempVendorCDR_20' ) start [2025-03-03 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598853', 'tblTempVendorCDR_20' ) end [2025-03-03 13:44:22] Production.INFO: ProcessCDR(1,14598853,1,1,2) [2025-03-03 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598853', 'tblTempUsageDetail_20' ) start [2025-03-03 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598853', 'tblTempUsageDetail_20' ) end [2025-03-03 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:44:27] Production.INFO: ==24137== Releasing lock... [2025-03-03 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:44:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:45:02] Production.INFO: ==24234== Lock acquired, processing the job... [2025-03-03 18:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:45:02] Production.INFO: neon service started [2025-03-03 18:45:02] Production.INFO: neon service started [2025-03-03 18:45:02] Production.INFO: ==24234== Releasing lock... [2025-03-03 18:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:45:02] Production.INFO: ==24236== Lock acquired, processing the job... [2025-03-03 13:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:45:02] Production.INFO: ==24238== Lock acquired, processing the job... [2025-03-03 18:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:45:02] Production.INFO: ==24238== Releasing lock... [2025-03-03 18:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:45:03] Production.INFO: ==24236== Releasing lock... [2025-03-03 13:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:45:03] Production.INFO: ==24243== Lock acquired, processing the job... [2025-03-03 13:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:45:04] Production.INFO: ==24245== Lock acquired, processing the job... [2025-03-03 13:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:45:04] Production.INFO: ==24253== Lock acquired, processing the job... [2025-03-03 13:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:45:04] Production.INFO: ==24249== Lock acquired, processing the job... [2025-03-03 13:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:45:04] Production.INFO: ==24247== Lock acquired, processing the job... [2025-03-03 13:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:45:04] Production.INFO: ==24251== Lock acquired, processing the job... [2025-03-03 13:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:45:04] Production.INFO: Account Balance Start. [2025-03-03 13:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:45:04] Production.INFO: CreateAllLog Start [2025-03-03 13:45:04] Production.INFO: 117 [2025-03-03 13:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:04] Production.INFO: ==24245== Releasing lock... [2025-03-03 13:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:45:04] Production.INFO: count ==13 [2025-03-03 13:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:04] Production.INFO: count ==21 [2025-03-03 13:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598856') start [2025-03-03 13:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598856') end [2025-03-03 13:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:45:04] Production.INFO: 1 [2025-03-03 13:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:45:04] Production.INFO: ==24253== Releasing lock... [2025-03-03 13:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:45:05] Production.INFO: Date 2025-02-14 [2025-03-03 13:45:05] Production.ERROR: done [2025-03-03 13:45:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.ERROR: done [2025-03-03 13:45:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:45:06] Production.INFO: Total Charge 0 [2025-03-03 13:45:06] Production.INFO: CreateAllLog End [2025-03-03 13:45:06] Production.INFO: Account Balance End. [2025-03-03 13:45:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:45:06] Production.INFO: ==24249== Releasing lock... [2025-03-03 13:45:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:45:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:45:06 [end_date_ymd] => 2025-03-03 13:45:06 [RateCDR] => 1 ) [2025-03-03 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:45:06' and `end` < '2025-03-03 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:45:13] Production.ERROR: CronJobId end10 [2025-03-03 13:45:13] Production.INFO: ==24247== Releasing lock... [2025-03-03 13:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:45:16] Production.INFO: call_cost start [2025-03-03 13:45:16] Production.INFO: call_cost end [2025-03-03 13:45:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:45:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:45:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:45:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:45:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:45:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:45:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:45:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:45:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:45:17] Production.INFO: ==24243== Releasing lock... [2025-03-03 13:45:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:45:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:45:19] Production.INFO: count ==6650 [2025-03-03 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:45:06 - End Time 2025-03-03 13:45:06 [2025-03-03 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598858', 'tblTempUsageDetail_20' ) start [2025-03-03 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598858', 'tblTempUsageDetail_20' ) end [2025-03-03 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598858', 'tblTempVendorCDR_20' ) start [2025-03-03 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598858', 'tblTempVendorCDR_20' ) end [2025-03-03 13:45:22] Production.INFO: ProcessCDR(1,14598858,1,1,2) [2025-03-03 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598858', 'tblTempUsageDetail_20' ) start [2025-03-03 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598858', 'tblTempUsageDetail_20' ) end [2025-03-03 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:45:27] Production.INFO: ==24251== Releasing lock... [2025-03-03 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:45:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:46:01] Production.INFO: ==24309== Lock acquired, processing the job... [2025-03-03 18:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:46:01] Production.INFO: neon service started [2025-03-03 18:46:01] Production.INFO: neon service started [2025-03-03 18:46:01] Production.INFO: ==24309== Releasing lock... [2025-03-03 18:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:46:02] Production.INFO: ==24311== Lock acquired, processing the job... [2025-03-03 13:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:46:02] Production.INFO: ==24313== Lock acquired, processing the job... [2025-03-03 18:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:46:02] Production.INFO: ==24313== Releasing lock... [2025-03-03 18:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:46:02] Production.INFO: ==24311== Releasing lock... [2025-03-03 13:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:46:03] Production.INFO: ==24316== Lock acquired, processing the job... [2025-03-03 13:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:46:03] Production.INFO: ==24318== Lock acquired, processing the job... [2025-03-03 13:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:46:03] Production.INFO: ==24324== Lock acquired, processing the job... [2025-03-03 13:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:46:03] Production.INFO: ==24318== Releasing lock... [2025-03-03 13:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:46:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:46:04] Production.INFO: ==24320== Lock acquired, processing the job... [2025-03-03 13:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:46:04] Production.INFO: ==24322== Lock acquired, processing the job... [2025-03-03 13:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:46:04] Production.INFO: ==24326== Lock acquired, processing the job... [2025-03-03 13:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:46:04] Production.ERROR: done [2025-03-03 13:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:46:04] Production.INFO: Account Balance Start. [2025-03-03 13:46:04] Production.INFO: CreateAllLog Start [2025-03-03 13:46:04] Production.INFO: 117 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:46:04] Production.INFO: count ==13 [2025-03-03 13:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:46:04] Production.INFO: count ==21 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:46:04] Production.ERROR: done [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598862') start [2025-03-03 13:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598862') end [2025-03-03 13:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:46:04] Production.INFO: 1 [2025-03-03 13:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: ==24326== Releasing lock... [2025-03-03 13:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:46:05 [end_date_ymd] => 2025-03-03 13:46:05 [RateCDR] => 1 ) [2025-03-03 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:46:05' and `end` < '2025-03-03 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:46:05] Production.INFO: Total Charge 0 [2025-03-03 13:46:05] Production.INFO: CreateAllLog End [2025-03-03 13:46:05] Production.INFO: Account Balance End. [2025-03-03 13:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:46:05] Production.INFO: ==24322== Releasing lock... [2025-03-03 13:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:46:14] Production.ERROR: CronJobId end10 [2025-03-03 13:46:14] Production.INFO: ==24320== Releasing lock... [2025-03-03 13:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:46:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:46:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:46:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:46:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:46:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:46:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:46:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:46:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:46:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:46:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:46:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:46:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:46:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:46:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:46:15] Production.INFO: call_cost start [2025-03-03 13:46:15] Production.INFO: call_cost end [2025-03-03 13:46:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:46:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:46:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:46:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:46:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:46:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:46:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:46:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:46:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:46:16] Production.INFO: ==24316== Releasing lock... [2025-03-03 13:46:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:46:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:46:18] Production.INFO: count ==6642 [2025-03-03 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-03 10:46:05 - End Time 2025-03-03 13:46:05 [2025-03-03 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598863', 'tblTempUsageDetail_20' ) start [2025-03-03 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598863', 'tblTempUsageDetail_20' ) end [2025-03-03 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598863', 'tblTempVendorCDR_20' ) start [2025-03-03 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598863', 'tblTempVendorCDR_20' ) end [2025-03-03 13:46:22] Production.INFO: ProcessCDR(1,14598863,1,1,2) [2025-03-03 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598863', 'tblTempUsageDetail_20' ) start [2025-03-03 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598863', 'tblTempUsageDetail_20' ) end [2025-03-03 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:46:26] Production.INFO: ==24324== Releasing lock... [2025-03-03 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:46:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:47:02] Production.INFO: ==24380== Lock acquired, processing the job... [2025-03-03 18:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:47:02] Production.INFO: neon service started [2025-03-03 18:47:02] Production.INFO: neon service started [2025-03-03 18:47:02] Production.INFO: ==24380== Releasing lock... [2025-03-03 18:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:47:02] Production.INFO: ==24382== Lock acquired, processing the job... [2025-03-03 13:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:47:02] Production.INFO: ==24382== Releasing lock... [2025-03-03 13:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:47:03] Production.INFO: ==24384== Lock acquired, processing the job... [2025-03-03 18:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:47:03] Production.INFO: ==24384== Releasing lock... [2025-03-03 18:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:47:03] Production.INFO: ==24396== Lock acquired, processing the job... [2025-03-03 13:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:47:03] Production.INFO: ==24394== Lock acquired, processing the job... [2025-03-03 13:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:47:04] Production.INFO: ==24386== Lock acquired, processing the job... [2025-03-03 13:47:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:47:04] Production.INFO: ==24390== Lock acquired, processing the job... [2025-03-03 13:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:47:04] Production.INFO: ==24388== Lock acquired, processing the job... [2025-03-03 13:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:47:04] Production.INFO: ==24392== Lock acquired, processing the job... [2025-03-03 13:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:47:04] Production.INFO: count ==13 [2025-03-03 13:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:47:04] Production.INFO: count ==21 [2025-03-03 13:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598864') start [2025-03-03 13:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598864') end [2025-03-03 13:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:47:04] Production.INFO: 1 [2025-03-03 13:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:47:04] Production.INFO: Account Balance Start. [2025-03-03 13:47:04] Production.INFO: CreateAllLog Start [2025-03-03 13:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:47:04] Production.INFO: 117 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: ==24396== Releasing lock... [2025-03-03 13:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:47:04] Production.ERROR: done [2025-03-03 13:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: ==24388== Releasing lock... [2025-03-03 13:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:47:04] Production.ERROR: done [2025-03-03 13:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:47:05] Production.INFO: Total Charge 0 [2025-03-03 13:47:05] Production.INFO: CreateAllLog End [2025-03-03 13:47:05] Production.INFO: Account Balance End. [2025-03-03 13:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:47:05] Production.INFO: ==24392== Releasing lock... [2025-03-03 13:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:47:05 [end_date_ymd] => 2025-03-03 13:47:05 [RateCDR] => 1 ) [2025-03-03 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:47:05' and `end` < '2025-03-03 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:47:12] Production.ERROR: CronJobId end10 [2025-03-03 13:47:12] Production.INFO: ==24390== Releasing lock... [2025-03-03 13:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:47:15] Production.INFO: call_cost start [2025-03-03 13:47:15] Production.INFO: call_cost end [2025-03-03 13:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:47:16] Production.INFO: ==24386== Releasing lock... [2025-03-03 13:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:47:19] Production.INFO: count ==6634 [2025-03-03 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:47:05 - End Time 2025-03-03 13:47:05 [2025-03-03 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598868', 'tblTempUsageDetail_20' ) start [2025-03-03 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598868', 'tblTempUsageDetail_20' ) end [2025-03-03 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598868', 'tblTempVendorCDR_20' ) start [2025-03-03 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598868', 'tblTempVendorCDR_20' ) end [2025-03-03 13:47:22] Production.INFO: ProcessCDR(1,14598868,1,1,2) [2025-03-03 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598868', 'tblTempUsageDetail_20' ) start [2025-03-03 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598868', 'tblTempUsageDetail_20' ) end [2025-03-03 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:47:27] Production.INFO: ==24394== Releasing lock... [2025-03-03 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:47:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:48:01] Production.INFO: ==24450== Lock acquired, processing the job... [2025-03-03 18:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:48:01] Production.INFO: neon service started [2025-03-03 18:48:01] Production.INFO: neon service started [2025-03-03 18:48:01] Production.INFO: ==24450== Releasing lock... [2025-03-03 18:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:48:02] Production.INFO: ==24452== Lock acquired, processing the job... [2025-03-03 13:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:48:02] Production.INFO: ==24452== Releasing lock... [2025-03-03 13:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:48:02] Production.INFO: ==24454== Lock acquired, processing the job... [2025-03-03 18:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:48:02] Production.INFO: ==24454== Releasing lock... [2025-03-03 18:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:48:03] Production.INFO: ==24456== Lock acquired, processing the job... [2025-03-03 13:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:48:03] Production.INFO: ==24458== Lock acquired, processing the job... [2025-03-03 13:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:48:03] Production.INFO: ==24462== Lock acquired, processing the job... [2025-03-03 13:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:48:03] Production.INFO: Account Balance Start. [2025-03-03 13:48:03] Production.INFO: CreateAllLog Start [2025-03-03 13:48:03] Production.INFO: 117 [2025-03-03 13:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:03] Production.INFO: ==24458== Releasing lock... [2025-03-03 13:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:48:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:48:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:03] Production.INFO: ==24460== Lock acquired, processing the job... [2025-03-03 13:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:48:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:03] Production.INFO: ==24467== Lock acquired, processing the job... [2025-03-03 13:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:48:04] Production.INFO: ==24465== Lock acquired, processing the job... [2025-03-03 13:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:48:04] Production.INFO: count ==13 [2025-03-03 13:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:48:04] Production.INFO: count ==21 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598872') start [2025-03-03 13:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598872') end [2025-03-03 13:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:48:04] Production.INFO: 1 [2025-03-03 13:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: ==24467== Releasing lock... [2025-03-03 13:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:48:04] Production.ERROR: done [2025-03-03 13:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:04] Production.ERROR: done [2025-03-03 13:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:48:05] Production.INFO: Total Charge 0 [2025-03-03 13:48:05] Production.INFO: CreateAllLog End [2025-03-03 13:48:05] Production.INFO: Account Balance End. [2025-03-03 13:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:48:05] Production.INFO: ==24462== Releasing lock... [2025-03-03 13:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:48:06 [end_date_ymd] => 2025-03-03 13:48:06 [RateCDR] => 1 ) [2025-03-03 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:48:06' and `end` < '2025-03-03 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:48:14] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:362 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(362): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_update...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_update...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_update...', Array, Object(Closure)) #4 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Database\Connection->statement() #5 /var/www/html/onswitch.neon.service/app/Console/Commands/CreateSummaryLive.php(0): App\Lib\AccountBalance::getOutstandingAmount() #6 [internal function]: App\Console\Commands\CreateSummaryLive->handle() #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #9 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\CreateSummaryLive), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_updateSOAOffSet(1,0))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_update...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(363): Illuminate\Database\Connection->run('CALL prc_update...', Array, Object(Closure)) #2 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Database\Connection->statement() #3 /var/www/html/onswitch.neon.service/app/Console/Commands/CreateSummaryLive.php(0): App\Lib\AccountBalance::getOutstandingAmount() #4 [internal function]: App\Console\Commands\CreateSummaryLive->handle() #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\CreateSummaryLive), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 {main} [2025-03-03 13:48:14] Production.ERROR: CronJobId end10 [2025-03-03 13:48:14] Production.INFO: ==24460== Releasing lock... [2025-03-03 13:48:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:48:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:48:15] Production.INFO: call_cost start [2025-03-03 13:48:15] Production.INFO: call_cost end [2025-03-03 13:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:48:16] Production.INFO: ==24456== Releasing lock... [2025-03-03 13:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:48:19] Production.INFO: count ==6641 [2025-03-03 13:48:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:48:06 - End Time 2025-03-03 13:48:06 [2025-03-03 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598873', 'tblTempUsageDetail_20' ) start [2025-03-03 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598873', 'tblTempUsageDetail_20' ) end [2025-03-03 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598873', 'tblTempVendorCDR_20' ) start [2025-03-03 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598873', 'tblTempVendorCDR_20' ) end [2025-03-03 13:48:22] Production.INFO: ProcessCDR(1,14598873,1,1,2) [2025-03-03 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598873', 'tblTempUsageDetail_20' ) start [2025-03-03 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598873', 'tblTempUsageDetail_20' ) end [2025-03-03 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:48:28] Production.INFO: ==24465== Releasing lock... [2025-03-03 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:48:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:49:02] Production.INFO: ==24521== Lock acquired, processing the job... [2025-03-03 18:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:49:02] Production.INFO: neon service started [2025-03-03 18:49:02] Production.INFO: neon service started [2025-03-03 18:49:02] Production.INFO: ==24521== Releasing lock... [2025-03-03 18:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:49:02] Production.INFO: ==24523== Lock acquired, processing the job... [2025-03-03 13:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:49:03] Production.INFO: ==24525== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:49:03] Production.INFO: ==24525== Releasing lock... [2025-03-03 18:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:49:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:49:03] Production.INFO: ==24523== Releasing lock... [2025-03-03 13:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:49:03] Production.INFO: ==24528== Lock acquired, processing the job... [2025-03-03 13:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:49:04] Production.INFO: ==24534== Lock acquired, processing the job... [2025-03-03 13:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:49:04] Production.INFO: Account Balance Start. [2025-03-03 13:49:04] Production.INFO: CreateAllLog Start [2025-03-03 13:49:04] Production.INFO: 117 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:49:04] Production.INFO: ==24538== Lock acquired, processing the job... [2025-03-03 13:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: count ==13 [2025-03-03 13:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:49:04] Production.INFO: count ==21 [2025-03-03 13:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598876') start [2025-03-03 13:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598876') end [2025-03-03 13:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:49:04] Production.INFO: 1 [2025-03-03 13:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:49:04] Production.INFO: ==24538== Releasing lock... [2025-03-03 13:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: ==24530== Lock acquired, processing the job... [2025-03-03 13:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:49:04] Production.INFO: ==24532== Lock acquired, processing the job... [2025-03-03 13:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: ==24536== Lock acquired, processing the job... [2025-03-03 13:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: ==24530== Releasing lock... [2025-03-03 13:49:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:49:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:49:05] Production.ERROR: done [2025-03-03 13:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.ERROR: done [2025-03-03 13:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:49:05] Production.INFO: Total Charge 0 [2025-03-03 13:49:05] Production.INFO: CreateAllLog End [2025-03-03 13:49:05] Production.INFO: Account Balance End. [2025-03-03 13:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:49:05] Production.INFO: ==24534== Releasing lock... [2025-03-03 13:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:49:06 [end_date_ymd] => 2025-03-03 13:49:06 [RateCDR] => 1 ) [2025-03-03 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:49:06' and `end` < '2025-03-03 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:49:14] Production.ERROR: CronJobId end10 [2025-03-03 13:49:14] Production.INFO: ==24532== Releasing lock... [2025-03-03 13:49:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:49:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:49:15] Production.INFO: call_cost start [2025-03-03 13:49:15] Production.INFO: call_cost end [2025-03-03 13:49:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:49:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:49:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:49:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:49:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:49:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:49:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:49:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:49:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:49:16] Production.INFO: ==24528== Releasing lock... [2025-03-03 13:49:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:49:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:49:19] Production.INFO: count ==6619 [2025-03-03 13:49:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:49:06 - End Time 2025-03-03 13:49:06 [2025-03-03 13:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598878', 'tblTempUsageDetail_20' ) start [2025-03-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598878', 'tblTempUsageDetail_20' ) end [2025-03-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598878', 'tblTempVendorCDR_20' ) start [2025-03-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598878', 'tblTempVendorCDR_20' ) end [2025-03-03 13:49:23] Production.INFO: ProcessCDR(1,14598878,1,1,2) [2025-03-03 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598878', 'tblTempUsageDetail_20' ) start [2025-03-03 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598878', 'tblTempUsageDetail_20' ) end [2025-03-03 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:49:28] Production.INFO: ==24536== Releasing lock... [2025-03-03 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:49:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:50:01] Production.INFO: ==24591== Lock acquired, processing the job... [2025-03-03 18:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:50:01] Production.INFO: neon service started [2025-03-03 18:50:01] Production.INFO: neon service started [2025-03-03 18:50:01] Production.INFO: ==24591== Releasing lock... [2025-03-03 18:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:50:02] Production.INFO: ==24593== Lock acquired, processing the job... [2025-03-03 13:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:50:02] Production.INFO: ==24595== Lock acquired, processing the job... [2025-03-03 18:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:50:02] Production.INFO: ==24595== Releasing lock... [2025-03-03 18:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:50:03] Production.INFO: ==24593== Releasing lock... [2025-03-03 13:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:50:03] Production.INFO: ==24598== Lock acquired, processing the job... [2025-03-03 13:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 13:50:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 13:50:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 13:50:03] Production.INFO: ==24598== Releasing lock... [2025-03-03 13:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 13:50:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 13:50:03] Production.INFO: ==24606== Lock acquired, processing the job... [2025-03-03 13:50:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:50:04] Production.INFO: ==24604== Lock acquired, processing the job... [2025-03-03 13:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:50:04] Production.INFO: ==24610== Lock acquired, processing the job... [2025-03-03 13:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 13:50:04] Production.INFO: Account Balance Start. [2025-03-03 13:50:04] Production.INFO: CreateAllLog Start [2025-03-03 13:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:50:04] Production.INFO: 117 [2025-03-03 13:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: ==24600== Lock acquired, processing the job... [2025-03-03 13:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: ==24602== Lock acquired, processing the job... [2025-03-03 13:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: ==24608== Lock acquired, processing the job... [2025-03-03 13:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:50:04] Production.ERROR: done [2025-03-03 13:50:04] Production.INFO: ==24612== Lock acquired, processing the job... [2025-03-03 13:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 13:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598882', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 13:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:50:04] Production.INFO: count ==13 [2025-03-03 13:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:50:04] Production.INFO: count ==21 [2025-03-03 13:50:04] Production.INFO: ==24602== Releasing lock... [2025-03-03 13:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598883') start [2025-03-03 13:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598883') end [2025-03-03 13:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:50:05] Production.INFO: 1 [2025-03-03 13:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:50:05] Production.ERROR: done [2025-03-03 13:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.INFO: ==24612== Releasing lock... [2025-03-03 13:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.ERROR: done [2025-03-03 13:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-02-24 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-02-25 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-02-26 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-02-27 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-02-28 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-03-01 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-03-02 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 13:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 13:50:06] Production.INFO: Total Charge 0 [2025-03-03 13:50:06] Production.INFO: CreateAllLog End [2025-03-03 13:50:06] Production.INFO: Account Balance End. [2025-03-03 13:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:50:06] Production.INFO: ==24606== Releasing lock... [2025-03-03 13:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:50:06 [end_date_ymd] => 2025-03-03 13:50:06 [RateCDR] => 1 ) [2025-03-03 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:50:06' and `end` < '2025-03-03 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598882', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 13:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 13:50:09] Production.INFO: ProcessCDR(1,14598882,1,1,2) [2025-03-03 13:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598882,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598882,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:50:09] Production.INFO: ==24610== Releasing lock... [2025-03-03 13:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 13:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:50:15] Production.ERROR: CronJobId end10 [2025-03-03 13:50:15] Production.INFO: ==24604== Releasing lock... [2025-03-03 13:50:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:50:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:50:17] Production.INFO: call_cost start [2025-03-03 13:50:17] Production.INFO: call_cost end [2025-03-03 13:50:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:50:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:50:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:50:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:50:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:50:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:50:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:50:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:50:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:50:18] Production.INFO: ==24600== Releasing lock... [2025-03-03 13:50:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:50:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:50:19] Production.INFO: count ==6626 [2025-03-03 13:50:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:50:06 - End Time 2025-03-03 13:50:06 [2025-03-03 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598884', 'tblTempUsageDetail_20' ) start [2025-03-03 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598884', 'tblTempUsageDetail_20' ) end [2025-03-03 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598884', 'tblTempVendorCDR_20' ) start [2025-03-03 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598884', 'tblTempVendorCDR_20' ) end [2025-03-03 13:50:23] Production.INFO: ProcessCDR(1,14598884,1,1,2) [2025-03-03 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598884', 'tblTempUsageDetail_20' ) start [2025-03-03 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598884', 'tblTempUsageDetail_20' ) end [2025-03-03 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:50:28] Production.INFO: ==24608== Releasing lock... [2025-03-03 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:50:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:51:02] Production.INFO: ==24666== Lock acquired, processing the job... [2025-03-03 18:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:51:02] Production.INFO: neon service started [2025-03-03 18:51:02] Production.INFO: neon service started [2025-03-03 18:51:02] Production.INFO: ==24666== Releasing lock... [2025-03-03 18:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:51:02] Production.INFO: ==24668== Lock acquired, processing the job... [2025-03-03 13:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:51:02] Production.INFO: ==24668== Releasing lock... [2025-03-03 13:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:51:03] Production.INFO: ==24670== Lock acquired, processing the job... [2025-03-03 18:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:51:03] Production.INFO: ==24670== Releasing lock... [2025-03-03 18:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:51:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:51:03] Production.INFO: ==24674== Lock acquired, processing the job... [2025-03-03 13:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:51:03] Production.INFO: ==24683== Lock acquired, processing the job... [2025-03-03 13:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:51:03] Production.INFO: ==24672== Lock acquired, processing the job... [2025-03-03 13:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:51:03] Production.INFO: count ==13 [2025-03-03 13:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:51:04] Production.INFO: count ==21 [2025-03-03 13:51:04] Production.INFO: ==24676== Lock acquired, processing the job... [2025-03-03 13:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598886') start [2025-03-03 13:51:04] Production.INFO: ==24679== Lock acquired, processing the job... [2025-03-03 13:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:51:04] Production.INFO: ==24674== Releasing lock... [2025-03-03 13:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598886') end [2025-03-03 13:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:51:04] Production.INFO: 1 [2025-03-03 13:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:51:04] Production.INFO: ==24681== Lock acquired, processing the job... [2025-03-03 13:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:51:04] Production.INFO: ==24683== Releasing lock... [2025-03-03 13:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:51:04] Production.INFO: Account Balance Start. [2025-03-03 13:51:04] Production.INFO: CreateAllLog Start [2025-03-03 13:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:51:04] Production.INFO: 117 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.ERROR: done [2025-03-03 13:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.ERROR: done [2025-03-03 13:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:51:05] Production.INFO: Total Charge 0 [2025-03-03 13:51:05] Production.INFO: CreateAllLog End [2025-03-03 13:51:05] Production.INFO: Account Balance End. [2025-03-03 13:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:51:05] Production.INFO: ==24679== Releasing lock... [2025-03-03 13:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:51:06 [end_date_ymd] => 2025-03-03 13:51:06 [RateCDR] => 1 ) [2025-03-03 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:51:06' and `end` < '2025-03-03 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:51:13] Production.ERROR: CronJobId end10 [2025-03-03 13:51:13] Production.INFO: ==24676== Releasing lock... [2025-03-03 13:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:51:14] Production.INFO: call_cost start [2025-03-03 13:51:14] Production.INFO: call_cost end [2025-03-03 13:51:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:51:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:51:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:51:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:51:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:51:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:51:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:51:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:51:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:51:15] Production.INFO: ==24672== Releasing lock... [2025-03-03 13:51:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:51:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:51:19] Production.INFO: count ==6623 [2025-03-03 13:51:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:51:06 - End Time 2025-03-03 13:51:06 [2025-03-03 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598889', 'tblTempUsageDetail_20' ) start [2025-03-03 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598889', 'tblTempUsageDetail_20' ) end [2025-03-03 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598889', 'tblTempVendorCDR_20' ) start [2025-03-03 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598889', 'tblTempVendorCDR_20' ) end [2025-03-03 13:51:22] Production.INFO: ProcessCDR(1,14598889,1,1,2) [2025-03-03 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598889', 'tblTempUsageDetail_20' ) start [2025-03-03 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598889', 'tblTempUsageDetail_20' ) end [2025-03-03 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:51:28] Production.INFO: ==24681== Releasing lock... [2025-03-03 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:51:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:52:01] Production.INFO: ==24737== Lock acquired, processing the job... [2025-03-03 18:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:52:01] Production.INFO: neon service started [2025-03-03 18:52:01] Production.INFO: neon service started [2025-03-03 18:52:01] Production.INFO: ==24737== Releasing lock... [2025-03-03 18:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:52:02] Production.INFO: ==24739== Lock acquired, processing the job... [2025-03-03 13:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:52:02] Production.INFO: ==24739== Releasing lock... [2025-03-03 13:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:52:02] Production.INFO: ==24741== Lock acquired, processing the job... [2025-03-03 18:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:52:02] Production.INFO: ==24741== Releasing lock... [2025-03-03 18:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:52:03] Production.INFO: ==24746== Lock acquired, processing the job... [2025-03-03 13:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:52:03] Production.INFO: ==24754== Lock acquired, processing the job... [2025-03-03 13:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:52:03] Production.INFO: ==24743== Lock acquired, processing the job... [2025-03-03 13:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:52:03] Production.INFO: ==24748== Lock acquired, processing the job... [2025-03-03 13:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:52:03] Production.INFO: ==24746== Releasing lock... [2025-03-03 13:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:52:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:52:03] Production.INFO: count ==13 [2025-03-03 13:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:52:03] Production.INFO: count ==21 [2025-03-03 13:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598891') start [2025-03-03 13:52:03] Production.INFO: ==24750== Lock acquired, processing the job... [2025-03-03 13:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:52:03] Production.INFO: ==24752== Lock acquired, processing the job... [2025-03-03 13:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598891') end [2025-03-03 13:52:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:52:03] Production.INFO: 1 [2025-03-03 13:52:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:52:03] Production.INFO: Account Balance Start. [2025-03-03 13:52:03] Production.INFO: CreateAllLog Start [2025-03-03 13:52:03] Production.INFO: 117 [2025-03-03 13:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:52:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:03] Production.INFO: ==24754== Releasing lock... [2025-03-03 13:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:52:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:52:04] Production.ERROR: done [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.ERROR: done [2025-03-03 13:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:52:05] Production.INFO: Total Charge 0 [2025-03-03 13:52:05] Production.INFO: CreateAllLog End [2025-03-03 13:52:05] Production.INFO: Account Balance End. [2025-03-03 13:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:52:05] Production.INFO: ==24750== Releasing lock... [2025-03-03 13:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:52:05 [end_date_ymd] => 2025-03-03 13:52:05 [RateCDR] => 1 ) [2025-03-03 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:52:05' and `end` < '2025-03-03 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:52:14] Production.ERROR: CronJobId end10 [2025-03-03 13:52:14] Production.INFO: ==24748== Releasing lock... [2025-03-03 13:52:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:52:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:52:15] Production.INFO: call_cost start [2025-03-03 13:52:15] Production.INFO: call_cost end [2025-03-03 13:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:52:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:52:16] Production.INFO: ==24743== Releasing lock... [2025-03-03 13:52:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:52:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:52:19] Production.INFO: count ==6603 [2025-03-03 13:52:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:52:05 - End Time 2025-03-03 13:52:05 [2025-03-03 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598894', 'tblTempUsageDetail_20' ) start [2025-03-03 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598894', 'tblTempUsageDetail_20' ) end [2025-03-03 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598894', 'tblTempVendorCDR_20' ) start [2025-03-03 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598894', 'tblTempVendorCDR_20' ) end [2025-03-03 13:52:22] Production.INFO: ProcessCDR(1,14598894,1,1,2) [2025-03-03 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598894', 'tblTempUsageDetail_20' ) start [2025-03-03 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598894', 'tblTempUsageDetail_20' ) end [2025-03-03 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:52:27] Production.INFO: ==24752== Releasing lock... [2025-03-03 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:52:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:53:02] Production.INFO: ==24808== Lock acquired, processing the job... [2025-03-03 18:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:53:02] Production.INFO: neon service started [2025-03-03 18:53:02] Production.INFO: neon service started [2025-03-03 18:53:02] Production.INFO: ==24808== Releasing lock... [2025-03-03 18:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:53:02] Production.INFO: ==24810== Lock acquired, processing the job... [2025-03-03 13:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:53:02] Production.INFO: ==24812== Lock acquired, processing the job... [2025-03-03 18:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:53:02] Production.INFO: ==24812== Releasing lock... [2025-03-03 18:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:53:03] Production.INFO: ==24810== Releasing lock... [2025-03-03 13:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:53:04] Production.INFO: ==24817== Lock acquired, processing the job... [2025-03-03 13:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:53:04] Production.INFO: ==24815== Lock acquired, processing the job... [2025-03-03 13:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:53:04] Production.INFO: ==24821== Lock acquired, processing the job... [2025-03-03 13:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:53:04] Production.INFO: ==24819== Lock acquired, processing the job... [2025-03-03 13:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:53:04] Production.INFO: ==24825== Lock acquired, processing the job... [2025-03-03 13:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:53:04] Production.INFO: ==24823== Lock acquired, processing the job... [2025-03-03 13:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:53:04] Production.INFO: Account Balance Start. [2025-03-03 13:53:04] Production.INFO: CreateAllLog Start [2025-03-03 13:53:04] Production.INFO: 117 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: count ==13 [2025-03-03 13:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:53:04] Production.INFO: count ==21 [2025-03-03 13:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598898') start [2025-03-03 13:53:04] Production.INFO: ==24817== Releasing lock... [2025-03-03 13:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:04] Production.ERROR: done [2025-03-03 13:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:53:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598898') end [2025-03-03 13:53:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:53:05] Production.INFO: 1 [2025-03-03 13:53:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:53:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: ==24825== Releasing lock... [2025-03-03 13:53:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:53:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.ERROR: done [2025-03-03 13:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:53:05] Production.INFO: Total Charge 0 [2025-03-03 13:53:05] Production.INFO: CreateAllLog End [2025-03-03 13:53:05] Production.INFO: Account Balance End. [2025-03-03 13:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:53:05] Production.INFO: ==24821== Releasing lock... [2025-03-03 13:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:53:06 [end_date_ymd] => 2025-03-03 13:53:06 [RateCDR] => 1 ) [2025-03-03 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:53:06' and `end` < '2025-03-03 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:53:14] Production.ERROR: CronJobId end10 [2025-03-03 13:53:14] Production.INFO: ==24819== Releasing lock... [2025-03-03 13:53:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:53:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:53:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:53:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:53:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:53:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:53:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:53:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:53:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:53:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:53:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:53:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:53:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:53:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:53:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:53:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:53:16] Production.INFO: call_cost start [2025-03-03 13:53:16] Production.INFO: call_cost end [2025-03-03 13:53:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:53:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:53:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:53:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:53:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:53:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:53:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:53:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:53:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:53:17] Production.INFO: ==24815== Releasing lock... [2025-03-03 13:53:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:53:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:53:19] Production.INFO: count ==6614 [2025-03-03 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:53:06 - End Time 2025-03-03 13:53:06 [2025-03-03 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598899', 'tblTempUsageDetail_20' ) start [2025-03-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598899', 'tblTempUsageDetail_20' ) end [2025-03-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598899', 'tblTempVendorCDR_20' ) start [2025-03-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598899', 'tblTempVendorCDR_20' ) end [2025-03-03 13:53:23] Production.INFO: ProcessCDR(1,14598899,1,1,2) [2025-03-03 13:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598899', 'tblTempUsageDetail_20' ) start [2025-03-03 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598899', 'tblTempUsageDetail_20' ) end [2025-03-03 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:53:28] Production.INFO: ==24823== Releasing lock... [2025-03-03 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:53:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:54:01] Production.INFO: ==24879== Lock acquired, processing the job... [2025-03-03 18:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:54:01] Production.INFO: neon service started [2025-03-03 18:54:01] Production.INFO: neon service started [2025-03-03 18:54:01] Production.INFO: ==24879== Releasing lock... [2025-03-03 18:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:54:02] Production.INFO: ==24883== Lock acquired, processing the job... [2025-03-03 18:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:54:02] Production.INFO: ==24883== Releasing lock... [2025-03-03 18:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:54:02] Production.INFO: ==24881== Lock acquired, processing the job... [2025-03-03 13:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:54:02] Production.INFO: ==24881== Releasing lock... [2025-03-03 13:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:54:03] Production.INFO: ==24891== Lock acquired, processing the job... [2025-03-03 13:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:54:03] Production.INFO: ==24894== Lock acquired, processing the job... [2025-03-03 13:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:54:03] Production.INFO: Account Balance Start. [2025-03-03 13:54:03] Production.INFO: CreateAllLog Start [2025-03-03 13:54:03] Production.INFO: 117 [2025-03-03 13:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:03] Production.INFO: ==24885== Lock acquired, processing the job... [2025-03-03 13:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:54:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:03] Production.INFO: ==24887== Lock acquired, processing the job... [2025-03-03 13:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:54:03] Production.INFO: ==24889== Lock acquired, processing the job... [2025-03-03 13:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:54:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:03] Production.INFO: ==24896== Lock acquired, processing the job... [2025-03-03 13:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:54:03] Production.ERROR: done [2025-03-03 13:54:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:54:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: count ==13 [2025-03-03 13:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:54:04] Production.INFO: count ==21 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598902') start [2025-03-03 13:54:04] Production.ERROR: done [2025-03-03 13:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598902') end [2025-03-03 13:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:54:04] Production.INFO: 1 [2025-03-03 13:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:54:04] Production.INFO: ==24887== Releasing lock... [2025-03-03 13:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:54:04] Production.INFO: ==24896== Releasing lock... [2025-03-03 13:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:54:05] Production.INFO: Total Charge 0 [2025-03-03 13:54:05] Production.INFO: CreateAllLog End [2025-03-03 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:54:05 [end_date_ymd] => 2025-03-03 13:54:05 [RateCDR] => 1 ) [2025-03-03 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:54:05' and `end` < '2025-03-03 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:54:05] Production.INFO: Account Balance End. [2025-03-03 13:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:54:05] Production.INFO: ==24891== Releasing lock... [2025-03-03 13:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:54:13] Production.ERROR: CronJobId end10 [2025-03-03 13:54:13] Production.INFO: ==24889== Releasing lock... [2025-03-03 13:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:54:14] Production.INFO: call_cost start [2025-03-03 13:54:14] Production.INFO: call_cost end [2025-03-03 13:54:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:54:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:54:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:54:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:54:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:54:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:54:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:54:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:54:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:54:15] Production.INFO: ==24885== Releasing lock... [2025-03-03 13:54:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:54:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:54:18] Production.INFO: count ==6609 [2025-03-03 13:54:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:54:05 - End Time 2025-03-03 13:54:05 [2025-03-03 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598904', 'tblTempUsageDetail_20' ) start [2025-03-03 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598904', 'tblTempUsageDetail_20' ) end [2025-03-03 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598904', 'tblTempVendorCDR_20' ) start [2025-03-03 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598904', 'tblTempVendorCDR_20' ) end [2025-03-03 13:54:22] Production.INFO: ProcessCDR(1,14598904,1,1,2) [2025-03-03 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598904', 'tblTempUsageDetail_20' ) start [2025-03-03 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598904', 'tblTempUsageDetail_20' ) end [2025-03-03 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:54:27] Production.INFO: ==24894== Releasing lock... [2025-03-03 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:54:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:55:02] Production.INFO: ==24950== Lock acquired, processing the job... [2025-03-03 18:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:55:02] Production.INFO: neon service started [2025-03-03 18:55:02] Production.INFO: neon service started [2025-03-03 18:55:02] Production.INFO: ==24950== Releasing lock... [2025-03-03 18:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:55:02] Production.INFO: ==24952== Lock acquired, processing the job... [2025-03-03 13:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:55:03] Production.INFO: ==24954== Lock acquired, processing the job... [2025-03-03 18:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:55:03] Production.INFO: ==24954== Releasing lock... [2025-03-03 18:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:55:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:55:03] Production.INFO: ==24952== Releasing lock... [2025-03-03 13:55:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:55:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:55:04] Production.INFO: ==24957== Lock acquired, processing the job... [2025-03-03 13:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:55:04] Production.INFO: ==24961== Lock acquired, processing the job... [2025-03-03 13:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:55:04] Production.INFO: ==24963== Lock acquired, processing the job... [2025-03-03 13:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:55:04] Production.INFO: Account Balance Start. [2025-03-03 13:55:04] Production.INFO: CreateAllLog Start [2025-03-03 13:55:04] Production.INFO: 117 [2025-03-03 13:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:55:04] Production.INFO: ==24959== Lock acquired, processing the job... [2025-03-03 13:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: ==24965== Lock acquired, processing the job... [2025-03-03 13:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:55:04] Production.INFO: ==24967== Lock acquired, processing the job... [2025-03-03 13:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:04] Production.INFO: ==24959== Releasing lock... [2025-03-03 13:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:55:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:55:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: count ==13 [2025-03-03 13:55:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:55:05] Production.INFO: count ==21 [2025-03-03 13:55:05] Production.ERROR: done [2025-03-03 13:55:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:55:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598908') start [2025-03-03 13:55:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598908') end [2025-03-03 13:55:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:55:05] Production.INFO: 1 [2025-03-03 13:55:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:55:05] Production.INFO: ==24967== Releasing lock... [2025-03-03 13:55:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:55:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:55:05] Production.ERROR: done [2025-03-03 13:55:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:55:05] Production.INFO: Total Charge 0 [2025-03-03 13:55:05] Production.INFO: CreateAllLog End [2025-03-03 13:55:06] Production.INFO: Account Balance End. [2025-03-03 13:55:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:55:06] Production.INFO: ==24963== Releasing lock... [2025-03-03 13:55:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:55:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:55:06 [end_date_ymd] => 2025-03-03 13:55:06 [RateCDR] => 1 ) [2025-03-03 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:55:06' and `end` < '2025-03-03 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:55:13] Production.ERROR: CronJobId end10 [2025-03-03 13:55:13] Production.INFO: ==24961== Releasing lock... [2025-03-03 13:55:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:55:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:55:15] Production.INFO: call_cost start [2025-03-03 13:55:15] Production.INFO: call_cost end [2025-03-03 13:55:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:55:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:55:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:55:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:55:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:55:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:55:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:55:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:55:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:55:16] Production.INFO: ==24957== Releasing lock... [2025-03-03 13:55:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:55:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:55:19] Production.INFO: count ==6612 [2025-03-03 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:55:06 - End Time 2025-03-03 13:55:06 [2025-03-03 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598909', 'tblTempUsageDetail_20' ) start [2025-03-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598909', 'tblTempUsageDetail_20' ) end [2025-03-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598909', 'tblTempVendorCDR_20' ) start [2025-03-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598909', 'tblTempVendorCDR_20' ) end [2025-03-03 13:55:23] Production.INFO: ProcessCDR(1,14598909,1,1,2) [2025-03-03 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598909', 'tblTempUsageDetail_20' ) start [2025-03-03 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598909', 'tblTempUsageDetail_20' ) end [2025-03-03 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:55:28] Production.INFO: ==24965== Releasing lock... [2025-03-03 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:55:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:56:01] Production.INFO: ==25023== Lock acquired, processing the job... [2025-03-03 18:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:56:01] Production.INFO: neon service started [2025-03-03 18:56:01] Production.INFO: neon service started [2025-03-03 18:56:01] Production.INFO: ==25023== Releasing lock... [2025-03-03 18:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:56:02] Production.INFO: ==25025== Lock acquired, processing the job... [2025-03-03 13:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:56:02] Production.INFO: ==25027== Lock acquired, processing the job... [2025-03-03 18:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 13:56:02] Production.INFO: ==25025== Releasing lock... [2025-03-03 13:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:56:02] Production.INFO: ==25027== Releasing lock... [2025-03-03 18:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 13:56:03] Production.INFO: ==25030== Lock acquired, processing the job... [2025-03-03 13:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:56:03] Production.INFO: ==25032== Lock acquired, processing the job... [2025-03-03 13:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:56:03] Production.INFO: ==25036== Lock acquired, processing the job... [2025-03-03 13:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:56:03] Production.INFO: ==25038== Lock acquired, processing the job... [2025-03-03 13:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:56:03] Production.INFO: ==25034== Lock acquired, processing the job... [2025-03-03 13:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:56:03] Production.INFO: ==25040== Lock acquired, processing the job... [2025-03-03 13:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:56:03] Production.INFO: Account Balance Start. [2025-03-03 13:56:03] Production.INFO: CreateAllLog Start [2025-03-03 13:56:03] Production.INFO: 117 [2025-03-03 13:56:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:03] Production.INFO: Date 2025-02-09 [2025-03-03 13:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:56:03] Production.INFO: Date 2025-02-10 [2025-03-03 13:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:56:03] Production.INFO: ==25032== Releasing lock... [2025-03-03 13:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:56:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:56:03] Production.INFO: Date 2025-02-11 [2025-03-03 13:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:03] Production.INFO: Date 2025-02-12 [2025-03-03 13:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:56:03] Production.INFO: Date 2025-02-13 [2025-03-03 13:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: count ==13 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:56:04] Production.INFO: count ==21 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598913') start [2025-03-03 13:56:04] Production.ERROR: done [2025-03-03 13:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598913') end [2025-03-03 13:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:56:04] Production.INFO: 1 [2025-03-03 13:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: ==25040== Releasing lock... [2025-03-03 13:56:04] Production.ERROR: done [2025-03-03 13:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-03-02 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Date 2025-03-03 [2025-03-03 13:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:56:04] Production.INFO: Total Charge 0 [2025-03-03 13:56:04] Production.INFO: CreateAllLog End [2025-03-03 13:56:04] Production.INFO: Account Balance End. [2025-03-03 13:56:04] Production.ERROR: CronJobId end 12 [2025-03-03 13:56:04] Production.INFO: ==25036== Releasing lock... [2025-03-03 13:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:56:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:56:05 [end_date_ymd] => 2025-03-03 13:56:05 [RateCDR] => 1 ) [2025-03-03 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:56:05' and `end` < '2025-03-03 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:56:13] Production.ERROR: CronJobId end10 [2025-03-03 13:56:13] Production.INFO: ==25034== Releasing lock... [2025-03-03 13:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:56:15] Production.INFO: call_cost start [2025-03-03 13:56:15] Production.INFO: call_cost end [2025-03-03 13:56:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:56:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:56:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:56:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:56:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:56:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:56:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:56:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:56:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:56:16] Production.INFO: ==25030== Releasing lock... [2025-03-03 13:56:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:56:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:56:18] Production.INFO: count ==6623 [2025-03-03 13:56:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:56:05 - End Time 2025-03-03 13:56:05 [2025-03-03 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598914', 'tblTempUsageDetail_20' ) start [2025-03-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598914', 'tblTempUsageDetail_20' ) end [2025-03-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598914', 'tblTempVendorCDR_20' ) start [2025-03-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598914', 'tblTempVendorCDR_20' ) end [2025-03-03 13:56:22] Production.INFO: ProcessCDR(1,14598914,1,1,2) [2025-03-03 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598914', 'tblTempUsageDetail_20' ) start [2025-03-03 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598914', 'tblTempUsageDetail_20' ) end [2025-03-03 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:56:27] Production.INFO: ==25038== Releasing lock... [2025-03-03 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:56:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:57:02] Production.INFO: ==25101== Lock acquired, processing the job... [2025-03-03 18:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:57:02] Production.INFO: neon service started [2025-03-03 18:57:02] Production.INFO: neon service started [2025-03-03 18:57:02] Production.INFO: ==25101== Releasing lock... [2025-03-03 18:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:57:02] Production.INFO: ==25103== Lock acquired, processing the job... [2025-03-03 13:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:57:03] Production.INFO: ==25105== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:57:03] Production.INFO: ==25105== Releasing lock... [2025-03-03 18:57:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:57:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:57:03] Production.INFO: ==25103== Releasing lock... [2025-03-03 13:57:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:57:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 13:57:04] Production.INFO: ==25114== Lock acquired, processing the job... [2025-03-03 13:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:57:04] Production.INFO: Account Balance Start. [2025-03-03 13:57:04] Production.INFO: CreateAllLog Start [2025-03-03 13:57:04] Production.INFO: 117 [2025-03-03 13:57:04] Production.INFO: ==25118== Lock acquired, processing the job... [2025-03-03 13:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:57:04] Production.INFO: ==25108== Lock acquired, processing the job... [2025-03-03 13:57:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: ==25110== Lock acquired, processing the job... [2025-03-03 13:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:57:04] Production.INFO: count ==13 [2025-03-03 13:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:57:04] Production.INFO: count ==21 [2025-03-03 13:57:04] Production.INFO: ==25112== Lock acquired, processing the job... [2025-03-03 13:57:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598916') start [2025-03-03 13:57:04] Production.INFO: ==25116== Lock acquired, processing the job... [2025-03-03 13:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598916') end [2025-03-03 13:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:57:04] Production.INFO: 1 [2025-03-03 13:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:04] Production.INFO: ==25118== Releasing lock... [2025-03-03 13:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:57:04] Production.INFO: ==25110== Releasing lock... [2025-03-03 13:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.ERROR: done [2025-03-03 13:57:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-17 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-18 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-19 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.ERROR: done [2025-03-03 13:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:57:05] Production.INFO: Total Charge 0 [2025-03-03 13:57:05] Production.INFO: CreateAllLog End [2025-03-03 13:57:06] Production.INFO: Account Balance End. [2025-03-03 13:57:06] Production.ERROR: CronJobId end 12 [2025-03-03 13:57:06] Production.INFO: ==25114== Releasing lock... [2025-03-03 13:57:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:57:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:57:06 [end_date_ymd] => 2025-03-03 13:57:06 [RateCDR] => 1 ) [2025-03-03 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:57:06' and `end` < '2025-03-03 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:57:13] Production.ERROR: CronJobId end10 [2025-03-03 13:57:13] Production.INFO: ==25112== Releasing lock... [2025-03-03 13:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:57:15] Production.INFO: call_cost start [2025-03-03 13:57:15] Production.INFO: call_cost end [2025-03-03 13:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:57:16] Production.INFO: ==25108== Releasing lock... [2025-03-03 13:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:57:19] Production.INFO: count ==6628 [2025-03-03 13:57:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:57:06 - End Time 2025-03-03 13:57:06 [2025-03-03 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598919', 'tblTempUsageDetail_20' ) start [2025-03-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598919', 'tblTempUsageDetail_20' ) end [2025-03-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598919', 'tblTempVendorCDR_20' ) start [2025-03-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598919', 'tblTempVendorCDR_20' ) end [2025-03-03 13:57:23] Production.INFO: ProcessCDR(1,14598919,1,1,2) [2025-03-03 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598919', 'tblTempUsageDetail_20' ) start [2025-03-03 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598919', 'tblTempUsageDetail_20' ) end [2025-03-03 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:57:28] Production.INFO: ==25116== Releasing lock... [2025-03-03 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:57:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 18:58:01] Production.INFO: ==25172== Lock acquired, processing the job... [2025-03-03 18:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:58:01] Production.INFO: neon service started [2025-03-03 18:58:01] Production.INFO: neon service started [2025-03-03 18:58:01] Production.INFO: ==25172== Releasing lock... [2025-03-03 18:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:58:02] Production.INFO: ==25174== Lock acquired, processing the job... [2025-03-03 13:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:58:02] Production.INFO: ==25174== Releasing lock... [2025-03-03 13:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:58:02] Production.INFO: ==25176== Lock acquired, processing the job... [2025-03-03 18:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:58:02] Production.INFO: ==25176== Releasing lock... [2025-03-03 18:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:58:03] Production.INFO: ==25181== Lock acquired, processing the job... [2025-03-03 13:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:58:03] Production.INFO: ==25179== Lock acquired, processing the job... [2025-03-03 13:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:58:03] Production.INFO: ==25187== Lock acquired, processing the job... [2025-03-03 13:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:58:03] Production.INFO: ==25183== Lock acquired, processing the job... [2025-03-03 13:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:58:03] Production.INFO: ==25185== Lock acquired, processing the job... [2025-03-03 13:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:58:03] Production.INFO: ==25189== Lock acquired, processing the job... [2025-03-03 13:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:58:03] Production.INFO: ==25181== Releasing lock... [2025-03-03 13:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:58:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:58:03] Production.INFO: Account Balance Start. [2025-03-03 13:58:03] Production.INFO: CreateAllLog Start [2025-03-03 13:58:03] Production.INFO: 117 [2025-03-03 13:58:03] Production.INFO: Date 2025-02-08 [2025-03-03 13:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: count ==13 [2025-03-03 13:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:58:04] Production.INFO: count ==21 [2025-03-03 13:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598922') start [2025-03-03 13:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598922') end [2025-03-03 13:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:58:04] Production.INFO: 1 [2025-03-03 13:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:58:04] Production.ERROR: done [2025-03-03 13:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: ==25189== Releasing lock... [2025-03-03 13:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:58:04] Production.ERROR: done [2025-03-03 13:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-27 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-02-28 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:04] Production.INFO: Date 2025-03-01 [2025-03-03 13:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:58:05] Production.INFO: Total Charge 0 [2025-03-03 13:58:05] Production.INFO: CreateAllLog End [2025-03-03 13:58:05] Production.INFO: Account Balance End. [2025-03-03 13:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:58:05] Production.INFO: ==25185== Releasing lock... [2025-03-03 13:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:58:05 [end_date_ymd] => 2025-03-03 13:58:05 [RateCDR] => 1 ) [2025-03-03 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 10:58:05' and `end` < '2025-03-03 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 13:58:13] Production.ERROR: CronJobId end10 [2025-03-03 13:58:13] Production.INFO: ==25183== Releasing lock... [2025-03-03 13:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:58:15] Production.INFO: call_cost start [2025-03-03 13:58:15] Production.INFO: call_cost end [2025-03-03 13:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:58:16] Production.INFO: ==25179== Releasing lock... [2025-03-03 13:58:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:58:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:58:19] Production.INFO: count ==6626 [2025-03-03 13:58:23] Production.ERROR: pbx CDR StartTime 2025-03-03 10:58:05 - End Time 2025-03-03 13:58:05 [2025-03-03 13:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598924', 'tblTempUsageDetail_20' ) start [2025-03-03 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598924', 'tblTempUsageDetail_20' ) end [2025-03-03 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598924', 'tblTempVendorCDR_20' ) start [2025-03-03 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598924', 'tblTempVendorCDR_20' ) end [2025-03-03 13:58:23] Production.INFO: ProcessCDR(1,14598924,1,1,2) [2025-03-03 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598924', 'tblTempUsageDetail_20' ) start [2025-03-03 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598924', 'tblTempUsageDetail_20' ) end [2025-03-03 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:58:29] Production.INFO: ==25187== Releasing lock... [2025-03-03 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:58:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 18:59:02] Production.INFO: ==25243== Lock acquired, processing the job... [2025-03-03 18:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 18:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 18:59:02] Production.INFO: neon service started [2025-03-03 18:59:02] Production.INFO: neon service started [2025-03-03 18:59:02] Production.INFO: ==25243== Releasing lock... [2025-03-03 18:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 18:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 13:59:02] Production.INFO: ==25245== Lock acquired, processing the job... [2025-03-03 13:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 13:59:03] Production.INFO: ==25245== Releasing lock... [2025-03-03 13:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 13:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:59:03] Production.INFO: ==25247== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:59:03] Production.INFO: ==25247== Releasing lock... [2025-03-03 18:59:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 18:59:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 13:59:03] Production.INFO: ==25250== Lock acquired, processing the job... [2025-03-03 13:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 13:59:03] Production.INFO: ==25256== Lock acquired, processing the job... [2025-03-03 13:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 13:59:04] Production.INFO: ==25260== Lock acquired, processing the job... [2025-03-03 13:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 13:59:04] Production.INFO: ==25252== Lock acquired, processing the job... [2025-03-03 13:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 13:59:04] Production.INFO: Account Balance Start. [2025-03-03 13:59:04] Production.INFO: CreateAllLog Start [2025-03-03 13:59:04] Production.INFO: 117 [2025-03-03 13:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 13:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 13:59:04] Production.INFO: ==25254== Lock acquired, processing the job... [2025-03-03 13:59:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 13:59:04] Production.INFO: count ==13 [2025-03-03 13:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 13:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 13:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 13:59:04] Production.INFO: ==25258== Lock acquired, processing the job... [2025-03-03 13:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 13:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: count ==21 [2025-03-03 13:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598927') start [2025-03-03 13:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 13:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598927') end [2025-03-03 13:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 13:59:04] Production.INFO: 1 [2025-03-03 13:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 13:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: ==25260== Releasing lock... [2025-03-03 13:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 13:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 13:59:04] Production.INFO: ==25252== Releasing lock... [2025-03-03 13:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 13:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 13:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.ERROR: done [2025-03-03 13:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.ERROR: done [2025-03-03 13:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 13:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 13:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 13:59:05] Production.INFO: Total Charge 0 [2025-03-03 13:59:05] Production.INFO: CreateAllLog End [2025-03-03 13:59:05] Production.INFO: Account Balance End. [2025-03-03 13:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 13:59:05] Production.INFO: ==25256== Releasing lock... [2025-03-03 13:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 13:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 10:59:05 [end_date_ymd] => 2025-03-03 13:59:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 10:59:05' and `end` < '2025-03-03 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-03-03 13:59:14] Production.ERROR: CronJobId end10 [2025-03-03 13:59:14] Production.INFO: ==25254== Releasing lock... [2025-03-03 13:59:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 13:59:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 13:59:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 13:59:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 13:59:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 13:59:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 13:59:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 13:59:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 13:59:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 13:59:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 13:59:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 13:59:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 13:59:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 13:59:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 13:59:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 13:59:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 13:59:15] Production.INFO: call_cost start [2025-03-03 13:59:15] Production.INFO: call_cost end [2025-03-03 13:59:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 13:59:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 13:59:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 13:59:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 13:59:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 13:59:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 13:59:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 13:59:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 13:59:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 13:59:16] Production.INFO: ==25250== Releasing lock... [2025-03-03 13:59:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 13:59:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 13:59:19] Production.INFO: count ==6663 [2025-03-03 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-03 10:59:05 - End Time 2025-03-03 13:59:05 [2025-03-03 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598929', 'tblTempUsageDetail_20' ) start [2025-03-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598929', 'tblTempUsageDetail_20' ) end [2025-03-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598929', 'tblTempVendorCDR_20' ) start [2025-03-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598929', 'tblTempVendorCDR_20' ) end [2025-03-03 13:59:22] Production.INFO: ProcessCDR(1,14598929,1,1,2) [2025-03-03 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598929', 'tblTempUsageDetail_20' ) start [2025-03-03 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598929', 'tblTempUsageDetail_20' ) end [2025-03-03 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 13:59:27] Production.INFO: ==25258== Releasing lock... [2025-03-03 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 13:59:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 19:00:01] Production.INFO: ==25360== Lock acquired, processing the job... [2025-03-03 19:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:00:01] Production.INFO: neon service started [2025-03-03 19:00:01] Production.INFO: neon service started [2025-03-03 19:00:01] Production.INFO: ==25360== Releasing lock... [2025-03-03 19:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:00:02] Production.INFO: ==25362== Lock acquired, processing the job... [2025-03-03 14:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:00:02] Production.INFO: ==25364== Lock acquired, processing the job... [2025-03-03 19:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:00:02] Production.INFO: ==25362== Releasing lock... [2025-03-03 14:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:00:02] Production.INFO: ==25364== Releasing lock... [2025-03-03 19:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:00:03] Production.INFO: ==25367== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 14:00:03] Production.INFO: ==25369== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 14:00:03] Production.INFO: ==25373== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 14:00:03] Production.INFO: ==25367== Releasing lock... [2025-03-03 14:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 14:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:00:03] Production.INFO: ==25371== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:00:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:00:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:00:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:00:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:00:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:00:03] Production.INFO: ==25377== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:00:03] Production.INFO: ==25375== Lock acquired, processing the job... [2025-03-03 14:00:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:00:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:00:04] Production.INFO: ==25379== Lock acquired, processing the job... [2025-03-03 14:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 14:00:04] Production.INFO: Account Balance Start. [2025-03-03 14:00:04] Production.INFO: CreateAllLog Start [2025-03-03 14:00:04] Production.INFO: 117 [2025-03-03 14:00:04] Production.INFO: ==25381== Lock acquired, processing the job... [2025-03-03 14:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: count ==13 [2025-03-03 14:00:04] Production.ERROR: done [2025-03-03 14:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:00:04] Production.INFO: count ==21 [2025-03-03 14:00:04] Production.INFO: ==25371== Releasing lock... [2025-03-03 14:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598933') start [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.ERROR: done [2025-03-03 14:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598933') end [2025-03-03 14:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:00:04] Production.INFO: 1 [2025-03-03 14:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:00:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: ==25381== Releasing lock... [2025-03-03 14:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:00:04] Production.ERROR: done [2025-03-03 14:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 14:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598935', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 14:00:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:00:05] Production.INFO: Total Charge 0 [2025-03-03 14:00:05] Production.INFO: CreateAllLog End [2025-03-03 14:00:05] Production.INFO: Account Balance End. [2025-03-03 14:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:00:05] Production.INFO: ==25375== Releasing lock... [2025-03-03 14:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:00:06 [end_date_ymd] => 2025-03-03 14:00:06 [RateCDR] => 1 ) [2025-03-03 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:00:06' and `end` < '2025-03-03 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:00:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598935', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 14:00:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 14:00:08] Production.INFO: ProcessCDR(1,14598935,1,1,2) [2025-03-03 14:00:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598935,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:00:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598935,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:00:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:00:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:00:08] Production.INFO: ==25379== Releasing lock... [2025-03-03 14:00:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 14:00:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:00:14] Production.ERROR: CronJobId end10 [2025-03-03 14:00:14] Production.INFO: ==25373== Releasing lock... [2025-03-03 14:00:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:00:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:00:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:00:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:00:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:00:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:00:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:00:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:00:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:00:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:00:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:00:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:00:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:00:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:00:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:00:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:00:16] Production.INFO: call_cost start [2025-03-03 14:00:16] Production.INFO: call_cost end [2025-03-03 14:00:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:00:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:00:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:00:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:00:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:00:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:00:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:00:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:00:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:00:17] Production.INFO: ==25369== Releasing lock... [2025-03-03 14:00:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:00:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:00:19] Production.INFO: count ==6648 [2025-03-03 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:00:06 - End Time 2025-03-03 14:00:06 [2025-03-03 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598934', 'tblTempUsageDetail_20' ) start [2025-03-03 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598934', 'tblTempUsageDetail_20' ) end [2025-03-03 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598934', 'tblTempVendorCDR_20' ) start [2025-03-03 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598934', 'tblTempVendorCDR_20' ) end [2025-03-03 14:00:22] Production.INFO: ProcessCDR(1,14598934,1,1,2) [2025-03-03 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598934', 'tblTempUsageDetail_20' ) start [2025-03-03 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598934', 'tblTempUsageDetail_20' ) end [2025-03-03 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:00:27] Production.INFO: ==25377== Releasing lock... [2025-03-03 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:00:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:01:02] Production.INFO: ==25438== Lock acquired, processing the job... [2025-03-03 19:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:01:02] Production.INFO: neon service started [2025-03-03 19:01:02] Production.INFO: neon service started [2025-03-03 19:01:02] Production.INFO: ==25438== Releasing lock... [2025-03-03 19:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:01:02] Production.INFO: ==25450== Lock acquired, processing the job... [2025-03-03 14:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:01:02] Production.INFO: ==25452== Lock acquired, processing the job... [2025-03-03 19:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:01:02] Production.INFO: ==25452== Releasing lock... [2025-03-03 19:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:01:03] Production.INFO: ==25450== Releasing lock... [2025-03-03 14:01:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:01:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:01:04] Production.INFO: ==25461== Lock acquired, processing the job... [2025-03-03 14:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:01:04] Production.INFO: ==25457== Lock acquired, processing the job... [2025-03-03 14:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:01:04] Production.INFO: Account Balance Start. [2025-03-03 14:01:04] Production.INFO: CreateAllLog Start [2025-03-03 14:01:04] Production.INFO: 117 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:01:04] Production.INFO: ==25455== Lock acquired, processing the job... [2025-03-03 14:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: ==25459== Lock acquired, processing the job... [2025-03-03 14:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:01:04] Production.INFO: ==25457== Releasing lock... [2025-03-03 14:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:01:04] Production.INFO: ==25463== Lock acquired, processing the job... [2025-03-03 14:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:01:04] Production.INFO: ==25465== Lock acquired, processing the job... [2025-03-03 14:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:01:04] Production.INFO: count ==13 [2025-03-03 14:01:04] Production.ERROR: done [2025-03-03 14:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:01:04] Production.INFO: count ==21 [2025-03-03 14:01:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:01:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598939') start [2025-03-03 14:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.ERROR: PBX CALL prc_importPBXExtension('14598939') end [2025-03-03 14:01:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:01:05] Production.INFO: 1 [2025-03-03 14:01:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:01:05] Production.ERROR: done [2025-03-03 14:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: ==25465== Releasing lock... [2025-03-03 14:01:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:01:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:01:05] Production.INFO: Total Charge 0 [2025-03-03 14:01:05] Production.INFO: CreateAllLog End [2025-03-03 14:01:05] Production.INFO: Account Balance End. [2025-03-03 14:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:01:05] Production.INFO: ==25461== Releasing lock... [2025-03-03 14:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:01:06 [end_date_ymd] => 2025-03-03 14:01:06 [RateCDR] => 1 ) [2025-03-03 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:01:06' and `end` < '2025-03-03 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:01:13] Production.ERROR: CronJobId end10 [2025-03-03 14:01:13] Production.INFO: ==25459== Releasing lock... [2025-03-03 14:01:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:01:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:01:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:01:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:01:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:01:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:01:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:01:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:01:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:01:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:01:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:01:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:01:16] Production.INFO: call_cost start [2025-03-03 14:01:16] Production.INFO: call_cost end [2025-03-03 14:01:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:01:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:01:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:01:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:01:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:01:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:01:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:01:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:01:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:01:17] Production.INFO: ==25455== Releasing lock... [2025-03-03 14:01:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:01:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:01:19] Production.INFO: count ==6615 [2025-03-03 14:01:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:01:06 - End Time 2025-03-03 14:01:06 [2025-03-03 14:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598940', 'tblTempUsageDetail_20' ) start [2025-03-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598940', 'tblTempUsageDetail_20' ) end [2025-03-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598940', 'tblTempVendorCDR_20' ) start [2025-03-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598940', 'tblTempVendorCDR_20' ) end [2025-03-03 14:01:23] Production.INFO: ProcessCDR(1,14598940,1,1,2) [2025-03-03 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598940', 'tblTempUsageDetail_20' ) start [2025-03-03 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598940', 'tblTempUsageDetail_20' ) end [2025-03-03 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:01:28] Production.INFO: ==25463== Releasing lock... [2025-03-03 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:01:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:02:01] Production.INFO: ==25519== Lock acquired, processing the job... [2025-03-03 19:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:02:01] Production.INFO: neon service started [2025-03-03 19:02:01] Production.INFO: neon service started [2025-03-03 19:02:01] Production.INFO: ==25519== Releasing lock... [2025-03-03 19:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:02:02] Production.INFO: ==25521== Lock acquired, processing the job... [2025-03-03 14:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:02:02] Production.INFO: ==25521== Releasing lock... [2025-03-03 14:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:02:02] Production.INFO: ==25523== Lock acquired, processing the job... [2025-03-03 19:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:02:02] Production.INFO: ==25523== Releasing lock... [2025-03-03 19:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:02:03] Production.INFO: ==25536== Lock acquired, processing the job... [2025-03-03 14:02:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:02:03] Production.INFO: ==25534== Lock acquired, processing the job... [2025-03-03 14:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:02:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:02:03] Production.INFO: ==25526== Lock acquired, processing the job... [2025-03-03 14:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:02:03] Production.INFO: count ==13 [2025-03-03 14:02:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:02:03] Production.INFO: count ==21 [2025-03-03 14:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598941') start [2025-03-03 14:02:03] Production.INFO: ==25528== Lock acquired, processing the job... [2025-03-03 14:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:02:03] Production.INFO: ==25530== Lock acquired, processing the job... [2025-03-03 14:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:02:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598941') end [2025-03-03 14:02:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:02:03] Production.INFO: 1 [2025-03-03 14:02:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:02:03] Production.INFO: ==25532== Lock acquired, processing the job... [2025-03-03 14:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:02:04] Production.INFO: ==25536== Releasing lock... [2025-03-03 14:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:02:04] Production.ERROR: done [2025-03-03 14:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:02:04] Production.INFO: Account Balance Start. [2025-03-03 14:02:04] Production.INFO: CreateAllLog Start [2025-03-03 14:02:04] Production.INFO: 117 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.ERROR: done [2025-03-03 14:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: ==25528== Releasing lock... [2025-03-03 14:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:02:05] Production.INFO: Total Charge 0 [2025-03-03 14:02:05] Production.INFO: CreateAllLog End [2025-03-03 14:02:05] Production.INFO: Account Balance End. [2025-03-03 14:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:02:05] Production.INFO: ==25532== Releasing lock... [2025-03-03 14:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:02:05 [end_date_ymd] => 2025-03-03 14:02:05 [RateCDR] => 1 ) [2025-03-03 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:02:05' and `end` < '2025-03-03 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:02:13] Production.ERROR: CronJobId end10 [2025-03-03 14:02:13] Production.INFO: ==25530== Releasing lock... [2025-03-03 14:02:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:02:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:02:15] Production.INFO: call_cost start [2025-03-03 14:02:15] Production.INFO: call_cost end [2025-03-03 14:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:02:16] Production.INFO: ==25526== Releasing lock... [2025-03-03 14:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:02:18] Production.INFO: count ==6581 [2025-03-03 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:02:05 - End Time 2025-03-03 14:02:05 [2025-03-03 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598945', 'tblTempUsageDetail_20' ) start [2025-03-03 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598945', 'tblTempUsageDetail_20' ) end [2025-03-03 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598945', 'tblTempVendorCDR_20' ) start [2025-03-03 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598945', 'tblTempVendorCDR_20' ) end [2025-03-03 14:02:22] Production.INFO: ProcessCDR(1,14598945,1,1,2) [2025-03-03 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598945', 'tblTempUsageDetail_20' ) start [2025-03-03 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598945', 'tblTempUsageDetail_20' ) end [2025-03-03 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:02:27] Production.INFO: ==25534== Releasing lock... [2025-03-03 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:02:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:03:02] Production.INFO: ==25589== Lock acquired, processing the job... [2025-03-03 19:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:03:02] Production.INFO: neon service started [2025-03-03 19:03:02] Production.INFO: neon service started [2025-03-03 19:03:02] Production.INFO: ==25589== Releasing lock... [2025-03-03 19:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:03:02] Production.INFO: ==25593== Lock acquired, processing the job... [2025-03-03 19:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:03:02] Production.INFO: ==25593== Releasing lock... [2025-03-03 19:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:03:02] Production.INFO: ==25591== Lock acquired, processing the job... [2025-03-03 14:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:03:03] Production.INFO: ==25591== Releasing lock... [2025-03-03 14:03:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:03:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:03:03] Production.INFO: ==25600== Lock acquired, processing the job... [2025-03-03 14:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:03:04] Production.INFO: ==25606== Lock acquired, processing the job... [2025-03-03 14:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:03:04] Production.INFO: count ==13 [2025-03-03 14:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:03:04] Production.INFO: count ==21 [2025-03-03 14:03:04] Production.INFO: ==25596== Lock acquired, processing the job... [2025-03-03 14:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598946') start [2025-03-03 14:03:04] Production.INFO: ==25598== Lock acquired, processing the job... [2025-03-03 14:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598946') end [2025-03-03 14:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:03:04] Production.INFO: 1 [2025-03-03 14:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:03:04] Production.INFO: ==25602== Lock acquired, processing the job... [2025-03-03 14:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:03:04] Production.INFO: ==25606== Releasing lock... [2025-03-03 14:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:03:04] Production.INFO: ==25604== Lock acquired, processing the job... [2025-03-03 14:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:03:04] Production.INFO: Account Balance Start. [2025-03-03 14:03:04] Production.INFO: CreateAllLog Start [2025-03-03 14:03:04] Production.INFO: 117 [2025-03-03 14:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:04] Production.INFO: ==25598== Releasing lock... [2025-03-03 14:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-12 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.ERROR: done [2025-03-03 14:03:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-13 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-14 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.ERROR: done [2025-03-03 14:03:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:03:05] Production.INFO: Total Charge 0 [2025-03-03 14:03:05] Production.INFO: CreateAllLog End [2025-03-03 14:03:05] Production.INFO: Account Balance End. [2025-03-03 14:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:03:05] Production.INFO: ==25602== Releasing lock... [2025-03-03 14:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:03:06 [end_date_ymd] => 2025-03-03 14:03:06 [RateCDR] => 1 ) [2025-03-03 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:03:06' and `end` < '2025-03-03 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:03:13] Production.ERROR: CronJobId end10 [2025-03-03 14:03:13] Production.INFO: ==25600== Releasing lock... [2025-03-03 14:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:03:15] Production.INFO: call_cost start [2025-03-03 14:03:15] Production.INFO: call_cost end [2025-03-03 14:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:03:16] Production.INFO: ==25596== Releasing lock... [2025-03-03 14:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:03:19] Production.INFO: count ==6590 [2025-03-03 14:03:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:03:06 - End Time 2025-03-03 14:03:06 [2025-03-03 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598950', 'tblTempUsageDetail_20' ) start [2025-03-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598950', 'tblTempUsageDetail_20' ) end [2025-03-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598950', 'tblTempVendorCDR_20' ) start [2025-03-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598950', 'tblTempVendorCDR_20' ) end [2025-03-03 14:03:23] Production.INFO: ProcessCDR(1,14598950,1,1,2) [2025-03-03 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598950', 'tblTempUsageDetail_20' ) start [2025-03-03 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598950', 'tblTempUsageDetail_20' ) end [2025-03-03 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:03:28] Production.INFO: ==25604== Releasing lock... [2025-03-03 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:03:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:04:01] Production.INFO: ==25665== Lock acquired, processing the job... [2025-03-03 19:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:04:01] Production.INFO: neon service started [2025-03-03 19:04:01] Production.INFO: neon service started [2025-03-03 19:04:01] Production.INFO: ==25665== Releasing lock... [2025-03-03 19:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:04:02] Production.INFO: ==25667== Lock acquired, processing the job... [2025-03-03 14:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:04:02] Production.INFO: ==25669== Lock acquired, processing the job... [2025-03-03 19:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:04:02] Production.INFO: ==25667== Releasing lock... [2025-03-03 14:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:04:02] Production.INFO: ==25669== Releasing lock... [2025-03-03 19:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:04:03] Production.INFO: ==25671== Lock acquired, processing the job... [2025-03-03 14:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:04:03] Production.INFO: ==25673== Lock acquired, processing the job... [2025-03-03 14:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:04:03] Production.INFO: ==25675== Lock acquired, processing the job... [2025-03-03 14:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:04:03] Production.INFO: ==25677== Lock acquired, processing the job... [2025-03-03 14:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:04:03] Production.INFO: ==25679== Lock acquired, processing the job... [2025-03-03 14:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:04:03] Production.INFO: Account Balance Start. [2025-03-03 14:04:03] Production.INFO: CreateAllLog Start [2025-03-03 14:04:03] Production.INFO: 117 [2025-03-03 14:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:04:03] Production.INFO: ==25682== Lock acquired, processing the job... [2025-03-03 14:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:03] Production.INFO: ==25673== Releasing lock... [2025-03-03 14:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:04:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:04:04] Production.ERROR: done [2025-03-03 14:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: count ==13 [2025-03-03 14:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:04:04] Production.INFO: count ==21 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598954') start [2025-03-03 14:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598954') end [2025-03-03 14:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:04:04] Production.INFO: 1 [2025-03-03 14:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:04:04] Production.ERROR: done [2025-03-03 14:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: ==25682== Releasing lock... [2025-03-03 14:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:04:05] Production.INFO: Total Charge 0 [2025-03-03 14:04:05] Production.INFO: CreateAllLog End [2025-03-03 14:04:05] Production.INFO: Account Balance End. [2025-03-03 14:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:04:05] Production.INFO: ==25677== Releasing lock... [2025-03-03 14:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:04:05 [end_date_ymd] => 2025-03-03 14:04:05 [RateCDR] => 1 ) [2025-03-03 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:04:05' and `end` < '2025-03-03 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:04:12] Production.ERROR: CronJobId end10 [2025-03-03 14:04:12] Production.INFO: ==25675== Releasing lock... [2025-03-03 14:04:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:04:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:04:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:04:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:04:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:04:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:04:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:04:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:04:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:04:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:04:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:04:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:04:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:04:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:04:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:04:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:04:14] Production.INFO: call_cost start [2025-03-03 14:04:14] Production.INFO: call_cost end [2025-03-03 14:04:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:04:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:04:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:04:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:04:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:04:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:04:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:04:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:04:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:04:15] Production.INFO: ==25671== Releasing lock... [2025-03-03 14:04:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:04:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:04:18] Production.INFO: count ==6590 [2025-03-03 14:04:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:04:05 - End Time 2025-03-03 14:04:05 [2025-03-03 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598955', 'tblTempUsageDetail_20' ) start [2025-03-03 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598955', 'tblTempUsageDetail_20' ) end [2025-03-03 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598955', 'tblTempVendorCDR_20' ) start [2025-03-03 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598955', 'tblTempVendorCDR_20' ) end [2025-03-03 14:04:22] Production.INFO: ProcessCDR(1,14598955,1,1,2) [2025-03-03 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598955', 'tblTempUsageDetail_20' ) start [2025-03-03 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598955', 'tblTempUsageDetail_20' ) end [2025-03-03 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:04:27] Production.INFO: ==25679== Releasing lock... [2025-03-03 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:04:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:05:02] Production.INFO: ==25734== Lock acquired, processing the job... [2025-03-03 19:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:05:02] Production.INFO: neon service started [2025-03-03 19:05:02] Production.INFO: neon service started [2025-03-03 19:05:02] Production.INFO: ==25734== Releasing lock... [2025-03-03 19:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:05:02] Production.INFO: ==25736== Lock acquired, processing the job... [2025-03-03 14:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:05:02] Production.INFO: ==25736== Releasing lock... [2025-03-03 14:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:05:03] Production.INFO: ==25738== Lock acquired, processing the job... [2025-03-03 19:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:05:03] Production.INFO: ==25738== Releasing lock... [2025-03-03 19:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:05:03] Production.INFO: ==25745== Lock acquired, processing the job... [2025-03-03 14:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:05:03] Production.INFO: ==25743== Lock acquired, processing the job... [2025-03-03 14:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:05:03] Production.INFO: ==25741== Lock acquired, processing the job... [2025-03-03 14:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:05:03] Production.INFO: ==25749== Lock acquired, processing the job... [2025-03-03 14:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:05:04] Production.INFO: ==25747== Lock acquired, processing the job... [2025-03-03 14:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:05:04] Production.INFO: ==25751== Lock acquired, processing the job... [2025-03-03 14:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:05:04] Production.INFO: Account Balance Start. [2025-03-03 14:05:04] Production.INFO: CreateAllLog Start [2025-03-03 14:05:04] Production.INFO: 117 [2025-03-03 14:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: ==25743== Releasing lock... [2025-03-03 14:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:05:04] Production.INFO: count ==13 [2025-03-03 14:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:05:04] Production.ERROR: done [2025-03-03 14:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:05:04] Production.INFO: count ==21 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598959') start [2025-03-03 14:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.ERROR: done [2025-03-03 14:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598959') end [2025-03-03 14:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:05:04] Production.INFO: 1 [2025-03-03 14:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: ==25751== Releasing lock... [2025-03-03 14:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:05:05] Production.INFO: Total Charge 0 [2025-03-03 14:05:05] Production.INFO: CreateAllLog End [2025-03-03 14:05:05] Production.INFO: Account Balance End. [2025-03-03 14:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:05:05] Production.INFO: ==25747== Releasing lock... [2025-03-03 14:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:05:05 [end_date_ymd] => 2025-03-03 14:05:05 [RateCDR] => 1 ) [2025-03-03 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:05:05' and `end` < '2025-03-03 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:05:13] Production.ERROR: CronJobId end10 [2025-03-03 14:05:13] Production.INFO: ==25745== Releasing lock... [2025-03-03 14:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:05:16] Production.INFO: call_cost start [2025-03-03 14:05:16] Production.INFO: call_cost end [2025-03-03 14:05:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:05:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:05:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:05:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:05:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:05:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:05:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:05:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:05:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:05:17] Production.INFO: ==25741== Releasing lock... [2025-03-03 14:05:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:05:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:05:18] Production.INFO: count ==6562 [2025-03-03 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:05:05 - End Time 2025-03-03 14:05:05 [2025-03-03 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598960', 'tblTempUsageDetail_20' ) start [2025-03-03 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598960', 'tblTempUsageDetail_20' ) end [2025-03-03 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598960', 'tblTempVendorCDR_20' ) start [2025-03-03 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598960', 'tblTempVendorCDR_20' ) end [2025-03-03 14:05:22] Production.INFO: ProcessCDR(1,14598960,1,1,2) [2025-03-03 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598960', 'tblTempUsageDetail_20' ) start [2025-03-03 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598960', 'tblTempUsageDetail_20' ) end [2025-03-03 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:05:27] Production.INFO: ==25749== Releasing lock... [2025-03-03 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:05:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:06:01] Production.INFO: ==25807== Lock acquired, processing the job... [2025-03-03 19:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:06:01] Production.INFO: neon service started [2025-03-03 19:06:01] Production.INFO: neon service started [2025-03-03 19:06:01] Production.INFO: ==25807== Releasing lock... [2025-03-03 19:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:06:02] Production.INFO: ==25809== Lock acquired, processing the job... [2025-03-03 14:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:06:02] Production.INFO: ==25811== Lock acquired, processing the job... [2025-03-03 19:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:06:02] Production.INFO: ==25811== Releasing lock... [2025-03-03 19:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:06:02] Production.INFO: ==25809== Releasing lock... [2025-03-03 14:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:06:03] Production.INFO: ==25814== Lock acquired, processing the job... [2025-03-03 14:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:06:03] Production.INFO: ==25820== Lock acquired, processing the job... [2025-03-03 14:06:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:06:03] Production.INFO: ==25816== Lock acquired, processing the job... [2025-03-03 14:06:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:06:03] Production.INFO: ==25824== Lock acquired, processing the job... [2025-03-03 14:06:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:06:03] Production.INFO: Account Balance Start. [2025-03-03 14:06:03] Production.INFO: CreateAllLog Start [2025-03-03 14:06:03] Production.INFO: 117 [2025-03-03 14:06:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:06:03] Production.INFO: ==25818== Lock acquired, processing the job... [2025-03-03 14:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:06:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:06:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:06:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:06:03] Production.INFO: ==25822== Lock acquired, processing the job... [2025-03-03 14:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:06:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:06:03] Production.INFO: count ==13 [2025-03-03 14:06:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:06:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:03] Production.INFO: count ==21 [2025-03-03 14:06:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598963') start [2025-03-03 14:06:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:06:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:06:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598963') end [2025-03-03 14:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:06:04] Production.INFO: 1 [2025-03-03 14:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: ==25824== Releasing lock... [2025-03-03 14:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:06:04] Production.INFO: ==25816== Releasing lock... [2025-03-03 14:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.ERROR: done [2025-03-03 14:06:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.ERROR: done [2025-03-03 14:06:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:06:04] Production.INFO: Total Charge 0 [2025-03-03 14:06:05] Production.INFO: CreateAllLog End [2025-03-03 14:06:05] Production.INFO: Account Balance End. [2025-03-03 14:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:06:05] Production.INFO: ==25820== Releasing lock... [2025-03-03 14:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:06:05 [end_date_ymd] => 2025-03-03 14:06:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:06:05' and `end` < '2025-03-03 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-03-03 14:06:13] Production.ERROR: CronJobId end10 [2025-03-03 14:06:13] Production.INFO: ==25818== Releasing lock... [2025-03-03 14:06:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:06:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:06:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:06:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:06:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:06:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:06:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:06:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:06:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:06:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:06:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:06:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:06:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:06:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:06:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:06:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:06:15] Production.INFO: call_cost start [2025-03-03 14:06:15] Production.INFO: call_cost end [2025-03-03 14:06:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:06:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:06:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:06:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:06:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:06:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:06:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:06:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:06:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:06:15] Production.INFO: ==25814== Releasing lock... [2025-03-03 14:06:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:06:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:06:19] Production.INFO: count ==6537 [2025-03-03 14:06:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:06:05 - End Time 2025-03-03 14:06:05 [2025-03-03 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598965', 'tblTempUsageDetail_20' ) start [2025-03-03 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598965', 'tblTempUsageDetail_20' ) end [2025-03-03 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598965', 'tblTempVendorCDR_20' ) start [2025-03-03 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598965', 'tblTempVendorCDR_20' ) end [2025-03-03 14:06:22] Production.INFO: ProcessCDR(1,14598965,1,1,2) [2025-03-03 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598965', 'tblTempUsageDetail_20' ) start [2025-03-03 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598965', 'tblTempUsageDetail_20' ) end [2025-03-03 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:06:27] Production.INFO: ==25822== Releasing lock... [2025-03-03 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:06:27] Production.INFO: 77 MB #Memory Used# [2025-03-03 19:07:02] Production.INFO: ==25888== Lock acquired, processing the job... [2025-03-03 19:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:07:02] Production.INFO: neon service started [2025-03-03 19:07:02] Production.INFO: neon service started [2025-03-03 19:07:02] Production.INFO: ==25888== Releasing lock... [2025-03-03 19:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:07:02] Production.INFO: ==25890== Lock acquired, processing the job... [2025-03-03 14:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:07:02] Production.INFO: ==25892== Lock acquired, processing the job... [2025-03-03 19:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:07:02] Production.INFO: ==25892== Releasing lock... [2025-03-03 19:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:07:02] Production.INFO: ==25890== Releasing lock... [2025-03-03 14:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:07:03] Production.INFO: ==25894== Lock acquired, processing the job... [2025-03-03 14:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:07:03] Production.INFO: ==25897== Lock acquired, processing the job... [2025-03-03 14:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:07:03] Production.INFO: ==25901== Lock acquired, processing the job... [2025-03-03 14:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:07:04] Production.INFO: Account Balance Start. [2025-03-03 14:07:04] Production.INFO: CreateAllLog Start [2025-03-03 14:07:04] Production.INFO: 117 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: ==25899== Lock acquired, processing the job... [2025-03-03 14:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: ==25905== Lock acquired, processing the job... [2025-03-03 14:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:07:04] Production.INFO: ==25903== Lock acquired, processing the job... [2025-03-03 14:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:07:04] Production.INFO: ==25897== Releasing lock... [2025-03-03 14:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:07:04] Production.INFO: count ==13 [2025-03-03 14:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:07:04] Production.INFO: count ==21 [2025-03-03 14:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598969') start [2025-03-03 14:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598969') end [2025-03-03 14:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:07:04] Production.INFO: 1 [2025-03-03 14:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:07:04] Production.INFO: ==25905== Releasing lock... [2025-03-03 14:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.ERROR: done [2025-03-03 14:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:04] Production.ERROR: done [2025-03-03 14:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:07:05] Production.INFO: Total Charge 0 [2025-03-03 14:07:05] Production.INFO: CreateAllLog End [2025-03-03 14:07:05] Production.INFO: Account Balance End. [2025-03-03 14:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:07:05] Production.INFO: ==25901== Releasing lock... [2025-03-03 14:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:07:06 [end_date_ymd] => 2025-03-03 14:07:06 [RateCDR] => 1 ) [2025-03-03 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:07:06' and `end` < '2025-03-03 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:07:13] Production.ERROR: CronJobId end10 [2025-03-03 14:07:13] Production.INFO: ==25899== Releasing lock... [2025-03-03 14:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:07:14] Production.INFO: call_cost start [2025-03-03 14:07:14] Production.INFO: call_cost end [2025-03-03 14:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:07:15] Production.INFO: ==25894== Releasing lock... [2025-03-03 14:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:07:19] Production.INFO: count ==6540 [2025-03-03 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:07:06 - End Time 2025-03-03 14:07:06 [2025-03-03 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598970', 'tblTempUsageDetail_20' ) start [2025-03-03 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598970', 'tblTempUsageDetail_20' ) end [2025-03-03 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598970', 'tblTempVendorCDR_20' ) start [2025-03-03 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598970', 'tblTempVendorCDR_20' ) end [2025-03-03 14:07:23] Production.INFO: ProcessCDR(1,14598970,1,1,2) [2025-03-03 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598970', 'tblTempUsageDetail_20' ) start [2025-03-03 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598970', 'tblTempUsageDetail_20' ) end [2025-03-03 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:07:28] Production.INFO: ==25903== Releasing lock... [2025-03-03 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:07:28] Production.INFO: 77 MB #Memory Used# [2025-03-03 19:08:01] Production.INFO: ==25964== Lock acquired, processing the job... [2025-03-03 19:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:08:01] Production.INFO: neon service started [2025-03-03 19:08:01] Production.INFO: neon service started [2025-03-03 19:08:01] Production.INFO: ==25964== Releasing lock... [2025-03-03 19:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:08:02] Production.INFO: ==25966== Lock acquired, processing the job... [2025-03-03 14:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:08:02] Production.INFO: ==25966== Releasing lock... [2025-03-03 14:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:08:02] Production.INFO: ==25968== Lock acquired, processing the job... [2025-03-03 19:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:08:02] Production.INFO: ==25968== Releasing lock... [2025-03-03 19:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:08:03] Production.INFO: ==25974== Lock acquired, processing the job... [2025-03-03 14:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:08:03] Production.INFO: ==25970== Lock acquired, processing the job... [2025-03-03 14:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:08:03] Production.INFO: ==25972== Lock acquired, processing the job... [2025-03-03 14:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:08:03] Production.INFO: ==25978== Lock acquired, processing the job... [2025-03-03 14:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:08:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:08:03] Production.INFO: ==25976== Lock acquired, processing the job... [2025-03-03 14:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:08:03] Production.INFO: ==25980== Lock acquired, processing the job... [2025-03-03 14:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:08:03] Production.INFO: Account Balance Start. [2025-03-03 14:08:03] Production.INFO: CreateAllLog Start [2025-03-03 14:08:03] Production.INFO: 117 [2025-03-03 14:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:03] Production.INFO: count ==13 [2025-03-03 14:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:08:03] Production.INFO: count ==21 [2025-03-03 14:08:03] Production.INFO: ==25972== Releasing lock... [2025-03-03 14:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:08:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598973') start [2025-03-03 14:08:03] Production.ERROR: done [2025-03-03 14:08:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:08:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.ERROR: done [2025-03-03 14:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598973') end [2025-03-03 14:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:08:04] Production.INFO: 1 [2025-03-03 14:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:08:04] Production.INFO: ==25980== Releasing lock... [2025-03-03 14:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:08:05] Production.INFO: Total Charge 0 [2025-03-03 14:08:05] Production.INFO: CreateAllLog End [2025-03-03 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:08:05 [end_date_ymd] => 2025-03-03 14:08:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:08:05' and `end` < '2025-03-03 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-03-03 14:08:05] Production.INFO: Account Balance End. [2025-03-03 14:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:08:05] Production.INFO: ==25976== Releasing lock... [2025-03-03 14:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:08:11] Production.ERROR: CronJobId end10 [2025-03-03 14:08:11] Production.INFO: ==25974== Releasing lock... [2025-03-03 14:08:11] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:08:11] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:08:14] Production.INFO: call_cost start [2025-03-03 14:08:14] Production.INFO: call_cost end [2025-03-03 14:08:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:08:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:08:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:08:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:08:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:08:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:08:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:08:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:08:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:08:15] Production.INFO: ==25970== Releasing lock... [2025-03-03 14:08:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:08:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:08:18] Production.INFO: count ==6563 [2025-03-03 14:08:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:08:05 - End Time 2025-03-03 14:08:05 [2025-03-03 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598975', 'tblTempUsageDetail_20' ) start [2025-03-03 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598975', 'tblTempUsageDetail_20' ) end [2025-03-03 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598975', 'tblTempVendorCDR_20' ) start [2025-03-03 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598975', 'tblTempVendorCDR_20' ) end [2025-03-03 14:08:22] Production.INFO: ProcessCDR(1,14598975,1,1,2) [2025-03-03 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598975', 'tblTempUsageDetail_20' ) start [2025-03-03 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598975', 'tblTempUsageDetail_20' ) end [2025-03-03 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:08:27] Production.INFO: ==25978== Releasing lock... [2025-03-03 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:08:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:09:02] Production.INFO: ==26035== Lock acquired, processing the job... [2025-03-03 19:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:09:02] Production.INFO: neon service started [2025-03-03 19:09:02] Production.INFO: neon service started [2025-03-03 19:09:02] Production.INFO: ==26035== Releasing lock... [2025-03-03 19:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:09:02] Production.INFO: ==26038== Lock acquired, processing the job... [2025-03-03 14:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:09:02] Production.INFO: ==26040== Lock acquired, processing the job... [2025-03-03 19:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:09:02] Production.INFO: ==26040== Releasing lock... [2025-03-03 19:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:09:03] Production.INFO: ==26038== Releasing lock... [2025-03-03 14:09:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:09:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:09:04] Production.INFO: ==26046== Lock acquired, processing the job... [2025-03-03 14:09:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:09:04] Production.INFO: ==26042== Lock acquired, processing the job... [2025-03-03 14:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:09:04] Production.INFO: ==26052== Lock acquired, processing the job... [2025-03-03 14:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:09:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:09:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:09:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:09:04] Production.INFO: ==26044== Lock acquired, processing the job... [2025-03-03 14:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:09:04] Production.INFO: ==26048== Lock acquired, processing the job... [2025-03-03 14:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:09:04] Production.INFO: ==26050== Lock acquired, processing the job... [2025-03-03 14:09:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:09:04] Production.INFO: count ==13 [2025-03-03 14:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:09:04] Production.INFO: count ==21 [2025-03-03 14:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598977') start [2025-03-03 14:09:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:09:04] Production.INFO: Account Balance Start. [2025-03-03 14:09:04] Production.INFO: CreateAllLog Start [2025-03-03 14:09:04] Production.INFO: 117 [2025-03-03 14:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598977') end [2025-03-03 14:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:09:04] Production.INFO: 1 [2025-03-03 14:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:04] Production.INFO: ==26052== Releasing lock... [2025-03-03 14:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:09:04] Production.INFO: ==26044== Releasing lock... [2025-03-03 14:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:04] Production.ERROR: done [2025-03-03 14:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.ERROR: done [2025-03-03 14:09:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:09:05] Production.INFO: Total Charge 0 [2025-03-03 14:09:06] Production.INFO: CreateAllLog End [2025-03-03 14:09:06] Production.INFO: Account Balance End. [2025-03-03 14:09:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:09:06] Production.INFO: ==26048== Releasing lock... [2025-03-03 14:09:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:09:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:09:06 [end_date_ymd] => 2025-03-03 14:09:06 [RateCDR] => 1 ) [2025-03-03 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:09:06' and `end` < '2025-03-03 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:09:12] Production.ERROR: CronJobId end10 [2025-03-03 14:09:12] Production.INFO: ==26046== Releasing lock... [2025-03-03 14:09:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:09:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:09:15] Production.INFO: call_cost start [2025-03-03 14:09:15] Production.INFO: call_cost end [2025-03-03 14:09:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:09:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:09:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:09:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:09:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:09:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:09:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:09:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:09:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:09:16] Production.INFO: ==26042== Releasing lock... [2025-03-03 14:09:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:09:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:09:19] Production.INFO: count ==6572 [2025-03-03 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:09:06 - End Time 2025-03-03 14:09:06 [2025-03-03 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598980', 'tblTempUsageDetail_20' ) start [2025-03-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598980', 'tblTempUsageDetail_20' ) end [2025-03-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598980', 'tblTempVendorCDR_20' ) start [2025-03-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598980', 'tblTempVendorCDR_20' ) end [2025-03-03 14:09:23] Production.INFO: ProcessCDR(1,14598980,1,1,2) [2025-03-03 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598980', 'tblTempUsageDetail_20' ) start [2025-03-03 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598980', 'tblTempUsageDetail_20' ) end [2025-03-03 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:09:28] Production.INFO: ==26050== Releasing lock... [2025-03-03 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:09:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:10:01] Production.INFO: ==26110== Lock acquired, processing the job... [2025-03-03 19:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:10:01] Production.INFO: neon service started [2025-03-03 19:10:01] Production.INFO: neon service started [2025-03-03 19:10:01] Production.INFO: ==26110== Releasing lock... [2025-03-03 19:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:10:02] Production.INFO: ==26112== Lock acquired, processing the job... [2025-03-03 14:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:10:02] Production.INFO: ==26114== Lock acquired, processing the job... [2025-03-03 19:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:10:02] Production.INFO: ==26114== Releasing lock... [2025-03-03 19:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:10:02] Production.INFO: ==26112== Releasing lock... [2025-03-03 14:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:10:03] Production.INFO: ==26121== Lock acquired, processing the job... [2025-03-03 14:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:10:03] Production.INFO: ==26119== Lock acquired, processing the job... [2025-03-03 14:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:10:03] Production.INFO: ==26123== Lock acquired, processing the job... [2025-03-03 14:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:10:04] Production.INFO: ==26131== Lock acquired, processing the job... [2025-03-03 14:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:10:04] Production.INFO: count ==13 [2025-03-03 14:10:04] Production.INFO: ==26117== Lock acquired, processing the job... [2025-03-03 14:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 14:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:10:04] Production.INFO: count ==21 [2025-03-03 14:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598983') start [2025-03-03 14:10:04] Production.INFO: ==26121== Releasing lock... [2025-03-03 14:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:10:04] Production.ERROR: CronJob PID - 26119 [2025-03-03 14:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 14:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 14:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 14:10:00 [2025-03-03 14:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:10:04] Production.ERROR: CronJob PID - 26123 [2025-03-03 14:10:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 14:10:04] Production.ERROR: CronJob ID - 10 [2025-03-03 14:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 14:10:00 [2025-03-03 14:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:10:04] Production.ERROR: CronJob PID - 26131 [2025-03-03 14:10:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 14:10:04] Production.ERROR: CronJob ID - 19 [2025-03-03 14:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 14:10:00 [2025-03-03 14:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598983') end [2025-03-03 14:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:10:04] Production.INFO: 1 [2025-03-03 14:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 14:10:04] Production.INFO: ==26117== Releasing lock... [2025-03-03 14:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 14:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:10:04] Production.INFO: ==26131== Releasing lock... [2025-03-03 14:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:10:04] Production.INFO: ==26125== Lock acquired, processing the job... [2025-03-03 14:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:10:04] Production.INFO: ==26129== Lock acquired, processing the job... [2025-03-03 14:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 14:10:04] Production.INFO: ==26127== Lock acquired, processing the job... [2025-03-03 14:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:10:04] Production.INFO: Account Balance Start. [2025-03-03 14:10:04] Production.INFO: CreateAllLog Start [2025-03-03 14:10:04] Production.INFO: 117 [2025-03-03 14:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.ERROR: done [2025-03-03 14:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.ERROR: done [2025-03-03 14:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:10:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 14:10:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598985', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 14:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.ERROR: done [2025-03-03 14:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:10:05] Production.INFO: Total Charge 0 [2025-03-03 14:10:05] Production.INFO: CreateAllLog End [2025-03-03 14:10:06] Production.INFO: Account Balance End. [2025-03-03 14:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:10:06] Production.INFO: ==26125== Releasing lock... [2025-03-03 14:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:10:06 [end_date_ymd] => 2025-03-03 14:10:06 [RateCDR] => 1 ) [2025-03-03 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:10:06' and `end` < '2025-03-03 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:10:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14598985', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 14:10:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 14:10:10] Production.INFO: ProcessCDR(1,14598985,1,1,2) [2025-03-03 14:10:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14598985,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:10:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14598985,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:10:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:10:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:10:10] Production.INFO: ==26129== Releasing lock... [2025-03-03 14:10:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 14:10:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:10:15] Production.ERROR: CronJobId end10 [2025-03-03 14:10:15] Production.INFO: ==26123== Releasing lock... [2025-03-03 14:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:10:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:10:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:10:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:10:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:10:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:10:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:10:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:10:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:10:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:10:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:10:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:10:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:10:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:10:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:10:16] Production.INFO: call_cost start [2025-03-03 14:10:16] Production.INFO: call_cost end [2025-03-03 14:10:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:10:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:10:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:10:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:10:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:10:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:10:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:10:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:10:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:10:17] Production.INFO: ==26119== Releasing lock... [2025-03-03 14:10:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:10:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:10:20] Production.INFO: count ==6606 [2025-03-03 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:10:06 - End Time 2025-03-03 14:10:06 [2025-03-03 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598986', 'tblTempUsageDetail_20' ) start [2025-03-03 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598986', 'tblTempUsageDetail_20' ) end [2025-03-03 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598986', 'tblTempVendorCDR_20' ) start [2025-03-03 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598986', 'tblTempVendorCDR_20' ) end [2025-03-03 14:10:23] Production.INFO: ProcessCDR(1,14598986,1,1,2) [2025-03-03 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598986', 'tblTempUsageDetail_20' ) start [2025-03-03 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598986', 'tblTempUsageDetail_20' ) end [2025-03-03 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:10:28] Production.INFO: ==26127== Releasing lock... [2025-03-03 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:10:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:11:02] Production.INFO: ==26186== Lock acquired, processing the job... [2025-03-03 19:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:11:02] Production.INFO: neon service started [2025-03-03 19:11:02] Production.INFO: neon service started [2025-03-03 19:11:02] Production.INFO: ==26186== Releasing lock... [2025-03-03 19:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:11:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:11:02] Production.INFO: ==26188== Lock acquired, processing the job... [2025-03-03 14:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:11:02] Production.INFO: ==26188== Releasing lock... [2025-03-03 14:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:11:02] Production.INFO: ==26190== Lock acquired, processing the job... [2025-03-03 19:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:11:02] Production.INFO: ==26190== Releasing lock... [2025-03-03 19:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:11:03] Production.INFO: ==26193== Lock acquired, processing the job... [2025-03-03 14:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:11:03] Production.INFO: ==26197== Lock acquired, processing the job... [2025-03-03 14:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:11:03] Production.INFO: ==26203== Lock acquired, processing the job... [2025-03-03 14:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:11:03] Production.INFO: ==26195== Lock acquired, processing the job... [2025-03-03 14:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:11:03] Production.INFO: ==26199== Lock acquired, processing the job... [2025-03-03 14:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:11:04] Production.INFO: ==26201== Lock acquired, processing the job... [2025-03-03 14:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:11:04] Production.INFO: Account Balance Start. [2025-03-03 14:11:04] Production.INFO: CreateAllLog Start [2025-03-03 14:11:04] Production.INFO: 117 [2025-03-03 14:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:11:04] Production.INFO: count ==13 [2025-03-03 14:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:11:04] Production.INFO: count ==21 [2025-03-03 14:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598988') start [2025-03-03 14:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598988') end [2025-03-03 14:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:11:04] Production.INFO: 1 [2025-03-03 14:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: ==26195== Releasing lock... [2025-03-03 14:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:11:04] Production.INFO: ==26203== Releasing lock... [2025-03-03 14:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.ERROR: done [2025-03-03 14:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.ERROR: done [2025-03-03 14:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:11:05] Production.INFO: Total Charge 0 [2025-03-03 14:11:05] Production.INFO: CreateAllLog End [2025-03-03 14:11:05] Production.INFO: Account Balance End. [2025-03-03 14:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:11:05] Production.INFO: ==26199== Releasing lock... [2025-03-03 14:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:11:05 [end_date_ymd] => 2025-03-03 14:11:05 [RateCDR] => 1 ) [2025-03-03 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:11:05' and `end` < '2025-03-03 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:11:13] Production.ERROR: CronJobId end10 [2025-03-03 14:11:13] Production.INFO: ==26197== Releasing lock... [2025-03-03 14:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:11:15] Production.INFO: call_cost start [2025-03-03 14:11:15] Production.INFO: call_cost end [2025-03-03 14:11:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:11:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:11:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:11:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:11:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:11:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:11:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:11:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:11:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:11:16] Production.INFO: ==26193== Releasing lock... [2025-03-03 14:11:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:11:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:11:19] Production.INFO: count ==6634 [2025-03-03 14:11:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:11:05 - End Time 2025-03-03 14:11:05 [2025-03-03 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598991', 'tblTempUsageDetail_20' ) start [2025-03-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598991', 'tblTempUsageDetail_20' ) end [2025-03-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598991', 'tblTempVendorCDR_20' ) start [2025-03-03 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598991', 'tblTempVendorCDR_20' ) end [2025-03-03 14:11:23] Production.INFO: ProcessCDR(1,14598991,1,1,2) [2025-03-03 14:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598991', 'tblTempUsageDetail_20' ) start [2025-03-03 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598991', 'tblTempUsageDetail_20' ) end [2025-03-03 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:11:28] Production.INFO: ==26201== Releasing lock... [2025-03-03 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:11:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:12:01] Production.INFO: ==26261== Lock acquired, processing the job... [2025-03-03 19:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:12:01] Production.INFO: neon service started [2025-03-03 19:12:01] Production.INFO: neon service started [2025-03-03 19:12:01] Production.INFO: ==26261== Releasing lock... [2025-03-03 19:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:12:01] Production.INFO: ==26263== Lock acquired, processing the job... [2025-03-03 14:12:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:12:02] Production.INFO: ==26263== Releasing lock... [2025-03-03 14:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:12:02] Production.INFO: ==26265== Lock acquired, processing the job... [2025-03-03 19:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:12:02] Production.INFO: ==26265== Releasing lock... [2025-03-03 19:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:12:03] Production.INFO: ==26271== Lock acquired, processing the job... [2025-03-03 14:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:12:03] Production.INFO: ==26267== Lock acquired, processing the job... [2025-03-03 14:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:12:03] Production.INFO: ==26269== Lock acquired, processing the job... [2025-03-03 14:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:12:03] Production.INFO: ==26278== Lock acquired, processing the job... [2025-03-03 14:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:12:03] Production.INFO: ==26273== Lock acquired, processing the job... [2025-03-03 14:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:12:03] Production.INFO: count ==13 [2025-03-03 14:12:03] Production.INFO: ==26275== Lock acquired, processing the job... [2025-03-03 14:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:12:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:12:03] Production.INFO: count ==21 [2025-03-03 14:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598993') start [2025-03-03 14:12:03] Production.INFO: Account Balance Start. [2025-03-03 14:12:03] Production.INFO: CreateAllLog Start [2025-03-03 14:12:03] Production.INFO: 117 [2025-03-03 14:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:12:03] Production.ERROR: PBX CALL prc_importPBXExtension('14598993') end [2025-03-03 14:12:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:12:03] Production.INFO: 1 [2025-03-03 14:12:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:03] Production.INFO: ==26278== Releasing lock... [2025-03-03 14:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:12:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:12:03] Production.INFO: ==26269== Releasing lock... [2025-03-03 14:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.ERROR: done [2025-03-03 14:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.ERROR: done [2025-03-03 14:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:12:04] Production.INFO: Total Charge 0 [2025-03-03 14:12:04] Production.INFO: CreateAllLog End [2025-03-03 14:12:05] Production.INFO: Account Balance End. [2025-03-03 14:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:12:05] Production.INFO: ==26273== Releasing lock... [2025-03-03 14:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:12:05 [end_date_ymd] => 2025-03-03 14:12:05 [RateCDR] => 1 ) [2025-03-03 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:12:05' and `end` < '2025-03-03 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:12:13] Production.ERROR: CronJobId end10 [2025-03-03 14:12:13] Production.INFO: ==26271== Releasing lock... [2025-03-03 14:12:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:12:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:12:14] Production.INFO: call_cost start [2025-03-03 14:12:14] Production.INFO: call_cost end [2025-03-03 14:12:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:12:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:12:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:12:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:12:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:12:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:12:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:12:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:12:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:12:15] Production.INFO: ==26267== Releasing lock... [2025-03-03 14:12:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:12:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:12:18] Production.INFO: count ==6674 [2025-03-03 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:12:05 - End Time 2025-03-03 14:12:05 [2025-03-03 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598996', 'tblTempUsageDetail_20' ) start [2025-03-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14598996', 'tblTempUsageDetail_20' ) end [2025-03-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598996', 'tblTempVendorCDR_20' ) start [2025-03-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14598996', 'tblTempVendorCDR_20' ) end [2025-03-03 14:12:22] Production.INFO: ProcessCDR(1,14598996,1,1,2) [2025-03-03 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14598996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14598996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14598996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14598996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598996', 'tblTempUsageDetail_20' ) start [2025-03-03 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14598996', 'tblTempUsageDetail_20' ) end [2025-03-03 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:12:27] Production.INFO: ==26275== Releasing lock... [2025-03-03 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:12:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 19:13:01] Production.INFO: ==26333== Lock acquired, processing the job... [2025-03-03 19:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:13:02] Production.INFO: neon service started [2025-03-03 19:13:02] Production.INFO: neon service started [2025-03-03 19:13:02] Production.INFO: ==26333== Releasing lock... [2025-03-03 19:13:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:13:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:13:02] Production.INFO: ==26335== Lock acquired, processing the job... [2025-03-03 14:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:13:02] Production.INFO: ==26335== Releasing lock... [2025-03-03 14:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:13:02] Production.INFO: ==26337== Lock acquired, processing the job... [2025-03-03 19:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:13:02] Production.INFO: ==26337== Releasing lock... [2025-03-03 19:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:13:03] Production.INFO: ==26346== Lock acquired, processing the job... [2025-03-03 14:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:13:03] Production.INFO: ==26350== Lock acquired, processing the job... [2025-03-03 14:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:13:03] Production.INFO: Account Balance Start. [2025-03-03 14:13:03] Production.INFO: CreateAllLog Start [2025-03-03 14:13:03] Production.INFO: 117 [2025-03-03 14:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:03] Production.INFO: ==26340== Lock acquired, processing the job... [2025-03-03 14:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:03] Production.INFO: ==26342== Lock acquired, processing the job... [2025-03-03 14:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:03] Production.INFO: ==26344== Lock acquired, processing the job... [2025-03-03 14:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:13:04] Production.INFO: ==26348== Lock acquired, processing the job... [2025-03-03 14:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:13:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:13:04] Production.INFO: count ==13 [2025-03-03 14:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:13:04] Production.INFO: count ==21 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598998') start [2025-03-03 14:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14598998') end [2025-03-03 14:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:13:04] Production.INFO: 1 [2025-03-03 14:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: ==26350== Releasing lock... [2025-03-03 14:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:13:04] Production.ERROR: done [2025-03-03 14:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: ==26342== Releasing lock... [2025-03-03 14:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.ERROR: done [2025-03-03 14:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:13:04] Production.INFO: Total Charge 0 [2025-03-03 14:13:05] Production.INFO: CreateAllLog End [2025-03-03 14:13:05] Production.INFO: Account Balance End. [2025-03-03 14:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:13:05] Production.INFO: ==26346== Releasing lock... [2025-03-03 14:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:13:05 [end_date_ymd] => 2025-03-03 14:13:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:13:05' and `end` < '2025-03-03 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-03-03 14:13:13] Production.ERROR: CronJobId end10 [2025-03-03 14:13:13] Production.INFO: ==26344== Releasing lock... [2025-03-03 14:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:13:16] Production.INFO: call_cost start [2025-03-03 14:13:16] Production.INFO: call_cost end [2025-03-03 14:13:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:13:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:13:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:13:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:13:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:13:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:13:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:13:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:13:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:13:17] Production.INFO: ==26340== Releasing lock... [2025-03-03 14:13:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:13:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:13:19] Production.INFO: count ==6695 [2025-03-03 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:13:05 - End Time 2025-03-03 14:13:05 [2025-03-03 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599001', 'tblTempUsageDetail_20' ) start [2025-03-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599001', 'tblTempUsageDetail_20' ) end [2025-03-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599001', 'tblTempVendorCDR_20' ) start [2025-03-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599001', 'tblTempVendorCDR_20' ) end [2025-03-03 14:13:22] Production.INFO: ProcessCDR(1,14599001,1,1,2) [2025-03-03 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599001', 'tblTempUsageDetail_20' ) start [2025-03-03 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599001', 'tblTempUsageDetail_20' ) end [2025-03-03 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:13:27] Production.INFO: ==26348== Releasing lock... [2025-03-03 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:13:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:14:01] Production.INFO: ==26408== Lock acquired, processing the job... [2025-03-03 19:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:14:01] Production.INFO: neon service started [2025-03-03 19:14:01] Production.INFO: neon service started [2025-03-03 19:14:01] Production.INFO: ==26408== Releasing lock... [2025-03-03 19:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:14:01] Production.INFO: ==26410== Lock acquired, processing the job... [2025-03-03 14:14:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:14:02] Production.INFO: ==26410== Releasing lock... [2025-03-03 14:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:14:02] Production.INFO: ==26412== Lock acquired, processing the job... [2025-03-03 19:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:14:02] Production.INFO: ==26412== Releasing lock... [2025-03-03 19:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:14:03] Production.INFO: ==26424== Lock acquired, processing the job... [2025-03-03 14:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:14:03] Production.INFO: ==26422== Lock acquired, processing the job... [2025-03-03 14:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:14:03] Production.INFO: count ==13 [2025-03-03 14:14:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:14:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:14:03] Production.INFO: ==26414== Lock acquired, processing the job... [2025-03-03 14:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:14:03] Production.INFO: count ==21 [2025-03-03 14:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599002') start [2025-03-03 14:14:03] Production.INFO: ==26416== Lock acquired, processing the job... [2025-03-03 14:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:14:03] Production.INFO: ==26418== Lock acquired, processing the job... [2025-03-03 14:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:14:03] Production.INFO: ==26420== Lock acquired, processing the job... [2025-03-03 14:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:14:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599002') end [2025-03-03 14:14:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:14:03] Production.INFO: 1 [2025-03-03 14:14:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:14:03] Production.INFO: Account Balance Start. [2025-03-03 14:14:03] Production.INFO: CreateAllLog Start [2025-03-03 14:14:03] Production.INFO: 117 [2025-03-03 14:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:03] Production.INFO: ==26424== Releasing lock... [2025-03-03 14:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:14:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:14:03] Production.ERROR: done [2025-03-03 14:14:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:14:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.ERROR: done [2025-03-03 14:14:04] Production.INFO: ==26416== Releasing lock... [2025-03-03 14:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:14:05] Production.INFO: Total Charge 0 [2025-03-03 14:14:05] Production.INFO: CreateAllLog End [2025-03-03 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:14:05 [end_date_ymd] => 2025-03-03 14:14:05 [RateCDR] => 1 ) [2025-03-03 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:14:05' and `end` < '2025-03-03 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:14:05] Production.INFO: Account Balance End. [2025-03-03 14:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:14:05] Production.INFO: ==26420== Releasing lock... [2025-03-03 14:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:14:13] Production.ERROR: CronJobId end10 [2025-03-03 14:14:13] Production.INFO: ==26418== Releasing lock... [2025-03-03 14:14:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:14:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:14:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:14:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:14:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:14:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:14:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:14:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:14:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:14:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:14:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:14:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:14:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:14:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:14:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:14:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:14:14] Production.INFO: call_cost start [2025-03-03 14:14:14] Production.INFO: call_cost end [2025-03-03 14:14:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:14:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:14:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:14:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:14:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:14:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:14:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:14:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:14:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:14:15] Production.INFO: ==26414== Releasing lock... [2025-03-03 14:14:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:14:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:14:19] Production.INFO: count ==6708 [2025-03-03 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:14:05 - End Time 2025-03-03 14:14:05 [2025-03-03 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599006', 'tblTempUsageDetail_20' ) start [2025-03-03 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599006', 'tblTempUsageDetail_20' ) end [2025-03-03 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599006', 'tblTempVendorCDR_20' ) start [2025-03-03 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599006', 'tblTempVendorCDR_20' ) end [2025-03-03 14:14:22] Production.INFO: ProcessCDR(1,14599006,1,1,2) [2025-03-03 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599006', 'tblTempUsageDetail_20' ) start [2025-03-03 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599006', 'tblTempUsageDetail_20' ) end [2025-03-03 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:14:27] Production.INFO: ==26422== Releasing lock... [2025-03-03 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:14:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:15:01] Production.INFO: ==26481== Lock acquired, processing the job... [2025-03-03 19:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:15:01] Production.INFO: neon service started [2025-03-03 19:15:01] Production.INFO: neon service started [2025-03-03 19:15:01] Production.INFO: ==26481== Releasing lock... [2025-03-03 19:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:15:02] Production.INFO: ==26485== Lock acquired, processing the job... [2025-03-03 19:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:15:02] Production.INFO: ==26485== Releasing lock... [2025-03-03 19:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:15:02] Production.INFO: ==26483== Lock acquired, processing the job... [2025-03-03 14:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:15:02] Production.INFO: ==26483== Releasing lock... [2025-03-03 14:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:15:03] Production.INFO: ==26489== Lock acquired, processing the job... [2025-03-03 14:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:15:03] Production.INFO: ==26491== Lock acquired, processing the job... [2025-03-03 14:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:15:03] Production.INFO: ==26498== Lock acquired, processing the job... [2025-03-03 14:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:15:03] Production.INFO: ==26489== Releasing lock... [2025-03-03 14:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:15:03] Production.INFO: count ==13 [2025-03-03 14:15:03] Production.INFO: ==26487== Lock acquired, processing the job... [2025-03-03 14:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:15:03] Production.INFO: count ==21 [2025-03-03 14:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599008') start [2025-03-03 14:15:04] Production.INFO: ==26493== Lock acquired, processing the job... [2025-03-03 14:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:15:04] Production.INFO: ==26496== Lock acquired, processing the job... [2025-03-03 14:15:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:15:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599008') end [2025-03-03 14:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:15:04] Production.INFO: 1 [2025-03-03 14:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:15:04] Production.INFO: Account Balance Start. [2025-03-03 14:15:04] Production.INFO: CreateAllLog Start [2025-03-03 14:15:04] Production.INFO: 117 [2025-03-03 14:15:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: ==26498== Releasing lock... [2025-03-03 14:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.ERROR: done [2025-03-03 14:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.ERROR: done [2025-03-03 14:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:15:05] Production.INFO: Total Charge 0 [2025-03-03 14:15:05] Production.INFO: CreateAllLog End [2025-03-03 14:15:05] Production.INFO: Account Balance End. [2025-03-03 14:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:15:05] Production.INFO: ==26493== Releasing lock... [2025-03-03 14:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:15:05 [end_date_ymd] => 2025-03-03 14:15:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:15:05' and `end` < '2025-03-03 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-03-03 14:15:13] Production.ERROR: CronJobId end10 [2025-03-03 14:15:13] Production.INFO: ==26491== Releasing lock... [2025-03-03 14:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:15:15] Production.INFO: call_cost start [2025-03-03 14:15:15] Production.INFO: call_cost end [2025-03-03 14:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:15:16] Production.INFO: ==26487== Releasing lock... [2025-03-03 14:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:15:19] Production.INFO: count ==6708 [2025-03-03 14:15:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:15:05 - End Time 2025-03-03 14:15:05 [2025-03-03 14:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599011', 'tblTempUsageDetail_20' ) start [2025-03-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599011', 'tblTempUsageDetail_20' ) end [2025-03-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599011', 'tblTempVendorCDR_20' ) start [2025-03-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599011', 'tblTempVendorCDR_20' ) end [2025-03-03 14:15:23] Production.INFO: ProcessCDR(1,14599011,1,1,2) [2025-03-03 14:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599011', 'tblTempUsageDetail_20' ) start [2025-03-03 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599011', 'tblTempUsageDetail_20' ) end [2025-03-03 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:15:28] Production.INFO: ==26496== Releasing lock... [2025-03-03 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:15:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:16:02] Production.INFO: ==26593== Lock acquired, processing the job... [2025-03-03 19:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:16:02] Production.INFO: neon service started [2025-03-03 19:16:02] Production.INFO: neon service started [2025-03-03 19:16:02] Production.INFO: ==26593== Releasing lock... [2025-03-03 19:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:16:02] Production.INFO: ==26597== Lock acquired, processing the job... [2025-03-03 19:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:16:02] Production.INFO: ==26597== Releasing lock... [2025-03-03 19:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:16:03] Production.INFO: ==26595== Lock acquired, processing the job... [2025-03-03 14:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:16:03] Production.INFO: ==26595== Releasing lock... [2025-03-03 14:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:16:04] Production.INFO: ==26599== Lock acquired, processing the job... [2025-03-03 14:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:16:04] Production.INFO: ==26603== Lock acquired, processing the job... [2025-03-03 14:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:16:04] Production.INFO: ==26605== Lock acquired, processing the job... [2025-03-03 14:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:16:04] Production.INFO: ==26601== Lock acquired, processing the job... [2025-03-03 14:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:16:04] Production.INFO: Account Balance Start. [2025-03-03 14:16:04] Production.INFO: CreateAllLog Start [2025-03-03 14:16:04] Production.INFO: 117 [2025-03-03 14:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: ==26607== Lock acquired, processing the job... [2025-03-03 14:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:16:04] Production.INFO: ==26610== Lock acquired, processing the job... [2025-03-03 14:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:04] Production.INFO: count ==13 [2025-03-03 14:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:16:04] Production.INFO: count ==21 [2025-03-03 14:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599015') start [2025-03-03 14:16:04] Production.INFO: ==26601== Releasing lock... [2025-03-03 14:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599015') end [2025-03-03 14:16:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:16:05] Production.INFO: 1 [2025-03-03 14:16:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: ==26610== Releasing lock... [2025-03-03 14:16:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:16:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.ERROR: done [2025-03-03 14:16:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.ERROR: done [2025-03-03 14:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:16:05] Production.INFO: Total Charge 0 [2025-03-03 14:16:05] Production.INFO: CreateAllLog End [2025-03-03 14:16:05] Production.INFO: Account Balance End. [2025-03-03 14:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:16:05] Production.INFO: ==26605== Releasing lock... [2025-03-03 14:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:16:06 [end_date_ymd] => 2025-03-03 14:16:06 [RateCDR] => 1 ) [2025-03-03 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:16:06' and `end` < '2025-03-03 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:16:13] Production.ERROR: CronJobId end10 [2025-03-03 14:16:13] Production.INFO: ==26603== Releasing lock... [2025-03-03 14:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:16:16] Production.INFO: call_cost start [2025-03-03 14:16:16] Production.INFO: call_cost end [2025-03-03 14:16:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:16:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:16:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:16:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:16:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:16:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:16:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:16:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:16:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:16:17] Production.INFO: ==26599== Releasing lock... [2025-03-03 14:16:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:16:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:16:19] Production.INFO: count ==6729 [2025-03-03 14:16:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:16:06 - End Time 2025-03-03 14:16:06 [2025-03-03 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599016', 'tblTempUsageDetail_20' ) start [2025-03-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599016', 'tblTempUsageDetail_20' ) end [2025-03-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599016', 'tblTempVendorCDR_20' ) start [2025-03-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599016', 'tblTempVendorCDR_20' ) end [2025-03-03 14:16:23] Production.INFO: ProcessCDR(1,14599016,1,1,2) [2025-03-03 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599016', 'tblTempUsageDetail_20' ) start [2025-03-03 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599016', 'tblTempUsageDetail_20' ) end [2025-03-03 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:16:28] Production.INFO: ==26607== Releasing lock... [2025-03-03 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:16:28] Production.INFO: 78.5 MB #Memory Used# [2025-03-03 19:17:01] Production.INFO: ==26668== Lock acquired, processing the job... [2025-03-03 19:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:17:01] Production.INFO: neon service started [2025-03-03 19:17:01] Production.INFO: neon service started [2025-03-03 19:17:01] Production.INFO: ==26668== Releasing lock... [2025-03-03 19:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:17:02] Production.INFO: ==26672== Lock acquired, processing the job... [2025-03-03 19:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:17:02] Production.INFO: ==26672== Releasing lock... [2025-03-03 19:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:17:02] Production.INFO: ==26670== Lock acquired, processing the job... [2025-03-03 14:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:17:02] Production.INFO: ==26670== Releasing lock... [2025-03-03 14:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:17:03] Production.INFO: ==26674== Lock acquired, processing the job... [2025-03-03 14:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:17:03] Production.INFO: ==26678== Lock acquired, processing the job... [2025-03-03 14:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:17:03] Production.INFO: ==26680== Lock acquired, processing the job... [2025-03-03 14:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:17:03] Production.INFO: ==26676== Lock acquired, processing the job... [2025-03-03 14:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:17:03] Production.INFO: Account Balance Start. [2025-03-03 14:17:03] Production.INFO: CreateAllLog Start [2025-03-03 14:17:03] Production.INFO: 117 [2025-03-03 14:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: ==26683== Lock acquired, processing the job... [2025-03-03 14:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: ==26685== Lock acquired, processing the job... [2025-03-03 14:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: ==26676== Releasing lock... [2025-03-03 14:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: count ==13 [2025-03-03 14:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:17:04] Production.INFO: count ==21 [2025-03-03 14:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599020') start [2025-03-03 14:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599020') end [2025-03-03 14:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:17:04] Production.INFO: 1 [2025-03-03 14:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: ==26685== Releasing lock... [2025-03-03 14:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:17:04] Production.ERROR: done [2025-03-03 14:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:04] Production.ERROR: done [2025-03-03 14:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:17:05] Production.INFO: Total Charge 0 [2025-03-03 14:17:05] Production.INFO: CreateAllLog End [2025-03-03 14:17:05] Production.INFO: Account Balance End. [2025-03-03 14:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:17:05] Production.INFO: ==26680== Releasing lock... [2025-03-03 14:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:17:06 [end_date_ymd] => 2025-03-03 14:17:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:17:06' and `end` < '2025-03-03 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-03-03 14:17:14] Production.ERROR: CronJobId end10 [2025-03-03 14:17:14] Production.INFO: ==26678== Releasing lock... [2025-03-03 14:17:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:17:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:17:14] Production.INFO: call_cost start [2025-03-03 14:17:14] Production.INFO: call_cost end [2025-03-03 14:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:17:15] Production.INFO: ==26674== Releasing lock... [2025-03-03 14:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:17:19] Production.INFO: count ==6716 [2025-03-03 14:17:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:17:06 - End Time 2025-03-03 14:17:06 [2025-03-03 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599021', 'tblTempUsageDetail_20' ) start [2025-03-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599021', 'tblTempUsageDetail_20' ) end [2025-03-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599021', 'tblTempVendorCDR_20' ) start [2025-03-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599021', 'tblTempVendorCDR_20' ) end [2025-03-03 14:17:23] Production.INFO: ProcessCDR(1,14599021,1,1,2) [2025-03-03 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599021', 'tblTempUsageDetail_20' ) start [2025-03-03 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599021', 'tblTempUsageDetail_20' ) end [2025-03-03 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:17:28] Production.INFO: ==26683== Releasing lock... [2025-03-03 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:17:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:18:02] Production.INFO: ==26742== Lock acquired, processing the job... [2025-03-03 19:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:18:02] Production.INFO: neon service started [2025-03-03 19:18:02] Production.INFO: neon service started [2025-03-03 19:18:02] Production.INFO: ==26742== Releasing lock... [2025-03-03 19:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:18:02] Production.INFO: ==26744== Lock acquired, processing the job... [2025-03-03 14:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:18:03] Production.INFO: ==26746== Lock acquired, processing the job... [2025-03-03 19:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:18:03] Production.INFO: ==26746== Releasing lock... [2025-03-03 19:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:18:03] Production.INFO: ==26744== Releasing lock... [2025-03-03 14:18:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:18:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:18:04] Production.INFO: ==26751== Lock acquired, processing the job... [2025-03-03 14:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:18:04] Production.INFO: ==26753== Lock acquired, processing the job... [2025-03-03 14:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:18:04] Production.INFO: ==26749== Lock acquired, processing the job... [2025-03-03 14:18:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:18:04] Production.INFO: ==26755== Lock acquired, processing the job... [2025-03-03 14:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:18:04] Production.INFO: ==26759== Lock acquired, processing the job... [2025-03-03 14:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:18:04] Production.INFO: ==26757== Lock acquired, processing the job... [2025-03-03 14:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:18:04] Production.INFO: Account Balance Start. [2025-03-03 14:18:04] Production.INFO: CreateAllLog Start [2025-03-03 14:18:04] Production.INFO: 117 [2025-03-03 14:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:18:04] Production.INFO: count ==13 [2025-03-03 14:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:18:04] Production.INFO: count ==21 [2025-03-03 14:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599024') start [2025-03-03 14:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:04] Production.INFO: ==26751== Releasing lock... [2025-03-03 14:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599024') end [2025-03-03 14:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:18:04] Production.INFO: 1 [2025-03-03 14:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: ==26759== Releasing lock... [2025-03-03 14:18:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:18:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:18:05] Production.ERROR: done [2025-03-03 14:18:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-10 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-11 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-12 [2025-03-03 14:18:05] Production.ERROR: done [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-13 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-14 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:18:05] Production.INFO: Total Charge 0 [2025-03-03 14:18:06] Production.INFO: CreateAllLog End [2025-03-03 14:18:06] Production.INFO: Account Balance End. [2025-03-03 14:18:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:18:06] Production.INFO: ==26755== Releasing lock... [2025-03-03 14:18:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:18:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:18:06 [end_date_ymd] => 2025-03-03 14:18:06 [RateCDR] => 1 ) [2025-03-03 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:18:06' and `end` < '2025-03-03 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:18:13] Production.ERROR: CronJobId end10 [2025-03-03 14:18:13] Production.INFO: ==26753== Releasing lock... [2025-03-03 14:18:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:18:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:18:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:18:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:18:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:18:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:18:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:18:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:18:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:18:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:18:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:18:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:18:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:18:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:18:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:18:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:18:17] Production.INFO: call_cost start [2025-03-03 14:18:17] Production.INFO: call_cost end [2025-03-03 14:18:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:18:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:18:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:18:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:18:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:18:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:18:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:18:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:18:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:18:18] Production.INFO: ==26749== Releasing lock... [2025-03-03 14:18:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:18:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:18:20] Production.INFO: count ==6708 [2025-03-03 14:18:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:18:06 - End Time 2025-03-03 14:18:06 [2025-03-03 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599026', 'tblTempUsageDetail_20' ) start [2025-03-03 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599026', 'tblTempUsageDetail_20' ) end [2025-03-03 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599026', 'tblTempVendorCDR_20' ) start [2025-03-03 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599026', 'tblTempVendorCDR_20' ) end [2025-03-03 14:18:24] Production.INFO: ProcessCDR(1,14599026,1,1,2) [2025-03-03 14:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599026', 'tblTempUsageDetail_20' ) start [2025-03-03 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599026', 'tblTempUsageDetail_20' ) end [2025-03-03 14:18:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:18:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:18:29] Production.INFO: ==26757== Releasing lock... [2025-03-03 14:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:18:29] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:19:01] Production.INFO: ==26812== Lock acquired, processing the job... [2025-03-03 19:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:19:01] Production.INFO: neon service started [2025-03-03 19:19:01] Production.INFO: neon service started [2025-03-03 19:19:01] Production.INFO: ==26812== Releasing lock... [2025-03-03 19:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:19:02] Production.INFO: ==26814== Lock acquired, processing the job... [2025-03-03 14:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:19:02] Production.INFO: ==26814== Releasing lock... [2025-03-03 14:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:19:02] Production.INFO: ==26816== Lock acquired, processing the job... [2025-03-03 19:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:19:02] Production.INFO: ==26816== Releasing lock... [2025-03-03 19:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:19:03] Production.INFO: ==26823== Lock acquired, processing the job... [2025-03-03 14:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:19:03] Production.INFO: ==26829== Lock acquired, processing the job... [2025-03-03 14:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:19:03] Production.INFO: ==26819== Lock acquired, processing the job... [2025-03-03 14:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:19:03] Production.INFO: ==26821== Lock acquired, processing the job... [2025-03-03 14:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:19:03] Production.INFO: count ==13 [2025-03-03 14:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:19:03] Production.INFO: count ==21 [2025-03-03 14:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599027') start [2025-03-03 14:19:03] Production.INFO: ==26825== Lock acquired, processing the job... [2025-03-03 14:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:19:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599027') end [2025-03-03 14:19:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:19:03] Production.INFO: 1 [2025-03-03 14:19:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:19:03] Production.INFO: ==26827== Lock acquired, processing the job... [2025-03-03 14:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:19:03] Production.INFO: ==26829== Releasing lock... [2025-03-03 14:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:19:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:19:04] Production.INFO: Account Balance Start. [2025-03-03 14:19:04] Production.INFO: CreateAllLog Start [2025-03-03 14:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:19:04] Production.INFO: 117 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:19:04] Production.INFO: ==26821== Releasing lock... [2025-03-03 14:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.ERROR: done [2025-03-03 14:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.ERROR: done [2025-03-03 14:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:19:05] Production.INFO: Total Charge 0 [2025-03-03 14:19:05] Production.INFO: CreateAllLog End [2025-03-03 14:19:05] Production.INFO: Account Balance End. [2025-03-03 14:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:19:05] Production.INFO: ==26825== Releasing lock... [2025-03-03 14:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:19:05 [end_date_ymd] => 2025-03-03 14:19:05 [RateCDR] => 1 ) [2025-03-03 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:19:05' and `end` < '2025-03-03 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:19:13] Production.ERROR: CronJobId end10 [2025-03-03 14:19:13] Production.INFO: ==26823== Releasing lock... [2025-03-03 14:19:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:19:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:19:15] Production.INFO: call_cost start [2025-03-03 14:19:15] Production.INFO: call_cost end [2025-03-03 14:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:19:16] Production.INFO: ==26819== Releasing lock... [2025-03-03 14:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:19:18] Production.INFO: count ==6678 [2025-03-03 14:19:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:19:05 - End Time 2025-03-03 14:19:05 [2025-03-03 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599031', 'tblTempUsageDetail_20' ) start [2025-03-03 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599031', 'tblTempUsageDetail_20' ) end [2025-03-03 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599031', 'tblTempVendorCDR_20' ) start [2025-03-03 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599031', 'tblTempVendorCDR_20' ) end [2025-03-03 14:19:22] Production.INFO: ProcessCDR(1,14599031,1,1,2) [2025-03-03 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599031', 'tblTempUsageDetail_20' ) start [2025-03-03 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599031', 'tblTempUsageDetail_20' ) end [2025-03-03 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:19:27] Production.INFO: ==26827== Releasing lock... [2025-03-03 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:19:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 19:20:02] Production.INFO: ==26890== Lock acquired, processing the job... [2025-03-03 19:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:20:02] Production.INFO: neon service started [2025-03-03 19:20:02] Production.INFO: neon service started [2025-03-03 19:20:02] Production.INFO: ==26890== Releasing lock... [2025-03-03 19:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:20:02] Production.INFO: ==26894== Lock acquired, processing the job... [2025-03-03 19:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:20:02] Production.INFO: ==26892== Lock acquired, processing the job... [2025-03-03 14:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:20:02] Production.INFO: ==26894== Releasing lock... [2025-03-03 19:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:20:03] Production.INFO: ==26892== Releasing lock... [2025-03-03 14:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:20:04] Production.INFO: ==26897== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 14:20:04] Production.INFO: ==26899== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:20:04] Production.INFO: ==26901== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 14:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 14:20:04] Production.INFO: ==26897== Releasing lock... [2025-03-03 14:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 14:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:20:04] Production.INFO: ==26905== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:20:04] Production.INFO: ==26907== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:20:04] Production.INFO: ==26903== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:20:04] Production.INFO: Account Balance Start. [2025-03-03 14:20:04] Production.INFO: CreateAllLog Start [2025-03-03 14:20:04] Production.INFO: 117 [2025-03-03 14:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:20:04] Production.INFO: ==26909== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 14:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:20:04] Production.INFO: ==26911== Lock acquired, processing the job... [2025-03-03 14:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:04] Production.ERROR: done [2025-03-03 14:20:04] Production.INFO: ==26901== Releasing lock... [2025-03-03 14:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:20:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:20:05] Production.INFO: Date 2025-02-14 [2025-03-03 14:20:05] Production.ERROR: done [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: count ==13 [2025-03-03 14:20:05] Production.ERROR: done [2025-03-03 14:20:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:20:05] Production.INFO: count ==21 [2025-03-03 14:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599035') start [2025-03-03 14:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 14:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599037', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 14:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599035') end [2025-03-03 14:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:20:05] Production.INFO: 1 [2025-03-03 14:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: ==26911== Releasing lock... [2025-03-03 14:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-02-25 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-02-26 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-02-27 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-02-28 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-03-01 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-03-02 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Date 2025-03-03 [2025-03-03 14:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:20:06] Production.INFO: Total Charge 0 [2025-03-03 14:20:06] Production.INFO: CreateAllLog End [2025-03-03 14:20:06] Production.INFO: Account Balance End. [2025-03-03 14:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:20:06] Production.INFO: ==26905== Releasing lock... [2025-03-03 14:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:20:06 [end_date_ymd] => 2025-03-03 14:20:06 [RateCDR] => 1 ) [2025-03-03 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:20:06' and `end` < '2025-03-03 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599037', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 14:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 14:20:09] Production.INFO: ProcessCDR(1,14599037,1,1,2) [2025-03-03 14:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599037,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599037,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:20:09] Production.INFO: ==26909== Releasing lock... [2025-03-03 14:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 14:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:20:16] Production.ERROR: CronJobId end10 [2025-03-03 14:20:16] Production.INFO: ==26903== Releasing lock... [2025-03-03 14:20:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:20:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:20:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:20:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:20:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:20:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:20:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:20:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:20:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:20:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:20:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:20:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:20:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:20:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:20:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:20:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:20:18] Production.INFO: call_cost start [2025-03-03 14:20:18] Production.INFO: call_cost end [2025-03-03 14:20:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:20:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:20:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:20:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:20:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:20:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:20:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:20:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:20:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:20:19] Production.INFO: ==26899== Releasing lock... [2025-03-03 14:20:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:20:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:20:19] Production.INFO: count ==6700 [2025-03-03 14:20:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:20:06 - End Time 2025-03-03 14:20:06 [2025-03-03 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599036', 'tblTempUsageDetail_20' ) start [2025-03-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599036', 'tblTempUsageDetail_20' ) end [2025-03-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599036', 'tblTempVendorCDR_20' ) start [2025-03-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599036', 'tblTempVendorCDR_20' ) end [2025-03-03 14:20:23] Production.INFO: ProcessCDR(1,14599036,1,1,2) [2025-03-03 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599036', 'tblTempUsageDetail_20' ) start [2025-03-03 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599036', 'tblTempUsageDetail_20' ) end [2025-03-03 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:20:28] Production.INFO: ==26907== Releasing lock... [2025-03-03 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:20:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:21:01] Production.INFO: ==26967== Lock acquired, processing the job... [2025-03-03 19:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:21:01] Production.INFO: neon service started [2025-03-03 19:21:01] Production.INFO: neon service started [2025-03-03 19:21:01] Production.INFO: ==26967== Releasing lock... [2025-03-03 19:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:21:02] Production.INFO: ==26971== Lock acquired, processing the job... [2025-03-03 19:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:21:02] Production.INFO: ==26971== Releasing lock... [2025-03-03 19:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:21:02] Production.INFO: ==26969== Lock acquired, processing the job... [2025-03-03 14:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:21:02] Production.INFO: ==26969== Releasing lock... [2025-03-03 14:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:21:03] Production.INFO: ==26976== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:21:03] Production.INFO: ==26984== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:21:03] Production.INFO: ==26976== Releasing lock... [2025-03-03 14:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:21:03] Production.INFO: count ==13 [2025-03-03 14:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:21:03] Production.INFO: count ==21 [2025-03-03 14:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599039') start [2025-03-03 14:21:03] Production.INFO: ==26974== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599039') end [2025-03-03 14:21:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:21:03] Production.INFO: 1 [2025-03-03 14:21:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:21:03] Production.INFO: ==26978== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:21:03] Production.INFO: ==26980== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:21:03] Production.INFO: ==26982== Lock acquired, processing the job... [2025-03-03 14:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:21:03] Production.INFO: ==26984== Releasing lock... [2025-03-03 14:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:21:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:21:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:21:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:21:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:21:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:21:03] Production.INFO: Account Balance Start. [2025-03-03 14:21:03] Production.INFO: CreateAllLog Start [2025-03-03 14:21:03] Production.INFO: 117 [2025-03-03 14:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.ERROR: done [2025-03-03 14:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.ERROR: done [2025-03-03 14:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:21:05] Production.INFO: Total Charge 0 [2025-03-03 14:21:05] Production.INFO: CreateAllLog End [2025-03-03 14:21:05] Production.INFO: Account Balance End. [2025-03-03 14:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:21:05] Production.INFO: ==26980== Releasing lock... [2025-03-03 14:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:21:06 [end_date_ymd] => 2025-03-03 14:21:06 [RateCDR] => 1 ) [2025-03-03 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:21:06' and `end` < '2025-03-03 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:21:14] Production.ERROR: CronJobId end10 [2025-03-03 14:21:14] Production.INFO: ==26978== Releasing lock... [2025-03-03 14:21:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:21:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:21:15] Production.INFO: call_cost start [2025-03-03 14:21:15] Production.INFO: call_cost end [2025-03-03 14:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:21:16] Production.INFO: ==26974== Releasing lock... [2025-03-03 14:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:21:19] Production.INFO: count ==6662 [2025-03-03 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:21:06 - End Time 2025-03-03 14:21:06 [2025-03-03 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599042', 'tblTempUsageDetail_20' ) start [2025-03-03 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599042', 'tblTempUsageDetail_20' ) end [2025-03-03 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599042', 'tblTempVendorCDR_20' ) start [2025-03-03 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599042', 'tblTempVendorCDR_20' ) end [2025-03-03 14:21:23] Production.INFO: ProcessCDR(1,14599042,1,1,2) [2025-03-03 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599042', 'tblTempUsageDetail_20' ) start [2025-03-03 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599042', 'tblTempUsageDetail_20' ) end [2025-03-03 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:21:28] Production.INFO: ==26982== Releasing lock... [2025-03-03 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:21:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 19:22:02] Production.INFO: ==27041== Lock acquired, processing the job... [2025-03-03 19:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:22:02] Production.INFO: neon service started [2025-03-03 19:22:02] Production.INFO: neon service started [2025-03-03 19:22:02] Production.INFO: ==27041== Releasing lock... [2025-03-03 19:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:22:02] Production.INFO: ==27043== Lock acquired, processing the job... [2025-03-03 14:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:22:02] Production.INFO: ==27045== Lock acquired, processing the job... [2025-03-03 19:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:22:02] Production.INFO: ==27045== Releasing lock... [2025-03-03 19:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:22:03] Production.INFO: ==27043== Releasing lock... [2025-03-03 14:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:22:04] Production.INFO: ==27052== Lock acquired, processing the job... [2025-03-03 14:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:22:04] Production.INFO: ==27056== Lock acquired, processing the job... [2025-03-03 14:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:22:04] Production.INFO: ==27048== Lock acquired, processing the job... [2025-03-03 14:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:22:04] Production.INFO: ==27050== Lock acquired, processing the job... [2025-03-03 14:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:22:04] Production.INFO: ==27054== Lock acquired, processing the job... [2025-03-03 14:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:22:04] Production.INFO: ==27058== Lock acquired, processing the job... [2025-03-03 14:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:22:04] Production.INFO: Account Balance Start. [2025-03-03 14:22:04] Production.INFO: CreateAllLog Start [2025-03-03 14:22:04] Production.INFO: 117 [2025-03-03 14:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.ERROR: done [2025-03-03 14:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:22:04] Production.INFO: count ==13 [2025-03-03 14:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:22:04] Production.INFO: count ==21 [2025-03-03 14:22:04] Production.ERROR: done [2025-03-03 14:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599046') start [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.INFO: ==27050== Releasing lock... [2025-03-03 14:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599046') end [2025-03-03 14:22:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:22:05] Production.INFO: 1 [2025-03-03 14:22:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:22:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: ==27058== Releasing lock... [2025-03-03 14:22:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:22:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:22:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:22:05] Production.INFO: Total Charge 0 [2025-03-03 14:22:05] Production.INFO: CreateAllLog End [2025-03-03 14:22:05] Production.INFO: Account Balance End. [2025-03-03 14:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:22:05] Production.INFO: ==27054== Releasing lock... [2025-03-03 14:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:22:06 [end_date_ymd] => 2025-03-03 14:22:06 [RateCDR] => 1 ) [2025-03-03 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:22:06' and `end` < '2025-03-03 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:22:15] Production.ERROR: CronJobId end10 [2025-03-03 14:22:15] Production.INFO: ==27052== Releasing lock... [2025-03-03 14:22:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:22:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:22:16] Production.INFO: call_cost start [2025-03-03 14:22:16] Production.INFO: call_cost end [2025-03-03 14:22:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:22:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:22:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:22:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:22:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:22:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:22:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:22:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:22:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:22:17] Production.INFO: ==27048== Releasing lock... [2025-03-03 14:22:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:22:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:22:19] Production.INFO: count ==6636 [2025-03-03 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:22:06 - End Time 2025-03-03 14:22:06 [2025-03-03 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599047', 'tblTempUsageDetail_20' ) start [2025-03-03 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599047', 'tblTempUsageDetail_20' ) end [2025-03-03 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599047', 'tblTempVendorCDR_20' ) start [2025-03-03 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599047', 'tblTempVendorCDR_20' ) end [2025-03-03 14:22:22] Production.INFO: ProcessCDR(1,14599047,1,1,2) [2025-03-03 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599047', 'tblTempUsageDetail_20' ) start [2025-03-03 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599047', 'tblTempUsageDetail_20' ) end [2025-03-03 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:22:27] Production.INFO: ==27056== Releasing lock... [2025-03-03 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:22:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:23:01] Production.INFO: ==27118== Lock acquired, processing the job... [2025-03-03 19:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:23:01] Production.INFO: neon service started [2025-03-03 19:23:01] Production.INFO: neon service started [2025-03-03 19:23:01] Production.INFO: ==27118== Releasing lock... [2025-03-03 19:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:23:02] Production.INFO: ==27120== Lock acquired, processing the job... [2025-03-03 14:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:23:02] Production.INFO: ==27120== Releasing lock... [2025-03-03 14:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:23:02] Production.INFO: ==27122== Lock acquired, processing the job... [2025-03-03 19:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:23:02] Production.INFO: ==27122== Releasing lock... [2025-03-03 19:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:23:03] Production.INFO: ==27135== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:23:03] Production.INFO: ==27133== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:23:03] Production.INFO: count ==13 [2025-03-03 14:23:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:23:03] Production.INFO: count ==21 [2025-03-03 14:23:03] Production.INFO: ==27129== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599048') start [2025-03-03 14:23:03] Production.INFO: ==27127== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:23:03] Production.INFO: ==27125== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:23:03] Production.INFO: ==27131== Lock acquired, processing the job... [2025-03-03 14:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599048') end [2025-03-03 14:23:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:23:03] Production.INFO: 1 [2025-03-03 14:23:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:23:03] Production.INFO: ==27135== Releasing lock... [2025-03-03 14:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:23:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:23:03] Production.ERROR: done [2025-03-03 14:23:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:23:03] Production.INFO: Account Balance Start. [2025-03-03 14:23:03] Production.INFO: CreateAllLog Start [2025-03-03 14:23:03] Production.INFO: 117 [2025-03-03 14:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.ERROR: done [2025-03-03 14:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: ==27127== Releasing lock... [2025-03-03 14:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:23:04] Production.INFO: Total Charge 0 [2025-03-03 14:23:04] Production.INFO: CreateAllLog End [2025-03-03 14:23:04] Production.INFO: Account Balance End. [2025-03-03 14:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:23:05] Production.INFO: ==27131== Releasing lock... [2025-03-03 14:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:23:05 [end_date_ymd] => 2025-03-03 14:23:05 [RateCDR] => 1 ) [2025-03-03 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:23:05' and `end` < '2025-03-03 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:23:13] Production.ERROR: CronJobId end10 [2025-03-03 14:23:13] Production.INFO: ==27129== Releasing lock... [2025-03-03 14:23:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:23:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:23:14] Production.INFO: call_cost start [2025-03-03 14:23:14] Production.INFO: call_cost end [2025-03-03 14:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:23:15] Production.INFO: ==27125== Releasing lock... [2025-03-03 14:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:23:18] Production.INFO: count ==6635 [2025-03-03 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-03 11:23:05 - End Time 2025-03-03 14:23:05 [2025-03-03 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599052', 'tblTempUsageDetail_20' ) start [2025-03-03 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599052', 'tblTempUsageDetail_20' ) end [2025-03-03 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599052', 'tblTempVendorCDR_20' ) start [2025-03-03 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599052', 'tblTempVendorCDR_20' ) end [2025-03-03 14:23:22] Production.INFO: ProcessCDR(1,14599052,1,1,2) [2025-03-03 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599052', 'tblTempUsageDetail_20' ) start [2025-03-03 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599052', 'tblTempUsageDetail_20' ) end [2025-03-03 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:23:27] Production.INFO: ==27133== Releasing lock... [2025-03-03 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:23:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:24:02] Production.INFO: ==27193== Lock acquired, processing the job... [2025-03-03 19:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:24:02] Production.INFO: neon service started [2025-03-03 19:24:02] Production.INFO: neon service started [2025-03-03 19:24:02] Production.INFO: ==27193== Releasing lock... [2025-03-03 19:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:24:02] Production.INFO: ==27195== Lock acquired, processing the job... [2025-03-03 14:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:24:02] Production.INFO: ==27195== Releasing lock... [2025-03-03 14:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:24:03] Production.INFO: ==27197== Lock acquired, processing the job... [2025-03-03 19:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:24:03] Production.INFO: ==27197== Releasing lock... [2025-03-03 19:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:24:03] Production.INFO: ==27205== Lock acquired, processing the job... [2025-03-03 14:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:24:03] Production.INFO: ==27211== Lock acquired, processing the job... [2025-03-03 14:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:24:03] Production.INFO: ==27201== Lock acquired, processing the job... [2025-03-03 14:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:24:04] Production.INFO: ==27203== Lock acquired, processing the job... [2025-03-03 14:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:24:04] Production.INFO: count ==13 [2025-03-03 14:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:24:04] Production.INFO: count ==21 [2025-03-03 14:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599053') start [2025-03-03 14:24:04] Production.INFO: ==27209== Lock acquired, processing the job... [2025-03-03 14:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599053') end [2025-03-03 14:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:24:04] Production.INFO: 1 [2025-03-03 14:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:24:04] Production.INFO: ==27207== Lock acquired, processing the job... [2025-03-03 14:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:24:04] Production.INFO: ==27211== Releasing lock... [2025-03-03 14:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:24:04] Production.INFO: Account Balance Start. [2025-03-03 14:24:04] Production.INFO: CreateAllLog Start [2025-03-03 14:24:04] Production.INFO: 117 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: ==27203== Releasing lock... [2025-03-03 14:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:24:04] Production.ERROR: done [2025-03-03 14:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.ERROR: done [2025-03-03 14:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:24:05] Production.INFO: Total Charge 0 [2025-03-03 14:24:05] Production.INFO: CreateAllLog End [2025-03-03 14:24:05] Production.INFO: Account Balance End. [2025-03-03 14:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:24:05] Production.INFO: ==27207== Releasing lock... [2025-03-03 14:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:24:05 [end_date_ymd] => 2025-03-03 14:24:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:24:05' and `end` < '2025-03-03 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-03-03 14:24:13] Production.ERROR: CronJobId end10 [2025-03-03 14:24:13] Production.INFO: ==27205== Releasing lock... [2025-03-03 14:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:24:15] Production.INFO: call_cost start [2025-03-03 14:24:15] Production.INFO: call_cost end [2025-03-03 14:24:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:24:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:24:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:24:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:24:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:24:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:24:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:24:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:24:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:24:16] Production.INFO: ==27201== Releasing lock... [2025-03-03 14:24:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:24:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:24:19] Production.INFO: count ==6646 [2025-03-03 14:24:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:24:05 - End Time 2025-03-03 14:24:05 [2025-03-03 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599057', 'tblTempUsageDetail_20' ) start [2025-03-03 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599057', 'tblTempUsageDetail_20' ) end [2025-03-03 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599057', 'tblTempVendorCDR_20' ) start [2025-03-03 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599057', 'tblTempVendorCDR_20' ) end [2025-03-03 14:24:22] Production.INFO: ProcessCDR(1,14599057,1,1,2) [2025-03-03 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599057', 'tblTempUsageDetail_20' ) start [2025-03-03 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599057', 'tblTempUsageDetail_20' ) end [2025-03-03 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:24:27] Production.INFO: ==27209== Releasing lock... [2025-03-03 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:24:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:25:01] Production.INFO: ==27267== Lock acquired, processing the job... [2025-03-03 19:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:25:01] Production.INFO: neon service started [2025-03-03 19:25:01] Production.INFO: neon service started [2025-03-03 19:25:01] Production.INFO: ==27267== Releasing lock... [2025-03-03 19:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:25:01] Production.INFO: ==27269== Lock acquired, processing the job... [2025-03-03 14:25:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:25:02] Production.INFO: ==27269== Releasing lock... [2025-03-03 14:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:25:02] Production.INFO: ==27271== Lock acquired, processing the job... [2025-03-03 19:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:25:02] Production.INFO: ==27271== Releasing lock... [2025-03-03 19:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:25:02] Production.INFO: ==27273== Lock acquired, processing the job... [2025-03-03 14:25:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:25:02] Production.INFO: ==27275== Lock acquired, processing the job... [2025-03-03 14:25:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:25:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:25:03] Production.INFO: ==27275== Releasing lock... [2025-03-03 14:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:25:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:25:03] Production.INFO: ==27277== Lock acquired, processing the job... [2025-03-03 14:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:25:03] Production.INFO: ==27279== Lock acquired, processing the job... [2025-03-03 14:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:25:03] Production.INFO: ==27281== Lock acquired, processing the job... [2025-03-03 14:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:25:03] Production.INFO: ==27284== Lock acquired, processing the job... [2025-03-03 14:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:25:03] Production.INFO: Account Balance Start. [2025-03-03 14:25:03] Production.INFO: CreateAllLog Start [2025-03-03 14:25:03] Production.INFO: 117 [2025-03-03 14:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:03] Production.INFO: count ==13 [2025-03-03 14:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:25:04] Production.INFO: count ==21 [2025-03-03 14:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599060') start [2025-03-03 14:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.ERROR: done [2025-03-03 14:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599060') end [2025-03-03 14:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:25:04] Production.INFO: 1 [2025-03-03 14:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: ==27284== Releasing lock... [2025-03-03 14:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.ERROR: done [2025-03-03 14:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:25:04] Production.INFO: Total Charge 0 [2025-03-03 14:25:04] Production.INFO: CreateAllLog End [2025-03-03 14:25:04] Production.INFO: Account Balance End. [2025-03-03 14:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:25:05] Production.INFO: ==27279== Releasing lock... [2025-03-03 14:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:25:05 [end_date_ymd] => 2025-03-03 14:25:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:25:05' and `end` < '2025-03-03 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-03-03 14:25:12] Production.ERROR: CronJobId end10 [2025-03-03 14:25:12] Production.INFO: ==27277== Releasing lock... [2025-03-03 14:25:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:25:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:25:15] Production.INFO: call_cost start [2025-03-03 14:25:15] Production.INFO: call_cost end [2025-03-03 14:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:25:16] Production.INFO: ==27273== Releasing lock... [2025-03-03 14:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:25:18] Production.INFO: count ==6627 [2025-03-03 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:25:05 - End Time 2025-03-03 14:25:05 [2025-03-03 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599062', 'tblTempUsageDetail_20' ) start [2025-03-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599062', 'tblTempUsageDetail_20' ) end [2025-03-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599062', 'tblTempVendorCDR_20' ) start [2025-03-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599062', 'tblTempVendorCDR_20' ) end [2025-03-03 14:25:22] Production.INFO: ProcessCDR(1,14599062,1,1,2) [2025-03-03 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599062', 'tblTempUsageDetail_20' ) start [2025-03-03 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599062', 'tblTempUsageDetail_20' ) end [2025-03-03 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:25:27] Production.INFO: ==27281== Releasing lock... [2025-03-03 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:25:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:26:02] Production.INFO: ==27342== Lock acquired, processing the job... [2025-03-03 19:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:26:02] Production.INFO: neon service started [2025-03-03 19:26:02] Production.INFO: neon service started [2025-03-03 19:26:02] Production.INFO: ==27342== Releasing lock... [2025-03-03 19:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:26:02] Production.INFO: ==27347== Lock acquired, processing the job... [2025-03-03 19:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:26:02] Production.INFO: ==27347== Releasing lock... [2025-03-03 19:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:26:02] Production.INFO: ==27345== Lock acquired, processing the job... [2025-03-03 14:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:26:03] Production.INFO: ==27345== Releasing lock... [2025-03-03 14:26:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:26:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:26:03] Production.INFO: ==27353== Lock acquired, processing the job... [2025-03-03 14:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:26:03] Production.INFO: ==27357== Lock acquired, processing the job... [2025-03-03 14:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:26:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:26:04] Production.INFO: ==27349== Lock acquired, processing the job... [2025-03-03 14:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:26:04] Production.INFO: ==27351== Lock acquired, processing the job... [2025-03-03 14:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:26:04] Production.INFO: ==27355== Lock acquired, processing the job... [2025-03-03 14:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:26:04] Production.INFO: Account Balance Start. [2025-03-03 14:26:04] Production.INFO: CreateAllLog Start [2025-03-03 14:26:04] Production.INFO: 117 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:26:04] Production.INFO: ==27359== Lock acquired, processing the job... [2025-03-03 14:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.ERROR: done [2025-03-03 14:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: count ==13 [2025-03-03 14:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:26:04] Production.INFO: count ==21 [2025-03-03 14:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599066') start [2025-03-03 14:26:04] Production.INFO: ==27351== Releasing lock... [2025-03-03 14:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599066') end [2025-03-03 14:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:26:04] Production.INFO: 1 [2025-03-03 14:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:26:04] Production.ERROR: done [2025-03-03 14:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: ==27359== Releasing lock... [2025-03-03 14:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:26:05] Production.INFO: Total Charge 0 [2025-03-03 14:26:05] Production.INFO: CreateAllLog End [2025-03-03 14:26:05] Production.INFO: Account Balance End. [2025-03-03 14:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:26:05] Production.INFO: ==27355== Releasing lock... [2025-03-03 14:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:26:05 [end_date_ymd] => 2025-03-03 14:26:05 [RateCDR] => 1 ) [2025-03-03 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:26:05' and `end` < '2025-03-03 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:26:13] Production.ERROR: CronJobId end10 [2025-03-03 14:26:13] Production.INFO: ==27353== Releasing lock... [2025-03-03 14:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:26:15] Production.INFO: call_cost start [2025-03-03 14:26:15] Production.INFO: call_cost end [2025-03-03 14:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:26:16] Production.INFO: ==27349== Releasing lock... [2025-03-03 14:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:26:19] Production.INFO: count ==6629 [2025-03-03 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:26:05 - End Time 2025-03-03 14:26:05 [2025-03-03 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599067', 'tblTempUsageDetail_20' ) start [2025-03-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599067', 'tblTempUsageDetail_20' ) end [2025-03-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599067', 'tblTempVendorCDR_20' ) start [2025-03-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599067', 'tblTempVendorCDR_20' ) end [2025-03-03 14:26:22] Production.INFO: ProcessCDR(1,14599067,1,1,2) [2025-03-03 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599067', 'tblTempUsageDetail_20' ) start [2025-03-03 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599067', 'tblTempUsageDetail_20' ) end [2025-03-03 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:26:28] Production.INFO: ==27357== Releasing lock... [2025-03-03 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:26:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:27:01] Production.INFO: ==27418== Lock acquired, processing the job... [2025-03-03 19:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:27:01] Production.INFO: neon service started [2025-03-03 19:27:01] Production.INFO: neon service started [2025-03-03 19:27:01] Production.INFO: ==27418== Releasing lock... [2025-03-03 19:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:27:01] Production.INFO: ==27420== Lock acquired, processing the job... [2025-03-03 14:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:27:02] Production.INFO: ==27420== Releasing lock... [2025-03-03 14:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:27:02] Production.INFO: ==27423== Lock acquired, processing the job... [2025-03-03 19:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:27:02] Production.INFO: ==27423== Releasing lock... [2025-03-03 19:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:27:03] Production.INFO: ==27431== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:27:03] Production.INFO: ==27435== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:27:03] Production.INFO: Account Balance Start. [2025-03-03 14:27:03] Production.INFO: CreateAllLog Start [2025-03-03 14:27:03] Production.INFO: 117 [2025-03-03 14:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:27:03] Production.INFO: ==27425== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:27:03] Production.INFO: ==27427== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:03] Production.INFO: count ==13 [2025-03-03 14:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:27:03] Production.INFO: count ==21 [2025-03-03 14:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599069') start [2025-03-03 14:27:03] Production.INFO: ==27429== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:27:03] Production.INFO: ==27433== Lock acquired, processing the job... [2025-03-03 14:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599069') end [2025-03-03 14:27:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:27:03] Production.INFO: 1 [2025-03-03 14:27:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:27:03] Production.INFO: ==27435== Releasing lock... [2025-03-03 14:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:27:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:03] Production.ERROR: done [2025-03-03 14:27:03] Production.INFO: ==27427== Releasing lock... [2025-03-03 14:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:27:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.ERROR: done [2025-03-03 14:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:27:05] Production.INFO: Total Charge 0 [2025-03-03 14:27:05] Production.INFO: CreateAllLog End [2025-03-03 14:27:05] Production.INFO: Account Balance End. [2025-03-03 14:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:27:05] Production.INFO: ==27431== Releasing lock... [2025-03-03 14:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:27:05 [end_date_ymd] => 2025-03-03 14:27:05 [RateCDR] => 1 ) [2025-03-03 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:27:05' and `end` < '2025-03-03 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:27:14] Production.ERROR: CronJobId end10 [2025-03-03 14:27:14] Production.INFO: ==27429== Releasing lock... [2025-03-03 14:27:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:27:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:27:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:27:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:27:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:27:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:27:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:27:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:27:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:27:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:27:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:27:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:27:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:27:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:27:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:27:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:27:15] Production.INFO: call_cost start [2025-03-03 14:27:15] Production.INFO: call_cost end [2025-03-03 14:27:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:27:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:27:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:27:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:27:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:27:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:27:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:27:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:27:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:27:16] Production.INFO: ==27425== Releasing lock... [2025-03-03 14:27:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:27:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:27:18] Production.INFO: count ==6629 [2025-03-03 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:27:05 - End Time 2025-03-03 14:27:05 [2025-03-03 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599072', 'tblTempUsageDetail_20' ) start [2025-03-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599072', 'tblTempUsageDetail_20' ) end [2025-03-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599072', 'tblTempVendorCDR_20' ) start [2025-03-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599072', 'tblTempVendorCDR_20' ) end [2025-03-03 14:27:22] Production.INFO: ProcessCDR(1,14599072,1,1,2) [2025-03-03 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599072', 'tblTempUsageDetail_20' ) start [2025-03-03 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599072', 'tblTempUsageDetail_20' ) end [2025-03-03 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:27:27] Production.INFO: ==27433== Releasing lock... [2025-03-03 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:27:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:28:01] Production.INFO: ==27491== Lock acquired, processing the job... [2025-03-03 19:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:28:01] Production.INFO: neon service started [2025-03-03 19:28:02] Production.INFO: neon service started [2025-03-03 19:28:02] Production.INFO: ==27491== Releasing lock... [2025-03-03 19:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:28:02] Production.INFO: ==27494== Lock acquired, processing the job... [2025-03-03 14:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:28:02] Production.INFO: ==27494== Releasing lock... [2025-03-03 14:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:28:02] Production.INFO: ==27497== Lock acquired, processing the job... [2025-03-03 19:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:28:02] Production.INFO: ==27497== Releasing lock... [2025-03-03 19:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:28:03] Production.INFO: ==27502== Lock acquired, processing the job... [2025-03-03 14:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:28:03] Production.INFO: ==27500== Lock acquired, processing the job... [2025-03-03 14:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:28:03] Production.INFO: ==27506== Lock acquired, processing the job... [2025-03-03 14:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:28:03] Production.INFO: Account Balance Start. [2025-03-03 14:28:03] Production.INFO: CreateAllLog Start [2025-03-03 14:28:03] Production.INFO: 117 [2025-03-03 14:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:28:03] Production.INFO: ==27502== Releasing lock... [2025-03-03 14:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:28:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:03] Production.INFO: ==27504== Lock acquired, processing the job... [2025-03-03 14:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:28:03] Production.INFO: ==27508== Lock acquired, processing the job... [2025-03-03 14:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:28:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: ==27510== Lock acquired, processing the job... [2025-03-03 14:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:28:04] Production.INFO: count ==13 [2025-03-03 14:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: count ==21 [2025-03-03 14:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599076') start [2025-03-03 14:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:28:04] Production.ERROR: done [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599076') end [2025-03-03 14:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:28:04] Production.INFO: 1 [2025-03-03 14:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: ==27510== Releasing lock... [2025-03-03 14:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:28:04] Production.ERROR: done [2025-03-03 14:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:28:05] Production.INFO: Total Charge 0 [2025-03-03 14:28:05] Production.INFO: CreateAllLog End [2025-03-03 14:28:05] Production.INFO: Account Balance End. [2025-03-03 14:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:28:05] Production.INFO: ==27506== Releasing lock... [2025-03-03 14:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:28:05 [end_date_ymd] => 2025-03-03 14:28:05 [RateCDR] => 1 ) [2025-03-03 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:28:05' and `end` < '2025-03-03 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:28:13] Production.ERROR: CronJobId end10 [2025-03-03 14:28:13] Production.INFO: ==27504== Releasing lock... [2025-03-03 14:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:28:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:28:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:28:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:28:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:28:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:28:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:28:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:28:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:28:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:28:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:28:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:28:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:28:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:28:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:28:15] Production.INFO: call_cost start [2025-03-03 14:28:15] Production.INFO: call_cost end [2025-03-03 14:28:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:28:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:28:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:28:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:28:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:28:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:28:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:28:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:28:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:28:16] Production.INFO: ==27500== Releasing lock... [2025-03-03 14:28:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:28:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:28:19] Production.INFO: count ==6622 [2025-03-03 14:28:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:28:05 - End Time 2025-03-03 14:28:05 [2025-03-03 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599077', 'tblTempUsageDetail_20' ) start [2025-03-03 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599077', 'tblTempUsageDetail_20' ) end [2025-03-03 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599077', 'tblTempVendorCDR_20' ) start [2025-03-03 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599077', 'tblTempVendorCDR_20' ) end [2025-03-03 14:28:23] Production.INFO: ProcessCDR(1,14599077,1,1,2) [2025-03-03 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599077', 'tblTempUsageDetail_20' ) start [2025-03-03 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599077', 'tblTempUsageDetail_20' ) end [2025-03-03 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:28:28] Production.INFO: ==27508== Releasing lock... [2025-03-03 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:28:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:29:01] Production.INFO: ==27566== Lock acquired, processing the job... [2025-03-03 19:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:29:01] Production.INFO: neon service started [2025-03-03 19:29:01] Production.INFO: neon service started [2025-03-03 19:29:01] Production.INFO: ==27566== Releasing lock... [2025-03-03 19:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:29:02] Production.INFO: ==27568== Lock acquired, processing the job... [2025-03-03 14:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:29:02] Production.INFO: ==27570== Lock acquired, processing the job... [2025-03-03 19:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:29:02] Production.INFO: ==27570== Releasing lock... [2025-03-03 19:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:29:02] Production.INFO: ==27568== Releasing lock... [2025-03-03 14:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:29:03] Production.INFO: ==27573== Lock acquired, processing the job... [2025-03-03 14:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:29:03] Production.INFO: ==27575== Lock acquired, processing the job... [2025-03-03 14:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:29:03] Production.INFO: ==27577== Lock acquired, processing the job... [2025-03-03 14:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:29:03] Production.INFO: ==27583== Lock acquired, processing the job... [2025-03-03 14:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:29:03] Production.INFO: ==27579== Lock acquired, processing the job... [2025-03-03 14:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:29:03] Production.INFO: ==27575== Releasing lock... [2025-03-03 14:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:29:03] Production.INFO: ==27581== Lock acquired, processing the job... [2025-03-03 14:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:29:03] Production.INFO: Account Balance Start. [2025-03-03 14:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:29:03] Production.INFO: CreateAllLog Start [2025-03-03 14:29:03] Production.INFO: 117 [2025-03-03 14:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:03] Production.INFO: count ==13 [2025-03-03 14:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:29:03] Production.INFO: count ==21 [2025-03-03 14:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599080') start [2025-03-03 14:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.ERROR: done [2025-03-03 14:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599080') end [2025-03-03 14:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:29:04] Production.INFO: 1 [2025-03-03 14:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:29:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:29:04] Production.INFO: ==27583== Releasing lock... [2025-03-03 14:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.ERROR: done [2025-03-03 14:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:29:04] Production.INFO: Total Charge 0 [2025-03-03 14:29:04] Production.INFO: CreateAllLog End [2025-03-03 14:29:05] Production.INFO: Account Balance End. [2025-03-03 14:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:29:05] Production.INFO: ==27579== Releasing lock... [2025-03-03 14:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:29:05 [end_date_ymd] => 2025-03-03 14:29:05 [RateCDR] => 1 ) [2025-03-03 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:29:05' and `end` < '2025-03-03 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:29:13] Production.ERROR: CronJobId end10 [2025-03-03 14:29:13] Production.INFO: ==27577== Releasing lock... [2025-03-03 14:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:29:14] Production.INFO: call_cost start [2025-03-03 14:29:14] Production.INFO: call_cost end [2025-03-03 14:29:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:29:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:29:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:29:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:29:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:29:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:29:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:29:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:29:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:29:15] Production.INFO: ==27573== Releasing lock... [2025-03-03 14:29:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:29:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:29:19] Production.INFO: count ==6599 [2025-03-03 14:29:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:29:05 - End Time 2025-03-03 14:29:05 [2025-03-03 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599082', 'tblTempUsageDetail_20' ) start [2025-03-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599082', 'tblTempUsageDetail_20' ) end [2025-03-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599082', 'tblTempVendorCDR_20' ) start [2025-03-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599082', 'tblTempVendorCDR_20' ) end [2025-03-03 14:29:22] Production.INFO: ProcessCDR(1,14599082,1,1,2) [2025-03-03 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599082', 'tblTempUsageDetail_20' ) start [2025-03-03 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599082', 'tblTempUsageDetail_20' ) end [2025-03-03 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:29:28] Production.INFO: ==27581== Releasing lock... [2025-03-03 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:29:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:30:01] Production.INFO: ==27640== Lock acquired, processing the job... [2025-03-03 19:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:30:01] Production.INFO: neon service started [2025-03-03 19:30:02] Production.INFO: neon service started [2025-03-03 19:30:02] Production.INFO: ==27640== Releasing lock... [2025-03-03 19:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:30:02] Production.INFO: ==27642== Lock acquired, processing the job... [2025-03-03 14:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:30:02] Production.INFO: ==27644== Lock acquired, processing the job... [2025-03-03 19:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:30:02] Production.INFO: ==27644== Releasing lock... [2025-03-03 19:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:30:03] Production.INFO: ==27642== Releasing lock... [2025-03-03 14:30:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:30:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:30:04] Production.INFO: ==27655== Lock acquired, processing the job... [2025-03-03 14:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:30:04] Production.INFO: ==27661== Lock acquired, processing the job... [2025-03-03 14:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:30:04] Production.INFO: ==27659== Lock acquired, processing the job... [2025-03-03 14:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 14:30:04] Production.INFO: Account Balance Start. [2025-03-03 14:30:04] Production.INFO: CreateAllLog Start [2025-03-03 14:30:04] Production.INFO: 117 [2025-03-03 14:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:04] Production.INFO: count ==13 [2025-03-03 14:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:30:04] Production.INFO: count ==21 [2025-03-03 14:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599084') start [2025-03-03 14:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:04] Production.INFO: ==27647== Lock acquired, processing the job... [2025-03-03 14:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 14:30:04] Production.INFO: ==27649== Lock acquired, processing the job... [2025-03-03 14:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:30:04] Production.INFO: ==27651== Lock acquired, processing the job... [2025-03-03 14:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:30:05] Production.ERROR: CronJob PID - 27655 [2025-03-03 14:30:05] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 14:30:05] Production.ERROR: CronJob ID - 12 [2025-03-03 14:30:05] Production.ERROR: CronJob Last Run Time 2025-03-03 14:30:00 [2025-03-03 14:30:05] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:30:05] Production.INFO: Date 2025-02-10 [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:30:05] Production.ERROR: CronJob PID - 27659 [2025-03-03 14:30:05] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 14:30:05] Production.ERROR: CronJob ID - 17 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.ERROR: CronJob Last Run Time 2025-03-03 14:30:00 [2025-03-03 14:30:05] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:30:05] Production.ERROR: CronJob PID - 27661 [2025-03-03 14:30:05] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 14:30:05] Production.ERROR: CronJob ID - 19 [2025-03-03 14:30:05] Production.ERROR: CronJob Last Run Time 2025-03-03 14:30:00 [2025-03-03 14:30:05] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:30:05] Production.INFO: ==27657== Lock acquired, processing the job... [2025-03-03 14:30:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:30:05] Production.INFO: ==27653== Lock acquired, processing the job... [2025-03-03 14:30:05] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:30:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599084') end [2025-03-03 14:30:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:30:05] Production.INFO: 1 [2025-03-03 14:30:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:30:05] Production.INFO: Date 2025-02-11 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-12 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 14:30:05] Production.INFO: ==27647== Releasing lock... [2025-03-03 14:30:05] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 14:30:05] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:30:05] Production.INFO: ==27661== Releasing lock... [2025-03-03 14:30:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:30:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:30:05] Production.ERROR: done [2025-03-03 14:30:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-13 [2025-03-03 14:30:05] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 14:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599085', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 14:30:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:30:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:30:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:30:05] Production.INFO: Date 2025-02-14 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.INFO: ==27651== Releasing lock... [2025-03-03 14:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.ERROR: done [2025-03-03 14:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.ERROR: done [2025-03-03 14:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-22 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-23 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-24 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-25 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-26 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-27 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-02-28 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-03-01 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 14:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 14:30:06] Production.INFO: Total Charge 0 [2025-03-03 14:30:06] Production.INFO: CreateAllLog End [2025-03-03 14:30:06] Production.INFO: Account Balance End. [2025-03-03 14:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:30:06] Production.INFO: ==27655== Releasing lock... [2025-03-03 14:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:30:07 [end_date_ymd] => 2025-03-03 14:30:07 [RateCDR] => 1 ) [2025-03-03 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:30:07' and `end` < '2025-03-03 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599085', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 14:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 14:30:09] Production.INFO: ProcessCDR(1,14599085,1,1,2) [2025-03-03 14:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599085,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599085,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:30:09] Production.INFO: ==27659== Releasing lock... [2025-03-03 14:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 14:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:30:16] Production.ERROR: CronJobId end10 [2025-03-03 14:30:16] Production.INFO: ==27653== Releasing lock... [2025-03-03 14:30:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:30:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:30:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:30:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:30:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:30:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:30:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:30:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:30:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:30:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:30:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:30:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:30:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:30:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:30:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:30:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:30:19] Production.INFO: call_cost start [2025-03-03 14:30:19] Production.INFO: call_cost end [2025-03-03 14:30:20] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:30:20] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:30:20] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:30:20] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:30:20] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:30:20] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:30:20] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:30:20] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:30:20] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:30:20] Production.INFO: ==27649== Releasing lock... [2025-03-03 14:30:20] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:30:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:30:20] Production.INFO: count ==6595 [2025-03-03 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:30:07 - End Time 2025-03-03 14:30:07 [2025-03-03 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599088', 'tblTempUsageDetail_20' ) start [2025-03-03 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599088', 'tblTempUsageDetail_20' ) end [2025-03-03 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599088', 'tblTempVendorCDR_20' ) start [2025-03-03 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599088', 'tblTempVendorCDR_20' ) end [2025-03-03 14:30:23] Production.INFO: ProcessCDR(1,14599088,1,1,2) [2025-03-03 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599088', 'tblTempUsageDetail_20' ) start [2025-03-03 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599088', 'tblTempUsageDetail_20' ) end [2025-03-03 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:30:29] Production.INFO: ==27657== Releasing lock... [2025-03-03 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:30:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:31:01] Production.INFO: ==27754== Lock acquired, processing the job... [2025-03-03 19:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:31:01] Production.INFO: neon service started [2025-03-03 19:31:01] Production.INFO: neon service started [2025-03-03 19:31:01] Production.INFO: ==27754== Releasing lock... [2025-03-03 19:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:31:01] Production.INFO: ==27756== Lock acquired, processing the job... [2025-03-03 14:31:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:31:02] Production.INFO: ==27756== Releasing lock... [2025-03-03 14:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:31:02] Production.INFO: ==27758== Lock acquired, processing the job... [2025-03-03 19:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:31:02] Production.INFO: ==27758== Releasing lock... [2025-03-03 19:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:31:03] Production.INFO: ==27760== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:31:03] Production.INFO: ==27762== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:31:03] Production.INFO: ==27764== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:31:03] Production.INFO: ==27766== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:31:03] Production.INFO: ==27762== Releasing lock... [2025-03-03 14:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:31:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:31:03] Production.INFO: ==27768== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:31:03] Production.INFO: ==27770== Lock acquired, processing the job... [2025-03-03 14:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:31:03] Production.INFO: Account Balance Start. [2025-03-03 14:31:03] Production.INFO: CreateAllLog Start [2025-03-03 14:31:03] Production.INFO: 117 [2025-03-03 14:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:31:03] Production.INFO: count ==13 [2025-03-03 14:31:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:31:03] Production.INFO: count ==21 [2025-03-03 14:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599092') start [2025-03-03 14:31:04] Production.ERROR: done [2025-03-03 14:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599092') end [2025-03-03 14:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:31:04] Production.INFO: 1 [2025-03-03 14:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: ==27770== Releasing lock... [2025-03-03 14:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.ERROR: done [2025-03-03 14:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:31:04] Production.INFO: Total Charge 0 [2025-03-03 14:31:04] Production.INFO: CreateAllLog End [2025-03-03 14:31:05] Production.INFO: Account Balance End. [2025-03-03 14:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:31:05] Production.INFO: ==27766== Releasing lock... [2025-03-03 14:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:31:05 [end_date_ymd] => 2025-03-03 14:31:05 [RateCDR] => 1 ) [2025-03-03 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:31:05' and `end` < '2025-03-03 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:31:13] Production.ERROR: CronJobId end10 [2025-03-03 14:31:13] Production.INFO: ==27764== Releasing lock... [2025-03-03 14:31:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:31:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:31:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:31:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:31:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:31:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:31:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:31:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:31:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:31:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:31:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:31:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:31:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:31:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:31:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:31:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:31:14] Production.INFO: call_cost start [2025-03-03 14:31:14] Production.INFO: call_cost end [2025-03-03 14:31:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:31:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:31:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:31:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:31:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:31:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:31:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:31:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:31:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:31:15] Production.INFO: ==27760== Releasing lock... [2025-03-03 14:31:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:31:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:31:18] Production.INFO: count ==6597 [2025-03-03 14:31:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:31:05 - End Time 2025-03-03 14:31:05 [2025-03-03 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599093', 'tblTempUsageDetail_20' ) start [2025-03-03 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599093', 'tblTempUsageDetail_20' ) end [2025-03-03 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599093', 'tblTempVendorCDR_20' ) start [2025-03-03 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599093', 'tblTempVendorCDR_20' ) end [2025-03-03 14:31:23] Production.INFO: ProcessCDR(1,14599093,1,1,2) [2025-03-03 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599093', 'tblTempUsageDetail_20' ) start [2025-03-03 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599093', 'tblTempUsageDetail_20' ) end [2025-03-03 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:31:28] Production.INFO: ==27768== Releasing lock... [2025-03-03 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:31:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:32:01] Production.INFO: ==27830== Lock acquired, processing the job... [2025-03-03 19:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:32:01] Production.INFO: neon service started [2025-03-03 19:32:01] Production.INFO: neon service started [2025-03-03 19:32:01] Production.INFO: ==27830== Releasing lock... [2025-03-03 19:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:32:02] Production.INFO: ==27834== Lock acquired, processing the job... [2025-03-03 19:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:32:02] Production.INFO: ==27834== Releasing lock... [2025-03-03 19:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:32:02] Production.INFO: ==27832== Lock acquired, processing the job... [2025-03-03 14:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:32:02] Production.INFO: ==27832== Releasing lock... [2025-03-03 14:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:32:03] Production.INFO: ==27837== Lock acquired, processing the job... [2025-03-03 14:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:32:03] Production.INFO: ==27839== Lock acquired, processing the job... [2025-03-03 14:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:32:03] Production.INFO: ==27841== Lock acquired, processing the job... [2025-03-03 14:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:32:03] Production.INFO: ==27843== Lock acquired, processing the job... [2025-03-03 14:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:32:03] Production.INFO: ==27839== Releasing lock... [2025-03-03 14:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:32:03] Production.INFO: Account Balance Start. [2025-03-03 14:32:03] Production.INFO: CreateAllLog Start [2025-03-03 14:32:03] Production.INFO: ==27845== Lock acquired, processing the job... [2025-03-03 14:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:32:04] Production.INFO: 117 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:32:04] Production.INFO: ==27847== Lock acquired, processing the job... [2025-03-03 14:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:32:04] Production.INFO: count ==13 [2025-03-03 14:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:32:04] Production.INFO: count ==21 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599097') start [2025-03-03 14:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599097') end [2025-03-03 14:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:32:04] Production.INFO: 1 [2025-03-03 14:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: ==27847== Releasing lock... [2025-03-03 14:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:32:04] Production.ERROR: done [2025-03-03 14:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.ERROR: done [2025-03-03 14:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:32:05] Production.INFO: Total Charge 0 [2025-03-03 14:32:05] Production.INFO: CreateAllLog End [2025-03-03 14:32:05] Production.INFO: Account Balance End. [2025-03-03 14:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:32:05] Production.INFO: ==27843== Releasing lock... [2025-03-03 14:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:32:05 [end_date_ymd] => 2025-03-03 14:32:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:32:05' and `end` < '2025-03-03 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-03-03 14:32:14] Production.ERROR: CronJobId end10 [2025-03-03 14:32:14] Production.INFO: ==27841== Releasing lock... [2025-03-03 14:32:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:32:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:32:16] Production.INFO: call_cost start [2025-03-03 14:32:16] Production.INFO: call_cost end [2025-03-03 14:32:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:32:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:32:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:32:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:32:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:32:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:32:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:32:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:32:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:32:17] Production.INFO: ==27837== Releasing lock... [2025-03-03 14:32:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:32:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:32:18] Production.INFO: count ==6576 [2025-03-03 14:32:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:32:05 - End Time 2025-03-03 14:32:05 [2025-03-03 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599098', 'tblTempUsageDetail_20' ) start [2025-03-03 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599098', 'tblTempUsageDetail_20' ) end [2025-03-03 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599098', 'tblTempVendorCDR_20' ) start [2025-03-03 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599098', 'tblTempVendorCDR_20' ) end [2025-03-03 14:32:22] Production.INFO: ProcessCDR(1,14599098,1,1,2) [2025-03-03 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599098', 'tblTempUsageDetail_20' ) start [2025-03-03 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599098', 'tblTempUsageDetail_20' ) end [2025-03-03 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:32:28] Production.INFO: ==27845== Releasing lock... [2025-03-03 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:32:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:33:01] Production.INFO: ==27909== Lock acquired, processing the job... [2025-03-03 19:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:33:01] Production.INFO: neon service started [2025-03-03 19:33:01] Production.INFO: neon service started [2025-03-03 19:33:01] Production.INFO: ==27909== Releasing lock... [2025-03-03 19:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:33:01] Production.INFO: ==27911== Lock acquired, processing the job... [2025-03-03 14:33:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:33:02] Production.INFO: ==27911== Releasing lock... [2025-03-03 14:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:33:02] Production.INFO: ==27913== Lock acquired, processing the job... [2025-03-03 19:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:33:02] Production.INFO: ==27913== Releasing lock... [2025-03-03 19:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:33:03] Production.INFO: ==27918== Lock acquired, processing the job... [2025-03-03 14:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:33:03] Production.INFO: ==27922== Lock acquired, processing the job... [2025-03-03 14:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:33:03] Production.INFO: ==27920== Lock acquired, processing the job... [2025-03-03 14:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:33:03] Production.INFO: Account Balance Start. [2025-03-03 14:33:03] Production.INFO: CreateAllLog Start [2025-03-03 14:33:03] Production.INFO: 117 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:33:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:33:03] Production.INFO: ==27918== Releasing lock... [2025-03-03 14:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:33:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: ==27916== Lock acquired, processing the job... [2025-03-03 14:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:33:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-14 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: ==27924== Lock acquired, processing the job... [2025-03-03 14:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:33:03] Production.INFO: Date 2025-02-15 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:33:03] Production.INFO: Date 2025-02-16 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: ==27926== Lock acquired, processing the job... [2025-03-03 14:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-17 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-18 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: Date 2025-02-19 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:33:03] Production.INFO: Date 2025-02-20 [2025-03-03 14:33:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:03] Production.INFO: count ==13 [2025-03-03 14:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:33:03] Production.INFO: count ==21 [2025-03-03 14:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599102') start [2025-03-03 14:33:04] Production.ERROR: done [2025-03-03 14:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599102') end [2025-03-03 14:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:33:04] Production.INFO: 1 [2025-03-03 14:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:33:04] Production.ERROR: done [2025-03-03 14:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: ==27926== Releasing lock... [2025-03-03 14:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:33:04] Production.INFO: Total Charge 0 [2025-03-03 14:33:04] Production.INFO: CreateAllLog End [2025-03-03 14:33:04] Production.INFO: Account Balance End. [2025-03-03 14:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:33:05] Production.INFO: ==27922== Releasing lock... [2025-03-03 14:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:33:05 [end_date_ymd] => 2025-03-03 14:33:05 [RateCDR] => 1 ) [2025-03-03 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:33:05' and `end` < '2025-03-03 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:33:13] Production.ERROR: CronJobId end10 [2025-03-03 14:33:13] Production.INFO: ==27920== Releasing lock... [2025-03-03 14:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:33:15] Production.INFO: call_cost start [2025-03-03 14:33:15] Production.INFO: call_cost end [2025-03-03 14:33:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:33:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:33:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:33:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:33:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:33:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:33:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:33:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:33:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:33:16] Production.INFO: ==27916== Releasing lock... [2025-03-03 14:33:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:33:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:33:18] Production.INFO: count ==6564 [2025-03-03 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:33:05 - End Time 2025-03-03 14:33:05 [2025-03-03 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599103', 'tblTempUsageDetail_20' ) start [2025-03-03 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599103', 'tblTempUsageDetail_20' ) end [2025-03-03 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599103', 'tblTempVendorCDR_20' ) start [2025-03-03 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599103', 'tblTempVendorCDR_20' ) end [2025-03-03 14:33:22] Production.INFO: ProcessCDR(1,14599103,1,1,2) [2025-03-03 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599103', 'tblTempUsageDetail_20' ) start [2025-03-03 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599103', 'tblTempUsageDetail_20' ) end [2025-03-03 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:33:28] Production.INFO: ==27924== Releasing lock... [2025-03-03 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:33:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:34:01] Production.INFO: ==27987== Lock acquired, processing the job... [2025-03-03 19:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:34:01] Production.INFO: neon service started [2025-03-03 19:34:01] Production.INFO: neon service started [2025-03-03 19:34:01] Production.INFO: ==27987== Releasing lock... [2025-03-03 19:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:34:02] Production.INFO: ==27989== Lock acquired, processing the job... [2025-03-03 14:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:34:02] Production.INFO: ==27989== Releasing lock... [2025-03-03 14:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:34:02] Production.INFO: ==27991== Lock acquired, processing the job... [2025-03-03 19:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:34:03] Production.INFO: ==27991== Releasing lock... [2025-03-03 19:34:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:34:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:34:03] Production.INFO: ==27993== Lock acquired, processing the job... [2025-03-03 14:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:34:03] Production.INFO: ==27997== Lock acquired, processing the job... [2025-03-03 14:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:34:03] Production.INFO: ==27995== Lock acquired, processing the job... [2025-03-03 14:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:34:03] Production.INFO: ==28001== Lock acquired, processing the job... [2025-03-03 14:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:34:03] Production.INFO: ==27999== Lock acquired, processing the job... [2025-03-03 14:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:34:03] Production.INFO: ==28003== Lock acquired, processing the job... [2025-03-03 14:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:34:04] Production.INFO: count ==13 [2025-03-03 14:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:34:04] Production.INFO: count ==21 [2025-03-03 14:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599106') start [2025-03-03 14:34:04] Production.INFO: ==27995== Releasing lock... [2025-03-03 14:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:34:04] Production.INFO: Account Balance Start. [2025-03-03 14:34:04] Production.INFO: CreateAllLog Start [2025-03-03 14:34:04] Production.INFO: 117 [2025-03-03 14:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599106') end [2025-03-03 14:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:34:04] Production.INFO: 1 [2025-03-03 14:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:34:04] Production.ERROR: done [2025-03-03 14:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: ==28003== Releasing lock... [2025-03-03 14:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.ERROR: done [2025-03-03 14:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:34:05] Production.INFO: Total Charge 0 [2025-03-03 14:34:05] Production.INFO: CreateAllLog End [2025-03-03 14:34:05] Production.INFO: Account Balance End. [2025-03-03 14:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:34:05] Production.INFO: ==27999== Releasing lock... [2025-03-03 14:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:34:06 [end_date_ymd] => 2025-03-03 14:34:06 [RateCDR] => 1 ) [2025-03-03 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:34:06' and `end` < '2025-03-03 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:34:15] Production.ERROR: CronJobId end10 [2025-03-03 14:34:15] Production.INFO: ==27997== Releasing lock... [2025-03-03 14:34:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:34:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:34:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:34:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:34:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:34:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:34:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:34:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:34:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:34:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:34:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:34:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:34:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:34:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:34:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:34:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:34:17] Production.INFO: call_cost start [2025-03-03 14:34:17] Production.INFO: call_cost end [2025-03-03 14:34:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:34:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:34:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:34:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:34:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:34:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:34:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:34:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:34:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:34:19] Production.INFO: ==27993== Releasing lock... [2025-03-03 14:34:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:34:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:34:19] Production.INFO: count ==6611 [2025-03-03 14:34:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:34:06 - End Time 2025-03-03 14:34:06 [2025-03-03 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599108', 'tblTempUsageDetail_20' ) start [2025-03-03 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599108', 'tblTempUsageDetail_20' ) end [2025-03-03 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599108', 'tblTempVendorCDR_20' ) start [2025-03-03 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599108', 'tblTempVendorCDR_20' ) end [2025-03-03 14:34:23] Production.INFO: ProcessCDR(1,14599108,1,1,2) [2025-03-03 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599108', 'tblTempUsageDetail_20' ) start [2025-03-03 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599108', 'tblTempUsageDetail_20' ) end [2025-03-03 14:34:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:34:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:34:29] Production.INFO: ==28001== Releasing lock... [2025-03-03 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:34:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:35:02] Production.INFO: ==28072== Lock acquired, processing the job... [2025-03-03 19:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:35:02] Production.INFO: neon service started [2025-03-03 19:35:02] Production.INFO: neon service started [2025-03-03 19:35:02] Production.INFO: ==28072== Releasing lock... [2025-03-03 19:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:35:03] Production.INFO: ==28076== Lock acquired, processing the job... [2025-03-03 19:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:35:03] Production.INFO: ==28074== Lock acquired, processing the job... [2025-03-03 14:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:35:03] Production.INFO: ==28076== Releasing lock... [2025-03-03 19:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:35:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:35:03] Production.INFO: ==28074== Releasing lock... [2025-03-03 14:35:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:35:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:35:04] Production.INFO: ==28083== Lock acquired, processing the job... [2025-03-03 14:35:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:35:04] Production.INFO: ==28087== Lock acquired, processing the job... [2025-03-03 14:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:35:04] Production.INFO: ==28079== Lock acquired, processing the job... [2025-03-03 14:35:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:35:04] Production.INFO: ==28081== Lock acquired, processing the job... [2025-03-03 14:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:35:04] Production.INFO: ==28085== Lock acquired, processing the job... [2025-03-03 14:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:35:04] Production.INFO: ==28089== Lock acquired, processing the job... [2025-03-03 14:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:35:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:35:04] Production.INFO: Account Balance Start. [2025-03-03 14:35:04] Production.INFO: CreateAllLog Start [2025-03-03 14:35:04] Production.INFO: 117 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-08 [2025-03-03 14:35:05] Production.ERROR: done [2025-03-03 14:35:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-09 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-10 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-11 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:35:05] Production.INFO: Date 2025-02-12 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: count ==13 [2025-03-03 14:35:05] Production.ERROR: done [2025-03-03 14:35:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:35:05] Production.INFO: count ==21 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-13 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: ==28081== Releasing lock... [2025-03-03 14:35:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:35:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:35:05] Production.INFO: Date 2025-02-14 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599112') start [2025-03-03 14:35:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599112') end [2025-03-03 14:35:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:35:05] Production.INFO: 1 [2025-03-03 14:35:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:35:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: ==28089== Releasing lock... [2025-03-03 14:35:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:35:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:35:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:35:05] Production.INFO: Total Charge 0 [2025-03-03 14:35:05] Production.INFO: CreateAllLog End [2025-03-03 14:35:06] Production.INFO: Account Balance End. [2025-03-03 14:35:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:35:06] Production.INFO: ==28085== Releasing lock... [2025-03-03 14:35:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:35:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:35:06 [end_date_ymd] => 2025-03-03 14:35:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:35:06' and `end` < '2025-03-03 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-03-03 14:35:15] Production.ERROR: CronJobId end10 [2025-03-03 14:35:15] Production.INFO: ==28083== Releasing lock... [2025-03-03 14:35:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:35:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:35:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:35:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:35:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:35:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:35:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:35:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:35:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:35:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:35:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:35:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:35:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:35:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:35:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:35:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:35:17] Production.INFO: call_cost start [2025-03-03 14:35:17] Production.INFO: call_cost end [2025-03-03 14:35:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:35:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:35:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:35:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:35:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:35:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:35:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:35:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:35:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:35:18] Production.INFO: ==28079== Releasing lock... [2025-03-03 14:35:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:35:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:35:19] Production.INFO: count ==6631 [2025-03-03 14:35:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:35:06 - End Time 2025-03-03 14:35:06 [2025-03-03 14:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599113', 'tblTempUsageDetail_20' ) start [2025-03-03 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599113', 'tblTempUsageDetail_20' ) end [2025-03-03 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599113', 'tblTempVendorCDR_20' ) start [2025-03-03 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599113', 'tblTempVendorCDR_20' ) end [2025-03-03 14:35:23] Production.INFO: ProcessCDR(1,14599113,1,1,2) [2025-03-03 14:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599113', 'tblTempUsageDetail_20' ) start [2025-03-03 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599113', 'tblTempUsageDetail_20' ) end [2025-03-03 14:35:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:35:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:35:29] Production.INFO: ==28087== Releasing lock... [2025-03-03 14:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:35:29] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:36:01] Production.INFO: ==28151== Lock acquired, processing the job... [2025-03-03 19:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:36:01] Production.INFO: neon service started [2025-03-03 19:36:01] Production.INFO: neon service started [2025-03-03 19:36:01] Production.INFO: ==28151== Releasing lock... [2025-03-03 19:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:36:02] Production.INFO: ==28153== Lock acquired, processing the job... [2025-03-03 14:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:36:02] Production.INFO: ==28153== Releasing lock... [2025-03-03 14:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:36:02] Production.INFO: ==28155== Lock acquired, processing the job... [2025-03-03 19:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:36:02] Production.INFO: ==28155== Releasing lock... [2025-03-03 19:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:36:03] Production.INFO: ==28158== Lock acquired, processing the job... [2025-03-03 14:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:36:03] Production.INFO: ==28160== Lock acquired, processing the job... [2025-03-03 14:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:36:03] Production.INFO: ==28166== Lock acquired, processing the job... [2025-03-03 14:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:36:03] Production.INFO: ==28162== Lock acquired, processing the job... [2025-03-03 14:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:36:03] Production.INFO: ==28164== Lock acquired, processing the job... [2025-03-03 14:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:36:04] Production.INFO: ==28168== Lock acquired, processing the job... [2025-03-03 14:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:36:04] Production.INFO: Account Balance Start. [2025-03-03 14:36:04] Production.INFO: CreateAllLog Start [2025-03-03 14:36:04] Production.INFO: 117 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: count ==13 [2025-03-03 14:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:36:04] Production.INFO: count ==21 [2025-03-03 14:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599117') start [2025-03-03 14:36:04] Production.INFO: ==28160== Releasing lock... [2025-03-03 14:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.ERROR: done [2025-03-03 14:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599117') end [2025-03-03 14:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:36:04] Production.INFO: 1 [2025-03-03 14:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.ERROR: done [2025-03-03 14:36:04] Production.INFO: ==28168== Releasing lock... [2025-03-03 14:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:36:05] Production.INFO: Total Charge 0 [2025-03-03 14:36:05] Production.INFO: CreateAllLog End [2025-03-03 14:36:05] Production.INFO: Account Balance End. [2025-03-03 14:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:36:05] Production.INFO: ==28164== Releasing lock... [2025-03-03 14:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:36:06 [end_date_ymd] => 2025-03-03 14:36:06 [RateCDR] => 1 ) [2025-03-03 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:36:06' and `end` < '2025-03-03 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:36:15] Production.ERROR: CronJobId end10 [2025-03-03 14:36:15] Production.INFO: ==28162== Releasing lock... [2025-03-03 14:36:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:36:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:36:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:36:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:36:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:36:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:36:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:36:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:36:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:36:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:36:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:36:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:36:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:36:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:36:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:36:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:36:16] Production.INFO: call_cost start [2025-03-03 14:36:16] Production.INFO: call_cost end [2025-03-03 14:36:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:36:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:36:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:36:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:36:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:36:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:36:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:36:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:36:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:36:17] Production.INFO: ==28158== Releasing lock... [2025-03-03 14:36:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:36:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:36:19] Production.INFO: count ==6651 [2025-03-03 14:36:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:36:06 - End Time 2025-03-03 14:36:06 [2025-03-03 14:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599118', 'tblTempUsageDetail_20' ) start [2025-03-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599118', 'tblTempUsageDetail_20' ) end [2025-03-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599118', 'tblTempVendorCDR_20' ) start [2025-03-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599118', 'tblTempVendorCDR_20' ) end [2025-03-03 14:36:23] Production.INFO: ProcessCDR(1,14599118,1,1,2) [2025-03-03 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599118', 'tblTempUsageDetail_20' ) start [2025-03-03 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599118', 'tblTempUsageDetail_20' ) end [2025-03-03 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:36:27] Production.INFO: ==28166== Releasing lock... [2025-03-03 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:36:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:37:02] Production.INFO: ==28225== Lock acquired, processing the job... [2025-03-03 19:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:37:02] Production.INFO: neon service started [2025-03-03 19:37:02] Production.INFO: neon service started [2025-03-03 19:37:02] Production.INFO: ==28225== Releasing lock... [2025-03-03 19:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:37:02] Production.INFO: ==28229== Lock acquired, processing the job... [2025-03-03 14:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:37:03] Production.INFO: ==28229== Releasing lock... [2025-03-03 14:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:37:03] Production.INFO: ==28231== Lock acquired, processing the job... [2025-03-03 19:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:37:03] Production.INFO: ==28231== Releasing lock... [2025-03-03 19:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:37:04] Production.INFO: ==28244== Lock acquired, processing the job... [2025-03-03 14:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:37:04] Production.INFO: ==28242== Lock acquired, processing the job... [2025-03-03 14:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:37:04] Production.INFO: count ==13 [2025-03-03 14:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:37:04] Production.INFO: count ==21 [2025-03-03 14:37:04] Production.INFO: ==28236== Lock acquired, processing the job... [2025-03-03 14:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599119') start [2025-03-03 14:37:04] Production.INFO: ==28234== Lock acquired, processing the job... [2025-03-03 14:37:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:37:04] Production.INFO: ==28238== Lock acquired, processing the job... [2025-03-03 14:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:37:04] Production.INFO: ==28240== Lock acquired, processing the job... [2025-03-03 14:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599119') end [2025-03-03 14:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:37:04] Production.INFO: 1 [2025-03-03 14:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:37:04] Production.INFO: Account Balance Start. [2025-03-03 14:37:04] Production.INFO: CreateAllLog Start [2025-03-03 14:37:04] Production.INFO: 117 [2025-03-03 14:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:04] Production.INFO: ==28244== Releasing lock... [2025-03-03 14:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:37:05] Production.ERROR: done [2025-03-03 14:37:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:37:05] Production.INFO: ==28236== Releasing lock... [2025-03-03 14:37:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:37:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:37:05] Production.INFO: Date 2025-02-14 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.ERROR: done [2025-03-03 14:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:37:05] Production.INFO: Total Charge 0 [2025-03-03 14:37:05] Production.INFO: CreateAllLog End [2025-03-03 14:37:05] Production.INFO: Account Balance End. [2025-03-03 14:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:37:05] Production.INFO: ==28240== Releasing lock... [2025-03-03 14:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:37:06 [end_date_ymd] => 2025-03-03 14:37:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:37:06' and `end` < '2025-03-03 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-03-03 14:37:15] Production.ERROR: CronJobId end10 [2025-03-03 14:37:15] Production.INFO: ==28238== Releasing lock... [2025-03-03 14:37:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:37:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:37:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:37:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:37:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:37:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:37:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:37:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:37:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:37:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:37:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:37:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:37:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:37:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:37:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:37:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:37:17] Production.INFO: call_cost start [2025-03-03 14:37:17] Production.INFO: call_cost end [2025-03-03 14:37:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:37:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:37:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:37:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:37:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:37:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:37:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:37:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:37:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:37:18] Production.INFO: ==28234== Releasing lock... [2025-03-03 14:37:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:37:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:37:19] Production.INFO: count ==6660 [2025-03-03 14:37:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:37:06 - End Time 2025-03-03 14:37:06 [2025-03-03 14:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599123', 'tblTempUsageDetail_20' ) start [2025-03-03 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599123', 'tblTempUsageDetail_20' ) end [2025-03-03 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599123', 'tblTempVendorCDR_20' ) start [2025-03-03 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599123', 'tblTempVendorCDR_20' ) end [2025-03-03 14:37:23] Production.INFO: ProcessCDR(1,14599123,1,1,2) [2025-03-03 14:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599123', 'tblTempUsageDetail_20' ) start [2025-03-03 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599123', 'tblTempUsageDetail_20' ) end [2025-03-03 14:37:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:37:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:37:29] Production.INFO: ==28242== Releasing lock... [2025-03-03 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:37:29] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:38:02] Production.INFO: ==28306== Lock acquired, processing the job... [2025-03-03 19:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:38:02] Production.INFO: neon service started [2025-03-03 19:38:02] Production.INFO: neon service started [2025-03-03 19:38:02] Production.INFO: ==28306== Releasing lock... [2025-03-03 19:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:38:02] Production.INFO: ==28308== Lock acquired, processing the job... [2025-03-03 14:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:38:02] Production.INFO: ==28310== Lock acquired, processing the job... [2025-03-03 19:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:38:02] Production.INFO: ==28308== Releasing lock... [2025-03-03 14:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:38:02] Production.INFO: ==28310== Releasing lock... [2025-03-03 19:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:38:03] Production.INFO: ==28312== Lock acquired, processing the job... [2025-03-03 14:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:38:03] Production.INFO: ==28318== Lock acquired, processing the job... [2025-03-03 14:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:38:04] Production.INFO: ==28323== Lock acquired, processing the job... [2025-03-03 14:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:38:04] Production.INFO: Account Balance Start. [2025-03-03 14:38:04] Production.INFO: ==28314== Lock acquired, processing the job... [2025-03-03 14:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:38:04] Production.INFO: CreateAllLog Start [2025-03-03 14:38:04] Production.INFO: 117 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: ==28316== Lock acquired, processing the job... [2025-03-03 14:38:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: ==28321== Lock acquired, processing the job... [2025-03-03 14:38:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:38:04] Production.INFO: count ==13 [2025-03-03 14:38:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:38:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:38:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:38:04] Production.INFO: count ==21 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599126') start [2025-03-03 14:38:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599126') end [2025-03-03 14:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:38:04] Production.INFO: 1 [2025-03-03 14:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: ==28323== Releasing lock... [2025-03-03 14:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: ==28314== Releasing lock... [2025-03-03 14:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.ERROR: done [2025-03-03 14:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:05] Production.ERROR: done [2025-03-03 14:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:38:05] Production.INFO: Total Charge 0 [2025-03-03 14:38:05] Production.INFO: CreateAllLog End [2025-03-03 14:38:05] Production.INFO: Account Balance End. [2025-03-03 14:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:38:05] Production.INFO: ==28318== Releasing lock... [2025-03-03 14:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:38:06 [end_date_ymd] => 2025-03-03 14:38:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:38:06' and `end` < '2025-03-03 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-03-03 14:38:14] Production.ERROR: CronJobId end10 [2025-03-03 14:38:14] Production.INFO: ==28316== Releasing lock... [2025-03-03 14:38:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:38:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:38:15] Production.INFO: call_cost start [2025-03-03 14:38:15] Production.INFO: call_cost end [2025-03-03 14:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:38:16] Production.INFO: ==28312== Releasing lock... [2025-03-03 14:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:38:20] Production.INFO: count ==6707 [2025-03-03 14:38:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:38:06 - End Time 2025-03-03 14:38:06 [2025-03-03 14:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599128', 'tblTempUsageDetail_20' ) start [2025-03-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599128', 'tblTempUsageDetail_20' ) end [2025-03-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599128', 'tblTempVendorCDR_20' ) start [2025-03-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599128', 'tblTempVendorCDR_20' ) end [2025-03-03 14:38:24] Production.INFO: ProcessCDR(1,14599128,1,1,2) [2025-03-03 14:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599128', 'tblTempUsageDetail_20' ) start [2025-03-03 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599128', 'tblTempUsageDetail_20' ) end [2025-03-03 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:38:27] Production.INFO: ==28321== Releasing lock... [2025-03-03 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:38:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 19:39:01] Production.INFO: ==28380== Lock acquired, processing the job... [2025-03-03 19:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:39:01] Production.INFO: neon service started [2025-03-03 19:39:01] Production.INFO: neon service started [2025-03-03 19:39:01] Production.INFO: ==28380== Releasing lock... [2025-03-03 19:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:39:01] Production.INFO: ==28382== Lock acquired, processing the job... [2025-03-03 14:39:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:39:02] Production.INFO: ==28382== Releasing lock... [2025-03-03 14:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:39:02] Production.INFO: ==28384== Lock acquired, processing the job... [2025-03-03 19:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:39:02] Production.INFO: ==28384== Releasing lock... [2025-03-03 19:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:39:03] Production.INFO: ==28392== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:39:03] Production.INFO: ==28386== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:39:03] Production.INFO: ==28397== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:39:03] Production.INFO: ==28390== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:39:03] Production.INFO: count ==13 [2025-03-03 14:39:03] Production.INFO: Account Balance Start. [2025-03-03 14:39:03] Production.INFO: CreateAllLog Start [2025-03-03 14:39:03] Production.INFO: 117 [2025-03-03 14:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:39:03] Production.INFO: ==28388== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:39:03] Production.INFO: count ==21 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599129') start [2025-03-03 14:39:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.INFO: ==28394== Lock acquired, processing the job... [2025-03-03 14:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:39:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:39:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599129') end [2025-03-03 14:39:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:39:03] Production.INFO: 1 [2025-03-03 14:39:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:39:03] Production.INFO: Date 2025-02-14 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.INFO: Date 2025-02-15 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:03] Production.INFO: Date 2025-02-16 [2025-03-03 14:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: ==28397== Releasing lock... [2025-03-03 14:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:39:04] Production.INFO: ==28388== Releasing lock... [2025-03-03 14:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.ERROR: done [2025-03-03 14:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:39:04] Production.ERROR: done [2025-03-03 14:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:39:05] Production.INFO: Total Charge 0 [2025-03-03 14:39:05] Production.INFO: CreateAllLog End [2025-03-03 14:39:05] Production.INFO: Account Balance End. [2025-03-03 14:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:39:05] Production.INFO: ==28392== Releasing lock... [2025-03-03 14:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:39:05 [end_date_ymd] => 2025-03-03 14:39:05 [RateCDR] => 1 ) [2025-03-03 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:39:05' and `end` < '2025-03-03 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:39:14] Production.ERROR: CronJobId end10 [2025-03-03 14:39:14] Production.INFO: ==28390== Releasing lock... [2025-03-03 14:39:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:39:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:39:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:39:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:39:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:39:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:39:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:39:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:39:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:39:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:39:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:39:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:39:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:39:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:39:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:39:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:39:17] Production.INFO: call_cost start [2025-03-03 14:39:17] Production.INFO: call_cost end [2025-03-03 14:39:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:39:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:39:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:39:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:39:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:39:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:39:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:39:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:39:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:39:18] Production.INFO: ==28386== Releasing lock... [2025-03-03 14:39:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:39:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:39:19] Production.INFO: count ==6657 [2025-03-03 14:39:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:39:05 - End Time 2025-03-03 14:39:05 [2025-03-03 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599133', 'tblTempUsageDetail_20' ) start [2025-03-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599133', 'tblTempUsageDetail_20' ) end [2025-03-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599133', 'tblTempVendorCDR_20' ) start [2025-03-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599133', 'tblTempVendorCDR_20' ) end [2025-03-03 14:39:23] Production.INFO: ProcessCDR(1,14599133,1,1,2) [2025-03-03 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599133', 'tblTempUsageDetail_20' ) start [2025-03-03 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599133', 'tblTempUsageDetail_20' ) end [2025-03-03 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:39:28] Production.INFO: ==28394== Releasing lock... [2025-03-03 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:39:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:40:02] Production.INFO: ==28457== Lock acquired, processing the job... [2025-03-03 19:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:40:02] Production.INFO: neon service started [2025-03-03 19:40:02] Production.INFO: neon service started [2025-03-03 19:40:02] Production.INFO: ==28457== Releasing lock... [2025-03-03 19:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:40:02] Production.INFO: ==28462== Lock acquired, processing the job... [2025-03-03 19:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:40:02] Production.INFO: ==28462== Releasing lock... [2025-03-03 19:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:40:02] Production.INFO: ==28460== Lock acquired, processing the job... [2025-03-03 14:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:40:03] Production.INFO: ==28460== Releasing lock... [2025-03-03 14:40:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:40:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:40:04] Production.INFO: ==28468== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:40:04] Production.INFO: ==28464== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 14:40:04] Production.INFO: ==28472== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 14:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 14:40:04] Production.ERROR: CronJob PID - 28468 [2025-03-03 14:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 14:40:04] Production.ERROR: CronJob ID - 7 [2025-03-03 14:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 14:40:00 [2025-03-03 14:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 14:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 14:40:04] Production.INFO: ==28474== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:40:04] Production.INFO: ==28466== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 14:40:04] Production.INFO: ==28464== Releasing lock... [2025-03-03 14:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 14:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:40:04] Production.INFO: Account Balance Start. [2025-03-03 14:40:04] Production.INFO: CreateAllLog Start [2025-03-03 14:40:04] Production.INFO: 117 [2025-03-03 14:40:04] Production.INFO: ==28470== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:04] Production.INFO: ==28476== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 14:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:04] Production.INFO: ==28479== Lock acquired, processing the job... [2025-03-03 14:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:40:04] Production.INFO: ==28468== Releasing lock... [2025-03-03 14:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:40:05] Production.ERROR: done [2025-03-03 14:40:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:40:05] Production.ERROR: done [2025-03-03 14:40:05] Production.INFO: count ==13 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:40:05] Production.INFO: count ==21 [2025-03-03 14:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599137') start [2025-03-03 14:40:05] Production.ERROR: done [2025-03-03 14:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 14:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599138', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 14:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599137') end [2025-03-03 14:40:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:40:05] Production.INFO: 1 [2025-03-03 14:40:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: ==28479== Releasing lock... [2025-03-03 14:40:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:40:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:40:05] Production.INFO: Total Charge 0 [2025-03-03 14:40:05] Production.INFO: CreateAllLog End [2025-03-03 14:40:06] Production.INFO: Account Balance End. [2025-03-03 14:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:40:06] Production.INFO: ==28472== Releasing lock... [2025-03-03 14:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:40:06 [end_date_ymd] => 2025-03-03 14:40:06 [RateCDR] => 1 ) [2025-03-03 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:40:06' and `end` < '2025-03-03 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:40:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599138', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 14:40:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 14:40:10] Production.INFO: ProcessCDR(1,14599138,1,1,2) [2025-03-03 14:40:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599138,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:40:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599138,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:40:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:40:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:40:10] Production.INFO: ==28476== Releasing lock... [2025-03-03 14:40:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 14:40:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:40:15] Production.ERROR: CronJobId end10 [2025-03-03 14:40:15] Production.INFO: ==28470== Releasing lock... [2025-03-03 14:40:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:40:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:40:18] Production.INFO: call_cost start [2025-03-03 14:40:18] Production.INFO: call_cost end [2025-03-03 14:40:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:40:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:40:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:40:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:40:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:40:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:40:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:40:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:40:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:40:19] Production.INFO: ==28466== Releasing lock... [2025-03-03 14:40:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:40:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:40:20] Production.INFO: count ==6632 [2025-03-03 14:40:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:40:06 - End Time 2025-03-03 14:40:06 [2025-03-03 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599139', 'tblTempUsageDetail_20' ) start [2025-03-03 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599139', 'tblTempUsageDetail_20' ) end [2025-03-03 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599139', 'tblTempVendorCDR_20' ) start [2025-03-03 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599139', 'tblTempVendorCDR_20' ) end [2025-03-03 14:40:23] Production.INFO: ProcessCDR(1,14599139,1,1,2) [2025-03-03 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599139', 'tblTempUsageDetail_20' ) start [2025-03-03 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599139', 'tblTempUsageDetail_20' ) end [2025-03-03 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:40:29] Production.INFO: ==28474== Releasing lock... [2025-03-03 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:40:29] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:41:01] Production.INFO: ==28538== Lock acquired, processing the job... [2025-03-03 19:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:41:01] Production.INFO: neon service started [2025-03-03 19:41:01] Production.INFO: neon service started [2025-03-03 19:41:01] Production.INFO: ==28538== Releasing lock... [2025-03-03 19:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:41:02] Production.INFO: ==28540== Lock acquired, processing the job... [2025-03-03 14:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:41:02] Production.INFO: ==28542== Lock acquired, processing the job... [2025-03-03 19:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:41:02] Production.INFO: ==28542== Releasing lock... [2025-03-03 19:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:41:02] Production.INFO: ==28540== Releasing lock... [2025-03-03 14:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:41:03] Production.INFO: ==28551== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:41:03] Production.INFO: ==28555== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:41:03] Production.INFO: ==28545== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:41:03] Production.INFO: Account Balance Start. [2025-03-03 14:41:03] Production.INFO: CreateAllLog Start [2025-03-03 14:41:03] Production.INFO: 117 [2025-03-03 14:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:41:03] Production.INFO: count ==13 [2025-03-03 14:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:41:03] Production.INFO: count ==21 [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599141') start [2025-03-03 14:41:03] Production.INFO: ==28547== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:03] Production.INFO: ==28549== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:41:03] Production.INFO: ==28553== Lock acquired, processing the job... [2025-03-03 14:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599141') end [2025-03-03 14:41:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:41:03] Production.INFO: 1 [2025-03-03 14:41:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:41:03] Production.INFO: ==28555== Releasing lock... [2025-03-03 14:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:41:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:03] Production.INFO: Date 2025-02-14 [2025-03-03 14:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: ==28547== Releasing lock... [2025-03-03 14:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.ERROR: done [2025-03-03 14:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.ERROR: done [2025-03-03 14:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:41:04] Production.INFO: Total Charge 0 [2025-03-03 14:41:04] Production.INFO: CreateAllLog End [2025-03-03 14:41:05] Production.INFO: Account Balance End. [2025-03-03 14:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:41:05] Production.INFO: ==28551== Releasing lock... [2025-03-03 14:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:41:05 [end_date_ymd] => 2025-03-03 14:41:05 [RateCDR] => 1 ) [2025-03-03 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:41:05' and `end` < '2025-03-03 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:41:12] Production.ERROR: CronJobId end10 [2025-03-03 14:41:12] Production.INFO: ==28549== Releasing lock... [2025-03-03 14:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:41:14] Production.INFO: call_cost start [2025-03-03 14:41:14] Production.INFO: call_cost end [2025-03-03 14:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:41:15] Production.INFO: ==28545== Releasing lock... [2025-03-03 14:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:41:18] Production.INFO: count ==6649 [2025-03-03 14:41:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:41:05 - End Time 2025-03-03 14:41:05 [2025-03-03 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599144', 'tblTempUsageDetail_20' ) start [2025-03-03 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599144', 'tblTempUsageDetail_20' ) end [2025-03-03 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599144', 'tblTempVendorCDR_20' ) start [2025-03-03 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599144', 'tblTempVendorCDR_20' ) end [2025-03-03 14:41:22] Production.INFO: ProcessCDR(1,14599144,1,1,2) [2025-03-03 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599144', 'tblTempUsageDetail_20' ) start [2025-03-03 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599144', 'tblTempUsageDetail_20' ) end [2025-03-03 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:41:28] Production.INFO: ==28553== Releasing lock... [2025-03-03 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:41:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:42:01] Production.INFO: ==28614== Lock acquired, processing the job... [2025-03-03 19:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:42:01] Production.INFO: neon service started [2025-03-03 19:42:01] Production.INFO: neon service started [2025-03-03 19:42:01] Production.INFO: ==28614== Releasing lock... [2025-03-03 19:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:42:02] Production.INFO: ==28616== Lock acquired, processing the job... [2025-03-03 14:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:42:02] Production.INFO: ==28616== Releasing lock... [2025-03-03 14:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:42:02] Production.INFO: ==28618== Lock acquired, processing the job... [2025-03-03 19:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:42:02] Production.INFO: ==28618== Releasing lock... [2025-03-03 19:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:42:03] Production.INFO: ==28620== Lock acquired, processing the job... [2025-03-03 14:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:42:03] Production.INFO: ==28622== Lock acquired, processing the job... [2025-03-03 14:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:42:03] Production.INFO: ==28628== Lock acquired, processing the job... [2025-03-03 14:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:42:03] Production.INFO: ==28630== Lock acquired, processing the job... [2025-03-03 14:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:42:03] Production.INFO: ==28626== Lock acquired, processing the job... [2025-03-03 14:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:42:03] Production.INFO: ==28624== Lock acquired, processing the job... [2025-03-03 14:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:42:04] Production.INFO: ==28622== Releasing lock... [2025-03-03 14:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:42:04] Production.INFO: Account Balance Start. [2025-03-03 14:42:04] Production.INFO: CreateAllLog Start [2025-03-03 14:42:04] Production.INFO: 117 [2025-03-03 14:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: count ==13 [2025-03-03 14:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:42:04] Production.INFO: count ==21 [2025-03-03 14:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599147') start [2025-03-03 14:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.ERROR: done [2025-03-03 14:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599147') end [2025-03-03 14:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:42:04] Production.INFO: 1 [2025-03-03 14:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: ==28630== Releasing lock... [2025-03-03 14:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:42:04] Production.ERROR: done [2025-03-03 14:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:42:05] Production.INFO: Total Charge 0 [2025-03-03 14:42:05] Production.INFO: CreateAllLog End [2025-03-03 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:42:05 [end_date_ymd] => 2025-03-03 14:42:05 [RateCDR] => 1 ) [2025-03-03 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:42:05' and `end` < '2025-03-03 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:42:05] Production.INFO: Account Balance End. [2025-03-03 14:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:42:05] Production.INFO: ==28626== Releasing lock... [2025-03-03 14:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:42:13] Production.ERROR: CronJobId end10 [2025-03-03 14:42:13] Production.INFO: ==28624== Releasing lock... [2025-03-03 14:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:42:15] Production.INFO: call_cost start [2025-03-03 14:42:15] Production.INFO: call_cost end [2025-03-03 14:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:42:16] Production.INFO: ==28620== Releasing lock... [2025-03-03 14:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:42:18] Production.INFO: count ==6643 [2025-03-03 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-03 11:42:05 - End Time 2025-03-03 14:42:05 [2025-03-03 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599149', 'tblTempUsageDetail_20' ) start [2025-03-03 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599149', 'tblTempUsageDetail_20' ) end [2025-03-03 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599149', 'tblTempVendorCDR_20' ) start [2025-03-03 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599149', 'tblTempVendorCDR_20' ) end [2025-03-03 14:42:22] Production.INFO: ProcessCDR(1,14599149,1,1,2) [2025-03-03 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599149', 'tblTempUsageDetail_20' ) start [2025-03-03 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599149', 'tblTempUsageDetail_20' ) end [2025-03-03 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:42:27] Production.INFO: ==28628== Releasing lock... [2025-03-03 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:42:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:43:01] Production.INFO: ==28696== Lock acquired, processing the job... [2025-03-03 19:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:43:01] Production.INFO: neon service started [2025-03-03 19:43:01] Production.INFO: neon service started [2025-03-03 19:43:01] Production.INFO: ==28696== Releasing lock... [2025-03-03 19:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:43:02] Production.INFO: ==28698== Lock acquired, processing the job... [2025-03-03 14:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:43:02] Production.INFO: ==28698== Releasing lock... [2025-03-03 14:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:43:02] Production.INFO: ==28700== Lock acquired, processing the job... [2025-03-03 19:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:43:02] Production.INFO: ==28700== Releasing lock... [2025-03-03 19:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:43:03] Production.INFO: ==28705== Lock acquired, processing the job... [2025-03-03 14:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:43:03] Production.INFO: ==28709== Lock acquired, processing the job... [2025-03-03 14:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:43:03] Production.INFO: ==28711== Lock acquired, processing the job... [2025-03-03 14:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:43:03] Production.INFO: Account Balance Start. [2025-03-03 14:43:03] Production.INFO: CreateAllLog Start [2025-03-03 14:43:03] Production.INFO: 117 [2025-03-03 14:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: ==28703== Lock acquired, processing the job... [2025-03-03 14:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: ==28707== Lock acquired, processing the job... [2025-03-03 14:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:43:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:43:03] Production.INFO: ==28713== Lock acquired, processing the job... [2025-03-03 14:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:43:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: ==28705== Releasing lock... [2025-03-03 14:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:43:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:43:03] Production.INFO: Date 2025-02-14 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:43:03] Production.INFO: Date 2025-02-15 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: Date 2025-02-16 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:03] Production.INFO: count ==13 [2025-03-03 14:43:03] Production.INFO: Date 2025-02-17 [2025-03-03 14:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:43:03] Production.INFO: count ==21 [2025-03-03 14:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599153') start [2025-03-03 14:43:04] Production.ERROR: done [2025-03-03 14:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599153') end [2025-03-03 14:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:43:04] Production.INFO: 1 [2025-03-03 14:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: ==28713== Releasing lock... [2025-03-03 14:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.ERROR: done [2025-03-03 14:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:43:04] Production.INFO: Total Charge 0 [2025-03-03 14:43:04] Production.INFO: CreateAllLog End [2025-03-03 14:43:04] Production.INFO: Account Balance End. [2025-03-03 14:43:04] Production.ERROR: CronJobId end 12 [2025-03-03 14:43:04] Production.INFO: ==28709== Releasing lock... [2025-03-03 14:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:43:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:43:05 [end_date_ymd] => 2025-03-03 14:43:05 [RateCDR] => 1 ) [2025-03-03 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:43:05' and `end` < '2025-03-03 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:43:14] Production.ERROR: CronJobId end10 [2025-03-03 14:43:14] Production.INFO: ==28707== Releasing lock... [2025-03-03 14:43:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:43:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:43:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:43:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:43:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:43:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:43:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:43:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:43:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:43:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:43:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:43:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:43:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:43:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:43:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:43:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:43:15] Production.INFO: call_cost start [2025-03-03 14:43:15] Production.INFO: call_cost end [2025-03-03 14:43:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:43:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:43:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:43:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:43:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:43:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:43:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:43:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:43:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:43:16] Production.INFO: ==28703== Releasing lock... [2025-03-03 14:43:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:43:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:43:19] Production.INFO: count ==6621 [2025-03-03 14:43:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:43:05 - End Time 2025-03-03 14:43:05 [2025-03-03 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599154', 'tblTempUsageDetail_20' ) start [2025-03-03 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599154', 'tblTempUsageDetail_20' ) end [2025-03-03 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599154', 'tblTempVendorCDR_20' ) start [2025-03-03 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599154', 'tblTempVendorCDR_20' ) end [2025-03-03 14:43:22] Production.INFO: ProcessCDR(1,14599154,1,1,2) [2025-03-03 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599154', 'tblTempUsageDetail_20' ) start [2025-03-03 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599154', 'tblTempUsageDetail_20' ) end [2025-03-03 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:43:27] Production.INFO: ==28711== Releasing lock... [2025-03-03 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:43:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:44:01] Production.INFO: ==28769== Lock acquired, processing the job... [2025-03-03 19:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:44:02] Production.INFO: neon service started [2025-03-03 19:44:02] Production.INFO: neon service started [2025-03-03 19:44:02] Production.INFO: ==28769== Releasing lock... [2025-03-03 19:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:44:02] Production.INFO: ==28771== Lock acquired, processing the job... [2025-03-03 14:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:44:02] Production.INFO: ==28771== Releasing lock... [2025-03-03 14:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:44:02] Production.INFO: ==28773== Lock acquired, processing the job... [2025-03-03 19:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:44:02] Production.INFO: ==28773== Releasing lock... [2025-03-03 19:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:44:03] Production.INFO: ==28782== Lock acquired, processing the job... [2025-03-03 14:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:44:03] Production.INFO: ==28776== Lock acquired, processing the job... [2025-03-03 14:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:44:03] Production.INFO: ==28784== Lock acquired, processing the job... [2025-03-03 14:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:44:03] Production.INFO: Account Balance Start. [2025-03-03 14:44:03] Production.INFO: CreateAllLog Start [2025-03-03 14:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:44:03] Production.INFO: 117 [2025-03-03 14:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:44:03] Production.INFO: ==28778== Lock acquired, processing the job... [2025-03-03 14:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:44:03] Production.INFO: ==28780== Lock acquired, processing the job... [2025-03-03 14:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: ==28786== Lock acquired, processing the job... [2025-03-03 14:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:44:04] Production.ERROR: done [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: count ==13 [2025-03-03 14:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:44:04] Production.INFO: count ==21 [2025-03-03 14:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599158') start [2025-03-03 14:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: ==28778== Releasing lock... [2025-03-03 14:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599158') end [2025-03-03 14:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:44:04] Production.INFO: 1 [2025-03-03 14:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:44:04] Production.ERROR: done [2025-03-03 14:44:04] Production.INFO: ==28786== Releasing lock... [2025-03-03 14:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:44:05] Production.INFO: Total Charge 0 [2025-03-03 14:44:05] Production.INFO: CreateAllLog End [2025-03-03 14:44:05] Production.INFO: Account Balance End. [2025-03-03 14:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:44:05] Production.INFO: ==28782== Releasing lock... [2025-03-03 14:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:44:05 [end_date_ymd] => 2025-03-03 14:44:05 [RateCDR] => 1 ) [2025-03-03 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:44:05' and `end` < '2025-03-03 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:44:14] Production.ERROR: CronJobId end10 [2025-03-03 14:44:14] Production.INFO: ==28780== Releasing lock... [2025-03-03 14:44:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:44:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:44:15] Production.INFO: call_cost start [2025-03-03 14:44:15] Production.INFO: call_cost end [2025-03-03 14:44:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:44:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:44:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:44:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:44:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:44:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:44:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:44:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:44:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:44:16] Production.INFO: ==28776== Releasing lock... [2025-03-03 14:44:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:44:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:44:19] Production.INFO: count ==6600 [2025-03-03 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:44:05 - End Time 2025-03-03 14:44:05 [2025-03-03 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599159', 'tblTempUsageDetail_20' ) start [2025-03-03 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599159', 'tblTempUsageDetail_20' ) end [2025-03-03 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599159', 'tblTempVendorCDR_20' ) start [2025-03-03 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599159', 'tblTempVendorCDR_20' ) end [2025-03-03 14:44:22] Production.INFO: ProcessCDR(1,14599159,1,1,2) [2025-03-03 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599159', 'tblTempUsageDetail_20' ) start [2025-03-03 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599159', 'tblTempUsageDetail_20' ) end [2025-03-03 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:44:27] Production.INFO: ==28784== Releasing lock... [2025-03-03 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:44:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:45:01] Production.INFO: ==28848== Lock acquired, processing the job... [2025-03-03 19:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:45:01] Production.INFO: neon service started [2025-03-03 19:45:01] Production.INFO: neon service started [2025-03-03 19:45:01] Production.INFO: ==28848== Releasing lock... [2025-03-03 19:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:45:02] Production.INFO: ==28850== Lock acquired, processing the job... [2025-03-03 14:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:45:02] Production.INFO: ==28852== Lock acquired, processing the job... [2025-03-03 19:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:45:02] Production.INFO: ==28852== Releasing lock... [2025-03-03 19:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:45:02] Production.INFO: ==28850== Releasing lock... [2025-03-03 14:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:45:03] Production.INFO: ==28855== Lock acquired, processing the job... [2025-03-03 14:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:45:03] Production.INFO: ==28861== Lock acquired, processing the job... [2025-03-03 14:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:45:03] Production.INFO: ==28863== Lock acquired, processing the job... [2025-03-03 14:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:45:03] Production.INFO: ==28857== Lock acquired, processing the job... [2025-03-03 14:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:45:03] Production.INFO: ==28859== Lock acquired, processing the job... [2025-03-03 14:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:45:03] Production.INFO: Account Balance Start. [2025-03-03 14:45:03] Production.INFO: CreateAllLog Start [2025-03-03 14:45:03] Production.INFO: 117 [2025-03-03 14:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:45:04] Production.INFO: ==28865== Lock acquired, processing the job... [2025-03-03 14:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:45:04] Production.INFO: ==28857== Releasing lock... [2025-03-03 14:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:45:04] Production.INFO: count ==13 [2025-03-03 14:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:45:04] Production.INFO: count ==21 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599163') start [2025-03-03 14:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599163') end [2025-03-03 14:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:45:04] Production.INFO: 1 [2025-03-03 14:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:45:04] Production.ERROR: done [2025-03-03 14:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: ==28865== Releasing lock... [2025-03-03 14:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.ERROR: done [2025-03-03 14:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:45:05] Production.INFO: Total Charge 0 [2025-03-03 14:45:05] Production.INFO: CreateAllLog End [2025-03-03 14:45:05] Production.INFO: Account Balance End. [2025-03-03 14:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:45:05] Production.INFO: ==28861== Releasing lock... [2025-03-03 14:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:45:05 [end_date_ymd] => 2025-03-03 14:45:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:45:05' and `end` < '2025-03-03 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-03-03 14:45:13] Production.ERROR: CronJobId end10 [2025-03-03 14:45:13] Production.INFO: ==28859== Releasing lock... [2025-03-03 14:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:45:15] Production.INFO: call_cost start [2025-03-03 14:45:15] Production.INFO: call_cost end [2025-03-03 14:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:45:16] Production.INFO: ==28855== Releasing lock... [2025-03-03 14:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:45:20] Production.INFO: count ==6600 [2025-03-03 14:45:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:45:05 - End Time 2025-03-03 14:45:05 [2025-03-03 14:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599164', 'tblTempUsageDetail_20' ) start [2025-03-03 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599164', 'tblTempUsageDetail_20' ) end [2025-03-03 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599164', 'tblTempVendorCDR_20' ) start [2025-03-03 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599164', 'tblTempVendorCDR_20' ) end [2025-03-03 14:45:23] Production.INFO: ProcessCDR(1,14599164,1,1,2) [2025-03-03 14:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599164', 'tblTempUsageDetail_20' ) start [2025-03-03 14:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599164', 'tblTempUsageDetail_20' ) end [2025-03-03 14:45:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:45:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:45:29] Production.INFO: ==28863== Releasing lock... [2025-03-03 14:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:45:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:46:02] Production.INFO: ==28920== Lock acquired, processing the job... [2025-03-03 19:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:46:02] Production.INFO: neon service started [2025-03-03 19:46:02] Production.INFO: neon service started [2025-03-03 19:46:02] Production.INFO: ==28920== Releasing lock... [2025-03-03 19:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:46:02] Production.INFO: ==28923== Lock acquired, processing the job... [2025-03-03 14:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:46:02] Production.INFO: ==28923== Releasing lock... [2025-03-03 14:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:46:02] Production.INFO: ==28925== Lock acquired, processing the job... [2025-03-03 19:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:46:03] Production.INFO: ==28925== Releasing lock... [2025-03-03 19:46:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:46:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:46:03] Production.INFO: ==28929== Lock acquired, processing the job... [2025-03-03 14:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:46:03] Production.INFO: ==28937== Lock acquired, processing the job... [2025-03-03 14:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:46:03] Production.INFO: ==28927== Lock acquired, processing the job... [2025-03-03 14:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:46:04] Production.INFO: ==28929== Releasing lock... [2025-03-03 14:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:46:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:46:04] Production.INFO: count ==13 [2025-03-03 14:46:04] Production.INFO: ==28931== Lock acquired, processing the job... [2025-03-03 14:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:46:04] Production.INFO: count ==21 [2025-03-03 14:46:04] Production.INFO: ==28933== Lock acquired, processing the job... [2025-03-03 14:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599167') start [2025-03-03 14:46:04] Production.INFO: ==28935== Lock acquired, processing the job... [2025-03-03 14:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:46:04] Production.INFO: Account Balance Start. [2025-03-03 14:46:04] Production.INFO: CreateAllLog Start [2025-03-03 14:46:04] Production.INFO: 117 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599167') end [2025-03-03 14:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:46:04] Production.INFO: 1 [2025-03-03 14:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: ==28937== Releasing lock... [2025-03-03 14:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.ERROR: done [2025-03-03 14:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.ERROR: done [2025-03-03 14:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:46:05] Production.INFO: Total Charge 0 [2025-03-03 14:46:05] Production.INFO: CreateAllLog End [2025-03-03 14:46:05] Production.INFO: Account Balance End. [2025-03-03 14:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:46:05] Production.INFO: ==28933== Releasing lock... [2025-03-03 14:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:46:06 [end_date_ymd] => 2025-03-03 14:46:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:46:06' and `end` < '2025-03-03 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-03-03 14:46:14] Production.ERROR: CronJobId end10 [2025-03-03 14:46:14] Production.INFO: ==28931== Releasing lock... [2025-03-03 14:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:46:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:46:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:46:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:46:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:46:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:46:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:46:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:46:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:46:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:46:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:46:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:46:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:46:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:46:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:46:16] Production.INFO: call_cost start [2025-03-03 14:46:16] Production.INFO: call_cost end [2025-03-03 14:46:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:46:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:46:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:46:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:46:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:46:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:46:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:46:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:46:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:46:17] Production.INFO: ==28927== Releasing lock... [2025-03-03 14:46:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:46:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:46:19] Production.INFO: count ==6609 [2025-03-03 14:46:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:46:06 - End Time 2025-03-03 14:46:06 [2025-03-03 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599169', 'tblTempUsageDetail_20' ) start [2025-03-03 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599169', 'tblTempUsageDetail_20' ) end [2025-03-03 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599169', 'tblTempVendorCDR_20' ) start [2025-03-03 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599169', 'tblTempVendorCDR_20' ) end [2025-03-03 14:46:23] Production.INFO: ProcessCDR(1,14599169,1,1,2) [2025-03-03 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599169', 'tblTempUsageDetail_20' ) start [2025-03-03 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599169', 'tblTempUsageDetail_20' ) end [2025-03-03 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:46:28] Production.INFO: ==28935== Releasing lock... [2025-03-03 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:46:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:47:01] Production.INFO: ==29033== Lock acquired, processing the job... [2025-03-03 19:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:47:01] Production.INFO: neon service started [2025-03-03 19:47:01] Production.INFO: neon service started [2025-03-03 19:47:01] Production.INFO: ==29033== Releasing lock... [2025-03-03 19:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:47:01] Production.INFO: ==29035== Lock acquired, processing the job... [2025-03-03 14:47:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:47:02] Production.INFO: ==29035== Releasing lock... [2025-03-03 14:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:47:02] Production.INFO: ==29037== Lock acquired, processing the job... [2025-03-03 19:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:47:02] Production.INFO: ==29037== Releasing lock... [2025-03-03 19:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:47:03] Production.INFO: ==29045== Lock acquired, processing the job... [2025-03-03 14:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:47:03] Production.INFO: ==29049== Lock acquired, processing the job... [2025-03-03 14:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:47:03] Production.INFO: Account Balance Start. [2025-03-03 14:47:03] Production.INFO: CreateAllLog Start [2025-03-03 14:47:03] Production.INFO: 117 [2025-03-03 14:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: ==29039== Lock acquired, processing the job... [2025-03-03 14:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:47:03] Production.INFO: ==29041== Lock acquired, processing the job... [2025-03-03 14:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: count ==13 [2025-03-03 14:47:03] Production.INFO: ==29043== Lock acquired, processing the job... [2025-03-03 14:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:47:03] Production.INFO: count ==21 [2025-03-03 14:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599171') start [2025-03-03 14:47:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: ==29047== Lock acquired, processing the job... [2025-03-03 14:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:47:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:47:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:47:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599171') end [2025-03-03 14:47:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:47:03] Production.INFO: 1 [2025-03-03 14:47:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:47:03] Production.INFO: Date 2025-02-14 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:47:03] Production.INFO: Date 2025-02-15 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: Date 2025-02-16 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: ==29049== Releasing lock... [2025-03-03 14:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:47:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:47:03] Production.INFO: Date 2025-02-17 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: Date 2025-02-18 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: ==29041== Releasing lock... [2025-03-03 14:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:47:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:47:03] Production.INFO: Date 2025-02-19 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:03] Production.INFO: Date 2025-02-20 [2025-03-03 14:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.ERROR: done [2025-03-03 14:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.ERROR: done [2025-03-03 14:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:47:04] Production.INFO: Total Charge 0 [2025-03-03 14:47:04] Production.INFO: CreateAllLog End [2025-03-03 14:47:04] Production.INFO: Account Balance End. [2025-03-03 14:47:04] Production.ERROR: CronJobId end 12 [2025-03-03 14:47:04] Production.INFO: ==29045== Releasing lock... [2025-03-03 14:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:47:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:47:05 [end_date_ymd] => 2025-03-03 14:47:05 [RateCDR] => 1 ) [2025-03-03 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:47:05' and `end` < '2025-03-03 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:47:14] Production.ERROR: CronJobId end10 [2025-03-03 14:47:14] Production.INFO: ==29043== Releasing lock... [2025-03-03 14:47:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:47:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:47:15] Production.INFO: call_cost start [2025-03-03 14:47:15] Production.INFO: call_cost end [2025-03-03 14:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:47:16] Production.INFO: ==29039== Releasing lock... [2025-03-03 14:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:47:19] Production.INFO: count ==6620 [2025-03-03 14:47:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:47:05 - End Time 2025-03-03 14:47:05 [2025-03-03 14:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599174', 'tblTempUsageDetail_20' ) start [2025-03-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599174', 'tblTempUsageDetail_20' ) end [2025-03-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599174', 'tblTempVendorCDR_20' ) start [2025-03-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599174', 'tblTempVendorCDR_20' ) end [2025-03-03 14:47:23] Production.INFO: ProcessCDR(1,14599174,1,1,2) [2025-03-03 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599174', 'tblTempUsageDetail_20' ) start [2025-03-03 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599174', 'tblTempUsageDetail_20' ) end [2025-03-03 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:47:28] Production.INFO: ==29047== Releasing lock... [2025-03-03 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:47:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:48:02] Production.INFO: ==29107== Lock acquired, processing the job... [2025-03-03 19:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:48:02] Production.INFO: neon service started [2025-03-03 19:48:02] Production.INFO: neon service started [2025-03-03 19:48:02] Production.INFO: ==29107== Releasing lock... [2025-03-03 19:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:48:02] Production.INFO: ==29109== Lock acquired, processing the job... [2025-03-03 14:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:48:02] Production.INFO: ==29109== Releasing lock... [2025-03-03 14:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:48:02] Production.INFO: ==29111== Lock acquired, processing the job... [2025-03-03 19:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:48:03] Production.INFO: ==29111== Releasing lock... [2025-03-03 19:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:48:03] Production.INFO: ==29114== Lock acquired, processing the job... [2025-03-03 14:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:48:03] Production.INFO: ==29116== Lock acquired, processing the job... [2025-03-03 14:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:48:03] Production.INFO: ==29118== Lock acquired, processing the job... [2025-03-03 14:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:48:03] Production.INFO: ==29120== Lock acquired, processing the job... [2025-03-03 14:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:48:04] Production.INFO: ==29124== Lock acquired, processing the job... [2025-03-03 14:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:48:04] Production.INFO: ==29122== Lock acquired, processing the job... [2025-03-03 14:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:48:04] Production.INFO: Account Balance Start. [2025-03-03 14:48:04] Production.INFO: CreateAllLog Start [2025-03-03 14:48:04] Production.INFO: 117 [2025-03-03 14:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:48:04] Production.INFO: count ==13 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: count ==21 [2025-03-03 14:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599177') start [2025-03-03 14:48:04] Production.INFO: ==29116== Releasing lock... [2025-03-03 14:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599177') end [2025-03-03 14:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:48:04] Production.INFO: 1 [2025-03-03 14:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: ==29124== Releasing lock... [2025-03-03 14:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.ERROR: done [2025-03-03 14:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.ERROR: done [2025-03-03 14:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:48:05] Production.INFO: Total Charge 0 [2025-03-03 14:48:05] Production.INFO: CreateAllLog End [2025-03-03 14:48:05] Production.INFO: Account Balance End. [2025-03-03 14:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:48:05] Production.INFO: ==29120== Releasing lock... [2025-03-03 14:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:48:06 [end_date_ymd] => 2025-03-03 14:48:06 [RateCDR] => 1 ) [2025-03-03 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:48:06' and `end` < '2025-03-03 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:48:15] Production.ERROR: CronJobId end10 [2025-03-03 14:48:15] Production.INFO: ==29118== Releasing lock... [2025-03-03 14:48:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:48:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:48:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:48:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:48:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:48:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:48:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:48:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:48:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:48:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:48:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:48:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:48:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:48:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:48:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:48:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:48:17] Production.INFO: call_cost start [2025-03-03 14:48:17] Production.INFO: call_cost end [2025-03-03 14:48:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:48:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:48:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:48:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:48:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:48:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:48:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:48:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:48:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:48:18] Production.INFO: ==29114== Releasing lock... [2025-03-03 14:48:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:48:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:48:20] Production.INFO: count ==6601 [2025-03-03 14:48:24] Production.ERROR: pbx CDR StartTime 2025-03-03 11:48:06 - End Time 2025-03-03 14:48:06 [2025-03-03 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599179', 'tblTempUsageDetail_20' ) start [2025-03-03 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599179', 'tblTempUsageDetail_20' ) end [2025-03-03 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599179', 'tblTempVendorCDR_20' ) start [2025-03-03 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599179', 'tblTempVendorCDR_20' ) end [2025-03-03 14:48:24] Production.INFO: ProcessCDR(1,14599179,1,1,2) [2025-03-03 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599179', 'tblTempUsageDetail_20' ) start [2025-03-03 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599179', 'tblTempUsageDetail_20' ) end [2025-03-03 14:48:30] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:48:30] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:48:30] Production.INFO: ==29122== Releasing lock... [2025-03-03 14:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:48:30] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:49:01] Production.INFO: ==29183== Lock acquired, processing the job... [2025-03-03 19:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:49:01] Production.INFO: neon service started [2025-03-03 19:49:01] Production.INFO: neon service started [2025-03-03 19:49:01] Production.INFO: ==29183== Releasing lock... [2025-03-03 19:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:49:01] Production.INFO: ==29187== Lock acquired, processing the job... [2025-03-03 19:49:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:49:02] Production.INFO: ==29187== Releasing lock... [2025-03-03 19:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:49:02] Production.INFO: ==29185== Lock acquired, processing the job... [2025-03-03 14:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:49:02] Production.INFO: ==29185== Releasing lock... [2025-03-03 14:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:49:03] Production.INFO: ==29196== Lock acquired, processing the job... [2025-03-03 14:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:49:03] Production.INFO: ==29202== Lock acquired, processing the job... [2025-03-03 14:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:49:03] Production.INFO: ==29194== Lock acquired, processing the job... [2025-03-03 14:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:49:03] Production.INFO: ==29192== Lock acquired, processing the job... [2025-03-03 14:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:49:03] Production.INFO: count ==13 [2025-03-03 14:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:49:03] Production.INFO: count ==21 [2025-03-03 14:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599180') start [2025-03-03 14:49:03] Production.INFO: ==29198== Lock acquired, processing the job... [2025-03-03 14:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599180') end [2025-03-03 14:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:49:04] Production.INFO: 1 [2025-03-03 14:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:49:04] Production.INFO: ==29200== Lock acquired, processing the job... [2025-03-03 14:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:49:04] Production.INFO: Account Balance Start. [2025-03-03 14:49:04] Production.INFO: CreateAllLog Start [2025-03-03 14:49:04] Production.INFO: 117 [2025-03-03 14:49:04] Production.INFO: ==29202== Releasing lock... [2025-03-03 14:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: ==29194== Releasing lock... [2025-03-03 14:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.ERROR: done [2025-03-03 14:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.ERROR: done [2025-03-03 14:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:49:05] Production.INFO: Total Charge 0 [2025-03-03 14:49:05] Production.INFO: CreateAllLog End [2025-03-03 14:49:05] Production.INFO: Account Balance End. [2025-03-03 14:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:49:05] Production.INFO: ==29198== Releasing lock... [2025-03-03 14:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:49:06 [end_date_ymd] => 2025-03-03 14:49:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:49:06' and `end` < '2025-03-03 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-03-03 14:49:14] Production.ERROR: CronJobId end10 [2025-03-03 14:49:14] Production.INFO: ==29196== Releasing lock... [2025-03-03 14:49:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:49:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:49:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:49:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:49:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:49:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:49:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:49:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:49:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:49:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:49:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:49:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:49:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:49:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:49:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:49:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:49:16] Production.INFO: call_cost start [2025-03-03 14:49:16] Production.INFO: call_cost end [2025-03-03 14:49:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:49:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:49:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:49:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:49:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:49:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:49:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:49:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:49:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:49:17] Production.INFO: ==29192== Releasing lock... [2025-03-03 14:49:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:49:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:49:19] Production.INFO: count ==6606 [2025-03-03 14:49:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:49:06 - End Time 2025-03-03 14:49:06 [2025-03-03 14:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599184', 'tblTempUsageDetail_20' ) start [2025-03-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599184', 'tblTempUsageDetail_20' ) end [2025-03-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599184', 'tblTempVendorCDR_20' ) start [2025-03-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599184', 'tblTempVendorCDR_20' ) end [2025-03-03 14:49:23] Production.INFO: ProcessCDR(1,14599184,1,1,2) [2025-03-03 14:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599184', 'tblTempUsageDetail_20' ) start [2025-03-03 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599184', 'tblTempUsageDetail_20' ) end [2025-03-03 14:49:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:49:29] Production.INFO: ==29200== Releasing lock... [2025-03-03 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:49:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:50:02] Production.INFO: ==29261== Lock acquired, processing the job... [2025-03-03 19:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:50:02] Production.INFO: neon service started [2025-03-03 19:50:02] Production.INFO: neon service started [2025-03-03 19:50:02] Production.INFO: ==29261== Releasing lock... [2025-03-03 19:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:50:02] Production.INFO: ==29266== Lock acquired, processing the job... [2025-03-03 19:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:50:02] Production.INFO: ==29266== Releasing lock... [2025-03-03 19:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:50:02] Production.INFO: ==29264== Lock acquired, processing the job... [2025-03-03 14:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:50:03] Production.INFO: ==29264== Releasing lock... [2025-03-03 14:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:50:04] Production.INFO: ==29268== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 14:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 14:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 14:50:04] Production.INFO: ==29268== Releasing lock... [2025-03-03 14:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 14:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 14:50:04] Production.INFO: ==29274== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:50:04] Production.INFO: ==29276== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:50:04] Production.INFO: Account Balance Start. [2025-03-03 14:50:04] Production.INFO: CreateAllLog Start [2025-03-03 14:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:50:04] Production.INFO: 117 [2025-03-03 14:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:50:04] Production.INFO: ==29282== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: ==29270== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: count ==13 [2025-03-03 14:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:50:04] Production.INFO: count ==21 [2025-03-03 14:50:04] Production.INFO: ==29272== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599186') start [2025-03-03 14:50:04] Production.INFO: ==29278== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: ==29280== Lock acquired, processing the job... [2025-03-03 14:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 14:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599186') end [2025-03-03 14:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:50:04] Production.INFO: 1 [2025-03-03 14:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:04] Production.INFO: ==29282== Releasing lock... [2025-03-03 14:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.ERROR: done [2025-03-03 14:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.ERROR: done [2025-03-03 14:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:50:05] Production.INFO: ==29272== Releasing lock... [2025-03-03 14:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 14:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599189', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 14:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.ERROR: done [2025-03-03 14:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:50:06] Production.INFO: Total Charge 0 [2025-03-03 14:50:06] Production.INFO: CreateAllLog End [2025-03-03 14:50:06] Production.INFO: Account Balance End. [2025-03-03 14:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 14:50:06] Production.INFO: ==29276== Releasing lock... [2025-03-03 14:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:50:07 [end_date_ymd] => 2025-03-03 14:50:07 [RateCDR] => 1 ) [2025-03-03 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:50:07' and `end` < '2025-03-03 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599189', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 14:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 14:50:10] Production.INFO: ProcessCDR(1,14599189,1,1,2) [2025-03-03 14:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599189,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599189,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:50:10] Production.INFO: ==29280== Releasing lock... [2025-03-03 14:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 14:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:50:17] Production.ERROR: CronJobId end10 [2025-03-03 14:50:17] Production.INFO: ==29274== Releasing lock... [2025-03-03 14:50:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:50:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:50:19] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:50:19] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:50:19] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:50:19] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:50:19] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:50:19] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:50:19] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:50:19] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:50:19] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:50:19] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:50:19] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:50:19] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:50:19] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:50:19] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:50:20] Production.INFO: call_cost start [2025-03-03 14:50:20] Production.INFO: call_cost end [2025-03-03 14:50:21] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:50:21] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:50:21] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:50:21] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:50:21] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:50:21] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:50:21] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:50:21] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:50:21] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:50:21] Production.INFO: ==29270== Releasing lock... [2025-03-03 14:50:21] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:50:21] Production.INFO: count ==6625 [2025-03-03 14:50:25] Production.ERROR: pbx CDR StartTime 2025-03-03 11:50:07 - End Time 2025-03-03 14:50:07 [2025-03-03 14:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599190', 'tblTempUsageDetail_20' ) start [2025-03-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599190', 'tblTempUsageDetail_20' ) end [2025-03-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599190', 'tblTempVendorCDR_20' ) start [2025-03-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599190', 'tblTempVendorCDR_20' ) end [2025-03-03 14:50:25] Production.INFO: ProcessCDR(1,14599190,1,1,2) [2025-03-03 14:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599190', 'tblTempUsageDetail_20' ) start [2025-03-03 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599190', 'tblTempUsageDetail_20' ) end [2025-03-03 14:50:30] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:50:31] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:50:31] Production.INFO: ==29278== Releasing lock... [2025-03-03 14:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:50:31] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:51:01] Production.INFO: ==29340== Lock acquired, processing the job... [2025-03-03 19:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:51:01] Production.INFO: neon service started [2025-03-03 19:51:01] Production.INFO: neon service started [2025-03-03 19:51:01] Production.INFO: ==29340== Releasing lock... [2025-03-03 19:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:51:02] Production.INFO: ==29344== Lock acquired, processing the job... [2025-03-03 19:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:51:02] Production.INFO: ==29344== Releasing lock... [2025-03-03 19:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:51:02] Production.INFO: ==29342== Lock acquired, processing the job... [2025-03-03 14:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:51:02] Production.INFO: ==29342== Releasing lock... [2025-03-03 14:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:51:03] Production.INFO: ==29349== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:51:03] Production.INFO: ==29357== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:51:03] Production.INFO: ==29347== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:51:03] Production.INFO: ==29351== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:51:03] Production.INFO: count ==13 [2025-03-03 14:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:51:03] Production.INFO: count ==21 [2025-03-03 14:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599192') start [2025-03-03 14:51:03] Production.INFO: ==29353== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:51:03] Production.INFO: ==29349== Releasing lock... [2025-03-03 14:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:51:03] Production.INFO: ==29355== Lock acquired, processing the job... [2025-03-03 14:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599192') end [2025-03-03 14:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:51:04] Production.INFO: 1 [2025-03-03 14:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:51:04] Production.INFO: Account Balance Start. [2025-03-03 14:51:04] Production.INFO: CreateAllLog Start [2025-03-03 14:51:04] Production.INFO: 117 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: ==29357== Releasing lock... [2025-03-03 14:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.ERROR: done [2025-03-03 14:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.ERROR: done [2025-03-03 14:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:51:05] Production.INFO: Total Charge 0 [2025-03-03 14:51:05] Production.INFO: CreateAllLog End [2025-03-03 14:51:05] Production.INFO: Account Balance End. [2025-03-03 14:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:51:05] Production.INFO: ==29353== Releasing lock... [2025-03-03 14:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:51:05 [end_date_ymd] => 2025-03-03 14:51:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:51:05' and `end` < '2025-03-03 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-03-03 14:51:14] Production.ERROR: CronJobId end10 [2025-03-03 14:51:14] Production.INFO: ==29351== Releasing lock... [2025-03-03 14:51:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:51:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:51:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:51:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:51:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:51:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:51:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:51:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:51:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:51:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:51:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:51:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:51:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:51:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:51:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:51:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:51:17] Production.INFO: call_cost start [2025-03-03 14:51:17] Production.INFO: call_cost end [2025-03-03 14:51:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:51:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:51:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:51:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:51:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:51:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:51:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:51:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:51:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:51:18] Production.INFO: ==29347== Releasing lock... [2025-03-03 14:51:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:51:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:51:21] Production.INFO: count ==6642 [2025-03-03 14:51:25] Production.ERROR: pbx CDR StartTime 2025-03-03 11:51:05 - End Time 2025-03-03 14:51:05 [2025-03-03 14:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599195', 'tblTempUsageDetail_20' ) start [2025-03-03 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599195', 'tblTempUsageDetail_20' ) end [2025-03-03 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599195', 'tblTempVendorCDR_20' ) start [2025-03-03 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599195', 'tblTempVendorCDR_20' ) end [2025-03-03 14:51:25] Production.INFO: ProcessCDR(1,14599195,1,1,2) [2025-03-03 14:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599195', 'tblTempUsageDetail_20' ) start [2025-03-03 14:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599195', 'tblTempUsageDetail_20' ) end [2025-03-03 14:51:31] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:51:31] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:51:31] Production.INFO: ==29355== Releasing lock... [2025-03-03 14:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:51:31] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:52:02] Production.INFO: ==29418== Lock acquired, processing the job... [2025-03-03 19:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:52:02] Production.INFO: neon service started [2025-03-03 19:52:02] Production.INFO: neon service started [2025-03-03 19:52:02] Production.INFO: ==29418== Releasing lock... [2025-03-03 19:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:52:02] Production.INFO: ==29420== Lock acquired, processing the job... [2025-03-03 14:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:52:02] Production.INFO: ==29420== Releasing lock... [2025-03-03 14:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:52:02] Production.INFO: ==29422== Lock acquired, processing the job... [2025-03-03 19:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:52:03] Production.INFO: ==29422== Releasing lock... [2025-03-03 19:52:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:52:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:52:03] Production.INFO: ==29432== Lock acquired, processing the job... [2025-03-03 14:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:52:03] Production.INFO: ==29430== Lock acquired, processing the job... [2025-03-03 14:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:52:04] Production.INFO: ==29424== Lock acquired, processing the job... [2025-03-03 14:52:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:52:04] Production.INFO: ==29426== Lock acquired, processing the job... [2025-03-03 14:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:52:04] Production.INFO: ==29428== Lock acquired, processing the job... [2025-03-03 14:52:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:52:04] Production.INFO: ==29434== Lock acquired, processing the job... [2025-03-03 14:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:52:04] Production.INFO: Account Balance Start. [2025-03-03 14:52:04] Production.INFO: CreateAllLog Start [2025-03-03 14:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:52:04] Production.INFO: 117 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.ERROR: done [2025-03-03 14:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:52:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:52:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:52:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: count ==13 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:52:04] Production.INFO: count ==21 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: ==29426== Releasing lock... [2025-03-03 14:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599199') start [2025-03-03 14:52:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.ERROR: done [2025-03-03 14:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599199') end [2025-03-03 14:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:52:04] Production.INFO: 1 [2025-03-03 14:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: ==29434== Releasing lock... [2025-03-03 14:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:52:05] Production.INFO: Total Charge 0 [2025-03-03 14:52:05] Production.INFO: CreateAllLog End [2025-03-03 14:52:05] Production.INFO: Account Balance End. [2025-03-03 14:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:52:05] Production.INFO: ==29430== Releasing lock... [2025-03-03 14:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:52:06 [end_date_ymd] => 2025-03-03 14:52:06 [RateCDR] => 1 ) [2025-03-03 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:52:06' and `end` < '2025-03-03 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:52:14] Production.ERROR: CronJobId end10 [2025-03-03 14:52:14] Production.INFO: ==29428== Releasing lock... [2025-03-03 14:52:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:52:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:52:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:52:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:52:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:52:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:52:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:52:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:52:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:52:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:52:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:52:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:52:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:52:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:52:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:52:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:52:16] Production.INFO: call_cost start [2025-03-03 14:52:16] Production.INFO: call_cost end [2025-03-03 14:52:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:52:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:52:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:52:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:52:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:52:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:52:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:52:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:52:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:52:17] Production.INFO: ==29424== Releasing lock... [2025-03-03 14:52:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:52:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:52:19] Production.INFO: count ==6620 [2025-03-03 14:52:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:52:06 - End Time 2025-03-03 14:52:06 [2025-03-03 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599200', 'tblTempUsageDetail_20' ) start [2025-03-03 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599200', 'tblTempUsageDetail_20' ) end [2025-03-03 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599200', 'tblTempVendorCDR_20' ) start [2025-03-03 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599200', 'tblTempVendorCDR_20' ) end [2025-03-03 14:52:23] Production.INFO: ProcessCDR(1,14599200,1,1,2) [2025-03-03 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599200', 'tblTempUsageDetail_20' ) start [2025-03-03 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599200', 'tblTempUsageDetail_20' ) end [2025-03-03 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:52:29] Production.INFO: ==29432== Releasing lock... [2025-03-03 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:52:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:53:01] Production.INFO: ==29490== Lock acquired, processing the job... [2025-03-03 19:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:53:01] Production.INFO: neon service started [2025-03-03 19:53:01] Production.INFO: neon service started [2025-03-03 19:53:01] Production.INFO: ==29490== Releasing lock... [2025-03-03 19:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:53:01] Production.INFO: ==29492== Lock acquired, processing the job... [2025-03-03 14:53:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:53:02] Production.INFO: ==29494== Lock acquired, processing the job... [2025-03-03 19:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:53:02] Production.INFO: ==29492== Releasing lock... [2025-03-03 14:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:53:02] Production.INFO: ==29494== Releasing lock... [2025-03-03 19:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:53:02] Production.INFO: ==29498== Lock acquired, processing the job... [2025-03-03 14:53:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:53:02] Production.INFO: ==29496== Lock acquired, processing the job... [2025-03-03 14:53:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:53:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:53:03] Production.INFO: ==29498== Releasing lock... [2025-03-03 14:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:53:03] Production.INFO: ==29502== Lock acquired, processing the job... [2025-03-03 14:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:53:03] Production.INFO: Account Balance Start. [2025-03-03 14:53:03] Production.INFO: CreateAllLog Start [2025-03-03 14:53:03] Production.INFO: 117 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: ==29500== Lock acquired, processing the job... [2025-03-03 14:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:53:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:53:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:53:03] Production.INFO: ==29506== Lock acquired, processing the job... [2025-03-03 14:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: ==29504== Lock acquired, processing the job... [2025-03-03 14:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:53:03] Production.INFO: Date 2025-02-14 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-15 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-16 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:53:03] Production.INFO: Date 2025-02-17 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:03] Production.INFO: count ==13 [2025-03-03 14:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:53:03] Production.INFO: count ==21 [2025-03-03 14:53:03] Production.INFO: Date 2025-02-18 [2025-03-03 14:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599204') start [2025-03-03 14:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599204') end [2025-03-03 14:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:53:04] Production.INFO: 1 [2025-03-03 14:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:53:04] Production.ERROR: done [2025-03-03 14:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:53:04] Production.INFO: ==29506== Releasing lock... [2025-03-03 14:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.ERROR: done [2025-03-03 14:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:53:05] Production.INFO: Total Charge 0 [2025-03-03 14:53:05] Production.INFO: CreateAllLog End [2025-03-03 14:53:05] Production.INFO: Account Balance End. [2025-03-03 14:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:53:05] Production.INFO: ==29502== Releasing lock... [2025-03-03 14:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:53:05 [end_date_ymd] => 2025-03-03 14:53:05 [RateCDR] => 1 ) [2025-03-03 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:53:05' and `end` < '2025-03-03 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:53:12] Production.ERROR: CronJobId end10 [2025-03-03 14:53:12] Production.INFO: ==29500== Releasing lock... [2025-03-03 14:53:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:53:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:53:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:53:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:53:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:53:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:53:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:53:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:53:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:53:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:53:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:53:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:53:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:53:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:53:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:53:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:53:15] Production.INFO: call_cost start [2025-03-03 14:53:15] Production.INFO: call_cost end [2025-03-03 14:53:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:53:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:53:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:53:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:53:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:53:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:53:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:53:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:53:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:53:16] Production.INFO: ==29496== Releasing lock... [2025-03-03 14:53:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:53:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:53:19] Production.INFO: count ==6621 [2025-03-03 14:53:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:53:05 - End Time 2025-03-03 14:53:05 [2025-03-03 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599205', 'tblTempUsageDetail_20' ) start [2025-03-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599205', 'tblTempUsageDetail_20' ) end [2025-03-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599205', 'tblTempVendorCDR_20' ) start [2025-03-03 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599205', 'tblTempVendorCDR_20' ) end [2025-03-03 14:53:23] Production.INFO: ProcessCDR(1,14599205,1,1,2) [2025-03-03 14:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599205', 'tblTempUsageDetail_20' ) start [2025-03-03 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599205', 'tblTempUsageDetail_20' ) end [2025-03-03 14:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:53:28] Production.INFO: ==29504== Releasing lock... [2025-03-03 14:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:53:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:54:02] Production.INFO: ==29565== Lock acquired, processing the job... [2025-03-03 19:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:54:02] Production.INFO: neon service started [2025-03-03 19:54:02] Production.INFO: neon service started [2025-03-03 19:54:02] Production.INFO: ==29565== Releasing lock... [2025-03-03 19:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:54:02] Production.INFO: ==29567== Lock acquired, processing the job... [2025-03-03 14:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:54:02] Production.INFO: ==29567== Releasing lock... [2025-03-03 14:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:54:02] Production.INFO: ==29570== Lock acquired, processing the job... [2025-03-03 19:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:54:03] Production.INFO: ==29570== Releasing lock... [2025-03-03 19:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:54:03] Production.INFO: ==29574== Lock acquired, processing the job... [2025-03-03 14:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:54:03] Production.INFO: ==29576== Lock acquired, processing the job... [2025-03-03 14:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:54:03] Production.INFO: ==29578== Lock acquired, processing the job... [2025-03-03 14:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:54:03] Production.INFO: ==29572== Lock acquired, processing the job... [2025-03-03 14:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:54:03] Production.INFO: Account Balance Start. [2025-03-03 14:54:03] Production.INFO: CreateAllLog Start [2025-03-03 14:54:03] Production.INFO: 117 [2025-03-03 14:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:03] Production.INFO: ==29580== Lock acquired, processing the job... [2025-03-03 14:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:54:03] Production.INFO: ==29574== Releasing lock... [2025-03-03 14:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:54:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:54:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:03] Production.INFO: ==29582== Lock acquired, processing the job... [2025-03-03 14:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:54:04] Production.INFO: count ==13 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:54:04] Production.INFO: count ==21 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599209') start [2025-03-03 14:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.ERROR: done [2025-03-03 14:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599209') end [2025-03-03 14:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:54:04] Production.INFO: 1 [2025-03-03 14:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: ==29582== Releasing lock... [2025-03-03 14:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.ERROR: done [2025-03-03 14:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:54:04] Production.INFO: Total Charge 0 [2025-03-03 14:54:04] Production.INFO: CreateAllLog End [2025-03-03 14:54:05] Production.INFO: Account Balance End. [2025-03-03 14:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:54:05] Production.INFO: ==29578== Releasing lock... [2025-03-03 14:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:54:05 [end_date_ymd] => 2025-03-03 14:54:05 [RateCDR] => 1 ) [2025-03-03 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:54:05' and `end` < '2025-03-03 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:54:13] Production.ERROR: CronJobId end10 [2025-03-03 14:54:13] Production.INFO: ==29576== Releasing lock... [2025-03-03 14:54:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:54:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:54:15] Production.INFO: call_cost start [2025-03-03 14:54:15] Production.INFO: call_cost end [2025-03-03 14:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:54:16] Production.INFO: ==29572== Releasing lock... [2025-03-03 14:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:54:19] Production.INFO: count ==6609 [2025-03-03 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:54:05 - End Time 2025-03-03 14:54:05 [2025-03-03 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599210', 'tblTempUsageDetail_20' ) start [2025-03-03 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599210', 'tblTempUsageDetail_20' ) end [2025-03-03 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599210', 'tblTempVendorCDR_20' ) start [2025-03-03 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599210', 'tblTempVendorCDR_20' ) end [2025-03-03 14:54:23] Production.INFO: ProcessCDR(1,14599210,1,1,2) [2025-03-03 14:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599210', 'tblTempUsageDetail_20' ) start [2025-03-03 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599210', 'tblTempUsageDetail_20' ) end [2025-03-03 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:54:28] Production.INFO: ==29580== Releasing lock... [2025-03-03 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:54:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 19:55:01] Production.INFO: ==29637== Lock acquired, processing the job... [2025-03-03 19:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:55:01] Production.INFO: neon service started [2025-03-03 19:55:01] Production.INFO: neon service started [2025-03-03 19:55:01] Production.INFO: ==29637== Releasing lock... [2025-03-03 19:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:55:02] Production.INFO: ==29646== Lock acquired, processing the job... [2025-03-03 19:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:55:02] Production.INFO: ==29644== Lock acquired, processing the job... [2025-03-03 14:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:55:02] Production.INFO: ==29646== Releasing lock... [2025-03-03 19:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:55:02] Production.INFO: ==29644== Releasing lock... [2025-03-03 14:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:55:03] Production.INFO: ==29649== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:55:03] Production.INFO: ==29651== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:55:03] Production.INFO: ==29653== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:55:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:55:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:55:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:55:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:55:03] Production.INFO: ==29655== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:55:03] Production.INFO: ==29657== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:55:03] Production.INFO: ==29651== Releasing lock... [2025-03-03 14:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:55:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:55:03] Production.INFO: ==29659== Lock acquired, processing the job... [2025-03-03 14:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:55:03] Production.INFO: Account Balance Start. [2025-03-03 14:55:03] Production.INFO: CreateAllLog Start [2025-03-03 14:55:03] Production.INFO: 117 [2025-03-03 14:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: count ==13 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:55:04] Production.INFO: count ==21 [2025-03-03 14:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599214') start [2025-03-03 14:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599214') end [2025-03-03 14:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:55:04] Production.INFO: 1 [2025-03-03 14:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.ERROR: done [2025-03-03 14:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: ==29659== Releasing lock... [2025-03-03 14:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.ERROR: done [2025-03-03 14:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:55:05] Production.INFO: Total Charge 0 [2025-03-03 14:55:05] Production.INFO: CreateAllLog End [2025-03-03 14:55:05] Production.INFO: Account Balance End. [2025-03-03 14:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:55:05] Production.INFO: ==29655== Releasing lock... [2025-03-03 14:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:55:05 [end_date_ymd] => 2025-03-03 14:55:05 [RateCDR] => 1 ) [2025-03-03 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:55:05' and `end` < '2025-03-03 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:55:14] Production.ERROR: CronJobId end10 [2025-03-03 14:55:14] Production.INFO: ==29653== Releasing lock... [2025-03-03 14:55:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:55:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:55:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:55:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:55:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:55:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:55:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:55:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:55:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:55:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:55:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:55:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:55:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:55:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:55:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:55:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:55:15] Production.INFO: call_cost start [2025-03-03 14:55:15] Production.INFO: call_cost end [2025-03-03 14:55:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:55:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:55:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:55:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:55:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:55:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:55:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:55:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:55:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:55:16] Production.INFO: ==29649== Releasing lock... [2025-03-03 14:55:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:55:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:55:19] Production.INFO: count ==6573 [2025-03-03 14:55:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:55:05 - End Time 2025-03-03 14:55:05 [2025-03-03 14:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599215', 'tblTempUsageDetail_20' ) start [2025-03-03 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599215', 'tblTempUsageDetail_20' ) end [2025-03-03 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599215', 'tblTempVendorCDR_20' ) start [2025-03-03 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599215', 'tblTempVendorCDR_20' ) end [2025-03-03 14:55:23] Production.INFO: ProcessCDR(1,14599215,1,1,2) [2025-03-03 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599215', 'tblTempUsageDetail_20' ) start [2025-03-03 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599215', 'tblTempUsageDetail_20' ) end [2025-03-03 14:55:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:55:29] Production.INFO: ==29657== Releasing lock... [2025-03-03 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:55:29] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 19:56:01] Production.INFO: ==29717== Lock acquired, processing the job... [2025-03-03 19:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:56:01] Production.INFO: neon service started [2025-03-03 19:56:02] Production.INFO: neon service started [2025-03-03 19:56:02] Production.INFO: ==29717== Releasing lock... [2025-03-03 19:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:56:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:56:02] Production.INFO: ==29719== Lock acquired, processing the job... [2025-03-03 14:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:56:02] Production.INFO: ==29721== Lock acquired, processing the job... [2025-03-03 19:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 14:56:02] Production.INFO: ==29719== Releasing lock... [2025-03-03 14:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 19:56:02] Production.INFO: ==29721== Releasing lock... [2025-03-03 19:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 14:56:03] Production.INFO: ==29724== Lock acquired, processing the job... [2025-03-03 14:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:56:03] Production.INFO: ==29726== Lock acquired, processing the job... [2025-03-03 14:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:56:03] Production.INFO: ==29728== Lock acquired, processing the job... [2025-03-03 14:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:56:04] Production.INFO: ==29730== Lock acquired, processing the job... [2025-03-03 14:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:56:04] Production.INFO: ==29732== Lock acquired, processing the job... [2025-03-03 14:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:56:04] Production.INFO: ==29726== Releasing lock... [2025-03-03 14:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:56:04] Production.INFO: ==29734== Lock acquired, processing the job... [2025-03-03 14:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:56:04] Production.INFO: Account Balance Start. [2025-03-03 14:56:04] Production.INFO: CreateAllLog Start [2025-03-03 14:56:04] Production.INFO: 117 [2025-03-03 14:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: count ==13 [2025-03-03 14:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: count ==21 [2025-03-03 14:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599219') start [2025-03-03 14:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.ERROR: done [2025-03-03 14:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599219') end [2025-03-03 14:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:56:04] Production.INFO: 1 [2025-03-03 14:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: ==29734== Releasing lock... [2025-03-03 14:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.ERROR: done [2025-03-03 14:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:56:05] Production.INFO: Total Charge 0 [2025-03-03 14:56:05] Production.INFO: CreateAllLog End [2025-03-03 14:56:05] Production.INFO: Account Balance End. [2025-03-03 14:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:56:05] Production.INFO: ==29730== Releasing lock... [2025-03-03 14:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:56:05 [end_date_ymd] => 2025-03-03 14:56:05 [RateCDR] => 1 ) [2025-03-03 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:56:05' and `end` < '2025-03-03 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:56:13] Production.ERROR: CronJobId end10 [2025-03-03 14:56:13] Production.INFO: ==29728== Releasing lock... [2025-03-03 14:56:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:56:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:56:15] Production.INFO: call_cost start [2025-03-03 14:56:15] Production.INFO: call_cost end [2025-03-03 14:56:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:56:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:56:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:56:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:56:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:56:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:56:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:56:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:56:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:56:16] Production.INFO: ==29724== Releasing lock... [2025-03-03 14:56:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:56:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:56:19] Production.INFO: count ==6559 [2025-03-03 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:56:05 - End Time 2025-03-03 14:56:05 [2025-03-03 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599220', 'tblTempUsageDetail_20' ) start [2025-03-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599220', 'tblTempUsageDetail_20' ) end [2025-03-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599220', 'tblTempVendorCDR_20' ) start [2025-03-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599220', 'tblTempVendorCDR_20' ) end [2025-03-03 14:56:23] Production.INFO: ProcessCDR(1,14599220,1,1,2) [2025-03-03 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599220', 'tblTempUsageDetail_20' ) start [2025-03-03 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599220', 'tblTempUsageDetail_20' ) end [2025-03-03 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:56:28] Production.INFO: ==29732== Releasing lock... [2025-03-03 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:56:28] Production.INFO: 77 MB #Memory Used# [2025-03-03 19:57:01] Production.INFO: ==29794== Lock acquired, processing the job... [2025-03-03 19:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:57:01] Production.INFO: neon service started [2025-03-03 19:57:01] Production.INFO: neon service started [2025-03-03 19:57:01] Production.INFO: ==29794== Releasing lock... [2025-03-03 19:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:57:02] Production.INFO: ==29796== Lock acquired, processing the job... [2025-03-03 14:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:57:02] Production.INFO: ==29798== Lock acquired, processing the job... [2025-03-03 19:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:57:02] Production.INFO: ==29798== Releasing lock... [2025-03-03 19:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:57:02] Production.INFO: ==29796== Releasing lock... [2025-03-03 14:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:57:03] Production.INFO: ==29803== Lock acquired, processing the job... [2025-03-03 14:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:57:03] Production.INFO: ==29801== Lock acquired, processing the job... [2025-03-03 14:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:57:03] Production.INFO: ==29809== Lock acquired, processing the job... [2025-03-03 14:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:57:03] Production.INFO: ==29803== Releasing lock... [2025-03-03 14:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:57:03] Production.INFO: ==29807== Lock acquired, processing the job... [2025-03-03 14:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:57:03] Production.INFO: ==29805== Lock acquired, processing the job... [2025-03-03 14:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:57:03] Production.INFO: ==29811== Lock acquired, processing the job... [2025-03-03 14:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:57:03] Production.INFO: Account Balance Start. [2025-03-03 14:57:03] Production.INFO: CreateAllLog Start [2025-03-03 14:57:03] Production.INFO: 117 [2025-03-03 14:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:57:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:03] Production.INFO: Date 2025-02-11 [2025-03-03 14:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:57:03] Production.INFO: Date 2025-02-12 [2025-03-03 14:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:03] Production.INFO: Date 2025-02-13 [2025-03-03 14:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:03] Production.ERROR: done [2025-03-03 14:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:57:04] Production.INFO: count ==13 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:57:04] Production.INFO: count ==21 [2025-03-03 14:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599224') start [2025-03-03 14:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.ERROR: done [2025-03-03 14:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599224') end [2025-03-03 14:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:57:04] Production.INFO: 1 [2025-03-03 14:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:57:04] Production.INFO: ==29811== Releasing lock... [2025-03-03 14:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:57:04] Production.INFO: Total Charge 0 [2025-03-03 14:57:04] Production.INFO: CreateAllLog End [2025-03-03 14:57:04] Production.INFO: Account Balance End. [2025-03-03 14:57:04] Production.ERROR: CronJobId end 12 [2025-03-03 14:57:04] Production.INFO: ==29807== Releasing lock... [2025-03-03 14:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:57:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:57:05 [end_date_ymd] => 2025-03-03 14:57:05 [RateCDR] => 1 ) [2025-03-03 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 11:57:05' and `end` < '2025-03-03 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 14:57:13] Production.ERROR: CronJobId end10 [2025-03-03 14:57:13] Production.INFO: ==29805== Releasing lock... [2025-03-03 14:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:57:15] Production.INFO: call_cost start [2025-03-03 14:57:15] Production.INFO: call_cost end [2025-03-03 14:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:57:16] Production.INFO: ==29801== Releasing lock... [2025-03-03 14:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:57:19] Production.INFO: count ==6526 [2025-03-03 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:57:05 - End Time 2025-03-03 14:57:05 [2025-03-03 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599225', 'tblTempUsageDetail_20' ) start [2025-03-03 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599225', 'tblTempUsageDetail_20' ) end [2025-03-03 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599225', 'tblTempVendorCDR_20' ) start [2025-03-03 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599225', 'tblTempVendorCDR_20' ) end [2025-03-03 14:57:22] Production.INFO: ProcessCDR(1,14599225,1,1,2) [2025-03-03 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599225', 'tblTempUsageDetail_20' ) start [2025-03-03 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599225', 'tblTempUsageDetail_20' ) end [2025-03-03 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:57:28] Production.INFO: ==29809== Releasing lock... [2025-03-03 14:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:57:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 19:58:01] Production.INFO: ==29871== Lock acquired, processing the job... [2025-03-03 19:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:58:01] Production.INFO: neon service started [2025-03-03 19:58:01] Production.INFO: neon service started [2025-03-03 19:58:01] Production.INFO: ==29871== Releasing lock... [2025-03-03 19:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 14:58:02] Production.INFO: ==29873== Lock acquired, processing the job... [2025-03-03 14:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 19:58:02] Production.INFO: ==29875== Lock acquired, processing the job... [2025-03-03 19:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:58:02] Production.INFO: ==29875== Releasing lock... [2025-03-03 19:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:58:02] Production.INFO: ==29873== Releasing lock... [2025-03-03 14:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:58:03] Production.INFO: ==29880== Lock acquired, processing the job... [2025-03-03 14:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:58:03] Production.INFO: ==29878== Lock acquired, processing the job... [2025-03-03 14:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:58:03] Production.INFO: ==29884== Lock acquired, processing the job... [2025-03-03 14:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:58:04] Production.INFO: ==29882== Lock acquired, processing the job... [2025-03-03 14:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:58:04] Production.INFO: ==29886== Lock acquired, processing the job... [2025-03-03 14:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:58:04] Production.INFO: Account Balance Start. [2025-03-03 14:58:04] Production.INFO: CreateAllLog Start [2025-03-03 14:58:04] Production.INFO: 117 [2025-03-03 14:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 14:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: ==29888== Lock acquired, processing the job... [2025-03-03 14:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:58:04] Production.INFO: ==29880== Releasing lock... [2025-03-03 14:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: count ==13 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: count ==21 [2025-03-03 14:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599229') start [2025-03-03 14:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.ERROR: done [2025-03-03 14:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599229') end [2025-03-03 14:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:58:04] Production.INFO: 1 [2025-03-03 14:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: ==29888== Releasing lock... [2025-03-03 14:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:58:04] Production.ERROR: done [2025-03-03 14:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 14:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 14:58:05] Production.INFO: Total Charge 0 [2025-03-03 14:58:05] Production.INFO: CreateAllLog End [2025-03-03 14:58:05] Production.INFO: Account Balance End. [2025-03-03 14:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:58:05] Production.INFO: ==29884== Releasing lock... [2025-03-03 14:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:58:06 [end_date_ymd] => 2025-03-03 14:58:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:58:06' and `end` < '2025-03-03 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-03-03 14:58:14] Production.ERROR: CronJobId end10 [2025-03-03 14:58:14] Production.INFO: ==29882== Releasing lock... [2025-03-03 14:58:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:58:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:58:15] Production.INFO: call_cost start [2025-03-03 14:58:15] Production.INFO: call_cost end [2025-03-03 14:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:58:16] Production.INFO: ==29878== Releasing lock... [2025-03-03 14:58:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:58:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:58:20] Production.INFO: count ==6655 [2025-03-03 14:58:23] Production.ERROR: pbx CDR StartTime 2025-03-03 11:58:06 - End Time 2025-03-03 14:58:06 [2025-03-03 14:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599230', 'tblTempUsageDetail_20' ) start [2025-03-03 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599230', 'tblTempUsageDetail_20' ) end [2025-03-03 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599230', 'tblTempVendorCDR_20' ) start [2025-03-03 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599230', 'tblTempVendorCDR_20' ) end [2025-03-03 14:58:23] Production.INFO: ProcessCDR(1,14599230,1,1,2) [2025-03-03 14:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599230', 'tblTempUsageDetail_20' ) start [2025-03-03 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599230', 'tblTempUsageDetail_20' ) end [2025-03-03 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:58:27] Production.INFO: ==29886== Releasing lock... [2025-03-03 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:58:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 19:59:01] Production.INFO: ==29942== Lock acquired, processing the job... [2025-03-03 19:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 19:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 19:59:01] Production.INFO: neon service started [2025-03-03 19:59:01] Production.INFO: neon service started [2025-03-03 19:59:01] Production.INFO: ==29942== Releasing lock... [2025-03-03 19:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 19:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 19:59:01] Production.INFO: ==29946== Lock acquired, processing the job... [2025-03-03 19:59:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 19:59:01] Production.INFO: ==29946== Releasing lock... [2025-03-03 19:59:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 19:59:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 14:59:01] Production.INFO: ==29944== Lock acquired, processing the job... [2025-03-03 14:59:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 14:59:02] Production.INFO: ==29944== Releasing lock... [2025-03-03 14:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 14:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 14:59:03] Production.INFO: ==29953== Lock acquired, processing the job... [2025-03-03 14:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 14:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 14:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 14:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 14:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 14:59:03] Production.INFO: ==29959== Lock acquired, processing the job... [2025-03-03 14:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 14:59:03] Production.INFO: ==29949== Lock acquired, processing the job... [2025-03-03 14:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 14:59:03] Production.INFO: ==29951== Lock acquired, processing the job... [2025-03-03 14:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 14:59:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:59:03] Production.INFO: ==29955== Lock acquired, processing the job... [2025-03-03 14:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 14:59:03] Production.INFO: ==29957== Lock acquired, processing the job... [2025-03-03 14:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 14:59:03] Production.INFO: count ==13 [2025-03-03 14:59:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 14:59:03] Production.INFO: count ==21 [2025-03-03 14:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599231') start [2025-03-03 14:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 14:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 14:59:03] Production.INFO: Account Balance Start. [2025-03-03 14:59:03] Production.INFO: CreateAllLog Start [2025-03-03 14:59:03] Production.INFO: 117 [2025-03-03 14:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 14:59:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599231') end [2025-03-03 14:59:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 14:59:03] Production.INFO: 1 [2025-03-03 14:59:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 14:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 14:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:03] Production.INFO: ==29959== Releasing lock... [2025-03-03 14:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 14:59:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 14:59:03] Production.ERROR: done [2025-03-03 14:59:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 14:59:03] Production.INFO: Date 2025-02-10 [2025-03-03 14:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: ==29951== Releasing lock... [2025-03-03 14:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 14:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 14:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.ERROR: done [2025-03-03 14:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-03-02 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Date 2025-03-03 [2025-03-03 14:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 14:59:04] Production.INFO: Total Charge 0 [2025-03-03 14:59:04] Production.INFO: CreateAllLog End [2025-03-03 14:59:05] Production.INFO: Account Balance End. [2025-03-03 14:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 14:59:05] Production.INFO: ==29955== Releasing lock... [2025-03-03 14:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 14:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 11:59:05 [end_date_ymd] => 2025-03-03 14:59:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 11:59:05' and `end` < '2025-03-03 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-03-03 14:59:13] Production.ERROR: CronJobId end10 [2025-03-03 14:59:13] Production.INFO: ==29953== Releasing lock... [2025-03-03 14:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 14:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 14:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 14:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 14:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 14:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 14:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 14:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 14:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 14:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 14:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 14:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 14:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 14:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 14:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 14:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 14:59:15] Production.INFO: call_cost start [2025-03-03 14:59:15] Production.INFO: call_cost end [2025-03-03 14:59:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 14:59:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 14:59:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 14:59:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 14:59:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 14:59:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 14:59:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 14:59:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 14:59:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 14:59:16] Production.INFO: ==29949== Releasing lock... [2025-03-03 14:59:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 14:59:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 14:59:19] Production.INFO: count ==6845 [2025-03-03 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-03 11:59:05 - End Time 2025-03-03 14:59:05 [2025-03-03 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599235', 'tblTempUsageDetail_20' ) start [2025-03-03 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599235', 'tblTempUsageDetail_20' ) end [2025-03-03 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599235', 'tblTempVendorCDR_20' ) start [2025-03-03 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599235', 'tblTempVendorCDR_20' ) end [2025-03-03 14:59:22] Production.INFO: ProcessCDR(1,14599235,1,1,2) [2025-03-03 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599235', 'tblTempUsageDetail_20' ) start [2025-03-03 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599235', 'tblTempUsageDetail_20' ) end [2025-03-03 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 14:59:28] Production.INFO: ==29957== Releasing lock... [2025-03-03 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 14:59:28] Production.INFO: 79.25 MB #Memory Used# [2025-03-03 20:00:01] Production.INFO: ==30016== Lock acquired, processing the job... [2025-03-03 20:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:00:01] Production.INFO: neon service started [2025-03-03 20:00:01] Production.INFO: neon service started [2025-03-03 20:00:01] Production.INFO: ==30016== Releasing lock... [2025-03-03 20:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:00:02] Production.INFO: ==30019== Lock acquired, processing the job... [2025-03-03 15:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:00:02] Production.INFO: ==30021== Lock acquired, processing the job... [2025-03-03 20:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:00:02] Production.INFO: ==30021== Releasing lock... [2025-03-03 20:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:00:03] Production.INFO: ==30019== Releasing lock... [2025-03-03 15:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:00:04] Production.INFO: ==30029== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:00:04] Production.INFO: ==30031== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:00:04] Production.INFO: ==30023== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: ==30038== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 15:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:00:04] Production.INFO: Account Balance Start. [2025-03-03 15:00:04] Production.INFO: CreateAllLog Start [2025-03-03 15:00:04] Production.INFO: 117 [2025-03-03 15:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:00:04] Production.INFO: ==30025== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:00:04] Production.ERROR: CronJob PID - 30025 [2025-03-03 15:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 15:00:04] Production.ERROR: CronJob ID - 5 [2025-03-03 15:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:00:00 [2025-03-03 15:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:00:04] Production.ERROR: CronJob PID - 30029 [2025-03-03 15:00:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 15:00:04] Production.ERROR: CronJob ID - 10 [2025-03-03 15:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:00:00 [2025-03-03 15:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:00:04] Production.ERROR: CronJob PID - 30031 [2025-03-03 15:00:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 15:00:04] Production.ERROR: CronJob ID - 12 [2025-03-03 15:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:00:00 [2025-03-03 15:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:00:04] Production.ERROR: CronJob PID - 30038 [2025-03-03 15:00:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 15:00:04] Production.ERROR: CronJob ID - 19 [2025-03-03 15:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:00:00 [2025-03-03 15:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:00:04] Production.INFO: ==30027== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.INFO: count ==13 [2025-03-03 15:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 15:00:04] Production.INFO: ==30023== Releasing lock... [2025-03-03 15:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 15:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:00:04] Production.INFO: count ==21 [2025-03-03 15:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599237') start [2025-03-03 15:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.INFO: ==30033== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.INFO: ==30036== Lock acquired, processing the job... [2025-03-03 15:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 15:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599237') end [2025-03-03 15:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:00:04] Production.INFO: 1 [2025-03-03 15:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:00:04] Production.INFO: ==30038== Releasing lock... [2025-03-03 15:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: ==30027== Releasing lock... [2025-03-03 15:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.ERROR: done [2025-03-03 15:00:05] Production.ERROR: done [2025-03-03 15:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 15:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599240', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 15:00:05] Production.ERROR: done [2025-03-03 15:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:00:05] Production.INFO: Total Charge 0 [2025-03-03 15:00:05] Production.INFO: CreateAllLog End [2025-03-03 15:00:06] Production.INFO: Account Balance End. [2025-03-03 15:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:00:06] Production.INFO: ==30031== Releasing lock... [2025-03-03 15:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:00:06 [end_date_ymd] => 2025-03-03 15:00:06 [RateCDR] => 1 ) [2025-03-03 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:00:06' and `end` < '2025-03-03 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599240', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 15:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 15:00:09] Production.INFO: ProcessCDR(1,14599240,1,1,2) [2025-03-03 15:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599240,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599240,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:00:10] Production.INFO: ==30036== Releasing lock... [2025-03-03 15:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 15:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:00:16] Production.ERROR: CronJobId end10 [2025-03-03 15:00:16] Production.INFO: ==30029== Releasing lock... [2025-03-03 15:00:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:00:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:00:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:00:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:00:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:00:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:00:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:00:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:00:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:00:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:00:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:00:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:00:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:00:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:00:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:00:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:00:18] Production.INFO: call_cost start [2025-03-03 15:00:18] Production.INFO: call_cost end [2025-03-03 15:00:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:00:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:00:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:00:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:00:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:00:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:00:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:00:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:00:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:00:19] Production.INFO: ==30025== Releasing lock... [2025-03-03 15:00:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:00:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:00:20] Production.INFO: count ==6862 [2025-03-03 15:00:24] Production.ERROR: pbx CDR StartTime 2025-03-03 12:00:06 - End Time 2025-03-03 15:00:06 [2025-03-03 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599241', 'tblTempUsageDetail_20' ) start [2025-03-03 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599241', 'tblTempUsageDetail_20' ) end [2025-03-03 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599241', 'tblTempVendorCDR_20' ) start [2025-03-03 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599241', 'tblTempVendorCDR_20' ) end [2025-03-03 15:00:24] Production.INFO: ProcessCDR(1,14599241,1,1,2) [2025-03-03 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599241', 'tblTempUsageDetail_20' ) start [2025-03-03 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599241', 'tblTempUsageDetail_20' ) end [2025-03-03 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:00:29] Production.INFO: ==30033== Releasing lock... [2025-03-03 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:00:29] Production.INFO: 79.25 MB #Memory Used# [2025-03-03 20:01:02] Production.INFO: ==30094== Lock acquired, processing the job... [2025-03-03 20:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:01:02] Production.INFO: neon service started [2025-03-03 20:01:02] Production.INFO: neon service started [2025-03-03 20:01:02] Production.INFO: ==30094== Releasing lock... [2025-03-03 20:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:01:02] Production.INFO: ==30108== Lock acquired, processing the job... [2025-03-03 20:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:01:02] Production.INFO: ==30108== Releasing lock... [2025-03-03 20:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:01:02] Production.INFO: ==30106== Lock acquired, processing the job... [2025-03-03 15:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:01:03] Production.INFO: ==30106== Releasing lock... [2025-03-03 15:01:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:01:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:01:04] Production.INFO: ==30115== Lock acquired, processing the job... [2025-03-03 15:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:01:04] Production.INFO: ==30111== Lock acquired, processing the job... [2025-03-03 15:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:01:04] Production.INFO: ==30113== Lock acquired, processing the job... [2025-03-03 15:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:01:04] Production.INFO: ==30121== Lock acquired, processing the job... [2025-03-03 15:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:01:04] Production.INFO: ==30117== Lock acquired, processing the job... [2025-03-03 15:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:01:04] Production.INFO: ==30119== Lock acquired, processing the job... [2025-03-03 15:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:01:04] Production.INFO: Account Balance Start. [2025-03-03 15:01:04] Production.INFO: CreateAllLog Start [2025-03-03 15:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:01:04] Production.INFO: 117 [2025-03-03 15:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:01:04] Production.INFO: count ==13 [2025-03-03 15:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:01:04] Production.INFO: count ==21 [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599244') start [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:01:04] Production.INFO: ==30113== Releasing lock... [2025-03-03 15:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599244') end [2025-03-03 15:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:01:04] Production.INFO: 1 [2025-03-03 15:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:04] Production.INFO: ==30121== Releasing lock... [2025-03-03 15:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:01:04] Production.ERROR: done [2025-03-03 15:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.ERROR: done [2025-03-03 15:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:01:06] Production.INFO: Total Charge 0 [2025-03-03 15:01:06] Production.INFO: CreateAllLog End [2025-03-03 15:01:06] Production.INFO: Account Balance End. [2025-03-03 15:01:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:01:06] Production.INFO: ==30117== Releasing lock... [2025-03-03 15:01:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:01:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:01:06 [end_date_ymd] => 2025-03-03 15:01:06 [RateCDR] => 1 ) [2025-03-03 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:01:06' and `end` < '2025-03-03 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:01:15] Production.ERROR: CronJobId end10 [2025-03-03 15:01:15] Production.INFO: ==30115== Releasing lock... [2025-03-03 15:01:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:01:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:01:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:01:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:01:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:01:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:01:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:01:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:01:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:01:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:01:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:01:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:01:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:01:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:01:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:01:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:01:17] Production.INFO: call_cost start [2025-03-03 15:01:17] Production.INFO: call_cost end [2025-03-03 15:01:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:01:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:01:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:01:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:01:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:01:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:01:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:01:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:01:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:01:18] Production.INFO: ==30111== Releasing lock... [2025-03-03 15:01:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:01:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:01:20] Production.INFO: count ==6905 [2025-03-03 15:01:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:01:06 - End Time 2025-03-03 15:01:06 [2025-03-03 15:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599246', 'tblTempUsageDetail_20' ) start [2025-03-03 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599246', 'tblTempUsageDetail_20' ) end [2025-03-03 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599246', 'tblTempVendorCDR_20' ) start [2025-03-03 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599246', 'tblTempVendorCDR_20' ) end [2025-03-03 15:01:23] Production.INFO: ProcessCDR(1,14599246,1,1,2) [2025-03-03 15:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599246', 'tblTempUsageDetail_20' ) start [2025-03-03 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599246', 'tblTempUsageDetail_20' ) end [2025-03-03 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:01:29] Production.INFO: ==30119== Releasing lock... [2025-03-03 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:01:29] Production.INFO: 79.75 MB #Memory Used# [2025-03-03 20:02:01] Production.INFO: ==30293== Lock acquired, processing the job... [2025-03-03 20:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:02:01] Production.INFO: neon service started [2025-03-03 20:02:01] Production.INFO: neon service started [2025-03-03 20:02:01] Production.INFO: ==30293== Releasing lock... [2025-03-03 20:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:02:02] Production.INFO: ==30295== Lock acquired, processing the job... [2025-03-03 15:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:02:02] Production.INFO: ==30297== Lock acquired, processing the job... [2025-03-03 20:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:02:02] Production.INFO: ==30297== Releasing lock... [2025-03-03 20:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:02:02] Production.INFO: ==30295== Releasing lock... [2025-03-03 15:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:02:03] Production.INFO: ==30300== Lock acquired, processing the job... [2025-03-03 15:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:02:03] Production.INFO: ==30306== Lock acquired, processing the job... [2025-03-03 15:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:02:03] Production.INFO: ==30308== Lock acquired, processing the job... [2025-03-03 15:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:02:04] Production.INFO: Account Balance Start. [2025-03-03 15:02:04] Production.INFO: CreateAllLog Start [2025-03-03 15:02:04] Production.INFO: 117 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: ==30302== Lock acquired, processing the job... [2025-03-03 15:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:02:04] Production.INFO: ==30304== Lock acquired, processing the job... [2025-03-03 15:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: ==30310== Lock acquired, processing the job... [2025-03-03 15:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.ERROR: done [2025-03-03 15:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:02:04] Production.INFO: count ==13 [2025-03-03 15:02:04] Production.ERROR: done [2025-03-03 15:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:02:04] Production.INFO: count ==21 [2025-03-03 15:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599250') start [2025-03-03 15:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: ==30302== Releasing lock... [2025-03-03 15:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599250') end [2025-03-03 15:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:02:04] Production.INFO: 1 [2025-03-03 15:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:02:04] Production.INFO: ==30310== Releasing lock... [2025-03-03 15:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:02:05] Production.INFO: Total Charge 0 [2025-03-03 15:02:05] Production.INFO: CreateAllLog End [2025-03-03 15:02:05] Production.INFO: Account Balance End. [2025-03-03 15:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:02:05] Production.INFO: ==30306== Releasing lock... [2025-03-03 15:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:02:06 [end_date_ymd] => 2025-03-03 15:02:06 [RateCDR] => 1 ) [2025-03-03 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:02:06' and `end` < '2025-03-03 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:02:14] Production.ERROR: CronJobId end10 [2025-03-03 15:02:14] Production.INFO: ==30304== Releasing lock... [2025-03-03 15:02:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:02:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:02:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:02:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:02:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:02:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:02:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:02:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:02:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:02:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:02:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:02:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:02:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:02:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:02:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:02:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:02:17] Production.INFO: call_cost start [2025-03-03 15:02:17] Production.INFO: call_cost end [2025-03-03 15:02:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:02:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:02:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:02:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:02:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:02:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:02:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:02:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:02:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:02:18] Production.INFO: ==30300== Releasing lock... [2025-03-03 15:02:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:02:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:02:19] Production.INFO: count ==6836 [2025-03-03 15:02:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:02:06 - End Time 2025-03-03 15:02:06 [2025-03-03 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599251', 'tblTempUsageDetail_20' ) start [2025-03-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599251', 'tblTempUsageDetail_20' ) end [2025-03-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599251', 'tblTempVendorCDR_20' ) start [2025-03-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599251', 'tblTempVendorCDR_20' ) end [2025-03-03 15:02:23] Production.INFO: ProcessCDR(1,14599251,1,1,2) [2025-03-03 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599251', 'tblTempUsageDetail_20' ) start [2025-03-03 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599251', 'tblTempUsageDetail_20' ) end [2025-03-03 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:02:28] Production.INFO: ==30308== Releasing lock... [2025-03-03 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:02:28] Production.INFO: 79.25 MB #Memory Used# [2025-03-03 20:03:02] Production.INFO: ==30365== Lock acquired, processing the job... [2025-03-03 20:03:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:03:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:03:02] Production.INFO: neon service started [2025-03-03 20:03:02] Production.INFO: neon service started [2025-03-03 20:03:02] Production.INFO: ==30365== Releasing lock... [2025-03-03 20:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:03:03] Production.INFO: ==30367== Lock acquired, processing the job... [2025-03-03 15:03:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:03:03] Production.INFO: ==30369== Lock acquired, processing the job... [2025-03-03 20:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:03:03] Production.INFO: ==30369== Releasing lock... [2025-03-03 20:03:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:03:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:03:03] Production.INFO: ==30367== Releasing lock... [2025-03-03 15:03:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:03:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:03:04] Production.INFO: ==30372== Lock acquired, processing the job... [2025-03-03 15:03:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:03:04] Production.INFO: ==30374== Lock acquired, processing the job... [2025-03-03 15:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:03:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:03:04] Production.INFO: ==30378== Lock acquired, processing the job... [2025-03-03 15:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:03:04] Production.INFO: Account Balance Start. [2025-03-03 15:03:04] Production.INFO: CreateAllLog Start [2025-03-03 15:03:04] Production.INFO: 117 [2025-03-03 15:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: ==30376== Lock acquired, processing the job... [2025-03-03 15:03:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: ==30374== Releasing lock... [2025-03-03 15:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:03:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:03:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: ==30382== Lock acquired, processing the job... [2025-03-03 15:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: ==30380== Lock acquired, processing the job... [2025-03-03 15:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:03:04] Production.INFO: count ==13 [2025-03-03 15:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:03:04] Production.INFO: count ==21 [2025-03-03 15:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599255') start [2025-03-03 15:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599255') end [2025-03-03 15:03:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:03:05] Production.INFO: 1 [2025-03-03 15:03:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.ERROR: done [2025-03-03 15:03:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:03:05] Production.INFO: ==30382== Releasing lock... [2025-03-03 15:03:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:03:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.ERROR: done [2025-03-03 15:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:03:05] Production.INFO: Total Charge 0 [2025-03-03 15:03:05] Production.INFO: CreateAllLog End [2025-03-03 15:03:06] Production.INFO: Account Balance End. [2025-03-03 15:03:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:03:06] Production.INFO: ==30378== Releasing lock... [2025-03-03 15:03:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:03:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:03:06 [end_date_ymd] => 2025-03-03 15:03:06 [RateCDR] => 1 ) [2025-03-03 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:03:06' and `end` < '2025-03-03 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:03:14] Production.ERROR: CronJobId end10 [2025-03-03 15:03:14] Production.INFO: ==30376== Releasing lock... [2025-03-03 15:03:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:03:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:03:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:03:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:03:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:03:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:03:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:03:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:03:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:03:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:03:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:03:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:03:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:03:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:03:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:03:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:03:16] Production.INFO: call_cost start [2025-03-03 15:03:16] Production.INFO: call_cost end [2025-03-03 15:03:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:03:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:03:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:03:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:03:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:03:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:03:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:03:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:03:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:03:17] Production.INFO: ==30372== Releasing lock... [2025-03-03 15:03:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:03:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:03:19] Production.INFO: count ==6791 [2025-03-03 15:03:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:03:06 - End Time 2025-03-03 15:03:06 [2025-03-03 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599256', 'tblTempUsageDetail_20' ) start [2025-03-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599256', 'tblTempUsageDetail_20' ) end [2025-03-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599256', 'tblTempVendorCDR_20' ) start [2025-03-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599256', 'tblTempVendorCDR_20' ) end [2025-03-03 15:03:23] Production.INFO: ProcessCDR(1,14599256,1,1,2) [2025-03-03 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599256', 'tblTempUsageDetail_20' ) start [2025-03-03 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599256', 'tblTempUsageDetail_20' ) end [2025-03-03 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:03:28] Production.INFO: ==30380== Releasing lock... [2025-03-03 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:03:28] Production.INFO: 78.75 MB #Memory Used# [2025-03-03 20:04:01] Production.INFO: ==30459== Lock acquired, processing the job... [2025-03-03 20:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:04:01] Production.INFO: neon service started [2025-03-03 20:04:01] Production.INFO: neon service started [2025-03-03 20:04:01] Production.INFO: ==30459== Releasing lock... [2025-03-03 20:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:04:02] Production.INFO: ==30461== Lock acquired, processing the job... [2025-03-03 15:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:04:02] Production.INFO: ==30463== Lock acquired, processing the job... [2025-03-03 20:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:04:02] Production.INFO: ==30463== Releasing lock... [2025-03-03 20:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:04:03] Production.INFO: ==30461== Releasing lock... [2025-03-03 15:04:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:04:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:04:03] Production.INFO: ==30472== Lock acquired, processing the job... [2025-03-03 15:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:04:04] Production.INFO: Account Balance Start. [2025-03-03 15:04:04] Production.INFO: CreateAllLog Start [2025-03-03 15:04:04] Production.INFO: 117 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:04:04] Production.INFO: ==30477== Lock acquired, processing the job... [2025-03-03 15:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: ==30466== Lock acquired, processing the job... [2025-03-03 15:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: count ==13 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:04:04] Production.INFO: count ==21 [2025-03-03 15:04:04] Production.INFO: ==30468== Lock acquired, processing the job... [2025-03-03 15:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599258') start [2025-03-03 15:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: ==30470== Lock acquired, processing the job... [2025-03-03 15:04:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599258') end [2025-03-03 15:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:04:04] Production.INFO: 1 [2025-03-03 15:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: ==30477== Releasing lock... [2025-03-03 15:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:04:04] Production.INFO: ==30474== Lock acquired, processing the job... [2025-03-03 15:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: ==30468== Releasing lock... [2025-03-03 15:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:05] Production.ERROR: done [2025-03-03 15:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:04:05] Production.INFO: Total Charge 0 [2025-03-03 15:04:05] Production.INFO: CreateAllLog End [2025-03-03 15:04:05] Production.ERROR: done [2025-03-03 15:04:05] Production.INFO: Account Balance End. [2025-03-03 15:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:04:05] Production.INFO: ==30472== Releasing lock... [2025-03-03 15:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:04:06 [end_date_ymd] => 2025-03-03 15:04:06 [RateCDR] => 1 ) [2025-03-03 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:04:06' and `end` < '2025-03-03 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:04:14] Production.ERROR: CronJobId end10 [2025-03-03 15:04:14] Production.INFO: ==30470== Releasing lock... [2025-03-03 15:04:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:04:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:04:16] Production.INFO: call_cost start [2025-03-03 15:04:16] Production.INFO: call_cost end [2025-03-03 15:04:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:04:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:04:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:04:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:04:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:04:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:04:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:04:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:04:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:04:17] Production.INFO: ==30466== Releasing lock... [2025-03-03 15:04:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:04:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:04:19] Production.INFO: count ==6775 [2025-03-03 15:04:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:04:06 - End Time 2025-03-03 15:04:06 [2025-03-03 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599261', 'tblTempUsageDetail_20' ) start [2025-03-03 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599261', 'tblTempUsageDetail_20' ) end [2025-03-03 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599261', 'tblTempVendorCDR_20' ) start [2025-03-03 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599261', 'tblTempVendorCDR_20' ) end [2025-03-03 15:04:23] Production.INFO: ProcessCDR(1,14599261,1,1,2) [2025-03-03 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599261', 'tblTempUsageDetail_20' ) start [2025-03-03 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599261', 'tblTempUsageDetail_20' ) end [2025-03-03 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:04:28] Production.INFO: ==30474== Releasing lock... [2025-03-03 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:04:28] Production.INFO: 78.75 MB #Memory Used# [2025-03-03 20:05:02] Production.INFO: ==30609== Lock acquired, processing the job... [2025-03-03 20:05:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:05:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:05:02] Production.INFO: neon service started [2025-03-03 20:05:02] Production.INFO: neon service started [2025-03-03 20:05:02] Production.INFO: ==30609== Releasing lock... [2025-03-03 20:05:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:05:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:05:03] Production.INFO: ==30611== Lock acquired, processing the job... [2025-03-03 15:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:05:03] Production.INFO: ==30613== Lock acquired, processing the job... [2025-03-03 20:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:05:03] Production.INFO: ==30613== Releasing lock... [2025-03-03 20:05:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:05:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:05:03] Production.INFO: ==30611== Releasing lock... [2025-03-03 15:05:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:05:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:05:04] Production.INFO: ==30618== Lock acquired, processing the job... [2025-03-03 15:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:05:04] Production.INFO: ==30622== Lock acquired, processing the job... [2025-03-03 15:05:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:05:04] Production.INFO: Account Balance Start. [2025-03-03 15:05:04] Production.INFO: CreateAllLog Start [2025-03-03 15:05:04] Production.INFO: ==30626== Lock acquired, processing the job... [2025-03-03 15:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:05:04] Production.INFO: 117 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: count ==13 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: count ==21 [2025-03-03 15:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599264') start [2025-03-03 15:05:04] Production.INFO: ==30616== Lock acquired, processing the job... [2025-03-03 15:05:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: ==30618== Releasing lock... [2025-03-03 15:05:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:05:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:05:04] Production.INFO: ==30620== Lock acquired, processing the job... [2025-03-03 15:05:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:05:04] Production.INFO: ==30624== Lock acquired, processing the job... [2025-03-03 15:05:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599264') end [2025-03-03 15:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:05:04] Production.INFO: 1 [2025-03-03 15:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:05:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:05:04] Production.INFO: ==30626== Releasing lock... [2025-03-03 15:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:05:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:05:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:05:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.ERROR: done [2025-03-03 15:05:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.ERROR: done [2025-03-03 15:05:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:05:05] Production.INFO: Total Charge 0 [2025-03-03 15:05:05] Production.INFO: CreateAllLog End [2025-03-03 15:05:05] Production.INFO: Account Balance End. [2025-03-03 15:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:05:05] Production.INFO: ==30622== Releasing lock... [2025-03-03 15:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:05:06 [end_date_ymd] => 2025-03-03 15:05:06 [RateCDR] => 1 ) [2025-03-03 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:05:06' and `end` < '2025-03-03 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:05:14] Production.ERROR: CronJobId end10 [2025-03-03 15:05:14] Production.INFO: ==30620== Releasing lock... [2025-03-03 15:05:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:05:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:05:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:05:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:05:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:05:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:05:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:05:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:05:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:05:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:05:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:05:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:05:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:05:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:05:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:05:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:05:16] Production.INFO: call_cost start [2025-03-03 15:05:16] Production.INFO: call_cost end [2025-03-03 15:05:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:05:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:05:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:05:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:05:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:05:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:05:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:05:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:05:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:05:17] Production.INFO: ==30616== Releasing lock... [2025-03-03 15:05:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:05:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:05:19] Production.INFO: count ==6743 [2025-03-03 15:05:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:05:06 - End Time 2025-03-03 15:05:06 [2025-03-03 15:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599266', 'tblTempUsageDetail_20' ) start [2025-03-03 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599266', 'tblTempUsageDetail_20' ) end [2025-03-03 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599266', 'tblTempVendorCDR_20' ) start [2025-03-03 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599266', 'tblTempVendorCDR_20' ) end [2025-03-03 15:05:23] Production.INFO: ProcessCDR(1,14599266,1,1,2) [2025-03-03 15:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599266', 'tblTempUsageDetail_20' ) start [2025-03-03 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599266', 'tblTempUsageDetail_20' ) end [2025-03-03 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:05:28] Production.INFO: ==30624== Releasing lock... [2025-03-03 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:05:28] Production.INFO: 78.5 MB #Memory Used# [2025-03-03 20:06:01] Production.INFO: ==30682== Lock acquired, processing the job... [2025-03-03 20:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:06:01] Production.INFO: neon service started [2025-03-03 20:06:01] Production.INFO: neon service started [2025-03-03 20:06:01] Production.INFO: ==30682== Releasing lock... [2025-03-03 20:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:06:02] Production.INFO: ==30685== Lock acquired, processing the job... [2025-03-03 15:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:06:02] Production.INFO: ==30687== Lock acquired, processing the job... [2025-03-03 20:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:06:02] Production.INFO: ==30687== Releasing lock... [2025-03-03 20:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:06:03] Production.INFO: ==30685== Releasing lock... [2025-03-03 15:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:06:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:06:03] Production.INFO: ==30693== Lock acquired, processing the job... [2025-03-03 15:06:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:06:04] Production.INFO: ==30700== Lock acquired, processing the job... [2025-03-03 15:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:06:04] Production.INFO: count ==13 [2025-03-03 15:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:06:04] Production.INFO: count ==21 [2025-03-03 15:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599267') start [2025-03-03 15:06:04] Production.INFO: ==30689== Lock acquired, processing the job... [2025-03-03 15:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:06:04] Production.INFO: ==30691== Lock acquired, processing the job... [2025-03-03 15:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:06:04] Production.INFO: ==30697== Lock acquired, processing the job... [2025-03-03 15:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599267') end [2025-03-03 15:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:06:04] Production.INFO: 1 [2025-03-03 15:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:06:04] Production.INFO: ==30700== Releasing lock... [2025-03-03 15:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:06:04] Production.INFO: ==30695== Lock acquired, processing the job... [2025-03-03 15:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:06:04] Production.INFO: Account Balance Start. [2025-03-03 15:06:04] Production.INFO: CreateAllLog Start [2025-03-03 15:06:04] Production.INFO: 117 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.INFO: ==30691== Releasing lock... [2025-03-03 15:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.ERROR: done [2025-03-03 15:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.ERROR: done [2025-03-03 15:06:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:06:05] Production.INFO: Total Charge 0 [2025-03-03 15:06:05] Production.INFO: CreateAllLog End [2025-03-03 15:06:05] Production.INFO: Account Balance End. [2025-03-03 15:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:06:05] Production.INFO: ==30695== Releasing lock... [2025-03-03 15:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:06:06 [end_date_ymd] => 2025-03-03 15:06:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:06:06' and `end` < '2025-03-03 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-03-03 15:06:15] Production.ERROR: CronJobId end10 [2025-03-03 15:06:15] Production.INFO: ==30693== Releasing lock... [2025-03-03 15:06:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:06:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:06:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:06:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:06:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:06:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:06:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:06:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:06:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:06:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:06:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:06:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:06:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:06:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:06:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:06:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:06:16] Production.INFO: call_cost start [2025-03-03 15:06:16] Production.INFO: call_cost end [2025-03-03 15:06:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:06:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:06:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:06:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:06:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:06:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:06:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:06:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:06:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:06:17] Production.INFO: ==30689== Releasing lock... [2025-03-03 15:06:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:06:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:06:19] Production.INFO: count ==6735 [2025-03-03 15:06:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:06:06 - End Time 2025-03-03 15:06:06 [2025-03-03 15:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599271', 'tblTempUsageDetail_20' ) start [2025-03-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599271', 'tblTempUsageDetail_20' ) end [2025-03-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599271', 'tblTempVendorCDR_20' ) start [2025-03-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599271', 'tblTempVendorCDR_20' ) end [2025-03-03 15:06:23] Production.INFO: ProcessCDR(1,14599271,1,1,2) [2025-03-03 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599271', 'tblTempUsageDetail_20' ) start [2025-03-03 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599271', 'tblTempUsageDetail_20' ) end [2025-03-03 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:06:28] Production.INFO: ==30697== Releasing lock... [2025-03-03 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:06:28] Production.INFO: 78.5 MB #Memory Used# [2025-03-03 20:07:02] Production.INFO: ==30754== Lock acquired, processing the job... [2025-03-03 20:07:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:07:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:07:02] Production.INFO: neon service started [2025-03-03 20:07:02] Production.INFO: neon service started [2025-03-03 20:07:02] Production.INFO: ==30754== Releasing lock... [2025-03-03 20:07:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:07:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:07:03] Production.INFO: ==30756== Lock acquired, processing the job... [2025-03-03 15:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:07:03] Production.INFO: ==30758== Lock acquired, processing the job... [2025-03-03 20:07:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:07:03] Production.INFO: ==30758== Releasing lock... [2025-03-03 20:07:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:07:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:07:03] Production.INFO: ==30756== Releasing lock... [2025-03-03 15:07:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:07:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:07:04] Production.INFO: ==30761== Lock acquired, processing the job... [2025-03-03 15:07:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:07:04] Production.INFO: ==30763== Lock acquired, processing the job... [2025-03-03 15:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:07:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:07:04] Production.INFO: ==30771== Lock acquired, processing the job... [2025-03-03 15:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:07:04] Production.INFO: ==30765== Lock acquired, processing the job... [2025-03-03 15:07:04] Production.INFO: ==30767== Lock acquired, processing the job... [2025-03-03 15:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:07:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:07:04] Production.INFO: ==30769== Lock acquired, processing the job... [2025-03-03 15:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:07:04] Production.INFO: ==30763== Releasing lock... [2025-03-03 15:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:07:04] Production.INFO: Account Balance Start. [2025-03-03 15:07:04] Production.INFO: CreateAllLog Start [2025-03-03 15:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:07:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:07:04] Production.INFO: 117 [2025-03-03 15:07:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:07:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:07:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:07:04] Production.INFO: count ==13 [2025-03-03 15:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:07:04] Production.INFO: count ==21 [2025-03-03 15:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599274') start [2025-03-03 15:07:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:07:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-10 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-11 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-12 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599274') end [2025-03-03 15:07:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:07:05] Production.INFO: 1 [2025-03-03 15:07:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:07:05] Production.INFO: Date 2025-02-13 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: ==30771== Releasing lock... [2025-03-03 15:07:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:07:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:07:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.ERROR: done [2025-03-03 15:07:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.ERROR: done [2025-03-03 15:07:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:07:05] Production.INFO: Total Charge 0 [2025-03-03 15:07:06] Production.INFO: CreateAllLog End [2025-03-03 15:07:06] Production.INFO: Account Balance End. [2025-03-03 15:07:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:07:06] Production.INFO: ==30767== Releasing lock... [2025-03-03 15:07:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:07:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:07:06 [end_date_ymd] => 2025-03-03 15:07:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:07:06' and `end` < '2025-03-03 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-03-03 15:07:14] Production.ERROR: CronJobId end10 [2025-03-03 15:07:14] Production.INFO: ==30765== Releasing lock... [2025-03-03 15:07:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:07:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:07:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:07:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:07:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:07:16] Production.INFO: call_cost start [2025-03-03 15:07:16] Production.INFO: call_cost end [2025-03-03 15:07:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:07:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:07:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:07:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:07:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:07:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:07:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:07:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:07:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:07:17] Production.INFO: ==30761== Releasing lock... [2025-03-03 15:07:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:07:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:07:20] Production.INFO: count ==6719 [2025-03-03 15:07:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:07:06 - End Time 2025-03-03 15:07:06 [2025-03-03 15:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599276', 'tblTempUsageDetail_20' ) start [2025-03-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599276', 'tblTempUsageDetail_20' ) end [2025-03-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599276', 'tblTempVendorCDR_20' ) start [2025-03-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599276', 'tblTempVendorCDR_20' ) end [2025-03-03 15:07:23] Production.INFO: ProcessCDR(1,14599276,1,1,2) [2025-03-03 15:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599276', 'tblTempUsageDetail_20' ) start [2025-03-03 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599276', 'tblTempUsageDetail_20' ) end [2025-03-03 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:07:28] Production.INFO: ==30769== Releasing lock... [2025-03-03 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:07:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:08:01] Production.INFO: ==30866== Lock acquired, processing the job... [2025-03-03 20:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:08:01] Production.INFO: neon service started [2025-03-03 20:08:02] Production.INFO: neon service started [2025-03-03 20:08:02] Production.INFO: ==30866== Releasing lock... [2025-03-03 20:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:08:02] Production.INFO: ==30868== Lock acquired, processing the job... [2025-03-03 15:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:08:02] Production.INFO: ==30868== Releasing lock... [2025-03-03 15:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:08:03] Production.INFO: ==30870== Lock acquired, processing the job... [2025-03-03 20:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:08:03] Production.INFO: ==30870== Releasing lock... [2025-03-03 20:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:08:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:08:03] Production.INFO: ==30892== Lock acquired, processing the job... [2025-03-03 15:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:08:03] Production.INFO: ==30894== Lock acquired, processing the job... [2025-03-03 15:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:08:03] Production.INFO: ==30897== Lock acquired, processing the job... [2025-03-03 15:08:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:08:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:08:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:08:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:08:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:08:03] Production.INFO: Account Balance Start. [2025-03-03 15:08:03] Production.INFO: CreateAllLog Start [2025-03-03 15:08:03] Production.INFO: 117 [2025-03-03 15:08:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:08:03] Production.INFO: ==30890== Lock acquired, processing the job... [2025-03-03 15:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:08:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: ==30892== Releasing lock... [2025-03-03 15:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: ==30901== Lock acquired, processing the job... [2025-03-03 15:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:08:04] Production.INFO: ==30904== Lock acquired, processing the job... [2025-03-03 15:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: count ==13 [2025-03-03 15:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:08:04] Production.INFO: count ==21 [2025-03-03 15:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599280') start [2025-03-03 15:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599280') end [2025-03-03 15:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:08:04] Production.INFO: 1 [2025-03-03 15:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:08:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: ==30904== Releasing lock... [2025-03-03 15:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:08:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.ERROR: done [2025-03-03 15:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.ERROR: done [2025-03-03 15:08:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:08:05] Production.INFO: Total Charge 0 [2025-03-03 15:08:05] Production.INFO: CreateAllLog End [2025-03-03 15:08:05] Production.INFO: Account Balance End. [2025-03-03 15:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:08:05] Production.INFO: ==30897== Releasing lock... [2025-03-03 15:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:08:05 [end_date_ymd] => 2025-03-03 15:08:05 [RateCDR] => 1 ) [2025-03-03 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:08:05' and `end` < '2025-03-03 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:08:14] Production.ERROR: CronJobId end10 [2025-03-03 15:08:14] Production.INFO: ==30894== Releasing lock... [2025-03-03 15:08:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:08:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:08:16] Production.INFO: call_cost start [2025-03-03 15:08:16] Production.INFO: call_cost end [2025-03-03 15:08:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:08:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:08:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:08:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:08:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:08:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:08:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:08:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:08:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:08:17] Production.INFO: ==30890== Releasing lock... [2025-03-03 15:08:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:08:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:08:19] Production.INFO: count ==6711 [2025-03-03 15:08:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:08:05 - End Time 2025-03-03 15:08:05 [2025-03-03 15:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599281', 'tblTempUsageDetail_20' ) start [2025-03-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599281', 'tblTempUsageDetail_20' ) end [2025-03-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599281', 'tblTempVendorCDR_20' ) start [2025-03-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599281', 'tblTempVendorCDR_20' ) end [2025-03-03 15:08:23] Production.INFO: ProcessCDR(1,14599281,1,1,2) [2025-03-03 15:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599281', 'tblTempUsageDetail_20' ) start [2025-03-03 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599281', 'tblTempUsageDetail_20' ) end [2025-03-03 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:08:28] Production.INFO: ==30901== Releasing lock... [2025-03-03 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:08:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:09:01] Production.INFO: ==30976== Lock acquired, processing the job... [2025-03-03 20:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:09:01] Production.INFO: neon service started [2025-03-03 20:09:01] Production.INFO: neon service started [2025-03-03 20:09:01] Production.INFO: ==30976== Releasing lock... [2025-03-03 20:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:09:01] Production.INFO: ==30978== Lock acquired, processing the job... [2025-03-03 15:09:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:09:02] Production.INFO: ==30978== Releasing lock... [2025-03-03 15:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:09:02] Production.INFO: ==30980== Lock acquired, processing the job... [2025-03-03 20:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:09:02] Production.INFO: ==30980== Releasing lock... [2025-03-03 20:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:09:03] Production.INFO: ==30990== Lock acquired, processing the job... [2025-03-03 15:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:09:03] Production.INFO: ==30992== Lock acquired, processing the job... [2025-03-03 15:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:09:03] Production.INFO: ==30982== Lock acquired, processing the job... [2025-03-03 15:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:09:03] Production.INFO: ==30984== Lock acquired, processing the job... [2025-03-03 15:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:09:03] Production.INFO: count ==13 [2025-03-03 15:09:03] Production.INFO: ==30986== Lock acquired, processing the job... [2025-03-03 15:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:09:03] Production.INFO: ==30988== Lock acquired, processing the job... [2025-03-03 15:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:09:03] Production.INFO: count ==21 [2025-03-03 15:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599282') start [2025-03-03 15:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599282') end [2025-03-03 15:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:09:03] Production.INFO: 1 [2025-03-03 15:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:09:03] Production.INFO: Account Balance Start. [2025-03-03 15:09:03] Production.INFO: CreateAllLog Start [2025-03-03 15:09:03] Production.INFO: 117 [2025-03-03 15:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:03] Production.INFO: ==30992== Releasing lock... [2025-03-03 15:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:09:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:03] Production.ERROR: done [2025-03-03 15:09:03] Production.INFO: ==30984== Releasing lock... [2025-03-03 15:09:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:09:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:09:04] Production.ERROR: done [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:09:05] Production.INFO: Total Charge 0 [2025-03-03 15:09:05] Production.INFO: CreateAllLog End [2025-03-03 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:09:05 [end_date_ymd] => 2025-03-03 15:09:05 [RateCDR] => 1 ) [2025-03-03 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:09:05' and `end` < '2025-03-03 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:09:05] Production.INFO: Account Balance End. [2025-03-03 15:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:09:05] Production.INFO: ==30988== Releasing lock... [2025-03-03 15:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:09:13] Production.ERROR: CronJobId end10 [2025-03-03 15:09:13] Production.INFO: ==30986== Releasing lock... [2025-03-03 15:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:09:15] Production.INFO: call_cost start [2025-03-03 15:09:15] Production.INFO: call_cost end [2025-03-03 15:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:09:15] Production.INFO: ==30982== Releasing lock... [2025-03-03 15:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:09:18] Production.INFO: count ==6711 [2025-03-03 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:09:05 - End Time 2025-03-03 15:09:05 [2025-03-03 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599286', 'tblTempUsageDetail_20' ) start [2025-03-03 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599286', 'tblTempUsageDetail_20' ) end [2025-03-03 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599286', 'tblTempVendorCDR_20' ) start [2025-03-03 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599286', 'tblTempVendorCDR_20' ) end [2025-03-03 15:09:22] Production.INFO: ProcessCDR(1,14599286,1,1,2) [2025-03-03 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599286', 'tblTempUsageDetail_20' ) start [2025-03-03 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599286', 'tblTempUsageDetail_20' ) end [2025-03-03 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:09:27] Production.INFO: ==30990== Releasing lock... [2025-03-03 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:09:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:10:01] Production.INFO: ==31050== Lock acquired, processing the job... [2025-03-03 20:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:10:02] Production.INFO: neon service started [2025-03-03 20:10:02] Production.INFO: neon service started [2025-03-03 20:10:02] Production.INFO: ==31050== Releasing lock... [2025-03-03 20:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:10:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:10:02] Production.INFO: ==31052== Lock acquired, processing the job... [2025-03-03 15:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:10:02] Production.INFO: ==31052== Releasing lock... [2025-03-03 15:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:10:02] Production.INFO: ==31054== Lock acquired, processing the job... [2025-03-03 20:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:10:03] Production.INFO: ==31054== Releasing lock... [2025-03-03 20:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:10:04] Production.INFO: ==31060== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:10:04] Production.INFO: ==31056== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 15:10:04] Production.INFO: ==31064== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:10:04] Production.INFO: ==31058== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:10:04] Production.INFO: ==31068== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 15:10:04] Production.INFO: ==31062== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 15:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:10:04] Production.ERROR: CronJob PID - 31060 [2025-03-03 15:10:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 15:10:04] Production.ERROR: CronJob ID - 7 [2025-03-03 15:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:10:00 [2025-03-03 15:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:10:04] Production.ERROR: CronJob PID - 31064 [2025-03-03 15:10:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 15:10:04] Production.ERROR: CronJob ID - 12 [2025-03-03 15:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:10:00 [2025-03-03 15:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:10:04] Production.INFO: Account Balance Start. [2025-03-03 15:10:04] Production.INFO: CreateAllLog Start [2025-03-03 15:10:04] Production.INFO: 117 [2025-03-03 15:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 15:10:04] Production.INFO: ==31056== Releasing lock... [2025-03-03 15:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 15:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:10:04] Production.INFO: ==31066== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:04] Production.INFO: ==31071== Lock acquired, processing the job... [2025-03-03 15:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:10:04] Production.INFO: ==31060== Releasing lock... [2025-03-03 15:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:04] Production.INFO: count ==13 [2025-03-03 15:10:04] Production.ERROR: done [2025-03-03 15:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:10:04] Production.INFO: count ==21 [2025-03-03 15:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 15:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599291', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 15:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599290') start [2025-03-03 15:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:05] Production.ERROR: done [2025-03-03 15:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599290') end [2025-03-03 15:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:10:05] Production.INFO: 1 [2025-03-03 15:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:10:05] Production.INFO: ==31071== Releasing lock... [2025-03-03 15:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:05] Production.ERROR: done [2025-03-03 15:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-20 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-21 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-22 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-23 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-24 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-25 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-26 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-27 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-02-28 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-03-01 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-03-02 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Date 2025-03-03 [2025-03-03 15:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:10:06] Production.INFO: Total Charge 0 [2025-03-03 15:10:06] Production.INFO: CreateAllLog End [2025-03-03 15:10:06] Production.INFO: Account Balance End. [2025-03-03 15:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:10:06 [end_date_ymd] => 2025-03-03 15:10:06 [RateCDR] => 1 ) [2025-03-03 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:10:06' and `end` < '2025-03-03 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:10:06] Production.INFO: ==31064== Releasing lock... [2025-03-03 15:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599291', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 15:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 15:10:09] Production.INFO: ProcessCDR(1,14599291,1,1,2) [2025-03-03 15:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599291,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599291,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:10:09] Production.INFO: ==31068== Releasing lock... [2025-03-03 15:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 15:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:10:16] Production.ERROR: CronJobId end10 [2025-03-03 15:10:16] Production.INFO: ==31062== Releasing lock... [2025-03-03 15:10:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:10:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:10:17] Production.INFO: call_cost start [2025-03-03 15:10:17] Production.INFO: call_cost end [2025-03-03 15:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:10:18] Production.INFO: ==31058== Releasing lock... [2025-03-03 15:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:10:20] Production.INFO: count ==6733 [2025-03-03 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:10:06 - End Time 2025-03-03 15:10:06 [2025-03-03 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599292', 'tblTempUsageDetail_20' ) start [2025-03-03 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599292', 'tblTempUsageDetail_20' ) end [2025-03-03 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599292', 'tblTempVendorCDR_20' ) start [2025-03-03 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599292', 'tblTempVendorCDR_20' ) end [2025-03-03 15:10:23] Production.INFO: ProcessCDR(1,14599292,1,1,2) [2025-03-03 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599292', 'tblTempUsageDetail_20' ) start [2025-03-03 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599292', 'tblTempUsageDetail_20' ) end [2025-03-03 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:10:29] Production.INFO: ==31066== Releasing lock... [2025-03-03 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:10:29] Production.INFO: 78.5 MB #Memory Used# [2025-03-03 20:11:01] Production.INFO: ==31125== Lock acquired, processing the job... [2025-03-03 20:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:11:01] Production.INFO: neon service started [2025-03-03 20:11:01] Production.INFO: neon service started [2025-03-03 20:11:01] Production.INFO: ==31125== Releasing lock... [2025-03-03 20:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:11:02] Production.INFO: ==31127== Lock acquired, processing the job... [2025-03-03 15:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:11:02] Production.INFO: ==31129== Lock acquired, processing the job... [2025-03-03 20:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:11:02] Production.INFO: ==31129== Releasing lock... [2025-03-03 20:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:11:02] Production.INFO: ==31127== Releasing lock... [2025-03-03 15:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:11:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:11:03] Production.INFO: ==31132== Lock acquired, processing the job... [2025-03-03 15:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:11:03] Production.INFO: ==31140== Lock acquired, processing the job... [2025-03-03 15:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:11:03] Production.INFO: ==31134== Lock acquired, processing the job... [2025-03-03 15:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:11:03] Production.INFO: ==31136== Lock acquired, processing the job... [2025-03-03 15:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:11:03] Production.INFO: ==31138== Lock acquired, processing the job... [2025-03-03 15:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:11:03] Production.INFO: ==31142== Lock acquired, processing the job... [2025-03-03 15:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:11:04] Production.INFO: count ==13 [2025-03-03 15:11:04] Production.INFO: Account Balance Start. [2025-03-03 15:11:04] Production.INFO: CreateAllLog Start [2025-03-03 15:11:04] Production.INFO: 117 [2025-03-03 15:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:11:04] Production.INFO: count ==21 [2025-03-03 15:11:04] Production.ERROR: done [2025-03-03 15:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:11:04] Production.INFO: ==31134== Releasing lock... [2025-03-03 15:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599296') start [2025-03-03 15:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599296') end [2025-03-03 15:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:11:04] Production.INFO: 1 [2025-03-03 15:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: ==31142== Releasing lock... [2025-03-03 15:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:11:04] Production.ERROR: done [2025-03-03 15:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:11:05] Production.INFO: Total Charge 0 [2025-03-03 15:11:05] Production.INFO: CreateAllLog End [2025-03-03 15:11:05] Production.INFO: Account Balance End. [2025-03-03 15:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:11:05] Production.INFO: ==31138== Releasing lock... [2025-03-03 15:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:11:05 [end_date_ymd] => 2025-03-03 15:11:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:11:05' and `end` < '2025-03-03 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-03-03 15:11:13] Production.ERROR: CronJobId end10 [2025-03-03 15:11:13] Production.INFO: ==31136== Releasing lock... [2025-03-03 15:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:11:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:11:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:11:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:11:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:11:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:11:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:11:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:11:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:11:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:11:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:11:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:11:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:11:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:11:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:11:14] Production.INFO: call_cost start [2025-03-03 15:11:14] Production.INFO: call_cost end [2025-03-03 15:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:11:15] Production.INFO: ==31132== Releasing lock... [2025-03-03 15:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:11:18] Production.INFO: count ==6726 [2025-03-03 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:11:05 - End Time 2025-03-03 15:11:05 [2025-03-03 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599297', 'tblTempUsageDetail_20' ) start [2025-03-03 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599297', 'tblTempUsageDetail_20' ) end [2025-03-03 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599297', 'tblTempVendorCDR_20' ) start [2025-03-03 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599297', 'tblTempVendorCDR_20' ) end [2025-03-03 15:11:22] Production.INFO: ProcessCDR(1,14599297,1,1,2) [2025-03-03 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599297', 'tblTempUsageDetail_20' ) start [2025-03-03 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599297', 'tblTempUsageDetail_20' ) end [2025-03-03 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:11:27] Production.INFO: ==31140== Releasing lock... [2025-03-03 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:11:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:12:02] Production.INFO: ==31282== Lock acquired, processing the job... [2025-03-03 20:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:12:02] Production.INFO: neon service started [2025-03-03 20:12:02] Production.INFO: neon service started [2025-03-03 20:12:02] Production.INFO: ==31282== Releasing lock... [2025-03-03 20:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:12:02] Production.INFO: ==31284== Lock acquired, processing the job... [2025-03-03 15:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:12:02] Production.INFO: ==31284== Releasing lock... [2025-03-03 15:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:12:03] Production.INFO: ==31286== Lock acquired, processing the job... [2025-03-03 20:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:12:03] Production.INFO: ==31286== Releasing lock... [2025-03-03 20:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:12:03] Production.INFO: ==31288== Lock acquired, processing the job... [2025-03-03 15:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:12:03] Production.INFO: ==31292== Lock acquired, processing the job... [2025-03-03 15:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:12:03] Production.INFO: ==31294== Lock acquired, processing the job... [2025-03-03 15:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:12:03] Production.INFO: Account Balance Start. [2025-03-03 15:12:03] Production.INFO: CreateAllLog Start [2025-03-03 15:12:03] Production.INFO: 117 [2025-03-03 15:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: ==31290== Lock acquired, processing the job... [2025-03-03 15:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: ==31298== Lock acquired, processing the job... [2025-03-03 15:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:12:04] Production.INFO: ==31296== Lock acquired, processing the job... [2025-03-03 15:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:12:04] Production.INFO: count ==13 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:12:04] Production.INFO: count ==21 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599301') start [2025-03-03 15:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: ==31290== Releasing lock... [2025-03-03 15:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599301') end [2025-03-03 15:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:12:04] Production.INFO: 1 [2025-03-03 15:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: ==31298== Releasing lock... [2025-03-03 15:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.ERROR: done [2025-03-03 15:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.ERROR: done [2025-03-03 15:12:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:12:05] Production.INFO: Total Charge 0 [2025-03-03 15:12:05] Production.INFO: CreateAllLog End [2025-03-03 15:12:05] Production.INFO: Account Balance End. [2025-03-03 15:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:12:05] Production.INFO: ==31294== Releasing lock... [2025-03-03 15:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:12:06 [end_date_ymd] => 2025-03-03 15:12:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:12:06' and `end` < '2025-03-03 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-03-03 15:12:14] Production.ERROR: CronJobId end10 [2025-03-03 15:12:14] Production.INFO: ==31292== Releasing lock... [2025-03-03 15:12:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:12:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:12:16] Production.INFO: call_cost start [2025-03-03 15:12:16] Production.INFO: call_cost end [2025-03-03 15:12:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:12:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:12:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:12:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:12:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:12:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:12:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:12:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:12:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:12:17] Production.INFO: ==31288== Releasing lock... [2025-03-03 15:12:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:12:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:12:19] Production.INFO: count ==6718 [2025-03-03 15:12:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:12:06 - End Time 2025-03-03 15:12:06 [2025-03-03 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599302', 'tblTempUsageDetail_20' ) start [2025-03-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599302', 'tblTempUsageDetail_20' ) end [2025-03-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599302', 'tblTempVendorCDR_20' ) start [2025-03-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599302', 'tblTempVendorCDR_20' ) end [2025-03-03 15:12:23] Production.INFO: ProcessCDR(1,14599302,1,1,2) [2025-03-03 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599302', 'tblTempUsageDetail_20' ) start [2025-03-03 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599302', 'tblTempUsageDetail_20' ) end [2025-03-03 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:12:28] Production.INFO: ==31296== Releasing lock... [2025-03-03 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:12:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:13:01] Production.INFO: ==31354== Lock acquired, processing the job... [2025-03-03 20:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:13:01] Production.INFO: neon service started [2025-03-03 20:13:01] Production.INFO: neon service started [2025-03-03 20:13:01] Production.INFO: ==31354== Releasing lock... [2025-03-03 20:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:13:02] Production.INFO: ==31356== Lock acquired, processing the job... [2025-03-03 15:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:13:02] Production.INFO: ==31358== Lock acquired, processing the job... [2025-03-03 20:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:13:02] Production.INFO: ==31358== Releasing lock... [2025-03-03 20:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:13:02] Production.INFO: ==31356== Releasing lock... [2025-03-03 15:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:13:03] Production.INFO: ==31361== Lock acquired, processing the job... [2025-03-03 15:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:13:03] Production.INFO: ==31371== Lock acquired, processing the job... [2025-03-03 15:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:13:04] Production.INFO: ==31363== Lock acquired, processing the job... [2025-03-03 15:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:13:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:13:04] Production.INFO: count ==13 [2025-03-03 15:13:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:13:04] Production.INFO: count ==21 [2025-03-03 15:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599304') start [2025-03-03 15:13:04] Production.INFO: ==31365== Lock acquired, processing the job... [2025-03-03 15:13:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599304') end [2025-03-03 15:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:13:04] Production.INFO: 1 [2025-03-03 15:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:13:04] Production.INFO: ==31367== Lock acquired, processing the job... [2025-03-03 15:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:13:04] Production.INFO: ==31369== Lock acquired, processing the job... [2025-03-03 15:13:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:13:04] Production.INFO: ==31371== Releasing lock... [2025-03-03 15:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:13:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:13:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:13:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:13:04] Production.INFO: Account Balance Start. [2025-03-03 15:13:04] Production.INFO: CreateAllLog Start [2025-03-03 15:13:04] Production.INFO: 117 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:13:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:13:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: ==31363== Releasing lock... [2025-03-03 15:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.ERROR: done [2025-03-03 15:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.ERROR: done [2025-03-03 15:13:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:13:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:13:05] Production.INFO: Total Charge 0 [2025-03-03 15:13:05] Production.INFO: CreateAllLog End [2025-03-03 15:13:05] Production.INFO: Account Balance End. [2025-03-03 15:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:13:05] Production.INFO: ==31367== Releasing lock... [2025-03-03 15:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:13:06 [end_date_ymd] => 2025-03-03 15:13:06 [RateCDR] => 1 ) [2025-03-03 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:13:06' and `end` < '2025-03-03 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:13:14] Production.ERROR: CronJobId end10 [2025-03-03 15:13:14] Production.INFO: ==31365== Releasing lock... [2025-03-03 15:13:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:13:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:13:16] Production.INFO: call_cost start [2025-03-03 15:13:16] Production.INFO: call_cost end [2025-03-03 15:13:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:13:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:13:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:13:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:13:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:13:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:13:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:13:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:13:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:13:17] Production.INFO: ==31361== Releasing lock... [2025-03-03 15:13:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:13:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:13:19] Production.INFO: count ==6726 [2025-03-03 15:13:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:13:06 - End Time 2025-03-03 15:13:06 [2025-03-03 15:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599307', 'tblTempUsageDetail_20' ) start [2025-03-03 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599307', 'tblTempUsageDetail_20' ) end [2025-03-03 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599307', 'tblTempVendorCDR_20' ) start [2025-03-03 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599307', 'tblTempVendorCDR_20' ) end [2025-03-03 15:13:23] Production.INFO: ProcessCDR(1,14599307,1,1,2) [2025-03-03 15:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599307', 'tblTempUsageDetail_20' ) start [2025-03-03 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599307', 'tblTempUsageDetail_20' ) end [2025-03-03 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:13:28] Production.INFO: ==31369== Releasing lock... [2025-03-03 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:13:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:14:02] Production.INFO: ==31428== Lock acquired, processing the job... [2025-03-03 20:14:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:14:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:14:02] Production.INFO: neon service started [2025-03-03 20:14:02] Production.INFO: neon service started [2025-03-03 20:14:02] Production.INFO: ==31428== Releasing lock... [2025-03-03 20:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:14:02] Production.INFO: ==31432== Lock acquired, processing the job... [2025-03-03 15:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:14:02] Production.INFO: ==31432== Releasing lock... [2025-03-03 15:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:14:02] Production.INFO: ==31434== Lock acquired, processing the job... [2025-03-03 20:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:14:03] Production.INFO: ==31434== Releasing lock... [2025-03-03 20:14:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:14:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:14:03] Production.INFO: ==31442== Lock acquired, processing the job... [2025-03-03 15:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:14:03] Production.INFO: ==31446== Lock acquired, processing the job... [2025-03-03 15:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:14:03] Production.INFO: Account Balance Start. [2025-03-03 15:14:03] Production.INFO: CreateAllLog Start [2025-03-03 15:14:03] Production.INFO: 117 [2025-03-03 15:14:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:03] Production.INFO: ==31436== Lock acquired, processing the job... [2025-03-03 15:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:14:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:14:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: ==31438== Lock acquired, processing the job... [2025-03-03 15:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:14:04] Production.INFO: count ==13 [2025-03-03 15:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:14:04] Production.INFO: count ==21 [2025-03-03 15:14:04] Production.INFO: ==31440== Lock acquired, processing the job... [2025-03-03 15:14:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599309') start [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: ==31444== Lock acquired, processing the job... [2025-03-03 15:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599309') end [2025-03-03 15:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:14:04] Production.INFO: 1 [2025-03-03 15:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: ==31446== Releasing lock... [2025-03-03 15:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: ==31438== Releasing lock... [2025-03-03 15:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.ERROR: done [2025-03-03 15:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.ERROR: done [2025-03-03 15:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:14:05] Production.INFO: Total Charge 0 [2025-03-03 15:14:05] Production.INFO: CreateAllLog End [2025-03-03 15:14:05] Production.INFO: Account Balance End. [2025-03-03 15:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:14:05] Production.INFO: ==31442== Releasing lock... [2025-03-03 15:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:14:05 [end_date_ymd] => 2025-03-03 15:14:05 [RateCDR] => 1 ) [2025-03-03 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:14:05' and `end` < '2025-03-03 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:14:14] Production.ERROR: CronJobId end10 [2025-03-03 15:14:14] Production.INFO: ==31440== Releasing lock... [2025-03-03 15:14:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:14:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:14:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:14:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:14:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:14:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:14:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:14:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:14:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:14:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:14:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:14:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:14:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:14:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:14:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:14:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:14:16] Production.INFO: call_cost start [2025-03-03 15:14:16] Production.INFO: call_cost end [2025-03-03 15:14:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:14:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:14:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:14:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:14:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:14:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:14:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:14:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:14:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:14:17] Production.INFO: ==31436== Releasing lock... [2025-03-03 15:14:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:14:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:14:19] Production.INFO: count ==6701 [2025-03-03 15:14:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:14:05 - End Time 2025-03-03 15:14:05 [2025-03-03 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599312', 'tblTempUsageDetail_20' ) start [2025-03-03 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599312', 'tblTempUsageDetail_20' ) end [2025-03-03 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599312', 'tblTempVendorCDR_20' ) start [2025-03-03 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599312', 'tblTempVendorCDR_20' ) end [2025-03-03 15:14:23] Production.INFO: ProcessCDR(1,14599312,1,1,2) [2025-03-03 15:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599312', 'tblTempUsageDetail_20' ) start [2025-03-03 15:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599312', 'tblTempUsageDetail_20' ) end [2025-03-03 15:14:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:14:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:14:29] Production.INFO: ==31444== Releasing lock... [2025-03-03 15:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:14:29] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:15:01] Production.INFO: ==31584== Lock acquired, processing the job... [2025-03-03 20:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:15:01] Production.INFO: neon service started [2025-03-03 20:15:01] Production.INFO: neon service started [2025-03-03 20:15:01] Production.INFO: ==31584== Releasing lock... [2025-03-03 20:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:15:02] Production.INFO: ==31586== Lock acquired, processing the job... [2025-03-03 15:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:15:02] Production.INFO: ==31586== Releasing lock... [2025-03-03 15:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:15:02] Production.INFO: ==31588== Lock acquired, processing the job... [2025-03-03 20:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:15:02] Production.INFO: ==31588== Releasing lock... [2025-03-03 20:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:15:03] Production.INFO: ==31594== Lock acquired, processing the job... [2025-03-03 15:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:15:03] Production.INFO: ==31590== Lock acquired, processing the job... [2025-03-03 15:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:15:03] Production.INFO: ==31601== Lock acquired, processing the job... [2025-03-03 15:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:15:03] Production.INFO: ==31592== Lock acquired, processing the job... [2025-03-03 15:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:15:03] Production.INFO: count ==13 [2025-03-03 15:15:03] Production.INFO: ==31597== Lock acquired, processing the job... [2025-03-03 15:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:15:03] Production.INFO: count ==21 [2025-03-03 15:15:03] Production.INFO: ==31599== Lock acquired, processing the job... [2025-03-03 15:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599313') start [2025-03-03 15:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599313') end [2025-03-03 15:15:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:15:03] Production.INFO: 1 [2025-03-03 15:15:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:15:03] Production.INFO: ==31601== Releasing lock... [2025-03-03 15:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:15:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:15:03] Production.INFO: Account Balance Start. [2025-03-03 15:15:03] Production.INFO: CreateAllLog Start [2025-03-03 15:15:03] Production.INFO: 117 [2025-03-03 15:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: ==31592== Releasing lock... [2025-03-03 15:15:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:15:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.ERROR: done [2025-03-03 15:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.ERROR: done [2025-03-03 15:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:15:05] Production.INFO: Total Charge 0 [2025-03-03 15:15:05] Production.INFO: CreateAllLog End [2025-03-03 15:15:05] Production.INFO: Account Balance End. [2025-03-03 15:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:15:05] Production.INFO: ==31597== Releasing lock... [2025-03-03 15:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:15:05 [end_date_ymd] => 2025-03-03 15:15:05 [RateCDR] => 1 ) [2025-03-03 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:15:05' and `end` < '2025-03-03 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:15:14] Production.ERROR: CronJobId end10 [2025-03-03 15:15:14] Production.INFO: ==31594== Releasing lock... [2025-03-03 15:15:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:15:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:15:16] Production.INFO: call_cost start [2025-03-03 15:15:16] Production.INFO: call_cost end [2025-03-03 15:15:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:15:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:15:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:15:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:15:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:15:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:15:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:15:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:15:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:15:17] Production.INFO: ==31590== Releasing lock... [2025-03-03 15:15:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:15:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:15:19] Production.INFO: count ==6700 [2025-03-03 15:15:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:15:05 - End Time 2025-03-03 15:15:05 [2025-03-03 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599317', 'tblTempUsageDetail_20' ) start [2025-03-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599317', 'tblTempUsageDetail_20' ) end [2025-03-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599317', 'tblTempVendorCDR_20' ) start [2025-03-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599317', 'tblTempVendorCDR_20' ) end [2025-03-03 15:15:23] Production.INFO: ProcessCDR(1,14599317,1,1,2) [2025-03-03 15:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599317', 'tblTempUsageDetail_20' ) start [2025-03-03 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599317', 'tblTempUsageDetail_20' ) end [2025-03-03 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:15:28] Production.INFO: ==31599== Releasing lock... [2025-03-03 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:15:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-03 20:16:02] Production.INFO: ==31654== Lock acquired, processing the job... [2025-03-03 20:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:16:02] Production.INFO: neon service started [2025-03-03 20:16:02] Production.INFO: neon service started [2025-03-03 20:16:02] Production.INFO: ==31654== Releasing lock... [2025-03-03 20:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:16:02] Production.INFO: ==31659== Lock acquired, processing the job... [2025-03-03 20:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:16:02] Production.INFO: ==31659== Releasing lock... [2025-03-03 20:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:16:02] Production.INFO: ==31657== Lock acquired, processing the job... [2025-03-03 15:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:16:03] Production.INFO: ==31657== Releasing lock... [2025-03-03 15:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:16:04] Production.INFO: ==31667== Lock acquired, processing the job... [2025-03-03 15:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:16:04] Production.INFO: ==31671== Lock acquired, processing the job... [2025-03-03 15:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:16:04] Production.INFO: ==31665== Lock acquired, processing the job... [2025-03-03 15:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:16:04] Production.INFO: count ==13 [2025-03-03 15:16:04] Production.INFO: Account Balance Start. [2025-03-03 15:16:04] Production.INFO: CreateAllLog Start [2025-03-03 15:16:04] Production.INFO: 117 [2025-03-03 15:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:16:04] Production.INFO: count ==21 [2025-03-03 15:16:04] Production.INFO: ==31661== Lock acquired, processing the job... [2025-03-03 15:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599318') start [2025-03-03 15:16:04] Production.INFO: ==31663== Lock acquired, processing the job... [2025-03-03 15:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599318') end [2025-03-03 15:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:16:04] Production.INFO: 1 [2025-03-03 15:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:04] Production.INFO: ==31669== Lock acquired, processing the job... [2025-03-03 15:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:04] Production.INFO: ==31671== Releasing lock... [2025-03-03 15:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: ==31663== Releasing lock... [2025-03-03 15:16:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:16:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:16:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.ERROR: done [2025-03-03 15:16:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.ERROR: done [2025-03-03 15:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:16:05] Production.INFO: Total Charge 0 [2025-03-03 15:16:06] Production.INFO: CreateAllLog End [2025-03-03 15:16:06] Production.INFO: Account Balance End. [2025-03-03 15:16:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:16:06] Production.INFO: ==31667== Releasing lock... [2025-03-03 15:16:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:16:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:16:06 [end_date_ymd] => 2025-03-03 15:16:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:16:06' and `end` < '2025-03-03 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-03-03 15:16:13] Production.ERROR: CronJobId end10 [2025-03-03 15:16:13] Production.INFO: ==31665== Releasing lock... [2025-03-03 15:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:16:16] Production.INFO: call_cost start [2025-03-03 15:16:16] Production.INFO: call_cost end [2025-03-03 15:16:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:16:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:16:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:16:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:16:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:16:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:16:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:16:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:16:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:16:17] Production.INFO: ==31661== Releasing lock... [2025-03-03 15:16:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:16:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:16:20] Production.INFO: count ==6694 [2025-03-03 15:16:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:16:06 - End Time 2025-03-03 15:16:06 [2025-03-03 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599322', 'tblTempUsageDetail_20' ) start [2025-03-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599322', 'tblTempUsageDetail_20' ) end [2025-03-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599322', 'tblTempVendorCDR_20' ) start [2025-03-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599322', 'tblTempVendorCDR_20' ) end [2025-03-03 15:16:24] Production.INFO: ProcessCDR(1,14599322,1,1,2) [2025-03-03 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599322', 'tblTempUsageDetail_20' ) start [2025-03-03 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599322', 'tblTempUsageDetail_20' ) end [2025-03-03 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:16:29] Production.INFO: ==31669== Releasing lock... [2025-03-03 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:16:29] Production.INFO: 78 MB #Memory Used# [2025-03-03 20:17:01] Production.INFO: ==31728== Lock acquired, processing the job... [2025-03-03 20:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:17:01] Production.INFO: neon service started [2025-03-03 20:17:01] Production.INFO: neon service started [2025-03-03 20:17:01] Production.INFO: ==31728== Releasing lock... [2025-03-03 20:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:17:02] Production.INFO: ==31730== Lock acquired, processing the job... [2025-03-03 15:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:17:02] Production.INFO: ==31730== Releasing lock... [2025-03-03 15:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:17:02] Production.INFO: ==31732== Lock acquired, processing the job... [2025-03-03 20:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:17:02] Production.INFO: ==31732== Releasing lock... [2025-03-03 20:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:17:03] Production.INFO: ==31744== Lock acquired, processing the job... [2025-03-03 15:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:17:03] Production.INFO: ==31742== Lock acquired, processing the job... [2025-03-03 15:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:17:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:17:03] Production.INFO: count ==13 [2025-03-03 15:17:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:17:03] Production.INFO: count ==21 [2025-03-03 15:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599323') start [2025-03-03 15:17:03] Production.INFO: ==31734== Lock acquired, processing the job... [2025-03-03 15:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:17:03] Production.INFO: ==31736== Lock acquired, processing the job... [2025-03-03 15:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:17:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599323') end [2025-03-03 15:17:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:17:03] Production.INFO: 1 [2025-03-03 15:17:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:17:03] Production.INFO: ==31738== Lock acquired, processing the job... [2025-03-03 15:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:17:03] Production.INFO: ==31740== Lock acquired, processing the job... [2025-03-03 15:17:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:17:03] Production.INFO: ==31744== Releasing lock... [2025-03-03 15:17:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:17:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:17:03] Production.INFO: Account Balance Start. [2025-03-03 15:17:03] Production.INFO: CreateAllLog Start [2025-03-03 15:17:03] Production.INFO: 117 [2025-03-03 15:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:17:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:17:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:03] Production.ERROR: done [2025-03-03 15:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: ==31736== Releasing lock... [2025-03-03 15:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:17:04] Production.ERROR: done [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:17:04] Production.INFO: Total Charge 0 [2025-03-03 15:17:05] Production.INFO: CreateAllLog End [2025-03-03 15:17:05] Production.INFO: Account Balance End. [2025-03-03 15:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:17:05] Production.INFO: ==31740== Releasing lock... [2025-03-03 15:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:17:05 [end_date_ymd] => 2025-03-03 15:17:05 [RateCDR] => 1 ) [2025-03-03 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:17:05' and `end` < '2025-03-03 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:17:14] Production.ERROR: CronJobId end10 [2025-03-03 15:17:14] Production.INFO: ==31738== Releasing lock... [2025-03-03 15:17:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:17:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:17:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:17:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:17:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:17:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:17:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:17:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:17:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:17:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:17:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:17:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:17:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:17:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:17:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:17:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:17:16] Production.INFO: call_cost start [2025-03-03 15:17:16] Production.INFO: call_cost end [2025-03-03 15:17:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:17:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:17:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:17:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:17:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:17:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:17:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:17:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:17:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:17:17] Production.INFO: ==31734== Releasing lock... [2025-03-03 15:17:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:17:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:17:18] Production.INFO: count ==6673 [2025-03-03 15:17:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:17:05 - End Time 2025-03-03 15:17:05 [2025-03-03 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599327', 'tblTempUsageDetail_20' ) start [2025-03-03 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599327', 'tblTempUsageDetail_20' ) end [2025-03-03 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599327', 'tblTempVendorCDR_20' ) start [2025-03-03 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599327', 'tblTempVendorCDR_20' ) end [2025-03-03 15:17:22] Production.INFO: ProcessCDR(1,14599327,1,1,2) [2025-03-03 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599327', 'tblTempUsageDetail_20' ) start [2025-03-03 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599327', 'tblTempUsageDetail_20' ) end [2025-03-03 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:17:27] Production.INFO: ==31742== Releasing lock... [2025-03-03 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:17:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 20:18:02] Production.INFO: ==31839== Lock acquired, processing the job... [2025-03-03 20:18:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:18:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:18:02] Production.INFO: neon service started [2025-03-03 20:18:02] Production.INFO: neon service started [2025-03-03 20:18:02] Production.INFO: ==31839== Releasing lock... [2025-03-03 20:18:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:18:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:18:02] Production.INFO: ==31841== Lock acquired, processing the job... [2025-03-03 15:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:18:02] Production.INFO: ==31841== Releasing lock... [2025-03-03 15:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:18:02] Production.INFO: ==31843== Lock acquired, processing the job... [2025-03-03 20:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:18:03] Production.INFO: ==31843== Releasing lock... [2025-03-03 20:18:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:18:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:18:03] Production.INFO: ==31845== Lock acquired, processing the job... [2025-03-03 15:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:18:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:18:04] Production.INFO: ==31855== Lock acquired, processing the job... [2025-03-03 15:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:18:04] Production.INFO: ==31853== Lock acquired, processing the job... [2025-03-03 15:18:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:18:04] Production.INFO: ==31847== Lock acquired, processing the job... [2025-03-03 15:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:18:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:18:04] Production.INFO: ==31849== Lock acquired, processing the job... [2025-03-03 15:18:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:18:04] Production.INFO: count ==13 [2025-03-03 15:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:18:04] Production.INFO: count ==21 [2025-03-03 15:18:04] Production.INFO: ==31851== Lock acquired, processing the job... [2025-03-03 15:18:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599329') start [2025-03-03 15:18:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:18:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:18:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:18:04] Production.INFO: Account Balance Start. [2025-03-03 15:18:04] Production.INFO: CreateAllLog Start [2025-03-03 15:18:04] Production.INFO: 117 [2025-03-03 15:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599329') end [2025-03-03 15:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:18:04] Production.INFO: 1 [2025-03-03 15:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: ==31855== Releasing lock... [2025-03-03 15:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:18:04] Production.INFO: ==31847== Releasing lock... [2025-03-03 15:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:18:04] Production.ERROR: done [2025-03-03 15:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.ERROR: done [2025-03-03 15:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:18:05] Production.INFO: Total Charge 0 [2025-03-03 15:18:05] Production.INFO: CreateAllLog End [2025-03-03 15:18:05] Production.INFO: Account Balance End. [2025-03-03 15:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:18:05] Production.INFO: ==31851== Releasing lock... [2025-03-03 15:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:18:05 [end_date_ymd] => 2025-03-03 15:18:05 [RateCDR] => 1 ) [2025-03-03 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:18:05' and `end` < '2025-03-03 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:18:15] Production.ERROR: CronJobId end10 [2025-03-03 15:18:15] Production.INFO: ==31849== Releasing lock... [2025-03-03 15:18:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:18:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:18:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:18:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:18:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:18:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:18:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:18:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:18:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:18:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:18:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:18:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:18:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:18:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:18:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:18:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:18:17] Production.INFO: call_cost start [2025-03-03 15:18:17] Production.INFO: call_cost end [2025-03-03 15:18:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:18:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:18:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:18:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:18:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:18:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:18:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:18:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:18:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:18:18] Production.INFO: ==31845== Releasing lock... [2025-03-03 15:18:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:18:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:18:19] Production.INFO: count ==6665 [2025-03-03 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:18:05 - End Time 2025-03-03 15:18:05 [2025-03-03 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599332', 'tblTempUsageDetail_20' ) start [2025-03-03 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599332', 'tblTempUsageDetail_20' ) end [2025-03-03 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599332', 'tblTempVendorCDR_20' ) start [2025-03-03 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599332', 'tblTempVendorCDR_20' ) end [2025-03-03 15:18:22] Production.INFO: ProcessCDR(1,14599332,1,1,2) [2025-03-03 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599332', 'tblTempUsageDetail_20' ) start [2025-03-03 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599332', 'tblTempUsageDetail_20' ) end [2025-03-03 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:18:28] Production.INFO: ==31853== Releasing lock... [2025-03-03 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:18:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 20:19:01] Production.INFO: ==31915== Lock acquired, processing the job... [2025-03-03 20:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:19:01] Production.INFO: neon service started [2025-03-03 20:19:01] Production.INFO: neon service started [2025-03-03 20:19:01] Production.INFO: ==31915== Releasing lock... [2025-03-03 20:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:19:02] Production.INFO: ==31919== Lock acquired, processing the job... [2025-03-03 20:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:19:02] Production.INFO: ==31919== Releasing lock... [2025-03-03 20:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:19:02] Production.INFO: ==31917== Lock acquired, processing the job... [2025-03-03 15:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:19:02] Production.INFO: ==31917== Releasing lock... [2025-03-03 15:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:19:03] Production.INFO: ==31924== Lock acquired, processing the job... [2025-03-03 15:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:19:03] Production.INFO: ==31930== Lock acquired, processing the job... [2025-03-03 15:19:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:19:03] Production.INFO: ==31922== Lock acquired, processing the job... [2025-03-03 15:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:19:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:19:03] Production.INFO: ==31926== Lock acquired, processing the job... [2025-03-03 15:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:19:03] Production.INFO: ==31928== Lock acquired, processing the job... [2025-03-03 15:19:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:19:03] Production.INFO: ==31924== Releasing lock... [2025-03-03 15:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:19:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:19:03] Production.INFO: ==31932== Lock acquired, processing the job... [2025-03-03 15:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:19:03] Production.INFO: Account Balance Start. [2025-03-03 15:19:03] Production.INFO: CreateAllLog Start [2025-03-03 15:19:03] Production.INFO: 117 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: count ==13 [2025-03-03 15:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:19:04] Production.INFO: count ==21 [2025-03-03 15:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599336') start [2025-03-03 15:19:04] Production.ERROR: done [2025-03-03 15:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599336') end [2025-03-03 15:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:19:04] Production.INFO: 1 [2025-03-03 15:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: ==31932== Releasing lock... [2025-03-03 15:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.ERROR: done [2025-03-03 15:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:19:05] Production.INFO: Total Charge 0 [2025-03-03 15:19:05] Production.INFO: CreateAllLog End [2025-03-03 15:19:05] Production.INFO: Account Balance End. [2025-03-03 15:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:19:05] Production.INFO: ==31928== Releasing lock... [2025-03-03 15:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:19:05 [end_date_ymd] => 2025-03-03 15:19:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:19:05' and `end` < '2025-03-03 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-03-03 15:19:14] Production.ERROR: CronJobId end10 [2025-03-03 15:19:14] Production.INFO: ==31926== Releasing lock... [2025-03-03 15:19:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:19:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:19:15] Production.INFO: call_cost start [2025-03-03 15:19:15] Production.INFO: call_cost end [2025-03-03 15:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:19:16] Production.INFO: ==31922== Releasing lock... [2025-03-03 15:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:19:19] Production.INFO: count ==6678 [2025-03-03 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:19:05 - End Time 2025-03-03 15:19:05 [2025-03-03 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599337', 'tblTempUsageDetail_20' ) start [2025-03-03 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599337', 'tblTempUsageDetail_20' ) end [2025-03-03 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599337', 'tblTempVendorCDR_20' ) start [2025-03-03 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599337', 'tblTempVendorCDR_20' ) end [2025-03-03 15:19:22] Production.INFO: ProcessCDR(1,14599337,1,1,2) [2025-03-03 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599337', 'tblTempUsageDetail_20' ) start [2025-03-03 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599337', 'tblTempUsageDetail_20' ) end [2025-03-03 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:19:28] Production.INFO: ==31930== Releasing lock... [2025-03-03 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:19:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 20:20:02] Production.INFO: ==31987== Lock acquired, processing the job... [2025-03-03 20:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:20:02] Production.INFO: neon service started [2025-03-03 20:20:02] Production.INFO: neon service started [2025-03-03 20:20:02] Production.INFO: ==31987== Releasing lock... [2025-03-03 20:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:20:02] Production.INFO: ==31989== Lock acquired, processing the job... [2025-03-03 15:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:20:02] Production.INFO: ==31991== Lock acquired, processing the job... [2025-03-03 20:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:20:02] Production.INFO: ==31991== Releasing lock... [2025-03-03 20:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:20:03] Production.INFO: ==31989== Releasing lock... [2025-03-03 15:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:20:04] Production.INFO: ==31996== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:20:04] Production.INFO: ==31994== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 15:20:04] Production.INFO: ==31998== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 15:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:20:04] Production.ERROR: CronJob PID - 31996 [2025-03-03 15:20:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 15:20:04] Production.ERROR: CronJob ID - 5 [2025-03-03 15:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:20:00 [2025-03-03 15:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:20:04] Production.INFO: ==32002== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 15:20:04] Production.INFO: ==31994== Releasing lock... [2025-03-03 15:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 15:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:20:04] Production.INFO: ==32000== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:20:04] Production.INFO: ==32006== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 15:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:20:04] Production.INFO: Account Balance Start. [2025-03-03 15:20:04] Production.INFO: CreateAllLog Start [2025-03-03 15:20:04] Production.INFO: 117 [2025-03-03 15:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:04] Production.INFO: ==32004== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:20:04] Production.INFO: ==32008== Lock acquired, processing the job... [2025-03-03 15:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:04] Production.INFO: ==31998== Releasing lock... [2025-03-03 15:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: count ==13 [2025-03-03 15:20:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:20:05] Production.INFO: count ==21 [2025-03-03 15:20:05] Production.ERROR: done [2025-03-03 15:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599341') start [2025-03-03 15:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 15:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599342', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 15:20:05] Production.ERROR: done [2025-03-03 15:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599341') end [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:20:05] Production.INFO: 1 [2025-03-03 15:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:20:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.ERROR: done [2025-03-03 15:20:05] Production.INFO: ==32008== Releasing lock... [2025-03-03 15:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:20:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:20:06] Production.INFO: Total Charge 0 [2025-03-03 15:20:06] Production.INFO: CreateAllLog End [2025-03-03 15:20:06] Production.INFO: Account Balance End. [2025-03-03 15:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:20:06] Production.INFO: ==32002== Releasing lock... [2025-03-03 15:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:20:07 [end_date_ymd] => 2025-03-03 15:20:07 [RateCDR] => 1 ) [2025-03-03 15:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:20:07' and `end` < '2025-03-03 15:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:20:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599342', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 15:20:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 15:20:10] Production.INFO: ProcessCDR(1,14599342,1,1,2) [2025-03-03 15:20:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599342,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:20:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599342,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:20:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:20:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:20:10] Production.INFO: ==32006== Releasing lock... [2025-03-03 15:20:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 15:20:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:20:16] Production.ERROR: CronJobId end10 [2025-03-03 15:20:16] Production.INFO: ==32000== Releasing lock... [2025-03-03 15:20:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:20:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:20:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:20:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:20:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:20:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:20:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:20:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:20:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:20:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:20:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:20:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:20:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:20:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:20:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:20:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:20:18] Production.INFO: call_cost start [2025-03-03 15:20:18] Production.INFO: call_cost end [2025-03-03 15:20:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:20:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:20:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:20:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:20:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:20:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:20:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:20:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:20:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:20:19] Production.INFO: ==31996== Releasing lock... [2025-03-03 15:20:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:20:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:20:20] Production.INFO: count ==6636 [2025-03-03 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:20:07 - End Time 2025-03-03 15:20:07 [2025-03-03 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599343', 'tblTempUsageDetail_20' ) start [2025-03-03 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599343', 'tblTempUsageDetail_20' ) end [2025-03-03 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599343', 'tblTempVendorCDR_20' ) start [2025-03-03 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599343', 'tblTempVendorCDR_20' ) end [2025-03-03 15:20:24] Production.INFO: ProcessCDR(1,14599343,1,1,2) [2025-03-03 15:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599343', 'tblTempUsageDetail_20' ) start [2025-03-03 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599343', 'tblTempUsageDetail_20' ) end [2025-03-03 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:20:29] Production.INFO: ==32004== Releasing lock... [2025-03-03 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:20:29] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:21:01] Production.INFO: ==32065== Lock acquired, processing the job... [2025-03-03 20:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:21:01] Production.INFO: neon service started [2025-03-03 20:21:01] Production.INFO: neon service started [2025-03-03 20:21:01] Production.INFO: ==32065== Releasing lock... [2025-03-03 20:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:21:02] Production.INFO: ==32067== Lock acquired, processing the job... [2025-03-03 15:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:21:02] Production.INFO: ==32069== Lock acquired, processing the job... [2025-03-03 20:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:21:02] Production.INFO: ==32069== Releasing lock... [2025-03-03 20:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:21:02] Production.INFO: ==32067== Releasing lock... [2025-03-03 15:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:21:03] Production.INFO: ==32072== Lock acquired, processing the job... [2025-03-03 15:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:21:03] Production.INFO: ==32078== Lock acquired, processing the job... [2025-03-03 15:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:21:03] Production.INFO: Account Balance Start. [2025-03-03 15:21:03] Production.INFO: CreateAllLog Start [2025-03-03 15:21:03] Production.INFO: 117 [2025-03-03 15:21:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:21:03] Production.INFO: ==32080== Lock acquired, processing the job... [2025-03-03 15:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:21:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:03] Production.INFO: Date 2025-02-12 [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:03] Production.INFO: ==32074== Lock acquired, processing the job... [2025-03-03 15:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:21:03] Production.INFO: Date 2025-02-13 [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:03] Production.INFO: ==32076== Lock acquired, processing the job... [2025-03-03 15:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:21:03] Production.INFO: Date 2025-02-14 [2025-03-03 15:21:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: ==32082== Lock acquired, processing the job... [2025-03-03 15:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.ERROR: done [2025-03-03 15:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: count ==13 [2025-03-03 15:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: count ==21 [2025-03-03 15:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599347') start [2025-03-03 15:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:21:04] Production.ERROR: done [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: ==32074== Releasing lock... [2025-03-03 15:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599347') end [2025-03-03 15:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:21:04] Production.INFO: 1 [2025-03-03 15:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:21:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: ==32082== Releasing lock... [2025-03-03 15:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:21:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:21:04] Production.INFO: Total Charge 0 [2025-03-03 15:21:04] Production.INFO: CreateAllLog End [2025-03-03 15:21:04] Production.INFO: Account Balance End. [2025-03-03 15:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:21:05] Production.INFO: ==32078== Releasing lock... [2025-03-03 15:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:21:05 [end_date_ymd] => 2025-03-03 15:21:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:21:05' and `end` < '2025-03-03 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-03-03 15:21:13] Production.ERROR: CronJobId end10 [2025-03-03 15:21:13] Production.INFO: ==32076== Releasing lock... [2025-03-03 15:21:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:21:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:21:15] Production.INFO: call_cost start [2025-03-03 15:21:15] Production.INFO: call_cost end [2025-03-03 15:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:21:16] Production.INFO: ==32072== Releasing lock... [2025-03-03 15:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:21:19] Production.INFO: count ==6626 [2025-03-03 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:21:05 - End Time 2025-03-03 15:21:05 [2025-03-03 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599348', 'tblTempUsageDetail_20' ) start [2025-03-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599348', 'tblTempUsageDetail_20' ) end [2025-03-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599348', 'tblTempVendorCDR_20' ) start [2025-03-03 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599348', 'tblTempVendorCDR_20' ) end [2025-03-03 15:21:23] Production.INFO: ProcessCDR(1,14599348,1,1,2) [2025-03-03 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599348', 'tblTempUsageDetail_20' ) start [2025-03-03 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599348', 'tblTempUsageDetail_20' ) end [2025-03-03 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:21:28] Production.INFO: ==32080== Releasing lock... [2025-03-03 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:21:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:22:02] Production.INFO: ==32135== Lock acquired, processing the job... [2025-03-03 20:22:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:22:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:22:02] Production.INFO: neon service started [2025-03-03 20:22:02] Production.INFO: neon service started [2025-03-03 20:22:02] Production.INFO: ==32135== Releasing lock... [2025-03-03 20:22:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:22:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:22:02] Production.INFO: ==32137== Lock acquired, processing the job... [2025-03-03 15:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:22:02] Production.INFO: ==32139== Lock acquired, processing the job... [2025-03-03 20:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:22:02] Production.INFO: ==32139== Releasing lock... [2025-03-03 20:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:22:03] Production.INFO: ==32137== Releasing lock... [2025-03-03 15:22:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:22:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:22:04] Production.INFO: ==32144== Lock acquired, processing the job... [2025-03-03 15:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:22:04] Production.INFO: ==32142== Lock acquired, processing the job... [2025-03-03 15:22:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:22:04] Production.INFO: ==32152== Lock acquired, processing the job... [2025-03-03 15:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:22:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:22:04] Production.INFO: ==32146== Lock acquired, processing the job... [2025-03-03 15:22:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:22:04] Production.INFO: ==32144== Releasing lock... [2025-03-03 15:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:22:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:22:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:22:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:22:04] Production.INFO: ==32150== Lock acquired, processing the job... [2025-03-03 15:22:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:22:04] Production.INFO: ==32148== Lock acquired, processing the job... [2025-03-03 15:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:22:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:22:04] Production.INFO: count ==13 [2025-03-03 15:22:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:22:04] Production.INFO: count ==21 [2025-03-03 15:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599351') start [2025-03-03 15:22:04] Production.INFO: Account Balance Start. [2025-03-03 15:22:04] Production.INFO: CreateAllLog Start [2025-03-03 15:22:04] Production.INFO: 117 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599351') end [2025-03-03 15:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:22:04] Production.INFO: 1 [2025-03-03 15:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: ==32152== Releasing lock... [2025-03-03 15:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.ERROR: done [2025-03-03 15:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.ERROR: done [2025-03-03 15:22:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:22:05] Production.INFO: Total Charge 0 [2025-03-03 15:22:05] Production.INFO: CreateAllLog End [2025-03-03 15:22:05] Production.INFO: Account Balance End. [2025-03-03 15:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:22:05] Production.INFO: ==32148== Releasing lock... [2025-03-03 15:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:22:06 [end_date_ymd] => 2025-03-03 15:22:06 [RateCDR] => 1 ) [2025-03-03 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:22:06' and `end` < '2025-03-03 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:22:13] Production.ERROR: CronJobId end10 [2025-03-03 15:22:13] Production.INFO: ==32146== Releasing lock... [2025-03-03 15:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:22:15] Production.INFO: call_cost start [2025-03-03 15:22:15] Production.INFO: call_cost end [2025-03-03 15:22:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:22:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:22:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:22:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:22:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:22:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:22:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:22:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:22:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:22:16] Production.INFO: ==32142== Releasing lock... [2025-03-03 15:22:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:22:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:22:19] Production.INFO: count ==6670 [2025-03-03 15:22:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:22:06 - End Time 2025-03-03 15:22:06 [2025-03-03 15:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599353', 'tblTempUsageDetail_20' ) start [2025-03-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599353', 'tblTempUsageDetail_20' ) end [2025-03-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599353', 'tblTempVendorCDR_20' ) start [2025-03-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599353', 'tblTempVendorCDR_20' ) end [2025-03-03 15:22:23] Production.INFO: ProcessCDR(1,14599353,1,1,2) [2025-03-03 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599353', 'tblTempUsageDetail_20' ) start [2025-03-03 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599353', 'tblTempUsageDetail_20' ) end [2025-03-03 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:22:28] Production.INFO: ==32150== Releasing lock... [2025-03-03 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:22:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 20:23:01] Production.INFO: ==32210== Lock acquired, processing the job... [2025-03-03 20:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:23:01] Production.INFO: neon service started [2025-03-03 20:23:01] Production.INFO: neon service started [2025-03-03 20:23:01] Production.INFO: ==32210== Releasing lock... [2025-03-03 20:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:23:02] Production.INFO: ==32212== Lock acquired, processing the job... [2025-03-03 15:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:23:02] Production.INFO: ==32212== Releasing lock... [2025-03-03 15:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:23:02] Production.INFO: ==32214== Lock acquired, processing the job... [2025-03-03 20:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:23:02] Production.INFO: ==32214== Releasing lock... [2025-03-03 20:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:23:03] Production.INFO: ==32216== Lock acquired, processing the job... [2025-03-03 15:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:23:03] Production.INFO: ==32220== Lock acquired, processing the job... [2025-03-03 15:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:23:03] Production.INFO: ==32225== Lock acquired, processing the job... [2025-03-03 15:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:23:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:23:03] Production.INFO: ==32222== Lock acquired, processing the job... [2025-03-03 15:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:23:03] Production.INFO: ==32227== Lock acquired, processing the job... [2025-03-03 15:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:23:03] Production.INFO: ==32218== Lock acquired, processing the job... [2025-03-03 15:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:23:03] Production.INFO: Account Balance Start. [2025-03-03 15:23:03] Production.INFO: CreateAllLog Start [2025-03-03 15:23:03] Production.INFO: 117 [2025-03-03 15:23:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:23:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:03] Production.INFO: count ==13 [2025-03-03 15:23:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:23:03] Production.ERROR: done [2025-03-03 15:23:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:23:03] Production.INFO: count ==21 [2025-03-03 15:23:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599356') start [2025-03-03 15:23:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:23:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.ERROR: done [2025-03-03 15:23:04] Production.INFO: ==32218== Releasing lock... [2025-03-03 15:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599356') end [2025-03-03 15:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:23:04] Production.INFO: 1 [2025-03-03 15:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: ==32227== Releasing lock... [2025-03-03 15:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:23:04] Production.INFO: Total Charge 0 [2025-03-03 15:23:04] Production.INFO: CreateAllLog End [2025-03-03 15:23:05] Production.INFO: Account Balance End. [2025-03-03 15:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:23:05] Production.INFO: ==32222== Releasing lock... [2025-03-03 15:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:23:05 [end_date_ymd] => 2025-03-03 15:23:05 [RateCDR] => 1 ) [2025-03-03 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:23:05' and `end` < '2025-03-03 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:23:14] Production.ERROR: CronJobId end10 [2025-03-03 15:23:14] Production.INFO: ==32220== Releasing lock... [2025-03-03 15:23:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:23:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:23:14] Production.INFO: call_cost start [2025-03-03 15:23:14] Production.INFO: call_cost end [2025-03-03 15:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:23:15] Production.INFO: ==32216== Releasing lock... [2025-03-03 15:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:23:18] Production.INFO: count ==6640 [2025-03-03 15:23:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:23:05 - End Time 2025-03-03 15:23:05 [2025-03-03 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599358', 'tblTempUsageDetail_20' ) start [2025-03-03 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599358', 'tblTempUsageDetail_20' ) end [2025-03-03 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599358', 'tblTempVendorCDR_20' ) start [2025-03-03 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599358', 'tblTempVendorCDR_20' ) end [2025-03-03 15:23:22] Production.INFO: ProcessCDR(1,14599358,1,1,2) [2025-03-03 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599358', 'tblTempUsageDetail_20' ) start [2025-03-03 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599358', 'tblTempUsageDetail_20' ) end [2025-03-03 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:23:27] Production.INFO: ==32225== Releasing lock... [2025-03-03 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:23:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:24:02] Production.INFO: ==32285== Lock acquired, processing the job... [2025-03-03 20:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:24:02] Production.INFO: neon service started [2025-03-03 20:24:02] Production.INFO: neon service started [2025-03-03 20:24:02] Production.INFO: ==32285== Releasing lock... [2025-03-03 20:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:24:02] Production.INFO: ==32287== Lock acquired, processing the job... [2025-03-03 15:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:24:02] Production.INFO: ==32289== Lock acquired, processing the job... [2025-03-03 20:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:24:02] Production.INFO: ==32287== Releasing lock... [2025-03-03 15:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:24:03] Production.INFO: ==32289== Releasing lock... [2025-03-03 20:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:24:03] Production.INFO: ==32297== Lock acquired, processing the job... [2025-03-03 15:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:24:03] Production.INFO: ==32291== Lock acquired, processing the job... [2025-03-03 15:24:03] Production.INFO: ==32301== Lock acquired, processing the job... [2025-03-03 15:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:24:03] Production.INFO: Account Balance Start. [2025-03-03 15:24:03] Production.INFO: CreateAllLog Start [2025-03-03 15:24:04] Production.INFO: 117 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: ==32293== Lock acquired, processing the job... [2025-03-03 15:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: ==32295== Lock acquired, processing the job... [2025-03-03 15:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: count ==13 [2025-03-03 15:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:24:04] Production.INFO: count ==21 [2025-03-03 15:24:04] Production.INFO: ==32299== Lock acquired, processing the job... [2025-03-03 15:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599361') start [2025-03-03 15:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599361') end [2025-03-03 15:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:24:04] Production.INFO: 1 [2025-03-03 15:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: ==32301== Releasing lock... [2025-03-03 15:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:24:04] Production.INFO: ==32293== Releasing lock... [2025-03-03 15:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.ERROR: done [2025-03-03 15:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.ERROR: done [2025-03-03 15:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:24:05] Production.INFO: Total Charge 0 [2025-03-03 15:24:05] Production.INFO: CreateAllLog End [2025-03-03 15:24:05] Production.INFO: Account Balance End. [2025-03-03 15:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:24:05] Production.INFO: ==32297== Releasing lock... [2025-03-03 15:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:24:05 [end_date_ymd] => 2025-03-03 15:24:05 [RateCDR] => 1 ) [2025-03-03 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:24:05' and `end` < '2025-03-03 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:24:13] Production.ERROR: CronJobId end10 [2025-03-03 15:24:13] Production.INFO: ==32295== Releasing lock... [2025-03-03 15:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:24:15] Production.INFO: call_cost start [2025-03-03 15:24:15] Production.INFO: call_cost end [2025-03-03 15:24:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:24:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:24:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:24:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:24:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:24:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:24:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:24:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:24:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:24:16] Production.INFO: ==32291== Releasing lock... [2025-03-03 15:24:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:24:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:24:19] Production.INFO: count ==6629 [2025-03-03 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:24:05 - End Time 2025-03-03 15:24:05 [2025-03-03 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599363', 'tblTempUsageDetail_20' ) start [2025-03-03 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599363', 'tblTempUsageDetail_20' ) end [2025-03-03 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599363', 'tblTempVendorCDR_20' ) start [2025-03-03 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599363', 'tblTempVendorCDR_20' ) end [2025-03-03 15:24:22] Production.INFO: ProcessCDR(1,14599363,1,1,2) [2025-03-03 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599363', 'tblTempUsageDetail_20' ) start [2025-03-03 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599363', 'tblTempUsageDetail_20' ) end [2025-03-03 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:24:28] Production.INFO: ==32299== Releasing lock... [2025-03-03 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:24:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:25:01] Production.INFO: ==32356== Lock acquired, processing the job... [2025-03-03 20:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:25:01] Production.INFO: neon service started [2025-03-03 20:25:01] Production.INFO: neon service started [2025-03-03 20:25:01] Production.INFO: ==32356== Releasing lock... [2025-03-03 20:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:25:01] Production.INFO: ==32360== Lock acquired, processing the job... [2025-03-03 20:25:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:25:02] Production.INFO: ==32360== Releasing lock... [2025-03-03 20:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:25:02] Production.INFO: ==32358== Lock acquired, processing the job... [2025-03-03 15:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:25:02] Production.INFO: ==32358== Releasing lock... [2025-03-03 15:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:25:03] Production.INFO: ==32371== Lock acquired, processing the job... [2025-03-03 15:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:25:03] Production.INFO: ==32373== Lock acquired, processing the job... [2025-03-03 15:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:25:03] Production.INFO: ==32363== Lock acquired, processing the job... [2025-03-03 15:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:25:03] Production.INFO: ==32365== Lock acquired, processing the job... [2025-03-03 15:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:25:03] Production.INFO: ==32367== Lock acquired, processing the job... [2025-03-03 15:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:25:03] Production.INFO: ==32369== Lock acquired, processing the job... [2025-03-03 15:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:25:03] Production.INFO: count ==13 [2025-03-03 15:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:25:03] Production.INFO: count ==21 [2025-03-03 15:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599364') start [2025-03-03 15:25:03] Production.ERROR: done [2025-03-03 15:25:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:25:03] Production.INFO: Account Balance Start. [2025-03-03 15:25:03] Production.INFO: CreateAllLog Start [2025-03-03 15:25:03] Production.INFO: 117 [2025-03-03 15:25:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599364') end [2025-03-03 15:25:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:25:03] Production.INFO: 1 [2025-03-03 15:25:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:25:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: ==32373== Releasing lock... [2025-03-03 15:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:25:04] Production.ERROR: done [2025-03-03 15:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: ==32365== Releasing lock... [2025-03-03 15:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:25:04] Production.INFO: Total Charge 0 [2025-03-03 15:25:04] Production.INFO: CreateAllLog End [2025-03-03 15:25:05] Production.INFO: Account Balance End. [2025-03-03 15:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:25:05] Production.INFO: ==32369== Releasing lock... [2025-03-03 15:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:25:05 [end_date_ymd] => 2025-03-03 15:25:05 [RateCDR] => 1 ) [2025-03-03 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:25:05' and `end` < '2025-03-03 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:25:13] Production.ERROR: CronJobId end10 [2025-03-03 15:25:13] Production.INFO: ==32367== Releasing lock... [2025-03-03 15:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:25:15] Production.INFO: call_cost start [2025-03-03 15:25:15] Production.INFO: call_cost end [2025-03-03 15:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:25:16] Production.INFO: ==32363== Releasing lock... [2025-03-03 15:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:25:19] Production.INFO: count ==6618 [2025-03-03 15:25:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:25:05 - End Time 2025-03-03 15:25:05 [2025-03-03 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599368', 'tblTempUsageDetail_20' ) start [2025-03-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599368', 'tblTempUsageDetail_20' ) end [2025-03-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599368', 'tblTempVendorCDR_20' ) start [2025-03-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599368', 'tblTempVendorCDR_20' ) end [2025-03-03 15:25:22] Production.INFO: ProcessCDR(1,14599368,1,1,2) [2025-03-03 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599368', 'tblTempUsageDetail_20' ) start [2025-03-03 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599368', 'tblTempUsageDetail_20' ) end [2025-03-03 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:25:26] Production.INFO: ==32371== Releasing lock... [2025-03-03 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:25:26] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:26:02] Production.INFO: ==32437== Lock acquired, processing the job... [2025-03-03 20:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:26:02] Production.INFO: neon service started [2025-03-03 20:26:02] Production.INFO: neon service started [2025-03-03 20:26:02] Production.INFO: ==32437== Releasing lock... [2025-03-03 20:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:26:02] Production.INFO: ==32442== Lock acquired, processing the job... [2025-03-03 20:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:26:02] Production.INFO: ==32442== Releasing lock... [2025-03-03 20:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:26:02] Production.INFO: ==32440== Lock acquired, processing the job... [2025-03-03 15:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:26:02] Production.INFO: ==32440== Releasing lock... [2025-03-03 15:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:26:03] Production.INFO: ==32446== Lock acquired, processing the job... [2025-03-03 15:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:26:03] Production.INFO: ==32448== Lock acquired, processing the job... [2025-03-03 15:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:26:03] Production.INFO: ==32452== Lock acquired, processing the job... [2025-03-03 15:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:26:04] Production.INFO: ==32444== Lock acquired, processing the job... [2025-03-03 15:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:26:04] Production.INFO: ==32450== Lock acquired, processing the job... [2025-03-03 15:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:26:04] Production.INFO: ==32454== Lock acquired, processing the job... [2025-03-03 15:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:26:04] Production.INFO: ==32446== Releasing lock... [2025-03-03 15:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:26:04] Production.INFO: Account Balance Start. [2025-03-03 15:26:04] Production.INFO: CreateAllLog Start [2025-03-03 15:26:04] Production.INFO: 117 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.ERROR: done [2025-03-03 15:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:26:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: count ==13 [2025-03-03 15:26:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:26:04] Production.INFO: count ==21 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599372') start [2025-03-03 15:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.ERROR: done [2025-03-03 15:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599372') end [2025-03-03 15:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:26:04] Production.INFO: 1 [2025-03-03 15:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: ==32454== Releasing lock... [2025-03-03 15:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:26:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:26:05] Production.INFO: Total Charge 0 [2025-03-03 15:26:05] Production.INFO: CreateAllLog End [2025-03-03 15:26:05] Production.INFO: Account Balance End. [2025-03-03 15:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:26:05] Production.INFO: ==32450== Releasing lock... [2025-03-03 15:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:26:05 [end_date_ymd] => 2025-03-03 15:26:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:26:05' and `end` < '2025-03-03 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-03-03 15:26:14] Production.ERROR: CronJobId end10 [2025-03-03 15:26:14] Production.INFO: ==32448== Releasing lock... [2025-03-03 15:26:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:26:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:26:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:26:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:26:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:26:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:26:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:26:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:26:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:26:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:26:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:26:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:26:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:26:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:26:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:26:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:26:15] Production.INFO: call_cost start [2025-03-03 15:26:15] Production.INFO: call_cost end [2025-03-03 15:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:26:16] Production.INFO: ==32444== Releasing lock... [2025-03-03 15:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:26:19] Production.INFO: count ==6639 [2025-03-03 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:26:05 - End Time 2025-03-03 15:26:05 [2025-03-03 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599373', 'tblTempUsageDetail_20' ) start [2025-03-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599373', 'tblTempUsageDetail_20' ) end [2025-03-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599373', 'tblTempVendorCDR_20' ) start [2025-03-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599373', 'tblTempVendorCDR_20' ) end [2025-03-03 15:26:22] Production.INFO: ProcessCDR(1,14599373,1,1,2) [2025-03-03 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599373', 'tblTempUsageDetail_20' ) start [2025-03-03 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599373', 'tblTempUsageDetail_20' ) end [2025-03-03 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:26:27] Production.INFO: ==32452== Releasing lock... [2025-03-03 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:26:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:27:01] Production.INFO: ==32512== Lock acquired, processing the job... [2025-03-03 20:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:27:01] Production.INFO: neon service started [2025-03-03 20:27:01] Production.INFO: neon service started [2025-03-03 20:27:01] Production.INFO: ==32512== Releasing lock... [2025-03-03 20:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:27:01] Production.INFO: ==32514== Lock acquired, processing the job... [2025-03-03 15:27:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:27:02] Production.INFO: ==32514== Releasing lock... [2025-03-03 15:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:27:02] Production.INFO: ==32516== Lock acquired, processing the job... [2025-03-03 20:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:27:02] Production.INFO: ==32516== Releasing lock... [2025-03-03 20:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:27:02] Production.INFO: ==32520== Lock acquired, processing the job... [2025-03-03 15:27:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:27:03] Production.INFO: ==32520== Releasing lock... [2025-03-03 15:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:27:03] Production.INFO: ==32518== Lock acquired, processing the job... [2025-03-03 15:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:27:03] Production.INFO: ==32523== Lock acquired, processing the job... [2025-03-03 15:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:27:03] Production.INFO: ==32525== Lock acquired, processing the job... [2025-03-03 15:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:27:03] Production.INFO: ==32527== Lock acquired, processing the job... [2025-03-03 15:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:27:03] Production.INFO: ==32529== Lock acquired, processing the job... [2025-03-03 15:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:27:03] Production.INFO: Account Balance Start. [2025-03-03 15:27:03] Production.INFO: CreateAllLog Start [2025-03-03 15:27:03] Production.INFO: 117 [2025-03-03 15:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:03] Production.INFO: count ==13 [2025-03-03 15:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:27:03] Production.INFO: count ==21 [2025-03-03 15:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599377') start [2025-03-03 15:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:03] Production.ERROR: done [2025-03-03 15:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599377') end [2025-03-03 15:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:27:04] Production.INFO: 1 [2025-03-03 15:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: ==32529== Releasing lock... [2025-03-03 15:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.ERROR: done [2025-03-03 15:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:27:04] Production.INFO: Total Charge 0 [2025-03-03 15:27:04] Production.INFO: CreateAllLog End [2025-03-03 15:27:05] Production.INFO: Account Balance End. [2025-03-03 15:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:27:05] Production.INFO: ==32525== Releasing lock... [2025-03-03 15:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:27:05 [end_date_ymd] => 2025-03-03 15:27:05 [RateCDR] => 1 ) [2025-03-03 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:27:05' and `end` < '2025-03-03 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:27:12] Production.ERROR: CronJobId end10 [2025-03-03 15:27:12] Production.INFO: ==32523== Releasing lock... [2025-03-03 15:27:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:27:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:27:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:27:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:27:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:27:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:27:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:27:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:27:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:27:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:27:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:27:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:27:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:27:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:27:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:27:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:27:14] Production.INFO: call_cost start [2025-03-03 15:27:14] Production.INFO: call_cost end [2025-03-03 15:27:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:27:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:27:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:27:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:27:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:27:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:27:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:27:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:27:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:27:15] Production.INFO: ==32518== Releasing lock... [2025-03-03 15:27:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:27:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:27:18] Production.INFO: count ==6655 [2025-03-03 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-03 12:27:05 - End Time 2025-03-03 15:27:05 [2025-03-03 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599378', 'tblTempUsageDetail_20' ) start [2025-03-03 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599378', 'tblTempUsageDetail_20' ) end [2025-03-03 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599378', 'tblTempVendorCDR_20' ) start [2025-03-03 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599378', 'tblTempVendorCDR_20' ) end [2025-03-03 15:27:21] Production.INFO: ProcessCDR(1,14599378,1,1,2) [2025-03-03 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599378', 'tblTempUsageDetail_20' ) start [2025-03-03 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599378', 'tblTempUsageDetail_20' ) end [2025-03-03 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:27:26] Production.INFO: ==32527== Releasing lock... [2025-03-03 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:27:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:28:01] Production.INFO: ==32584== Lock acquired, processing the job... [2025-03-03 20:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:28:01] Production.INFO: neon service started [2025-03-03 20:28:01] Production.INFO: neon service started [2025-03-03 20:28:01] Production.INFO: ==32584== Releasing lock... [2025-03-03 20:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:28:02] Production.INFO: ==32586== Lock acquired, processing the job... [2025-03-03 15:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:28:02] Production.INFO: ==32586== Releasing lock... [2025-03-03 15:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:28:02] Production.INFO: ==32588== Lock acquired, processing the job... [2025-03-03 20:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:28:02] Production.INFO: ==32588== Releasing lock... [2025-03-03 20:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:28:03] Production.INFO: ==32590== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:28:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:28:03] Production.INFO: ==32594== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:28:03] Production.INFO: ==32596== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:28:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:28:03] Production.INFO: Account Balance Start. [2025-03-03 15:28:03] Production.INFO: CreateAllLog Start [2025-03-03 15:28:03] Production.INFO: ==32592== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:28:03] Production.INFO: 117 [2025-03-03 15:28:03] Production.INFO: ==32598== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:28:03] Production.INFO: ==32600== Lock acquired, processing the job... [2025-03-03 15:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: count ==13 [2025-03-03 15:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:28:04] Production.INFO: count ==21 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599382') start [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.ERROR: done [2025-03-03 15:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: ==32592== Releasing lock... [2025-03-03 15:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599382') end [2025-03-03 15:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:28:04] Production.INFO: 1 [2025-03-03 15:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: ==32600== Releasing lock... [2025-03-03 15:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.ERROR: done [2025-03-03 15:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:28:05] Production.INFO: Total Charge 0 [2025-03-03 15:28:05] Production.INFO: CreateAllLog End [2025-03-03 15:28:05] Production.INFO: Account Balance End. [2025-03-03 15:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:28:05] Production.INFO: ==32596== Releasing lock... [2025-03-03 15:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:28:06 [end_date_ymd] => 2025-03-03 15:28:06 [RateCDR] => 1 ) [2025-03-03 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:28:06' and `end` < '2025-03-03 15:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:28:13] Production.ERROR: CronJobId end10 [2025-03-03 15:28:13] Production.INFO: ==32594== Releasing lock... [2025-03-03 15:28:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:28:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:28:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:28:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:28:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:28:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:28:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:28:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:28:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:28:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:28:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:28:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:28:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:28:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:28:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:28:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:28:15] Production.INFO: call_cost start [2025-03-03 15:28:15] Production.INFO: call_cost end [2025-03-03 15:28:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:28:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:28:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:28:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:28:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:28:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:28:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:28:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:28:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:28:16] Production.INFO: ==32590== Releasing lock... [2025-03-03 15:28:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:28:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:28:19] Production.INFO: count ==6628 [2025-03-03 15:28:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:28:06 - End Time 2025-03-03 15:28:06 [2025-03-03 15:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599383', 'tblTempUsageDetail_20' ) start [2025-03-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599383', 'tblTempUsageDetail_20' ) end [2025-03-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599383', 'tblTempVendorCDR_20' ) start [2025-03-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599383', 'tblTempVendorCDR_20' ) end [2025-03-03 15:28:23] Production.INFO: ProcessCDR(1,14599383,1,1,2) [2025-03-03 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599383', 'tblTempUsageDetail_20' ) start [2025-03-03 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599383', 'tblTempUsageDetail_20' ) end [2025-03-03 15:28:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:28:29] Production.INFO: ==32598== Releasing lock... [2025-03-03 15:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:28:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:29:01] Production.INFO: ==32654== Lock acquired, processing the job... [2025-03-03 20:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:29:01] Production.INFO: neon service started [2025-03-03 20:29:01] Production.INFO: neon service started [2025-03-03 20:29:01] Production.INFO: ==32654== Releasing lock... [2025-03-03 20:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:29:01] Production.INFO: ==32656== Lock acquired, processing the job... [2025-03-03 15:29:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:29:02] Production.INFO: ==32656== Releasing lock... [2025-03-03 15:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:29:02] Production.INFO: ==32658== Lock acquired, processing the job... [2025-03-03 20:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:29:02] Production.INFO: ==32658== Releasing lock... [2025-03-03 20:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:29:03] Production.INFO: ==32666== Lock acquired, processing the job... [2025-03-03 15:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:29:03] Production.INFO: Account Balance Start. [2025-03-03 15:29:03] Production.INFO: CreateAllLog Start [2025-03-03 15:29:03] Production.INFO: 117 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: ==32670== Lock acquired, processing the job... [2025-03-03 15:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: ==32660== Lock acquired, processing the job... [2025-03-03 15:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:29:03] Production.INFO: count ==13 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 15:29:03] Production.INFO: ==32662== Lock acquired, processing the job... [2025-03-03 15:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: count ==21 [2025-03-03 15:29:03] Production.INFO: ==32664== Lock acquired, processing the job... [2025-03-03 15:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599385') start [2025-03-03 15:29:03] Production.INFO: ==32668== Lock acquired, processing the job... [2025-03-03 15:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:29:03] Production.INFO: Date 2025-02-16 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: Date 2025-02-17 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599385') end [2025-03-03 15:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:29:03] Production.INFO: 1 [2025-03-03 15:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:29:03] Production.INFO: ==32670== Releasing lock... [2025-03-03 15:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:29:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:29:03] Production.INFO: Date 2025-02-18 [2025-03-03 15:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: ==32662== Releasing lock... [2025-03-03 15:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:29:04] Production.ERROR: done [2025-03-03 15:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.ERROR: done [2025-03-03 15:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:29:04] Production.INFO: Total Charge 0 [2025-03-03 15:29:04] Production.INFO: CreateAllLog End [2025-03-03 15:29:04] Production.INFO: Account Balance End. [2025-03-03 15:29:04] Production.ERROR: CronJobId end 12 [2025-03-03 15:29:04] Production.INFO: ==32666== Releasing lock... [2025-03-03 15:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:29:05 [end_date_ymd] => 2025-03-03 15:29:05 [RateCDR] => 1 ) [2025-03-03 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:29:05' and `end` < '2025-03-03 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:29:16] Production.ERROR: CronJobId end10 [2025-03-03 15:29:16] Production.INFO: ==32664== Releasing lock... [2025-03-03 15:29:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:29:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:29:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:29:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:29:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:29:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:29:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:29:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:29:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:29:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:29:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:29:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:29:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:29:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:29:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:29:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:29:17] Production.INFO: call_cost start [2025-03-03 15:29:17] Production.INFO: call_cost end [2025-03-03 15:29:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:29:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:29:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:29:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:29:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:29:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:29:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:29:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:29:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:29:18] Production.INFO: ==32660== Releasing lock... [2025-03-03 15:29:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:29:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:29:19] Production.INFO: count ==6634 [2025-03-03 15:29:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:29:05 - End Time 2025-03-03 15:29:05 [2025-03-03 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599388', 'tblTempUsageDetail_20' ) start [2025-03-03 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599388', 'tblTempUsageDetail_20' ) end [2025-03-03 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599388', 'tblTempVendorCDR_20' ) start [2025-03-03 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599388', 'tblTempVendorCDR_20' ) end [2025-03-03 15:29:23] Production.INFO: ProcessCDR(1,14599388,1,1,2) [2025-03-03 15:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599388', 'tblTempUsageDetail_20' ) start [2025-03-03 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599388', 'tblTempUsageDetail_20' ) end [2025-03-03 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:29:28] Production.INFO: ==32668== Releasing lock... [2025-03-03 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:29:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:30:01] Production.INFO: ==32731== Lock acquired, processing the job... [2025-03-03 20:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:30:01] Production.INFO: neon service started [2025-03-03 20:30:02] Production.INFO: neon service started [2025-03-03 20:30:02] Production.INFO: ==32731== Releasing lock... [2025-03-03 20:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:30:02] Production.INFO: ==32733== Lock acquired, processing the job... [2025-03-03 15:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:30:02] Production.INFO: ==32735== Lock acquired, processing the job... [2025-03-03 20:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:30:02] Production.INFO: ==32733== Releasing lock... [2025-03-03 15:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:30:02] Production.INFO: ==32735== Releasing lock... [2025-03-03 20:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:30:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:30:04] Production.INFO: ==32745== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:30:04] Production.INFO: ==32737== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 15:30:04] Production.INFO: ==32747== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:30:04] Production.INFO: ==32752== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:30:04] Production.INFO: ==32739== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:30:04] Production.INFO: Account Balance Start. [2025-03-03 15:30:04] Production.INFO: CreateAllLog Start [2025-03-03 15:30:04] Production.INFO: 117 [2025-03-03 15:30:04] Production.INFO: ==32741== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: ==32743== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: ==32750== Lock acquired, processing the job... [2025-03-03 15:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 15:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: count ==13 [2025-03-03 15:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:30:04] Production.INFO: count ==21 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32739 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 5 [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32741 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 7 [2025-03-03 15:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599390') start [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32743 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 10 [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32745 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 12 [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32747 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 16 [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32750 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 17 [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:30:04] Production.ERROR: CronJob PID - 32752 [2025-03-03 15:30:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 15:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:30:04] Production.ERROR: CronJob ID - 19 [2025-03-03 15:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:30:00 [2025-03-03 15:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:30:04] Production.ERROR: done [2025-03-03 15:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 15:30:04] Production.INFO: ==32737== Releasing lock... [2025-03-03 15:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 15:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:30:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599390') end [2025-03-03 15:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:30:04] Production.INFO: 1 [2025-03-03 15:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:30:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: ==32752== Releasing lock... [2025-03-03 15:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:30:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:30:04] Production.ERROR: done [2025-03-03 15:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:04] Production.INFO: ==32741== Releasing lock... [2025-03-03 15:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.ERROR: done [2025-03-03 15:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 15:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599394', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 15:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:30:05] Production.INFO: Total Charge 0 [2025-03-03 15:30:05] Production.INFO: CreateAllLog End [2025-03-03 15:30:06] Production.INFO: Account Balance End. [2025-03-03 15:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:30:06] Production.INFO: ==32745== Releasing lock... [2025-03-03 15:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:30:06 [end_date_ymd] => 2025-03-03 15:30:06 [RateCDR] => 1 ) [2025-03-03 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:30:06' and `end` < '2025-03-03 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:30:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599394', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 15:30:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 15:30:10] Production.INFO: ProcessCDR(1,14599394,1,1,2) [2025-03-03 15:30:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599394,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:30:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599394,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:30:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:30:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:30:10] Production.INFO: ==32750== Releasing lock... [2025-03-03 15:30:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 15:30:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:30:16] Production.ERROR: CronJobId end10 [2025-03-03 15:30:16] Production.INFO: ==32743== Releasing lock... [2025-03-03 15:30:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:30:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:30:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:30:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:30:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:30:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:30:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:30:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:30:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:30:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:30:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:30:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:30:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:30:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:30:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:30:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:30:18] Production.INFO: call_cost start [2025-03-03 15:30:18] Production.INFO: call_cost end [2025-03-03 15:30:19] Production.INFO: count ==6618 [2025-03-03 15:30:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:30:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:30:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:30:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:30:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:30:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:30:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:30:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:30:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:30:19] Production.INFO: ==32739== Releasing lock... [2025-03-03 15:30:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:30:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:30:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:30:06 - End Time 2025-03-03 15:30:06 [2025-03-03 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599393', 'tblTempUsageDetail_20' ) start [2025-03-03 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599393', 'tblTempUsageDetail_20' ) end [2025-03-03 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599393', 'tblTempVendorCDR_20' ) start [2025-03-03 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599393', 'tblTempVendorCDR_20' ) end [2025-03-03 15:30:23] Production.INFO: ProcessCDR(1,14599393,1,1,2) [2025-03-03 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599393', 'tblTempUsageDetail_20' ) start [2025-03-03 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599393', 'tblTempUsageDetail_20' ) end [2025-03-03 15:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:30:29] Production.INFO: ==32747== Releasing lock... [2025-03-03 15:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:30:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:31:01] Production.INFO: ==357== Lock acquired, processing the job... [2025-03-03 20:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:31:01] Production.INFO: neon service started [2025-03-03 20:31:01] Production.INFO: neon service started [2025-03-03 20:31:01] Production.INFO: ==357== Releasing lock... [2025-03-03 20:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:31:02] Production.INFO: ==359== Lock acquired, processing the job... [2025-03-03 15:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:31:02] Production.INFO: ==361== Lock acquired, processing the job... [2025-03-03 20:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:31:02] Production.INFO: ==361== Releasing lock... [2025-03-03 20:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:31:02] Production.INFO: ==359== Releasing lock... [2025-03-03 15:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:31:03] Production.INFO: ==368== Lock acquired, processing the job... [2025-03-03 15:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:31:03] Production.INFO: ==374== Lock acquired, processing the job... [2025-03-03 15:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:31:03] Production.INFO: ==364== Lock acquired, processing the job... [2025-03-03 15:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:31:03] Production.INFO: count ==13 [2025-03-03 15:31:03] Production.INFO: ==366== Lock acquired, processing the job... [2025-03-03 15:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:31:03] Production.INFO: count ==21 [2025-03-03 15:31:03] Production.INFO: ==370== Lock acquired, processing the job... [2025-03-03 15:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599395') start [2025-03-03 15:31:03] Production.INFO: ==372== Lock acquired, processing the job... [2025-03-03 15:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:31:03] Production.INFO: Account Balance Start. [2025-03-03 15:31:03] Production.INFO: CreateAllLog Start [2025-03-03 15:31:03] Production.INFO: 117 [2025-03-03 15:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599395') end [2025-03-03 15:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:31:03] Production.INFO: 1 [2025-03-03 15:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: ==374== Releasing lock... [2025-03-03 15:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:31:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:31:04] Production.INFO: ==366== Releasing lock... [2025-03-03 15:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.ERROR: done [2025-03-03 15:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.ERROR: done [2025-03-03 15:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:31:04] Production.INFO: Total Charge 0 [2025-03-03 15:31:04] Production.INFO: CreateAllLog End [2025-03-03 15:31:05] Production.INFO: Account Balance End. [2025-03-03 15:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:31:05] Production.INFO: ==370== Releasing lock... [2025-03-03 15:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:31:05 [end_date_ymd] => 2025-03-03 15:31:05 [RateCDR] => 1 ) [2025-03-03 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:31:05' and `end` < '2025-03-03 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:31:14] Production.ERROR: CronJobId end10 [2025-03-03 15:31:14] Production.INFO: ==368== Releasing lock... [2025-03-03 15:31:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:31:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:31:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:31:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:31:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:31:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:31:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:31:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:31:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:31:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:31:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:31:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:31:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:31:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:31:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:31:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:31:16] Production.INFO: call_cost start [2025-03-03 15:31:16] Production.INFO: call_cost end [2025-03-03 15:31:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:31:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:31:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:31:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:31:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:31:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:31:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:31:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:31:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:31:17] Production.INFO: ==364== Releasing lock... [2025-03-03 15:31:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:31:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:31:18] Production.INFO: count ==6619 [2025-03-03 15:31:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:31:05 - End Time 2025-03-03 15:31:05 [2025-03-03 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599399', 'tblTempUsageDetail_20' ) start [2025-03-03 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599399', 'tblTempUsageDetail_20' ) end [2025-03-03 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599399', 'tblTempVendorCDR_20' ) start [2025-03-03 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599399', 'tblTempVendorCDR_20' ) end [2025-03-03 15:31:22] Production.INFO: ProcessCDR(1,14599399,1,1,2) [2025-03-03 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599399', 'tblTempUsageDetail_20' ) start [2025-03-03 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599399', 'tblTempUsageDetail_20' ) end [2025-03-03 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:31:27] Production.INFO: ==372== Releasing lock... [2025-03-03 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:31:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:32:01] Production.INFO: ==427== Lock acquired, processing the job... [2025-03-03 20:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:32:01] Production.INFO: neon service started [2025-03-03 20:32:01] Production.INFO: neon service started [2025-03-03 20:32:01] Production.INFO: ==427== Releasing lock... [2025-03-03 20:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:32:02] Production.INFO: ==429== Lock acquired, processing the job... [2025-03-03 15:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:32:02] Production.INFO: ==429== Releasing lock... [2025-03-03 15:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:32:02] Production.INFO: ==431== Lock acquired, processing the job... [2025-03-03 20:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:32:02] Production.INFO: ==431== Releasing lock... [2025-03-03 20:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:32:03] Production.INFO: ==434== Lock acquired, processing the job... [2025-03-03 15:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:32:03] Production.INFO: ==436== Lock acquired, processing the job... [2025-03-03 15:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:32:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:32:03] Production.INFO: ==440== Lock acquired, processing the job... [2025-03-03 15:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:32:03] Production.INFO: Account Balance Start. [2025-03-03 15:32:03] Production.INFO: CreateAllLog Start [2025-03-03 15:32:03] Production.INFO: 117 [2025-03-03 15:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:03] Production.INFO: ==438== Lock acquired, processing the job... [2025-03-03 15:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:32:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:03] Production.INFO: ==444== Lock acquired, processing the job... [2025-03-03 15:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:32:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:03] Production.INFO: ==442== Lock acquired, processing the job... [2025-03-03 15:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:32:03] Production.INFO: Date 2025-02-12 [2025-03-03 15:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:32:03] Production.INFO: count ==13 [2025-03-03 15:32:03] Production.INFO: Date 2025-02-13 [2025-03-03 15:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:32:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:03] Production.INFO: count ==21 [2025-03-03 15:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:32:03] Production.INFO: ==436== Releasing lock... [2025-03-03 15:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:32:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599403') start [2025-03-03 15:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599403') end [2025-03-03 15:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:32:04] Production.INFO: 1 [2025-03-03 15:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: ==444== Releasing lock... [2025-03-03 15:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:32:04] Production.ERROR: done [2025-03-03 15:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.ERROR: done [2025-03-03 15:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:32:05] Production.INFO: Total Charge 0 [2025-03-03 15:32:05] Production.INFO: CreateAllLog End [2025-03-03 15:32:05] Production.INFO: Account Balance End. [2025-03-03 15:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:32:05] Production.INFO: ==440== Releasing lock... [2025-03-03 15:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:32:05 [end_date_ymd] => 2025-03-03 15:32:05 [RateCDR] => 1 ) [2025-03-03 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:32:05' and `end` < '2025-03-03 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:32:13] Production.ERROR: CronJobId end10 [2025-03-03 15:32:13] Production.INFO: ==438== Releasing lock... [2025-03-03 15:32:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:32:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:32:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:32:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:32:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:32:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:32:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:32:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:32:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:32:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:32:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:32:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:32:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:32:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:32:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:32:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:32:15] Production.INFO: call_cost start [2025-03-03 15:32:15] Production.INFO: call_cost end [2025-03-03 15:32:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:32:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:32:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:32:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:32:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:32:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:32:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:32:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:32:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:32:16] Production.INFO: ==434== Releasing lock... [2025-03-03 15:32:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:32:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:32:19] Production.INFO: count ==6628 [2025-03-03 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:32:05 - End Time 2025-03-03 15:32:05 [2025-03-03 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599404', 'tblTempUsageDetail_20' ) start [2025-03-03 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599404', 'tblTempUsageDetail_20' ) end [2025-03-03 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599404', 'tblTempVendorCDR_20' ) start [2025-03-03 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599404', 'tblTempVendorCDR_20' ) end [2025-03-03 15:32:22] Production.INFO: ProcessCDR(1,14599404,1,1,2) [2025-03-03 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599404', 'tblTempUsageDetail_20' ) start [2025-03-03 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599404', 'tblTempUsageDetail_20' ) end [2025-03-03 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:32:27] Production.INFO: ==442== Releasing lock... [2025-03-03 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:32:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:33:02] Production.INFO: ==540== Lock acquired, processing the job... [2025-03-03 20:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:33:02] Production.INFO: neon service started [2025-03-03 20:33:02] Production.INFO: neon service started [2025-03-03 20:33:02] Production.INFO: ==540== Releasing lock... [2025-03-03 20:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:33:02] Production.INFO: ==542== Lock acquired, processing the job... [2025-03-03 15:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:33:02] Production.INFO: ==544== Lock acquired, processing the job... [2025-03-03 20:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:33:02] Production.INFO: ==544== Releasing lock... [2025-03-03 20:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:33:03] Production.INFO: ==542== Releasing lock... [2025-03-03 15:33:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:33:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:33:04] Production.INFO: ==547== Lock acquired, processing the job... [2025-03-03 15:33:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:33:04] Production.INFO: ==549== Lock acquired, processing the job... [2025-03-03 15:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:33:04] Production.INFO: ==555== Lock acquired, processing the job... [2025-03-03 15:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:33:04] Production.INFO: ==551== Lock acquired, processing the job... [2025-03-03 15:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:33:04] Production.INFO: ==553== Lock acquired, processing the job... [2025-03-03 15:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:33:04] Production.INFO: ==557== Lock acquired, processing the job... [2025-03-03 15:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:33:04] Production.INFO: ==549== Releasing lock... [2025-03-03 15:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:33:04] Production.INFO: Account Balance Start. [2025-03-03 15:33:04] Production.INFO: CreateAllLog Start [2025-03-03 15:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:33:04] Production.INFO: 117 [2025-03-03 15:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.INFO: count ==13 [2025-03-03 15:33:04] Production.ERROR: done [2025-03-03 15:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:33:04] Production.INFO: count ==21 [2025-03-03 15:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599408') start [2025-03-03 15:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.ERROR: done [2025-03-03 15:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599408') end [2025-03-03 15:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:33:04] Production.INFO: 1 [2025-03-03 15:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:04] Production.INFO: ==557== Releasing lock... [2025-03-03 15:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:33:05] Production.INFO: Total Charge 0 [2025-03-03 15:33:05] Production.INFO: CreateAllLog End [2025-03-03 15:33:05] Production.INFO: Account Balance End. [2025-03-03 15:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:33:05] Production.INFO: ==553== Releasing lock... [2025-03-03 15:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:33:06 [end_date_ymd] => 2025-03-03 15:33:06 [RateCDR] => 1 ) [2025-03-03 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:33:06' and `end` < '2025-03-03 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:33:14] Production.ERROR: CronJobId end10 [2025-03-03 15:33:14] Production.INFO: ==551== Releasing lock... [2025-03-03 15:33:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:33:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:33:15] Production.INFO: call_cost start [2025-03-03 15:33:15] Production.INFO: call_cost end [2025-03-03 15:33:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:33:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:33:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:33:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:33:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:33:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:33:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:33:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:33:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:33:16] Production.INFO: ==547== Releasing lock... [2025-03-03 15:33:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:33:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:33:19] Production.INFO: count ==6633 [2025-03-03 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:33:06 - End Time 2025-03-03 15:33:06 [2025-03-03 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599409', 'tblTempUsageDetail_20' ) start [2025-03-03 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599409', 'tblTempUsageDetail_20' ) end [2025-03-03 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599409', 'tblTempVendorCDR_20' ) start [2025-03-03 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599409', 'tblTempVendorCDR_20' ) end [2025-03-03 15:33:23] Production.INFO: ProcessCDR(1,14599409,1,1,2) [2025-03-03 15:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599409', 'tblTempUsageDetail_20' ) start [2025-03-03 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599409', 'tblTempUsageDetail_20' ) end [2025-03-03 15:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:33:28] Production.INFO: ==555== Releasing lock... [2025-03-03 15:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:33:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 20:34:01] Production.INFO: ==626== Lock acquired, processing the job... [2025-03-03 20:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:34:01] Production.INFO: neon service started [2025-03-03 20:34:01] Production.INFO: neon service started [2025-03-03 20:34:01] Production.INFO: ==626== Releasing lock... [2025-03-03 20:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:34:02] Production.INFO: ==628== Lock acquired, processing the job... [2025-03-03 15:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:34:02] Production.INFO: ==628== Releasing lock... [2025-03-03 15:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:34:02] Production.INFO: ==630== Lock acquired, processing the job... [2025-03-03 20:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:34:02] Production.INFO: ==630== Releasing lock... [2025-03-03 20:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:34:03] Production.INFO: ==639== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:34:03] Production.INFO: ==645== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:34:03] Production.INFO: ==635== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:34:03] Production.INFO: ==637== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:34:03] Production.INFO: count ==13 [2025-03-03 15:34:03] Production.INFO: ==641== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:34:03] Production.INFO: count ==21 [2025-03-03 15:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599410') start [2025-03-03 15:34:03] Production.INFO: ==643== Lock acquired, processing the job... [2025-03-03 15:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:34:03] Production.INFO: Account Balance Start. [2025-03-03 15:34:03] Production.INFO: CreateAllLog Start [2025-03-03 15:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599410') end [2025-03-03 15:34:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:34:03] Production.INFO: 1 [2025-03-03 15:34:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:34:03] Production.INFO: 117 [2025-03-03 15:34:03] Production.INFO: ==645== Releasing lock... [2025-03-03 15:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:34:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: ==637== Releasing lock... [2025-03-03 15:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.ERROR: done [2025-03-03 15:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.ERROR: done [2025-03-03 15:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:34:05] Production.INFO: Total Charge 0 [2025-03-03 15:34:05] Production.INFO: CreateAllLog End [2025-03-03 15:34:05] Production.INFO: Account Balance End. [2025-03-03 15:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:34:05] Production.INFO: ==641== Releasing lock... [2025-03-03 15:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:34:05 [end_date_ymd] => 2025-03-03 15:34:05 [RateCDR] => 1 ) [2025-03-03 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:34:05' and `end` < '2025-03-03 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:34:13] Production.ERROR: CronJobId end10 [2025-03-03 15:34:13] Production.INFO: ==639== Releasing lock... [2025-03-03 15:34:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:34:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:34:15] Production.INFO: call_cost start [2025-03-03 15:34:15] Production.INFO: call_cost end [2025-03-03 15:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:34:16] Production.INFO: ==635== Releasing lock... [2025-03-03 15:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:34:18] Production.INFO: count ==6619 [2025-03-03 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:34:05 - End Time 2025-03-03 15:34:05 [2025-03-03 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599414', 'tblTempUsageDetail_20' ) start [2025-03-03 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599414', 'tblTempUsageDetail_20' ) end [2025-03-03 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599414', 'tblTempVendorCDR_20' ) start [2025-03-03 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599414', 'tblTempVendorCDR_20' ) end [2025-03-03 15:34:22] Production.INFO: ProcessCDR(1,14599414,1,1,2) [2025-03-03 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599414', 'tblTempUsageDetail_20' ) start [2025-03-03 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599414', 'tblTempUsageDetail_20' ) end [2025-03-03 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:34:27] Production.INFO: ==643== Releasing lock... [2025-03-03 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:34:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:35:02] Production.INFO: ==722== Lock acquired, processing the job... [2025-03-03 20:35:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:35:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:35:02] Production.INFO: neon service started [2025-03-03 20:35:02] Production.INFO: neon service started [2025-03-03 20:35:02] Production.INFO: ==722== Releasing lock... [2025-03-03 20:35:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:35:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:35:02] Production.INFO: ==726== Lock acquired, processing the job... [2025-03-03 15:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:35:02] Production.INFO: ==726== Releasing lock... [2025-03-03 15:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:35:03] Production.INFO: ==728== Lock acquired, processing the job... [2025-03-03 20:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:35:03] Production.INFO: ==728== Releasing lock... [2025-03-03 20:35:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:35:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:35:03] Production.INFO: ==730== Lock acquired, processing the job... [2025-03-03 15:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:35:03] Production.INFO: ==732== Lock acquired, processing the job... [2025-03-03 15:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:35:03] Production.INFO: ==734== Lock acquired, processing the job... [2025-03-03 15:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:35:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:35:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:35:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:35:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:35:04] Production.INFO: ==732== Releasing lock... [2025-03-03 15:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:35:04] Production.INFO: ==736== Lock acquired, processing the job... [2025-03-03 15:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:35:04] Production.INFO: ==740== Lock acquired, processing the job... [2025-03-03 15:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:35:04] Production.INFO: ==738== Lock acquired, processing the job... [2025-03-03 15:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:35:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:35:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:35:04] Production.INFO: Account Balance Start. [2025-03-03 15:35:04] Production.INFO: CreateAllLog Start [2025-03-03 15:35:04] Production.INFO: 117 [2025-03-03 15:35:04] Production.INFO: count ==13 [2025-03-03 15:35:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:35:04] Production.INFO: count ==21 [2025-03-03 15:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599417') start [2025-03-03 15:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599417') end [2025-03-03 15:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:35:04] Production.INFO: 1 [2025-03-03 15:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:35:04] Production.INFO: ==740== Releasing lock... [2025-03-03 15:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:04] Production.ERROR: done [2025-03-03 15:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.ERROR: done [2025-03-03 15:35:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:35:05] Production.INFO: Total Charge 0 [2025-03-03 15:35:05] Production.INFO: CreateAllLog End [2025-03-03 15:35:06] Production.INFO: Account Balance End. [2025-03-03 15:35:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:35:06] Production.INFO: ==736== Releasing lock... [2025-03-03 15:35:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:35:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:35:06 [end_date_ymd] => 2025-03-03 15:35:06 [RateCDR] => 1 ) [2025-03-03 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:35:06' and `end` < '2025-03-03 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:35:14] Production.ERROR: CronJobId end10 [2025-03-03 15:35:14] Production.INFO: ==734== Releasing lock... [2025-03-03 15:35:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:35:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:35:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:35:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:35:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:35:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:35:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:35:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:35:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:35:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:35:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:35:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:35:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:35:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:35:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:35:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:35:15] Production.INFO: call_cost start [2025-03-03 15:35:15] Production.INFO: call_cost end [2025-03-03 15:35:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:35:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:35:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:35:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:35:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:35:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:35:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:35:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:35:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:35:16] Production.INFO: ==730== Releasing lock... [2025-03-03 15:35:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:35:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:35:19] Production.INFO: count ==6608 [2025-03-03 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:35:06 - End Time 2025-03-03 15:35:06 [2025-03-03 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599419', 'tblTempUsageDetail_20' ) start [2025-03-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599419', 'tblTempUsageDetail_20' ) end [2025-03-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599419', 'tblTempVendorCDR_20' ) start [2025-03-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599419', 'tblTempVendorCDR_20' ) end [2025-03-03 15:35:23] Production.INFO: ProcessCDR(1,14599419,1,1,2) [2025-03-03 15:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599419', 'tblTempUsageDetail_20' ) start [2025-03-03 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599419', 'tblTempUsageDetail_20' ) end [2025-03-03 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:35:28] Production.INFO: ==738== Releasing lock... [2025-03-03 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:35:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:36:01] Production.INFO: ==804== Lock acquired, processing the job... [2025-03-03 20:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:36:01] Production.INFO: neon service started [2025-03-03 20:36:01] Production.INFO: neon service started [2025-03-03 20:36:01] Production.INFO: ==804== Releasing lock... [2025-03-03 20:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:36:02] Production.INFO: ==808== Lock acquired, processing the job... [2025-03-03 20:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:36:02] Production.INFO: ==808== Releasing lock... [2025-03-03 20:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:36:02] Production.INFO: ==806== Lock acquired, processing the job... [2025-03-03 15:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:36:02] Production.INFO: ==806== Releasing lock... [2025-03-03 15:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:36:03] Production.INFO: ==815== Lock acquired, processing the job... [2025-03-03 15:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:36:03] Production.INFO: ==811== Lock acquired, processing the job... [2025-03-03 15:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:36:03] Production.INFO: ==819== Lock acquired, processing the job... [2025-03-03 15:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:36:03] Production.INFO: ==813== Lock acquired, processing the job... [2025-03-03 15:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:36:03] Production.INFO: ==817== Lock acquired, processing the job... [2025-03-03 15:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:36:04] Production.INFO: ==821== Lock acquired, processing the job... [2025-03-03 15:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:36:04] Production.ERROR: done [2025-03-03 15:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:36:04] Production.INFO: Account Balance Start. [2025-03-03 15:36:04] Production.INFO: CreateAllLog Start [2025-03-03 15:36:04] Production.INFO: 117 [2025-03-03 15:36:04] Production.INFO: ==813== Releasing lock... [2025-03-03 15:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:36:04] Production.INFO: count ==13 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:36:04] Production.INFO: count ==21 [2025-03-03 15:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599422') start [2025-03-03 15:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.ERROR: done [2025-03-03 15:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599422') end [2025-03-03 15:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:36:04] Production.INFO: 1 [2025-03-03 15:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: ==821== Releasing lock... [2025-03-03 15:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:36:05] Production.INFO: Total Charge 0 [2025-03-03 15:36:05] Production.INFO: CreateAllLog End [2025-03-03 15:36:05] Production.INFO: Account Balance End. [2025-03-03 15:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:36:05] Production.INFO: ==817== Releasing lock... [2025-03-03 15:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:36:05 [end_date_ymd] => 2025-03-03 15:36:05 [RateCDR] => 1 ) [2025-03-03 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:36:05' and `end` < '2025-03-03 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:36:13] Production.ERROR: CronJobId end10 [2025-03-03 15:36:13] Production.INFO: ==815== Releasing lock... [2025-03-03 15:36:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:36:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:36:15] Production.INFO: call_cost start [2025-03-03 15:36:15] Production.INFO: call_cost end [2025-03-03 15:36:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:36:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:36:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:36:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:36:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:36:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:36:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:36:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:36:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:36:16] Production.INFO: ==811== Releasing lock... [2025-03-03 15:36:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:36:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:36:19] Production.INFO: count ==6619 [2025-03-03 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:36:05 - End Time 2025-03-03 15:36:05 [2025-03-03 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599424', 'tblTempUsageDetail_20' ) start [2025-03-03 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599424', 'tblTempUsageDetail_20' ) end [2025-03-03 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599424', 'tblTempVendorCDR_20' ) start [2025-03-03 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599424', 'tblTempVendorCDR_20' ) end [2025-03-03 15:36:22] Production.INFO: ProcessCDR(1,14599424,1,1,2) [2025-03-03 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599424', 'tblTempUsageDetail_20' ) start [2025-03-03 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599424', 'tblTempUsageDetail_20' ) end [2025-03-03 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:36:28] Production.INFO: ==819== Releasing lock... [2025-03-03 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:36:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:37:02] Production.INFO: ==875== Lock acquired, processing the job... [2025-03-03 20:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:37:02] Production.INFO: neon service started [2025-03-03 20:37:02] Production.INFO: neon service started [2025-03-03 20:37:02] Production.INFO: ==875== Releasing lock... [2025-03-03 20:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:37:02] Production.INFO: ==877== Lock acquired, processing the job... [2025-03-03 15:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:37:02] Production.INFO: ==879== Lock acquired, processing the job... [2025-03-03 20:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:37:03] Production.INFO: ==877== Releasing lock... [2025-03-03 15:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:37:03] Production.INFO: ==879== Releasing lock... [2025-03-03 20:37:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:37:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:37:03] Production.INFO: ==892== Lock acquired, processing the job... [2025-03-03 15:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:37:03] Production.INFO: count ==13 [2025-03-03 15:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:37:03] Production.INFO: count ==21 [2025-03-03 15:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599425') start [2025-03-03 15:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599425') end [2025-03-03 15:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:37:04] Production.INFO: 1 [2025-03-03 15:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:37:04] Production.INFO: ==892== Releasing lock... [2025-03-03 15:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:37:04] Production.INFO: ==882== Lock acquired, processing the job... [2025-03-03 15:37:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:37:04] Production.INFO: ==888== Lock acquired, processing the job... [2025-03-03 15:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:37:04] Production.INFO: Account Balance Start. [2025-03-03 15:37:04] Production.INFO: CreateAllLog Start [2025-03-03 15:37:04] Production.INFO: 117 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:37:04] Production.INFO: ==884== Lock acquired, processing the job... [2025-03-03 15:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:37:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: ==886== Lock acquired, processing the job... [2025-03-03 15:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: ==890== Lock acquired, processing the job... [2025-03-03 15:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: ==884== Releasing lock... [2025-03-03 15:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.ERROR: done [2025-03-03 15:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.ERROR: done [2025-03-03 15:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:37:05] Production.INFO: Total Charge 0 [2025-03-03 15:37:05] Production.INFO: CreateAllLog End [2025-03-03 15:37:05] Production.INFO: Account Balance End. [2025-03-03 15:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:37:05] Production.INFO: ==888== Releasing lock... [2025-03-03 15:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:37:06 [end_date_ymd] => 2025-03-03 15:37:06 [RateCDR] => 1 ) [2025-03-03 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:37:06' and `end` < '2025-03-03 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:37:14] Production.ERROR: CronJobId end10 [2025-03-03 15:37:14] Production.INFO: ==886== Releasing lock... [2025-03-03 15:37:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:37:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:37:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:37:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:37:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:37:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:37:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:37:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:37:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:37:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:37:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:37:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:37:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:37:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:37:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:37:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:37:17] Production.INFO: call_cost start [2025-03-03 15:37:17] Production.INFO: call_cost end [2025-03-03 15:37:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:37:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:37:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:37:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:37:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:37:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:37:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:37:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:37:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:37:18] Production.INFO: ==882== Releasing lock... [2025-03-03 15:37:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:37:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:37:19] Production.INFO: count ==6592 [2025-03-03 15:37:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:37:06 - End Time 2025-03-03 15:37:06 [2025-03-03 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599429', 'tblTempUsageDetail_20' ) start [2025-03-03 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599429', 'tblTempUsageDetail_20' ) end [2025-03-03 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599429', 'tblTempVendorCDR_20' ) start [2025-03-03 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599429', 'tblTempVendorCDR_20' ) end [2025-03-03 15:37:23] Production.INFO: ProcessCDR(1,14599429,1,1,2) [2025-03-03 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599429', 'tblTempUsageDetail_20' ) start [2025-03-03 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599429', 'tblTempUsageDetail_20' ) end [2025-03-03 15:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:37:28] Production.INFO: ==890== Releasing lock... [2025-03-03 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:37:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:38:01] Production.INFO: ==947== Lock acquired, processing the job... [2025-03-03 20:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:38:01] Production.INFO: neon service started [2025-03-03 20:38:01] Production.INFO: neon service started [2025-03-03 20:38:01] Production.INFO: ==947== Releasing lock... [2025-03-03 20:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:38:02] Production.INFO: ==949== Lock acquired, processing the job... [2025-03-03 15:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:38:02] Production.INFO: ==949== Releasing lock... [2025-03-03 15:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:38:02] Production.INFO: ==951== Lock acquired, processing the job... [2025-03-03 20:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:38:02] Production.INFO: ==951== Releasing lock... [2025-03-03 20:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:38:03] Production.INFO: ==953== Lock acquired, processing the job... [2025-03-03 15:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:38:03] Production.INFO: ==961== Lock acquired, processing the job... [2025-03-03 15:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:38:03] Production.INFO: ==955== Lock acquired, processing the job... [2025-03-03 15:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:38:03] Production.INFO: ==957== Lock acquired, processing the job... [2025-03-03 15:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:38:03] Production.INFO: ==959== Lock acquired, processing the job... [2025-03-03 15:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:38:03] Production.INFO: ==963== Lock acquired, processing the job... [2025-03-03 15:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:38:03] Production.INFO: Account Balance Start. [2025-03-03 15:38:03] Production.INFO: CreateAllLog Start [2025-03-03 15:38:03] Production.INFO: 117 [2025-03-03 15:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.ERROR: done [2025-03-03 15:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:38:04] Production.INFO: count ==13 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:38:04] Production.INFO: count ==21 [2025-03-03 15:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599433') start [2025-03-03 15:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.ERROR: done [2025-03-03 15:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599433') end [2025-03-03 15:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:38:04] Production.INFO: 1 [2025-03-03 15:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:38:04] Production.INFO: ==955== Releasing lock... [2025-03-03 15:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: ==963== Releasing lock... [2025-03-03 15:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:38:04] Production.INFO: Total Charge 0 [2025-03-03 15:38:05] Production.INFO: CreateAllLog End [2025-03-03 15:38:05] Production.INFO: Account Balance End. [2025-03-03 15:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:38:05] Production.INFO: ==959== Releasing lock... [2025-03-03 15:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:38:05 [end_date_ymd] => 2025-03-03 15:38:05 [RateCDR] => 1 ) [2025-03-03 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:38:05' and `end` < '2025-03-03 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:38:13] Production.ERROR: CronJobId end10 [2025-03-03 15:38:13] Production.INFO: ==957== Releasing lock... [2025-03-03 15:38:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:38:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:38:15] Production.INFO: call_cost start [2025-03-03 15:38:15] Production.INFO: call_cost end [2025-03-03 15:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:38:16] Production.INFO: ==953== Releasing lock... [2025-03-03 15:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:38:19] Production.INFO: count ==6583 [2025-03-03 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:38:05 - End Time 2025-03-03 15:38:05 [2025-03-03 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599434', 'tblTempUsageDetail_20' ) start [2025-03-03 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599434', 'tblTempUsageDetail_20' ) end [2025-03-03 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599434', 'tblTempVendorCDR_20' ) start [2025-03-03 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599434', 'tblTempVendorCDR_20' ) end [2025-03-03 15:38:22] Production.INFO: ProcessCDR(1,14599434,1,1,2) [2025-03-03 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599434', 'tblTempUsageDetail_20' ) start [2025-03-03 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599434', 'tblTempUsageDetail_20' ) end [2025-03-03 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:38:27] Production.INFO: ==961== Releasing lock... [2025-03-03 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:38:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:39:02] Production.INFO: ==1017== Lock acquired, processing the job... [2025-03-03 20:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:39:02] Production.INFO: neon service started [2025-03-03 20:39:02] Production.INFO: neon service started [2025-03-03 20:39:02] Production.INFO: ==1017== Releasing lock... [2025-03-03 20:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:39:02] Production.INFO: ==1019== Lock acquired, processing the job... [2025-03-03 15:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:39:02] Production.INFO: ==1019== Releasing lock... [2025-03-03 15:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:39:03] Production.INFO: ==1021== Lock acquired, processing the job... [2025-03-03 20:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:39:03] Production.INFO: ==1021== Releasing lock... [2025-03-03 20:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:39:03] Production.INFO: ==1030== Lock acquired, processing the job... [2025-03-03 15:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:39:03] Production.INFO: ==1034== Lock acquired, processing the job... [2025-03-03 15:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:39:03] Production.INFO: ==1024== Lock acquired, processing the job... [2025-03-03 15:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:39:03] Production.INFO: Account Balance Start. [2025-03-03 15:39:03] Production.INFO: CreateAllLog Start [2025-03-03 15:39:03] Production.INFO: 117 [2025-03-03 15:39:03] Production.INFO: ==1028== Lock acquired, processing the job... [2025-03-03 15:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:39:03] Production.INFO: ==1026== Lock acquired, processing the job... [2025-03-03 15:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:39:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:39:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:39:04] Production.INFO: ==1032== Lock acquired, processing the job... [2025-03-03 15:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:39:04] Production.INFO: count ==13 [2025-03-03 15:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:39:04] Production.INFO: count ==21 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599436') start [2025-03-03 15:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599436') end [2025-03-03 15:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:39:04] Production.INFO: 1 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: ==1034== Releasing lock... [2025-03-03 15:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:39:04] Production.ERROR: done [2025-03-03 15:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:39:04] Production.INFO: ==1026== Releasing lock... [2025-03-03 15:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.ERROR: done [2025-03-03 15:39:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:39:05] Production.INFO: Total Charge 0 [2025-03-03 15:39:05] Production.INFO: CreateAllLog End [2025-03-03 15:39:05] Production.INFO: Account Balance End. [2025-03-03 15:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:39:05] Production.INFO: ==1030== Releasing lock... [2025-03-03 15:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:39:05 [end_date_ymd] => 2025-03-03 15:39:05 [RateCDR] => 1 ) [2025-03-03 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:39:05' and `end` < '2025-03-03 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:39:13] Production.ERROR: CronJobId end10 [2025-03-03 15:39:13] Production.INFO: ==1028== Releasing lock... [2025-03-03 15:39:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:39:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:39:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:39:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:39:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:39:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:39:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:39:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:39:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:39:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:39:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:39:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:39:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:39:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:39:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:39:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:39:15] Production.INFO: call_cost start [2025-03-03 15:39:15] Production.INFO: call_cost end [2025-03-03 15:39:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:39:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:39:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:39:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:39:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:39:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:39:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:39:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:39:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:39:16] Production.INFO: ==1024== Releasing lock... [2025-03-03 15:39:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:39:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:39:19] Production.INFO: count ==6570 [2025-03-03 15:39:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:39:05 - End Time 2025-03-03 15:39:05 [2025-03-03 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599439', 'tblTempUsageDetail_20' ) start [2025-03-03 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599439', 'tblTempUsageDetail_20' ) end [2025-03-03 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599439', 'tblTempVendorCDR_20' ) start [2025-03-03 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599439', 'tblTempVendorCDR_20' ) end [2025-03-03 15:39:22] Production.INFO: ProcessCDR(1,14599439,1,1,2) [2025-03-03 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599439', 'tblTempUsageDetail_20' ) start [2025-03-03 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599439', 'tblTempUsageDetail_20' ) end [2025-03-03 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:39:27] Production.INFO: ==1032== Releasing lock... [2025-03-03 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:39:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:40:01] Production.INFO: ==1090== Lock acquired, processing the job... [2025-03-03 20:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:40:01] Production.INFO: neon service started [2025-03-03 20:40:01] Production.INFO: neon service started [2025-03-03 20:40:01] Production.INFO: ==1090== Releasing lock... [2025-03-03 20:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:40:02] Production.INFO: ==1092== Lock acquired, processing the job... [2025-03-03 15:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:40:02] Production.INFO: ==1094== Lock acquired, processing the job... [2025-03-03 20:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:40:02] Production.INFO: ==1094== Releasing lock... [2025-03-03 20:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:40:02] Production.INFO: ==1092== Releasing lock... [2025-03-03 15:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:40:03] Production.INFO: ==1101== Lock acquired, processing the job... [2025-03-03 15:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:40:04] Production.INFO: ==1097== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 15:40:04] Production.INFO: ==1107== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:40:04] Production.INFO: ==1099== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:40:04] Production.INFO: ==1111== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:40:04] Production.ERROR: CronJob PID - 1099 [2025-03-03 15:40:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 15:40:04] Production.ERROR: CronJob ID - 5 [2025-03-03 15:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:40:00 [2025-03-03 15:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:40:04] Production.ERROR: CronJob PID - 1101 [2025-03-03 15:40:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 15:40:04] Production.ERROR: CronJob ID - 7 [2025-03-03 15:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:40:00 [2025-03-03 15:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:40:04] Production.ERROR: CronJob PID - 1107 [2025-03-03 15:40:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 15:40:04] Production.ERROR: CronJob ID - 16 [2025-03-03 15:40:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:40:00 [2025-03-03 15:40:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:40:04] Production.INFO: ==1103== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:40:04] Production.INFO: ==1105== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:40:04] Production.INFO: ==1109== Lock acquired, processing the job... [2025-03-03 15:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 15:40:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 15:40:04] Production.INFO: ==1097== Releasing lock... [2025-03-03 15:40:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 15:40:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:40:04] Production.INFO: ==1101== Releasing lock... [2025-03-03 15:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:40:04] Production.INFO: Account Balance Start. [2025-03-03 15:40:04] Production.INFO: CreateAllLog Start [2025-03-03 15:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:40:04] Production.INFO: 117 [2025-03-03 15:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:40:04] Production.INFO: count ==13 [2025-03-03 15:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:40:04] Production.INFO: count ==21 [2025-03-03 15:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599442') start [2025-03-03 15:40:04] Production.ERROR: done [2025-03-03 15:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599442') end [2025-03-03 15:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:40:04] Production.INFO: 1 [2025-03-03 15:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:04] Production.INFO: ==1111== Releasing lock... [2025-03-03 15:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:04] Production.ERROR: done [2025-03-03 15:40:04] Production.ERROR: done [2025-03-03 15:40:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 15:40:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599444', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 15:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:40:05] Production.INFO: Total Charge 0 [2025-03-03 15:40:05] Production.INFO: CreateAllLog End [2025-03-03 15:40:06] Production.INFO: Account Balance End. [2025-03-03 15:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:40:06] Production.INFO: ==1105== Releasing lock... [2025-03-03 15:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:40:06 [end_date_ymd] => 2025-03-03 15:40:06 [RateCDR] => 1 ) [2025-03-03 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:40:06' and `end` < '2025-03-03 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599444', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 15:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 15:40:09] Production.INFO: ProcessCDR(1,14599444,1,1,2) [2025-03-03 15:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599444,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599444,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:40:09] Production.INFO: ==1109== Releasing lock... [2025-03-03 15:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 15:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:40:16] Production.ERROR: CronJobId end10 [2025-03-03 15:40:16] Production.INFO: ==1103== Releasing lock... [2025-03-03 15:40:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:40:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:40:17] Production.INFO: call_cost start [2025-03-03 15:40:17] Production.INFO: call_cost end [2025-03-03 15:40:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:40:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:40:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:40:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:40:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:40:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:40:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:40:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:40:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:40:18] Production.INFO: ==1099== Releasing lock... [2025-03-03 15:40:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:40:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:40:19] Production.INFO: count ==6562 [2025-03-03 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:40:06 - End Time 2025-03-03 15:40:06 [2025-03-03 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599445', 'tblTempUsageDetail_20' ) start [2025-03-03 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599445', 'tblTempUsageDetail_20' ) end [2025-03-03 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599445', 'tblTempVendorCDR_20' ) start [2025-03-03 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599445', 'tblTempVendorCDR_20' ) end [2025-03-03 15:40:23] Production.INFO: ProcessCDR(1,14599445,1,1,2) [2025-03-03 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599445', 'tblTempUsageDetail_20' ) start [2025-03-03 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599445', 'tblTempUsageDetail_20' ) end [2025-03-03 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:40:28] Production.INFO: ==1107== Releasing lock... [2025-03-03 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:40:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:41:02] Production.INFO: ==1177== Lock acquired, processing the job... [2025-03-03 20:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:41:02] Production.INFO: neon service started [2025-03-03 20:41:02] Production.INFO: neon service started [2025-03-03 20:41:02] Production.INFO: ==1177== Releasing lock... [2025-03-03 20:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:41:02] Production.INFO: ==1179== Lock acquired, processing the job... [2025-03-03 15:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:41:02] Production.INFO: ==1179== Releasing lock... [2025-03-03 15:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:41:03] Production.INFO: ==1181== Lock acquired, processing the job... [2025-03-03 20:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:41:03] Production.INFO: ==1181== Releasing lock... [2025-03-03 20:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:41:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:41:03] Production.INFO: ==1183== Lock acquired, processing the job... [2025-03-03 15:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:41:04] Production.INFO: ==1185== Lock acquired, processing the job... [2025-03-03 15:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:41:04] Production.INFO: ==1187== Lock acquired, processing the job... [2025-03-03 15:41:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:41:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:41:04] Production.INFO: ==1191== Lock acquired, processing the job... [2025-03-03 15:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:41:04] Production.INFO: ==1189== Lock acquired, processing the job... [2025-03-03 15:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:41:04] Production.INFO: ==1193== Lock acquired, processing the job... [2025-03-03 15:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:41:04] Production.INFO: Account Balance Start. [2025-03-03 15:41:04] Production.INFO: CreateAllLog Start [2025-03-03 15:41:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:41:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:41:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:41:04] Production.INFO: 117 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:41:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: count ==13 [2025-03-03 15:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:41:04] Production.INFO: count ==21 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599449') start [2025-03-03 15:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.ERROR: done [2025-03-03 15:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:41:04] Production.INFO: ==1185== Releasing lock... [2025-03-03 15:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599449') end [2025-03-03 15:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:41:04] Production.INFO: 1 [2025-03-03 15:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: ==1193== Releasing lock... [2025-03-03 15:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:41:04] Production.ERROR: done [2025-03-03 15:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:41:05] Production.INFO: Total Charge 0 [2025-03-03 15:41:05] Production.INFO: CreateAllLog End [2025-03-03 15:41:05] Production.INFO: Account Balance End. [2025-03-03 15:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:41:05] Production.INFO: ==1189== Releasing lock... [2025-03-03 15:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:41:05 [end_date_ymd] => 2025-03-03 15:41:05 [RateCDR] => 1 ) [2025-03-03 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:41:05' and `end` < '2025-03-03 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:41:13] Production.ERROR: CronJobId end10 [2025-03-03 15:41:13] Production.INFO: ==1187== Releasing lock... [2025-03-03 15:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:41:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:41:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:41:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:41:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:41:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:41:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:41:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:41:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:41:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:41:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:41:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:41:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:41:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:41:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:41:15] Production.INFO: call_cost start [2025-03-03 15:41:15] Production.INFO: call_cost end [2025-03-03 15:41:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:41:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:41:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:41:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:41:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:41:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:41:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:41:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:41:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:41:17] Production.INFO: ==1183== Releasing lock... [2025-03-03 15:41:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:41:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:41:19] Production.INFO: count ==6529 [2025-03-03 15:41:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:41:05 - End Time 2025-03-03 15:41:05 [2025-03-03 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599450', 'tblTempUsageDetail_20' ) start [2025-03-03 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599450', 'tblTempUsageDetail_20' ) end [2025-03-03 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599450', 'tblTempVendorCDR_20' ) start [2025-03-03 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599450', 'tblTempVendorCDR_20' ) end [2025-03-03 15:41:22] Production.INFO: ProcessCDR(1,14599450,1,1,2) [2025-03-03 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599450', 'tblTempUsageDetail_20' ) start [2025-03-03 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599450', 'tblTempUsageDetail_20' ) end [2025-03-03 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:41:28] Production.INFO: ==1191== Releasing lock... [2025-03-03 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:41:28] Production.INFO: 77 MB #Memory Used# [2025-03-03 20:42:01] Production.INFO: ==1263== Lock acquired, processing the job... [2025-03-03 20:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:42:01] Production.INFO: neon service started [2025-03-03 20:42:01] Production.INFO: neon service started [2025-03-03 20:42:01] Production.INFO: ==1263== Releasing lock... [2025-03-03 20:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:42:02] Production.INFO: ==1268== Lock acquired, processing the job... [2025-03-03 20:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:42:02] Production.INFO: ==1268== Releasing lock... [2025-03-03 20:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:42:02] Production.INFO: ==1266== Lock acquired, processing the job... [2025-03-03 15:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:42:02] Production.INFO: ==1266== Releasing lock... [2025-03-03 15:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:42:03] Production.INFO: ==1271== Lock acquired, processing the job... [2025-03-03 15:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:42:03] Production.INFO: ==1279== Lock acquired, processing the job... [2025-03-03 15:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:42:03] Production.INFO: ==1273== Lock acquired, processing the job... [2025-03-03 15:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:42:03] Production.INFO: ==1275== Lock acquired, processing the job... [2025-03-03 15:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:42:04] Production.INFO: ==1277== Lock acquired, processing the job... [2025-03-03 15:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:42:04] Production.INFO: ==1281== Lock acquired, processing the job... [2025-03-03 15:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:42:04] Production.ERROR: done [2025-03-03 15:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:42:04] Production.INFO: Account Balance Start. [2025-03-03 15:42:04] Production.INFO: CreateAllLog Start [2025-03-03 15:42:04] Production.INFO: 117 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:42:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:42:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:42:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: count ==13 [2025-03-03 15:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:42:04] Production.INFO: count ==21 [2025-03-03 15:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599453') start [2025-03-03 15:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.ERROR: done [2025-03-03 15:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599453') end [2025-03-03 15:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:42:04] Production.INFO: 1 [2025-03-03 15:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:42:04] Production.INFO: ==1273== Releasing lock... [2025-03-03 15:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:42:04] Production.INFO: ==1281== Releasing lock... [2025-03-03 15:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:42:05] Production.INFO: Total Charge 0 [2025-03-03 15:42:05] Production.INFO: CreateAllLog End [2025-03-03 15:42:05] Production.INFO: Account Balance End. [2025-03-03 15:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:42:05] Production.INFO: ==1277== Releasing lock... [2025-03-03 15:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:42:05 [end_date_ymd] => 2025-03-03 15:42:05 [RateCDR] => 1 ) [2025-03-03 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:42:05' and `end` < '2025-03-03 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:42:14] Production.ERROR: CronJobId end10 [2025-03-03 15:42:14] Production.INFO: ==1275== Releasing lock... [2025-03-03 15:42:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:42:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:42:15] Production.INFO: call_cost start [2025-03-03 15:42:15] Production.INFO: call_cost end [2025-03-03 15:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:42:16] Production.INFO: ==1271== Releasing lock... [2025-03-03 15:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:42:19] Production.INFO: count ==6515 [2025-03-03 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:42:05 - End Time 2025-03-03 15:42:05 [2025-03-03 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599455', 'tblTempUsageDetail_20' ) start [2025-03-03 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599455', 'tblTempUsageDetail_20' ) end [2025-03-03 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599455', 'tblTempVendorCDR_20' ) start [2025-03-03 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599455', 'tblTempVendorCDR_20' ) end [2025-03-03 15:42:22] Production.INFO: ProcessCDR(1,14599455,1,1,2) [2025-03-03 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599455', 'tblTempUsageDetail_20' ) start [2025-03-03 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599455', 'tblTempUsageDetail_20' ) end [2025-03-03 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:42:27] Production.INFO: ==1279== Releasing lock... [2025-03-03 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:42:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 20:43:02] Production.INFO: ==1342== Lock acquired, processing the job... [2025-03-03 20:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:43:02] Production.INFO: neon service started [2025-03-03 20:43:02] Production.INFO: neon service started [2025-03-03 20:43:02] Production.INFO: ==1342== Releasing lock... [2025-03-03 20:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:43:02] Production.INFO: ==1344== Lock acquired, processing the job... [2025-03-03 15:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:43:02] Production.INFO: ==1344== Releasing lock... [2025-03-03 15:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:43:02] Production.INFO: ==1346== Lock acquired, processing the job... [2025-03-03 20:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:43:03] Production.INFO: ==1346== Releasing lock... [2025-03-03 20:43:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:43:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:43:03] Production.INFO: ==1349== Lock acquired, processing the job... [2025-03-03 15:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:43:03] Production.INFO: ==1359== Lock acquired, processing the job... [2025-03-03 15:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:43:03] Production.INFO: ==1351== Lock acquired, processing the job... [2025-03-03 15:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:43:03] Production.INFO: ==1357== Lock acquired, processing the job... [2025-03-03 15:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:43:04] Production.INFO: ==1353== Lock acquired, processing the job... [2025-03-03 15:43:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:43:04] Production.INFO: ==1355== Lock acquired, processing the job... [2025-03-03 15:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:43:04] Production.INFO: count ==13 [2025-03-03 15:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:43:04] Production.INFO: count ==21 [2025-03-03 15:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599456') start [2025-03-03 15:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:43:04] Production.INFO: Account Balance Start. [2025-03-03 15:43:04] Production.INFO: CreateAllLog Start [2025-03-03 15:43:04] Production.INFO: 117 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599456') end [2025-03-03 15:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:43:04] Production.INFO: 1 [2025-03-03 15:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: ==1359== Releasing lock... [2025-03-03 15:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:43:04] Production.INFO: ==1351== Releasing lock... [2025-03-03 15:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.ERROR: done [2025-03-03 15:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.ERROR: done [2025-03-03 15:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:43:05] Production.INFO: Total Charge 0 [2025-03-03 15:43:05] Production.INFO: CreateAllLog End [2025-03-03 15:43:05] Production.INFO: Account Balance End. [2025-03-03 15:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:43:05] Production.INFO: ==1355== Releasing lock... [2025-03-03 15:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:43:06 [end_date_ymd] => 2025-03-03 15:43:06 [RateCDR] => 1 ) [2025-03-03 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:43:06' and `end` < '2025-03-03 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:43:14] Production.ERROR: CronJobId end10 [2025-03-03 15:43:14] Production.INFO: ==1353== Releasing lock... [2025-03-03 15:43:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:43:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:43:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:43:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:43:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:43:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:43:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:43:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:43:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:43:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:43:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:43:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:43:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:43:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:43:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:43:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:43:16] Production.INFO: call_cost start [2025-03-03 15:43:16] Production.INFO: call_cost end [2025-03-03 15:43:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:43:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:43:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:43:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:43:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:43:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:43:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:43:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:43:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:43:17] Production.INFO: ==1349== Releasing lock... [2025-03-03 15:43:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:43:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:43:19] Production.INFO: count ==6503 [2025-03-03 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:43:06 - End Time 2025-03-03 15:43:06 [2025-03-03 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599460', 'tblTempUsageDetail_20' ) start [2025-03-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599460', 'tblTempUsageDetail_20' ) end [2025-03-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599460', 'tblTempVendorCDR_20' ) start [2025-03-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599460', 'tblTempVendorCDR_20' ) end [2025-03-03 15:43:23] Production.INFO: ProcessCDR(1,14599460,1,1,2) [2025-03-03 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599460', 'tblTempUsageDetail_20' ) start [2025-03-03 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599460', 'tblTempUsageDetail_20' ) end [2025-03-03 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:43:28] Production.INFO: ==1357== Releasing lock... [2025-03-03 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:43:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 20:44:01] Production.INFO: ==1411== Lock acquired, processing the job... [2025-03-03 20:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:44:01] Production.INFO: neon service started [2025-03-03 20:44:01] Production.INFO: neon service started [2025-03-03 20:44:01] Production.INFO: ==1411== Releasing lock... [2025-03-03 20:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:44:02] Production.INFO: ==1416== Lock acquired, processing the job... [2025-03-03 20:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:44:02] Production.INFO: ==1416== Releasing lock... [2025-03-03 20:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:44:02] Production.INFO: ==1414== Lock acquired, processing the job... [2025-03-03 15:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:44:02] Production.INFO: ==1414== Releasing lock... [2025-03-03 15:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:44:03] Production.INFO: ==1420== Lock acquired, processing the job... [2025-03-03 15:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:44:03] Production.INFO: ==1428== Lock acquired, processing the job... [2025-03-03 15:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:44:03] Production.INFO: ==1418== Lock acquired, processing the job... [2025-03-03 15:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:44:03] Production.INFO: count ==13 [2025-03-03 15:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:44:03] Production.INFO: count ==21 [2025-03-03 15:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599461') start [2025-03-03 15:44:03] Production.INFO: ==1422== Lock acquired, processing the job... [2025-03-03 15:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:44:03] Production.INFO: ==1424== Lock acquired, processing the job... [2025-03-03 15:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599461') end [2025-03-03 15:44:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:44:03] Production.INFO: 1 [2025-03-03 15:44:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:44:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:44:04] Production.INFO: ==1426== Lock acquired, processing the job... [2025-03-03 15:44:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:44:04] Production.INFO: ==1428== Releasing lock... [2025-03-03 15:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:44:04] Production.INFO: ==1420== Releasing lock... [2025-03-03 15:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:44:04] Production.INFO: Account Balance Start. [2025-03-03 15:44:04] Production.INFO: CreateAllLog Start [2025-03-03 15:44:04] Production.INFO: 117 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:44:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:44:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:44:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.ERROR: done [2025-03-03 15:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.ERROR: done [2025-03-03 15:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:44:05] Production.INFO: Total Charge 0 [2025-03-03 15:44:05] Production.INFO: CreateAllLog End [2025-03-03 15:44:05] Production.INFO: Account Balance End. [2025-03-03 15:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:44:05] Production.INFO: ==1424== Releasing lock... [2025-03-03 15:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:44:05 [end_date_ymd] => 2025-03-03 15:44:05 [RateCDR] => 1 ) [2025-03-03 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:44:05' and `end` < '2025-03-03 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:44:15] Production.ERROR: CronJobId end10 [2025-03-03 15:44:15] Production.INFO: ==1422== Releasing lock... [2025-03-03 15:44:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:44:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:44:15] Production.INFO: call_cost start [2025-03-03 15:44:15] Production.INFO: call_cost end [2025-03-03 15:44:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:44:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:44:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:44:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:44:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:44:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:44:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:44:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:44:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:44:16] Production.INFO: ==1418== Releasing lock... [2025-03-03 15:44:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:44:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:44:19] Production.INFO: count ==6541 [2025-03-03 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:44:05 - End Time 2025-03-03 15:44:05 [2025-03-03 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599465', 'tblTempUsageDetail_20' ) start [2025-03-03 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599465', 'tblTempUsageDetail_20' ) end [2025-03-03 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599465', 'tblTempVendorCDR_20' ) start [2025-03-03 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599465', 'tblTempVendorCDR_20' ) end [2025-03-03 15:44:22] Production.INFO: ProcessCDR(1,14599465,1,1,2) [2025-03-03 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599465', 'tblTempUsageDetail_20' ) start [2025-03-03 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599465', 'tblTempUsageDetail_20' ) end [2025-03-03 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:44:27] Production.INFO: ==1426== Releasing lock... [2025-03-03 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:44:27] Production.INFO: 77 MB #Memory Used# [2025-03-03 20:45:02] Production.INFO: ==1483== Lock acquired, processing the job... [2025-03-03 20:45:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:45:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:45:02] Production.INFO: neon service started [2025-03-03 20:45:02] Production.INFO: neon service started [2025-03-03 20:45:02] Production.INFO: ==1483== Releasing lock... [2025-03-03 20:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:45:02] Production.INFO: ==1485== Lock acquired, processing the job... [2025-03-03 15:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:45:02] Production.INFO: ==1487== Lock acquired, processing the job... [2025-03-03 20:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:45:03] Production.INFO: ==1487== Releasing lock... [2025-03-03 20:45:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:45:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:45:03] Production.INFO: ==1485== Releasing lock... [2025-03-03 15:45:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:45:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:45:04] Production.INFO: ==1490== Lock acquired, processing the job... [2025-03-03 15:45:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:45:04] Production.INFO: ==1500== Lock acquired, processing the job... [2025-03-03 15:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:45:04] Production.INFO: ==1494== Lock acquired, processing the job... [2025-03-03 15:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:45:04] Production.INFO: ==1492== Lock acquired, processing the job... [2025-03-03 15:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:45:04] Production.INFO: ==1498== Lock acquired, processing the job... [2025-03-03 15:45:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:45:04] Production.INFO: ==1496== Lock acquired, processing the job... [2025-03-03 15:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:45:04] Production.INFO: count ==13 [2025-03-03 15:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:45:04] Production.INFO: count ==21 [2025-03-03 15:45:04] Production.INFO: Account Balance Start. [2025-03-03 15:45:04] Production.INFO: CreateAllLog Start [2025-03-03 15:45:04] Production.INFO: 117 [2025-03-03 15:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599467') start [2025-03-03 15:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599467') end [2025-03-03 15:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:45:04] Production.INFO: 1 [2025-03-03 15:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-12 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: ==1500== Releasing lock... [2025-03-03 15:45:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:45:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:45:05] Production.ERROR: done [2025-03-03 15:45:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:45:05] Production.INFO: ==1492== Releasing lock... [2025-03-03 15:45:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:45:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:45:05] Production.INFO: Date 2025-02-13 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.ERROR: done [2025-03-03 15:45:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-02-25 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-02-26 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-02-27 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-02-28 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-03-01 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-03-02 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Date 2025-03-03 [2025-03-03 15:45:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:45:06] Production.INFO: Total Charge 0 [2025-03-03 15:45:06] Production.INFO: CreateAllLog End [2025-03-03 15:45:06] Production.INFO: Account Balance End. [2025-03-03 15:45:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:45:06] Production.INFO: ==1496== Releasing lock... [2025-03-03 15:45:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:45:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:45:06 [end_date_ymd] => 2025-03-03 15:45:06 [RateCDR] => 1 ) [2025-03-03 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:45:06' and `end` < '2025-03-03 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:45:14] Production.ERROR: CronJobId end10 [2025-03-03 15:45:14] Production.INFO: ==1494== Releasing lock... [2025-03-03 15:45:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:45:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:45:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:45:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:45:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:45:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:45:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:45:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:45:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:45:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:45:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:45:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:45:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:45:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:45:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:45:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:45:16] Production.INFO: call_cost start [2025-03-03 15:45:16] Production.INFO: call_cost end [2025-03-03 15:45:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:45:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:45:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:45:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:45:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:45:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:45:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:45:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:45:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:45:17] Production.INFO: ==1490== Releasing lock... [2025-03-03 15:45:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:45:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:45:20] Production.INFO: count ==6544 [2025-03-03 15:45:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:45:06 - End Time 2025-03-03 15:45:06 [2025-03-03 15:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599470', 'tblTempUsageDetail_20' ) start [2025-03-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599470', 'tblTempUsageDetail_20' ) end [2025-03-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599470', 'tblTempVendorCDR_20' ) start [2025-03-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599470', 'tblTempVendorCDR_20' ) end [2025-03-03 15:45:23] Production.INFO: ProcessCDR(1,14599470,1,1,2) [2025-03-03 15:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599470', 'tblTempUsageDetail_20' ) start [2025-03-03 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599470', 'tblTempUsageDetail_20' ) end [2025-03-03 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:45:26] Production.INFO: ==1498== Releasing lock... [2025-03-03 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:45:26] Production.INFO: 77 MB #Memory Used# [2025-03-03 20:46:01] Production.INFO: ==1603== Lock acquired, processing the job... [2025-03-03 20:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:46:01] Production.INFO: neon service started [2025-03-03 20:46:01] Production.INFO: neon service started [2025-03-03 20:46:01] Production.INFO: ==1603== Releasing lock... [2025-03-03 20:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:46:02] Production.INFO: ==1607== Lock acquired, processing the job... [2025-03-03 20:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:46:02] Production.INFO: ==1605== Lock acquired, processing the job... [2025-03-03 15:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:46:02] Production.INFO: ==1607== Releasing lock... [2025-03-03 20:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:46:02] Production.INFO: ==1605== Releasing lock... [2025-03-03 15:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:46:03] Production.INFO: ==1610== Lock acquired, processing the job... [2025-03-03 15:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:46:03] Production.INFO: ==1614== Lock acquired, processing the job... [2025-03-03 15:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:46:03] Production.INFO: ==1616== Lock acquired, processing the job... [2025-03-03 15:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:46:03] Production.INFO: ==1612== Lock acquired, processing the job... [2025-03-03 15:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:46:03] Production.INFO: Account Balance Start. [2025-03-03 15:46:03] Production.INFO: CreateAllLog Start [2025-03-03 15:46:03] Production.INFO: 117 [2025-03-03 15:46:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: ==1620== Lock acquired, processing the job... [2025-03-03 15:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: ==1618== Lock acquired, processing the job... [2025-03-03 15:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: count ==13 [2025-03-03 15:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:46:04] Production.INFO: count ==21 [2025-03-03 15:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599474') start [2025-03-03 15:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:46:04] Production.INFO: ==1612== Releasing lock... [2025-03-03 15:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599474') end [2025-03-03 15:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: 1 [2025-03-03 15:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:46:04] Production.INFO: ==1620== Releasing lock... [2025-03-03 15:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.ERROR: done [2025-03-03 15:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.ERROR: done [2025-03-03 15:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:46:05] Production.INFO: Total Charge 0 [2025-03-03 15:46:05] Production.INFO: CreateAllLog End [2025-03-03 15:46:05] Production.INFO: Account Balance End. [2025-03-03 15:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:46:05] Production.INFO: ==1616== Releasing lock... [2025-03-03 15:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:46:05 [end_date_ymd] => 2025-03-03 15:46:05 [RateCDR] => 1 ) [2025-03-03 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:46:05' and `end` < '2025-03-03 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:46:14] Production.ERROR: CronJobId end10 [2025-03-03 15:46:14] Production.INFO: ==1614== Releasing lock... [2025-03-03 15:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:46:16] Production.INFO: call_cost start [2025-03-03 15:46:16] Production.INFO: call_cost end [2025-03-03 15:46:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:46:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:46:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:46:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:46:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:46:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:46:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:46:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:46:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:46:17] Production.INFO: ==1610== Releasing lock... [2025-03-03 15:46:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:46:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:46:19] Production.INFO: count ==6558 [2025-03-03 15:46:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:46:05 - End Time 2025-03-03 15:46:05 [2025-03-03 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599475', 'tblTempUsageDetail_20' ) start [2025-03-03 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599475', 'tblTempUsageDetail_20' ) end [2025-03-03 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599475', 'tblTempVendorCDR_20' ) start [2025-03-03 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599475', 'tblTempVendorCDR_20' ) end [2025-03-03 15:46:23] Production.INFO: ProcessCDR(1,14599475,1,1,2) [2025-03-03 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599475', 'tblTempUsageDetail_20' ) start [2025-03-03 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599475', 'tblTempUsageDetail_20' ) end [2025-03-03 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:46:28] Production.INFO: ==1618== Releasing lock... [2025-03-03 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:46:28] Production.INFO: 77 MB #Memory Used# [2025-03-03 20:47:02] Production.INFO: ==1690== Lock acquired, processing the job... [2025-03-03 20:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:47:02] Production.INFO: neon service started [2025-03-03 20:47:02] Production.INFO: neon service started [2025-03-03 20:47:02] Production.INFO: ==1690== Releasing lock... [2025-03-03 20:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:47:02] Production.INFO: ==1692== Lock acquired, processing the job... [2025-03-03 15:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:47:02] Production.INFO: ==1692== Releasing lock... [2025-03-03 15:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:47:02] Production.INFO: ==1694== Lock acquired, processing the job... [2025-03-03 20:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:47:03] Production.INFO: ==1694== Releasing lock... [2025-03-03 20:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:47:03] Production.INFO: ==1699== Lock acquired, processing the job... [2025-03-03 15:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:47:03] Production.INFO: ==1707== Lock acquired, processing the job... [2025-03-03 15:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:47:03] Production.INFO: ==1697== Lock acquired, processing the job... [2025-03-03 15:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:47:03] Production.INFO: ==1701== Lock acquired, processing the job... [2025-03-03 15:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:47:03] Production.INFO: ==1705== Lock acquired, processing the job... [2025-03-03 15:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:47:03] Production.INFO: count ==13 [2025-03-03 15:47:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:47:03] Production.INFO: count ==21 [2025-03-03 15:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599476') start [2025-03-03 15:47:04] Production.INFO: ==1703== Lock acquired, processing the job... [2025-03-03 15:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599476') end [2025-03-03 15:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:47:04] Production.INFO: 1 [2025-03-03 15:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:47:04] Production.INFO: Account Balance Start. [2025-03-03 15:47:04] Production.INFO: CreateAllLog Start [2025-03-03 15:47:04] Production.INFO: 117 [2025-03-03 15:47:04] Production.INFO: ==1707== Releasing lock... [2025-03-03 15:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:47:04] Production.INFO: ==1699== Releasing lock... [2025-03-03 15:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.ERROR: done [2025-03-03 15:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.ERROR: done [2025-03-03 15:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:47:05] Production.INFO: Total Charge 0 [2025-03-03 15:47:05] Production.INFO: CreateAllLog End [2025-03-03 15:47:05] Production.INFO: Account Balance End. [2025-03-03 15:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:47:05] Production.INFO: ==1703== Releasing lock... [2025-03-03 15:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:47:05 [end_date_ymd] => 2025-03-03 15:47:05 [RateCDR] => 1 ) [2025-03-03 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:47:05' and `end` < '2025-03-03 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:47:12] Production.ERROR: CronJobId end10 [2025-03-03 15:47:12] Production.INFO: ==1701== Releasing lock... [2025-03-03 15:47:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:47:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:47:15] Production.INFO: call_cost start [2025-03-03 15:47:15] Production.INFO: call_cost end [2025-03-03 15:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:47:16] Production.INFO: ==1697== Releasing lock... [2025-03-03 15:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:47:19] Production.INFO: count ==6558 [2025-03-03 15:47:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:47:05 - End Time 2025-03-03 15:47:05 [2025-03-03 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599480', 'tblTempUsageDetail_20' ) start [2025-03-03 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599480', 'tblTempUsageDetail_20' ) end [2025-03-03 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599480', 'tblTempVendorCDR_20' ) start [2025-03-03 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599480', 'tblTempVendorCDR_20' ) end [2025-03-03 15:47:22] Production.INFO: ProcessCDR(1,14599480,1,1,2) [2025-03-03 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599480', 'tblTempUsageDetail_20' ) start [2025-03-03 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599480', 'tblTempUsageDetail_20' ) end [2025-03-03 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:47:27] Production.INFO: ==1705== Releasing lock... [2025-03-03 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:47:27] Production.INFO: 77 MB #Memory Used# [2025-03-03 20:48:01] Production.INFO: ==1815== Lock acquired, processing the job... [2025-03-03 20:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:48:01] Production.INFO: neon service started [2025-03-03 20:48:01] Production.INFO: neon service started [2025-03-03 20:48:01] Production.INFO: ==1815== Releasing lock... [2025-03-03 20:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:48:02] Production.INFO: ==1818== Lock acquired, processing the job... [2025-03-03 15:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:48:02] Production.INFO: ==1818== Releasing lock... [2025-03-03 15:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:48:02] Production.INFO: ==1820== Lock acquired, processing the job... [2025-03-03 20:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:48:02] Production.INFO: ==1820== Releasing lock... [2025-03-03 20:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:48:03] Production.INFO: ==1828== Lock acquired, processing the job... [2025-03-03 15:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:48:03] Production.INFO: ==1832== Lock acquired, processing the job... [2025-03-03 15:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:48:03] Production.INFO: Account Balance Start. [2025-03-03 15:48:03] Production.INFO: CreateAllLog Start [2025-03-03 15:48:03] Production.INFO: 117 [2025-03-03 15:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:48:03] Production.INFO: ==1834== Lock acquired, processing the job... [2025-03-03 15:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:03] Production.INFO: ==1828== Releasing lock... [2025-03-03 15:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:48:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:48:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:03] Production.INFO: ==1830== Lock acquired, processing the job... [2025-03-03 15:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:48:03] Production.INFO: ==1823== Lock acquired, processing the job... [2025-03-03 15:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:48:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:03] Production.INFO: Date 2025-02-12 [2025-03-03 15:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:03] Production.INFO: Date 2025-02-13 [2025-03-03 15:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:03] Production.INFO: ==1836== Lock acquired, processing the job... [2025-03-03 15:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:48:04] Production.INFO: count ==13 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:48:04] Production.INFO: count ==21 [2025-03-03 15:48:04] Production.ERROR: done [2025-03-03 15:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599484') start [2025-03-03 15:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599484') end [2025-03-03 15:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:48:04] Production.INFO: 1 [2025-03-03 15:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.ERROR: done [2025-03-03 15:48:04] Production.INFO: ==1836== Releasing lock... [2025-03-03 15:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:48:05] Production.INFO: Total Charge 0 [2025-03-03 15:48:05] Production.INFO: CreateAllLog End [2025-03-03 15:48:05] Production.INFO: Account Balance End. [2025-03-03 15:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:48:05] Production.INFO: ==1832== Releasing lock... [2025-03-03 15:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:48:05 [end_date_ymd] => 2025-03-03 15:48:05 [RateCDR] => 1 ) [2025-03-03 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:48:05' and `end` < '2025-03-03 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:48:14] Production.ERROR: CronJobId end10 [2025-03-03 15:48:14] Production.INFO: ==1830== Releasing lock... [2025-03-03 15:48:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:48:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:48:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:48:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:48:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:48:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:48:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:48:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:48:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:48:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:48:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:48:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:48:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:48:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:48:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:48:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:48:17] Production.INFO: call_cost start [2025-03-03 15:48:17] Production.INFO: call_cost end [2025-03-03 15:48:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:48:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:48:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:48:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:48:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:48:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:48:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:48:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:48:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:48:18] Production.INFO: ==1823== Releasing lock... [2025-03-03 15:48:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:48:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:48:19] Production.INFO: count ==6578 [2025-03-03 15:48:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:48:05 - End Time 2025-03-03 15:48:05 [2025-03-03 15:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599485', 'tblTempUsageDetail_20' ) start [2025-03-03 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599485', 'tblTempUsageDetail_20' ) end [2025-03-03 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599485', 'tblTempVendorCDR_20' ) start [2025-03-03 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599485', 'tblTempVendorCDR_20' ) end [2025-03-03 15:48:23] Production.INFO: ProcessCDR(1,14599485,1,1,2) [2025-03-03 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599485', 'tblTempUsageDetail_20' ) start [2025-03-03 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599485', 'tblTempUsageDetail_20' ) end [2025-03-03 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:48:28] Production.INFO: ==1834== Releasing lock... [2025-03-03 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:48:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:49:02] Production.INFO: ==1906== Lock acquired, processing the job... [2025-03-03 20:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:49:02] Production.INFO: neon service started [2025-03-03 20:49:02] Production.INFO: neon service started [2025-03-03 20:49:02] Production.INFO: ==1906== Releasing lock... [2025-03-03 20:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:49:02] Production.INFO: ==1910== Lock acquired, processing the job... [2025-03-03 20:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:49:02] Production.INFO: ==1910== Releasing lock... [2025-03-03 20:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:49:02] Production.INFO: ==1908== Lock acquired, processing the job... [2025-03-03 15:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:49:03] Production.INFO: ==1908== Releasing lock... [2025-03-03 15:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:49:04] Production.INFO: ==1917== Lock acquired, processing the job... [2025-03-03 15:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:49:04] Production.INFO: ==1913== Lock acquired, processing the job... [2025-03-03 15:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:49:04] Production.INFO: ==1921== Lock acquired, processing the job... [2025-03-03 15:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:49:04] Production.INFO: ==1915== Lock acquired, processing the job... [2025-03-03 15:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:49:04] Production.INFO: ==1919== Lock acquired, processing the job... [2025-03-03 15:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:49:04] Production.INFO: ==1923== Lock acquired, processing the job... [2025-03-03 15:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:49:04] Production.ERROR: done [2025-03-03 15:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:49:04] Production.INFO: Account Balance Start. [2025-03-03 15:49:04] Production.INFO: CreateAllLog Start [2025-03-03 15:49:04] Production.INFO: 117 [2025-03-03 15:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:04] Production.INFO: count ==13 [2025-03-03 15:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:49:04] Production.INFO: count ==21 [2025-03-03 15:49:04] Production.INFO: ==1915== Releasing lock... [2025-03-03 15:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:49:05] Production.ERROR: done [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599488') start [2025-03-03 15:49:05] Production.INFO: Date 2025-02-12 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-13 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599488') end [2025-03-03 15:49:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:49:05] Production.INFO: 1 [2025-03-03 15:49:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:49:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: ==1923== Releasing lock... [2025-03-03 15:49:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:49:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:49:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:49:05 [end_date_ymd] => 2025-03-03 15:49:05 [RateCDR] => 1 ) [2025-03-03 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:49:05' and `end` < '2025-03-03 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-03-03 15:49:06] Production.INFO: Date 2025-02-28 [2025-03-03 15:49:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:06] Production.INFO: Date 2025-03-01 [2025-03-03 15:49:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:06] Production.INFO: Date 2025-03-02 [2025-03-03 15:49:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:06] Production.INFO: Date 2025-03-03 [2025-03-03 15:49:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:49:06] Production.INFO: Total Charge 0 [2025-03-03 15:49:06] Production.INFO: CreateAllLog End [2025-03-03 15:49:06] Production.INFO: Account Balance End. [2025-03-03 15:49:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:49:06] Production.INFO: ==1919== Releasing lock... [2025-03-03 15:49:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:49:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:49:14] Production.ERROR: CronJobId end10 [2025-03-03 15:49:14] Production.INFO: ==1917== Releasing lock... [2025-03-03 15:49:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:49:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:49:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:49:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:49:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:49:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:49:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:49:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:49:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:49:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:49:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:49:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:49:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:49:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:49:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:49:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:49:18] Production.INFO: call_cost start [2025-03-03 15:49:18] Production.INFO: call_cost end [2025-03-03 15:49:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:49:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:49:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:49:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:49:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:49:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:49:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:49:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:49:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:49:19] Production.INFO: ==1913== Releasing lock... [2025-03-03 15:49:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:49:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:49:19] Production.INFO: count ==6580 [2025-03-03 15:49:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:49:05 - End Time 2025-03-03 15:49:05 [2025-03-03 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599490', 'tblTempUsageDetail_20' ) start [2025-03-03 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599490', 'tblTempUsageDetail_20' ) end [2025-03-03 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599490', 'tblTempVendorCDR_20' ) start [2025-03-03 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599490', 'tblTempVendorCDR_20' ) end [2025-03-03 15:49:23] Production.INFO: ProcessCDR(1,14599490,1,1,2) [2025-03-03 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599490', 'tblTempUsageDetail_20' ) start [2025-03-03 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599490', 'tblTempUsageDetail_20' ) end [2025-03-03 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:49:28] Production.INFO: ==1921== Releasing lock... [2025-03-03 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:49:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:50:01] Production.INFO: ==1987== Lock acquired, processing the job... [2025-03-03 20:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:50:01] Production.INFO: neon service started [2025-03-03 20:50:01] Production.INFO: neon service started [2025-03-03 20:50:01] Production.INFO: ==1987== Releasing lock... [2025-03-03 20:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:50:02] Production.INFO: ==1989== Lock acquired, processing the job... [2025-03-03 15:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:50:02] Production.INFO: ==1989== Releasing lock... [2025-03-03 15:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:50:02] Production.INFO: ==1991== Lock acquired, processing the job... [2025-03-03 20:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:50:02] Production.INFO: ==1991== Releasing lock... [2025-03-03 20:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:50:03] Production.INFO: ==1997== Lock acquired, processing the job... [2025-03-03 15:50:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:50:03] Production.INFO: ==1999== Lock acquired, processing the job... [2025-03-03 15:50:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:50:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:50:03] Production.INFO: ==2003== Lock acquired, processing the job... [2025-03-03 15:50:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:50:03] Production.INFO: Account Balance Start. [2025-03-03 15:50:03] Production.INFO: CreateAllLog Start [2025-03-03 15:50:03] Production.INFO: ==2007== Lock acquired, processing the job... [2025-03-03 15:50:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 15:50:03] Production.INFO: 117 [2025-03-03 15:50:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:50:04] Production.INFO: ==1999== Releasing lock... [2025-03-03 15:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:50:04] Production.INFO: ==1994== Lock acquired, processing the job... [2025-03-03 15:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 15:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: ==2001== Lock acquired, processing the job... [2025-03-03 15:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:50:04] Production.ERROR: CronJob PID - 1997 [2025-03-03 15:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 15:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 15:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:50:00 [2025-03-03 15:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:50:04] Production.ERROR: CronJob PID - 2003 [2025-03-03 15:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 15:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 15:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:50:00 [2025-03-03 15:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 15:50:04] Production.ERROR: CronJob PID - 2007 [2025-03-03 15:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 15:50:04] Production.ERROR: CronJob ID - 17 [2025-03-03 15:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 15:50:00 [2025-03-03 15:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 15:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 15:50:04] Production.INFO: ==1994== Releasing lock... [2025-03-03 15:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 15:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 15:50:04] Production.INFO: ==2009== Lock acquired, processing the job... [2025-03-03 15:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:50:04] Production.INFO: ==2005== Lock acquired, processing the job... [2025-03-03 15:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:50:04] Production.INFO: count ==13 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:50:04] Production.INFO: count ==21 [2025-03-03 15:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599494') start [2025-03-03 15:50:04] Production.ERROR: done [2025-03-03 15:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 15:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599495', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 15:50:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599494') end [2025-03-03 15:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:50:04] Production.INFO: 1 [2025-03-03 15:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:50:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: ==2009== Releasing lock... [2025-03-03 15:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:50:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:04] Production.ERROR: done [2025-03-03 15:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.ERROR: done [2025-03-03 15:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:50:05] Production.INFO: Total Charge 0 [2025-03-03 15:50:05] Production.INFO: CreateAllLog End [2025-03-03 15:50:05] Production.INFO: Account Balance End. [2025-03-03 15:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:50:05] Production.INFO: ==2003== Releasing lock... [2025-03-03 15:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:50:06 [end_date_ymd] => 2025-03-03 15:50:06 [RateCDR] => 1 ) [2025-03-03 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:50:06' and `end` < '2025-03-03 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599495', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 15:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 15:50:09] Production.INFO: ProcessCDR(1,14599495,1,1,2) [2025-03-03 15:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599495,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599495,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:50:09] Production.INFO: ==2007== Releasing lock... [2025-03-03 15:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 15:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:50:16] Production.ERROR: CronJobId end10 [2025-03-03 15:50:16] Production.INFO: ==2001== Releasing lock... [2025-03-03 15:50:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:50:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:50:17] Production.INFO: call_cost start [2025-03-03 15:50:17] Production.INFO: call_cost end [2025-03-03 15:50:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:50:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:50:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:50:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:50:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:50:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:50:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:50:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:50:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:50:18] Production.INFO: ==1997== Releasing lock... [2025-03-03 15:50:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:50:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:50:19] Production.INFO: count ==6530 [2025-03-03 15:50:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:50:06 - End Time 2025-03-03 15:50:06 [2025-03-03 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599496', 'tblTempUsageDetail_20' ) start [2025-03-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599496', 'tblTempUsageDetail_20' ) end [2025-03-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599496', 'tblTempVendorCDR_20' ) start [2025-03-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599496', 'tblTempVendorCDR_20' ) end [2025-03-03 15:50:23] Production.INFO: ProcessCDR(1,14599496,1,1,2) [2025-03-03 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599496', 'tblTempUsageDetail_20' ) start [2025-03-03 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599496', 'tblTempUsageDetail_20' ) end [2025-03-03 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:50:28] Production.INFO: ==2005== Releasing lock... [2025-03-03 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:50:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:51:02] Production.INFO: ==2078== Lock acquired, processing the job... [2025-03-03 20:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:51:02] Production.INFO: neon service started [2025-03-03 20:51:02] Production.INFO: neon service started [2025-03-03 20:51:02] Production.INFO: ==2078== Releasing lock... [2025-03-03 20:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:51:02] Production.INFO: ==2080== Lock acquired, processing the job... [2025-03-03 15:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:51:02] Production.INFO: ==2082== Lock acquired, processing the job... [2025-03-03 20:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:51:03] Production.INFO: ==2082== Releasing lock... [2025-03-03 20:51:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:51:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:51:03] Production.INFO: ==2080== Releasing lock... [2025-03-03 15:51:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:51:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:51:04] Production.INFO: ==2087== Lock acquired, processing the job... [2025-03-03 15:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:51:04] Production.INFO: ==2085== Lock acquired, processing the job... [2025-03-03 15:51:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:51:04] Production.INFO: ==2093== Lock acquired, processing the job... [2025-03-03 15:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:51:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:51:04] Production.INFO: ==2089== Lock acquired, processing the job... [2025-03-03 15:51:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:51:04] Production.INFO: ==2091== Lock acquired, processing the job... [2025-03-03 15:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:51:04] Production.INFO: ==2087== Releasing lock... [2025-03-03 15:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:51:04] Production.INFO: ==2095== Lock acquired, processing the job... [2025-03-03 15:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:51:04] Production.INFO: Account Balance Start. [2025-03-03 15:51:04] Production.INFO: CreateAllLog Start [2025-03-03 15:51:04] Production.INFO: 117 [2025-03-03 15:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:51:04] Production.INFO: count ==13 [2025-03-03 15:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:51:04] Production.ERROR: done [2025-03-03 15:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:51:04] Production.INFO: count ==21 [2025-03-03 15:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599500') start [2025-03-03 15:51:05] Production.INFO: Date 2025-02-11 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.ERROR: done [2025-03-03 15:51:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599500') end [2025-03-03 15:51:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:51:05] Production.INFO: 1 [2025-03-03 15:51:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:51:05] Production.INFO: ==2095== Releasing lock... [2025-03-03 15:51:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:51:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:51:05] Production.INFO: Date 2025-02-12 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-13 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:51:05] Production.INFO: Total Charge 0 [2025-03-03 15:51:05] Production.INFO: CreateAllLog End [2025-03-03 15:51:06] Production.INFO: Account Balance End. [2025-03-03 15:51:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:51:06] Production.INFO: ==2091== Releasing lock... [2025-03-03 15:51:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:51:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:51:06 [end_date_ymd] => 2025-03-03 15:51:06 [RateCDR] => 1 ) [2025-03-03 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:51:06' and `end` < '2025-03-03 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:51:14] Production.ERROR: CronJobId end10 [2025-03-03 15:51:14] Production.INFO: ==2089== Releasing lock... [2025-03-03 15:51:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:51:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:51:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:51:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:51:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:51:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:51:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:51:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:51:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:51:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:51:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:51:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:51:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:51:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:51:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:51:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:51:16] Production.INFO: call_cost start [2025-03-03 15:51:16] Production.INFO: call_cost end [2025-03-03 15:51:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:51:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:51:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:51:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:51:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:51:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:51:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:51:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:51:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:51:17] Production.INFO: ==2085== Releasing lock... [2025-03-03 15:51:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:51:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:51:19] Production.INFO: count ==6542 [2025-03-03 15:51:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:51:06 - End Time 2025-03-03 15:51:06 [2025-03-03 15:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599501', 'tblTempUsageDetail_20' ) start [2025-03-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599501', 'tblTempUsageDetail_20' ) end [2025-03-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599501', 'tblTempVendorCDR_20' ) start [2025-03-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599501', 'tblTempVendorCDR_20' ) end [2025-03-03 15:51:23] Production.INFO: ProcessCDR(1,14599501,1,1,2) [2025-03-03 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599501', 'tblTempUsageDetail_20' ) start [2025-03-03 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599501', 'tblTempUsageDetail_20' ) end [2025-03-03 15:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:51:28] Production.INFO: ==2093== Releasing lock... [2025-03-03 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:51:28] Production.INFO: 77 MB #Memory Used# [2025-03-03 20:52:01] Production.INFO: ==2162== Lock acquired, processing the job... [2025-03-03 20:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:52:01] Production.INFO: neon service started [2025-03-03 20:52:01] Production.INFO: neon service started [2025-03-03 20:52:01] Production.INFO: ==2162== Releasing lock... [2025-03-03 20:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:52:02] Production.INFO: ==2166== Lock acquired, processing the job... [2025-03-03 20:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:52:02] Production.INFO: ==2166== Releasing lock... [2025-03-03 20:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:52:02] Production.INFO: ==2164== Lock acquired, processing the job... [2025-03-03 15:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:52:02] Production.INFO: ==2164== Releasing lock... [2025-03-03 15:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:52:03] Production.INFO: ==2170== Lock acquired, processing the job... [2025-03-03 15:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:52:03] Production.INFO: ==2181== Lock acquired, processing the job... [2025-03-03 15:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:52:03] Production.INFO: ==2172== Lock acquired, processing the job... [2025-03-03 15:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:52:03] Production.INFO: ==2175== Lock acquired, processing the job... [2025-03-03 15:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:52:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:52:03] Production.INFO: ==2179== Lock acquired, processing the job... [2025-03-03 15:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:52:03] Production.INFO: count ==13 [2025-03-03 15:52:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:52:03] Production.INFO: count ==21 [2025-03-03 15:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599503') start [2025-03-03 15:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:52:03] Production.INFO: ==2177== Lock acquired, processing the job... [2025-03-03 15:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:52:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599503') end [2025-03-03 15:52:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:52:03] Production.INFO: 1 [2025-03-03 15:52:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:52:04] Production.INFO: ==2181== Releasing lock... [2025-03-03 15:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:52:04] Production.INFO: ==2172== Releasing lock... [2025-03-03 15:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:52:04] Production.INFO: Account Balance Start. [2025-03-03 15:52:04] Production.INFO: CreateAllLog Start [2025-03-03 15:52:04] Production.INFO: 117 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.ERROR: done [2025-03-03 15:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.ERROR: done [2025-03-03 15:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:52:05] Production.INFO: Total Charge 0 [2025-03-03 15:52:05] Production.INFO: CreateAllLog End [2025-03-03 15:52:05] Production.INFO: Account Balance End. [2025-03-03 15:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:52:05] Production.INFO: ==2177== Releasing lock... [2025-03-03 15:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:52:05 [end_date_ymd] => 2025-03-03 15:52:05 [RateCDR] => 1 ) [2025-03-03 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:52:05' and `end` < '2025-03-03 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:52:14] Production.ERROR: CronJobId end10 [2025-03-03 15:52:14] Production.INFO: ==2175== Releasing lock... [2025-03-03 15:52:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:52:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:52:16] Production.INFO: call_cost start [2025-03-03 15:52:16] Production.INFO: call_cost end [2025-03-03 15:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:52:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:52:17] Production.INFO: ==2170== Releasing lock... [2025-03-03 15:52:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:52:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:52:19] Production.INFO: count ==6566 [2025-03-03 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:52:05 - End Time 2025-03-03 15:52:05 [2025-03-03 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599506', 'tblTempUsageDetail_20' ) start [2025-03-03 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599506', 'tblTempUsageDetail_20' ) end [2025-03-03 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599506', 'tblTempVendorCDR_20' ) start [2025-03-03 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599506', 'tblTempVendorCDR_20' ) end [2025-03-03 15:52:22] Production.INFO: ProcessCDR(1,14599506,1,1,2) [2025-03-03 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599506', 'tblTempUsageDetail_20' ) start [2025-03-03 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599506', 'tblTempUsageDetail_20' ) end [2025-03-03 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:52:27] Production.INFO: ==2179== Releasing lock... [2025-03-03 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:52:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:53:02] Production.INFO: ==2249== Lock acquired, processing the job... [2025-03-03 20:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:53:02] Production.INFO: neon service started [2025-03-03 20:53:02] Production.INFO: neon service started [2025-03-03 20:53:02] Production.INFO: ==2249== Releasing lock... [2025-03-03 20:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:53:02] Production.INFO: ==2251== Lock acquired, processing the job... [2025-03-03 15:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:53:02] Production.INFO: ==2253== Lock acquired, processing the job... [2025-03-03 20:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:53:03] Production.INFO: ==2253== Releasing lock... [2025-03-03 20:53:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:53:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:53:03] Production.INFO: ==2251== Releasing lock... [2025-03-03 15:53:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:53:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:53:04] Production.INFO: ==2260== Lock acquired, processing the job... [2025-03-03 15:53:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:53:04] Production.INFO: ==2266== Lock acquired, processing the job... [2025-03-03 15:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:53:04] Production.INFO: count ==13 [2025-03-03 15:53:04] Production.INFO: ==2256== Lock acquired, processing the job... [2025-03-03 15:53:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:53:04] Production.INFO: count ==21 [2025-03-03 15:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599507') start [2025-03-03 15:53:04] Production.INFO: ==2258== Lock acquired, processing the job... [2025-03-03 15:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599507') end [2025-03-03 15:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:53:04] Production.INFO: 1 [2025-03-03 15:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:53:04] Production.INFO: ==2266== Releasing lock... [2025-03-03 15:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:53:04] Production.INFO: ==2264== Lock acquired, processing the job... [2025-03-03 15:53:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:53:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:53:04] Production.INFO: ==2262== Lock acquired, processing the job... [2025-03-03 15:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:53:04] Production.INFO: Account Balance Start. [2025-03-03 15:53:04] Production.INFO: CreateAllLog Start [2025-03-03 15:53:04] Production.INFO: 117 [2025-03-03 15:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:04] Production.ERROR: done [2025-03-03 15:53:04] Production.INFO: ==2258== Releasing lock... [2025-03-03 15:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-11 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-12 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-13 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.ERROR: done [2025-03-03 15:53:05] Production.INFO: Date 2025-02-14 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:06] Production.INFO: Date 2025-02-27 [2025-03-03 15:53:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:06] Production.INFO: Date 2025-02-28 [2025-03-03 15:53:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:53:06 [end_date_ymd] => 2025-03-03 15:53:06 [RateCDR] => 1 ) [2025-03-03 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:53:06' and `end` < '2025-03-03 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:53:06] Production.INFO: Date 2025-03-01 [2025-03-03 15:53:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:06] Production.INFO: Date 2025-03-02 [2025-03-03 15:53:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:06] Production.INFO: Date 2025-03-03 [2025-03-03 15:53:06] Production.INFO: Reseller ==> 0 [2025-03-03 15:53:06] Production.INFO: Total Charge 0 [2025-03-03 15:53:06] Production.INFO: CreateAllLog End [2025-03-03 15:53:06] Production.INFO: Account Balance End. [2025-03-03 15:53:06] Production.ERROR: CronJobId end 12 [2025-03-03 15:53:06] Production.INFO: ==2262== Releasing lock... [2025-03-03 15:53:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:53:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:53:14] Production.ERROR: CronJobId end10 [2025-03-03 15:53:14] Production.INFO: ==2260== Releasing lock... [2025-03-03 15:53:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:53:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:53:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:53:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:53:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:53:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:53:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:53:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:53:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:53:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:53:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:53:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:53:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:53:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:53:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:53:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:53:16] Production.INFO: call_cost start [2025-03-03 15:53:16] Production.INFO: call_cost end [2025-03-03 15:53:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:53:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:53:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:53:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:53:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:53:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:53:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:53:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:53:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:53:17] Production.INFO: ==2256== Releasing lock... [2025-03-03 15:53:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:53:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:53:19] Production.INFO: count ==6584 [2025-03-03 15:53:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:53:06 - End Time 2025-03-03 15:53:06 [2025-03-03 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599511', 'tblTempUsageDetail_20' ) start [2025-03-03 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599511', 'tblTempUsageDetail_20' ) end [2025-03-03 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599511', 'tblTempVendorCDR_20' ) start [2025-03-03 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599511', 'tblTempVendorCDR_20' ) end [2025-03-03 15:53:23] Production.INFO: ProcessCDR(1,14599511,1,1,2) [2025-03-03 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599511', 'tblTempUsageDetail_20' ) start [2025-03-03 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599511', 'tblTempUsageDetail_20' ) end [2025-03-03 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:53:28] Production.INFO: ==2264== Releasing lock... [2025-03-03 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:53:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:54:01] Production.INFO: ==2340== Lock acquired, processing the job... [2025-03-03 20:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:54:01] Production.INFO: neon service started [2025-03-03 20:54:01] Production.INFO: neon service started [2025-03-03 20:54:01] Production.INFO: ==2340== Releasing lock... [2025-03-03 20:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:54:02] Production.INFO: ==2342== Lock acquired, processing the job... [2025-03-03 15:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:54:02] Production.INFO: ==2345== Lock acquired, processing the job... [2025-03-03 20:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:54:02] Production.INFO: ==2345== Releasing lock... [2025-03-03 20:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:54:02] Production.INFO: ==2342== Releasing lock... [2025-03-03 15:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:54:03] Production.INFO: ==2353== Lock acquired, processing the job... [2025-03-03 15:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:54:03] Production.INFO: ==2349== Lock acquired, processing the job... [2025-03-03 15:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:54:03] Production.INFO: ==2357== Lock acquired, processing the job... [2025-03-03 15:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:54:03] Production.INFO: Account Balance Start. [2025-03-03 15:54:03] Production.INFO: CreateAllLog Start [2025-03-03 15:54:03] Production.INFO: 117 [2025-03-03 15:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:03] Production.INFO: count ==13 [2025-03-03 15:54:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:54:03] Production.INFO: count ==21 [2025-03-03 15:54:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599513') start [2025-03-03 15:54:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: ==2351== Lock acquired, processing the job... [2025-03-03 15:54:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599513') end [2025-03-03 15:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:54:04] Production.INFO: 1 [2025-03-03 15:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:54:04] Production.INFO: ==2347== Lock acquired, processing the job... [2025-03-03 15:54:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:54:04] Production.INFO: ==2357== Releasing lock... [2025-03-03 15:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: ==2355== Lock acquired, processing the job... [2025-03-03 15:54:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:54:04] Production.INFO: ==2349== Releasing lock... [2025-03-03 15:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.ERROR: done [2025-03-03 15:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:05] Production.ERROR: done [2025-03-03 15:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:54:05] Production.INFO: Total Charge 0 [2025-03-03 15:54:05] Production.INFO: CreateAllLog End [2025-03-03 15:54:05] Production.INFO: Account Balance End. [2025-03-03 15:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:54:05] Production.INFO: ==2353== Releasing lock... [2025-03-03 15:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:54:06 [end_date_ymd] => 2025-03-03 15:54:06 [RateCDR] => 1 ) [2025-03-03 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:54:06' and `end` < '2025-03-03 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:54:14] Production.ERROR: CronJobId end10 [2025-03-03 15:54:14] Production.INFO: ==2351== Releasing lock... [2025-03-03 15:54:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:54:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:54:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:54:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:54:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:54:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:54:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:54:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:54:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:54:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:54:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:54:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:54:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:54:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:54:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:54:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:54:16] Production.INFO: call_cost start [2025-03-03 15:54:16] Production.INFO: call_cost end [2025-03-03 15:54:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:54:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:54:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:54:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:54:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:54:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:54:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:54:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:54:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:54:17] Production.INFO: ==2347== Releasing lock... [2025-03-03 15:54:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:54:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:54:19] Production.INFO: count ==6588 [2025-03-03 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:54:06 - End Time 2025-03-03 15:54:06 [2025-03-03 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599516', 'tblTempUsageDetail_20' ) start [2025-03-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599516', 'tblTempUsageDetail_20' ) end [2025-03-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599516', 'tblTempVendorCDR_20' ) start [2025-03-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599516', 'tblTempVendorCDR_20' ) end [2025-03-03 15:54:23] Production.INFO: ProcessCDR(1,14599516,1,1,2) [2025-03-03 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599516', 'tblTempUsageDetail_20' ) start [2025-03-03 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599516', 'tblTempUsageDetail_20' ) end [2025-03-03 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:54:28] Production.INFO: ==2355== Releasing lock... [2025-03-03 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:54:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:55:02] Production.INFO: ==2431== Lock acquired, processing the job... [2025-03-03 20:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:55:02] Production.INFO: neon service started [2025-03-03 20:55:02] Production.INFO: neon service started [2025-03-03 20:55:02] Production.INFO: ==2431== Releasing lock... [2025-03-03 20:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:55:02] Production.INFO: ==2433== Lock acquired, processing the job... [2025-03-03 15:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:55:02] Production.INFO: ==2433== Releasing lock... [2025-03-03 15:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:55:03] Production.INFO: ==2435== Lock acquired, processing the job... [2025-03-03 20:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:55:03] Production.INFO: ==2435== Releasing lock... [2025-03-03 20:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:55:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:55:03] Production.INFO: ==2446== Lock acquired, processing the job... [2025-03-03 15:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:55:04] Production.INFO: ==2448== Lock acquired, processing the job... [2025-03-03 15:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:55:04] Production.INFO: ==2438== Lock acquired, processing the job... [2025-03-03 15:55:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:55:04] Production.INFO: ==2440== Lock acquired, processing the job... [2025-03-03 15:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:55:04] Production.INFO: ==2442== Lock acquired, processing the job... [2025-03-03 15:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:55:04] Production.INFO: ==2444== Lock acquired, processing the job... [2025-03-03 15:55:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:55:04] Production.INFO: count ==13 [2025-03-03 15:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:55:04] Production.INFO: count ==21 [2025-03-03 15:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599517') start [2025-03-03 15:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:55:04] Production.INFO: Account Balance Start. [2025-03-03 15:55:04] Production.INFO: CreateAllLog Start [2025-03-03 15:55:04] Production.INFO: 117 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599517') end [2025-03-03 15:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:55:04] Production.INFO: 1 [2025-03-03 15:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: ==2448== Releasing lock... [2025-03-03 15:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.ERROR: done [2025-03-03 15:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: ==2440== Releasing lock... [2025-03-03 15:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.ERROR: done [2025-03-03 15:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:55:05] Production.INFO: Total Charge 0 [2025-03-03 15:55:05] Production.INFO: CreateAllLog End [2025-03-03 15:55:05] Production.INFO: Account Balance End. [2025-03-03 15:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:55:05] Production.INFO: ==2444== Releasing lock... [2025-03-03 15:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:55:06 [end_date_ymd] => 2025-03-03 15:55:06 [RateCDR] => 1 ) [2025-03-03 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:55:06' and `end` < '2025-03-03 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:55:14] Production.ERROR: CronJobId end10 [2025-03-03 15:55:14] Production.INFO: ==2442== Releasing lock... [2025-03-03 15:55:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:55:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:55:16] Production.INFO: call_cost start [2025-03-03 15:55:16] Production.INFO: call_cost end [2025-03-03 15:55:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:55:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:55:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:55:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:55:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:55:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:55:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:55:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:55:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:55:17] Production.INFO: ==2438== Releasing lock... [2025-03-03 15:55:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:55:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:55:19] Production.INFO: count ==6565 [2025-03-03 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:55:06 - End Time 2025-03-03 15:55:06 [2025-03-03 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599521', 'tblTempUsageDetail_20' ) start [2025-03-03 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599521', 'tblTempUsageDetail_20' ) end [2025-03-03 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599521', 'tblTempVendorCDR_20' ) start [2025-03-03 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599521', 'tblTempVendorCDR_20' ) end [2025-03-03 15:55:23] Production.INFO: ProcessCDR(1,14599521,1,1,2) [2025-03-03 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599521', 'tblTempUsageDetail_20' ) start [2025-03-03 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599521', 'tblTempUsageDetail_20' ) end [2025-03-03 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:55:26] Production.INFO: ==2446== Releasing lock... [2025-03-03 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:55:26] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:56:01] Production.INFO: ==2516== Lock acquired, processing the job... [2025-03-03 20:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:56:01] Production.INFO: neon service started [2025-03-03 20:56:01] Production.INFO: neon service started [2025-03-03 20:56:01] Production.INFO: ==2516== Releasing lock... [2025-03-03 20:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:56:02] Production.INFO: ==2518== Lock acquired, processing the job... [2025-03-03 15:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:56:02] Production.INFO: ==2518== Releasing lock... [2025-03-03 15:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 20:56:02] Production.INFO: ==2520== Lock acquired, processing the job... [2025-03-03 20:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:56:02] Production.INFO: ==2520== Releasing lock... [2025-03-03 20:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 15:56:03] Production.INFO: ==2522== Lock acquired, processing the job... [2025-03-03 15:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:56:03] Production.INFO: ==2526== Lock acquired, processing the job... [2025-03-03 15:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:56:03] Production.INFO: ==2528== Lock acquired, processing the job... [2025-03-03 15:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:56:03] Production.INFO: Account Balance Start. [2025-03-03 15:56:03] Production.INFO: CreateAllLog Start [2025-03-03 15:56:03] Production.INFO: 117 [2025-03-03 15:56:03] Production.INFO: Date 2025-02-08 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: Date 2025-02-09 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: ==2524== Lock acquired, processing the job... [2025-03-03 15:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:56:03] Production.INFO: Date 2025-02-10 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: Date 2025-02-11 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: ==2530== Lock acquired, processing the job... [2025-03-03 15:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:56:03] Production.INFO: Date 2025-02-12 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: Date 2025-02-13 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: ==2532== Lock acquired, processing the job... [2025-03-03 15:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:56:03] Production.INFO: Date 2025-02-14 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:03] Production.INFO: Date 2025-02-15 [2025-03-03 15:56:03] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: ==2524== Releasing lock... [2025-03-03 15:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: count ==13 [2025-03-03 15:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:56:04] Production.INFO: count ==21 [2025-03-03 15:56:04] Production.ERROR: done [2025-03-03 15:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599525') start [2025-03-03 15:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.ERROR: done [2025-03-03 15:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-25 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599525') end [2025-03-03 15:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:56:04] Production.INFO: 1 [2025-03-03 15:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:56:04] Production.INFO: Date 2025-02-26 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-02-27 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: ==2532== Releasing lock... [2025-03-03 15:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:56:04] Production.INFO: Date 2025-02-28 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-03-01 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-03-02 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Date 2025-03-03 [2025-03-03 15:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:56:04] Production.INFO: Total Charge 0 [2025-03-03 15:56:04] Production.INFO: CreateAllLog End [2025-03-03 15:56:04] Production.INFO: Account Balance End. [2025-03-03 15:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:56:05] Production.INFO: ==2528== Releasing lock... [2025-03-03 15:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:56:05 [end_date_ymd] => 2025-03-03 15:56:05 [RateCDR] => 1 ) [2025-03-03 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:56:05' and `end` < '2025-03-03 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:56:15] Production.ERROR: CronJobId end10 [2025-03-03 15:56:15] Production.INFO: ==2526== Releasing lock... [2025-03-03 15:56:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:56:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:56:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:56:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:56:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:56:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:56:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:56:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:56:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:56:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:56:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:56:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:56:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:56:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:56:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:56:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:56:16] Production.INFO: call_cost start [2025-03-03 15:56:16] Production.INFO: call_cost end [2025-03-03 15:56:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:56:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:56:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:56:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:56:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:56:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:56:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:56:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:56:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:56:17] Production.INFO: ==2522== Releasing lock... [2025-03-03 15:56:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:56:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:56:19] Production.INFO: count ==6568 [2025-03-03 15:56:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:56:05 - End Time 2025-03-03 15:56:05 [2025-03-03 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599526', 'tblTempUsageDetail_20' ) start [2025-03-03 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599526', 'tblTempUsageDetail_20' ) end [2025-03-03 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599526', 'tblTempVendorCDR_20' ) start [2025-03-03 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599526', 'tblTempVendorCDR_20' ) end [2025-03-03 15:56:22] Production.INFO: ProcessCDR(1,14599526,1,1,2) [2025-03-03 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599526', 'tblTempUsageDetail_20' ) start [2025-03-03 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599526', 'tblTempUsageDetail_20' ) end [2025-03-03 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:56:27] Production.INFO: ==2530== Releasing lock... [2025-03-03 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:56:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 20:57:02] Production.INFO: ==2600== Lock acquired, processing the job... [2025-03-03 20:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:57:02] Production.INFO: neon service started [2025-03-03 20:57:02] Production.INFO: neon service started [2025-03-03 20:57:02] Production.INFO: ==2600== Releasing lock... [2025-03-03 20:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:57:02] Production.INFO: ==2604== Lock acquired, processing the job... [2025-03-03 20:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 15:57:02] Production.INFO: ==2602== Lock acquired, processing the job... [2025-03-03 15:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:57:02] Production.INFO: ==2604== Releasing lock... [2025-03-03 20:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:57:03] Production.INFO: ==2602== Releasing lock... [2025-03-03 15:57:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:57:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:57:04] Production.INFO: ==2615== Lock acquired, processing the job... [2025-03-03 15:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:57:04] Production.INFO: ==2617== Lock acquired, processing the job... [2025-03-03 15:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:57:04] Production.INFO: ==2609== Lock acquired, processing the job... [2025-03-03 15:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:57:04] Production.INFO: ==2607== Lock acquired, processing the job... [2025-03-03 15:57:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:57:04] Production.INFO: ==2611== Lock acquired, processing the job... [2025-03-03 15:57:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:57:04] Production.INFO: ==2613== Lock acquired, processing the job... [2025-03-03 15:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:57:04] Production.INFO: count ==13 [2025-03-03 15:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:57:04] Production.INFO: count ==21 [2025-03-03 15:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599527') start [2025-03-03 15:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:57:04] Production.INFO: Account Balance Start. [2025-03-03 15:57:04] Production.INFO: CreateAllLog Start [2025-03-03 15:57:04] Production.INFO: 117 [2025-03-03 15:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599527') end [2025-03-03 15:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:57:04] Production.INFO: 1 [2025-03-03 15:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.INFO: ==2617== Releasing lock... [2025-03-03 15:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:57:04] Production.ERROR: done [2025-03-03 15:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:04] Production.INFO: ==2609== Releasing lock... [2025-03-03 15:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:57:05] Production.ERROR: done [2025-03-03 15:57:05] Production.INFO: Date 2025-02-15 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-16 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-17 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-18 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-19 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:57:05] Production.INFO: Total Charge 0 [2025-03-03 15:57:05] Production.INFO: CreateAllLog End [2025-03-03 15:57:05] Production.INFO: Account Balance End. [2025-03-03 15:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:57:05] Production.INFO: ==2613== Releasing lock... [2025-03-03 15:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:57:06 [end_date_ymd] => 2025-03-03 15:57:06 [RateCDR] => 1 ) [2025-03-03 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:57:06' and `end` < '2025-03-03 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:57:14] Production.ERROR: CronJobId end10 [2025-03-03 15:57:14] Production.INFO: ==2611== Releasing lock... [2025-03-03 15:57:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:57:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:57:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:57:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:57:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:57:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:57:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:57:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:57:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:57:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:57:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:57:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:57:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:57:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:57:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:57:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:57:15] Production.INFO: call_cost start [2025-03-03 15:57:15] Production.INFO: call_cost end [2025-03-03 15:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:57:16] Production.INFO: ==2607== Releasing lock... [2025-03-03 15:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:57:20] Production.INFO: count ==6601 [2025-03-03 15:57:23] Production.ERROR: pbx CDR StartTime 2025-03-03 12:57:06 - End Time 2025-03-03 15:57:06 [2025-03-03 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599531', 'tblTempUsageDetail_20' ) start [2025-03-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599531', 'tblTempUsageDetail_20' ) end [2025-03-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599531', 'tblTempVendorCDR_20' ) start [2025-03-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599531', 'tblTempVendorCDR_20' ) end [2025-03-03 15:57:23] Production.INFO: ProcessCDR(1,14599531,1,1,2) [2025-03-03 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599531', 'tblTempUsageDetail_20' ) start [2025-03-03 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599531', 'tblTempUsageDetail_20' ) end [2025-03-03 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:57:28] Production.INFO: ==2615== Releasing lock... [2025-03-03 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:57:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:58:01] Production.INFO: ==2681== Lock acquired, processing the job... [2025-03-03 20:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:58:01] Production.INFO: neon service started [2025-03-03 20:58:01] Production.INFO: neon service started [2025-03-03 20:58:01] Production.INFO: ==2681== Releasing lock... [2025-03-03 20:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 20:58:02] Production.INFO: ==2685== Lock acquired, processing the job... [2025-03-03 20:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:58:02] Production.INFO: ==2685== Releasing lock... [2025-03-03 20:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:58:02] Production.INFO: ==2683== Lock acquired, processing the job... [2025-03-03 15:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 15:58:02] Production.INFO: ==2683== Releasing lock... [2025-03-03 15:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:58:03] Production.INFO: ==2690== Lock acquired, processing the job... [2025-03-03 15:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:58:03] Production.INFO: ==2688== Lock acquired, processing the job... [2025-03-03 15:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:58:03] Production.INFO: ==2698== Lock acquired, processing the job... [2025-03-03 15:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:58:03] Production.INFO: ==2692== Lock acquired, processing the job... [2025-03-03 15:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:58:03] Production.INFO: ==2690== Releasing lock... [2025-03-03 15:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:58:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:58:03] Production.INFO: ==2694== Lock acquired, processing the job... [2025-03-03 15:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:58:03] Production.INFO: count ==13 [2025-03-03 15:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:58:03] Production.INFO: count ==21 [2025-03-03 15:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:58:03] Production.INFO: ==2696== Lock acquired, processing the job... [2025-03-03 15:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599533') start [2025-03-03 15:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599533') end [2025-03-03 15:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:58:04] Production.INFO: 1 [2025-03-03 15:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:58:04] Production.INFO: Account Balance Start. [2025-03-03 15:58:04] Production.INFO: CreateAllLog Start [2025-03-03 15:58:04] Production.INFO: 117 [2025-03-03 15:58:04] Production.INFO: ==2698== Releasing lock... [2025-03-03 15:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.ERROR: done [2025-03-03 15:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.ERROR: done [2025-03-03 15:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:58:05] Production.INFO: Total Charge 0 [2025-03-03 15:58:05] Production.INFO: CreateAllLog End [2025-03-03 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:58:05 [end_date_ymd] => 2025-03-03 15:58:05 [RateCDR] => 1 ) [2025-03-03 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 12:58:05' and `end` < '2025-03-03 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 15:58:05] Production.INFO: Account Balance End. [2025-03-03 15:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:58:05] Production.INFO: ==2694== Releasing lock... [2025-03-03 15:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:58:14] Production.ERROR: CronJobId end10 [2025-03-03 15:58:14] Production.INFO: ==2692== Releasing lock... [2025-03-03 15:58:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:58:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:58:15] Production.INFO: call_cost start [2025-03-03 15:58:15] Production.INFO: call_cost end [2025-03-03 15:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:58:16] Production.INFO: ==2688== Releasing lock... [2025-03-03 15:58:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:58:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:58:19] Production.INFO: count ==6610 [2025-03-03 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:58:05 - End Time 2025-03-03 15:58:05 [2025-03-03 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599536', 'tblTempUsageDetail_20' ) start [2025-03-03 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599536', 'tblTempUsageDetail_20' ) end [2025-03-03 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599536', 'tblTempVendorCDR_20' ) start [2025-03-03 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599536', 'tblTempVendorCDR_20' ) end [2025-03-03 15:58:22] Production.INFO: ProcessCDR(1,14599536,1,1,2) [2025-03-03 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599536', 'tblTempUsageDetail_20' ) start [2025-03-03 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599536', 'tblTempUsageDetail_20' ) end [2025-03-03 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:58:27] Production.INFO: ==2696== Releasing lock... [2025-03-03 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:58:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 20:59:02] Production.INFO: ==2767== Lock acquired, processing the job... [2025-03-03 20:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 20:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 20:59:02] Production.INFO: neon service started [2025-03-03 20:59:02] Production.INFO: neon service started [2025-03-03 20:59:02] Production.INFO: ==2767== Releasing lock... [2025-03-03 20:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 20:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 15:59:02] Production.INFO: ==2769== Lock acquired, processing the job... [2025-03-03 15:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 20:59:02] Production.INFO: ==2771== Lock acquired, processing the job... [2025-03-03 20:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 20:59:02] Production.INFO: ==2771== Releasing lock... [2025-03-03 20:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 20:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 15:59:03] Production.INFO: ==2769== Releasing lock... [2025-03-03 15:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 15:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 15:59:04] Production.INFO: ==2782== Lock acquired, processing the job... [2025-03-03 15:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 15:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 15:59:04] Production.INFO: ==2774== Lock acquired, processing the job... [2025-03-03 15:59:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 15:59:04] Production.INFO: ==2784== Lock acquired, processing the job... [2025-03-03 15:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 15:59:04] Production.INFO: ==2776== Lock acquired, processing the job... [2025-03-03 15:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 15:59:04] Production.INFO: ==2778== Lock acquired, processing the job... [2025-03-03 15:59:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 15:59:04] Production.INFO: ==2780== Lock acquired, processing the job... [2025-03-03 15:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 15:59:04] Production.INFO: Account Balance Start. [2025-03-03 15:59:04] Production.INFO: CreateAllLog Start [2025-03-03 15:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 15:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 15:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 15:59:04] Production.INFO: 117 [2025-03-03 15:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 15:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 15:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: count ==13 [2025-03-03 15:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 15:59:04] Production.INFO: count ==21 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599537') start [2025-03-03 15:59:04] Production.ERROR: done [2025-03-03 15:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-11 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599537') end [2025-03-03 15:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 15:59:04] Production.INFO: 1 [2025-03-03 15:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 15:59:04] Production.INFO: Date 2025-02-12 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-13 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: ==2784== Releasing lock... [2025-03-03 15:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 15:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 15:59:04] Production.ERROR: done [2025-03-03 15:59:04] Production.INFO: ==2776== Releasing lock... [2025-03-03 15:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 15:59:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 15:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 15:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-22 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Date 2025-03-03 [2025-03-03 15:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 15:59:05] Production.INFO: Total Charge 0 [2025-03-03 15:59:05] Production.INFO: CreateAllLog End [2025-03-03 15:59:05] Production.INFO: Account Balance End. [2025-03-03 15:59:05] Production.ERROR: CronJobId end 12 [2025-03-03 15:59:05] Production.INFO: ==2780== Releasing lock... [2025-03-03 15:59:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 15:59:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 12:59:05 [end_date_ymd] => 2025-03-03 15:59:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 12:59:05' and `end` < '2025-03-03 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-03-03 15:59:13] Production.ERROR: CronJobId end10 [2025-03-03 15:59:13] Production.INFO: ==2778== Releasing lock... [2025-03-03 15:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 15:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 15:59:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 15:59:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 15:59:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 15:59:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 15:59:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 15:59:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 15:59:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 15:59:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 15:59:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 15:59:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 15:59:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 15:59:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 15:59:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 15:59:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 15:59:16] Production.INFO: call_cost start [2025-03-03 15:59:16] Production.INFO: call_cost end [2025-03-03 15:59:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 15:59:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 15:59:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 15:59:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 15:59:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 15:59:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 15:59:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 15:59:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 15:59:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 15:59:17] Production.INFO: ==2774== Releasing lock... [2025-03-03 15:59:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 15:59:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 15:59:19] Production.INFO: count ==6629 [2025-03-03 15:59:22] Production.ERROR: pbx CDR StartTime 2025-03-03 12:59:05 - End Time 2025-03-03 15:59:05 [2025-03-03 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599541', 'tblTempUsageDetail_20' ) start [2025-03-03 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599541', 'tblTempUsageDetail_20' ) end [2025-03-03 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599541', 'tblTempVendorCDR_20' ) start [2025-03-03 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599541', 'tblTempVendorCDR_20' ) end [2025-03-03 15:59:22] Production.INFO: ProcessCDR(1,14599541,1,1,2) [2025-03-03 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599541', 'tblTempUsageDetail_20' ) start [2025-03-03 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599541', 'tblTempUsageDetail_20' ) end [2025-03-03 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 15:59:27] Production.INFO: ==2782== Releasing lock... [2025-03-03 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 15:59:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:00:01] Production.INFO: ==2852== Lock acquired, processing the job... [2025-03-03 21:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:00:01] Production.INFO: neon service started [2025-03-03 21:00:01] Production.INFO: neon service started [2025-03-03 21:00:01] Production.INFO: ==2852== Releasing lock... [2025-03-03 21:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:00:02] Production.INFO: ==2856== Lock acquired, processing the job... [2025-03-03 21:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:00:02] Production.INFO: ==2856== Releasing lock... [2025-03-03 21:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:00:02] Production.INFO: ==2854== Lock acquired, processing the job... [2025-03-03 16:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:00:02] Production.INFO: ==2854== Releasing lock... [2025-03-03 16:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:00:03] Production.INFO: ==2859== Lock acquired, processing the job... [2025-03-03 16:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 16:00:03] Production.INFO: ==2861== Lock acquired, processing the job... [2025-03-03 16:00:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:00:03] Production.INFO: ==2865== Lock acquired, processing the job... [2025-03-03 16:00:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:00:03] Production.INFO: ==2863== Lock acquired, processing the job... [2025-03-03 16:00:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:00:03] Production.ERROR: CronJob PID - 2861 [2025-03-03 16:00:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 16:00:03] Production.ERROR: CronJob ID - 5 [2025-03-03 16:00:03] Production.ERROR: CronJob Last Run Time 2025-03-03 16:00:00 [2025-03-03 16:00:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:00:03] Production.ERROR: CronJob PID - 2863 [2025-03-03 16:00:03] Production.ERROR: CronJob Title - Account Block [2025-03-03 16:00:03] Production.ERROR: CronJob ID - 7 [2025-03-03 16:00:03] Production.ERROR: CronJob Last Run Time 2025-03-03 16:00:00 [2025-03-03 16:00:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:00:03] Production.ERROR: CronJob PID - 2865 [2025-03-03 16:00:03] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 16:00:03] Production.ERROR: CronJob ID - 10 [2025-03-03 16:00:03] Production.ERROR: CronJob Last Run Time 2025-03-03 16:00:00 [2025-03-03 16:00:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:00:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:00:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:00:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:00:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:00:03] Production.INFO: ==2869== Lock acquired, processing the job... [2025-03-03 16:00:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:00:03] Production.INFO: ==2867== Lock acquired, processing the job... [2025-03-03 16:00:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 16:00:04] Production.INFO: ==2859== Releasing lock... [2025-03-03 16:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 16:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:00:04] Production.INFO: ==2873== Lock acquired, processing the job... [2025-03-03 16:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:00:04] Production.INFO: ==2871== Lock acquired, processing the job... [2025-03-03 16:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 16:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:00:04] Production.INFO: Account Balance Start. [2025-03-03 16:00:04] Production.INFO: CreateAllLog Start [2025-03-03 16:00:04] Production.INFO: 117 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:00:04] Production.INFO: ==2863== Releasing lock... [2025-03-03 16:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: count ==13 [2025-03-03 16:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:00:04] Production.INFO: count ==21 [2025-03-03 16:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599545') start [2025-03-03 16:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.ERROR: done [2025-03-03 16:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599545') end [2025-03-03 16:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:00:04] Production.INFO: 1 [2025-03-03 16:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.ERROR: done [2025-03-03 16:00:04] Production.ERROR: done [2025-03-03 16:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: ==2873== Releasing lock... [2025-03-03 16:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:00:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 16:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599547', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 16:00:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:00:05] Production.INFO: Total Charge 0 [2025-03-03 16:00:05] Production.INFO: CreateAllLog End [2025-03-03 16:00:05] Production.INFO: Account Balance End. [2025-03-03 16:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:00:05] Production.INFO: ==2867== Releasing lock... [2025-03-03 16:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:00:06 [end_date_ymd] => 2025-03-03 16:00:06 [RateCDR] => 1 ) [2025-03-03 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:00:06' and `end` < '2025-03-03 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599547', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 16:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 16:00:09] Production.INFO: ProcessCDR(1,14599547,1,1,2) [2025-03-03 16:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599547,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599547,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:00:09] Production.INFO: ==2871== Releasing lock... [2025-03-03 16:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 16:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 16:00:16] Production.ERROR: CronJobId end10 [2025-03-03 16:00:16] Production.INFO: ==2865== Releasing lock... [2025-03-03 16:00:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:00:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:00:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:00:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:00:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:00:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:00:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:00:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:00:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:00:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:00:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:00:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:00:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:00:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:00:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:00:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:00:17] Production.INFO: call_cost start [2025-03-03 16:00:17] Production.INFO: call_cost end [2025-03-03 16:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:00:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:00:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:00:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:00:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:00:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:00:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:00:18] Production.INFO: ==2861== Releasing lock... [2025-03-03 16:00:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:00:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:00:19] Production.INFO: count ==6630 [2025-03-03 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:00:06 - End Time 2025-03-03 16:00:06 [2025-03-03 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599546', 'tblTempUsageDetail_20' ) start [2025-03-03 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599546', 'tblTempUsageDetail_20' ) end [2025-03-03 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599546', 'tblTempVendorCDR_20' ) start [2025-03-03 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599546', 'tblTempVendorCDR_20' ) end [2025-03-03 16:00:23] Production.INFO: ProcessCDR(1,14599546,1,1,2) [2025-03-03 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599546', 'tblTempUsageDetail_20' ) start [2025-03-03 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599546', 'tblTempUsageDetail_20' ) end [2025-03-03 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:00:28] Production.INFO: ==2869== Releasing lock... [2025-03-03 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:00:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:01:02] Production.INFO: ==2945== Lock acquired, processing the job... [2025-03-03 21:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:01:02] Production.INFO: neon service started [2025-03-03 21:01:02] Production.INFO: neon service started [2025-03-03 21:01:02] Production.INFO: ==2945== Releasing lock... [2025-03-03 21:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:01:02] Production.INFO: ==2956== Lock acquired, processing the job... [2025-03-03 16:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:01:02] Production.INFO: ==2956== Releasing lock... [2025-03-03 16:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:01:02] Production.INFO: ==2958== Lock acquired, processing the job... [2025-03-03 21:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:01:02] Production.INFO: ==2958== Releasing lock... [2025-03-03 21:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:01:03] Production.INFO: ==2962== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:01:03] Production.INFO: ==2966== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:01:03] Production.INFO: ==2960== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:01:03] Production.INFO: ==2964== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:01:03] Production.INFO: ==2970== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:01:03] Production.INFO: ==2968== Lock acquired, processing the job... [2025-03-03 16:01:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:01:03] Production.INFO: Account Balance Start. [2025-03-03 16:01:03] Production.INFO: CreateAllLog Start [2025-03-03 16:01:03] Production.INFO: 117 [2025-03-03 16:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:01:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: count ==13 [2025-03-03 16:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:01:04] Production.INFO: count ==21 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599549') start [2025-03-03 16:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: ==2962== Releasing lock... [2025-03-03 16:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599549') end [2025-03-03 16:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:01:04] Production.INFO: 1 [2025-03-03 16:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.ERROR: done [2025-03-03 16:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:01:04] Production.INFO: ==2970== Releasing lock... [2025-03-03 16:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.ERROR: done [2025-03-03 16:01:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:01:05] Production.INFO: Total Charge 0 [2025-03-03 16:01:05] Production.INFO: CreateAllLog End [2025-03-03 16:01:05] Production.INFO: Account Balance End. [2025-03-03 16:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:01:05] Production.INFO: ==2966== Releasing lock... [2025-03-03 16:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:01:05 [end_date_ymd] => 2025-03-03 16:01:05 [RateCDR] => 1 ) [2025-03-03 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:01:05' and `end` < '2025-03-03 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:01:14] Production.ERROR: CronJobId end10 [2025-03-03 16:01:14] Production.INFO: ==2964== Releasing lock... [2025-03-03 16:01:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:01:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:01:16] Production.INFO: call_cost start [2025-03-03 16:01:16] Production.INFO: call_cost end [2025-03-03 16:01:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:01:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:01:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:01:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:01:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:01:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:01:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:01:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:01:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:01:17] Production.INFO: ==2960== Releasing lock... [2025-03-03 16:01:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:01:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:01:19] Production.INFO: count ==6614 [2025-03-03 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:01:05 - End Time 2025-03-03 16:01:05 [2025-03-03 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599552', 'tblTempUsageDetail_20' ) start [2025-03-03 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599552', 'tblTempUsageDetail_20' ) end [2025-03-03 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599552', 'tblTempVendorCDR_20' ) start [2025-03-03 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599552', 'tblTempVendorCDR_20' ) end [2025-03-03 16:01:22] Production.INFO: ProcessCDR(1,14599552,1,1,2) [2025-03-03 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599552', 'tblTempUsageDetail_20' ) start [2025-03-03 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599552', 'tblTempUsageDetail_20' ) end [2025-03-03 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:01:27] Production.INFO: ==2968== Releasing lock... [2025-03-03 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:01:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 21:02:01] Production.INFO: ==3035== Lock acquired, processing the job... [2025-03-03 21:02:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:02:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:02:01] Production.INFO: neon service started [2025-03-03 21:02:01] Production.INFO: neon service started [2025-03-03 21:02:01] Production.INFO: ==3035== Releasing lock... [2025-03-03 21:02:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:02:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:02:02] Production.INFO: ==3038== Lock acquired, processing the job... [2025-03-03 16:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:02:02] Production.INFO: ==3040== Lock acquired, processing the job... [2025-03-03 21:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:02:02] Production.INFO: ==3040== Releasing lock... [2025-03-03 21:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:02:02] Production.INFO: ==3038== Releasing lock... [2025-03-03 16:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:02:03] Production.INFO: ==3043== Lock acquired, processing the job... [2025-03-03 16:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:02:03] Production.INFO: ==3045== Lock acquired, processing the job... [2025-03-03 16:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:02:03] Production.INFO: ==3051== Lock acquired, processing the job... [2025-03-03 16:02:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:02:03] Production.INFO: ==3047== Lock acquired, processing the job... [2025-03-03 16:02:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:02:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:02:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:02:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:02:03] Production.INFO: ==3045== Releasing lock... [2025-03-03 16:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:02:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:02:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:02:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:02:03] Production.INFO: ==3049== Lock acquired, processing the job... [2025-03-03 16:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:02:04] Production.INFO: ==3053== Lock acquired, processing the job... [2025-03-03 16:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:02:04] Production.INFO: Account Balance Start. [2025-03-03 16:02:04] Production.INFO: CreateAllLog Start [2025-03-03 16:02:04] Production.INFO: 117 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: count ==13 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:02:04] Production.INFO: count ==21 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.ERROR: done [2025-03-03 16:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599556') start [2025-03-03 16:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599556') end [2025-03-03 16:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:02:04] Production.INFO: 1 [2025-03-03 16:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:02:04] Production.ERROR: done [2025-03-03 16:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: ==3053== Releasing lock... [2025-03-03 16:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:02:05] Production.INFO: Total Charge 0 [2025-03-03 16:02:05] Production.INFO: CreateAllLog End [2025-03-03 16:02:05] Production.INFO: Account Balance End. [2025-03-03 16:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:02:05] Production.INFO: ==3049== Releasing lock... [2025-03-03 16:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:02:05 [end_date_ymd] => 2025-03-03 16:02:05 [RateCDR] => 1 ) [2025-03-03 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:02:05' and `end` < '2025-03-03 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:02:14] Production.ERROR: CronJobId end10 [2025-03-03 16:02:14] Production.INFO: ==3047== Releasing lock... [2025-03-03 16:02:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:02:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:02:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:02:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:02:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:02:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:02:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:02:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:02:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:02:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:02:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:02:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:02:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:02:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:02:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:02:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:02:15] Production.INFO: call_cost start [2025-03-03 16:02:15] Production.INFO: call_cost end [2025-03-03 16:02:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:02:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:02:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:02:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:02:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:02:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:02:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:02:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:02:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:02:16] Production.INFO: ==3043== Releasing lock... [2025-03-03 16:02:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:02:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:02:19] Production.INFO: count ==6628 [2025-03-03 16:02:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:02:05 - End Time 2025-03-03 16:02:05 [2025-03-03 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599557', 'tblTempUsageDetail_20' ) start [2025-03-03 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599557', 'tblTempUsageDetail_20' ) end [2025-03-03 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599557', 'tblTempVendorCDR_20' ) start [2025-03-03 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599557', 'tblTempVendorCDR_20' ) end [2025-03-03 16:02:23] Production.INFO: ProcessCDR(1,14599557,1,1,2) [2025-03-03 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599557', 'tblTempUsageDetail_20' ) start [2025-03-03 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599557', 'tblTempUsageDetail_20' ) end [2025-03-03 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:02:28] Production.INFO: ==3051== Releasing lock... [2025-03-03 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:02:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 21:03:01] Production.INFO: ==3121== Lock acquired, processing the job... [2025-03-03 21:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:03:02] Production.INFO: neon service started [2025-03-03 21:03:02] Production.INFO: neon service started [2025-03-03 21:03:02] Production.INFO: ==3121== Releasing lock... [2025-03-03 21:03:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:03:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:03:02] Production.INFO: ==3123== Lock acquired, processing the job... [2025-03-03 16:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:03:02] Production.INFO: ==3123== Releasing lock... [2025-03-03 16:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:03:02] Production.INFO: ==3126== Lock acquired, processing the job... [2025-03-03 21:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:03:02] Production.INFO: ==3126== Releasing lock... [2025-03-03 21:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:03:03] Production.INFO: ==3128== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:03:03] Production.INFO: ==3132== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:03:03] Production.INFO: ==3136== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:03:03] Production.INFO: ==3130== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:03:03] Production.INFO: ==3134== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:03:03] Production.INFO: ==3138== Lock acquired, processing the job... [2025-03-03 16:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:03:03] Production.INFO: Account Balance Start. [2025-03-03 16:03:03] Production.INFO: CreateAllLog Start [2025-03-03 16:03:03] Production.INFO: 117 [2025-03-03 16:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:03:04] Production.INFO: count ==13 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:03:04] Production.INFO: ==3130== Releasing lock... [2025-03-03 16:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:03:04] Production.INFO: count ==21 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599561') start [2025-03-03 16:03:04] Production.ERROR: done [2025-03-03 16:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599561') end [2025-03-03 16:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:03:04] Production.INFO: 1 [2025-03-03 16:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.ERROR: done [2025-03-03 16:03:04] Production.INFO: ==3138== Releasing lock... [2025-03-03 16:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:03:05] Production.INFO: Total Charge 0 [2025-03-03 16:03:05] Production.INFO: CreateAllLog End [2025-03-03 16:03:05] Production.INFO: Account Balance End. [2025-03-03 16:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:03:05] Production.INFO: ==3134== Releasing lock... [2025-03-03 16:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:03:05 [end_date_ymd] => 2025-03-03 16:03:05 [RateCDR] => 1 ) [2025-03-03 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:03:05' and `end` < '2025-03-03 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:03:13] Production.ERROR: CronJobId end10 [2025-03-03 16:03:13] Production.INFO: ==3132== Releasing lock... [2025-03-03 16:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:03:15] Production.INFO: call_cost start [2025-03-03 16:03:15] Production.INFO: call_cost end [2025-03-03 16:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:03:16] Production.INFO: ==3128== Releasing lock... [2025-03-03 16:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:03:19] Production.INFO: count ==6648 [2025-03-03 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:03:05 - End Time 2025-03-03 16:03:05 [2025-03-03 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599562', 'tblTempUsageDetail_20' ) start [2025-03-03 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599562', 'tblTempUsageDetail_20' ) end [2025-03-03 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599562', 'tblTempVendorCDR_20' ) start [2025-03-03 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599562', 'tblTempVendorCDR_20' ) end [2025-03-03 16:03:23] Production.INFO: ProcessCDR(1,14599562,1,1,2) [2025-03-03 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599562', 'tblTempUsageDetail_20' ) start [2025-03-03 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599562', 'tblTempUsageDetail_20' ) end [2025-03-03 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:03:27] Production.INFO: ==3136== Releasing lock... [2025-03-03 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:03:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:04:01] Production.INFO: ==3245== Lock acquired, processing the job... [2025-03-03 21:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:04:01] Production.INFO: neon service started [2025-03-03 21:04:01] Production.INFO: neon service started [2025-03-03 21:04:01] Production.INFO: ==3245== Releasing lock... [2025-03-03 21:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:04:01] Production.INFO: ==3247== Lock acquired, processing the job... [2025-03-03 16:04:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:04:02] Production.INFO: ==3247== Releasing lock... [2025-03-03 16:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:04:02] Production.INFO: ==3249== Lock acquired, processing the job... [2025-03-03 21:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:04:02] Production.INFO: ==3249== Releasing lock... [2025-03-03 21:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:04:03] Production.INFO: ==3259== Lock acquired, processing the job... [2025-03-03 16:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:04:03] Production.INFO: ==3261== Lock acquired, processing the job... [2025-03-03 16:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:04:03] Production.INFO: ==3251== Lock acquired, processing the job... [2025-03-03 16:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:04:03] Production.INFO: ==3253== Lock acquired, processing the job... [2025-03-03 16:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:04:03] Production.INFO: ==3255== Lock acquired, processing the job... [2025-03-03 16:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:04:03] Production.INFO: ==3257== Lock acquired, processing the job... [2025-03-03 16:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:04:03] Production.INFO: count ==13 [2025-03-03 16:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:04:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:04:03] Production.INFO: count ==21 [2025-03-03 16:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599564') start [2025-03-03 16:04:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:04:03] Production.INFO: Account Balance Start. [2025-03-03 16:04:03] Production.INFO: CreateAllLog Start [2025-03-03 16:04:03] Production.INFO: 117 [2025-03-03 16:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.ERROR: done [2025-03-03 16:04:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:04:03] Production.INFO: ==3253== Releasing lock... [2025-03-03 16:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:04:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599564') end [2025-03-03 16:04:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:04:03] Production.INFO: 1 [2025-03-03 16:04:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.INFO: ==3261== Releasing lock... [2025-03-03 16:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:04:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:04:03] Production.ERROR: done [2025-03-03 16:04:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:04:04 [end_date_ymd] => 2025-03-03 16:04:04 [RateCDR] => 1 ) [2025-03-03 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:04:04' and `end` < '2025-03-03 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:04:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:04:04] Production.INFO: Total Charge 0 [2025-03-03 16:04:04] Production.INFO: CreateAllLog End [2025-03-03 16:04:05] Production.INFO: Account Balance End. [2025-03-03 16:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:04:05] Production.INFO: ==3257== Releasing lock... [2025-03-03 16:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:04:13] Production.ERROR: CronJobId end10 [2025-03-03 16:04:13] Production.INFO: ==3255== Releasing lock... [2025-03-03 16:04:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:04:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:04:15] Production.INFO: call_cost start [2025-03-03 16:04:15] Production.INFO: call_cost end [2025-03-03 16:04:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:04:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:04:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:04:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:04:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:04:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:04:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:04:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:04:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:04:16] Production.INFO: ==3251== Releasing lock... [2025-03-03 16:04:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:04:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:04:18] Production.INFO: count ==6666 [2025-03-03 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:04:04 - End Time 2025-03-03 16:04:04 [2025-03-03 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599567', 'tblTempUsageDetail_20' ) start [2025-03-03 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599567', 'tblTempUsageDetail_20' ) end [2025-03-03 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599567', 'tblTempVendorCDR_20' ) start [2025-03-03 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599567', 'tblTempVendorCDR_20' ) end [2025-03-03 16:04:22] Production.INFO: ProcessCDR(1,14599567,1,1,2) [2025-03-03 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599567', 'tblTempUsageDetail_20' ) start [2025-03-03 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599567', 'tblTempUsageDetail_20' ) end [2025-03-03 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:04:27] Production.INFO: ==3259== Releasing lock... [2025-03-03 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:04:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:05:01] Production.INFO: ==3331== Lock acquired, processing the job... [2025-03-03 21:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:05:01] Production.INFO: neon service started [2025-03-03 21:05:01] Production.INFO: neon service started [2025-03-03 21:05:01] Production.INFO: ==3331== Releasing lock... [2025-03-03 21:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:05:02] Production.INFO: ==3335== Lock acquired, processing the job... [2025-03-03 21:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:05:02] Production.INFO: ==3335== Releasing lock... [2025-03-03 21:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:05:02] Production.INFO: ==3333== Lock acquired, processing the job... [2025-03-03 16:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:05:02] Production.INFO: ==3333== Releasing lock... [2025-03-03 16:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:05:03] Production.INFO: ==3338== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:05:03] Production.INFO: ==3340== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:05:03] Production.INFO: ==3342== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:05:03] Production.INFO: ==3344== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:05:03] Production.INFO: ==3340== Releasing lock... [2025-03-03 16:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:05:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:05:03] Production.INFO: ==3346== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:05:03] Production.INFO: ==3348== Lock acquired, processing the job... [2025-03-03 16:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:05:03] Production.INFO: Account Balance Start. [2025-03-03 16:05:03] Production.INFO: CreateAllLog Start [2025-03-03 16:05:03] Production.INFO: 117 [2025-03-03 16:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: count ==13 [2025-03-03 16:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: count ==21 [2025-03-03 16:05:04] Production.ERROR: done [2025-03-03 16:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599571') start [2025-03-03 16:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.ERROR: done [2025-03-03 16:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599571') end [2025-03-03 16:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:05:04] Production.INFO: 1 [2025-03-03 16:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: ==3348== Releasing lock... [2025-03-03 16:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:05:05] Production.INFO: Total Charge 0 [2025-03-03 16:05:05] Production.INFO: CreateAllLog End [2025-03-03 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:05:05 [end_date_ymd] => 2025-03-03 16:05:05 [RateCDR] => 1 ) [2025-03-03 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:05:05' and `end` < '2025-03-03 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:05:05] Production.INFO: Account Balance End. [2025-03-03 16:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:05:05] Production.INFO: ==3344== Releasing lock... [2025-03-03 16:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:05:14] Production.ERROR: CronJobId end10 [2025-03-03 16:05:14] Production.INFO: ==3342== Releasing lock... [2025-03-03 16:05:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:05:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:05:15] Production.INFO: call_cost start [2025-03-03 16:05:15] Production.INFO: call_cost end [2025-03-03 16:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:05:16] Production.INFO: ==3338== Releasing lock... [2025-03-03 16:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:05:19] Production.INFO: count ==6665 [2025-03-03 16:05:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:05:05 - End Time 2025-03-03 16:05:05 [2025-03-03 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599572', 'tblTempUsageDetail_20' ) start [2025-03-03 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599572', 'tblTempUsageDetail_20' ) end [2025-03-03 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599572', 'tblTempVendorCDR_20' ) start [2025-03-03 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599572', 'tblTempVendorCDR_20' ) end [2025-03-03 16:05:22] Production.INFO: ProcessCDR(1,14599572,1,1,2) [2025-03-03 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599572', 'tblTempUsageDetail_20' ) start [2025-03-03 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599572', 'tblTempUsageDetail_20' ) end [2025-03-03 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:05:27] Production.INFO: ==3346== Releasing lock... [2025-03-03 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:05:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:06:02] Production.INFO: ==3414== Lock acquired, processing the job... [2025-03-03 21:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:06:02] Production.INFO: neon service started [2025-03-03 21:06:02] Production.INFO: neon service started [2025-03-03 21:06:02] Production.INFO: ==3414== Releasing lock... [2025-03-03 21:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:06:02] Production.INFO: ==3418== Lock acquired, processing the job... [2025-03-03 21:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:06:02] Production.INFO: ==3418== Releasing lock... [2025-03-03 21:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:06:02] Production.INFO: ==3416== Lock acquired, processing the job... [2025-03-03 16:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:06:03] Production.INFO: ==3416== Releasing lock... [2025-03-03 16:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:06:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:06:04] Production.INFO: ==3431== Lock acquired, processing the job... [2025-03-03 16:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:06:04] Production.INFO: ==3425== Lock acquired, processing the job... [2025-03-03 16:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:06:04] Production.INFO: count ==13 [2025-03-03 16:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:06:04] Production.INFO: ==3421== Lock acquired, processing the job... [2025-03-03 16:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:06:04] Production.INFO: ==3423== Lock acquired, processing the job... [2025-03-03 16:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:06:04] Production.INFO: count ==21 [2025-03-03 16:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599573') start [2025-03-03 16:06:04] Production.INFO: ==3427== Lock acquired, processing the job... [2025-03-03 16:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:06:04] Production.INFO: ==3429== Lock acquired, processing the job... [2025-03-03 16:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599573') end [2025-03-03 16:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:06:04] Production.INFO: 1 [2025-03-03 16:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:06:04] Production.INFO: ==3431== Releasing lock... [2025-03-03 16:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:06:04] Production.INFO: Account Balance Start. [2025-03-03 16:06:04] Production.INFO: CreateAllLog Start [2025-03-03 16:06:04] Production.INFO: 117 [2025-03-03 16:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-11 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: ==3423== Releasing lock... [2025-03-03 16:06:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:06:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:06:05] Production.INFO: Date 2025-02-12 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-13 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-14 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-15 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.ERROR: done [2025-03-03 16:06:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.ERROR: done [2025-03-03 16:06:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:06:05] Production.INFO: Total Charge 0 [2025-03-03 16:06:05] Production.INFO: CreateAllLog End [2025-03-03 16:06:05] Production.INFO: Account Balance End. [2025-03-03 16:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:06:05] Production.INFO: ==3427== Releasing lock... [2025-03-03 16:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:06:06 [end_date_ymd] => 2025-03-03 16:06:06 [RateCDR] => 1 ) [2025-03-03 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:06:06' and `end` < '2025-03-03 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:06:15] Production.ERROR: CronJobId end10 [2025-03-03 16:06:15] Production.INFO: ==3425== Releasing lock... [2025-03-03 16:06:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:06:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:06:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:06:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:06:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:06:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:06:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:06:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:06:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:06:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:06:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:06:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:06:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:06:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:06:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:06:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:06:17] Production.INFO: call_cost start [2025-03-03 16:06:17] Production.INFO: call_cost end [2025-03-03 16:06:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:06:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:06:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:06:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:06:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:06:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:06:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:06:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:06:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:06:18] Production.INFO: ==3421== Releasing lock... [2025-03-03 16:06:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:06:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:06:20] Production.INFO: count ==6657 [2025-03-03 16:06:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:06:06 - End Time 2025-03-03 16:06:06 [2025-03-03 16:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599577', 'tblTempUsageDetail_20' ) start [2025-03-03 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599577', 'tblTempUsageDetail_20' ) end [2025-03-03 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599577', 'tblTempVendorCDR_20' ) start [2025-03-03 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599577', 'tblTempVendorCDR_20' ) end [2025-03-03 16:06:23] Production.INFO: ProcessCDR(1,14599577,1,1,2) [2025-03-03 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599577', 'tblTempUsageDetail_20' ) start [2025-03-03 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599577', 'tblTempUsageDetail_20' ) end [2025-03-03 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:06:28] Production.INFO: ==3429== Releasing lock... [2025-03-03 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:06:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:07:01] Production.INFO: ==3500== Lock acquired, processing the job... [2025-03-03 21:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:07:01] Production.INFO: neon service started [2025-03-03 21:07:01] Production.INFO: neon service started [2025-03-03 21:07:01] Production.INFO: ==3500== Releasing lock... [2025-03-03 21:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:07:02] Production.INFO: ==3505== Lock acquired, processing the job... [2025-03-03 21:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:07:02] Production.INFO: ==3505== Releasing lock... [2025-03-03 21:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:07:02] Production.INFO: ==3503== Lock acquired, processing the job... [2025-03-03 16:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:07:02] Production.INFO: ==3503== Releasing lock... [2025-03-03 16:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:07:03] Production.INFO: ==3507== Lock acquired, processing the job... [2025-03-03 16:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:07:03] Production.INFO: ==3511== Lock acquired, processing the job... [2025-03-03 16:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:07:03] Production.INFO: ==3513== Lock acquired, processing the job... [2025-03-03 16:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:07:03] Production.INFO: ==3509== Lock acquired, processing the job... [2025-03-03 16:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:07:03] Production.INFO: Account Balance Start. [2025-03-03 16:07:03] Production.INFO: CreateAllLog Start [2025-03-03 16:07:03] Production.INFO: 117 [2025-03-03 16:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:03] Production.INFO: ==3515== Lock acquired, processing the job... [2025-03-03 16:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:03] Production.INFO: ==3517== Lock acquired, processing the job... [2025-03-03 16:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:07:04] Production.INFO: ==3509== Releasing lock... [2025-03-03 16:07:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:07:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: count ==13 [2025-03-03 16:07:04] Production.ERROR: done [2025-03-03 16:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:07:04] Production.INFO: count ==21 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599581') start [2025-03-03 16:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599581') end [2025-03-03 16:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:07:04] Production.INFO: 1 [2025-03-03 16:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:07:04] Production.ERROR: done [2025-03-03 16:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: ==3517== Releasing lock... [2025-03-03 16:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:07:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:07:05] Production.INFO: Total Charge 0 [2025-03-03 16:07:05] Production.INFO: CreateAllLog End [2025-03-03 16:07:05] Production.INFO: Account Balance End. [2025-03-03 16:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:07:05] Production.INFO: ==3513== Releasing lock... [2025-03-03 16:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:07:05 [end_date_ymd] => 2025-03-03 16:07:05 [RateCDR] => 1 ) [2025-03-03 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:07:05' and `end` < '2025-03-03 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:07:14] Production.ERROR: CronJobId end10 [2025-03-03 16:07:14] Production.INFO: ==3511== Releasing lock... [2025-03-03 16:07:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:07:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:07:15] Production.INFO: call_cost start [2025-03-03 16:07:15] Production.INFO: call_cost end [2025-03-03 16:07:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:07:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:07:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:07:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:07:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:07:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:07:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:07:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:07:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:07:16] Production.INFO: ==3507== Releasing lock... [2025-03-03 16:07:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:07:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:07:19] Production.INFO: count ==6643 [2025-03-03 16:07:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:07:05 - End Time 2025-03-03 16:07:05 [2025-03-03 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599582', 'tblTempUsageDetail_20' ) start [2025-03-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599582', 'tblTempUsageDetail_20' ) end [2025-03-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599582', 'tblTempVendorCDR_20' ) start [2025-03-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599582', 'tblTempVendorCDR_20' ) end [2025-03-03 16:07:22] Production.INFO: ProcessCDR(1,14599582,1,1,2) [2025-03-03 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599582', 'tblTempUsageDetail_20' ) start [2025-03-03 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599582', 'tblTempUsageDetail_20' ) end [2025-03-03 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:07:28] Production.INFO: ==3515== Releasing lock... [2025-03-03 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:07:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:08:02] Production.INFO: ==3585== Lock acquired, processing the job... [2025-03-03 21:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:08:02] Production.INFO: neon service started [2025-03-03 21:08:02] Production.INFO: neon service started [2025-03-03 21:08:02] Production.INFO: ==3585== Releasing lock... [2025-03-03 21:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:08:02] Production.INFO: ==3587== Lock acquired, processing the job... [2025-03-03 16:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:08:02] Production.INFO: ==3589== Lock acquired, processing the job... [2025-03-03 21:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:08:03] Production.INFO: ==3589== Releasing lock... [2025-03-03 21:08:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:08:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:08:03] Production.INFO: ==3587== Releasing lock... [2025-03-03 16:08:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:08:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:08:04] Production.INFO: ==3594== Lock acquired, processing the job... [2025-03-03 16:08:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:08:04] Production.INFO: ==3596== Lock acquired, processing the job... [2025-03-03 16:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:08:04] Production.INFO: ==3598== Lock acquired, processing the job... [2025-03-03 16:08:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:08:04] Production.INFO: ==3600== Lock acquired, processing the job... [2025-03-03 16:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:08:04] Production.INFO: ==3604== Lock acquired, processing the job... [2025-03-03 16:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:08:04] Production.INFO: ==3602== Lock acquired, processing the job... [2025-03-03 16:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:08:04] Production.INFO: Account Balance Start. [2025-03-03 16:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:08:04] Production.INFO: CreateAllLog Start [2025-03-03 16:08:04] Production.INFO: 117 [2025-03-03 16:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.INFO: ==3596== Releasing lock... [2025-03-03 16:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:08:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.INFO: count ==13 [2025-03-03 16:08:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:08:04] Production.INFO: count ==21 [2025-03-03 16:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599586') start [2025-03-03 16:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599586') end [2025-03-03 16:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:08:04] Production.INFO: 1 [2025-03-03 16:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.INFO: ==3604== Releasing lock... [2025-03-03 16:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.ERROR: done [2025-03-03 16:08:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.ERROR: done [2025-03-03 16:08:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:08:06] Production.INFO: Total Charge 0 [2025-03-03 16:08:06] Production.INFO: CreateAllLog End [2025-03-03 16:08:06] Production.INFO: Account Balance End. [2025-03-03 16:08:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:08:06] Production.INFO: ==3600== Releasing lock... [2025-03-03 16:08:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:08:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:08:06 [end_date_ymd] => 2025-03-03 16:08:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:08:06' and `end` < '2025-03-03 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-03-03 16:08:14] Production.ERROR: CronJobId end10 [2025-03-03 16:08:14] Production.INFO: ==3598== Releasing lock... [2025-03-03 16:08:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:08:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:08:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:08:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:08:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:08:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:08:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:08:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:08:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:08:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:08:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:08:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:08:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:08:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:08:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:08:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:08:15] Production.INFO: call_cost start [2025-03-03 16:08:15] Production.INFO: call_cost end [2025-03-03 16:08:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:08:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:08:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:08:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:08:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:08:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:08:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:08:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:08:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:08:16] Production.INFO: ==3594== Releasing lock... [2025-03-03 16:08:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:08:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:08:19] Production.INFO: count ==6657 [2025-03-03 16:08:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:08:06 - End Time 2025-03-03 16:08:06 [2025-03-03 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599587', 'tblTempUsageDetail_20' ) start [2025-03-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599587', 'tblTempUsageDetail_20' ) end [2025-03-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599587', 'tblTempVendorCDR_20' ) start [2025-03-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599587', 'tblTempVendorCDR_20' ) end [2025-03-03 16:08:23] Production.INFO: ProcessCDR(1,14599587,1,1,2) [2025-03-03 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599587', 'tblTempUsageDetail_20' ) start [2025-03-03 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599587', 'tblTempUsageDetail_20' ) end [2025-03-03 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:08:28] Production.INFO: ==3602== Releasing lock... [2025-03-03 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:08:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:09:01] Production.INFO: ==3670== Lock acquired, processing the job... [2025-03-03 21:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:09:01] Production.INFO: neon service started [2025-03-03 21:09:01] Production.INFO: neon service started [2025-03-03 21:09:01] Production.INFO: ==3670== Releasing lock... [2025-03-03 21:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:09:02] Production.INFO: ==3672== Lock acquired, processing the job... [2025-03-03 16:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:09:02] Production.INFO: ==3674== Lock acquired, processing the job... [2025-03-03 21:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:09:02] Production.INFO: ==3672== Releasing lock... [2025-03-03 16:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:09:02] Production.INFO: ==3674== Releasing lock... [2025-03-03 21:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:09:03] Production.INFO: ==3676== Lock acquired, processing the job... [2025-03-03 16:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:09:03] Production.INFO: ==3686== Lock acquired, processing the job... [2025-03-03 16:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:09:03] Production.INFO: ==3688== Lock acquired, processing the job... [2025-03-03 16:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:09:03] Production.INFO: ==3678== Lock acquired, processing the job... [2025-03-03 16:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:09:03] Production.INFO: ==3680== Lock acquired, processing the job... [2025-03-03 16:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:09:03] Production.INFO: ==3683== Lock acquired, processing the job... [2025-03-03 16:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:09:03] Production.INFO: Account Balance Start. [2025-03-03 16:09:03] Production.INFO: CreateAllLog Start [2025-03-03 16:09:03] Production.INFO: 117 [2025-03-03 16:09:03] Production.ERROR: done [2025-03-03 16:09:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:09:03] Production.INFO: count ==13 [2025-03-03 16:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:09:03] Production.INFO: count ==21 [2025-03-03 16:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599589') start [2025-03-03 16:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:03] Production.INFO: ==3678== Releasing lock... [2025-03-03 16:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:09:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:09:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:03] Production.ERROR: done [2025-03-03 16:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599589') end [2025-03-03 16:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:09:04] Production.INFO: 1 [2025-03-03 16:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:09:04] Production.INFO: ==3688== Releasing lock... [2025-03-03 16:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:09:04] Production.INFO: Total Charge 0 [2025-03-03 16:09:05] Production.INFO: CreateAllLog End [2025-03-03 16:09:05] Production.INFO: Account Balance End. [2025-03-03 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:09:05 [end_date_ymd] => 2025-03-03 16:09:05 [RateCDR] => 1 ) [2025-03-03 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:09:05' and `end` < '2025-03-03 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:09:05] Production.INFO: ==3683== Releasing lock... [2025-03-03 16:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:09:13] Production.ERROR: CronJobId end10 [2025-03-03 16:09:13] Production.INFO: ==3680== Releasing lock... [2025-03-03 16:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:09:14] Production.INFO: call_cost start [2025-03-03 16:09:14] Production.INFO: call_cost end [2025-03-03 16:09:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:09:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:09:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:09:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:09:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:09:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:09:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:09:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:09:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:09:15] Production.INFO: ==3676== Releasing lock... [2025-03-03 16:09:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:09:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:09:18] Production.INFO: count ==6658 [2025-03-03 16:09:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:09:05 - End Time 2025-03-03 16:09:05 [2025-03-03 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599592', 'tblTempUsageDetail_20' ) start [2025-03-03 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599592', 'tblTempUsageDetail_20' ) end [2025-03-03 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599592', 'tblTempVendorCDR_20' ) start [2025-03-03 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599592', 'tblTempVendorCDR_20' ) end [2025-03-03 16:09:22] Production.INFO: ProcessCDR(1,14599592,1,1,2) [2025-03-03 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599592', 'tblTempUsageDetail_20' ) start [2025-03-03 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599592', 'tblTempUsageDetail_20' ) end [2025-03-03 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:09:27] Production.INFO: ==3686== Releasing lock... [2025-03-03 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:09:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:10:02] Production.INFO: ==3754== Lock acquired, processing the job... [2025-03-03 21:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:10:02] Production.INFO: neon service started [2025-03-03 21:10:02] Production.INFO: neon service started [2025-03-03 21:10:02] Production.INFO: ==3754== Releasing lock... [2025-03-03 21:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:10:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:10:02] Production.INFO: ==3756== Lock acquired, processing the job... [2025-03-03 16:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:10:02] Production.INFO: ==3758== Lock acquired, processing the job... [2025-03-03 21:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:10:02] Production.INFO: ==3758== Releasing lock... [2025-03-03 21:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:10:03] Production.INFO: ==3756== Releasing lock... [2025-03-03 16:10:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:10:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:10:04] Production.INFO: ==3763== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:10:04] Production.INFO: ==3761== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 16:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 16:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:10:04] Production.ERROR: CronJob PID - 3763 [2025-03-03 16:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 16:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 16:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 16:10:00 [2025-03-03 16:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:10:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:10:04] Production.INFO: ==3765== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:10:04] Production.INFO: ==3767== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 16:10:04] Production.INFO: ==3761== Releasing lock... [2025-03-03 16:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 16:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:10:04] Production.INFO: ==3769== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:10:04] Production.INFO: ==3771== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:10:04] Production.INFO: ==3773== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 16:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:10:04] Production.INFO: Account Balance Start. [2025-03-03 16:10:04] Production.INFO: CreateAllLog Start [2025-03-03 16:10:04] Production.INFO: 117 [2025-03-03 16:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:10:04] Production.INFO: ==3775== Lock acquired, processing the job... [2025-03-03 16:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:04] Production.INFO: ==3765== Releasing lock... [2025-03-03 16:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:04] Production.ERROR: done [2025-03-03 16:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 16:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599597', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 16:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-13 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: count ==13 [2025-03-03 16:10:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:10:05] Production.INFO: count ==21 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599596') start [2025-03-03 16:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.ERROR: done [2025-03-03 16:10:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599596') end [2025-03-03 16:10:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:10:05] Production.INFO: 1 [2025-03-03 16:10:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.ERROR: done [2025-03-03 16:10:05] Production.INFO: ==3775== Releasing lock... [2025-03-03 16:10:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:10:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:10:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:10:05] Production.INFO: Total Charge 0 [2025-03-03 16:10:05] Production.INFO: CreateAllLog End [2025-03-03 16:10:06] Production.INFO: Account Balance End. [2025-03-03 16:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:10:06] Production.INFO: ==3769== Releasing lock... [2025-03-03 16:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:10:07 [end_date_ymd] => 2025-03-03 16:10:07 [RateCDR] => 1 ) [2025-03-03 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:10:07' and `end` < '2025-03-03 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599597', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 16:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 16:10:09] Production.INFO: ProcessCDR(1,14599597,1,1,2) [2025-03-03 16:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599597,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599597,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:10:09] Production.INFO: ==3773== Releasing lock... [2025-03-03 16:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 16:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 16:10:17] Production.ERROR: CronJobId end10 [2025-03-03 16:10:17] Production.INFO: ==3767== Releasing lock... [2025-03-03 16:10:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:10:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:10:17] Production.INFO: call_cost start [2025-03-03 16:10:17] Production.INFO: call_cost end [2025-03-03 16:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:10:18] Production.INFO: ==3763== Releasing lock... [2025-03-03 16:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:10:20] Production.INFO: count ==6655 [2025-03-03 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:10:07 - End Time 2025-03-03 16:10:07 [2025-03-03 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599598', 'tblTempUsageDetail_20' ) start [2025-03-03 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599598', 'tblTempUsageDetail_20' ) end [2025-03-03 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599598', 'tblTempVendorCDR_20' ) start [2025-03-03 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599598', 'tblTempVendorCDR_20' ) end [2025-03-03 16:10:24] Production.INFO: ProcessCDR(1,14599598,1,1,2) [2025-03-03 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599598', 'tblTempUsageDetail_20' ) start [2025-03-03 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599598', 'tblTempUsageDetail_20' ) end [2025-03-03 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:10:29] Production.INFO: ==3771== Releasing lock... [2025-03-03 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:10:29] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:11:01] Production.INFO: ==3842== Lock acquired, processing the job... [2025-03-03 21:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:11:01] Production.INFO: neon service started [2025-03-03 21:11:01] Production.INFO: neon service started [2025-03-03 21:11:01] Production.INFO: ==3842== Releasing lock... [2025-03-03 21:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:11:02] Production.INFO: ==3844== Lock acquired, processing the job... [2025-03-03 16:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:11:02] Production.INFO: ==3844== Releasing lock... [2025-03-03 16:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:11:02] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 21:11:02] Production.INFO: ==3846== Lock acquired, processing the job... [2025-03-03 21:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:11:02] Production.INFO: ==3846== Releasing lock... [2025-03-03 21:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:11:03] Production.INFO: ==3855== Lock acquired, processing the job... [2025-03-03 16:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:11:03] Production.INFO: ==3859== Lock acquired, processing the job... [2025-03-03 16:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:11:03] Production.INFO: Account Balance Start. [2025-03-03 16:11:03] Production.INFO: CreateAllLog Start [2025-03-03 16:11:03] Production.INFO: 117 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:11:03] Production.INFO: count ==13 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:11:03] Production.INFO: count ==21 [2025-03-03 16:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599600') start [2025-03-03 16:11:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: ==3849== Lock acquired, processing the job... [2025-03-03 16:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:11:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: ==3851== Lock acquired, processing the job... [2025-03-03 16:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:11:03] Production.INFO: ==3853== Lock acquired, processing the job... [2025-03-03 16:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599600') end [2025-03-03 16:11:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:11:03] Production.INFO: 1 [2025-03-03 16:11:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:11:03] Production.INFO: ==3859== Releasing lock... [2025-03-03 16:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:11:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:11:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:11:03] Production.INFO: ==3857== Lock acquired, processing the job... [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:11:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:11:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-18 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:03] Production.INFO: Date 2025-02-19 [2025-03-03 16:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.ERROR: done [2025-03-03 16:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: ==3851== Releasing lock... [2025-03-03 16:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.ERROR: done [2025-03-03 16:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:11:04] Production.INFO: Total Charge 0 [2025-03-03 16:11:04] Production.INFO: CreateAllLog End [2025-03-03 16:11:04] Production.INFO: Account Balance End. [2025-03-03 16:11:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:11:04] Production.INFO: ==3855== Releasing lock... [2025-03-03 16:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:11:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:11:05 [end_date_ymd] => 2025-03-03 16:11:05 [RateCDR] => 1 ) [2025-03-03 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:11:05' and `end` < '2025-03-03 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:11:13] Production.ERROR: CronJobId end10 [2025-03-03 16:11:13] Production.INFO: ==3853== Releasing lock... [2025-03-03 16:11:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:11:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:11:16] Production.INFO: call_cost start [2025-03-03 16:11:16] Production.INFO: call_cost end [2025-03-03 16:11:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:11:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:11:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:11:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:11:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:11:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:11:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:11:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:11:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:11:17] Production.INFO: ==3849== Releasing lock... [2025-03-03 16:11:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:11:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:11:19] Production.INFO: count ==6676 [2025-03-03 16:11:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:11:05 - End Time 2025-03-03 16:11:05 [2025-03-03 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599603', 'tblTempUsageDetail_20' ) start [2025-03-03 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599603', 'tblTempUsageDetail_20' ) end [2025-03-03 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599603', 'tblTempVendorCDR_20' ) start [2025-03-03 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599603', 'tblTempVendorCDR_20' ) end [2025-03-03 16:11:22] Production.INFO: ProcessCDR(1,14599603,1,1,2) [2025-03-03 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599603', 'tblTempUsageDetail_20' ) start [2025-03-03 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599603', 'tblTempUsageDetail_20' ) end [2025-03-03 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:11:28] Production.INFO: ==3857== Releasing lock... [2025-03-03 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:11:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:12:02] Production.INFO: ==3927== Lock acquired, processing the job... [2025-03-03 21:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:12:02] Production.INFO: neon service started [2025-03-03 21:12:02] Production.INFO: neon service started [2025-03-03 21:12:02] Production.INFO: ==3927== Releasing lock... [2025-03-03 21:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:12:02] Production.INFO: ==3929== Lock acquired, processing the job... [2025-03-03 16:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:12:02] Production.INFO: ==3929== Releasing lock... [2025-03-03 16:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:12:03] Production.INFO: ==3931== Lock acquired, processing the job... [2025-03-03 21:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:12:03] Production.INFO: ==3931== Releasing lock... [2025-03-03 21:12:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:12:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:12:03] Production.INFO: ==3933== Lock acquired, processing the job... [2025-03-03 16:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:12:03] Production.INFO: ==3938== Lock acquired, processing the job... [2025-03-03 16:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:12:03] Production.INFO: ==3942== Lock acquired, processing the job... [2025-03-03 16:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:12:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:12:03] Production.INFO: ==3944== Lock acquired, processing the job... [2025-03-03 16:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:12:03] Production.INFO: ==3936== Lock acquired, processing the job... [2025-03-03 16:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:12:03] Production.INFO: ==3940== Lock acquired, processing the job... [2025-03-03 16:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:12:04] Production.ERROR: done [2025-03-03 16:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:12:04] Production.INFO: count ==13 [2025-03-03 16:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:12:04] Production.INFO: count ==21 [2025-03-03 16:12:04] Production.INFO: Account Balance Start. [2025-03-03 16:12:04] Production.INFO: CreateAllLog Start [2025-03-03 16:12:04] Production.INFO: 117 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599605') start [2025-03-03 16:12:04] Production.ERROR: done [2025-03-03 16:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599605') end [2025-03-03 16:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:12:04] Production.INFO: 1 [2025-03-03 16:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:12:04] Production.INFO: ==3944== Releasing lock... [2025-03-03 16:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: ==3936== Releasing lock... [2025-03-03 16:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:12:04] Production.INFO: Total Charge 0 [2025-03-03 16:12:05] Production.INFO: CreateAllLog End [2025-03-03 16:12:05] Production.INFO: Account Balance End. [2025-03-03 16:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:12:05] Production.INFO: ==3940== Releasing lock... [2025-03-03 16:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:12:05 [end_date_ymd] => 2025-03-03 16:12:05 [RateCDR] => 1 ) [2025-03-03 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:12:05' and `end` < '2025-03-03 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:12:13] Production.ERROR: CronJobId end10 [2025-03-03 16:12:13] Production.INFO: ==3938== Releasing lock... [2025-03-03 16:12:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:12:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:12:15] Production.INFO: call_cost start [2025-03-03 16:12:15] Production.INFO: call_cost end [2025-03-03 16:12:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:12:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:12:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:12:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:12:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:12:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:12:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:12:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:12:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:12:16] Production.INFO: ==3933== Releasing lock... [2025-03-03 16:12:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:12:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:12:19] Production.INFO: count ==6674 [2025-03-03 16:12:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:12:05 - End Time 2025-03-03 16:12:05 [2025-03-03 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599608', 'tblTempUsageDetail_20' ) start [2025-03-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599608', 'tblTempUsageDetail_20' ) end [2025-03-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599608', 'tblTempVendorCDR_20' ) start [2025-03-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599608', 'tblTempVendorCDR_20' ) end [2025-03-03 16:12:22] Production.INFO: ProcessCDR(1,14599608,1,1,2) [2025-03-03 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599608', 'tblTempUsageDetail_20' ) start [2025-03-03 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599608', 'tblTempUsageDetail_20' ) end [2025-03-03 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:12:27] Production.INFO: ==3942== Releasing lock... [2025-03-03 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:12:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:13:01] Production.INFO: ==4018== Lock acquired, processing the job... [2025-03-03 21:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:13:01] Production.INFO: neon service started [2025-03-03 21:13:01] Production.INFO: neon service started [2025-03-03 21:13:01] Production.INFO: ==4018== Releasing lock... [2025-03-03 21:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:13:01] Production.INFO: ==4020== Lock acquired, processing the job... [2025-03-03 16:13:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:13:02] Production.INFO: ==4022== Lock acquired, processing the job... [2025-03-03 21:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:13:02] Production.INFO: ==4022== Releasing lock... [2025-03-03 21:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:13:02] Production.INFO: ==4020== Releasing lock... [2025-03-03 16:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:13:03] Production.INFO: ==4030== Lock acquired, processing the job... [2025-03-03 16:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:13:03] Production.INFO: ==4032== Lock acquired, processing the job... [2025-03-03 16:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:13:03] Production.INFO: ==4034== Lock acquired, processing the job... [2025-03-03 16:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:13:03] Production.INFO: Account Balance Start. [2025-03-03 16:13:03] Production.INFO: CreateAllLog Start [2025-03-03 16:13:03] Production.INFO: 117 [2025-03-03 16:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: ==4026== Lock acquired, processing the job... [2025-03-03 16:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:13:03] Production.INFO: ==4028== Lock acquired, processing the job... [2025-03-03 16:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:13:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: ==4036== Lock acquired, processing the job... [2025-03-03 16:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:13:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:13:03] Production.ERROR: done [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:13:03] Production.ERROR: done [2025-03-03 16:13:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-18 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-19 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:13:03] Production.INFO: count ==13 [2025-03-03 16:13:03] Production.INFO: Date 2025-02-20 [2025-03-03 16:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:13:03] Production.INFO: count ==21 [2025-03-03 16:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599611') start [2025-03-03 16:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: ==4028== Releasing lock... [2025-03-03 16:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599611') end [2025-03-03 16:13:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:13:04] Production.INFO: 1 [2025-03-03 16:13:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: ==4036== Releasing lock... [2025-03-03 16:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:13:04] Production.INFO: Total Charge 0 [2025-03-03 16:13:04] Production.INFO: CreateAllLog End [2025-03-03 16:13:04] Production.INFO: Account Balance End. [2025-03-03 16:13:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:13:04] Production.INFO: ==4032== Releasing lock... [2025-03-03 16:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:13:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:13:04 [end_date_ymd] => 2025-03-03 16:13:04 [RateCDR] => 1 ) [2025-03-03 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:13:04' and `end` < '2025-03-03 16:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:13:12] Production.ERROR: CronJobId end10 [2025-03-03 16:13:12] Production.INFO: ==4030== Releasing lock... [2025-03-03 16:13:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:13:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:13:14] Production.INFO: call_cost start [2025-03-03 16:13:14] Production.INFO: call_cost end [2025-03-03 16:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:13:15] Production.INFO: ==4026== Releasing lock... [2025-03-03 16:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:13:18] Production.INFO: count ==6660 [2025-03-03 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:13:04 - End Time 2025-03-03 16:13:04 [2025-03-03 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599613', 'tblTempUsageDetail_20' ) start [2025-03-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599613', 'tblTempUsageDetail_20' ) end [2025-03-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599613', 'tblTempVendorCDR_20' ) start [2025-03-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599613', 'tblTempVendorCDR_20' ) end [2025-03-03 16:13:22] Production.INFO: ProcessCDR(1,14599613,1,1,2) [2025-03-03 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599613', 'tblTempUsageDetail_20' ) start [2025-03-03 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599613', 'tblTempUsageDetail_20' ) end [2025-03-03 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:13:27] Production.INFO: ==4034== Releasing lock... [2025-03-03 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:13:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:14:01] Production.INFO: ==4102== Lock acquired, processing the job... [2025-03-03 21:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:14:01] Production.INFO: neon service started [2025-03-03 21:14:02] Production.INFO: neon service started [2025-03-03 21:14:02] Production.INFO: ==4102== Releasing lock... [2025-03-03 21:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:14:02] Production.INFO: ==4104== Lock acquired, processing the job... [2025-03-03 16:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:14:02] Production.INFO: ==4106== Lock acquired, processing the job... [2025-03-03 21:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:14:02] Production.INFO: ==4106== Releasing lock... [2025-03-03 21:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:14:02] Production.INFO: ==4104== Releasing lock... [2025-03-03 16:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:14:03] Production.INFO: ==4109== Lock acquired, processing the job... [2025-03-03 16:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:14:03] Production.INFO: ==4111== Lock acquired, processing the job... [2025-03-03 16:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:14:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:14:03] Production.INFO: ==4113== Lock acquired, processing the job... [2025-03-03 16:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:14:03] Production.INFO: ==4111== Releasing lock... [2025-03-03 16:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:14:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:14:04] Production.INFO: ==4115== Lock acquired, processing the job... [2025-03-03 16:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:14:04] Production.INFO: ==4117== Lock acquired, processing the job... [2025-03-03 16:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:14:04] Production.INFO: ==4119== Lock acquired, processing the job... [2025-03-03 16:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:14:04] Production.INFO: Account Balance Start. [2025-03-03 16:14:04] Production.INFO: CreateAllLog Start [2025-03-03 16:14:04] Production.INFO: 117 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:14:04] Production.INFO: count ==13 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:14:04] Production.INFO: count ==21 [2025-03-03 16:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599617') start [2025-03-03 16:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599617') end [2025-03-03 16:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:14:04] Production.INFO: 1 [2025-03-03 16:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:14:04] Production.ERROR: done [2025-03-03 16:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: ==4119== Releasing lock... [2025-03-03 16:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.ERROR: done [2025-03-03 16:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:14:05] Production.INFO: Total Charge 0 [2025-03-03 16:14:05] Production.INFO: CreateAllLog End [2025-03-03 16:14:05] Production.INFO: Account Balance End. [2025-03-03 16:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:14:05] Production.INFO: ==4115== Releasing lock... [2025-03-03 16:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:14:06 [end_date_ymd] => 2025-03-03 16:14:06 [RateCDR] => 1 ) [2025-03-03 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:14:06' and `end` < '2025-03-03 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:14:15] Production.ERROR: CronJobId end10 [2025-03-03 16:14:15] Production.INFO: ==4113== Releasing lock... [2025-03-03 16:14:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:14:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:14:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:14:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:14:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:14:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:14:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:14:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:14:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:14:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:14:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:14:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:14:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:14:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:14:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:14:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:14:16] Production.INFO: call_cost start [2025-03-03 16:14:16] Production.INFO: call_cost end [2025-03-03 16:14:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:14:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:14:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:14:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:14:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:14:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:14:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:14:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:14:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:14:17] Production.INFO: ==4109== Releasing lock... [2025-03-03 16:14:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:14:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:14:19] Production.INFO: count ==6681 [2025-03-03 16:14:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:14:06 - End Time 2025-03-03 16:14:06 [2025-03-03 16:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599618', 'tblTempUsageDetail_20' ) start [2025-03-03 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599618', 'tblTempUsageDetail_20' ) end [2025-03-03 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599618', 'tblTempVendorCDR_20' ) start [2025-03-03 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599618', 'tblTempVendorCDR_20' ) end [2025-03-03 16:14:23] Production.INFO: ProcessCDR(1,14599618,1,1,2) [2025-03-03 16:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599618', 'tblTempUsageDetail_20' ) start [2025-03-03 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599618', 'tblTempUsageDetail_20' ) end [2025-03-03 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:14:28] Production.INFO: ==4117== Releasing lock... [2025-03-03 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:14:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:15:01] Production.INFO: ==4188== Lock acquired, processing the job... [2025-03-03 21:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:15:01] Production.INFO: neon service started [2025-03-03 21:15:01] Production.INFO: neon service started [2025-03-03 21:15:01] Production.INFO: ==4188== Releasing lock... [2025-03-03 21:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:15:01] Production.INFO: ==4192== Lock acquired, processing the job... [2025-03-03 21:15:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:15:01] Production.INFO: ==4192== Releasing lock... [2025-03-03 21:15:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:15:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:15:01] Production.INFO: ==4190== Lock acquired, processing the job... [2025-03-03 16:15:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:15:02] Production.INFO: ==4190== Releasing lock... [2025-03-03 16:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:15:03] Production.INFO: ==4194== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:15:03] Production.INFO: ==4196== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:15:03] Production.INFO: ==4198== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:15:03] Production.INFO: ==4200== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:15:03] Production.INFO: ==4202== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:15:03] Production.INFO: ==4205== Lock acquired, processing the job... [2025-03-03 16:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:15:03] Production.INFO: Account Balance Start. [2025-03-03 16:15:03] Production.INFO: CreateAllLog Start [2025-03-03 16:15:03] Production.INFO: 117 [2025-03-03 16:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:15:03] Production.INFO: count ==13 [2025-03-03 16:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:03] Production.INFO: count ==21 [2025-03-03 16:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599622') start [2025-03-03 16:15:03] Production.ERROR: done [2025-03-03 16:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599622') end [2025-03-03 16:15:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:15:03] Production.INFO: 1 [2025-03-03 16:15:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:03] Production.INFO: ==4196== Releasing lock... [2025-03-03 16:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:15:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:15:03] Production.INFO: ==4205== Releasing lock... [2025-03-03 16:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:15:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:15:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.ERROR: done [2025-03-03 16:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:15:05] Production.INFO: Total Charge 0 [2025-03-03 16:15:05] Production.INFO: CreateAllLog End [2025-03-03 16:15:05] Production.INFO: Account Balance End. [2025-03-03 16:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:15:05] Production.INFO: ==4200== Releasing lock... [2025-03-03 16:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:15:05 [end_date_ymd] => 2025-03-03 16:15:05 [RateCDR] => 1 ) [2025-03-03 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:15:05' and `end` < '2025-03-03 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:15:13] Production.ERROR: CronJobId end10 [2025-03-03 16:15:13] Production.INFO: ==4198== Releasing lock... [2025-03-03 16:15:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:15:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:15:15] Production.INFO: call_cost start [2025-03-03 16:15:15] Production.INFO: call_cost end [2025-03-03 16:15:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:15:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:15:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:15:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:15:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:15:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:15:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:15:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:15:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:15:16] Production.INFO: ==4194== Releasing lock... [2025-03-03 16:15:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:15:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:15:18] Production.INFO: count ==6678 [2025-03-03 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:15:05 - End Time 2025-03-03 16:15:05 [2025-03-03 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599623', 'tblTempUsageDetail_20' ) start [2025-03-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599623', 'tblTempUsageDetail_20' ) end [2025-03-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599623', 'tblTempVendorCDR_20' ) start [2025-03-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599623', 'tblTempVendorCDR_20' ) end [2025-03-03 16:15:22] Production.INFO: ProcessCDR(1,14599623,1,1,2) [2025-03-03 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599623', 'tblTempUsageDetail_20' ) start [2025-03-03 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599623', 'tblTempUsageDetail_20' ) end [2025-03-03 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:15:27] Production.INFO: ==4202== Releasing lock... [2025-03-03 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:15:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:16:01] Production.INFO: ==4273== Lock acquired, processing the job... [2025-03-03 21:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:16:01] Production.INFO: neon service started [2025-03-03 21:16:01] Production.INFO: neon service started [2025-03-03 21:16:01] Production.INFO: ==4273== Releasing lock... [2025-03-03 21:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:16:02] Production.INFO: ==4277== Lock acquired, processing the job... [2025-03-03 21:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:16:02] Production.INFO: ==4277== Releasing lock... [2025-03-03 21:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:16:02] Production.INFO: ==4275== Lock acquired, processing the job... [2025-03-03 16:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:16:02] Production.INFO: ==4275== Releasing lock... [2025-03-03 16:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:16:03] Production.INFO: ==4280== Lock acquired, processing the job... [2025-03-03 16:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:16:03] Production.INFO: ==4282== Lock acquired, processing the job... [2025-03-03 16:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:16:03] Production.INFO: ==4282== Releasing lock... [2025-03-03 16:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:16:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:16:03] Production.INFO: ==4288== Lock acquired, processing the job... [2025-03-03 16:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:16:03] Production.INFO: ==4284== Lock acquired, processing the job... [2025-03-03 16:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:16:04] Production.INFO: ==4286== Lock acquired, processing the job... [2025-03-03 16:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:16:04] Production.INFO: ==4290== Lock acquired, processing the job... [2025-03-03 16:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:16:04] Production.INFO: Account Balance Start. [2025-03-03 16:16:04] Production.INFO: CreateAllLog Start [2025-03-03 16:16:04] Production.INFO: 117 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: count ==13 [2025-03-03 16:16:04] Production.ERROR: done [2025-03-03 16:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:16:04] Production.INFO: count ==21 [2025-03-03 16:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599627') start [2025-03-03 16:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599627') end [2025-03-03 16:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:16:04] Production.INFO: 1 [2025-03-03 16:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:16:04] Production.ERROR: done [2025-03-03 16:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: ==4290== Releasing lock... [2025-03-03 16:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:16:05] Production.INFO: Total Charge 0 [2025-03-03 16:16:05] Production.INFO: CreateAllLog End [2025-03-03 16:16:05] Production.INFO: Account Balance End. [2025-03-03 16:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:16:05] Production.INFO: ==4286== Releasing lock... [2025-03-03 16:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:16:05 [end_date_ymd] => 2025-03-03 16:16:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:16:05' and `end` < '2025-03-03 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-03-03 16:16:13] Production.ERROR: CronJobId end10 [2025-03-03 16:16:13] Production.INFO: ==4284== Releasing lock... [2025-03-03 16:16:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:16:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:16:14] Production.INFO: call_cost start [2025-03-03 16:16:15] Production.INFO: call_cost end [2025-03-03 16:16:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:16:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:16:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:16:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:16:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:16:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:16:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:16:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:16:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:16:15] Production.INFO: ==4280== Releasing lock... [2025-03-03 16:16:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:16:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:16:19] Production.INFO: count ==6677 [2025-03-03 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:16:05 - End Time 2025-03-03 16:16:05 [2025-03-03 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599628', 'tblTempUsageDetail_20' ) start [2025-03-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599628', 'tblTempUsageDetail_20' ) end [2025-03-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599628', 'tblTempVendorCDR_20' ) start [2025-03-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599628', 'tblTempVendorCDR_20' ) end [2025-03-03 16:16:22] Production.INFO: ProcessCDR(1,14599628,1,1,2) [2025-03-03 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599628', 'tblTempUsageDetail_20' ) start [2025-03-03 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599628', 'tblTempUsageDetail_20' ) end [2025-03-03 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:16:27] Production.INFO: ==4288== Releasing lock... [2025-03-03 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:16:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:17:02] Production.INFO: ==4358== Lock acquired, processing the job... [2025-03-03 21:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:17:02] Production.INFO: neon service started [2025-03-03 21:17:02] Production.INFO: neon service started [2025-03-03 21:17:02] Production.INFO: ==4358== Releasing lock... [2025-03-03 21:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:17:02] Production.INFO: ==4362== Lock acquired, processing the job... [2025-03-03 21:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:17:02] Production.INFO: ==4362== Releasing lock... [2025-03-03 21:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:17:02] Production.INFO: ==4360== Lock acquired, processing the job... [2025-03-03 16:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:17:03] Production.INFO: ==4360== Releasing lock... [2025-03-03 16:17:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:17:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:17:03] Production.INFO: ==4367== Lock acquired, processing the job... [2025-03-03 16:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:17:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:17:03] Production.INFO: ==4369== Lock acquired, processing the job... [2025-03-03 16:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:17:03] Production.INFO: ==4375== Lock acquired, processing the job... [2025-03-03 16:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:17:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:17:04] Production.INFO: ==4371== Lock acquired, processing the job... [2025-03-03 16:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:17:04] Production.INFO: ==4369== Releasing lock... [2025-03-03 16:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:17:04] Production.ERROR: done [2025-03-03 16:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:17:04] Production.INFO: ==4377== Lock acquired, processing the job... [2025-03-03 16:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:17:04] Production.INFO: ==4373== Lock acquired, processing the job... [2025-03-03 16:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:17:04] Production.INFO: Account Balance Start. [2025-03-03 16:17:04] Production.INFO: CreateAllLog Start [2025-03-03 16:17:04] Production.INFO: 117 [2025-03-03 16:17:04] Production.ERROR: done [2025-03-03 16:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.INFO: count ==13 [2025-03-03 16:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:17:04] Production.INFO: count ==21 [2025-03-03 16:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599632') start [2025-03-03 16:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599632') end [2025-03-03 16:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:17:04] Production.INFO: 1 [2025-03-03 16:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:04] Production.INFO: ==4377== Releasing lock... [2025-03-03 16:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:17:05 [end_date_ymd] => 2025-03-03 16:17:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:17:05' and `end` < '2025-03-03 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-03-03 16:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:17:05] Production.INFO: Total Charge 0 [2025-03-03 16:17:05] Production.INFO: CreateAllLog End [2025-03-03 16:17:06] Production.INFO: Account Balance End. [2025-03-03 16:17:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:17:06] Production.INFO: ==4373== Releasing lock... [2025-03-03 16:17:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:17:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:17:14] Production.ERROR: CronJobId end10 [2025-03-03 16:17:14] Production.INFO: ==4371== Releasing lock... [2025-03-03 16:17:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:17:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:17:15] Production.INFO: call_cost start [2025-03-03 16:17:15] Production.INFO: call_cost end [2025-03-03 16:17:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:17:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:17:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:17:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:17:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:17:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:17:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:17:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:17:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:17:16] Production.INFO: ==4367== Releasing lock... [2025-03-03 16:17:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:17:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:17:19] Production.INFO: count ==6691 [2025-03-03 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:17:05 - End Time 2025-03-03 16:17:05 [2025-03-03 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599633', 'tblTempUsageDetail_20' ) start [2025-03-03 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599633', 'tblTempUsageDetail_20' ) end [2025-03-03 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599633', 'tblTempVendorCDR_20' ) start [2025-03-03 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599633', 'tblTempVendorCDR_20' ) end [2025-03-03 16:17:23] Production.INFO: ProcessCDR(1,14599633,1,1,2) [2025-03-03 16:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599633', 'tblTempUsageDetail_20' ) start [2025-03-03 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599633', 'tblTempUsageDetail_20' ) end [2025-03-03 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:17:28] Production.INFO: ==4375== Releasing lock... [2025-03-03 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:17:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:18:01] Production.INFO: ==4454== Lock acquired, processing the job... [2025-03-03 21:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:18:01] Production.INFO: neon service started [2025-03-03 21:18:01] Production.INFO: neon service started [2025-03-03 21:18:01] Production.INFO: ==4454== Releasing lock... [2025-03-03 21:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:18:02] Production.INFO: ==4456== Lock acquired, processing the job... [2025-03-03 16:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:18:02] Production.INFO: ==4456== Releasing lock... [2025-03-03 16:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:18:02] Production.INFO: ==4458== Lock acquired, processing the job... [2025-03-03 21:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:18:02] Production.INFO: ==4458== Releasing lock... [2025-03-03 21:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:18:03] Production.INFO: ==4467== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:18:03] Production.INFO: ==4471== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:18:03] Production.INFO: ==4461== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:18:03] Production.INFO: Account Balance Start. [2025-03-03 16:18:03] Production.INFO: CreateAllLog Start [2025-03-03 16:18:03] Production.INFO: 117 [2025-03-03 16:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:18:03] Production.INFO: count ==13 [2025-03-03 16:18:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:18:03] Production.INFO: count ==21 [2025-03-03 16:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599635') start [2025-03-03 16:18:03] Production.INFO: ==4463== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:18:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599635') end [2025-03-03 16:18:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:18:03] Production.INFO: 1 [2025-03-03 16:18:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:18:03] Production.INFO: ==4465== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:18:03] Production.INFO: ==4471== Releasing lock... [2025-03-03 16:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:18:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:18:03] Production.INFO: ==4469== Lock acquired, processing the job... [2025-03-03 16:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:18:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:18:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: ==4463== Releasing lock... [2025-03-03 16:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:18:04] Production.ERROR: done [2025-03-03 16:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.ERROR: done [2025-03-03 16:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:18:04] Production.INFO: Total Charge 0 [2025-03-03 16:18:04] Production.INFO: CreateAllLog End [2025-03-03 16:18:05] Production.INFO: Account Balance End. [2025-03-03 16:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:18:05] Production.INFO: ==4467== Releasing lock... [2025-03-03 16:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:18:05 [end_date_ymd] => 2025-03-03 16:18:05 [RateCDR] => 1 ) [2025-03-03 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:18:05' and `end` < '2025-03-03 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:18:14] Production.ERROR: CronJobId end10 [2025-03-03 16:18:14] Production.INFO: ==4465== Releasing lock... [2025-03-03 16:18:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:18:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:18:15] Production.INFO: call_cost start [2025-03-03 16:18:15] Production.INFO: call_cost end [2025-03-03 16:18:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:18:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:18:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:18:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:18:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:18:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:18:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:18:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:18:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:18:16] Production.INFO: ==4461== Releasing lock... [2025-03-03 16:18:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:18:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:18:18] Production.INFO: count ==6680 [2025-03-03 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:18:05 - End Time 2025-03-03 16:18:05 [2025-03-03 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599638', 'tblTempUsageDetail_20' ) start [2025-03-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599638', 'tblTempUsageDetail_20' ) end [2025-03-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599638', 'tblTempVendorCDR_20' ) start [2025-03-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599638', 'tblTempVendorCDR_20' ) end [2025-03-03 16:18:22] Production.INFO: ProcessCDR(1,14599638,1,1,2) [2025-03-03 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599638', 'tblTempUsageDetail_20' ) start [2025-03-03 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599638', 'tblTempUsageDetail_20' ) end [2025-03-03 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:18:27] Production.INFO: ==4469== Releasing lock... [2025-03-03 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:18:27] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:19:02] Production.INFO: ==4587== Lock acquired, processing the job... [2025-03-03 21:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:19:02] Production.INFO: neon service started [2025-03-03 21:19:02] Production.INFO: neon service started [2025-03-03 21:19:02] Production.INFO: ==4587== Releasing lock... [2025-03-03 21:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:19:02] Production.INFO: ==4589== Lock acquired, processing the job... [2025-03-03 16:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:19:02] Production.INFO: ==4589== Releasing lock... [2025-03-03 16:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:19:02] Production.INFO: ==4591== Lock acquired, processing the job... [2025-03-03 21:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:19:03] Production.INFO: ==4591== Releasing lock... [2025-03-03 21:19:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:19:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:19:03] Production.INFO: ==4597== Lock acquired, processing the job... [2025-03-03 16:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:19:04] Production.INFO: ==4593== Lock acquired, processing the job... [2025-03-03 16:19:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:19:04] Production.INFO: ==4595== Lock acquired, processing the job... [2025-03-03 16:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:19:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:19:04] Production.INFO: ==4599== Lock acquired, processing the job... [2025-03-03 16:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:19:04] Production.INFO: ==4603== Lock acquired, processing the job... [2025-03-03 16:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:19:04] Production.INFO: ==4601== Lock acquired, processing the job... [2025-03-03 16:19:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:19:04] Production.INFO: Account Balance Start. [2025-03-03 16:19:04] Production.INFO: CreateAllLog Start [2025-03-03 16:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:19:04] Production.INFO: 117 [2025-03-03 16:19:04] Production.INFO: count ==13 [2025-03-03 16:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:19:04] Production.INFO: count ==21 [2025-03-03 16:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599641') start [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.INFO: ==4595== Releasing lock... [2025-03-03 16:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599641') end [2025-03-03 16:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:19:04] Production.INFO: 1 [2025-03-03 16:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.INFO: ==4603== Releasing lock... [2025-03-03 16:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:19:04] Production.ERROR: done [2025-03-03 16:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:19:04] Production.ERROR: done [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:19:05] Production.INFO: Total Charge 0 [2025-03-03 16:19:05] Production.INFO: CreateAllLog End [2025-03-03 16:19:05] Production.INFO: Account Balance End. [2025-03-03 16:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:19:05] Production.INFO: ==4599== Releasing lock... [2025-03-03 16:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:19:06 [end_date_ymd] => 2025-03-03 16:19:06 [RateCDR] => 1 ) [2025-03-03 16:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:19:06' and `end` < '2025-03-03 16:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:19:13] Production.ERROR: CronJobId end10 [2025-03-03 16:19:13] Production.INFO: ==4597== Releasing lock... [2025-03-03 16:19:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:19:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:19:16] Production.INFO: call_cost start [2025-03-03 16:19:16] Production.INFO: call_cost end [2025-03-03 16:19:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:19:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:19:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:19:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:19:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:19:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:19:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:19:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:19:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:19:17] Production.INFO: ==4593== Releasing lock... [2025-03-03 16:19:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:19:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:19:20] Production.INFO: count ==6664 [2025-03-03 16:19:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:19:06 - End Time 2025-03-03 16:19:06 [2025-03-03 16:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599643', 'tblTempUsageDetail_20' ) start [2025-03-03 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599643', 'tblTempUsageDetail_20' ) end [2025-03-03 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599643', 'tblTempVendorCDR_20' ) start [2025-03-03 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599643', 'tblTempVendorCDR_20' ) end [2025-03-03 16:19:23] Production.INFO: ProcessCDR(1,14599643,1,1,2) [2025-03-03 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599643', 'tblTempUsageDetail_20' ) start [2025-03-03 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599643', 'tblTempUsageDetail_20' ) end [2025-03-03 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:19:28] Production.INFO: ==4601== Releasing lock... [2025-03-03 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:19:28] Production.INFO: 78 MB #Memory Used# [2025-03-03 21:20:01] Production.INFO: ==4673== Lock acquired, processing the job... [2025-03-03 21:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:20:01] Production.INFO: neon service started [2025-03-03 21:20:01] Production.INFO: neon service started [2025-03-03 21:20:01] Production.INFO: ==4673== Releasing lock... [2025-03-03 21:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:20:02] Production.INFO: ==4675== Lock acquired, processing the job... [2025-03-03 16:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:20:02] Production.INFO: ==4677== Lock acquired, processing the job... [2025-03-03 21:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:20:02] Production.INFO: ==4677== Releasing lock... [2025-03-03 21:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:20:02] Production.INFO: ==4675== Releasing lock... [2025-03-03 16:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:20:03] Production.INFO: ==4680== Lock acquired, processing the job... [2025-03-03 16:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 16:20:03] Production.INFO: ==4682== Lock acquired, processing the job... [2025-03-03 16:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:20:03] Production.INFO: ==4684== Lock acquired, processing the job... [2025-03-03 16:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 16:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 16:20:03] Production.INFO: ==4680== Releasing lock... [2025-03-03 16:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 16:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:20:03] Production.INFO: ==4688== Lock acquired, processing the job... [2025-03-03 16:20:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:20:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:20:03] Production.INFO: ==4686== Lock acquired, processing the job... [2025-03-03 16:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:20:03] Production.INFO: Account Balance Start. [2025-03-03 16:20:03] Production.INFO: CreateAllLog Start [2025-03-03 16:20:03] Production.INFO: 117 [2025-03-03 16:20:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:20:03] Production.INFO: ==4690== Lock acquired, processing the job... [2025-03-03 16:20:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:20:03] Production.INFO: ==4684== Releasing lock... [2025-03-03 16:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:20:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:20:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:20:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:20:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:20:04] Production.INFO: ==4692== Lock acquired, processing the job... [2025-03-03 16:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 16:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: ==4694== Lock acquired, processing the job... [2025-03-03 16:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.ERROR: done [2025-03-03 16:20:04] Production.ERROR: done [2025-03-03 16:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:20:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 16:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599648', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 16:20:04] Production.INFO: count ==13 [2025-03-03 16:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:20:04] Production.INFO: count ==21 [2025-03-03 16:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599647') start [2025-03-03 16:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.ERROR: done [2025-03-03 16:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599647') end [2025-03-03 16:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:20:04] Production.INFO: 1 [2025-03-03 16:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:20:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: ==4694== Releasing lock... [2025-03-03 16:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:20:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:20:05] Production.INFO: Total Charge 0 [2025-03-03 16:20:05] Production.INFO: CreateAllLog End [2025-03-03 16:20:05] Production.INFO: Account Balance End. [2025-03-03 16:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:20:05] Production.INFO: ==4688== Releasing lock... [2025-03-03 16:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:20:06 [end_date_ymd] => 2025-03-03 16:20:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:20:06' and `end` < '2025-03-03 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-03-03 16:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599648', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 16:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 16:20:09] Production.INFO: ProcessCDR(1,14599648,1,1,2) [2025-03-03 16:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599648,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599648,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:20:09] Production.INFO: ==4692== Releasing lock... [2025-03-03 16:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 16:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 16:20:14] Production.ERROR: CronJobId end10 [2025-03-03 16:20:14] Production.INFO: ==4686== Releasing lock... [2025-03-03 16:20:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:20:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:20:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:20:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:20:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:20:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:20:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:20:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:20:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:20:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:20:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:20:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:20:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:20:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:20:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:20:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:20:16] Production.INFO: call_cost start [2025-03-03 16:20:16] Production.INFO: call_cost end [2025-03-03 16:20:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:20:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:20:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:20:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:20:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:20:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:20:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:20:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:20:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:20:17] Production.INFO: ==4682== Releasing lock... [2025-03-03 16:20:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:20:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:20:19] Production.INFO: count ==6646 [2025-03-03 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:20:06 - End Time 2025-03-03 16:20:06 [2025-03-03 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599649', 'tblTempUsageDetail_20' ) start [2025-03-03 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599649', 'tblTempUsageDetail_20' ) end [2025-03-03 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599649', 'tblTempVendorCDR_20' ) start [2025-03-03 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599649', 'tblTempVendorCDR_20' ) end [2025-03-03 16:20:23] Production.INFO: ProcessCDR(1,14599649,1,1,2) [2025-03-03 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599649', 'tblTempUsageDetail_20' ) start [2025-03-03 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599649', 'tblTempUsageDetail_20' ) end [2025-03-03 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:20:27] Production.INFO: ==4690== Releasing lock... [2025-03-03 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:20:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-03 21:21:02] Production.INFO: ==4760== Lock acquired, processing the job... [2025-03-03 21:21:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:21:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:21:02] Production.INFO: neon service started [2025-03-03 21:21:02] Production.INFO: neon service started [2025-03-03 21:21:02] Production.INFO: ==4760== Releasing lock... [2025-03-03 21:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:21:02] Production.INFO: ==4762== Lock acquired, processing the job... [2025-03-03 16:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:21:02] Production.INFO: ==4764== Lock acquired, processing the job... [2025-03-03 21:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:21:02] Production.INFO: ==4764== Releasing lock... [2025-03-03 21:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:21:03] Production.INFO: ==4762== Releasing lock... [2025-03-03 16:21:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:21:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:21:03] Production.INFO: ==4767== Lock acquired, processing the job... [2025-03-03 16:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:21:04] Production.INFO: ==4769== Lock acquired, processing the job... [2025-03-03 16:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:21:04] Production.INFO: ==4771== Lock acquired, processing the job... [2025-03-03 16:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:21:04] Production.INFO: ==4773== Lock acquired, processing the job... [2025-03-03 16:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:21:04] Production.INFO: ==4777== Lock acquired, processing the job... [2025-03-03 16:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:21:04] Production.INFO: Account Balance Start. [2025-03-03 16:21:04] Production.INFO: CreateAllLog Start [2025-03-03 16:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:21:04] Production.INFO: 117 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:21:04] Production.INFO: ==4775== Lock acquired, processing the job... [2025-03-03 16:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: ==4769== Releasing lock... [2025-03-03 16:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:21:04] Production.INFO: count ==13 [2025-03-03 16:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:21:04] Production.INFO: count ==21 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599653') start [2025-03-03 16:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599653') end [2025-03-03 16:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:21:04] Production.INFO: 1 [2025-03-03 16:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: ==4777== Releasing lock... [2025-03-03 16:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:21:04] Production.ERROR: done [2025-03-03 16:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:21:05] Production.ERROR: done [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:21:05] Production.INFO: Total Charge 0 [2025-03-03 16:21:05] Production.INFO: CreateAllLog End [2025-03-03 16:21:05] Production.INFO: Account Balance End. [2025-03-03 16:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:21:05] Production.INFO: ==4773== Releasing lock... [2025-03-03 16:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:21:06 [end_date_ymd] => 2025-03-03 16:21:06 [RateCDR] => 1 ) [2025-03-03 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:21:06' and `end` < '2025-03-03 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:21:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:21:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:21:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:21:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:21:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:21:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:21:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:21:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:21:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:21:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:21:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:21:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:21:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:21:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:21:15] Production.ERROR: CronJobId end10 [2025-03-03 16:21:15] Production.INFO: ==4771== Releasing lock... [2025-03-03 16:21:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:21:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:21:15] Production.INFO: call_cost start [2025-03-03 16:21:15] Production.INFO: call_cost end [2025-03-03 16:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:21:16] Production.INFO: ==4767== Releasing lock... [2025-03-03 16:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:21:19] Production.INFO: count ==6607 [2025-03-03 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:21:06 - End Time 2025-03-03 16:21:06 [2025-03-03 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599654', 'tblTempUsageDetail_20' ) start [2025-03-03 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599654', 'tblTempUsageDetail_20' ) end [2025-03-03 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599654', 'tblTempVendorCDR_20' ) start [2025-03-03 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599654', 'tblTempVendorCDR_20' ) end [2025-03-03 16:21:23] Production.INFO: ProcessCDR(1,14599654,1,1,2) [2025-03-03 16:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599654', 'tblTempUsageDetail_20' ) start [2025-03-03 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599654', 'tblTempUsageDetail_20' ) end [2025-03-03 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:21:27] Production.INFO: ==4775== Releasing lock... [2025-03-03 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:21:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 21:22:01] Production.INFO: ==4841== Lock acquired, processing the job... [2025-03-03 21:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:22:01] Production.INFO: neon service started [2025-03-03 21:22:01] Production.INFO: neon service started [2025-03-03 21:22:01] Production.INFO: ==4841== Releasing lock... [2025-03-03 21:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:22:02] Production.INFO: ==4845== Lock acquired, processing the job... [2025-03-03 16:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:22:02] Production.INFO: ==4847== Lock acquired, processing the job... [2025-03-03 21:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:22:02] Production.INFO: ==4845== Releasing lock... [2025-03-03 16:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:22:02] Production.INFO: ==4847== Releasing lock... [2025-03-03 21:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:22:03] Production.INFO: ==4850== Lock acquired, processing the job... [2025-03-03 16:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:22:03] Production.INFO: ==4853== Lock acquired, processing the job... [2025-03-03 16:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:22:03] Production.INFO: ==4855== Lock acquired, processing the job... [2025-03-03 16:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:22:03] Production.INFO: ==4853== Releasing lock... [2025-03-03 16:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:22:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:22:03] Production.INFO: ==4857== Lock acquired, processing the job... [2025-03-03 16:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:22:03] Production.INFO: ==4859== Lock acquired, processing the job... [2025-03-03 16:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:22:03] Production.INFO: Account Balance Start. [2025-03-03 16:22:03] Production.INFO: CreateAllLog Start [2025-03-03 16:22:03] Production.INFO: 117 [2025-03-03 16:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:03] Production.INFO: ==4861== Lock acquired, processing the job... [2025-03-03 16:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: count ==13 [2025-03-03 16:22:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:22:04] Production.INFO: count ==21 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599658') start [2025-03-03 16:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.ERROR: done [2025-03-03 16:22:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599658') end [2025-03-03 16:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:22:04] Production.INFO: 1 [2025-03-03 16:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: ==4861== Releasing lock... [2025-03-03 16:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.ERROR: done [2025-03-03 16:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:22:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:22:05] Production.INFO: Total Charge 0 [2025-03-03 16:22:05] Production.INFO: CreateAllLog End [2025-03-03 16:22:05] Production.INFO: Account Balance End. [2025-03-03 16:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:22:05] Production.INFO: ==4857== Releasing lock... [2025-03-03 16:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:22:05 [end_date_ymd] => 2025-03-03 16:22:05 [RateCDR] => 1 ) [2025-03-03 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:22:05' and `end` < '2025-03-03 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:22:14] Production.ERROR: CronJobId end10 [2025-03-03 16:22:14] Production.INFO: ==4855== Releasing lock... [2025-03-03 16:22:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:22:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:22:15] Production.INFO: call_cost start [2025-03-03 16:22:15] Production.INFO: call_cost end [2025-03-03 16:22:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:22:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:22:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:22:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:22:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:22:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:22:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:22:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:22:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:22:16] Production.INFO: ==4850== Releasing lock... [2025-03-03 16:22:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:22:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:22:20] Production.INFO: count ==6606 [2025-03-03 16:22:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:22:05 - End Time 2025-03-03 16:22:05 [2025-03-03 16:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599659', 'tblTempUsageDetail_20' ) start [2025-03-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599659', 'tblTempUsageDetail_20' ) end [2025-03-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599659', 'tblTempVendorCDR_20' ) start [2025-03-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599659', 'tblTempVendorCDR_20' ) end [2025-03-03 16:22:23] Production.INFO: ProcessCDR(1,14599659,1,1,2) [2025-03-03 16:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599659', 'tblTempUsageDetail_20' ) start [2025-03-03 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599659', 'tblTempUsageDetail_20' ) end [2025-03-03 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:22:28] Production.INFO: ==4859== Releasing lock... [2025-03-03 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:22:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 21:23:02] Production.INFO: ==4929== Lock acquired, processing the job... [2025-03-03 21:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:23:02] Production.INFO: neon service started [2025-03-03 21:23:02] Production.INFO: neon service started [2025-03-03 21:23:02] Production.INFO: ==4929== Releasing lock... [2025-03-03 21:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:23:02] Production.INFO: ==4933== Lock acquired, processing the job... [2025-03-03 21:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:23:02] Production.INFO: ==4933== Releasing lock... [2025-03-03 21:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:23:02] Production.INFO: ==4931== Lock acquired, processing the job... [2025-03-03 16:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:23:03] Production.INFO: ==4931== Releasing lock... [2025-03-03 16:23:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:23:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:23:04] Production.INFO: ==4936== Lock acquired, processing the job... [2025-03-03 16:23:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:23:04] Production.INFO: ==4944== Lock acquired, processing the job... [2025-03-03 16:23:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:23:04] Production.INFO: ==4946== Lock acquired, processing the job... [2025-03-03 16:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:23:04] Production.INFO: ==4938== Lock acquired, processing the job... [2025-03-03 16:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:23:04] Production.INFO: ==4940== Lock acquired, processing the job... [2025-03-03 16:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:23:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:23:04] Production.INFO: ==4942== Lock acquired, processing the job... [2025-03-03 16:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:23:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:23:04] Production.INFO: count ==13 [2025-03-03 16:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:23:04] Production.INFO: count ==21 [2025-03-03 16:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599661') start [2025-03-03 16:23:04] Production.INFO: Account Balance Start. [2025-03-03 16:23:04] Production.INFO: CreateAllLog Start [2025-03-03 16:23:04] Production.INFO: 117 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.ERROR: done [2025-03-03 16:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599661') end [2025-03-03 16:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:23:04] Production.INFO: 1 [2025-03-03 16:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:04] Production.INFO: ==4946== Releasing lock... [2025-03-03 16:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:23:04] Production.ERROR: done [2025-03-03 16:23:04] Production.INFO: ==4938== Releasing lock... [2025-03-03 16:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:23:05] Production.INFO: Total Charge 0 [2025-03-03 16:23:05] Production.INFO: CreateAllLog End [2025-03-03 16:23:05] Production.INFO: Account Balance End. [2025-03-03 16:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:23:05] Production.INFO: ==4942== Releasing lock... [2025-03-03 16:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:23:06 [end_date_ymd] => 2025-03-03 16:23:06 [RateCDR] => 1 ) [2025-03-03 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:23:06' and `end` < '2025-03-03 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:23:14] Production.ERROR: CronJobId end10 [2025-03-03 16:23:14] Production.INFO: ==4940== Releasing lock... [2025-03-03 16:23:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:23:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:23:15] Production.INFO: call_cost start [2025-03-03 16:23:15] Production.INFO: call_cost end [2025-03-03 16:23:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:23:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:23:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:23:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:23:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:23:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:23:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:23:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:23:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:23:16] Production.INFO: ==4936== Releasing lock... [2025-03-03 16:23:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:23:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:23:19] Production.INFO: count ==6603 [2025-03-03 16:23:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:23:06 - End Time 2025-03-03 16:23:06 [2025-03-03 16:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599664', 'tblTempUsageDetail_20' ) start [2025-03-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599664', 'tblTempUsageDetail_20' ) end [2025-03-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599664', 'tblTempVendorCDR_20' ) start [2025-03-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599664', 'tblTempVendorCDR_20' ) end [2025-03-03 16:23:23] Production.INFO: ProcessCDR(1,14599664,1,1,2) [2025-03-03 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599664', 'tblTempUsageDetail_20' ) start [2025-03-03 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599664', 'tblTempUsageDetail_20' ) end [2025-03-03 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:23:28] Production.INFO: ==4944== Releasing lock... [2025-03-03 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:23:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-03 21:24:01] Production.INFO: ==5022== Lock acquired, processing the job... [2025-03-03 21:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:24:01] Production.INFO: neon service started [2025-03-03 21:24:01] Production.INFO: neon service started [2025-03-03 21:24:01] Production.INFO: ==5022== Releasing lock... [2025-03-03 21:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:24:01] Production.INFO: ==5024== Lock acquired, processing the job... [2025-03-03 16:24:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:24:02] Production.INFO: ==5026== Lock acquired, processing the job... [2025-03-03 21:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:24:02] Production.INFO: ==5026== Releasing lock... [2025-03-03 21:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:24:02] Production.INFO: ==5024== Releasing lock... [2025-03-03 16:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:24:03] Production.INFO: ==5033== Lock acquired, processing the job... [2025-03-03 16:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:24:03] Production.INFO: ==5037== Lock acquired, processing the job... [2025-03-03 16:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:24:03] Production.INFO: ==5028== Lock acquired, processing the job... [2025-03-03 16:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:24:03] Production.INFO: ==5031== Lock acquired, processing the job... [2025-03-03 16:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:24:03] Production.INFO: ==5035== Lock acquired, processing the job... [2025-03-03 16:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:24:03] Production.INFO: ==5039== Lock acquired, processing the job... [2025-03-03 16:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:24:03] Production.INFO: Account Balance Start. [2025-03-03 16:24:03] Production.INFO: CreateAllLog Start [2025-03-03 16:24:03] Production.INFO: 117 [2025-03-03 16:24:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:24:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:03] Production.INFO: count ==13 [2025-03-03 16:24:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:24:03] Production.INFO: count ==21 [2025-03-03 16:24:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599668') start [2025-03-03 16:24:04] Production.ERROR: done [2025-03-03 16:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:24:04] Production.INFO: ==5031== Releasing lock... [2025-03-03 16:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599668') end [2025-03-03 16:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:24:04] Production.INFO: 1 [2025-03-03 16:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:24:04] Production.INFO: ==5039== Releasing lock... [2025-03-03 16:24:04] Production.ERROR: done [2025-03-03 16:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:24:04] Production.INFO: Total Charge 0 [2025-03-03 16:24:04] Production.INFO: CreateAllLog End [2025-03-03 16:24:05] Production.INFO: Account Balance End. [2025-03-03 16:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:24:05] Production.INFO: ==5035== Releasing lock... [2025-03-03 16:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:24:05 [end_date_ymd] => 2025-03-03 16:24:05 [RateCDR] => 1 ) [2025-03-03 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:24:05' and `end` < '2025-03-03 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:24:13] Production.ERROR: CronJobId end10 [2025-03-03 16:24:13] Production.INFO: ==5033== Releasing lock... [2025-03-03 16:24:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:24:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:24:15] Production.INFO: call_cost start [2025-03-03 16:24:15] Production.INFO: call_cost end [2025-03-03 16:24:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:24:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:24:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:24:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:24:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:24:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:24:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:24:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:24:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:24:15] Production.INFO: ==5028== Releasing lock... [2025-03-03 16:24:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:24:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:24:18] Production.INFO: count ==6578 [2025-03-03 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:24:05 - End Time 2025-03-03 16:24:05 [2025-03-03 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599669', 'tblTempUsageDetail_20' ) start [2025-03-03 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599669', 'tblTempUsageDetail_20' ) end [2025-03-03 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599669', 'tblTempVendorCDR_20' ) start [2025-03-03 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599669', 'tblTempVendorCDR_20' ) end [2025-03-03 16:24:22] Production.INFO: ProcessCDR(1,14599669,1,1,2) [2025-03-03 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599669', 'tblTempUsageDetail_20' ) start [2025-03-03 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599669', 'tblTempUsageDetail_20' ) end [2025-03-03 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:24:27] Production.INFO: ==5037== Releasing lock... [2025-03-03 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:24:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 21:25:02] Production.INFO: ==5104== Lock acquired, processing the job... [2025-03-03 21:25:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:25:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:25:02] Production.INFO: neon service started [2025-03-03 21:25:02] Production.INFO: neon service started [2025-03-03 21:25:02] Production.INFO: ==5104== Releasing lock... [2025-03-03 21:25:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:25:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:25:02] Production.INFO: ==5106== Lock acquired, processing the job... [2025-03-03 16:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:25:02] Production.INFO: ==5106== Releasing lock... [2025-03-03 16:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:25:02] Production.INFO: ==5109== Lock acquired, processing the job... [2025-03-03 21:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:25:02] Production.INFO: ==5109== Releasing lock... [2025-03-03 21:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:25:03] Production.INFO: ==5119== Lock acquired, processing the job... [2025-03-03 16:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:25:03] Production.INFO: ==5122== Lock acquired, processing the job... [2025-03-03 16:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:25:04] Production.INFO: count ==13 [2025-03-03 16:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:25:04] Production.INFO: ==5111== Lock acquired, processing the job... [2025-03-03 16:25:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:25:04] Production.INFO: count ==21 [2025-03-03 16:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599670') start [2025-03-03 16:25:04] Production.INFO: ==5113== Lock acquired, processing the job... [2025-03-03 16:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:25:04] Production.INFO: ==5115== Lock acquired, processing the job... [2025-03-03 16:25:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:25:04] Production.INFO: ==5117== Lock acquired, processing the job... [2025-03-03 16:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:25:04] Production.ERROR: done [2025-03-03 16:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599670') end [2025-03-03 16:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:25:04] Production.INFO: 1 [2025-03-03 16:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:25:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:25:04] Production.INFO: Account Balance Start. [2025-03-03 16:25:04] Production.INFO: CreateAllLog Start [2025-03-03 16:25:04] Production.INFO: 117 [2025-03-03 16:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: ==5122== Releasing lock... [2025-03-03 16:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.ERROR: done [2025-03-03 16:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: ==5113== Releasing lock... [2025-03-03 16:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:25:05] Production.INFO: Total Charge 0 [2025-03-03 16:25:05] Production.INFO: CreateAllLog End [2025-03-03 16:25:05] Production.INFO: Account Balance End. [2025-03-03 16:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:25:05] Production.INFO: ==5117== Releasing lock... [2025-03-03 16:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:25:05 [end_date_ymd] => 2025-03-03 16:25:05 [RateCDR] => 1 ) [2025-03-03 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:25:05' and `end` < '2025-03-03 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:25:13] Production.ERROR: CronJobId end10 [2025-03-03 16:25:13] Production.INFO: ==5115== Releasing lock... [2025-03-03 16:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:25:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:25:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:25:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:25:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:25:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:25:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:25:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:25:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:25:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:25:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:25:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:25:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:25:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:25:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:25:16] Production.INFO: call_cost start [2025-03-03 16:25:16] Production.INFO: call_cost end [2025-03-03 16:25:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:25:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:25:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:25:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:25:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:25:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:25:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:25:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:25:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:25:17] Production.INFO: ==5111== Releasing lock... [2025-03-03 16:25:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:25:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:25:19] Production.INFO: count ==6568 [2025-03-03 16:25:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:25:05 - End Time 2025-03-03 16:25:05 [2025-03-03 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599674', 'tblTempUsageDetail_20' ) start [2025-03-03 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599674', 'tblTempUsageDetail_20' ) end [2025-03-03 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599674', 'tblTempVendorCDR_20' ) start [2025-03-03 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599674', 'tblTempVendorCDR_20' ) end [2025-03-03 16:25:23] Production.INFO: ProcessCDR(1,14599674,1,1,2) [2025-03-03 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599674', 'tblTempUsageDetail_20' ) start [2025-03-03 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599674', 'tblTempUsageDetail_20' ) end [2025-03-03 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:25:28] Production.INFO: ==5119== Releasing lock... [2025-03-03 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:25:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-03 21:26:01] Production.INFO: ==5192== Lock acquired, processing the job... [2025-03-03 21:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:26:01] Production.INFO: neon service started [2025-03-03 21:26:01] Production.INFO: neon service started [2025-03-03 21:26:01] Production.INFO: ==5192== Releasing lock... [2025-03-03 21:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:26:01] Production.INFO: ==5194== Lock acquired, processing the job... [2025-03-03 16:26:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:26:02] Production.INFO: ==5194== Releasing lock... [2025-03-03 16:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:26:02] Production.INFO: ==5196== Lock acquired, processing the job... [2025-03-03 21:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:26:02] Production.INFO: ==5196== Releasing lock... [2025-03-03 21:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:26:03] Production.INFO: ==5202== Lock acquired, processing the job... [2025-03-03 16:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:26:03] Production.INFO: ==5206== Lock acquired, processing the job... [2025-03-03 16:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:26:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:26:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:26:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:26:03] Production.INFO: ==5198== Lock acquired, processing the job... [2025-03-03 16:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:26:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:26:03] Production.INFO: ==5200== Lock acquired, processing the job... [2025-03-03 16:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:26:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:26:03] Production.INFO: ==5208== Lock acquired, processing the job... [2025-03-03 16:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:26:03] Production.INFO: ==5204== Lock acquired, processing the job... [2025-03-03 16:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:26:03] Production.ERROR: done [2025-03-03 16:26:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:26:03] Production.INFO: Account Balance Start. [2025-03-03 16:26:03] Production.INFO: CreateAllLog Start [2025-03-03 16:26:03] Production.INFO: 117 [2025-03-03 16:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:26:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:03] Production.INFO: count ==13 [2025-03-03 16:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:26:03] Production.INFO: count ==21 [2025-03-03 16:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599678') start [2025-03-03 16:26:03] Production.ERROR: done [2025-03-03 16:26:03] Production.INFO: ==5200== Releasing lock... [2025-03-03 16:26:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:26:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:26:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599678') end [2025-03-03 16:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:26:04] Production.INFO: 1 [2025-03-03 16:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: ==5208== Releasing lock... [2025-03-03 16:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:26:04] Production.INFO: Total Charge 0 [2025-03-03 16:26:04] Production.INFO: CreateAllLog End [2025-03-03 16:26:04] Production.INFO: Account Balance End. [2025-03-03 16:26:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:26:04] Production.INFO: ==5204== Releasing lock... [2025-03-03 16:26:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:26:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:26:05 [end_date_ymd] => 2025-03-03 16:26:05 [RateCDR] => 1 ) [2025-03-03 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:26:05' and `end` < '2025-03-03 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:26:13] Production.ERROR: CronJobId end10 [2025-03-03 16:26:13] Production.INFO: ==5202== Releasing lock... [2025-03-03 16:26:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:26:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:26:15] Production.INFO: call_cost start [2025-03-03 16:26:15] Production.INFO: call_cost end [2025-03-03 16:26:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:26:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:26:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:26:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:26:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:26:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:26:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:26:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:26:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:26:16] Production.INFO: ==5198== Releasing lock... [2025-03-03 16:26:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:26:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:26:19] Production.INFO: count ==6559 [2025-03-03 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:26:05 - End Time 2025-03-03 16:26:05 [2025-03-03 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599679', 'tblTempUsageDetail_20' ) start [2025-03-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599679', 'tblTempUsageDetail_20' ) end [2025-03-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599679', 'tblTempVendorCDR_20' ) start [2025-03-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599679', 'tblTempVendorCDR_20' ) end [2025-03-03 16:26:22] Production.INFO: ProcessCDR(1,14599679,1,1,2) [2025-03-03 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599679', 'tblTempUsageDetail_20' ) start [2025-03-03 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599679', 'tblTempUsageDetail_20' ) end [2025-03-03 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:26:27] Production.INFO: ==5206== Releasing lock... [2025-03-03 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:26:27] Production.INFO: 77 MB #Memory Used# [2025-03-03 21:27:01] Production.INFO: ==5277== Lock acquired, processing the job... [2025-03-03 21:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:27:01] Production.INFO: neon service started [2025-03-03 21:27:02] Production.INFO: neon service started [2025-03-03 21:27:02] Production.INFO: ==5277== Releasing lock... [2025-03-03 21:27:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:27:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:27:02] Production.INFO: ==5279== Lock acquired, processing the job... [2025-03-03 16:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:27:02] Production.INFO: ==5279== Releasing lock... [2025-03-03 16:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:27:02] Production.INFO: ==5281== Lock acquired, processing the job... [2025-03-03 21:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:27:02] Production.INFO: ==5281== Releasing lock... [2025-03-03 21:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:27:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:27:03] Production.INFO: ==5292== Lock acquired, processing the job... [2025-03-03 16:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:27:03] Production.INFO: ==5294== Lock acquired, processing the job... [2025-03-03 16:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:27:03] Production.INFO: count ==13 [2025-03-03 16:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:27:03] Production.INFO: ==5284== Lock acquired, processing the job... [2025-03-03 16:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:27:04] Production.INFO: count ==21 [2025-03-03 16:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599680') start [2025-03-03 16:27:04] Production.INFO: ==5290== Lock acquired, processing the job... [2025-03-03 16:27:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:27:04] Production.INFO: ==5286== Lock acquired, processing the job... [2025-03-03 16:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:27:04] Production.INFO: ==5288== Lock acquired, processing the job... [2025-03-03 16:27:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:27:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599680') end [2025-03-03 16:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:27:04] Production.INFO: 1 [2025-03-03 16:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:27:04] Production.INFO: Account Balance Start. [2025-03-03 16:27:04] Production.INFO: CreateAllLog Start [2025-03-03 16:27:04] Production.INFO: 117 [2025-03-03 16:27:04] Production.INFO: ==5294== Releasing lock... [2025-03-03 16:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:27:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.ERROR: done [2025-03-03 16:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:27:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:27:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:27:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:27:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:27:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: ==5286== Releasing lock... [2025-03-03 16:27:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:27:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:27:04] Production.ERROR: done [2025-03-03 16:27:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:27:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:27:05] Production.INFO: Total Charge 0 [2025-03-03 16:27:05] Production.INFO: CreateAllLog End [2025-03-03 16:27:05] Production.INFO: Account Balance End. [2025-03-03 16:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:27:05] Production.INFO: ==5290== Releasing lock... [2025-03-03 16:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:27:05 [end_date_ymd] => 2025-03-03 16:27:05 [RateCDR] => 1 ) [2025-03-03 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:27:05' and `end` < '2025-03-03 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:27:15] Production.ERROR: CronJobId end10 [2025-03-03 16:27:15] Production.INFO: ==5288== Releasing lock... [2025-03-03 16:27:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:27:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:27:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:27:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:27:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:27:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:27:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:27:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:27:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:27:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:27:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:27:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:27:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:27:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:27:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:27:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:27:17] Production.INFO: call_cost start [2025-03-03 16:27:17] Production.INFO: call_cost end [2025-03-03 16:27:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:27:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:27:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:27:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:27:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:27:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:27:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:27:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:27:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:27:18] Production.INFO: ==5284== Releasing lock... [2025-03-03 16:27:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:27:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:27:19] Production.INFO: count ==6513 [2025-03-03 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:27:05 - End Time 2025-03-03 16:27:05 [2025-03-03 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599684', 'tblTempUsageDetail_20' ) start [2025-03-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599684', 'tblTempUsageDetail_20' ) end [2025-03-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599684', 'tblTempVendorCDR_20' ) start [2025-03-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599684', 'tblTempVendorCDR_20' ) end [2025-03-03 16:27:22] Production.INFO: ProcessCDR(1,14599684,1,1,2) [2025-03-03 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599684', 'tblTempUsageDetail_20' ) start [2025-03-03 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599684', 'tblTempUsageDetail_20' ) end [2025-03-03 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:27:28] Production.INFO: ==5292== Releasing lock... [2025-03-03 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:27:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 21:28:01] Production.INFO: ==5361== Lock acquired, processing the job... [2025-03-03 21:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:28:01] Production.INFO: neon service started [2025-03-03 21:28:01] Production.INFO: neon service started [2025-03-03 21:28:01] Production.INFO: ==5361== Releasing lock... [2025-03-03 21:28:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:28:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:28:01] Production.INFO: ==5365== Lock acquired, processing the job... [2025-03-03 21:28:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:28:01] Production.INFO: ==5365== Releasing lock... [2025-03-03 21:28:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:28:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:28:01] Production.INFO: ==5363== Lock acquired, processing the job... [2025-03-03 16:28:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:28:02] Production.INFO: ==5363== Releasing lock... [2025-03-03 16:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:28:02] Production.INFO: ==5368== Lock acquired, processing the job... [2025-03-03 16:28:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:28:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:28:03] Production.INFO: ==5374== Lock acquired, processing the job... [2025-03-03 16:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:28:03] Production.INFO: ==5376== Lock acquired, processing the job... [2025-03-03 16:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:28:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:28:03] Production.INFO: Account Balance Start. [2025-03-03 16:28:03] Production.INFO: CreateAllLog Start [2025-03-03 16:28:03] Production.INFO: 117 [2025-03-03 16:28:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:28:03] Production.INFO: ==5370== Lock acquired, processing the job... [2025-03-03 16:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:03] Production.INFO: ==5372== Lock acquired, processing the job... [2025-03-03 16:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:28:03] Production.INFO: ==5378== Lock acquired, processing the job... [2025-03-03 16:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:28:03] Production.ERROR: done [2025-03-03 16:28:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:28:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:28:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:03] Production.INFO: count ==13 [2025-03-03 16:28:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:28:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:28:03] Production.INFO: count ==21 [2025-03-03 16:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599687') start [2025-03-03 16:28:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:28:03] Production.ERROR: done [2025-03-03 16:28:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:28:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:28:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:28:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599687') end [2025-03-03 16:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:28:04] Production.INFO: 1 [2025-03-03 16:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: ==5378== Releasing lock... [2025-03-03 16:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: ==5370== Releasing lock... [2025-03-03 16:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:28:04] Production.INFO: Total Charge 0 [2025-03-03 16:28:04] Production.INFO: CreateAllLog End [2025-03-03 16:28:04] Production.INFO: Account Balance End. [2025-03-03 16:28:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:28:04] Production.INFO: ==5374== Releasing lock... [2025-03-03 16:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:28:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:28:05 [end_date_ymd] => 2025-03-03 16:28:05 [RateCDR] => 1 ) [2025-03-03 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:28:05' and `end` < '2025-03-03 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:28:13] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,11))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 16:28:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:28:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:28:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:28:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:28:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:28:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:28:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:28:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:28:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:28:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:28:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:28:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:28:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:28:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:28:13] Production.INFO: call_cost start [2025-03-03 16:28:13] Production.INFO: call_cost end [2025-03-03 16:28:14] Production.ERROR: CronJobId end10 [2025-03-03 16:28:14] Production.INFO: ==5372== Releasing lock... [2025-03-03 16:28:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:28:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:28:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:28:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:28:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:28:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:28:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:28:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:28:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:28:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:28:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:28:14] Production.INFO: ==5368== Releasing lock... [2025-03-03 16:28:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:28:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:28:18] Production.INFO: count ==6502 [2025-03-03 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:28:05 - End Time 2025-03-03 16:28:05 [2025-03-03 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599689', 'tblTempUsageDetail_20' ) start [2025-03-03 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599689', 'tblTempUsageDetail_20' ) end [2025-03-03 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599689', 'tblTempVendorCDR_20' ) start [2025-03-03 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599689', 'tblTempVendorCDR_20' ) end [2025-03-03 16:28:22] Production.INFO: ProcessCDR(1,14599689,1,1,2) [2025-03-03 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599689', 'tblTempUsageDetail_20' ) start [2025-03-03 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599689', 'tblTempUsageDetail_20' ) end [2025-03-03 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:28:27] Production.INFO: ==5376== Releasing lock... [2025-03-03 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:28:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 21:29:01] Production.INFO: ==5447== Lock acquired, processing the job... [2025-03-03 21:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:29:01] Production.INFO: neon service started [2025-03-03 21:29:01] Production.INFO: neon service started [2025-03-03 21:29:01] Production.INFO: ==5447== Releasing lock... [2025-03-03 21:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:29:02] Production.INFO: ==5449== Lock acquired, processing the job... [2025-03-03 16:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:29:02] Production.INFO: ==5449== Releasing lock... [2025-03-03 16:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:29:02] Production.INFO: ==5451== Lock acquired, processing the job... [2025-03-03 21:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:29:02] Production.INFO: ==5451== Releasing lock... [2025-03-03 21:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:29:03] Production.INFO: ==5461== Lock acquired, processing the job... [2025-03-03 16:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:29:03] Production.INFO: ==5459== Lock acquired, processing the job... [2025-03-03 16:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:29:03] Production.INFO: ==5453== Lock acquired, processing the job... [2025-03-03 16:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:29:03] Production.INFO: Account Balance Start. [2025-03-03 16:29:03] Production.INFO: CreateAllLog Start [2025-03-03 16:29:03] Production.INFO: 117 [2025-03-03 16:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: ==5455== Lock acquired, processing the job... [2025-03-03 16:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: ==5457== Lock acquired, processing the job... [2025-03-03 16:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: ==5463== Lock acquired, processing the job... [2025-03-03 16:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:29:04] Production.ERROR: done [2025-03-03 16:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:29:04] Production.INFO: ==5455== Releasing lock... [2025-03-03 16:29:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:29:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:29:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: count ==13 [2025-03-03 16:29:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:29:04] Production.INFO: count ==21 [2025-03-03 16:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599693') start [2025-03-03 16:29:04] Production.ERROR: done [2025-03-03 16:29:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599693') end [2025-03-03 16:29:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:29:04] Production.INFO: 1 [2025-03-03 16:29:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: ==5463== Releasing lock... [2025-03-03 16:29:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:29:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:29:04] Production.INFO: Total Charge 0 [2025-03-03 16:29:04] Production.INFO: CreateAllLog End [2025-03-03 16:29:04] Production.INFO: Account Balance End. [2025-03-03 16:29:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:29:05] Production.INFO: ==5459== Releasing lock... [2025-03-03 16:29:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:29:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:29:05 [end_date_ymd] => 2025-03-03 16:29:05 [RateCDR] => 1 ) [2025-03-03 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:29:05' and `end` < '2025-03-03 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:29:13] Production.ERROR: CronJobId end10 [2025-03-03 16:29:13] Production.INFO: ==5457== Releasing lock... [2025-03-03 16:29:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:29:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:29:15] Production.INFO: call_cost start [2025-03-03 16:29:15] Production.INFO: call_cost end [2025-03-03 16:29:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:29:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:29:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:29:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:29:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:29:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:29:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:29:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:29:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:29:16] Production.INFO: ==5453== Releasing lock... [2025-03-03 16:29:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:29:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:29:20] Production.INFO: count ==6504 [2025-03-03 16:29:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:29:05 - End Time 2025-03-03 16:29:05 [2025-03-03 16:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599694', 'tblTempUsageDetail_20' ) start [2025-03-03 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599694', 'tblTempUsageDetail_20' ) end [2025-03-03 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599694', 'tblTempVendorCDR_20' ) start [2025-03-03 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599694', 'tblTempVendorCDR_20' ) end [2025-03-03 16:29:23] Production.INFO: ProcessCDR(1,14599694,1,1,2) [2025-03-03 16:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599694', 'tblTempUsageDetail_20' ) start [2025-03-03 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599694', 'tblTempUsageDetail_20' ) end [2025-03-03 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:29:28] Production.INFO: ==5461== Releasing lock... [2025-03-03 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:29:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 21:30:02] Production.INFO: ==5535== Lock acquired, processing the job... [2025-03-03 21:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:30:02] Production.INFO: neon service started [2025-03-03 21:30:02] Production.INFO: neon service started [2025-03-03 21:30:02] Production.INFO: ==5535== Releasing lock... [2025-03-03 21:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:30:02] Production.INFO: ==5537== Lock acquired, processing the job... [2025-03-03 16:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:30:02] Production.INFO: ==5537== Releasing lock... [2025-03-03 16:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:30:03] Production.INFO: ==5539== Lock acquired, processing the job... [2025-03-03 21:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:30:03] Production.INFO: ==5539== Releasing lock... [2025-03-03 21:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:30:04] Production.INFO: ==5545== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:30:04] Production.INFO: ==5548== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:30:04] Production.INFO: ==5556== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:30:04] Production.INFO: ==5541== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 16:30:04] Production.INFO: ==5543== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:30:04] Production.INFO: count ==13 [2025-03-03 16:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:30:04] Production.INFO: count ==21 [2025-03-03 16:30:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:30:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:30:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599696') start [2025-03-03 16:30:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:30:04] Production.ERROR: CronJob PID - 5543 [2025-03-03 16:30:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 16:30:04] Production.ERROR: CronJob ID - 5 [2025-03-03 16:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 16:30:00 [2025-03-03 16:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:30:04] Production.ERROR: CronJob PID - 5545 [2025-03-03 16:30:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 16:30:04] Production.ERROR: CronJob ID - 7 [2025-03-03 16:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 16:30:00 [2025-03-03 16:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:30:04] Production.ERROR: CronJob PID - 5548 [2025-03-03 16:30:04] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 16:30:04] Production.ERROR: CronJob ID - 10 [2025-03-03 16:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 16:30:00 [2025-03-03 16:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:30:04] Production.ERROR: CronJob PID - 5556 [2025-03-03 16:30:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 16:30:04] Production.ERROR: CronJob ID - 19 [2025-03-03 16:30:04] Production.ERROR: CronJob Last Run Time 2025-03-03 16:30:00 [2025-03-03 16:30:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:30:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 16:30:04] Production.INFO: ==5541== Releasing lock... [2025-03-03 16:30:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 16:30:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:30:04] Production.INFO: ==5550== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599696') end [2025-03-03 16:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:30:04] Production.INFO: 1 [2025-03-03 16:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:30:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:30:04] Production.INFO: ==5552== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:30:04] Production.INFO: ==5554== Lock acquired, processing the job... [2025-03-03 16:30:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 16:30:04] Production.INFO: ==5545== Releasing lock... [2025-03-03 16:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:30:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:30:04] Production.INFO: Account Balance Start. [2025-03-03 16:30:04] Production.INFO: CreateAllLog Start [2025-03-03 16:30:04] Production.INFO: ==5556== Releasing lock... [2025-03-03 16:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:30:04] Production.INFO: 117 [2025-03-03 16:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-13 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-14 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.ERROR: done [2025-03-03 16:30:05] Production.ERROR: done [2025-03-03 16:30:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:30:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 16:30:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599699', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 16:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.ERROR: done [2025-03-03 16:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:06] Production.INFO: Date 2025-03-02 [2025-03-03 16:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:06] Production.INFO: Date 2025-03-03 [2025-03-03 16:30:06] Production.INFO: Reseller ==> 0 [2025-03-03 16:30:06] Production.INFO: Total Charge 0 [2025-03-03 16:30:06] Production.INFO: CreateAllLog End [2025-03-03 16:30:06] Production.INFO: Account Balance End. [2025-03-03 16:30:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:30:06] Production.INFO: ==5550== Releasing lock... [2025-03-03 16:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:30:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:30:06 [end_date_ymd] => 2025-03-03 16:30:06 [RateCDR] => 1 ) [2025-03-03 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:30:06' and `end` < '2025-03-03 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599699', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 16:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 16:30:09] Production.INFO: ProcessCDR(1,14599699,1,1,2) [2025-03-03 16:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599699,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599699,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:30:09] Production.INFO: ==5554== Releasing lock... [2025-03-03 16:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 16:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 16:30:16] Production.ERROR: CronJobId end10 [2025-03-03 16:30:16] Production.INFO: ==5548== Releasing lock... [2025-03-03 16:30:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:30:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:30:18] Production.INFO: call_cost start [2025-03-03 16:30:18] Production.INFO: call_cost end [2025-03-03 16:30:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:30:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:30:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:30:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:30:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:30:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:30:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:30:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:30:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:30:18] Production.INFO: ==5543== Releasing lock... [2025-03-03 16:30:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:30:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:30:20] Production.INFO: count ==6489 [2025-03-03 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-03 13:30:06 - End Time 2025-03-03 16:30:06 [2025-03-03 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599700', 'tblTempUsageDetail_20' ) start [2025-03-03 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599700', 'tblTempUsageDetail_20' ) end [2025-03-03 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599700', 'tblTempVendorCDR_20' ) start [2025-03-03 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599700', 'tblTempVendorCDR_20' ) end [2025-03-03 16:30:23] Production.INFO: ProcessCDR(1,14599700,1,1,2) [2025-03-03 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599700', 'tblTempUsageDetail_20' ) start [2025-03-03 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599700', 'tblTempUsageDetail_20' ) end [2025-03-03 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:30:28] Production.INFO: ==5552== Releasing lock... [2025-03-03 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:30:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 21:31:01] Production.INFO: ==5629== Lock acquired, processing the job... [2025-03-03 21:31:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:31:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:31:01] Production.INFO: neon service started [2025-03-03 21:31:01] Production.INFO: neon service started [2025-03-03 21:31:01] Production.INFO: ==5629== Releasing lock... [2025-03-03 21:31:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:31:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:31:02] Production.INFO: ==5631== Lock acquired, processing the job... [2025-03-03 16:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:31:02] Production.INFO: ==5631== Releasing lock... [2025-03-03 16:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:31:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:31:02] Production.INFO: ==5633== Lock acquired, processing the job... [2025-03-03 21:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:31:02] Production.INFO: ==5633== Releasing lock... [2025-03-03 21:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:31:03] Production.INFO: ==5641== Lock acquired, processing the job... [2025-03-03 16:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:31:03] Production.INFO: ==5635== Lock acquired, processing the job... [2025-03-03 16:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:31:03] Production.INFO: ==5645== Lock acquired, processing the job... [2025-03-03 16:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:31:03] Production.INFO: ==5637== Lock acquired, processing the job... [2025-03-03 16:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:31:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:31:03] Production.INFO: Account Balance Start. [2025-03-03 16:31:03] Production.INFO: CreateAllLog Start [2025-03-03 16:31:03] Production.INFO: 117 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:31:03] Production.INFO: ==5639== Lock acquired, processing the job... [2025-03-03 16:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:31:03] Production.INFO: ==5643== Lock acquired, processing the job... [2025-03-03 16:31:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:31:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:31:03] Production.INFO: count ==13 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:31:03] Production.INFO: count ==21 [2025-03-03 16:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599703') start [2025-03-03 16:31:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:31:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599703') end [2025-03-03 16:31:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:31:03] Production.INFO: 1 [2025-03-03 16:31:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:31:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: ==5645== Releasing lock... [2025-03-03 16:31:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:31:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:31:03] Production.INFO: ==5637== Releasing lock... [2025-03-03 16:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:31:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:31:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:03] Production.INFO: Date 2025-02-18 [2025-03-03 16:31:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.ERROR: done [2025-03-03 16:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.ERROR: done [2025-03-03 16:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:31:04] Production.INFO: Total Charge 0 [2025-03-03 16:31:04] Production.INFO: CreateAllLog End [2025-03-03 16:31:04] Production.INFO: Account Balance End. [2025-03-03 16:31:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:31:04] Production.INFO: ==5641== Releasing lock... [2025-03-03 16:31:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:31:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:31:05 [end_date_ymd] => 2025-03-03 16:31:05 [RateCDR] => 1 ) [2025-03-03 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:31:05' and `end` < '2025-03-03 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:31:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:31:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:31:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:31:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:31:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:31:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:31:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:31:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:31:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:31:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:31:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:31:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:31:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:31:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:31:13] Production.INFO: call_cost start [2025-03-03 16:31:13] Production.INFO: call_cost end [2025-03-03 16:31:13] Production.ERROR: CronJobId end10 [2025-03-03 16:31:13] Production.INFO: ==5639== Releasing lock... [2025-03-03 16:31:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:31:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:31:14] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:31:14] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:31:14] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:31:14] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:31:14] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:31:14] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:31:14] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:31:14] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:31:14] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:31:14] Production.INFO: ==5635== Releasing lock... [2025-03-03 16:31:14] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:31:14] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:31:19] Production.INFO: count ==6510 [2025-03-03 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:31:05 - End Time 2025-03-03 16:31:05 [2025-03-03 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599705', 'tblTempUsageDetail_20' ) start [2025-03-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599705', 'tblTempUsageDetail_20' ) end [2025-03-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599705', 'tblTempVendorCDR_20' ) start [2025-03-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599705', 'tblTempVendorCDR_20' ) end [2025-03-03 16:31:22] Production.INFO: ProcessCDR(1,14599705,1,1,2) [2025-03-03 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599705', 'tblTempUsageDetail_20' ) start [2025-03-03 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599705', 'tblTempUsageDetail_20' ) end [2025-03-03 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:31:27] Production.INFO: ==5643== Releasing lock... [2025-03-03 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:31:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-03 21:32:02] Production.INFO: ==5719== Lock acquired, processing the job... [2025-03-03 21:32:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:32:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:32:02] Production.INFO: neon service started [2025-03-03 21:32:02] Production.INFO: neon service started [2025-03-03 21:32:02] Production.INFO: ==5719== Releasing lock... [2025-03-03 21:32:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:32:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:32:02] Production.INFO: ==5722== Lock acquired, processing the job... [2025-03-03 16:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:32:02] Production.INFO: ==5722== Releasing lock... [2025-03-03 16:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:32:03] Production.INFO: ==5724== Lock acquired, processing the job... [2025-03-03 21:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:32:03] Production.INFO: ==5724== Releasing lock... [2025-03-03 21:32:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:32:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:32:03] Production.INFO: ==5734== Lock acquired, processing the job... [2025-03-03 16:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:32:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:32:03] Production.INFO: ==5736== Lock acquired, processing the job... [2025-03-03 16:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:32:03] Production.INFO: ==5726== Lock acquired, processing the job... [2025-03-03 16:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:32:04] Production.INFO: ==5728== Lock acquired, processing the job... [2025-03-03 16:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:32:04] Production.INFO: ==5730== Lock acquired, processing the job... [2025-03-03 16:32:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:32:04] Production.INFO: ==5732== Lock acquired, processing the job... [2025-03-03 16:32:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:32:04] Production.INFO: count ==13 [2025-03-03 16:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:32:04] Production.INFO: Account Balance Start. [2025-03-03 16:32:04] Production.INFO: CreateAllLog Start [2025-03-03 16:32:04] Production.INFO: count ==21 [2025-03-03 16:32:04] Production.INFO: 117 [2025-03-03 16:32:04] Production.ERROR: done [2025-03-03 16:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:32:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:32:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:32:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:32:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599706') start [2025-03-03 16:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599706') end [2025-03-03 16:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:32:04] Production.INFO: 1 [2025-03-03 16:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:32:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:32:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: ==5736== Releasing lock... [2025-03-03 16:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: ==5728== Releasing lock... [2025-03-03 16:32:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:32:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:32:04] Production.ERROR: done [2025-03-03 16:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:32:05] Production.INFO: Total Charge 0 [2025-03-03 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:32:05 [end_date_ymd] => 2025-03-03 16:32:05 [RateCDR] => 1 ) [2025-03-03 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:32:05' and `end` < '2025-03-03 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:32:05] Production.INFO: CreateAllLog End [2025-03-03 16:32:05] Production.INFO: Account Balance End. [2025-03-03 16:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:32:05] Production.INFO: ==5732== Releasing lock... [2025-03-03 16:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:32:14] Production.ERROR: CronJobId end10 [2025-03-03 16:32:14] Production.INFO: ==5730== Releasing lock... [2025-03-03 16:32:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:32:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:32:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:32:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:32:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:32:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:32:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:32:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:32:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:32:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:32:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:32:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:32:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:32:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:32:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:32:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:32:15] Production.INFO: call_cost start [2025-03-03 16:32:15] Production.INFO: call_cost end [2025-03-03 16:32:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:32:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:32:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:32:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:32:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:32:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:32:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:32:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:32:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:32:16] Production.INFO: ==5726== Releasing lock... [2025-03-03 16:32:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:32:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:32:19] Production.INFO: count ==6485 [2025-03-03 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:32:05 - End Time 2025-03-03 16:32:05 [2025-03-03 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599710', 'tblTempUsageDetail_20' ) start [2025-03-03 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599710', 'tblTempUsageDetail_20' ) end [2025-03-03 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599710', 'tblTempVendorCDR_20' ) start [2025-03-03 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599710', 'tblTempVendorCDR_20' ) end [2025-03-03 16:32:22] Production.INFO: ProcessCDR(1,14599710,1,1,2) [2025-03-03 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599710', 'tblTempUsageDetail_20' ) start [2025-03-03 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599710', 'tblTempUsageDetail_20' ) end [2025-03-03 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:32:28] Production.INFO: ==5734== Releasing lock... [2025-03-03 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:32:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 21:33:01] Production.INFO: ==5804== Lock acquired, processing the job... [2025-03-03 21:33:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:33:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:33:01] Production.INFO: neon service started [2025-03-03 21:33:01] Production.INFO: neon service started [2025-03-03 21:33:01] Production.INFO: ==5804== Releasing lock... [2025-03-03 21:33:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:33:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:33:01] Production.INFO: ==5808== Lock acquired, processing the job... [2025-03-03 21:33:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:33:02] Production.INFO: ==5808== Releasing lock... [2025-03-03 21:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:33:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:33:02] Production.INFO: ==5806== Lock acquired, processing the job... [2025-03-03 16:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:33:02] Production.INFO: ==5806== Releasing lock... [2025-03-03 16:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:33:03] Production.INFO: ==5811== Lock acquired, processing the job... [2025-03-03 16:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:33:03] Production.INFO: ==5815== Lock acquired, processing the job... [2025-03-03 16:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:33:03] Production.INFO: ==5819== Lock acquired, processing the job... [2025-03-03 16:33:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:33:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:33:03] Production.INFO: ==5813== Lock acquired, processing the job... [2025-03-03 16:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:33:03] Production.INFO: ==5817== Lock acquired, processing the job... [2025-03-03 16:33:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:33:03] Production.INFO: ==5821== Lock acquired, processing the job... [2025-03-03 16:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:33:03] Production.ERROR: done [2025-03-03 16:33:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:33:03] Production.INFO: Account Balance Start. [2025-03-03 16:33:03] Production.INFO: CreateAllLog Start [2025-03-03 16:33:03] Production.INFO: 117 [2025-03-03 16:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:33:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: count ==13 [2025-03-03 16:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: count ==21 [2025-03-03 16:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599714') start [2025-03-03 16:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.ERROR: done [2025-03-03 16:33:04] Production.INFO: ==5813== Releasing lock... [2025-03-03 16:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599714') end [2025-03-03 16:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:33:04] Production.INFO: 1 [2025-03-03 16:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:33:04] Production.INFO: ==5821== Releasing lock... [2025-03-03 16:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:33:05] Production.INFO: Total Charge 0 [2025-03-03 16:33:05] Production.INFO: CreateAllLog End [2025-03-03 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:33:05 [end_date_ymd] => 2025-03-03 16:33:05 [RateCDR] => 1 ) [2025-03-03 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:33:05' and `end` < '2025-03-03 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:33:05] Production.INFO: Account Balance End. [2025-03-03 16:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:33:05] Production.INFO: ==5817== Releasing lock... [2025-03-03 16:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:33:14] Production.ERROR: CronJobId end10 [2025-03-03 16:33:14] Production.INFO: ==5815== Releasing lock... [2025-03-03 16:33:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:33:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:33:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:33:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:33:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:33:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:33:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:33:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:33:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:33:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:33:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:33:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:33:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:33:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:33:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:33:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:33:15] Production.INFO: call_cost start [2025-03-03 16:33:15] Production.INFO: call_cost end [2025-03-03 16:33:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:33:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:33:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:33:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:33:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:33:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:33:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:33:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:33:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:33:16] Production.INFO: ==5811== Releasing lock... [2025-03-03 16:33:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:33:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:33:18] Production.INFO: count ==6495 [2025-03-03 16:33:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:33:05 - End Time 2025-03-03 16:33:05 [2025-03-03 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599715', 'tblTempUsageDetail_20' ) start [2025-03-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599715', 'tblTempUsageDetail_20' ) end [2025-03-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599715', 'tblTempVendorCDR_20' ) start [2025-03-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599715', 'tblTempVendorCDR_20' ) end [2025-03-03 16:33:22] Production.INFO: ProcessCDR(1,14599715,1,1,2) [2025-03-03 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599715', 'tblTempUsageDetail_20' ) start [2025-03-03 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599715', 'tblTempUsageDetail_20' ) end [2025-03-03 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:33:27] Production.INFO: ==5819== Releasing lock... [2025-03-03 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:33:27] Production.INFO: 77 MB #Memory Used# [2025-03-03 21:34:02] Production.INFO: ==5895== Lock acquired, processing the job... [2025-03-03 21:34:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:34:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:34:02] Production.INFO: neon service started [2025-03-03 21:34:02] Production.INFO: neon service started [2025-03-03 21:34:02] Production.INFO: ==5895== Releasing lock... [2025-03-03 21:34:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:34:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:34:02] Production.INFO: ==5897== Lock acquired, processing the job... [2025-03-03 16:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:34:02] Production.INFO: ==5899== Lock acquired, processing the job... [2025-03-03 21:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:34:02] Production.INFO: ==5899== Releasing lock... [2025-03-03 21:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:34:02] Production.INFO: ==5897== Releasing lock... [2025-03-03 16:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:34:03] Production.INFO: ==5904== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:34:03] Production.INFO: ==5908== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:34:03] Production.INFO: ==5906== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:34:03] Production.INFO: ==5910== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:34:03] Production.INFO: ==5912== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:34:03] Production.INFO: Account Balance Start. [2025-03-03 16:34:03] Production.INFO: CreateAllLog Start [2025-03-03 16:34:03] Production.INFO: 117 [2025-03-03 16:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:03] Production.INFO: ==5914== Lock acquired, processing the job... [2025-03-03 16:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:34:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:34:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:34:04] Production.INFO: ==5906== Releasing lock... [2025-03-03 16:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: count ==13 [2025-03-03 16:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:34:04] Production.INFO: count ==21 [2025-03-03 16:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599719') start [2025-03-03 16:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599719') end [2025-03-03 16:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:34:04] Production.INFO: 1 [2025-03-03 16:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:34:04] Production.ERROR: done [2025-03-03 16:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: ==5914== Releasing lock... [2025-03-03 16:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.ERROR: done [2025-03-03 16:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:34:05] Production.INFO: Total Charge 0 [2025-03-03 16:34:05] Production.INFO: CreateAllLog End [2025-03-03 16:34:05] Production.INFO: Account Balance End. [2025-03-03 16:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:34:05] Production.INFO: ==5910== Releasing lock... [2025-03-03 16:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:34:05 [end_date_ymd] => 2025-03-03 16:34:05 [RateCDR] => 1 ) [2025-03-03 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:34:05' and `end` < '2025-03-03 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:34:13] Production.ERROR: CronJobId end10 [2025-03-03 16:34:13] Production.INFO: ==5908== Releasing lock... [2025-03-03 16:34:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:34:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:34:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:34:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:34:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:34:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:34:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:34:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:34:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:34:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:34:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:34:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:34:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:34:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:34:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:34:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:34:15] Production.INFO: call_cost start [2025-03-03 16:34:15] Production.INFO: call_cost end [2025-03-03 16:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:34:16] Production.INFO: ==5904== Releasing lock... [2025-03-03 16:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:34:19] Production.INFO: count ==6490 [2025-03-03 16:34:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:34:05 - End Time 2025-03-03 16:34:05 [2025-03-03 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599720', 'tblTempUsageDetail_20' ) start [2025-03-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599720', 'tblTempUsageDetail_20' ) end [2025-03-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599720', 'tblTempVendorCDR_20' ) start [2025-03-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599720', 'tblTempVendorCDR_20' ) end [2025-03-03 16:34:23] Production.INFO: ProcessCDR(1,14599720,1,1,2) [2025-03-03 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599720', 'tblTempUsageDetail_20' ) start [2025-03-03 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599720', 'tblTempUsageDetail_20' ) end [2025-03-03 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:34:28] Production.INFO: ==5912== Releasing lock... [2025-03-03 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:34:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 21:35:01] Production.INFO: ==6021== Lock acquired, processing the job... [2025-03-03 21:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:35:01] Production.INFO: neon service started [2025-03-03 21:35:01] Production.INFO: neon service started [2025-03-03 21:35:01] Production.INFO: ==6021== Releasing lock... [2025-03-03 21:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:35:01] Production.INFO: ==6025== Lock acquired, processing the job... [2025-03-03 21:35:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:35:01] Production.INFO: ==6025== Releasing lock... [2025-03-03 21:35:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:35:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:35:02] Production.INFO: ==6023== Lock acquired, processing the job... [2025-03-03 16:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:35:02] Production.INFO: ==6023== Releasing lock... [2025-03-03 16:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:35:03] Production.INFO: ==6034== Lock acquired, processing the job... [2025-03-03 16:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:35:03] Production.INFO: Account Balance Start. [2025-03-03 16:35:03] Production.INFO: CreateAllLog Start [2025-03-03 16:35:03] Production.INFO: 117 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: ==6028== Lock acquired, processing the job... [2025-03-03 16:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:35:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: ==6030== Lock acquired, processing the job... [2025-03-03 16:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:35:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: ==6032== Lock acquired, processing the job... [2025-03-03 16:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:35:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: ==6038== Lock acquired, processing the job... [2025-03-03 16:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:35:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:35:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: count ==13 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:35:03] Production.INFO: count ==21 [2025-03-03 16:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599724') start [2025-03-03 16:35:03] Production.INFO: ==6036== Lock acquired, processing the job... [2025-03-03 16:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:35:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-18 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599724') end [2025-03-03 16:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:35:03] Production.INFO: 1 [2025-03-03 16:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:35:03] Production.INFO: Date 2025-02-19 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-20 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-21 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: Date 2025-02-22 [2025-03-03 16:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:03] Production.INFO: ==6038== Releasing lock... [2025-03-03 16:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:35:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:35:04] Production.INFO: ==6030== Releasing lock... [2025-03-03 16:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.ERROR: done [2025-03-03 16:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:35:04] Production.ERROR: done [2025-03-03 16:35:04] Production.INFO: Total Charge 0 [2025-03-03 16:35:04] Production.INFO: CreateAllLog End [2025-03-03 16:35:04] Production.INFO: Account Balance End. [2025-03-03 16:35:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:35:04] Production.INFO: ==6034== Releasing lock... [2025-03-03 16:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:35:05 [end_date_ymd] => 2025-03-03 16:35:05 [RateCDR] => 1 ) [2025-03-03 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:35:05' and `end` < '2025-03-03 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:35:14] Production.ERROR: CronJobId end10 [2025-03-03 16:35:14] Production.INFO: ==6032== Releasing lock... [2025-03-03 16:35:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:35:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:35:14] Production.INFO: call_cost start [2025-03-03 16:35:14] Production.INFO: call_cost end [2025-03-03 16:35:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:35:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:35:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:35:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:35:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:35:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:35:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:35:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:35:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:35:15] Production.INFO: ==6028== Releasing lock... [2025-03-03 16:35:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:35:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:35:19] Production.INFO: count ==6479 [2025-03-03 16:35:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:35:05 - End Time 2025-03-03 16:35:05 [2025-03-03 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599725', 'tblTempUsageDetail_20' ) start [2025-03-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599725', 'tblTempUsageDetail_20' ) end [2025-03-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599725', 'tblTempVendorCDR_20' ) start [2025-03-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599725', 'tblTempVendorCDR_20' ) end [2025-03-03 16:35:22] Production.INFO: ProcessCDR(1,14599725,1,1,2) [2025-03-03 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599725', 'tblTempUsageDetail_20' ) start [2025-03-03 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599725', 'tblTempUsageDetail_20' ) end [2025-03-03 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:35:27] Production.INFO: ==6036== Releasing lock... [2025-03-03 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:35:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-03 21:36:01] Production.INFO: ==6110== Lock acquired, processing the job... [2025-03-03 21:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:36:01] Production.INFO: neon service started [2025-03-03 21:36:01] Production.INFO: neon service started [2025-03-03 21:36:01] Production.INFO: ==6110== Releasing lock... [2025-03-03 21:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:36:02] Production.INFO: ==6114== Lock acquired, processing the job... [2025-03-03 21:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:36:02] Production.INFO: ==6114== Releasing lock... [2025-03-03 21:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:36:02] Production.INFO: ==6112== Lock acquired, processing the job... [2025-03-03 16:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:36:02] Production.INFO: ==6112== Releasing lock... [2025-03-03 16:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:36:03] Production.INFO: ==6120== Lock acquired, processing the job... [2025-03-03 16:36:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:36:03] Production.INFO: ==6124== Lock acquired, processing the job... [2025-03-03 16:36:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:36:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:36:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:36:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:36:03] Production.INFO: ==6116== Lock acquired, processing the job... [2025-03-03 16:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:36:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:36:03] Production.INFO: ==6118== Lock acquired, processing the job... [2025-03-03 16:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:36:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:36:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:36:03] Production.INFO: ==6122== Lock acquired, processing the job... [2025-03-03 16:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:36:03] Production.INFO: ==6126== Lock acquired, processing the job... [2025-03-03 16:36:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:36:04] Production.INFO: count ==13 [2025-03-03 16:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:36:04] Production.INFO: Account Balance Start. [2025-03-03 16:36:04] Production.INFO: CreateAllLog Start [2025-03-03 16:36:04] Production.INFO: 117 [2025-03-03 16:36:04] Production.INFO: count ==21 [2025-03-03 16:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599727') start [2025-03-03 16:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.ERROR: done [2025-03-03 16:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599727') end [2025-03-03 16:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:36:04] Production.INFO: 1 [2025-03-03 16:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:36:04] Production.INFO: ==6118== Releasing lock... [2025-03-03 16:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: ==6126== Releasing lock... [2025-03-03 16:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:36:04] Production.ERROR: done [2025-03-03 16:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:36:05] Production.INFO: Total Charge 0 [2025-03-03 16:36:05] Production.INFO: CreateAllLog End [2025-03-03 16:36:05] Production.INFO: Account Balance End. [2025-03-03 16:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:36:05] Production.INFO: ==6122== Releasing lock... [2025-03-03 16:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:36:05 [end_date_ymd] => 2025-03-03 16:36:05 [RateCDR] => 1 ) [2025-03-03 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:36:05' and `end` < '2025-03-03 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:36:15] Production.ERROR: CronJobId end10 [2025-03-03 16:36:15] Production.INFO: ==6120== Releasing lock... [2025-03-03 16:36:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:36:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:36:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:36:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:36:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:36:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:36:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:36:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:36:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:36:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:36:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:36:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:36:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:36:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:36:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:36:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:36:16] Production.INFO: call_cost start [2025-03-03 16:36:16] Production.INFO: call_cost end [2025-03-03 16:36:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:36:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:36:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:36:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:36:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:36:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:36:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:36:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:36:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:36:17] Production.INFO: ==6116== Releasing lock... [2025-03-03 16:36:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:36:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:36:19] Production.INFO: count ==6441 [2025-03-03 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:36:05 - End Time 2025-03-03 16:36:05 [2025-03-03 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599730', 'tblTempUsageDetail_20' ) start [2025-03-03 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599730', 'tblTempUsageDetail_20' ) end [2025-03-03 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599730', 'tblTempVendorCDR_20' ) start [2025-03-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599730', 'tblTempVendorCDR_20' ) end [2025-03-03 16:36:23] Production.INFO: ProcessCDR(1,14599730,1,1,2) [2025-03-03 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599730', 'tblTempUsageDetail_20' ) start [2025-03-03 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599730', 'tblTempUsageDetail_20' ) end [2025-03-03 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:36:28] Production.INFO: ==6124== Releasing lock... [2025-03-03 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:36:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-03 21:37:02] Production.INFO: ==6201== Lock acquired, processing the job... [2025-03-03 21:37:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:37:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:37:02] Production.INFO: neon service started [2025-03-03 21:37:02] Production.INFO: neon service started [2025-03-03 21:37:02] Production.INFO: ==6201== Releasing lock... [2025-03-03 21:37:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:37:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:37:02] Production.INFO: ==6203== Lock acquired, processing the job... [2025-03-03 16:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:37:02] Production.INFO: ==6205== Lock acquired, processing the job... [2025-03-03 21:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:37:02] Production.INFO: ==6205== Releasing lock... [2025-03-03 21:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:37:03] Production.INFO: ==6203== Releasing lock... [2025-03-03 16:37:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:37:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:37:03] Production.INFO: ==6208== Lock acquired, processing the job... [2025-03-03 16:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:37:03] Production.INFO: ==6210== Lock acquired, processing the job... [2025-03-03 16:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:37:03] Production.INFO: ==6210== Releasing lock... [2025-03-03 16:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:37:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:37:04] Production.INFO: ==6216== Lock acquired, processing the job... [2025-03-03 16:37:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:37:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:37:04] Production.INFO: ==6212== Lock acquired, processing the job... [2025-03-03 16:37:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:37:04] Production.INFO: ==6214== Lock acquired, processing the job... [2025-03-03 16:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:37:04] Production.INFO: ==6218== Lock acquired, processing the job... [2025-03-03 16:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:37:04] Production.ERROR: done [2025-03-03 16:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:37:04] Production.INFO: Account Balance Start. [2025-03-03 16:37:04] Production.INFO: CreateAllLog Start [2025-03-03 16:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:37:04] Production.INFO: 117 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:37:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: count ==13 [2025-03-03 16:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:37:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:37:04] Production.INFO: count ==21 [2025-03-03 16:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599733') start [2025-03-03 16:37:04] Production.ERROR: done [2025-03-03 16:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599733') end [2025-03-03 16:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:37:04] Production.INFO: 1 [2025-03-03 16:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: ==6218== Releasing lock... [2025-03-03 16:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:37:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:37:05] Production.INFO: Total Charge 0 [2025-03-03 16:37:05] Production.INFO: CreateAllLog End [2025-03-03 16:37:05] Production.INFO: Account Balance End. [2025-03-03 16:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:37:05] Production.INFO: ==6214== Releasing lock... [2025-03-03 16:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:37:06 [end_date_ymd] => 2025-03-03 16:37:06 [RateCDR] => 1 ) [2025-03-03 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:37:06' and `end` < '2025-03-03 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:37:13] Production.ERROR: CronJobId end10 [2025-03-03 16:37:13] Production.INFO: ==6212== Releasing lock... [2025-03-03 16:37:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:37:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:37:14] Production.INFO: call_cost start [2025-03-03 16:37:14] Production.INFO: call_cost end [2025-03-03 16:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:37:15] Production.INFO: ==6208== Releasing lock... [2025-03-03 16:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:37:19] Production.INFO: count ==6411 [2025-03-03 16:37:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:37:06 - End Time 2025-03-03 16:37:06 [2025-03-03 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599735', 'tblTempUsageDetail_20' ) start [2025-03-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599735', 'tblTempUsageDetail_20' ) end [2025-03-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599735', 'tblTempVendorCDR_20' ) start [2025-03-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599735', 'tblTempVendorCDR_20' ) end [2025-03-03 16:37:22] Production.INFO: ProcessCDR(1,14599735,1,1,2) [2025-03-03 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599735', 'tblTempUsageDetail_20' ) start [2025-03-03 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599735', 'tblTempUsageDetail_20' ) end [2025-03-03 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:37:28] Production.INFO: ==6216== Releasing lock... [2025-03-03 16:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:37:28] Production.INFO: 76 MB #Memory Used# [2025-03-03 21:38:01] Production.INFO: ==6298== Lock acquired, processing the job... [2025-03-03 21:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:38:01] Production.INFO: neon service started [2025-03-03 21:38:01] Production.INFO: neon service started [2025-03-03 21:38:01] Production.INFO: ==6298== Releasing lock... [2025-03-03 21:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:38:02] Production.INFO: ==6300== Lock acquired, processing the job... [2025-03-03 16:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:38:02] Production.INFO: ==6300== Releasing lock... [2025-03-03 16:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:38:02] Production.INFO: ==6302== Lock acquired, processing the job... [2025-03-03 21:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:38:02] Production.INFO: ==6302== Releasing lock... [2025-03-03 21:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:38:03] Production.INFO: ==6307== Lock acquired, processing the job... [2025-03-03 16:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:38:03] Production.INFO: ==6304== Lock acquired, processing the job... [2025-03-03 16:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:38:03] Production.INFO: ==6313== Lock acquired, processing the job... [2025-03-03 16:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:38:03] Production.INFO: ==6309== Lock acquired, processing the job... [2025-03-03 16:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:38:03] Production.INFO: ==6307== Releasing lock... [2025-03-03 16:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:38:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:38:03] Production.INFO: ==6311== Lock acquired, processing the job... [2025-03-03 16:38:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:38:03] Production.INFO: ==6315== Lock acquired, processing the job... [2025-03-03 16:38:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:38:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:38:03] Production.INFO: Account Balance Start. [2025-03-03 16:38:03] Production.INFO: CreateAllLog Start [2025-03-03 16:38:03] Production.INFO: 117 [2025-03-03 16:38:03] Production.ERROR: done [2025-03-03 16:38:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:38:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:38:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:38:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: count ==13 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:38:04] Production.INFO: count ==21 [2025-03-03 16:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599739') start [2025-03-03 16:38:04] Production.ERROR: done [2025-03-03 16:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599739') end [2025-03-03 16:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:38:04] Production.INFO: 1 [2025-03-03 16:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: ==6315== Releasing lock... [2025-03-03 16:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:38:04] Production.INFO: Total Charge 0 [2025-03-03 16:38:04] Production.INFO: CreateAllLog End [2025-03-03 16:38:05] Production.INFO: Account Balance End. [2025-03-03 16:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:38:05] Production.INFO: ==6311== Releasing lock... [2025-03-03 16:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:38:05 [end_date_ymd] => 2025-03-03 16:38:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:38:05' and `end` < '2025-03-03 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-03-03 16:38:13] Production.ERROR: CronJobId end10 [2025-03-03 16:38:13] Production.INFO: ==6309== Releasing lock... [2025-03-03 16:38:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:38:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:38:15] Production.INFO: call_cost start [2025-03-03 16:38:15] Production.INFO: call_cost end [2025-03-03 16:38:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:38:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:38:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:38:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:38:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:38:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:38:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:38:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:38:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:38:15] Production.INFO: ==6304== Releasing lock... [2025-03-03 16:38:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:38:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:38:19] Production.INFO: count ==6369 [2025-03-03 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:38:05 - End Time 2025-03-03 16:38:05 [2025-03-03 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599740', 'tblTempUsageDetail_20' ) start [2025-03-03 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599740', 'tblTempUsageDetail_20' ) end [2025-03-03 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599740', 'tblTempVendorCDR_20' ) start [2025-03-03 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599740', 'tblTempVendorCDR_20' ) end [2025-03-03 16:38:22] Production.INFO: ProcessCDR(1,14599740,1,1,2) [2025-03-03 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599740', 'tblTempUsageDetail_20' ) start [2025-03-03 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599740', 'tblTempUsageDetail_20' ) end [2025-03-03 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:38:27] Production.INFO: ==6313== Releasing lock... [2025-03-03 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:38:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-03 21:39:02] Production.INFO: ==6395== Lock acquired, processing the job... [2025-03-03 21:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:39:02] Production.INFO: neon service started [2025-03-03 21:39:02] Production.INFO: neon service started [2025-03-03 21:39:02] Production.INFO: ==6395== Releasing lock... [2025-03-03 21:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:39:02] Production.INFO: ==6397== Lock acquired, processing the job... [2025-03-03 16:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:39:02] Production.INFO: ==6397== Releasing lock... [2025-03-03 16:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:39:02] Production.INFO: ==6399== Lock acquired, processing the job... [2025-03-03 21:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:39:03] Production.INFO: ==6399== Releasing lock... [2025-03-03 21:39:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:39:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:39:03] Production.INFO: ==6405== Lock acquired, processing the job... [2025-03-03 16:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:39:03] Production.INFO: ==6412== Lock acquired, processing the job... [2025-03-03 16:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:39:03] Production.INFO: ==6401== Lock acquired, processing the job... [2025-03-03 16:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:39:03] Production.INFO: count ==13 [2025-03-03 16:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:39:03] Production.INFO: count ==21 [2025-03-03 16:39:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599741') start [2025-03-03 16:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:39:03] Production.INFO: ==6403== Lock acquired, processing the job... [2025-03-03 16:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599741') end [2025-03-03 16:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:39:04] Production.INFO: 1 [2025-03-03 16:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:39:04] Production.INFO: ==6408== Lock acquired, processing the job... [2025-03-03 16:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:39:04] Production.INFO: ==6410== Lock acquired, processing the job... [2025-03-03 16:39:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:39:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:39:04] Production.INFO: ==6412== Releasing lock... [2025-03-03 16:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:39:04] Production.INFO: Account Balance Start. [2025-03-03 16:39:04] Production.INFO: CreateAllLog Start [2025-03-03 16:39:04] Production.INFO: 117 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: ==6403== Releasing lock... [2025-03-03 16:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.ERROR: done [2025-03-03 16:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:39:04] Production.ERROR: done [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:39:05 [end_date_ymd] => 2025-03-03 16:39:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:39:05' and `end` < '2025-03-03 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-03-03 16:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:39:05] Production.INFO: Total Charge 0 [2025-03-03 16:39:05] Production.INFO: CreateAllLog End [2025-03-03 16:39:06] Production.INFO: Account Balance End. [2025-03-03 16:39:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:39:06] Production.INFO: ==6408== Releasing lock... [2025-03-03 16:39:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:39:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:39:14] Production.ERROR: CronJobId end10 [2025-03-03 16:39:14] Production.INFO: ==6405== Releasing lock... [2025-03-03 16:39:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:39:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:39:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:39:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:39:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:39:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:39:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:39:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:39:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:39:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:39:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:39:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:39:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:39:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:39:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:39:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:39:16] Production.INFO: call_cost start [2025-03-03 16:39:16] Production.INFO: call_cost end [2025-03-03 16:39:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:39:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:39:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:39:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:39:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:39:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:39:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:39:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:39:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:39:17] Production.INFO: ==6401== Releasing lock... [2025-03-03 16:39:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:39:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:39:19] Production.INFO: count ==6354 [2025-03-03 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:39:05 - End Time 2025-03-03 16:39:05 [2025-03-03 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599745', 'tblTempUsageDetail_20' ) start [2025-03-03 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599745', 'tblTempUsageDetail_20' ) end [2025-03-03 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599745', 'tblTempVendorCDR_20' ) start [2025-03-03 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599745', 'tblTempVendorCDR_20' ) end [2025-03-03 16:39:22] Production.INFO: ProcessCDR(1,14599745,1,1,2) [2025-03-03 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599745', 'tblTempUsageDetail_20' ) start [2025-03-03 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599745', 'tblTempUsageDetail_20' ) end [2025-03-03 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:39:27] Production.INFO: ==6410== Releasing lock... [2025-03-03 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:39:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 21:40:01] Production.INFO: ==6486== Lock acquired, processing the job... [2025-03-03 21:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:40:01] Production.INFO: neon service started [2025-03-03 21:40:01] Production.INFO: neon service started [2025-03-03 21:40:01] Production.INFO: ==6486== Releasing lock... [2025-03-03 21:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:40:02] Production.INFO: ==6488== Lock acquired, processing the job... [2025-03-03 16:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:40:02] Production.INFO: ==6490== Lock acquired, processing the job... [2025-03-03 21:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:40:02] Production.INFO: ==6490== Releasing lock... [2025-03-03 21:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:40:02] Production.INFO: ==6488== Releasing lock... [2025-03-03 16:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:40:03] Production.INFO: ==6495== Lock acquired, processing the job... [2025-03-03 16:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:40:03] Production.INFO: ==6497== Lock acquired, processing the job... [2025-03-03 16:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:40:03] Production.INFO: ==6493== Lock acquired, processing the job... [2025-03-03 16:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 16:40:03] Production.INFO: ==6499== Lock acquired, processing the job... [2025-03-03 16:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 16:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:40:03] Production.ERROR: CronJob PID - 6495 [2025-03-03 16:40:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 16:40:03] Production.ERROR: CronJob ID - 5 [2025-03-03 16:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 16:40:00 [2025-03-03 16:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 16:40:03] Production.ERROR: CronJob PID - 6497 [2025-03-03 16:40:03] Production.ERROR: CronJob Title - Account Block [2025-03-03 16:40:03] Production.ERROR: CronJob ID - 7 [2025-03-03 16:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 16:40:00 [2025-03-03 16:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 16:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 16:40:03] Production.INFO: ==6505== Lock acquired, processing the job... [2025-03-03 16:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 16:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 16:40:03] Production.INFO: ==6493== Releasing lock... [2025-03-03 16:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 16:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:40:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:40:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:40:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:40:04] Production.INFO: ==6497== Releasing lock... [2025-03-03 16:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:40:04] Production.INFO: ==6501== Lock acquired, processing the job... [2025-03-03 16:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:40:04] Production.INFO: ==6503== Lock acquired, processing the job... [2025-03-03 16:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:40:04] Production.INFO: Account Balance Start. [2025-03-03 16:40:04] Production.INFO: CreateAllLog Start [2025-03-03 16:40:04] Production.INFO: 117 [2025-03-03 16:40:04] Production.INFO: ==6507== Lock acquired, processing the job... [2025-03-03 16:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.ERROR: done [2025-03-03 16:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 16:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599749', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 16:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:40:04] Production.INFO: count ==13 [2025-03-03 16:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:40:04] Production.INFO: count ==21 [2025-03-03 16:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599750') start [2025-03-03 16:40:04] Production.ERROR: done [2025-03-03 16:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.ERROR: done [2025-03-03 16:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599750') end [2025-03-03 16:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:40:04] Production.INFO: 1 [2025-03-03 16:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:40:04] Production.INFO: ==6507== Releasing lock... [2025-03-03 16:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:40:05] Production.INFO: Total Charge 0 [2025-03-03 16:40:05] Production.INFO: CreateAllLog End [2025-03-03 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:40:05 [end_date_ymd] => 2025-03-03 16:40:05 [RateCDR] => 1 ) [2025-03-03 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:40:05' and `end` < '2025-03-03 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:40:06] Production.INFO: Account Balance End. [2025-03-03 16:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:40:06] Production.INFO: ==6501== Releasing lock... [2025-03-03 16:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:40:08] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599749', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 16:40:08] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 16:40:08] Production.INFO: ProcessCDR(1,14599749,1,1,2) [2025-03-03 16:40:08] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599749,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:40:08] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599749,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:40:08] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:40:08] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:40:08] Production.INFO: ==6505== Releasing lock... [2025-03-03 16:40:08] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 16:40:08] Production.INFO: 26 MB #Memory Used# [2025-03-03 16:40:15] Production.ERROR: CronJobId end10 [2025-03-03 16:40:15] Production.INFO: ==6499== Releasing lock... [2025-03-03 16:40:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:40:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:40:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:40:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:40:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:40:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:40:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:40:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:40:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:40:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:40:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:40:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:40:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:40:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:40:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:40:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:40:16] Production.INFO: call_cost start [2025-03-03 16:40:16] Production.INFO: call_cost end [2025-03-03 16:40:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:40:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:40:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:40:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:40:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:40:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:40:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:40:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:40:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:40:17] Production.INFO: ==6495== Releasing lock... [2025-03-03 16:40:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:40:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:40:19] Production.INFO: count ==6329 [2025-03-03 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:40:05 - End Time 2025-03-03 16:40:05 [2025-03-03 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599751', 'tblTempUsageDetail_20' ) start [2025-03-03 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599751', 'tblTempUsageDetail_20' ) end [2025-03-03 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599751', 'tblTempVendorCDR_20' ) start [2025-03-03 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599751', 'tblTempVendorCDR_20' ) end [2025-03-03 16:40:22] Production.INFO: ProcessCDR(1,14599751,1,1,2) [2025-03-03 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599751', 'tblTempUsageDetail_20' ) start [2025-03-03 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599751', 'tblTempUsageDetail_20' ) end [2025-03-03 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:40:28] Production.INFO: ==6503== Releasing lock... [2025-03-03 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:40:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-03 21:41:02] Production.INFO: ==6582== Lock acquired, processing the job... [2025-03-03 21:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:41:02] Production.INFO: neon service started [2025-03-03 21:41:02] Production.INFO: neon service started [2025-03-03 21:41:02] Production.INFO: ==6582== Releasing lock... [2025-03-03 21:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:41:02] Production.INFO: ==6584== Lock acquired, processing the job... [2025-03-03 16:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:41:02] Production.INFO: ==6584== Releasing lock... [2025-03-03 16:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:41:02] Production.INFO: ==6586== Lock acquired, processing the job... [2025-03-03 21:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:41:03] Production.INFO: ==6586== Releasing lock... [2025-03-03 21:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:41:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:41:03] Production.INFO: ==6592== Lock acquired, processing the job... [2025-03-03 16:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:41:03] Production.INFO: ==6588== Lock acquired, processing the job... [2025-03-03 16:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:41:03] Production.INFO: ==6598== Lock acquired, processing the job... [2025-03-03 16:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:41:03] Production.INFO: ==6590== Lock acquired, processing the job... [2025-03-03 16:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:41:03] Production.INFO: count ==13 [2025-03-03 16:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:41:03] Production.INFO: count ==21 [2025-03-03 16:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599753') start [2025-03-03 16:41:04] Production.INFO: ==6594== Lock acquired, processing the job... [2025-03-03 16:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:41:04] Production.INFO: ==6596== Lock acquired, processing the job... [2025-03-03 16:41:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599753') end [2025-03-03 16:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:41:04] Production.INFO: 1 [2025-03-03 16:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:41:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:41:04] Production.INFO: ==6598== Releasing lock... [2025-03-03 16:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:41:04] Production.INFO: Account Balance Start. [2025-03-03 16:41:04] Production.INFO: CreateAllLog Start [2025-03-03 16:41:04] Production.INFO: 117 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: ==6590== Releasing lock... [2025-03-03 16:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.ERROR: done [2025-03-03 16:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.ERROR: done [2025-03-03 16:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:41:05] Production.INFO: Total Charge 0 [2025-03-03 16:41:05] Production.INFO: CreateAllLog End [2025-03-03 16:41:05] Production.INFO: Account Balance End. [2025-03-03 16:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:41:05] Production.INFO: ==6594== Releasing lock... [2025-03-03 16:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:41:05 [end_date_ymd] => 2025-03-03 16:41:05 [RateCDR] => 1 ) [2025-03-03 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:41:05' and `end` < '2025-03-03 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:41:12] Production.ERROR: CronJobId end10 [2025-03-03 16:41:12] Production.INFO: ==6592== Releasing lock... [2025-03-03 16:41:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:41:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:41:14] Production.INFO: call_cost start [2025-03-03 16:41:14] Production.INFO: call_cost end [2025-03-03 16:41:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:41:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:41:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:41:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:41:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:41:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:41:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:41:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:41:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:41:15] Production.INFO: ==6588== Releasing lock... [2025-03-03 16:41:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:41:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:41:19] Production.INFO: count ==6302 [2025-03-03 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:41:05 - End Time 2025-03-03 16:41:05 [2025-03-03 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599756', 'tblTempUsageDetail_20' ) start [2025-03-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599756', 'tblTempUsageDetail_20' ) end [2025-03-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599756', 'tblTempVendorCDR_20' ) start [2025-03-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599756', 'tblTempVendorCDR_20' ) end [2025-03-03 16:41:23] Production.INFO: ProcessCDR(1,14599756,1,1,2) [2025-03-03 16:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599756', 'tblTempUsageDetail_20' ) start [2025-03-03 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599756', 'tblTempUsageDetail_20' ) end [2025-03-03 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:41:28] Production.INFO: ==6596== Releasing lock... [2025-03-03 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:41:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-03 21:42:01] Production.INFO: ==6672== Lock acquired, processing the job... [2025-03-03 21:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:42:01] Production.INFO: neon service started [2025-03-03 21:42:01] Production.INFO: neon service started [2025-03-03 21:42:01] Production.INFO: ==6672== Releasing lock... [2025-03-03 21:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:42:01] Production.INFO: ==6674== Lock acquired, processing the job... [2025-03-03 16:42:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:42:02] Production.INFO: ==6674== Releasing lock... [2025-03-03 16:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:42:02] Production.INFO: ==6676== Lock acquired, processing the job... [2025-03-03 21:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:42:02] Production.INFO: ==6676== Releasing lock... [2025-03-03 21:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:42:03] Production.INFO: ==6680== Lock acquired, processing the job... [2025-03-03 16:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:42:03] Production.INFO: ==6684== Lock acquired, processing the job... [2025-03-03 16:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:42:03] Production.INFO: ==6688== Lock acquired, processing the job... [2025-03-03 16:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:42:03] Production.INFO: ==6682== Lock acquired, processing the job... [2025-03-03 16:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:42:03] Production.INFO: Account Balance Start. [2025-03-03 16:42:03] Production.INFO: CreateAllLog Start [2025-03-03 16:42:03] Production.INFO: ==6678== Lock acquired, processing the job... [2025-03-03 16:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:42:03] Production.INFO: 117 [2025-03-03 16:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:42:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:42:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:42:03] Production.INFO: count ==13 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:42:03] Production.INFO: count ==21 [2025-03-03 16:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599760') start [2025-03-03 16:42:03] Production.INFO: ==6686== Lock acquired, processing the job... [2025-03-03 16:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:42:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599760') end [2025-03-03 16:42:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:42:03] Production.INFO: 1 [2025-03-03 16:42:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:42:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:42:03] Production.INFO: ==6680== Releasing lock... [2025-03-03 16:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:42:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:42:03] Production.INFO: ==6688== Releasing lock... [2025-03-03 16:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:42:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:42:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.ERROR: done [2025-03-03 16:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.ERROR: done [2025-03-03 16:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:42:04] Production.INFO: Total Charge 0 [2025-03-03 16:42:04] Production.INFO: CreateAllLog End [2025-03-03 16:42:04] Production.INFO: Account Balance End. [2025-03-03 16:42:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:42:04] Production.INFO: ==6684== Releasing lock... [2025-03-03 16:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:42:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:42:05 [end_date_ymd] => 2025-03-03 16:42:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:42:05' and `end` < '2025-03-03 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-03-03 16:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:42:14] Production.ERROR: CronJobId end10 [2025-03-03 16:42:14] Production.INFO: ==6682== Releasing lock... [2025-03-03 16:42:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:42:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:42:14] Production.INFO: call_cost start [2025-03-03 16:42:14] Production.INFO: call_cost end [2025-03-03 16:42:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:42:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:42:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:42:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:42:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:42:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:42:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:42:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:42:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:42:15] Production.INFO: ==6678== Releasing lock... [2025-03-03 16:42:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:42:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:42:18] Production.INFO: count ==6295 [2025-03-03 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:42:05 - End Time 2025-03-03 16:42:05 [2025-03-03 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599761', 'tblTempUsageDetail_20' ) start [2025-03-03 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599761', 'tblTempUsageDetail_20' ) end [2025-03-03 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599761', 'tblTempVendorCDR_20' ) start [2025-03-03 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599761', 'tblTempVendorCDR_20' ) end [2025-03-03 16:42:22] Production.INFO: ProcessCDR(1,14599761,1,1,2) [2025-03-03 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599761', 'tblTempUsageDetail_20' ) start [2025-03-03 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599761', 'tblTempUsageDetail_20' ) end [2025-03-03 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:42:27] Production.INFO: ==6686== Releasing lock... [2025-03-03 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:42:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-03 21:43:01] Production.INFO: ==6758== Lock acquired, processing the job... [2025-03-03 21:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:43:01] Production.INFO: neon service started [2025-03-03 21:43:01] Production.INFO: neon service started [2025-03-03 21:43:01] Production.INFO: ==6758== Releasing lock... [2025-03-03 21:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:43:02] Production.INFO: ==6760== Lock acquired, processing the job... [2025-03-03 16:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:43:02] Production.INFO: ==6760== Releasing lock... [2025-03-03 16:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:43:02] Production.INFO: ==6762== Lock acquired, processing the job... [2025-03-03 21:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:43:02] Production.INFO: ==6762== Releasing lock... [2025-03-03 21:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:43:03] Production.INFO: ==6770== Lock acquired, processing the job... [2025-03-03 16:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:43:03] Production.INFO: ==6772== Lock acquired, processing the job... [2025-03-03 16:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:43:03] Production.INFO: Account Balance Start. [2025-03-03 16:43:03] Production.INFO: CreateAllLog Start [2025-03-03 16:43:03] Production.INFO: 117 [2025-03-03 16:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:43:03] Production.INFO: ==6764== Lock acquired, processing the job... [2025-03-03 16:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:03] Production.INFO: ==6766== Lock acquired, processing the job... [2025-03-03 16:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:43:03] Production.INFO: ==6768== Lock acquired, processing the job... [2025-03-03 16:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:43:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.ERROR: done [2025-03-03 16:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:43:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:43:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:43:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:43:04] Production.INFO: ==6774== Lock acquired, processing the job... [2025-03-03 16:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:43:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:43:04] Production.ERROR: done [2025-03-03 16:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: count ==13 [2025-03-03 16:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:43:04] Production.INFO: count ==21 [2025-03-03 16:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599766') start [2025-03-03 16:43:04] Production.INFO: ==6766== Releasing lock... [2025-03-03 16:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599766') end [2025-03-03 16:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:43:04] Production.INFO: 1 [2025-03-03 16:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:43:04] Production.INFO: ==6774== Releasing lock... [2025-03-03 16:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:43:05] Production.INFO: Total Charge 0 [2025-03-03 16:43:05] Production.INFO: CreateAllLog End [2025-03-03 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:43:05 [end_date_ymd] => 2025-03-03 16:43:05 [RateCDR] => 1 ) [2025-03-03 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:43:05' and `end` < '2025-03-03 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:43:05] Production.INFO: Account Balance End. [2025-03-03 16:43:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:43:05] Production.INFO: ==6770== Releasing lock... [2025-03-03 16:43:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:43:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:43:14] Production.ERROR: CronJobId end10 [2025-03-03 16:43:14] Production.INFO: ==6768== Releasing lock... [2025-03-03 16:43:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:43:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:43:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:43:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:43:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:43:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:43:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:43:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:43:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:43:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:43:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:43:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:43:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:43:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:43:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:43:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:43:14] Production.INFO: call_cost start [2025-03-03 16:43:14] Production.INFO: call_cost end [2025-03-03 16:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:43:15] Production.INFO: ==6764== Releasing lock... [2025-03-03 16:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:43:18] Production.INFO: count ==6290 [2025-03-03 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:43:05 - End Time 2025-03-03 16:43:05 [2025-03-03 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599765', 'tblTempUsageDetail_20' ) start [2025-03-03 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599765', 'tblTempUsageDetail_20' ) end [2025-03-03 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599765', 'tblTempVendorCDR_20' ) start [2025-03-03 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599765', 'tblTempVendorCDR_20' ) end [2025-03-03 16:43:21] Production.INFO: ProcessCDR(1,14599765,1,1,2) [2025-03-03 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599765', 'tblTempUsageDetail_20' ) start [2025-03-03 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599765', 'tblTempUsageDetail_20' ) end [2025-03-03 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:43:27] Production.INFO: ==6772== Releasing lock... [2025-03-03 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:43:27] Production.INFO: 75 MB #Memory Used# [2025-03-03 21:44:01] Production.INFO: ==6853== Lock acquired, processing the job... [2025-03-03 21:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:44:01] Production.INFO: neon service started [2025-03-03 21:44:01] Production.INFO: neon service started [2025-03-03 21:44:01] Production.INFO: ==6853== Releasing lock... [2025-03-03 21:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:44:01] Production.INFO: ==6855== Lock acquired, processing the job... [2025-03-03 16:44:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:44:02] Production.INFO: ==6855== Releasing lock... [2025-03-03 16:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:44:02] Production.INFO: ==6857== Lock acquired, processing the job... [2025-03-03 21:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:44:02] Production.INFO: ==6857== Releasing lock... [2025-03-03 21:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:44:03] Production.INFO: ==6866== Lock acquired, processing the job... [2025-03-03 16:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:44:03] Production.INFO: ==6870== Lock acquired, processing the job... [2025-03-03 16:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:44:03] Production.INFO: ==6862== Lock acquired, processing the job... [2025-03-03 16:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:44:03] Production.INFO: ==6860== Lock acquired, processing the job... [2025-03-03 16:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:44:03] Production.INFO: Account Balance Start. [2025-03-03 16:44:03] Production.INFO: CreateAllLog Start [2025-03-03 16:44:03] Production.INFO: 117 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:44:03] Production.INFO: ==6864== Lock acquired, processing the job... [2025-03-03 16:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:44:03] Production.INFO: count ==13 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:44:03] Production.INFO: count ==21 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599768') start [2025-03-03 16:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: ==6868== Lock acquired, processing the job... [2025-03-03 16:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:44:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:44:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599768') end [2025-03-03 16:44:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:44:03] Production.INFO: 1 [2025-03-03 16:44:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:44:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: ==6870== Releasing lock... [2025-03-03 16:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:44:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:44:03] Production.INFO: ==6862== Releasing lock... [2025-03-03 16:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:44:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-18 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-19 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-20 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-21 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.ERROR: done [2025-03-03 16:44:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-22 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:03] Production.INFO: Date 2025-02-23 [2025-03-03 16:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.ERROR: done [2025-03-03 16:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:44:04] Production.INFO: Total Charge 0 [2025-03-03 16:44:04] Production.INFO: CreateAllLog End [2025-03-03 16:44:04] Production.INFO: Account Balance End. [2025-03-03 16:44:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:44:04] Production.INFO: ==6866== Releasing lock... [2025-03-03 16:44:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:44:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:44:05 [end_date_ymd] => 2025-03-03 16:44:05 [RateCDR] => 1 ) [2025-03-03 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:44:05' and `end` < '2025-03-03 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:44:13] Production.ERROR: CronJobId end10 [2025-03-03 16:44:13] Production.INFO: ==6864== Releasing lock... [2025-03-03 16:44:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:44:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:44:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:44:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:44:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:44:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:44:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:44:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:44:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:44:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:44:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:44:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:44:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:44:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:44:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:44:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:44:14] Production.INFO: call_cost start [2025-03-03 16:44:14] Production.INFO: call_cost end [2025-03-03 16:44:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:44:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:44:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:44:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:44:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:44:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:44:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:44:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:44:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:44:15] Production.INFO: ==6860== Releasing lock... [2025-03-03 16:44:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:44:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:44:18] Production.INFO: count ==6290 [2025-03-03 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:44:05 - End Time 2025-03-03 16:44:05 [2025-03-03 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599771', 'tblTempUsageDetail_20' ) start [2025-03-03 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599771', 'tblTempUsageDetail_20' ) end [2025-03-03 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599771', 'tblTempVendorCDR_20' ) start [2025-03-03 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599771', 'tblTempVendorCDR_20' ) end [2025-03-03 16:44:22] Production.INFO: ProcessCDR(1,14599771,1,1,2) [2025-03-03 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599771', 'tblTempUsageDetail_20' ) start [2025-03-03 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599771', 'tblTempUsageDetail_20' ) end [2025-03-03 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:44:27] Production.INFO: ==6868== Releasing lock... [2025-03-03 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:44:27] Production.INFO: 75 MB #Memory Used# [2025-03-03 21:45:01] Production.INFO: ==6948== Lock acquired, processing the job... [2025-03-03 21:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:45:01] Production.INFO: neon service started [2025-03-03 21:45:01] Production.INFO: neon service started [2025-03-03 21:45:01] Production.INFO: ==6948== Releasing lock... [2025-03-03 21:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:45:02] Production.INFO: ==6950== Lock acquired, processing the job... [2025-03-03 16:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:45:02] Production.INFO: ==6952== Lock acquired, processing the job... [2025-03-03 21:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:45:02] Production.INFO: ==6952== Releasing lock... [2025-03-03 21:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:45:02] Production.INFO: ==6950== Releasing lock... [2025-03-03 16:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:45:03] Production.INFO: ==6955== Lock acquired, processing the job... [2025-03-03 16:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:45:03] Production.INFO: ==6957== Lock acquired, processing the job... [2025-03-03 16:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:45:03] Production.INFO: ==6965== Lock acquired, processing the job... [2025-03-03 16:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:45:03] Production.INFO: ==6959== Lock acquired, processing the job... [2025-03-03 16:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:45:03] Production.INFO: ==6961== Lock acquired, processing the job... [2025-03-03 16:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:45:03] Production.INFO: count ==13 [2025-03-03 16:45:03] Production.INFO: ==6963== Lock acquired, processing the job... [2025-03-03 16:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:45:03] Production.INFO: count ==21 [2025-03-03 16:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599774') start [2025-03-03 16:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:45:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:45:04] Production.INFO: Account Balance Start. [2025-03-03 16:45:04] Production.INFO: CreateAllLog Start [2025-03-03 16:45:04] Production.INFO: 117 [2025-03-03 16:45:04] Production.INFO: ==6957== Releasing lock... [2025-03-03 16:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:45:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599774') end [2025-03-03 16:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:45:04] Production.INFO: 1 [2025-03-03 16:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:45:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: ==6965== Releasing lock... [2025-03-03 16:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:45:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.ERROR: done [2025-03-03 16:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.ERROR: done [2025-03-03 16:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:45:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:45:05] Production.INFO: Total Charge 0 [2025-03-03 16:45:05] Production.INFO: CreateAllLog End [2025-03-03 16:45:05] Production.INFO: Account Balance End. [2025-03-03 16:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:45:05] Production.INFO: ==6961== Releasing lock... [2025-03-03 16:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:45:06 [end_date_ymd] => 2025-03-03 16:45:06 [RateCDR] => 1 ) [2025-03-03 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:45:06' and `end` < '2025-03-03 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:45:12] Production.ERROR: CronJobId end10 [2025-03-03 16:45:12] Production.INFO: ==6959== Releasing lock... [2025-03-03 16:45:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:45:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:45:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:45:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:45:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:45:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:45:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:45:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:45:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:45:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:45:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:45:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:45:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:45:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:45:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:45:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:45:14] Production.INFO: call_cost start [2025-03-03 16:45:14] Production.INFO: call_cost end [2025-03-03 16:45:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:45:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:45:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:45:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:45:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:45:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:45:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:45:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:45:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:45:15] Production.INFO: ==6955== Releasing lock... [2025-03-03 16:45:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:45:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:45:19] Production.INFO: count ==6288 [2025-03-03 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:45:06 - End Time 2025-03-03 16:45:06 [2025-03-03 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599776', 'tblTempUsageDetail_20' ) start [2025-03-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599776', 'tblTempUsageDetail_20' ) end [2025-03-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599776', 'tblTempVendorCDR_20' ) start [2025-03-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599776', 'tblTempVendorCDR_20' ) end [2025-03-03 16:45:23] Production.INFO: ProcessCDR(1,14599776,1,1,2) [2025-03-03 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599776', 'tblTempUsageDetail_20' ) start [2025-03-03 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599776', 'tblTempUsageDetail_20' ) end [2025-03-03 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:45:28] Production.INFO: ==6963== Releasing lock... [2025-03-03 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:45:28] Production.INFO: 75 MB #Memory Used# [2025-03-03 21:46:02] Production.INFO: ==7039== Lock acquired, processing the job... [2025-03-03 21:46:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:46:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:46:02] Production.INFO: neon service started [2025-03-03 21:46:02] Production.INFO: neon service started [2025-03-03 21:46:02] Production.INFO: ==7039== Releasing lock... [2025-03-03 21:46:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:46:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:46:02] Production.INFO: ==7043== Lock acquired, processing the job... [2025-03-03 21:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:46:02] Production.INFO: ==7043== Releasing lock... [2025-03-03 21:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:46:02] Production.INFO: ==7041== Lock acquired, processing the job... [2025-03-03 16:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:46:03] Production.INFO: ==7041== Releasing lock... [2025-03-03 16:46:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:46:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:46:03] Production.INFO: ==7046== Lock acquired, processing the job... [2025-03-03 16:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:46:03] Production.INFO: ==7050== Lock acquired, processing the job... [2025-03-03 16:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:46:04] Production.INFO: ==7052== Lock acquired, processing the job... [2025-03-03 16:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:46:04] Production.INFO: ==7048== Lock acquired, processing the job... [2025-03-03 16:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:46:04] Production.INFO: Account Balance Start. [2025-03-03 16:46:04] Production.INFO: CreateAllLog Start [2025-03-03 16:46:04] Production.INFO: 117 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: ==7054== Lock acquired, processing the job... [2025-03-03 16:46:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:46:04] Production.INFO: ==7056== Lock acquired, processing the job... [2025-03-03 16:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:46:04] Production.INFO: ==7048== Releasing lock... [2025-03-03 16:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: count ==13 [2025-03-03 16:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:46:04] Production.INFO: count ==21 [2025-03-03 16:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599780') start [2025-03-03 16:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:46:04] Production.ERROR: done [2025-03-03 16:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599780') end [2025-03-03 16:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:46:04] Production.INFO: 1 [2025-03-03 16:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:46:04] Production.INFO: ==7056== Releasing lock... [2025-03-03 16:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:04] Production.ERROR: done [2025-03-03 16:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:46:05] Production.INFO: Total Charge 0 [2025-03-03 16:46:05] Production.INFO: CreateAllLog End [2025-03-03 16:46:05] Production.INFO: Account Balance End. [2025-03-03 16:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:46:05] Production.INFO: ==7052== Releasing lock... [2025-03-03 16:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:46:06 [end_date_ymd] => 2025-03-03 16:46:06 [RateCDR] => 1 ) [2025-03-03 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:46:06' and `end` < '2025-03-03 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:46:14] Production.ERROR: CronJobId end10 [2025-03-03 16:46:14] Production.INFO: ==7050== Releasing lock... [2025-03-03 16:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:46:15] Production.INFO: call_cost start [2025-03-03 16:46:15] Production.INFO: call_cost end [2025-03-03 16:46:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:46:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:46:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:46:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:46:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:46:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:46:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:46:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:46:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:46:16] Production.INFO: ==7046== Releasing lock... [2025-03-03 16:46:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:46:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:46:19] Production.INFO: count ==6276 [2025-03-03 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:46:06 - End Time 2025-03-03 16:46:06 [2025-03-03 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599781', 'tblTempUsageDetail_20' ) start [2025-03-03 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599781', 'tblTempUsageDetail_20' ) end [2025-03-03 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599781', 'tblTempVendorCDR_20' ) start [2025-03-03 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599781', 'tblTempVendorCDR_20' ) end [2025-03-03 16:46:22] Production.INFO: ProcessCDR(1,14599781,1,1,2) [2025-03-03 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599781', 'tblTempUsageDetail_20' ) start [2025-03-03 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599781', 'tblTempUsageDetail_20' ) end [2025-03-03 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:46:27] Production.INFO: ==7054== Releasing lock... [2025-03-03 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:46:27] Production.INFO: 75 MB #Memory Used# [2025-03-03 21:47:01] Production.INFO: ==7121== Lock acquired, processing the job... [2025-03-03 21:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:47:01] Production.INFO: neon service started [2025-03-03 21:47:01] Production.INFO: neon service started [2025-03-03 21:47:01] Production.INFO: ==7121== Releasing lock... [2025-03-03 21:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:47:02] Production.INFO: ==7123== Lock acquired, processing the job... [2025-03-03 16:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:47:02] Production.INFO: ==7123== Releasing lock... [2025-03-03 16:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:47:02] Production.INFO: ==7125== Lock acquired, processing the job... [2025-03-03 21:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:47:02] Production.INFO: ==7125== Releasing lock... [2025-03-03 21:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:47:03] Production.INFO: ==7136== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:47:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:47:03] Production.INFO: ==7134== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:47:03] Production.INFO: ==7128== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:47:03] Production.INFO: Account Balance Start. [2025-03-03 16:47:03] Production.INFO: CreateAllLog Start [2025-03-03 16:47:03] Production.INFO: 117 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:47:03] Production.INFO: ==7130== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: ==7132== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:47:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:47:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: ==7138== Lock acquired, processing the job... [2025-03-03 16:47:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:47:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.ERROR: done [2025-03-03 16:47:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:47:03] Production.INFO: Date 2025-02-18 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-19 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-20 [2025-03-03 16:47:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: count ==13 [2025-03-03 16:47:03] Production.INFO: Date 2025-02-21 [2025-03-03 16:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:47:04] Production.INFO: count ==21 [2025-03-03 16:47:04] Production.INFO: ==7130== Releasing lock... [2025-03-03 16:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599785') start [2025-03-03 16:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:47:04] Production.ERROR: done [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599785') end [2025-03-03 16:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:47:04] Production.INFO: 1 [2025-03-03 16:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:47:04] Production.INFO: ==7138== Releasing lock... [2025-03-03 16:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:47:04] Production.INFO: Total Charge 0 [2025-03-03 16:47:04] Production.INFO: CreateAllLog End [2025-03-03 16:47:04] Production.INFO: Account Balance End. [2025-03-03 16:47:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:47:04] Production.INFO: ==7134== Releasing lock... [2025-03-03 16:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:47:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:47:05 [end_date_ymd] => 2025-03-03 16:47:05 [RateCDR] => 1 ) [2025-03-03 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:47:05' and `end` < '2025-03-03 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:47:14] Production.ERROR: CronJobId end10 [2025-03-03 16:47:14] Production.INFO: ==7132== Releasing lock... [2025-03-03 16:47:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:47:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:47:14] Production.INFO: call_cost start [2025-03-03 16:47:14] Production.INFO: call_cost end [2025-03-03 16:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:47:15] Production.INFO: ==7128== Releasing lock... [2025-03-03 16:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:47:18] Production.INFO: count ==6273 [2025-03-03 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:47:05 - End Time 2025-03-03 16:47:05 [2025-03-03 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599786', 'tblTempUsageDetail_20' ) start [2025-03-03 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599786', 'tblTempUsageDetail_20' ) end [2025-03-03 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599786', 'tblTempVendorCDR_20' ) start [2025-03-03 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599786', 'tblTempVendorCDR_20' ) end [2025-03-03 16:47:22] Production.INFO: ProcessCDR(1,14599786,1,1,2) [2025-03-03 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599786', 'tblTempUsageDetail_20' ) start [2025-03-03 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599786', 'tblTempUsageDetail_20' ) end [2025-03-03 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:47:27] Production.INFO: ==7136== Releasing lock... [2025-03-03 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:47:27] Production.INFO: 75 MB #Memory Used# [2025-03-03 21:48:02] Production.INFO: ==7197== Lock acquired, processing the job... [2025-03-03 21:48:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:48:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:48:02] Production.INFO: neon service started [2025-03-03 21:48:02] Production.INFO: neon service started [2025-03-03 21:48:02] Production.INFO: ==7197== Releasing lock... [2025-03-03 21:48:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:48:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:48:02] Production.INFO: ==7199== Lock acquired, processing the job... [2025-03-03 16:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:48:02] Production.INFO: ==7199== Releasing lock... [2025-03-03 16:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:48:03] Production.INFO: ==7201== Lock acquired, processing the job... [2025-03-03 21:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:48:03] Production.INFO: ==7201== Releasing lock... [2025-03-03 21:48:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:48:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:48:03] Production.INFO: ==7212== Lock acquired, processing the job... [2025-03-03 16:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:48:03] Production.INFO: ==7214== Lock acquired, processing the job... [2025-03-03 16:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:48:04] Production.INFO: ==7203== Lock acquired, processing the job... [2025-03-03 16:48:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:48:04] Production.INFO: ==7205== Lock acquired, processing the job... [2025-03-03 16:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:48:04] Production.INFO: ==7208== Lock acquired, processing the job... [2025-03-03 16:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:48:04] Production.INFO: ==7210== Lock acquired, processing the job... [2025-03-03 16:48:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:48:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:48:04] Production.INFO: count ==13 [2025-03-03 16:48:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:48:04] Production.INFO: count ==21 [2025-03-03 16:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599787') start [2025-03-03 16:48:04] Production.INFO: Account Balance Start. [2025-03-03 16:48:04] Production.INFO: CreateAllLog Start [2025-03-03 16:48:04] Production.INFO: 117 [2025-03-03 16:48:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599787') end [2025-03-03 16:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:48:04] Production.INFO: 1 [2025-03-03 16:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: ==7214== Releasing lock... [2025-03-03 16:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:48:04] Production.ERROR: done [2025-03-03 16:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: ==7205== Releasing lock... [2025-03-03 16:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:48:04] Production.ERROR: done [2025-03-03 16:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:48:05] Production.INFO: Total Charge 0 [2025-03-03 16:48:05] Production.INFO: CreateAllLog End [2025-03-03 16:48:05] Production.INFO: Account Balance End. [2025-03-03 16:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:48:05] Production.INFO: ==7210== Releasing lock... [2025-03-03 16:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:48:05 [end_date_ymd] => 2025-03-03 16:48:05 [RateCDR] => 1 ) [2025-03-03 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:48:05' and `end` < '2025-03-03 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:48:15] Production.ERROR: CronJobId end10 [2025-03-03 16:48:15] Production.INFO: ==7208== Releasing lock... [2025-03-03 16:48:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:48:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:48:15] Production.INFO: call_cost start [2025-03-03 16:48:15] Production.INFO: call_cost end [2025-03-03 16:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:48:16] Production.INFO: ==7203== Releasing lock... [2025-03-03 16:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:48:18] Production.INFO: count ==6265 [2025-03-03 16:48:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:48:05 - End Time 2025-03-03 16:48:05 [2025-03-03 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599791', 'tblTempUsageDetail_20' ) start [2025-03-03 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599791', 'tblTempUsageDetail_20' ) end [2025-03-03 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599791', 'tblTempVendorCDR_20' ) start [2025-03-03 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599791', 'tblTempVendorCDR_20' ) end [2025-03-03 16:48:22] Production.INFO: ProcessCDR(1,14599791,1,1,2) [2025-03-03 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599791', 'tblTempUsageDetail_20' ) start [2025-03-03 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599791', 'tblTempUsageDetail_20' ) end [2025-03-03 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:48:27] Production.INFO: ==7212== Releasing lock... [2025-03-03 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:48:27] Production.INFO: 75 MB #Memory Used# [2025-03-03 21:49:01] Production.INFO: ==7277== Lock acquired, processing the job... [2025-03-03 21:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:49:01] Production.INFO: neon service started [2025-03-03 21:49:01] Production.INFO: neon service started [2025-03-03 21:49:01] Production.INFO: ==7277== Releasing lock... [2025-03-03 21:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:49:01] Production.INFO: ==7279== Lock acquired, processing the job... [2025-03-03 16:49:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:49:02] Production.INFO: ==7279== Releasing lock... [2025-03-03 16:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:49:02] Production.INFO: ==7281== Lock acquired, processing the job... [2025-03-03 21:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:49:02] Production.INFO: ==7281== Releasing lock... [2025-03-03 21:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:49:03] Production.INFO: ==7289== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:49:03] Production.INFO: ==7294== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:49:03] Production.INFO: ==7283== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:49:03] Production.INFO: Account Balance Start. [2025-03-03 16:49:03] Production.INFO: CreateAllLog Start [2025-03-03 16:49:03] Production.INFO: 117 [2025-03-03 16:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:49:03] Production.INFO: count ==13 [2025-03-03 16:49:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:49:03] Production.INFO: count ==21 [2025-03-03 16:49:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599793') start [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: ==7285== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:49:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: ==7287== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:49:03] Production.INFO: ==7291== Lock acquired, processing the job... [2025-03-03 16:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:49:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599793') end [2025-03-03 16:49:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:49:03] Production.INFO: 1 [2025-03-03 16:49:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:49:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: ==7294== Releasing lock... [2025-03-03 16:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:49:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:49:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:49:03] Production.INFO: Date 2025-02-14 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:49:03] Production.INFO: Date 2025-02-15 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: Date 2025-02-16 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:03] Production.INFO: Date 2025-02-17 [2025-03-03 16:49:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.ERROR: done [2025-03-03 16:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:49:04] Production.INFO: ==7285== Releasing lock... [2025-03-03 16:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.ERROR: done [2025-03-03 16:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:49:05 [end_date_ymd] => 2025-03-03 16:49:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:49:05' and `end` < '2025-03-03 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-03-03 16:49:05] Production.INFO: Total Charge 0 [2025-03-03 16:49:05] Production.INFO: CreateAllLog End [2025-03-03 16:49:05] Production.INFO: Account Balance End. [2025-03-03 16:49:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:49:05] Production.INFO: ==7289== Releasing lock... [2025-03-03 16:49:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:49:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:49:12] Production.ERROR: CronJobId end10 [2025-03-03 16:49:12] Production.INFO: ==7287== Releasing lock... [2025-03-03 16:49:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:49:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:49:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:49:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:49:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:49:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:49:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:49:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:49:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:49:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:49:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:49:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:49:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:49:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:49:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:49:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:49:15] Production.INFO: call_cost start [2025-03-03 16:49:15] Production.INFO: call_cost end [2025-03-03 16:49:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:49:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:49:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:49:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:49:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:49:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:49:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:49:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:49:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:49:17] Production.INFO: ==7283== Releasing lock... [2025-03-03 16:49:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:49:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:49:18] Production.INFO: count ==6232 [2025-03-03 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:49:05 - End Time 2025-03-03 16:49:05 [2025-03-03 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599796', 'tblTempUsageDetail_20' ) start [2025-03-03 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599796', 'tblTempUsageDetail_20' ) end [2025-03-03 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599796', 'tblTempVendorCDR_20' ) start [2025-03-03 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599796', 'tblTempVendorCDR_20' ) end [2025-03-03 16:49:21] Production.INFO: ProcessCDR(1,14599796,1,1,2) [2025-03-03 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599796', 'tblTempUsageDetail_20' ) start [2025-03-03 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599796', 'tblTempUsageDetail_20' ) end [2025-03-03 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:49:26] Production.INFO: ==7291== Releasing lock... [2025-03-03 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:49:26] Production.INFO: 74.75 MB #Memory Used# [2025-03-03 21:50:02] Production.INFO: ==7394== Lock acquired, processing the job... [2025-03-03 21:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:50:02] Production.INFO: neon service started [2025-03-03 21:50:02] Production.INFO: neon service started [2025-03-03 21:50:02] Production.INFO: ==7394== Releasing lock... [2025-03-03 21:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:50:02] Production.INFO: ==7398== Lock acquired, processing the job... [2025-03-03 16:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:50:02] Production.INFO: ==7400== Lock acquired, processing the job... [2025-03-03 21:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:50:02] Production.INFO: ==7400== Releasing lock... [2025-03-03 21:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:50:02] Production.INFO: ==7398== Releasing lock... [2025-03-03 16:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:50:03] Production.INFO: ==7403== Lock acquired, processing the job... [2025-03-03 16:50:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 16:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 16:50:04] Production.INFO: ==7405== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:50:04] Production.INFO: ==7409== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 16:50:04] Production.INFO: ==7403== Releasing lock... [2025-03-03 16:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 16:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:50:04] Production.INFO: ==7411== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:50:04] Production.INFO: ==7413== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:50:04] Production.INFO: ==7407== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:50:04] Production.INFO: Account Balance Start. [2025-03-03 16:50:04] Production.INFO: CreateAllLog Start [2025-03-03 16:50:04] Production.INFO: 117 [2025-03-03 16:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:50:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:04] Production.INFO: ==7415== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 16:50:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:04] Production.INFO: ==7417== Lock acquired, processing the job... [2025-03-03 16:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:50:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:50:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:50:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:04] Production.INFO: count ==13 [2025-03-03 16:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:50:04] Production.INFO: count ==21 [2025-03-03 16:50:04] Production.ERROR: done [2025-03-03 16:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599800') start [2025-03-03 16:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599800') end [2025-03-03 16:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:50:05] Production.INFO: 1 [2025-03-03 16:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:50:05] Production.INFO: ==7407== Releasing lock... [2025-03-03 16:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 16:50:05] Production.INFO: ==7417== Releasing lock... [2025-03-03 16:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.ERROR: done [2025-03-03 16:50:05] Production.ERROR: done [2025-03-03 16:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 16:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599801', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 16:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:50:05] Production.INFO: Total Charge 0 [2025-03-03 16:50:05] Production.INFO: CreateAllLog End [2025-03-03 16:50:05] Production.INFO: Account Balance End. [2025-03-03 16:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:50:05] Production.INFO: ==7411== Releasing lock... [2025-03-03 16:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:50:06 [end_date_ymd] => 2025-03-03 16:50:06 [RateCDR] => 1 ) [2025-03-03 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:50:06' and `end` < '2025-03-03 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599801', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 16:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 16:50:09] Production.INFO: ProcessCDR(1,14599801,1,1,2) [2025-03-03 16:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599801,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599801,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:50:10] Production.INFO: ==7415== Releasing lock... [2025-03-03 16:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 16:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 16:50:16] Production.ERROR: CronJobId end10 [2025-03-03 16:50:16] Production.INFO: ==7409== Releasing lock... [2025-03-03 16:50:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:50:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:50:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:50:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:50:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:50:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:50:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:50:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:50:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:50:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:50:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:50:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:50:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:50:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:50:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:50:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:50:17] Production.INFO: call_cost start [2025-03-03 16:50:17] Production.INFO: call_cost end [2025-03-03 16:50:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:50:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:50:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:50:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:50:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:50:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:50:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:50:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:50:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:50:18] Production.INFO: ==7405== Releasing lock... [2025-03-03 16:50:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:50:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:50:19] Production.INFO: count ==6237 [2025-03-03 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:50:06 - End Time 2025-03-03 16:50:06 [2025-03-03 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599802', 'tblTempUsageDetail_20' ) start [2025-03-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599802', 'tblTempUsageDetail_20' ) end [2025-03-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599802', 'tblTempVendorCDR_20' ) start [2025-03-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599802', 'tblTempVendorCDR_20' ) end [2025-03-03 16:50:23] Production.INFO: ProcessCDR(1,14599802,1,1,2) [2025-03-03 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599802', 'tblTempUsageDetail_20' ) start [2025-03-03 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599802', 'tblTempUsageDetail_20' ) end [2025-03-03 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:50:28] Production.INFO: ==7413== Releasing lock... [2025-03-03 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:50:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-03 21:51:01] Production.INFO: ==7475== Lock acquired, processing the job... [2025-03-03 21:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:51:01] Production.INFO: neon service started [2025-03-03 21:51:01] Production.INFO: neon service started [2025-03-03 21:51:01] Production.INFO: ==7475== Releasing lock... [2025-03-03 21:51:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:51:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:51:01] Production.INFO: ==7478== Lock acquired, processing the job... [2025-03-03 16:51:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:51:02] Production.INFO: ==7480== Lock acquired, processing the job... [2025-03-03 21:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:51:02] Production.INFO: ==7478== Releasing lock... [2025-03-03 16:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:51:02] Production.INFO: ==7480== Releasing lock... [2025-03-03 21:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:51:03] Production.INFO: ==7482== Lock acquired, processing the job... [2025-03-03 16:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:51:03] Production.INFO: ==7484== Lock acquired, processing the job... [2025-03-03 16:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:51:03] Production.INFO: ==7486== Lock acquired, processing the job... [2025-03-03 16:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:51:03] Production.INFO: ==7488== Lock acquired, processing the job... [2025-03-03 16:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:51:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:51:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:51:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:51:03] Production.INFO: ==7490== Lock acquired, processing the job... [2025-03-03 16:51:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:51:03] Production.INFO: Account Balance Start. [2025-03-03 16:51:03] Production.INFO: CreateAllLog Start [2025-03-03 16:51:03] Production.INFO: 117 [2025-03-03 16:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:51:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:51:03] Production.INFO: ==7492== Lock acquired, processing the job... [2025-03-03 16:51:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:03] Production.INFO: ==7484== Releasing lock... [2025-03-03 16:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:51:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:03] Production.INFO: count ==13 [2025-03-03 16:51:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:51:03] Production.INFO: count ==21 [2025-03-03 16:51:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599806') start [2025-03-03 16:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599806') end [2025-03-03 16:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:51:04] Production.INFO: 1 [2025-03-03 16:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: ==7492== Releasing lock... [2025-03-03 16:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.ERROR: done [2025-03-03 16:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:51:04] Production.ERROR: done [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:51:04] Production.INFO: Total Charge 0 [2025-03-03 16:51:04] Production.INFO: CreateAllLog End [2025-03-03 16:51:04] Production.INFO: Account Balance End. [2025-03-03 16:51:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:51:04] Production.INFO: ==7488== Releasing lock... [2025-03-03 16:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:51:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:51:05 [end_date_ymd] => 2025-03-03 16:51:05 [RateCDR] => 1 ) [2025-03-03 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:51:05' and `end` < '2025-03-03 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:51:13] Production.ERROR: CronJobId end10 [2025-03-03 16:51:13] Production.INFO: ==7486== Releasing lock... [2025-03-03 16:51:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:51:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:51:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:51:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:51:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:51:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:51:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:51:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:51:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:51:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:51:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:51:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:51:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:51:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:51:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:51:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:51:14] Production.INFO: call_cost start [2025-03-03 16:51:14] Production.INFO: call_cost end [2025-03-03 16:51:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:51:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:51:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:51:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:51:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:51:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:51:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:51:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:51:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:51:15] Production.INFO: ==7482== Releasing lock... [2025-03-03 16:51:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:51:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:51:18] Production.INFO: count ==6166 [2025-03-03 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:51:05 - End Time 2025-03-03 16:51:05 [2025-03-03 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599807', 'tblTempUsageDetail_20' ) start [2025-03-03 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599807', 'tblTempUsageDetail_20' ) end [2025-03-03 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599807', 'tblTempVendorCDR_20' ) start [2025-03-03 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599807', 'tblTempVendorCDR_20' ) end [2025-03-03 16:51:21] Production.INFO: ProcessCDR(1,14599807,1,1,2) [2025-03-03 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599807', 'tblTempUsageDetail_20' ) start [2025-03-03 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599807', 'tblTempUsageDetail_20' ) end [2025-03-03 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:51:26] Production.INFO: ==7490== Releasing lock... [2025-03-03 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:51:26] Production.INFO: 74.25 MB #Memory Used# [2025-03-03 21:52:02] Production.INFO: ==7558== Lock acquired, processing the job... [2025-03-03 21:52:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:52:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:52:02] Production.INFO: neon service started [2025-03-03 21:52:02] Production.INFO: neon service started [2025-03-03 21:52:02] Production.INFO: ==7558== Releasing lock... [2025-03-03 21:52:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:52:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:52:02] Production.INFO: ==7560== Lock acquired, processing the job... [2025-03-03 16:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:52:02] Production.INFO: ==7560== Releasing lock... [2025-03-03 16:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:52:02] Production.INFO: ==7562== Lock acquired, processing the job... [2025-03-03 21:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:52:02] Production.INFO: ==7562== Releasing lock... [2025-03-03 21:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:52:03] Production.INFO: ==7569== Lock acquired, processing the job... [2025-03-03 16:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:52:03] Production.INFO: ==7565== Lock acquired, processing the job... [2025-03-03 16:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:52:03] Production.INFO: ==7573== Lock acquired, processing the job... [2025-03-03 16:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:52:04] Production.INFO: ==7567== Lock acquired, processing the job... [2025-03-03 16:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:52:04] Production.INFO: ==7575== Lock acquired, processing the job... [2025-03-03 16:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:52:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:52:04] Production.INFO: ==7571== Lock acquired, processing the job... [2025-03-03 16:52:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:52:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:52:04] Production.INFO: Account Balance Start. [2025-03-03 16:52:04] Production.INFO: CreateAllLog Start [2025-03-03 16:52:04] Production.INFO: 117 [2025-03-03 16:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:52:04] Production.INFO: count ==13 [2025-03-03 16:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:52:04] Production.INFO: count ==21 [2025-03-03 16:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599810') start [2025-03-03 16:52:04] Production.ERROR: done [2025-03-03 16:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.INFO: ==7567== Releasing lock... [2025-03-03 16:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599810') end [2025-03-03 16:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:52:04] Production.INFO: 1 [2025-03-03 16:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.ERROR: done [2025-03-03 16:52:04] Production.INFO: ==7575== Releasing lock... [2025-03-03 16:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:52:05] Production.INFO: Total Charge 0 [2025-03-03 16:52:05] Production.INFO: CreateAllLog End [2025-03-03 16:52:05] Production.INFO: Account Balance End. [2025-03-03 16:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:52:05] Production.INFO: ==7571== Releasing lock... [2025-03-03 16:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:52:05 [end_date_ymd] => 2025-03-03 16:52:05 [RateCDR] => 1 ) [2025-03-03 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:52:05' and `end` < '2025-03-03 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:52:13] Production.ERROR: CronJobId end10 [2025-03-03 16:52:13] Production.INFO: ==7569== Releasing lock... [2025-03-03 16:52:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:52:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:52:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:52:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:52:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:52:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:52:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:52:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:52:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:52:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:52:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:52:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:52:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:52:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:52:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:52:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:52:15] Production.INFO: call_cost start [2025-03-03 16:52:15] Production.INFO: call_cost end [2025-03-03 16:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:52:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:52:16] Production.INFO: ==7565== Releasing lock... [2025-03-03 16:52:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:52:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:52:19] Production.INFO: count ==6157 [2025-03-03 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:52:05 - End Time 2025-03-03 16:52:05 [2025-03-03 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599812', 'tblTempUsageDetail_20' ) start [2025-03-03 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599812', 'tblTempUsageDetail_20' ) end [2025-03-03 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599812', 'tblTempVendorCDR_20' ) start [2025-03-03 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599812', 'tblTempVendorCDR_20' ) end [2025-03-03 16:52:22] Production.INFO: ProcessCDR(1,14599812,1,1,2) [2025-03-03 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599812', 'tblTempUsageDetail_20' ) start [2025-03-03 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599812', 'tblTempUsageDetail_20' ) end [2025-03-03 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:52:27] Production.INFO: ==7573== Releasing lock... [2025-03-03 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:52:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 21:53:01] Production.INFO: ==7640== Lock acquired, processing the job... [2025-03-03 21:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:53:01] Production.INFO: neon service started [2025-03-03 21:53:01] Production.INFO: neon service started [2025-03-03 21:53:01] Production.INFO: ==7640== Releasing lock... [2025-03-03 21:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:53:01] Production.INFO: ==7642== Lock acquired, processing the job... [2025-03-03 16:53:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:53:02] Production.INFO: ==7642== Releasing lock... [2025-03-03 16:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:53:02] Production.INFO: ==7644== Lock acquired, processing the job... [2025-03-03 21:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:53:02] Production.INFO: ==7644== Releasing lock... [2025-03-03 21:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:53:03] Production.INFO: ==7654== Lock acquired, processing the job... [2025-03-03 16:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:53:03] Production.INFO: ==7652== Lock acquired, processing the job... [2025-03-03 16:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:53:03] Production.INFO: ==7646== Lock acquired, processing the job... [2025-03-03 16:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:53:03] Production.INFO: ==7648== Lock acquired, processing the job... [2025-03-03 16:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:53:03] Production.INFO: ==7650== Lock acquired, processing the job... [2025-03-03 16:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:53:03] Production.INFO: ==7656== Lock acquired, processing the job... [2025-03-03 16:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:53:03] Production.INFO: Account Balance Start. [2025-03-03 16:53:03] Production.INFO: CreateAllLog Start [2025-03-03 16:53:03] Production.INFO: 117 [2025-03-03 16:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:53:03] Production.INFO: count ==13 [2025-03-03 16:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:53:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:53:03] Production.INFO: count ==21 [2025-03-03 16:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599815') start [2025-03-03 16:53:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:03] Production.ERROR: done [2025-03-03 16:53:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:53:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599815') end [2025-03-03 16:53:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:53:03] Production.INFO: 1 [2025-03-03 16:53:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: ==7656== Releasing lock... [2025-03-03 16:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:53:04] Production.INFO: ==7648== Releasing lock... [2025-03-03 16:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.ERROR: done [2025-03-03 16:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:53:04] Production.INFO: Total Charge 0 [2025-03-03 16:53:04] Production.INFO: CreateAllLog End [2025-03-03 16:53:05] Production.INFO: Account Balance End. [2025-03-03 16:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:53:05] Production.INFO: ==7652== Releasing lock... [2025-03-03 16:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:53:05 [end_date_ymd] => 2025-03-03 16:53:05 [RateCDR] => 1 ) [2025-03-03 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:53:05' and `end` < '2025-03-03 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:53:14] Production.ERROR: CronJobId end10 [2025-03-03 16:53:14] Production.INFO: ==7650== Releasing lock... [2025-03-03 16:53:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:53:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:53:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:53:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:53:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:53:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:53:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:53:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:53:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:53:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:53:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:53:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:53:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:53:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:53:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:53:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:53:16] Production.INFO: call_cost start [2025-03-03 16:53:16] Production.INFO: call_cost end [2025-03-03 16:53:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:53:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:53:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:53:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:53:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:53:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:53:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:53:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:53:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:53:17] Production.INFO: ==7646== Releasing lock... [2025-03-03 16:53:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:53:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:53:18] Production.INFO: count ==6154 [2025-03-03 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:53:05 - End Time 2025-03-03 16:53:05 [2025-03-03 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599817', 'tblTempUsageDetail_20' ) start [2025-03-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599817', 'tblTempUsageDetail_20' ) end [2025-03-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599817', 'tblTempVendorCDR_20' ) start [2025-03-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599817', 'tblTempVendorCDR_20' ) end [2025-03-03 16:53:22] Production.INFO: ProcessCDR(1,14599817,1,1,2) [2025-03-03 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599817', 'tblTempUsageDetail_20' ) start [2025-03-03 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599817', 'tblTempUsageDetail_20' ) end [2025-03-03 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:53:27] Production.INFO: ==7654== Releasing lock... [2025-03-03 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:53:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 21:54:02] Production.INFO: ==7715== Lock acquired, processing the job... [2025-03-03 21:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:54:02] Production.INFO: neon service started [2025-03-03 21:54:02] Production.INFO: neon service started [2025-03-03 21:54:02] Production.INFO: ==7715== Releasing lock... [2025-03-03 21:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:54:02] Production.INFO: ==7717== Lock acquired, processing the job... [2025-03-03 16:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:54:02] Production.INFO: ==7717== Releasing lock... [2025-03-03 16:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:54:02] Production.INFO: ==7719== Lock acquired, processing the job... [2025-03-03 21:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:54:02] Production.INFO: ==7719== Releasing lock... [2025-03-03 21:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:54:03] Production.INFO: ==7722== Lock acquired, processing the job... [2025-03-03 16:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:54:03] Production.INFO: ==7730== Lock acquired, processing the job... [2025-03-03 16:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:54:03] Production.INFO: ==7732== Lock acquired, processing the job... [2025-03-03 16:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:54:03] Production.INFO: ==7724== Lock acquired, processing the job... [2025-03-03 16:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:54:03] Production.INFO: ==7726== Lock acquired, processing the job... [2025-03-03 16:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:54:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:54:04] Production.INFO: ==7728== Lock acquired, processing the job... [2025-03-03 16:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:54:04] Production.INFO: count ==13 [2025-03-03 16:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:54:04] Production.INFO: count ==21 [2025-03-03 16:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599819') start [2025-03-03 16:54:04] Production.INFO: Account Balance Start. [2025-03-03 16:54:04] Production.INFO: CreateAllLog Start [2025-03-03 16:54:04] Production.INFO: 117 [2025-03-03 16:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599819') end [2025-03-03 16:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:54:04] Production.INFO: 1 [2025-03-03 16:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: ==7732== Releasing lock... [2025-03-03 16:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:54:04] Production.ERROR: done [2025-03-03 16:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:54:04] Production.INFO: ==7724== Releasing lock... [2025-03-03 16:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.ERROR: done [2025-03-03 16:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:54:05] Production.INFO: Total Charge 0 [2025-03-03 16:54:05] Production.INFO: CreateAllLog End [2025-03-03 16:54:05] Production.INFO: Account Balance End. [2025-03-03 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:54:05 [end_date_ymd] => 2025-03-03 16:54:05 [RateCDR] => 1 ) [2025-03-03 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:54:05' and `end` < '2025-03-03 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:54:05] Production.INFO: ==7728== Releasing lock... [2025-03-03 16:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:54:14] Production.ERROR: CronJobId end10 [2025-03-03 16:54:14] Production.INFO: ==7726== Releasing lock... [2025-03-03 16:54:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:54:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:54:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:54:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:54:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:54:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:54:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:54:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:54:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:54:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:54:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:54:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:54:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:54:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:54:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:54:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:54:15] Production.INFO: call_cost start [2025-03-03 16:54:15] Production.INFO: call_cost end [2025-03-03 16:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:54:16] Production.INFO: ==7722== Releasing lock... [2025-03-03 16:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:54:19] Production.INFO: count ==6157 [2025-03-03 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:54:05 - End Time 2025-03-03 16:54:05 [2025-03-03 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599822', 'tblTempUsageDetail_20' ) start [2025-03-03 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599822', 'tblTempUsageDetail_20' ) end [2025-03-03 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599822', 'tblTempVendorCDR_20' ) start [2025-03-03 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599822', 'tblTempVendorCDR_20' ) end [2025-03-03 16:54:22] Production.INFO: ProcessCDR(1,14599822,1,1,2) [2025-03-03 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599822', 'tblTempUsageDetail_20' ) start [2025-03-03 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599822', 'tblTempUsageDetail_20' ) end [2025-03-03 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:54:27] Production.INFO: ==7730== Releasing lock... [2025-03-03 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:54:27] Production.INFO: 74 MB #Memory Used# [2025-03-03 21:55:01] Production.INFO: ==7791== Lock acquired, processing the job... [2025-03-03 21:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:55:01] Production.INFO: neon service started [2025-03-03 21:55:01] Production.INFO: neon service started [2025-03-03 21:55:01] Production.INFO: ==7791== Releasing lock... [2025-03-03 21:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:55:02] Production.INFO: ==7793== Lock acquired, processing the job... [2025-03-03 16:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:55:02] Production.INFO: ==7793== Releasing lock... [2025-03-03 16:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:55:02] Production.INFO: ==7795== Lock acquired, processing the job... [2025-03-03 21:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:55:02] Production.INFO: ==7795== Releasing lock... [2025-03-03 21:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:55:03] Production.INFO: ==7808== Lock acquired, processing the job... [2025-03-03 16:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:55:03] Production.INFO: ==7806== Lock acquired, processing the job... [2025-03-03 16:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:55:03] Production.INFO: ==7798== Lock acquired, processing the job... [2025-03-03 16:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:55:03] Production.INFO: ==7800== Lock acquired, processing the job... [2025-03-03 16:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:55:03] Production.INFO: ==7802== Lock acquired, processing the job... [2025-03-03 16:55:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:55:03] Production.INFO: ==7804== Lock acquired, processing the job... [2025-03-03 16:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:55:03] Production.INFO: count ==13 [2025-03-03 16:55:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:55:03] Production.INFO: count ==21 [2025-03-03 16:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599823') start [2025-03-03 16:55:03] Production.INFO: Account Balance Start. [2025-03-03 16:55:03] Production.INFO: CreateAllLog Start [2025-03-03 16:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:55:04] Production.INFO: 117 [2025-03-03 16:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599823') end [2025-03-03 16:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:55:04] Production.INFO: 1 [2025-03-03 16:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:55:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: ==7808== Releasing lock... [2025-03-03 16:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:55:04] Production.INFO: ==7800== Releasing lock... [2025-03-03 16:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:55:04] Production.ERROR: done [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.ERROR: done [2025-03-03 16:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:55:05] Production.INFO: Total Charge 0 [2025-03-03 16:55:05] Production.INFO: CreateAllLog End [2025-03-03 16:55:05] Production.INFO: Account Balance End. [2025-03-03 16:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:55:05] Production.INFO: ==7804== Releasing lock... [2025-03-03 16:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:55:05 [end_date_ymd] => 2025-03-03 16:55:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:55:05' and `end` < '2025-03-03 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-03-03 16:55:14] Production.ERROR: CronJobId end10 [2025-03-03 16:55:14] Production.INFO: ==7802== Releasing lock... [2025-03-03 16:55:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:55:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:55:15] Production.INFO: call_cost start [2025-03-03 16:55:15] Production.INFO: call_cost end [2025-03-03 16:55:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:55:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:55:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:55:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:55:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:55:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:55:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:55:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:55:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:55:16] Production.INFO: ==7798== Releasing lock... [2025-03-03 16:55:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:55:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:55:19] Production.INFO: count ==6115 [2025-03-03 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:55:05 - End Time 2025-03-03 16:55:05 [2025-03-03 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599827', 'tblTempUsageDetail_20' ) start [2025-03-03 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599827', 'tblTempUsageDetail_20' ) end [2025-03-03 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599827', 'tblTempVendorCDR_20' ) start [2025-03-03 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599827', 'tblTempVendorCDR_20' ) end [2025-03-03 16:55:22] Production.INFO: ProcessCDR(1,14599827,1,1,2) [2025-03-03 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599827', 'tblTempUsageDetail_20' ) start [2025-03-03 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599827', 'tblTempUsageDetail_20' ) end [2025-03-03 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:55:27] Production.INFO: ==7806== Releasing lock... [2025-03-03 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:55:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 21:56:02] Production.INFO: ==7874== Lock acquired, processing the job... [2025-03-03 21:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:56:02] Production.INFO: neon service started [2025-03-03 21:56:02] Production.INFO: neon service started [2025-03-03 21:56:02] Production.INFO: ==7874== Releasing lock... [2025-03-03 21:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 16:56:02] Production.INFO: ==7876== Lock acquired, processing the job... [2025-03-03 16:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:56:03] Production.INFO: ==7878== Lock acquired, processing the job... [2025-03-03 21:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:56:03] Production.INFO: ==7878== Releasing lock... [2025-03-03 21:56:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:56:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:56:03] Production.INFO: ==7876== Releasing lock... [2025-03-03 16:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:56:04] Production.INFO: ==7881== Lock acquired, processing the job... [2025-03-03 16:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:56:04] Production.INFO: ==7885== Lock acquired, processing the job... [2025-03-03 16:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:56:04] Production.INFO: ==7883== Lock acquired, processing the job... [2025-03-03 16:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:56:04] Production.INFO: ==7887== Lock acquired, processing the job... [2025-03-03 16:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:56:04] Production.INFO: Account Balance Start. [2025-03-03 16:56:04] Production.INFO: CreateAllLog Start [2025-03-03 16:56:04] Production.INFO: 117 [2025-03-03 16:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:04] Production.INFO: ==7891== Lock acquired, processing the job... [2025-03-03 16:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:04] Production.INFO: ==7889== Lock acquired, processing the job... [2025-03-03 16:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:04] Production.INFO: ==7883== Releasing lock... [2025-03-03 16:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:56:04] Production.INFO: count ==13 [2025-03-03 16:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:56:04] Production.INFO: count ==21 [2025-03-03 16:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599831') start [2025-03-03 16:56:05] Production.INFO: Date 2025-02-12 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599831') end [2025-03-03 16:56:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:56:05] Production.INFO: 1 [2025-03-03 16:56:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:56:05] Production.INFO: Date 2025-02-13 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-14 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-15 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: ==7891== Releasing lock... [2025-03-03 16:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:56:05] Production.ERROR: done [2025-03-03 16:56:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.ERROR: done [2025-03-03 16:56:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:56:06] Production.INFO: Total Charge 0 [2025-03-03 16:56:06] Production.INFO: CreateAllLog End [2025-03-03 16:56:06] Production.INFO: Account Balance End. [2025-03-03 16:56:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:56:06] Production.INFO: ==7887== Releasing lock... [2025-03-03 16:56:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:56:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:56:06 [end_date_ymd] => 2025-03-03 16:56:06 [RateCDR] => 1 ) [2025-03-03 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:56:06' and `end` < '2025-03-03 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:56:15] Production.ERROR: CronJobId end10 [2025-03-03 16:56:15] Production.INFO: ==7885== Releasing lock... [2025-03-03 16:56:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:56:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:56:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:56:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:56:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:56:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:56:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:56:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:56:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:56:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:56:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:56:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:56:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:56:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:56:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:56:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:56:16] Production.INFO: call_cost start [2025-03-03 16:56:16] Production.INFO: call_cost end [2025-03-03 16:56:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:56:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:56:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:56:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:56:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:56:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:56:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:56:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:56:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:56:17] Production.INFO: ==7881== Releasing lock... [2025-03-03 16:56:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:56:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:56:19] Production.INFO: count ==6101 [2025-03-03 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:56:06 - End Time 2025-03-03 16:56:06 [2025-03-03 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599832', 'tblTempUsageDetail_20' ) start [2025-03-03 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599832', 'tblTempUsageDetail_20' ) end [2025-03-03 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599832', 'tblTempVendorCDR_20' ) start [2025-03-03 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599832', 'tblTempVendorCDR_20' ) end [2025-03-03 16:56:23] Production.INFO: ProcessCDR(1,14599832,1,1,2) [2025-03-03 16:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599832', 'tblTempUsageDetail_20' ) start [2025-03-03 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599832', 'tblTempUsageDetail_20' ) end [2025-03-03 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:56:28] Production.INFO: ==7889== Releasing lock... [2025-03-03 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:56:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 21:57:01] Production.INFO: ==7951== Lock acquired, processing the job... [2025-03-03 21:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:57:01] Production.INFO: neon service started [2025-03-03 21:57:01] Production.INFO: neon service started [2025-03-03 21:57:01] Production.INFO: ==7951== Releasing lock... [2025-03-03 21:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:57:02] Production.INFO: ==7953== Lock acquired, processing the job... [2025-03-03 16:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 21:57:02] Production.INFO: ==7955== Lock acquired, processing the job... [2025-03-03 21:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 16:57:02] Production.INFO: ==7953== Releasing lock... [2025-03-03 16:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:57:02] Production.INFO: ==7955== Releasing lock... [2025-03-03 21:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:57:03] Production.INFO: ==7957== Lock acquired, processing the job... [2025-03-03 16:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:57:03] Production.INFO: ==7960== Lock acquired, processing the job... [2025-03-03 16:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:57:03] Production.INFO: ==7966== Lock acquired, processing the job... [2025-03-03 16:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:57:03] Production.INFO: ==7962== Lock acquired, processing the job... [2025-03-03 16:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:57:03] Production.INFO: ==7964== Lock acquired, processing the job... [2025-03-03 16:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:57:03] Production.INFO: ==7960== Releasing lock... [2025-03-03 16:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:57:03] Production.INFO: ==7968== Lock acquired, processing the job... [2025-03-03 16:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:57:03] Production.ERROR: done [2025-03-03 16:57:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:57:03] Production.INFO: Account Balance Start. [2025-03-03 16:57:03] Production.INFO: CreateAllLog Start [2025-03-03 16:57:03] Production.INFO: 117 [2025-03-03 16:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: count ==13 [2025-03-03 16:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:57:04] Production.INFO: count ==21 [2025-03-03 16:57:04] Production.ERROR: done [2025-03-03 16:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599836') start [2025-03-03 16:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599836') end [2025-03-03 16:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:57:04] Production.INFO: 1 [2025-03-03 16:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: ==7968== Releasing lock... [2025-03-03 16:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:57:05] Production.INFO: Total Charge 0 [2025-03-03 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:57:05 [end_date_ymd] => 2025-03-03 16:57:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 13:57:05' and `end` < '2025-03-03 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-03-03 16:57:05] Production.INFO: CreateAllLog End [2025-03-03 16:57:05] Production.INFO: Account Balance End. [2025-03-03 16:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 16:57:05] Production.INFO: ==7964== Releasing lock... [2025-03-03 16:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:57:14] Production.ERROR: CronJobId end10 [2025-03-03 16:57:14] Production.INFO: ==7962== Releasing lock... [2025-03-03 16:57:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:57:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:57:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:57:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:57:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:57:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:57:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:57:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:57:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:57:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:57:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:57:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:57:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:57:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:57:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:57:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:57:17] Production.INFO: call_cost start [2025-03-03 16:57:17] Production.INFO: call_cost end [2025-03-03 16:57:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:57:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:57:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:57:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:57:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:57:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:57:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:57:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:57:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:57:18] Production.INFO: ==7957== Releasing lock... [2025-03-03 16:57:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:57:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:57:18] Production.INFO: count ==6080 [2025-03-03 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-03 13:57:05 - End Time 2025-03-03 16:57:05 [2025-03-03 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599837', 'tblTempUsageDetail_20' ) start [2025-03-03 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599837', 'tblTempUsageDetail_20' ) end [2025-03-03 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599837', 'tblTempVendorCDR_20' ) start [2025-03-03 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599837', 'tblTempVendorCDR_20' ) end [2025-03-03 16:57:21] Production.INFO: ProcessCDR(1,14599837,1,1,2) [2025-03-03 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599837', 'tblTempUsageDetail_20' ) start [2025-03-03 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599837', 'tblTempUsageDetail_20' ) end [2025-03-03 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:57:27] Production.INFO: ==7966== Releasing lock... [2025-03-03 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:57:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 21:58:02] Production.INFO: ==8024== Lock acquired, processing the job... [2025-03-03 21:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:58:02] Production.INFO: neon service started [2025-03-03 21:58:02] Production.INFO: neon service started [2025-03-03 21:58:02] Production.INFO: ==8024== Releasing lock... [2025-03-03 21:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 21:58:02] Production.INFO: ==8028== Lock acquired, processing the job... [2025-03-03 21:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:58:02] Production.INFO: ==8028== Releasing lock... [2025-03-03 21:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:58:02] Production.INFO: ==8026== Lock acquired, processing the job... [2025-03-03 16:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:58:03] Production.INFO: ==8026== Releasing lock... [2025-03-03 16:58:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:58:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 16:58:03] Production.INFO: ==8035== Lock acquired, processing the job... [2025-03-03 16:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:58:03] Production.INFO: ==8042== Lock acquired, processing the job... [2025-03-03 16:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:58:04] Production.INFO: ==8031== Lock acquired, processing the job... [2025-03-03 16:58:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:58:04] Production.INFO: count ==13 [2025-03-03 16:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:58:04] Production.INFO: count ==21 [2025-03-03 16:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599838') start [2025-03-03 16:58:04] Production.INFO: ==8033== Lock acquired, processing the job... [2025-03-03 16:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599838') end [2025-03-03 16:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:58:04] Production.INFO: 1 [2025-03-03 16:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:58:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:58:04] Production.INFO: ==8042== Releasing lock... [2025-03-03 16:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:58:04] Production.INFO: ==8037== Lock acquired, processing the job... [2025-03-03 16:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:58:04] Production.INFO: ==8039== Lock acquired, processing the job... [2025-03-03 16:58:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:58:04] Production.INFO: Account Balance Start. [2025-03-03 16:58:04] Production.INFO: CreateAllLog Start [2025-03-03 16:58:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:58:04] Production.INFO: 117 [2025-03-03 16:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:04] Production.INFO: ==8033== Releasing lock... [2025-03-03 16:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:04] Production.ERROR: done [2025-03-03 16:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.ERROR: done [2025-03-03 16:58:05] Production.INFO: Date 2025-02-15 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-16 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-17 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-18 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-19 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-20 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-21 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-22 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-23 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-24 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-25 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-26 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-27 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 16:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 16:58:05] Production.INFO: Total Charge 0 [2025-03-03 16:58:05] Production.INFO: CreateAllLog End [2025-03-03 16:58:06] Production.INFO: Account Balance End. [2025-03-03 16:58:06] Production.ERROR: CronJobId end 12 [2025-03-03 16:58:06] Production.INFO: ==8037== Releasing lock... [2025-03-03 16:58:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:58:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:58:06 [end_date_ymd] => 2025-03-03 16:58:06 [RateCDR] => 1 ) [2025-03-03 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:58:06' and `end` < '2025-03-03 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:58:15] Production.ERROR: CronJobId end10 [2025-03-03 16:58:15] Production.INFO: ==8035== Releasing lock... [2025-03-03 16:58:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:58:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:58:16] Production.INFO: call_cost start [2025-03-03 16:58:16] Production.INFO: call_cost end [2025-03-03 16:58:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:58:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:58:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:58:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:58:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:58:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:58:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:58:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:58:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:58:17] Production.INFO: ==8031== Releasing lock... [2025-03-03 16:58:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:58:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:58:19] Production.INFO: count ==6080 [2025-03-03 16:58:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:58:06 - End Time 2025-03-03 16:58:06 [2025-03-03 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599842', 'tblTempUsageDetail_20' ) start [2025-03-03 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599842', 'tblTempUsageDetail_20' ) end [2025-03-03 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599842', 'tblTempVendorCDR_20' ) start [2025-03-03 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599842', 'tblTempVendorCDR_20' ) end [2025-03-03 16:58:22] Production.INFO: ProcessCDR(1,14599842,1,1,2) [2025-03-03 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599842', 'tblTempUsageDetail_20' ) start [2025-03-03 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599842', 'tblTempUsageDetail_20' ) end [2025-03-03 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:58:27] Production.INFO: ==8039== Releasing lock... [2025-03-03 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:58:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 21:59:01] Production.INFO: ==8103== Lock acquired, processing the job... [2025-03-03 21:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 21:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 21:59:01] Production.INFO: neon service started [2025-03-03 21:59:01] Production.INFO: neon service started [2025-03-03 21:59:01] Production.INFO: ==8103== Releasing lock... [2025-03-03 21:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 21:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 16:59:02] Production.INFO: ==8105== Lock acquired, processing the job... [2025-03-03 16:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 16:59:02] Production.INFO: ==8105== Releasing lock... [2025-03-03 16:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 16:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 21:59:02] Production.INFO: ==8107== Lock acquired, processing the job... [2025-03-03 21:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 21:59:02] Production.INFO: ==8107== Releasing lock... [2025-03-03 21:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 21:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 16:59:03] Production.INFO: ==8109== Lock acquired, processing the job... [2025-03-03 16:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 16:59:03] Production.INFO: ==8111== Lock acquired, processing the job... [2025-03-03 16:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 16:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 16:59:03] Production.INFO: ==8114== Lock acquired, processing the job... [2025-03-03 16:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 16:59:03] Production.INFO: ==8116== Lock acquired, processing the job... [2025-03-03 16:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 16:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 16:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 16:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 16:59:03] Production.INFO: ==8118== Lock acquired, processing the job... [2025-03-03 16:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 16:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 16:59:03] Production.INFO: Account Balance Start. [2025-03-03 16:59:03] Production.INFO: CreateAllLog Start [2025-03-03 16:59:03] Production.INFO: 117 [2025-03-03 16:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 16:59:03] Production.INFO: ==8111== Releasing lock... [2025-03-03 16:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 16:59:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 16:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 16:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 16:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:03] Production.INFO: ==8120== Lock acquired, processing the job... [2025-03-03 16:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 16:59:03] Production.INFO: Date 2025-02-10 [2025-03-03 16:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:03] Production.INFO: Date 2025-02-11 [2025-03-03 16:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:03] Production.INFO: Date 2025-02-12 [2025-03-03 16:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:03] Production.INFO: Date 2025-02-13 [2025-03-03 16:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-14 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-15 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-16 [2025-03-03 16:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-17 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-18 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: count ==13 [2025-03-03 16:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 16:59:04] Production.INFO: count ==21 [2025-03-03 16:59:04] Production.ERROR: done [2025-03-03 16:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 16:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599846') start [2025-03-03 16:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.ERROR: done [2025-03-03 16:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599846') end [2025-03-03 16:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 16:59:04] Production.INFO: 1 [2025-03-03 16:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 16:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: ==8120== Releasing lock... [2025-03-03 16:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 16:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 16:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-03-02 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Date 2025-03-03 [2025-03-03 16:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 16:59:04] Production.INFO: Total Charge 0 [2025-03-03 16:59:04] Production.INFO: CreateAllLog End [2025-03-03 16:59:04] Production.INFO: Account Balance End. [2025-03-03 16:59:04] Production.ERROR: CronJobId end 12 [2025-03-03 16:59:04] Production.INFO: ==8116== Releasing lock... [2025-03-03 16:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 16:59:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 13:59:05 [end_date_ymd] => 2025-03-03 16:59:05 [RateCDR] => 1 ) [2025-03-03 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 13:59:05' and `end` < '2025-03-03 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 16:59:13] Production.ERROR: CronJobId end10 [2025-03-03 16:59:13] Production.INFO: ==8114== Releasing lock... [2025-03-03 16:59:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 16:59:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 16:59:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 16:59:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 16:59:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 16:59:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 16:59:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 16:59:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 16:59:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 16:59:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 16:59:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 16:59:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 16:59:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 16:59:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 16:59:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 16:59:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 16:59:16] Production.INFO: call_cost start [2025-03-03 16:59:16] Production.INFO: call_cost end [2025-03-03 16:59:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 16:59:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 16:59:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 16:59:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 16:59:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 16:59:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 16:59:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 16:59:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 16:59:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 16:59:17] Production.INFO: ==8109== Releasing lock... [2025-03-03 16:59:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 16:59:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 16:59:19] Production.INFO: count ==6056 [2025-03-03 16:59:22] Production.ERROR: pbx CDR StartTime 2025-03-03 13:59:05 - End Time 2025-03-03 16:59:05 [2025-03-03 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599847', 'tblTempUsageDetail_20' ) start [2025-03-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599847', 'tblTempUsageDetail_20' ) end [2025-03-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599847', 'tblTempVendorCDR_20' ) start [2025-03-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599847', 'tblTempVendorCDR_20' ) end [2025-03-03 16:59:22] Production.INFO: ProcessCDR(1,14599847,1,1,2) [2025-03-03 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599847', 'tblTempUsageDetail_20' ) start [2025-03-03 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599847', 'tblTempUsageDetail_20' ) end [2025-03-03 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 16:59:27] Production.INFO: ==8118== Releasing lock... [2025-03-03 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 16:59:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-03 22:00:02] Production.INFO: ==8184== Lock acquired, processing the job... [2025-03-03 22:00:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:00:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:00:02] Production.INFO: neon service started [2025-03-03 22:00:02] Production.INFO: neon service started [2025-03-03 22:00:02] Production.INFO: ==8184== Releasing lock... [2025-03-03 22:00:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:00:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:00:02] Production.INFO: ==8186== Lock acquired, processing the job... [2025-03-03 17:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:00:02] Production.INFO: ==8188== Lock acquired, processing the job... [2025-03-03 22:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:00:02] Production.INFO: ==8188== Releasing lock... [2025-03-03 22:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:00:03] Production.INFO: ==8186== Releasing lock... [2025-03-03 17:00:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:00:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:00:04] Production.INFO: ==8193== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:00:04] Production.INFO: ==8191== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 17:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:00:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 17:00:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:00:04] Production.ERROR: CronJob PID - 8193 [2025-03-03 17:00:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 17:00:04] Production.ERROR: CronJob ID - 5 [2025-03-03 17:00:04] Production.ERROR: CronJob Last Run Time 2025-03-03 17:00:00 [2025-03-03 17:00:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:00:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:00:04] Production.INFO: ==8200== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:00:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 17:00:04] Production.INFO: ==8191== Releasing lock... [2025-03-03 17:00:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 17:00:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:00:04] Production.INFO: ==8197== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:00:04] Production.INFO: ==8204== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 17:00:04] Production.INFO: ==8195== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:00:04] Production.INFO: Account Balance Start. [2025-03-03 17:00:04] Production.INFO: CreateAllLog Start [2025-03-03 17:00:04] Production.INFO: 117 [2025-03-03 17:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:00:04] Production.INFO: ==8202== Lock acquired, processing the job... [2025-03-03 17:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: ==8206== Lock acquired, processing the job... [2025-03-03 17:00:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:00:05] Production.INFO: Date 2025-02-09 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:00:05] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:00:05] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:00:05] Production.INFO: Date 2025-02-10 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-11 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:00:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:00:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: count ==13 [2025-03-03 17:00:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:00:05] Production.INFO: count ==21 [2025-03-03 17:00:05] Production.INFO: ==8195== Releasing lock... [2025-03-03 17:00:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:00:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599851') start [2025-03-03 17:00:05] Production.ERROR: done [2025-03-03 17:00:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 17:00:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599852', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 17:00:05] Production.ERROR: done [2025-03-03 17:00:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599851') end [2025-03-03 17:00:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:00:05] Production.INFO: 1 [2025-03-03 17:00:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:00:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: ==8206== Releasing lock... [2025-03-03 17:00:06] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:00:06] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:00:06] Production.ERROR: done [2025-03-03 17:00:06] Production.INFO: Date 2025-02-22 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-02-23 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-02-24 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-02-25 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-02-26 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-02-27 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-02-28 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-03-01 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-03-02 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Date 2025-03-03 [2025-03-03 17:00:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:00:06] Production.INFO: Total Charge 0 [2025-03-03 17:00:06] Production.INFO: CreateAllLog End [2025-03-03 17:00:06] Production.INFO: Account Balance End. [2025-03-03 17:00:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:00:06] Production.INFO: ==8200== Releasing lock... [2025-03-03 17:00:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:00:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:00:07 [end_date_ymd] => 2025-03-03 17:00:07 [RateCDR] => 1 ) [2025-03-03 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:00:07' and `end` < '2025-03-03 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:00:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599852', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 17:00:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 17:00:10] Production.INFO: ProcessCDR(1,14599852,1,1,2) [2025-03-03 17:00:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599852,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:00:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599852,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:00:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:00:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:00:10] Production.INFO: ==8204== Releasing lock... [2025-03-03 17:00:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 17:00:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:00:16] Production.ERROR: CronJobId end10 [2025-03-03 17:00:16] Production.INFO: ==8197== Releasing lock... [2025-03-03 17:00:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:00:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:00:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:00:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:00:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:00:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:00:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:00:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:00:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:00:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:00:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:00:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:00:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:00:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:00:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:00:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:00:18] Production.INFO: call_cost start [2025-03-03 17:00:18] Production.INFO: call_cost end [2025-03-03 17:00:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:00:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:00:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:00:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:00:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:00:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:00:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:00:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:00:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:00:19] Production.INFO: ==8193== Releasing lock... [2025-03-03 17:00:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:00:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:00:21] Production.INFO: count ==6063 [2025-03-03 17:00:24] Production.ERROR: pbx CDR StartTime 2025-03-03 14:00:07 - End Time 2025-03-03 17:00:07 [2025-03-03 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599853', 'tblTempUsageDetail_20' ) start [2025-03-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599853', 'tblTempUsageDetail_20' ) end [2025-03-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599853', 'tblTempVendorCDR_20' ) start [2025-03-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599853', 'tblTempVendorCDR_20' ) end [2025-03-03 17:00:24] Production.INFO: ProcessCDR(1,14599853,1,1,2) [2025-03-03 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599853', 'tblTempUsageDetail_20' ) start [2025-03-03 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599853', 'tblTempUsageDetail_20' ) end [2025-03-03 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:00:29] Production.INFO: ==8202== Releasing lock... [2025-03-03 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:00:29] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 22:01:01] Production.INFO: ==8269== Lock acquired, processing the job... [2025-03-03 22:01:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:01:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:01:01] Production.INFO: neon service started [2025-03-03 22:01:01] Production.INFO: neon service started [2025-03-03 22:01:01] Production.INFO: ==8269== Releasing lock... [2025-03-03 22:01:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:01:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:01:02] Production.INFO: ==8281== Lock acquired, processing the job... [2025-03-03 17:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:01:02] Production.INFO: ==8283== Lock acquired, processing the job... [2025-03-03 22:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:01:02] Production.INFO: ==8283== Releasing lock... [2025-03-03 22:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:01:02] Production.INFO: ==8281== Releasing lock... [2025-03-03 17:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:01:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:01:03] Production.INFO: ==8290== Lock acquired, processing the job... [2025-03-03 17:01:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:01:03] Production.INFO: ==8288== Lock acquired, processing the job... [2025-03-03 17:01:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:01:03] Production.INFO: ==8286== Lock acquired, processing the job... [2025-03-03 17:01:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:01:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:01:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:01:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:01:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:01:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:01:04] Production.INFO: ==8292== Lock acquired, processing the job... [2025-03-03 17:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:01:04] Production.INFO: ==8294== Lock acquired, processing the job... [2025-03-03 17:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:01:04] Production.INFO: ==8288== Releasing lock... [2025-03-03 17:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:01:04] Production.INFO: Account Balance Start. [2025-03-03 17:01:04] Production.INFO: CreateAllLog Start [2025-03-03 17:01:04] Production.INFO: 117 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: ==8296== Lock acquired, processing the job... [2025-03-03 17:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:01:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:01:04] Production.INFO: count ==13 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:01:04] Production.INFO: count ==21 [2025-03-03 17:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599857') start [2025-03-03 17:01:04] Production.ERROR: done [2025-03-03 17:01:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599857') end [2025-03-03 17:01:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:01:04] Production.INFO: 1 [2025-03-03 17:01:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:01:04] Production.INFO: ==8296== Releasing lock... [2025-03-03 17:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:01:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:01:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.ERROR: done [2025-03-03 17:01:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:01:05] Production.INFO: Total Charge 0 [2025-03-03 17:01:05] Production.INFO: CreateAllLog End [2025-03-03 17:01:05] Production.INFO: Account Balance End. [2025-03-03 17:01:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:01:05] Production.INFO: ==8292== Releasing lock... [2025-03-03 17:01:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:01:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:01:06 [end_date_ymd] => 2025-03-03 17:01:06 [RateCDR] => 1 ) [2025-03-03 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:01:06' and `end` < '2025-03-03 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:01:14] Production.ERROR: CronJobId end10 [2025-03-03 17:01:14] Production.INFO: ==8290== Releasing lock... [2025-03-03 17:01:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:01:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:01:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:01:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:01:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:01:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:01:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:01:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:01:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:01:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:01:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:01:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:01:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:01:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:01:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:01:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:01:16] Production.INFO: call_cost start [2025-03-03 17:01:16] Production.INFO: call_cost end [2025-03-03 17:01:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:01:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:01:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:01:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:01:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:01:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:01:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:01:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:01:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:01:17] Production.INFO: ==8286== Releasing lock... [2025-03-03 17:01:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:01:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:01:19] Production.INFO: count ==6087 [2025-03-03 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:01:06 - End Time 2025-03-03 17:01:06 [2025-03-03 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599858', 'tblTempUsageDetail_20' ) start [2025-03-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599858', 'tblTempUsageDetail_20' ) end [2025-03-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599858', 'tblTempVendorCDR_20' ) start [2025-03-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599858', 'tblTempVendorCDR_20' ) end [2025-03-03 17:01:22] Production.INFO: ProcessCDR(1,14599858,1,1,2) [2025-03-03 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599858', 'tblTempUsageDetail_20' ) start [2025-03-03 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599858', 'tblTempUsageDetail_20' ) end [2025-03-03 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:01:26] Production.INFO: ==8294== Releasing lock... [2025-03-03 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:01:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 22:02:02] Production.INFO: ==8358== Lock acquired, processing the job... [2025-03-03 22:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:02:02] Production.INFO: neon service started [2025-03-03 22:02:02] Production.INFO: neon service started [2025-03-03 22:02:02] Production.INFO: ==8358== Releasing lock... [2025-03-03 22:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:02:02] Production.INFO: ==8362== Lock acquired, processing the job... [2025-03-03 22:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:02:02] Production.INFO: ==8362== Releasing lock... [2025-03-03 22:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:02:02] Production.INFO: ==8360== Lock acquired, processing the job... [2025-03-03 17:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:02:03] Production.INFO: ==8360== Releasing lock... [2025-03-03 17:02:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:02:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:02:04] Production.INFO: ==8365== Lock acquired, processing the job... [2025-03-03 17:02:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:02:04] Production.INFO: ==8367== Lock acquired, processing the job... [2025-03-03 17:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:02:04] Production.INFO: ==8369== Lock acquired, processing the job... [2025-03-03 17:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:02:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:02:04] Production.INFO: ==8367== Releasing lock... [2025-03-03 17:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:02:04] Production.INFO: ==8375== Lock acquired, processing the job... [2025-03-03 17:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:02:04] Production.INFO: ==8373== Lock acquired, processing the job... [2025-03-03 17:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:02:04] Production.INFO: ==8371== Lock acquired, processing the job... [2025-03-03 17:02:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:02:04] Production.INFO: count ==13 [2025-03-03 17:02:04] Production.INFO: Account Balance Start. [2025-03-03 17:02:04] Production.INFO: CreateAllLog Start [2025-03-03 17:02:04] Production.INFO: 117 [2025-03-03 17:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:02:04] Production.INFO: count ==21 [2025-03-03 17:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599861') start [2025-03-03 17:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599861') end [2025-03-03 17:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:02:04] Production.INFO: 1 [2025-03-03 17:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.ERROR: done [2025-03-03 17:02:05] Production.INFO: ==8375== Releasing lock... [2025-03-03 17:02:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:02:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:02:05] Production.INFO: Date 2025-02-11 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.ERROR: done [2025-03-03 17:02:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:02:05] Production.INFO: Total Charge 0 [2025-03-03 17:02:05] Production.INFO: CreateAllLog End [2025-03-03 17:02:06] Production.INFO: Account Balance End. [2025-03-03 17:02:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:02:06] Production.INFO: ==8371== Releasing lock... [2025-03-03 17:02:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:02:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:02:06 [end_date_ymd] => 2025-03-03 17:02:06 [RateCDR] => 1 ) [2025-03-03 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:02:06' and `end` < '2025-03-03 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:02:15] Production.ERROR: CronJobId end10 [2025-03-03 17:02:15] Production.INFO: ==8369== Releasing lock... [2025-03-03 17:02:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:02:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:02:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:02:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:02:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:02:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:02:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:02:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:02:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:02:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:02:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:02:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:02:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:02:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:02:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:02:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:02:17] Production.INFO: call_cost start [2025-03-03 17:02:17] Production.INFO: call_cost end [2025-03-03 17:02:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:02:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:02:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:02:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:02:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:02:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:02:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:02:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:02:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:02:18] Production.INFO: ==8365== Releasing lock... [2025-03-03 17:02:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:02:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:02:19] Production.INFO: count ==6095 [2025-03-03 17:02:23] Production.ERROR: pbx CDR StartTime 2025-03-03 14:02:06 - End Time 2025-03-03 17:02:06 [2025-03-03 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599863', 'tblTempUsageDetail_20' ) start [2025-03-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599863', 'tblTempUsageDetail_20' ) end [2025-03-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599863', 'tblTempVendorCDR_20' ) start [2025-03-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599863', 'tblTempVendorCDR_20' ) end [2025-03-03 17:02:23] Production.INFO: ProcessCDR(1,14599863,1,1,2) [2025-03-03 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599863', 'tblTempUsageDetail_20' ) start [2025-03-03 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599863', 'tblTempUsageDetail_20' ) end [2025-03-03 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:02:28] Production.INFO: ==8373== Releasing lock... [2025-03-03 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:02:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-03 22:03:01] Production.INFO: ==8431== Lock acquired, processing the job... [2025-03-03 22:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:03:01] Production.INFO: neon service started [2025-03-03 22:03:01] Production.INFO: neon service started [2025-03-03 22:03:01] Production.INFO: ==8431== Releasing lock... [2025-03-03 22:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:03:02] Production.INFO: ==8435== Lock acquired, processing the job... [2025-03-03 22:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:03:02] Production.INFO: ==8435== Releasing lock... [2025-03-03 22:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:03:02] Production.INFO: ==8433== Lock acquired, processing the job... [2025-03-03 17:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:03:02] Production.INFO: ==8433== Releasing lock... [2025-03-03 17:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:03:03] Production.INFO: ==8438== Lock acquired, processing the job... [2025-03-03 17:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:03:03] Production.INFO: ==8442== Lock acquired, processing the job... [2025-03-03 17:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:03:03] Production.INFO: ==8446== Lock acquired, processing the job... [2025-03-03 17:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:03:03] Production.INFO: ==8440== Lock acquired, processing the job... [2025-03-03 17:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:03:03] Production.INFO: ==8444== Lock acquired, processing the job... [2025-03-03 17:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:03:04] Production.INFO: ==8449== Lock acquired, processing the job... [2025-03-03 17:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:03:04] Production.ERROR: done [2025-03-03 17:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:03:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:03:04] Production.INFO: Account Balance Start. [2025-03-03 17:03:04] Production.INFO: CreateAllLog Start [2025-03-03 17:03:04] Production.INFO: 117 [2025-03-03 17:03:04] Production.INFO: count ==13 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.ERROR: done [2025-03-03 17:03:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:03:04] Production.INFO: count ==21 [2025-03-03 17:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599866') start [2025-03-03 17:03:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599866') end [2025-03-03 17:03:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:03:04] Production.INFO: 1 [2025-03-03 17:03:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:03:04] Production.INFO: ==8440== Releasing lock... [2025-03-03 17:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:03:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: ==8449== Releasing lock... [2025-03-03 17:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:03:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:03:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:03:05] Production.INFO: Total Charge 0 [2025-03-03 17:03:05] Production.INFO: CreateAllLog End [2025-03-03 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:03:05 [end_date_ymd] => 2025-03-03 17:03:05 [RateCDR] => 1 ) [2025-03-03 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:03:05' and `end` < '2025-03-03 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:03:05] Production.INFO: Account Balance End. [2025-03-03 17:03:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:03:05] Production.INFO: ==8444== Releasing lock... [2025-03-03 17:03:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:03:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:03:14] Production.ERROR: CronJobId end10 [2025-03-03 17:03:14] Production.INFO: ==8442== Releasing lock... [2025-03-03 17:03:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:03:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:03:15] Production.INFO: call_cost start [2025-03-03 17:03:15] Production.INFO: call_cost end [2025-03-03 17:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:03:16] Production.INFO: ==8438== Releasing lock... [2025-03-03 17:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:03:19] Production.INFO: count ==6075 [2025-03-03 17:03:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:03:05 - End Time 2025-03-03 17:03:05 [2025-03-03 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599868', 'tblTempUsageDetail_20' ) start [2025-03-03 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599868', 'tblTempUsageDetail_20' ) end [2025-03-03 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599868', 'tblTempVendorCDR_20' ) start [2025-03-03 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599868', 'tblTempVendorCDR_20' ) end [2025-03-03 17:03:22] Production.INFO: ProcessCDR(1,14599868,1,1,2) [2025-03-03 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599868', 'tblTempUsageDetail_20' ) start [2025-03-03 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599868', 'tblTempUsageDetail_20' ) end [2025-03-03 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:03:26] Production.INFO: ==8446== Releasing lock... [2025-03-03 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:03:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 22:04:02] Production.INFO: ==8511== Lock acquired, processing the job... [2025-03-03 22:04:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:04:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:04:02] Production.INFO: neon service started [2025-03-03 22:04:02] Production.INFO: neon service started [2025-03-03 22:04:02] Production.INFO: ==8511== Releasing lock... [2025-03-03 22:04:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:04:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:04:02] Production.INFO: ==8513== Lock acquired, processing the job... [2025-03-03 17:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:04:02] Production.INFO: ==8513== Releasing lock... [2025-03-03 17:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:04:03] Production.INFO: ==8515== Lock acquired, processing the job... [2025-03-03 22:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:04:03] Production.INFO: ==8515== Releasing lock... [2025-03-03 22:04:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:04:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:04:03] Production.INFO: ==8522== Lock acquired, processing the job... [2025-03-03 17:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:04:04] Production.INFO: ==8528== Lock acquired, processing the job... [2025-03-03 17:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:04:04] Production.INFO: ==8517== Lock acquired, processing the job... [2025-03-03 17:04:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:04:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:04:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:04:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:04:04] Production.INFO: ==8519== Lock acquired, processing the job... [2025-03-03 17:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:04:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:04:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:04:04] Production.INFO: ==8524== Lock acquired, processing the job... [2025-03-03 17:04:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:04:04] Production.INFO: count ==13 [2025-03-03 17:04:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:04:04] Production.INFO: count ==21 [2025-03-03 17:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599869') start [2025-03-03 17:04:04] Production.INFO: Account Balance Start. [2025-03-03 17:04:04] Production.INFO: CreateAllLog Start [2025-03-03 17:04:04] Production.INFO: 117 [2025-03-03 17:04:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:04:04] Production.INFO: ==8526== Lock acquired, processing the job... [2025-03-03 17:04:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:04:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599869') end [2025-03-03 17:04:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:04:04] Production.INFO: 1 [2025-03-03 17:04:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:04:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.INFO: ==8528== Releasing lock... [2025-03-03 17:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:04:04] Production.INFO: ==8519== Releasing lock... [2025-03-03 17:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:04:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.ERROR: done [2025-03-03 17:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:04:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.ERROR: done [2025-03-03 17:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:04:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:04:05] Production.INFO: Total Charge 0 [2025-03-03 17:04:05] Production.INFO: CreateAllLog End [2025-03-03 17:04:05] Production.INFO: Account Balance End. [2025-03-03 17:04:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:04:06] Production.INFO: ==8524== Releasing lock... [2025-03-03 17:04:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:04:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:04:06 [end_date_ymd] => 2025-03-03 17:04:06 [RateCDR] => 1 ) [2025-03-03 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:04:06' and `end` < '2025-03-03 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:04:15] Production.ERROR: CronJobId end10 [2025-03-03 17:04:15] Production.INFO: ==8522== Releasing lock... [2025-03-03 17:04:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:04:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:04:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:04:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:04:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:04:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:04:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:04:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:04:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:04:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:04:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:04:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:04:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:04:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:04:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:04:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:04:16] Production.INFO: call_cost start [2025-03-03 17:04:16] Production.INFO: call_cost end [2025-03-03 17:04:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:04:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:04:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:04:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:04:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:04:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:04:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:04:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:04:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:04:17] Production.INFO: ==8517== Releasing lock... [2025-03-03 17:04:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:04:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:04:19] Production.INFO: count ==6072 [2025-03-03 17:04:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:04:06 - End Time 2025-03-03 17:04:06 [2025-03-03 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599873', 'tblTempUsageDetail_20' ) start [2025-03-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599873', 'tblTempUsageDetail_20' ) end [2025-03-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599873', 'tblTempVendorCDR_20' ) start [2025-03-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599873', 'tblTempVendorCDR_20' ) end [2025-03-03 17:04:22] Production.INFO: ProcessCDR(1,14599873,1,1,2) [2025-03-03 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599873', 'tblTempUsageDetail_20' ) start [2025-03-03 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599873', 'tblTempUsageDetail_20' ) end [2025-03-03 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:04:27] Production.INFO: ==8526== Releasing lock... [2025-03-03 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:04:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 22:05:01] Production.INFO: ==8622== Lock acquired, processing the job... [2025-03-03 22:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:05:01] Production.INFO: neon service started [2025-03-03 22:05:01] Production.INFO: neon service started [2025-03-03 22:05:01] Production.INFO: ==8622== Releasing lock... [2025-03-03 22:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:05:02] Production.INFO: ==8624== Lock acquired, processing the job... [2025-03-03 17:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:05:02] Production.INFO: ==8626== Lock acquired, processing the job... [2025-03-03 22:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:05:02] Production.INFO: ==8626== Releasing lock... [2025-03-03 22:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:05:02] Production.INFO: ==8624== Releasing lock... [2025-03-03 17:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:05:03] Production.INFO: ==8633== Lock acquired, processing the job... [2025-03-03 17:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:05:03] Production.INFO: ==8631== Lock acquired, processing the job... [2025-03-03 17:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:05:03] Production.INFO: ==8639== Lock acquired, processing the job... [2025-03-03 17:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:05:03] Production.INFO: ==8635== Lock acquired, processing the job... [2025-03-03 17:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:05:03] Production.INFO: ==8637== Lock acquired, processing the job... [2025-03-03 17:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:05:03] Production.INFO: ==8633== Releasing lock... [2025-03-03 17:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:05:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:05:03] Production.INFO: ==8641== Lock acquired, processing the job... [2025-03-03 17:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:05:03] Production.INFO: Account Balance Start. [2025-03-03 17:05:03] Production.INFO: CreateAllLog Start [2025-03-03 17:05:03] Production.INFO: 117 [2025-03-03 17:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:05:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: count ==13 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:05:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:05:04] Production.INFO: count ==21 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.ERROR: done [2025-03-03 17:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599877') start [2025-03-03 17:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:05:04] Production.ERROR: done [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599877') end [2025-03-03 17:05:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:05:04] Production.INFO: 1 [2025-03-03 17:05:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:05:04] Production.INFO: ==8641== Releasing lock... [2025-03-03 17:05:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:05:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:05:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:05:05] Production.INFO: Total Charge 0 [2025-03-03 17:05:05] Production.INFO: CreateAllLog End [2025-03-03 17:05:05] Production.INFO: Account Balance End. [2025-03-03 17:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:05:05] Production.INFO: ==8637== Releasing lock... [2025-03-03 17:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:05:06 [end_date_ymd] => 2025-03-03 17:05:06 [RateCDR] => 1 ) [2025-03-03 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:05:06' and `end` < '2025-03-03 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:05:15] Production.ERROR: CronJobId end10 [2025-03-03 17:05:15] Production.INFO: ==8635== Releasing lock... [2025-03-03 17:05:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:05:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:05:15] Production.INFO: call_cost start [2025-03-03 17:05:15] Production.INFO: call_cost end [2025-03-03 17:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:05:16] Production.INFO: ==8631== Releasing lock... [2025-03-03 17:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:05:19] Production.INFO: count ==6064 [2025-03-03 17:05:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:05:06 - End Time 2025-03-03 17:05:06 [2025-03-03 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599878', 'tblTempUsageDetail_20' ) start [2025-03-03 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599878', 'tblTempUsageDetail_20' ) end [2025-03-03 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599878', 'tblTempVendorCDR_20' ) start [2025-03-03 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599878', 'tblTempVendorCDR_20' ) end [2025-03-03 17:05:22] Production.INFO: ProcessCDR(1,14599878,1,1,2) [2025-03-03 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599878', 'tblTempUsageDetail_20' ) start [2025-03-03 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599878', 'tblTempUsageDetail_20' ) end [2025-03-03 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:05:27] Production.INFO: ==8639== Releasing lock... [2025-03-03 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:05:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 22:06:02] Production.INFO: ==8781== Lock acquired, processing the job... [2025-03-03 22:06:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:06:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:06:02] Production.INFO: neon service started [2025-03-03 22:06:02] Production.INFO: neon service started [2025-03-03 22:06:02] Production.INFO: ==8781== Releasing lock... [2025-03-03 22:06:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:06:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:06:02] Production.INFO: ==8783== Lock acquired, processing the job... [2025-03-03 17:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:06:02] Production.INFO: ==8783== Releasing lock... [2025-03-03 17:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:06:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:06:03] Production.INFO: ==8785== Lock acquired, processing the job... [2025-03-03 22:06:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:06:03] Production.INFO: ==8785== Releasing lock... [2025-03-03 22:06:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:06:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:06:03] Production.INFO: ==8788== Lock acquired, processing the job... [2025-03-03 17:06:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:06:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:06:04] Production.INFO: ==8794== Lock acquired, processing the job... [2025-03-03 17:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:06:04] Production.INFO: ==8797== Lock acquired, processing the job... [2025-03-03 17:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:06:04] Production.INFO: Account Balance Start. [2025-03-03 17:06:04] Production.INFO: CreateAllLog Start [2025-03-03 17:06:04] Production.INFO: 117 [2025-03-03 17:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: ==8790== Lock acquired, processing the job... [2025-03-03 17:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:06:04] Production.INFO: ==8792== Lock acquired, processing the job... [2025-03-03 17:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: ==8800== Lock acquired, processing the job... [2025-03-03 17:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.ERROR: done [2025-03-03 17:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:06:04] Production.INFO: count ==13 [2025-03-03 17:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:06:04] Production.INFO: count ==21 [2025-03-03 17:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599881') start [2025-03-03 17:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599881') end [2025-03-03 17:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:06:04] Production.INFO: 1 [2025-03-03 17:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:06:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:04] Production.INFO: ==8800== Releasing lock... [2025-03-03 17:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:06:04] Production.ERROR: done [2025-03-03 17:06:04] Production.INFO: ==8790== Releasing lock... [2025-03-03 17:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:06:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:06:05] Production.INFO: Total Charge 0 [2025-03-03 17:06:05] Production.INFO: CreateAllLog End [2025-03-03 17:06:05] Production.INFO: Account Balance End. [2025-03-03 17:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:06:05] Production.INFO: ==8794== Releasing lock... [2025-03-03 17:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:06:05 [end_date_ymd] => 2025-03-03 17:06:05 [RateCDR] => 1 ) [2025-03-03 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:06:05' and `end` < '2025-03-03 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:06:14] Production.ERROR: CronJobId end10 [2025-03-03 17:06:14] Production.INFO: ==8792== Releasing lock... [2025-03-03 17:06:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:06:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:06:16] Production.INFO: call_cost start [2025-03-03 17:06:16] Production.INFO: call_cost end [2025-03-03 17:06:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:06:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:06:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:06:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:06:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:06:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:06:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:06:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:06:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:06:17] Production.INFO: ==8788== Releasing lock... [2025-03-03 17:06:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:06:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:06:19] Production.INFO: count ==6088 [2025-03-03 17:06:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:06:05 - End Time 2025-03-03 17:06:05 [2025-03-03 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599883', 'tblTempUsageDetail_20' ) start [2025-03-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599883', 'tblTempUsageDetail_20' ) end [2025-03-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599883', 'tblTempVendorCDR_20' ) start [2025-03-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599883', 'tblTempVendorCDR_20' ) end [2025-03-03 17:06:22] Production.INFO: ProcessCDR(1,14599883,1,1,2) [2025-03-03 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599883', 'tblTempUsageDetail_20' ) start [2025-03-03 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599883', 'tblTempUsageDetail_20' ) end [2025-03-03 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:06:27] Production.INFO: ==8797== Releasing lock... [2025-03-03 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:06:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-03 22:07:01] Production.INFO: ==8871== Lock acquired, processing the job... [2025-03-03 22:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:07:01] Production.INFO: neon service started [2025-03-03 22:07:01] Production.INFO: neon service started [2025-03-03 22:07:01] Production.INFO: ==8871== Releasing lock... [2025-03-03 22:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:07:02] Production.INFO: ==8874== Lock acquired, processing the job... [2025-03-03 17:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:07:02] Production.INFO: ==8876== Lock acquired, processing the job... [2025-03-03 22:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:07:02] Production.INFO: ==8876== Releasing lock... [2025-03-03 22:07:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:07:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:07:02] Production.INFO: ==8874== Releasing lock... [2025-03-03 17:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:07:03] Production.INFO: ==8881== Lock acquired, processing the job... [2025-03-03 17:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:07:03] Production.INFO: ==8883== Lock acquired, processing the job... [2025-03-03 17:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:07:03] Production.INFO: ==8885== Lock acquired, processing the job... [2025-03-03 17:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:07:03] Production.INFO: ==8879== Lock acquired, processing the job... [2025-03-03 17:07:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:07:03] Production.INFO: ==8881== Releasing lock... [2025-03-03 17:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:07:03] Production.INFO: Account Balance Start. [2025-03-03 17:07:03] Production.INFO: CreateAllLog Start [2025-03-03 17:07:03] Production.INFO: 117 [2025-03-03 17:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: ==8889== Lock acquired, processing the job... [2025-03-03 17:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:07:04] Production.INFO: ==8887== Lock acquired, processing the job... [2025-03-03 17:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:07:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:07:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:07:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: count ==13 [2025-03-03 17:07:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:07:04] Production.INFO: count ==21 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599887') start [2025-03-03 17:07:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599887') end [2025-03-03 17:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:07:04] Production.INFO: 1 [2025-03-03 17:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.ERROR: done [2025-03-03 17:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:07:04] Production.INFO: ==8889== Releasing lock... [2025-03-03 17:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.ERROR: done [2025-03-03 17:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:07:05] Production.INFO: Total Charge 0 [2025-03-03 17:07:05] Production.INFO: CreateAllLog End [2025-03-03 17:07:05] Production.INFO: Account Balance End. [2025-03-03 17:07:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:07:05] Production.INFO: ==8885== Releasing lock... [2025-03-03 17:07:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:07:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:07:05 [end_date_ymd] => 2025-03-03 17:07:05 [RateCDR] => 1 ) [2025-03-03 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:07:05' and `end` < '2025-03-03 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:07:13] Production.ERROR: CronJobId end10 [2025-03-03 17:07:13] Production.INFO: ==8883== Releasing lock... [2025-03-03 17:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:07:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:07:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:07:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:07:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:07:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:07:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:07:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:07:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:07:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:07:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:07:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:07:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:07:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:07:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:07:15] Production.INFO: call_cost start [2025-03-03 17:07:15] Production.INFO: call_cost end [2025-03-03 17:07:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:07:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:07:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:07:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:07:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:07:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:07:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:07:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:07:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:07:16] Production.INFO: ==8879== Releasing lock... [2025-03-03 17:07:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:07:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:07:19] Production.INFO: count ==6054 [2025-03-03 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:07:05 - End Time 2025-03-03 17:07:05 [2025-03-03 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599888', 'tblTempUsageDetail_20' ) start [2025-03-03 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599888', 'tblTempUsageDetail_20' ) end [2025-03-03 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599888', 'tblTempVendorCDR_20' ) start [2025-03-03 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599888', 'tblTempVendorCDR_20' ) end [2025-03-03 17:07:22] Production.INFO: ProcessCDR(1,14599888,1,1,2) [2025-03-03 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599888', 'tblTempUsageDetail_20' ) start [2025-03-03 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599888', 'tblTempUsageDetail_20' ) end [2025-03-03 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:07:27] Production.INFO: ==8887== Releasing lock... [2025-03-03 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:07:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-03 22:08:02] Production.INFO: ==8956== Lock acquired, processing the job... [2025-03-03 22:08:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:08:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:08:02] Production.INFO: neon service started [2025-03-03 22:08:02] Production.INFO: neon service started [2025-03-03 22:08:02] Production.INFO: ==8956== Releasing lock... [2025-03-03 22:08:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:08:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:08:02] Production.INFO: ==8958== Lock acquired, processing the job... [2025-03-03 17:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:08:02] Production.INFO: ==8960== Lock acquired, processing the job... [2025-03-03 22:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:08:02] Production.INFO: ==8960== Releasing lock... [2025-03-03 22:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:08:03] Production.INFO: ==8958== Releasing lock... [2025-03-03 17:08:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:08:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:08:04] Production.INFO: ==8963== Lock acquired, processing the job... [2025-03-03 17:08:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:08:04] Production.INFO: ==8965== Lock acquired, processing the job... [2025-03-03 17:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:08:04] Production.INFO: ==8967== Lock acquired, processing the job... [2025-03-03 17:08:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:08:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:08:04] Production.INFO: ==8965== Releasing lock... [2025-03-03 17:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:08:04] Production.INFO: ==8969== Lock acquired, processing the job... [2025-03-03 17:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:08:04] Production.INFO: ==8971== Lock acquired, processing the job... [2025-03-03 17:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:08:04] Production.INFO: Account Balance Start. [2025-03-03 17:08:04] Production.INFO: CreateAllLog Start [2025-03-03 17:08:04] Production.INFO: 117 [2025-03-03 17:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:08:04] Production.INFO: ==8973== Lock acquired, processing the job... [2025-03-03 17:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:08:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: count ==13 [2025-03-03 17:08:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:08:05] Production.ERROR: done [2025-03-03 17:08:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:08:05] Production.INFO: count ==21 [2025-03-03 17:08:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599892') start [2025-03-03 17:08:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.ERROR: done [2025-03-03 17:08:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.ERROR: PBX CALL prc_importPBXExtension('14599892') end [2025-03-03 17:08:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:08:05] Production.INFO: 1 [2025-03-03 17:08:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:08:05] Production.INFO: ==8973== Releasing lock... [2025-03-03 17:08:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:08:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:08:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:08:05] Production.INFO: Total Charge 0 [2025-03-03 17:08:05] Production.INFO: CreateAllLog End [2025-03-03 17:08:06] Production.INFO: Account Balance End. [2025-03-03 17:08:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:08:06] Production.INFO: ==8969== Releasing lock... [2025-03-03 17:08:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:08:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:08:06 [end_date_ymd] => 2025-03-03 17:08:06 [RateCDR] => 1 ) [2025-03-03 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:08:06' and `end` < '2025-03-03 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:08:14] Production.ERROR: CronJobId end10 [2025-03-03 17:08:14] Production.INFO: ==8967== Releasing lock... [2025-03-03 17:08:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:08:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:08:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:08:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:08:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:08:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:08:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:08:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:08:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:08:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:08:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:08:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:08:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:08:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:08:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:08:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:08:17] Production.INFO: call_cost start [2025-03-03 17:08:17] Production.INFO: call_cost end [2025-03-03 17:08:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:08:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:08:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:08:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:08:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:08:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:08:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:08:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:08:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:08:18] Production.INFO: ==8963== Releasing lock... [2025-03-03 17:08:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:08:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:08:19] Production.INFO: count ==6017 [2025-03-03 17:08:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:08:06 - End Time 2025-03-03 17:08:06 [2025-03-03 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599893', 'tblTempUsageDetail_20' ) start [2025-03-03 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599893', 'tblTempUsageDetail_20' ) end [2025-03-03 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599893', 'tblTempVendorCDR_20' ) start [2025-03-03 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599893', 'tblTempVendorCDR_20' ) end [2025-03-03 17:08:22] Production.INFO: ProcessCDR(1,14599893,1,1,2) [2025-03-03 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599893', 'tblTempUsageDetail_20' ) start [2025-03-03 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599893', 'tblTempUsageDetail_20' ) end [2025-03-03 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:08:28] Production.INFO: ==8971== Releasing lock... [2025-03-03 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:08:28] Production.INFO: 73 MB #Memory Used# [2025-03-03 22:09:01] Production.INFO: ==9032== Lock acquired, processing the job... [2025-03-03 22:09:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:09:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:09:01] Production.INFO: neon service started [2025-03-03 22:09:01] Production.INFO: neon service started [2025-03-03 22:09:01] Production.INFO: ==9032== Releasing lock... [2025-03-03 22:09:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:09:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:09:02] Production.INFO: ==9034== Lock acquired, processing the job... [2025-03-03 17:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:09:02] Production.INFO: ==9034== Releasing lock... [2025-03-03 17:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:09:02] Production.INFO: ==9036== Lock acquired, processing the job... [2025-03-03 22:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:09:02] Production.INFO: ==9036== Releasing lock... [2025-03-03 22:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:09:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:09:03] Production.INFO: ==9038== Lock acquired, processing the job... [2025-03-03 17:09:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:09:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:09:03] Production.INFO: ==9049== Lock acquired, processing the job... [2025-03-03 17:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:09:03] Production.INFO: ==9040== Lock acquired, processing the job... [2025-03-03 17:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:09:03] Production.INFO: ==9042== Lock acquired, processing the job... [2025-03-03 17:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:09:03] Production.INFO: ==9044== Lock acquired, processing the job... [2025-03-03 17:09:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:09:03] Production.INFO: ==9046== Lock acquired, processing the job... [2025-03-03 17:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:09:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:09:03] Production.INFO: count ==13 [2025-03-03 17:09:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:09:03] Production.INFO: count ==21 [2025-03-03 17:09:03] Production.INFO: Account Balance Start. [2025-03-03 17:09:03] Production.INFO: CreateAllLog Start [2025-03-03 17:09:03] Production.INFO: 117 [2025-03-03 17:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599895') start [2025-03-03 17:09:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:09:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:09:03] Production.INFO: ==9040== Releasing lock... [2025-03-03 17:09:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:09:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:09:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599895') end [2025-03-03 17:09:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:09:03] Production.INFO: 1 [2025-03-03 17:09:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:09:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:09:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:03] Production.INFO: ==9049== Releasing lock... [2025-03-03 17:09:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:09:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:09:04] Production.ERROR: done [2025-03-03 17:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.ERROR: done [2025-03-03 17:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:09:05] Production.INFO: Total Charge 0 [2025-03-03 17:09:05] Production.INFO: CreateAllLog End [2025-03-03 17:09:05] Production.INFO: Account Balance End. [2025-03-03 17:09:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:09:05] Production.INFO: ==9044== Releasing lock... [2025-03-03 17:09:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:09:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:09:05 [end_date_ymd] => 2025-03-03 17:09:05 [RateCDR] => 1 ) [2025-03-03 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:09:05' and `end` < '2025-03-03 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:09:13] Production.ERROR: CronJobId end10 [2025-03-03 17:09:13] Production.INFO: ==9042== Releasing lock... [2025-03-03 17:09:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:09:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:09:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:09:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:09:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:09:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:09:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:09:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:09:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:09:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:09:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:09:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:09:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:09:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:09:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:09:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:09:15] Production.INFO: call_cost start [2025-03-03 17:09:15] Production.INFO: call_cost end [2025-03-03 17:09:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:09:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:09:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:09:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:09:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:09:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:09:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:09:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:09:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:09:16] Production.INFO: ==9038== Releasing lock... [2025-03-03 17:09:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:09:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:09:19] Production.INFO: count ==5981 [2025-03-03 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:09:05 - End Time 2025-03-03 17:09:05 [2025-03-03 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599898', 'tblTempUsageDetail_20' ) start [2025-03-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599898', 'tblTempUsageDetail_20' ) end [2025-03-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599898', 'tblTempVendorCDR_20' ) start [2025-03-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599898', 'tblTempVendorCDR_20' ) end [2025-03-03 17:09:22] Production.INFO: ProcessCDR(1,14599898,1,1,2) [2025-03-03 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599898', 'tblTempUsageDetail_20' ) start [2025-03-03 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599898', 'tblTempUsageDetail_20' ) end [2025-03-03 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:09:27] Production.INFO: ==9046== Releasing lock... [2025-03-03 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:09:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-03 22:10:02] Production.INFO: ==9109== Lock acquired, processing the job... [2025-03-03 22:10:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:10:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:10:02] Production.INFO: neon service started [2025-03-03 22:10:02] Production.INFO: neon service started [2025-03-03 22:10:02] Production.INFO: ==9109== Releasing lock... [2025-03-03 22:10:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:10:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:10:02] Production.INFO: ==9111== Lock acquired, processing the job... [2025-03-03 17:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:10:02] Production.INFO: ==9111== Releasing lock... [2025-03-03 17:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:10:03] Production.INFO: ==9113== Lock acquired, processing the job... [2025-03-03 22:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:10:03] Production.INFO: ==9113== Releasing lock... [2025-03-03 22:10:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:10:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:10:03] Production.INFO: ==9118== Lock acquired, processing the job... [2025-03-03 17:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:10:03] Production.INFO: ==9128== Lock acquired, processing the job... [2025-03-03 17:10:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 17:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:10:04] Production.INFO: ==9130== Lock acquired, processing the job... [2025-03-03 17:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:10:04] Production.ERROR: done [2025-03-03 17:10:04] Production.INFO: ==9116== Lock acquired, processing the job... [2025-03-03 17:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 17:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 17:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599900', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 17:10:04] Production.INFO: ==9120== Lock acquired, processing the job... [2025-03-03 17:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:10:04] Production.ERROR: CronJob PID - 9118 [2025-03-03 17:10:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 17:10:04] Production.ERROR: CronJob ID - 5 [2025-03-03 17:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 17:10:00 [2025-03-03 17:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:10:04] Production.ERROR: CronJob PID - 9128 [2025-03-03 17:10:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 17:10:04] Production.ERROR: CronJob ID - 17 [2025-03-03 17:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 17:10:00 [2025-03-03 17:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:10:04] Production.ERROR: CronJob PID - 9130 [2025-03-03 17:10:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 17:10:04] Production.ERROR: CronJob ID - 19 [2025-03-03 17:10:04] Production.ERROR: CronJob Last Run Time 2025-03-03 17:10:00 [2025-03-03 17:10:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:10:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 17:10:04] Production.INFO: ==9116== Releasing lock... [2025-03-03 17:10:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 17:10:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:10:04] Production.INFO: ==9122== Lock acquired, processing the job... [2025-03-03 17:10:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:10:04] Production.INFO: ==9124== Lock acquired, processing the job... [2025-03-03 17:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:10:04] Production.INFO: count ==13 [2025-03-03 17:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:10:04] Production.INFO: count ==21 [2025-03-03 17:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599901') start [2025-03-03 17:10:04] Production.INFO: ==9126== Lock acquired, processing the job... [2025-03-03 17:10:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:10:04] Production.INFO: Account Balance Start. [2025-03-03 17:10:04] Production.INFO: CreateAllLog Start [2025-03-03 17:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:10:04] Production.INFO: 117 [2025-03-03 17:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599901') end [2025-03-03 17:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:10:04] Production.INFO: 1 [2025-03-03 17:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:10:04] Production.INFO: ==9130== Releasing lock... [2025-03-03 17:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:10:05] Production.INFO: ==9120== Releasing lock... [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:10:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:10:05] Production.ERROR: done [2025-03-03 17:10:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.ERROR: done [2025-03-03 17:10:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-20 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-21 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-22 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-23 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-24 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-25 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-26 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-27 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-02-28 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-03-01 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-03-02 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Date 2025-03-03 [2025-03-03 17:10:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:10:06] Production.INFO: Total Charge 0 [2025-03-03 17:10:06] Production.INFO: CreateAllLog End [2025-03-03 17:10:06] Production.INFO: Account Balance End. [2025-03-03 17:10:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:10:06] Production.INFO: ==9124== Releasing lock... [2025-03-03 17:10:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:10:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:10:06 [end_date_ymd] => 2025-03-03 17:10:06 [RateCDR] => 1 ) [2025-03-03 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:10:06' and `end` < '2025-03-03 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599900', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 17:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 17:10:09] Production.INFO: ProcessCDR(1,14599900,1,1,2) [2025-03-03 17:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599900,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:10:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599900,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:10:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:10:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:10:10] Production.INFO: ==9128== Releasing lock... [2025-03-03 17:10:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 17:10:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:10:15] Production.ERROR: CronJobId end10 [2025-03-03 17:10:15] Production.INFO: ==9122== Releasing lock... [2025-03-03 17:10:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:10:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:10:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:10:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:10:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:10:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:10:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:10:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:10:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:10:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:10:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:10:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:10:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:10:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:10:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:10:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:10:17] Production.INFO: call_cost start [2025-03-03 17:10:17] Production.INFO: call_cost end [2025-03-03 17:10:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:10:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:10:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:10:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:10:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:10:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:10:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:10:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:10:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:10:18] Production.INFO: ==9118== Releasing lock... [2025-03-03 17:10:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:10:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:10:20] Production.INFO: count ==5954 [2025-03-03 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:10:06 - End Time 2025-03-03 17:10:06 [2025-03-03 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599904', 'tblTempUsageDetail_20' ) start [2025-03-03 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599904', 'tblTempUsageDetail_20' ) end [2025-03-03 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599904', 'tblTempVendorCDR_20' ) start [2025-03-03 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599904', 'tblTempVendorCDR_20' ) end [2025-03-03 17:10:23] Production.INFO: ProcessCDR(1,14599904,1,1,2) [2025-03-03 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599904', 'tblTempUsageDetail_20' ) start [2025-03-03 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599904', 'tblTempUsageDetail_20' ) end [2025-03-03 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:10:27] Production.INFO: ==9126== Releasing lock... [2025-03-03 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:10:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-03 22:11:01] Production.INFO: ==9194== Lock acquired, processing the job... [2025-03-03 22:11:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:11:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:11:01] Production.INFO: neon service started [2025-03-03 22:11:01] Production.INFO: neon service started [2025-03-03 22:11:01] Production.INFO: ==9194== Releasing lock... [2025-03-03 22:11:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:11:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:11:01] Production.INFO: ==9196== Lock acquired, processing the job... [2025-03-03 17:11:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:11:02] Production.INFO: ==9198== Lock acquired, processing the job... [2025-03-03 22:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:11:02] Production.INFO: ==9196== Releasing lock... [2025-03-03 17:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:11:02] Production.INFO: ==9198== Releasing lock... [2025-03-03 22:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:11:03] Production.INFO: ==9200== Lock acquired, processing the job... [2025-03-03 17:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:11:03] Production.INFO: ==9202== Lock acquired, processing the job... [2025-03-03 17:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:11:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:11:03] Production.INFO: ==9206== Lock acquired, processing the job... [2025-03-03 17:11:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:11:03] Production.INFO: ==9204== Lock acquired, processing the job... [2025-03-03 17:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:11:03] Production.INFO: Account Balance Start. [2025-03-03 17:11:03] Production.INFO: CreateAllLog Start [2025-03-03 17:11:03] Production.INFO: 117 [2025-03-03 17:11:03] Production.INFO: ==9202== Releasing lock... [2025-03-03 17:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:11:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:11:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:11:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:11:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:11:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.INFO: ==9208== Lock acquired, processing the job... [2025-03-03 17:11:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:11:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:11:03] Production.INFO: ==9210== Lock acquired, processing the job... [2025-03-03 17:11:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:11:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:11:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:11:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.INFO: count ==13 [2025-03-03 17:11:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:11:03] Production.INFO: count ==21 [2025-03-03 17:11:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599908') start [2025-03-03 17:11:03] Production.INFO: Date 2025-02-14 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.INFO: Date 2025-02-15 [2025-03-03 17:11:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:03] Production.ERROR: done [2025-03-03 17:11:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:11:03] Production.INFO: Date 2025-02-16 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599908') end [2025-03-03 17:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:11:04] Production.INFO: 1 [2025-03-03 17:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: ==9210== Releasing lock... [2025-03-03 17:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:11:04] Production.ERROR: done [2025-03-03 17:11:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:11:04] Production.INFO: Total Charge 0 [2025-03-03 17:11:04] Production.INFO: CreateAllLog End [2025-03-03 17:11:04] Production.INFO: Account Balance End. [2025-03-03 17:11:04] Production.ERROR: CronJobId end 12 [2025-03-03 17:11:04] Production.INFO: ==9206== Releasing lock... [2025-03-03 17:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:11:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:11:05 [end_date_ymd] => 2025-03-03 17:11:05 [RateCDR] => 1 ) [2025-03-03 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:11:05' and `end` < '2025-03-03 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:11:12] Production.ERROR: CronJobId end10 [2025-03-03 17:11:12] Production.INFO: ==9204== Releasing lock... [2025-03-03 17:11:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:11:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:11:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:11:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:11:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:11:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:11:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:11:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:11:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:11:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:11:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:11:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:11:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:11:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:11:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:11:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:11:14] Production.INFO: call_cost start [2025-03-03 17:11:14] Production.INFO: call_cost end [2025-03-03 17:11:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:11:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:11:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:11:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:11:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:11:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:11:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:11:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:11:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:11:15] Production.INFO: ==9200== Releasing lock... [2025-03-03 17:11:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:11:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:11:18] Production.INFO: count ==5900 [2025-03-03 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:11:05 - End Time 2025-03-03 17:11:05 [2025-03-03 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599909', 'tblTempUsageDetail_20' ) start [2025-03-03 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599909', 'tblTempUsageDetail_20' ) end [2025-03-03 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599909', 'tblTempVendorCDR_20' ) start [2025-03-03 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599909', 'tblTempVendorCDR_20' ) end [2025-03-03 17:11:21] Production.INFO: ProcessCDR(1,14599909,1,1,2) [2025-03-03 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599909', 'tblTempUsageDetail_20' ) start [2025-03-03 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599909', 'tblTempUsageDetail_20' ) end [2025-03-03 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:11:26] Production.INFO: ==9208== Releasing lock... [2025-03-03 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:11:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-03 22:12:02] Production.INFO: ==9268== Lock acquired, processing the job... [2025-03-03 22:12:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:12:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:12:02] Production.INFO: neon service started [2025-03-03 22:12:02] Production.INFO: neon service started [2025-03-03 22:12:02] Production.INFO: ==9268== Releasing lock... [2025-03-03 22:12:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:12:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:12:02] Production.INFO: ==9270== Lock acquired, processing the job... [2025-03-03 17:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:12:02] Production.INFO: ==9272== Lock acquired, processing the job... [2025-03-03 22:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:12:02] Production.INFO: ==9270== Releasing lock... [2025-03-03 17:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:12:02] Production.INFO: ==9272== Releasing lock... [2025-03-03 22:12:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:12:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:12:03] Production.INFO: ==9276== Lock acquired, processing the job... [2025-03-03 17:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:12:03] Production.INFO: ==9274== Lock acquired, processing the job... [2025-03-03 17:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:12:03] Production.INFO: ==9278== Lock acquired, processing the job... [2025-03-03 17:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:12:03] Production.INFO: ==9285== Lock acquired, processing the job... [2025-03-03 17:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:12:03] Production.INFO: ==9280== Lock acquired, processing the job... [2025-03-03 17:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:12:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:12:04] Production.INFO: ==9282== Lock acquired, processing the job... [2025-03-03 17:12:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:12:04] Production.INFO: ==9276== Releasing lock... [2025-03-03 17:12:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:12:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:12:04] Production.INFO: count ==13 [2025-03-03 17:12:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:12:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:12:04] Production.INFO: count ==21 [2025-03-03 17:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599912') start [2025-03-03 17:12:04] Production.INFO: Account Balance Start. [2025-03-03 17:12:04] Production.INFO: CreateAllLog Start [2025-03-03 17:12:04] Production.INFO: 117 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599912') end [2025-03-03 17:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:12:04] Production.INFO: 1 [2025-03-03 17:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:12:04] Production.INFO: ==9285== Releasing lock... [2025-03-03 17:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:12:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.ERROR: done [2025-03-03 17:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.ERROR: done [2025-03-03 17:12:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:12:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:12:05] Production.INFO: Total Charge 0 [2025-03-03 17:12:05] Production.INFO: CreateAllLog End [2025-03-03 17:12:05] Production.INFO: Account Balance End. [2025-03-03 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:12:05 [end_date_ymd] => 2025-03-03 17:12:05 [RateCDR] => 1 ) [2025-03-03 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:12:05' and `end` < '2025-03-03 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:12:05] Production.INFO: ==9280== Releasing lock... [2025-03-03 17:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:12:14] Production.ERROR: CronJobId end10 [2025-03-03 17:12:14] Production.INFO: ==9278== Releasing lock... [2025-03-03 17:12:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:12:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:12:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:12:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:12:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:12:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:12:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:12:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:12:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:12:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:12:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:12:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:12:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:12:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:12:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:12:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:12:15] Production.INFO: call_cost start [2025-03-03 17:12:15] Production.INFO: call_cost end [2025-03-03 17:12:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:12:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:12:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:12:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:12:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:12:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:12:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:12:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:12:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:12:16] Production.INFO: ==9274== Releasing lock... [2025-03-03 17:12:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:12:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:12:19] Production.INFO: count ==5884 [2025-03-03 17:12:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:12:05 - End Time 2025-03-03 17:12:05 [2025-03-03 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599914', 'tblTempUsageDetail_20' ) start [2025-03-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599914', 'tblTempUsageDetail_20' ) end [2025-03-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599914', 'tblTempVendorCDR_20' ) start [2025-03-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599914', 'tblTempVendorCDR_20' ) end [2025-03-03 17:12:22] Production.INFO: ProcessCDR(1,14599914,1,1,2) [2025-03-03 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599914', 'tblTempUsageDetail_20' ) start [2025-03-03 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599914', 'tblTempUsageDetail_20' ) end [2025-03-03 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:12:27] Production.INFO: ==9282== Releasing lock... [2025-03-03 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:12:27] Production.INFO: 72 MB #Memory Used# [2025-03-03 22:13:01] Production.INFO: ==9342== Lock acquired, processing the job... [2025-03-03 22:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:13:01] Production.INFO: neon service started [2025-03-03 22:13:01] Production.INFO: neon service started [2025-03-03 22:13:01] Production.INFO: ==9342== Releasing lock... [2025-03-03 22:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:13:01] Production.INFO: ==9344== Lock acquired, processing the job... [2025-03-03 17:13:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:13:02] Production.INFO: ==9344== Releasing lock... [2025-03-03 17:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:13:02] Production.INFO: ==9346== Lock acquired, processing the job... [2025-03-03 22:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:13:02] Production.INFO: ==9346== Releasing lock... [2025-03-03 22:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:13:02] Production.INFO: ==9348== Lock acquired, processing the job... [2025-03-03 17:13:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:13:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:13:02] Production.INFO: ==9354== Lock acquired, processing the job... [2025-03-03 17:13:02] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:13:03] Production.INFO: Account Balance Start. [2025-03-03 17:13:03] Production.INFO: CreateAllLog Start [2025-03-03 17:13:03] Production.INFO: 117 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: ==9350== Lock acquired, processing the job... [2025-03-03 17:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:13:03] Production.INFO: Date 2025-02-14 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-15 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: ==9352== Lock acquired, processing the job... [2025-03-03 17:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:13:03] Production.INFO: ==9356== Lock acquired, processing the job... [2025-03-03 17:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:13:03] Production.INFO: ==9358== Lock acquired, processing the job... [2025-03-03 17:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:13:03] Production.INFO: Date 2025-02-16 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-17 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:13:03] Production.INFO: Date 2025-02-18 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: count ==13 [2025-03-03 17:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:13:03] Production.INFO: count ==21 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-19 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599918') start [2025-03-03 17:13:03] Production.INFO: ==9350== Releasing lock... [2025-03-03 17:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:13:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:13:03] Production.INFO: Date 2025-02-20 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599918') end [2025-03-03 17:13:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:13:03] Production.INFO: 1 [2025-03-03 17:13:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:13:03] Production.INFO: Date 2025-02-21 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:03] Production.INFO: Date 2025-02-22 [2025-03-03 17:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: ==9358== Releasing lock... [2025-03-03 17:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.ERROR: done [2025-03-03 17:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.ERROR: done [2025-03-03 17:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:13:04] Production.INFO: Total Charge 0 [2025-03-03 17:13:04] Production.INFO: CreateAllLog End [2025-03-03 17:13:04] Production.INFO: Account Balance End. [2025-03-03 17:13:04] Production.ERROR: CronJobId end 12 [2025-03-03 17:13:04] Production.INFO: ==9354== Releasing lock... [2025-03-03 17:13:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:13:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:13:05 [end_date_ymd] => 2025-03-03 17:13:05 [RateCDR] => 1 ) [2025-03-03 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:13:05' and `end` < '2025-03-03 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:13:13] Production.ERROR: CronJobId end10 [2025-03-03 17:13:13] Production.INFO: ==9352== Releasing lock... [2025-03-03 17:13:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:13:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:13:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:13:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:13:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:13:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:13:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:13:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:13:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:13:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:13:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:13:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:13:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:13:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:13:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:13:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:13:14] Production.INFO: call_cost start [2025-03-03 17:13:14] Production.INFO: call_cost end [2025-03-03 17:13:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:13:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:13:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:13:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:13:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:13:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:13:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:13:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:13:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:13:15] Production.INFO: ==9348== Releasing lock... [2025-03-03 17:13:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:13:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:13:18] Production.INFO: count ==5863 [2025-03-03 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:13:05 - End Time 2025-03-03 17:13:05 [2025-03-03 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599919', 'tblTempUsageDetail_20' ) start [2025-03-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599919', 'tblTempUsageDetail_20' ) end [2025-03-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599919', 'tblTempVendorCDR_20' ) start [2025-03-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599919', 'tblTempVendorCDR_20' ) end [2025-03-03 17:13:21] Production.INFO: ProcessCDR(1,14599919,1,1,2) [2025-03-03 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599919', 'tblTempUsageDetail_20' ) start [2025-03-03 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599919', 'tblTempUsageDetail_20' ) end [2025-03-03 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:13:26] Production.INFO: ==9356== Releasing lock... [2025-03-03 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:13:26] Production.INFO: 72 MB #Memory Used# [2025-03-03 22:14:01] Production.INFO: ==9414== Lock acquired, processing the job... [2025-03-03 22:14:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:14:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:14:01] Production.INFO: neon service started [2025-03-03 22:14:01] Production.INFO: neon service started [2025-03-03 22:14:01] Production.INFO: ==9414== Releasing lock... [2025-03-03 22:14:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:14:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:14:02] Production.INFO: ==9416== Lock acquired, processing the job... [2025-03-03 17:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:14:02] Production.INFO: ==9418== Lock acquired, processing the job... [2025-03-03 22:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:14:02] Production.INFO: ==9418== Releasing lock... [2025-03-03 22:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:14:02] Production.INFO: ==9416== Releasing lock... [2025-03-03 17:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:14:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:14:03] Production.INFO: ==9424== Lock acquired, processing the job... [2025-03-03 17:14:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:14:03] Production.INFO: ==9431== Lock acquired, processing the job... [2025-03-03 17:14:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:14:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:14:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:14:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:14:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:14:03] Production.INFO: ==9420== Lock acquired, processing the job... [2025-03-03 17:14:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:14:03] Production.INFO: ==9422== Lock acquired, processing the job... [2025-03-03 17:14:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:14:03] Production.INFO: ==9426== Lock acquired, processing the job... [2025-03-03 17:14:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:14:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:14:03] Production.INFO: ==9428== Lock acquired, processing the job... [2025-03-03 17:14:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:14:04] Production.INFO: count ==13 [2025-03-03 17:14:04] Production.INFO: Account Balance Start. [2025-03-03 17:14:04] Production.INFO: CreateAllLog Start [2025-03-03 17:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:14:04] Production.INFO: count ==21 [2025-03-03 17:14:04] Production.INFO: 117 [2025-03-03 17:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599920') start [2025-03-03 17:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599920') end [2025-03-03 17:14:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:14:04] Production.INFO: 1 [2025-03-03 17:14:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:14:04] Production.INFO: ==9431== Releasing lock... [2025-03-03 17:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:14:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.ERROR: done [2025-03-03 17:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:14:04] Production.INFO: ==9422== Releasing lock... [2025-03-03 17:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:14:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.ERROR: done [2025-03-03 17:14:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:14:05] Production.INFO: Total Charge 0 [2025-03-03 17:14:05] Production.INFO: CreateAllLog End [2025-03-03 17:14:05] Production.INFO: Account Balance End. [2025-03-03 17:14:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:14:05] Production.INFO: ==9426== Releasing lock... [2025-03-03 17:14:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:14:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:14:05 [end_date_ymd] => 2025-03-03 17:14:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:14:05' and `end` < '2025-03-03 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-03-03 17:14:12] Production.ERROR: CronJobId end10 [2025-03-03 17:14:12] Production.INFO: ==9424== Releasing lock... [2025-03-03 17:14:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:14:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:14:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:14:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:14:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:14:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:14:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:14:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:14:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:14:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:14:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:14:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:14:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:14:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:14:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:14:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:14:15] Production.INFO: call_cost start [2025-03-03 17:14:15] Production.INFO: call_cost end [2025-03-03 17:14:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:14:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:14:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:14:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:14:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:14:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:14:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:14:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:14:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:14:16] Production.INFO: ==9420== Releasing lock... [2025-03-03 17:14:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:14:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:14:18] Production.INFO: count ==5840 [2025-03-03 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:14:05 - End Time 2025-03-03 17:14:05 [2025-03-03 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599924', 'tblTempUsageDetail_20' ) start [2025-03-03 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599924', 'tblTempUsageDetail_20' ) end [2025-03-03 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599924', 'tblTempVendorCDR_20' ) start [2025-03-03 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599924', 'tblTempVendorCDR_20' ) end [2025-03-03 17:14:21] Production.INFO: ProcessCDR(1,14599924,1,1,2) [2025-03-03 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599924', 'tblTempUsageDetail_20' ) start [2025-03-03 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599924', 'tblTempUsageDetail_20' ) end [2025-03-03 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:14:27] Production.INFO: ==9428== Releasing lock... [2025-03-03 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:14:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-03 22:15:01] Production.INFO: ==9490== Lock acquired, processing the job... [2025-03-03 22:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:15:01] Production.INFO: neon service started [2025-03-03 22:15:01] Production.INFO: neon service started [2025-03-03 22:15:01] Production.INFO: ==9490== Releasing lock... [2025-03-03 22:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:15:02] Production.INFO: ==9492== Lock acquired, processing the job... [2025-03-03 17:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:15:02] Production.INFO: ==9494== Lock acquired, processing the job... [2025-03-03 22:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:15:02] Production.INFO: ==9494== Releasing lock... [2025-03-03 22:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:15:02] Production.INFO: ==9492== Releasing lock... [2025-03-03 17:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:15:03] Production.INFO: ==9499== Lock acquired, processing the job... [2025-03-03 17:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:15:03] Production.INFO: ==9505== Lock acquired, processing the job... [2025-03-03 17:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:15:03] Production.INFO: ==9497== Lock acquired, processing the job... [2025-03-03 17:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:15:03] Production.INFO: ==9499== Releasing lock... [2025-03-03 17:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:15:03] Production.INFO: ==9503== Lock acquired, processing the job... [2025-03-03 17:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:15:03] Production.INFO: ==9501== Lock acquired, processing the job... [2025-03-03 17:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:15:03] Production.INFO: ==9507== Lock acquired, processing the job... [2025-03-03 17:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:15:03] Production.INFO: Account Balance Start. [2025-03-03 17:15:03] Production.INFO: CreateAllLog Start [2025-03-03 17:15:03] Production.INFO: 117 [2025-03-03 17:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:15:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:15:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.INFO: count ==13 [2025-03-03 17:15:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:15:03] Production.INFO: count ==21 [2025-03-03 17:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599928') start [2025-03-03 17:15:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:15:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:15:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:15:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.ERROR: done [2025-03-03 17:15:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:15:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:15:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599928') end [2025-03-03 17:15:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:15:03] Production.INFO: 1 [2025-03-03 17:15:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:15:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.INFO: Date 2025-02-14 [2025-03-03 17:15:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:03] Production.INFO: ==9507== Releasing lock... [2025-03-03 17:15:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:15:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.ERROR: done [2025-03-03 17:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:15:04] Production.INFO: Total Charge 0 [2025-03-03 17:15:04] Production.INFO: CreateAllLog End [2025-03-03 17:15:04] Production.INFO: Account Balance End. [2025-03-03 17:15:04] Production.ERROR: CronJobId end 12 [2025-03-03 17:15:04] Production.INFO: ==9503== Releasing lock... [2025-03-03 17:15:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:15:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:15:05 [end_date_ymd] => 2025-03-03 17:15:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:15:05' and `end` < '2025-03-03 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-03-03 17:15:12] Production.ERROR: CronJobId end10 [2025-03-03 17:15:12] Production.INFO: ==9501== Releasing lock... [2025-03-03 17:15:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:15:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:15:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:15:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:15:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:15:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:15:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:15:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:15:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:15:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:15:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:15:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:15:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:15:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:15:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:15:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:15:14] Production.INFO: call_cost start [2025-03-03 17:15:14] Production.INFO: call_cost end [2025-03-03 17:15:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:15:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:15:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:15:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:15:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:15:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:15:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:15:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:15:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:15:15] Production.INFO: ==9497== Releasing lock... [2025-03-03 17:15:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:15:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:15:18] Production.INFO: count ==5823 [2025-03-03 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:15:05 - End Time 2025-03-03 17:15:05 [2025-03-03 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599929', 'tblTempUsageDetail_20' ) start [2025-03-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599929', 'tblTempUsageDetail_20' ) end [2025-03-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599929', 'tblTempVendorCDR_20' ) start [2025-03-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599929', 'tblTempVendorCDR_20' ) end [2025-03-03 17:15:21] Production.INFO: ProcessCDR(1,14599929,1,1,2) [2025-03-03 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599929', 'tblTempUsageDetail_20' ) start [2025-03-03 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599929', 'tblTempUsageDetail_20' ) end [2025-03-03 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:15:24] Production.INFO: ==9505== Releasing lock... [2025-03-03 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:15:24] Production.INFO: 71.5 MB #Memory Used# [2025-03-03 22:16:01] Production.INFO: ==9561== Lock acquired, processing the job... [2025-03-03 22:16:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:16:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:16:01] Production.INFO: neon service started [2025-03-03 22:16:01] Production.INFO: neon service started [2025-03-03 22:16:01] Production.INFO: ==9561== Releasing lock... [2025-03-03 22:16:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:16:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:16:02] Production.INFO: ==9564== Lock acquired, processing the job... [2025-03-03 17:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:16:02] Production.INFO: ==9564== Releasing lock... [2025-03-03 17:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:16:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:16:02] Production.INFO: ==9566== Lock acquired, processing the job... [2025-03-03 22:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:16:02] Production.INFO: ==9566== Releasing lock... [2025-03-03 22:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:16:03] Production.INFO: ==9568== Lock acquired, processing the job... [2025-03-03 17:16:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:16:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:16:03] Production.INFO: ==9578== Lock acquired, processing the job... [2025-03-03 17:16:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:16:03] Production.INFO: ==9570== Lock acquired, processing the job... [2025-03-03 17:16:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:16:03] Production.INFO: ==9572== Lock acquired, processing the job... [2025-03-03 17:16:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:16:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:16:03] Production.INFO: ==9574== Lock acquired, processing the job... [2025-03-03 17:16:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:16:03] Production.INFO: ==9576== Lock acquired, processing the job... [2025-03-03 17:16:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:16:03] Production.INFO: count ==13 [2025-03-03 17:16:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:16:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:16:03] Production.INFO: count ==21 [2025-03-03 17:16:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:16:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:16:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:16:03] Production.INFO: Account Balance Start. [2025-03-03 17:16:03] Production.INFO: CreateAllLog Start [2025-03-03 17:16:03] Production.INFO: 117 [2025-03-03 17:16:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599931') start [2025-03-03 17:16:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:16:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599931') end [2025-03-03 17:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:16:04] Production.INFO: 1 [2025-03-03 17:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:16:04] Production.INFO: ==9578== Releasing lock... [2025-03-03 17:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.ERROR: done [2025-03-03 17:16:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:16:04] Production.INFO: ==9570== Releasing lock... [2025-03-03 17:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:16:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:16:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.ERROR: done [2025-03-03 17:16:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:16:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:16:05] Production.INFO: Total Charge 0 [2025-03-03 17:16:05] Production.INFO: CreateAllLog End [2025-03-03 17:16:05] Production.INFO: Account Balance End. [2025-03-03 17:16:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:16:05] Production.INFO: ==9574== Releasing lock... [2025-03-03 17:16:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:16:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:16:05 [end_date_ymd] => 2025-03-03 17:16:05 [RateCDR] => 1 ) [2025-03-03 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:16:05' and `end` < '2025-03-03 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:16:14] Production.ERROR: CronJobId end10 [2025-03-03 17:16:14] Production.INFO: ==9572== Releasing lock... [2025-03-03 17:16:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:16:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:16:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:16:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:16:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:16:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:16:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:16:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:16:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:16:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:16:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:16:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:16:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:16:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:16:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:16:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:16:15] Production.INFO: call_cost start [2025-03-03 17:16:15] Production.INFO: call_cost end [2025-03-03 17:16:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:16:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:16:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:16:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:16:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:16:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:16:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:16:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:16:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:16:16] Production.INFO: ==9568== Releasing lock... [2025-03-03 17:16:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:16:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:16:18] Production.INFO: count ==5806 [2025-03-03 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:16:05 - End Time 2025-03-03 17:16:05 [2025-03-03 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599934', 'tblTempUsageDetail_20' ) start [2025-03-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599934', 'tblTempUsageDetail_20' ) end [2025-03-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599934', 'tblTempVendorCDR_20' ) start [2025-03-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599934', 'tblTempVendorCDR_20' ) end [2025-03-03 17:16:21] Production.INFO: ProcessCDR(1,14599934,1,1,2) [2025-03-03 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599934', 'tblTempUsageDetail_20' ) start [2025-03-03 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599934', 'tblTempUsageDetail_20' ) end [2025-03-03 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:16:26] Production.INFO: ==9576== Releasing lock... [2025-03-03 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:16:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-03 22:17:02] Production.INFO: ==9631== Lock acquired, processing the job... [2025-03-03 22:17:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:17:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:17:02] Production.INFO: neon service started [2025-03-03 22:17:02] Production.INFO: neon service started [2025-03-03 22:17:02] Production.INFO: ==9631== Releasing lock... [2025-03-03 22:17:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:17:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:17:02] Production.INFO: ==9633== Lock acquired, processing the job... [2025-03-03 17:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:17:02] Production.INFO: ==9633== Releasing lock... [2025-03-03 17:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:17:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:17:03] Production.INFO: ==9635== Lock acquired, processing the job... [2025-03-03 22:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:17:03] Production.INFO: ==9635== Releasing lock... [2025-03-03 22:17:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:17:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:17:03] Production.INFO: ==9641== Lock acquired, processing the job... [2025-03-03 17:17:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:17:03] Production.INFO: ==9637== Lock acquired, processing the job... [2025-03-03 17:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:17:03] Production.INFO: ==9639== Lock acquired, processing the job... [2025-03-03 17:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:17:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:17:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:17:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:17:03] Production.INFO: ==9646== Lock acquired, processing the job... [2025-03-03 17:17:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:17:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:17:04] Production.INFO: ==9644== Lock acquired, processing the job... [2025-03-03 17:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:17:04] Production.INFO: ==9648== Lock acquired, processing the job... [2025-03-03 17:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:17:04] Production.INFO: Account Balance Start. [2025-03-03 17:17:04] Production.INFO: CreateAllLog Start [2025-03-03 17:17:04] Production.INFO: 117 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: count ==13 [2025-03-03 17:17:04] Production.INFO: ==9639== Releasing lock... [2025-03-03 17:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:17:04] Production.ERROR: done [2025-03-03 17:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:17:04] Production.INFO: count ==21 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599937') start [2025-03-03 17:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599937') end [2025-03-03 17:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:17:04] Production.INFO: 1 [2025-03-03 17:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:17:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.ERROR: done [2025-03-03 17:17:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: ==9648== Releasing lock... [2025-03-03 17:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:17:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:17:05] Production.INFO: Total Charge 0 [2025-03-03 17:17:05] Production.INFO: CreateAllLog End [2025-03-03 17:17:05] Production.INFO: Account Balance End. [2025-03-03 17:17:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:17:05] Production.INFO: ==9644== Releasing lock... [2025-03-03 17:17:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:17:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:17:05 [end_date_ymd] => 2025-03-03 17:17:05 [RateCDR] => 1 ) [2025-03-03 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:17:05' and `end` < '2025-03-03 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:17:13] Production.ERROR: CronJobId end10 [2025-03-03 17:17:13] Production.INFO: ==9641== Releasing lock... [2025-03-03 17:17:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:17:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:17:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:17:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:17:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:17:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:17:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:17:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:17:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:17:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:17:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:17:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:17:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:17:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:17:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:17:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:17:14] Production.INFO: call_cost start [2025-03-03 17:17:14] Production.INFO: call_cost end [2025-03-03 17:17:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:17:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:17:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:17:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:17:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:17:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:17:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:17:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:17:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:17:15] Production.INFO: ==9637== Releasing lock... [2025-03-03 17:17:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:17:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:17:18] Production.INFO: count ==5800 [2025-03-03 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:17:05 - End Time 2025-03-03 17:17:05 [2025-03-03 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599939', 'tblTempUsageDetail_20' ) start [2025-03-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599939', 'tblTempUsageDetail_20' ) end [2025-03-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599939', 'tblTempVendorCDR_20' ) start [2025-03-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599939', 'tblTempVendorCDR_20' ) end [2025-03-03 17:17:21] Production.INFO: ProcessCDR(1,14599939,1,1,2) [2025-03-03 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599939', 'tblTempUsageDetail_20' ) start [2025-03-03 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599939', 'tblTempUsageDetail_20' ) end [2025-03-03 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:17:26] Production.INFO: ==9646== Releasing lock... [2025-03-03 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:17:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-03 22:18:01] Production.INFO: ==9701== Lock acquired, processing the job... [2025-03-03 22:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:18:01] Production.INFO: neon service started [2025-03-03 22:18:01] Production.INFO: neon service started [2025-03-03 22:18:01] Production.INFO: ==9701== Releasing lock... [2025-03-03 22:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:18:02] Production.INFO: ==9703== Lock acquired, processing the job... [2025-03-03 17:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:18:02] Production.INFO: ==9703== Releasing lock... [2025-03-03 17:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:18:02] Production.INFO: ==9705== Lock acquired, processing the job... [2025-03-03 22:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:18:02] Production.INFO: ==9705== Releasing lock... [2025-03-03 22:18:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:18:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:18:03] Production.INFO: ==9711== Lock acquired, processing the job... [2025-03-03 17:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:18:03] Production.INFO: ==9707== Lock acquired, processing the job... [2025-03-03 17:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:18:03] Production.INFO: ==9717== Lock acquired, processing the job... [2025-03-03 17:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:18:03] Production.INFO: ==9709== Lock acquired, processing the job... [2025-03-03 17:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:18:03] Production.INFO: ==9713== Lock acquired, processing the job... [2025-03-03 17:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:18:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:18:03] Production.INFO: ==9715== Lock acquired, processing the job... [2025-03-03 17:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:18:03] Production.INFO: count ==13 [2025-03-03 17:18:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:18:03] Production.INFO: count ==21 [2025-03-03 17:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599940') start [2025-03-03 17:18:03] Production.INFO: Account Balance Start. [2025-03-03 17:18:03] Production.INFO: CreateAllLog Start [2025-03-03 17:18:03] Production.INFO: 117 [2025-03-03 17:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:18:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:03] Production.ERROR: PBX CALL prc_importPBXExtension('14599940') end [2025-03-03 17:18:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:18:03] Production.INFO: 1 [2025-03-03 17:18:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:18:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:18:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: ==9717== Releasing lock... [2025-03-03 17:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: ==9709== Releasing lock... [2025-03-03 17:18:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:18:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.ERROR: done [2025-03-03 17:18:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.ERROR: done [2025-03-03 17:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:18:04] Production.INFO: Total Charge 0 [2025-03-03 17:18:04] Production.INFO: CreateAllLog End [2025-03-03 17:18:04] Production.INFO: Account Balance End. [2025-03-03 17:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:18:05] Production.INFO: ==9713== Releasing lock... [2025-03-03 17:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:18:05 [end_date_ymd] => 2025-03-03 17:18:05 [RateCDR] => 1 ) [2025-03-03 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:18:05' and `end` < '2025-03-03 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:18:13] Production.ERROR: CronJobId end10 [2025-03-03 17:18:13] Production.INFO: ==9711== Releasing lock... [2025-03-03 17:18:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:18:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:18:15] Production.INFO: call_cost start [2025-03-03 17:18:15] Production.INFO: call_cost end [2025-03-03 17:18:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:18:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:18:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:18:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:18:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:18:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:18:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:18:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:18:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:18:16] Production.INFO: ==9707== Releasing lock... [2025-03-03 17:18:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:18:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:18:18] Production.INFO: count ==5802 [2025-03-03 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:18:05 - End Time 2025-03-03 17:18:05 [2025-03-03 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599944', 'tblTempUsageDetail_20' ) start [2025-03-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599944', 'tblTempUsageDetail_20' ) end [2025-03-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599944', 'tblTempVendorCDR_20' ) start [2025-03-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599944', 'tblTempVendorCDR_20' ) end [2025-03-03 17:18:21] Production.INFO: ProcessCDR(1,14599944,1,1,2) [2025-03-03 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599944', 'tblTempUsageDetail_20' ) start [2025-03-03 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599944', 'tblTempUsageDetail_20' ) end [2025-03-03 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:18:25] Production.INFO: ==9715== Releasing lock... [2025-03-03 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:18:25] Production.INFO: 71.5 MB #Memory Used# [2025-03-03 22:19:02] Production.INFO: ==9772== Lock acquired, processing the job... [2025-03-03 22:19:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:19:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:19:02] Production.INFO: neon service started [2025-03-03 22:19:02] Production.INFO: neon service started [2025-03-03 22:19:02] Production.INFO: ==9772== Releasing lock... [2025-03-03 22:19:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:19:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:19:02] Production.INFO: ==9774== Lock acquired, processing the job... [2025-03-03 17:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:19:02] Production.INFO: ==9774== Releasing lock... [2025-03-03 17:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:19:03] Production.INFO: ==9776== Lock acquired, processing the job... [2025-03-03 22:19:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:19:03] Production.INFO: ==9776== Releasing lock... [2025-03-03 22:19:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:19:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:19:03] Production.INFO: ==9783== Lock acquired, processing the job... [2025-03-03 17:19:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:19:03] Production.INFO: ==9779== Lock acquired, processing the job... [2025-03-03 17:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:19:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:19:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:19:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:19:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:19:03] Production.INFO: ==9781== Lock acquired, processing the job... [2025-03-03 17:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:19:04] Production.INFO: ==9785== Lock acquired, processing the job... [2025-03-03 17:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:19:04] Production.INFO: ==9787== Lock acquired, processing the job... [2025-03-03 17:19:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:19:04] Production.INFO: ==9789== Lock acquired, processing the job... [2025-03-03 17:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:19:04] Production.INFO: Account Balance Start. [2025-03-03 17:19:04] Production.INFO: CreateAllLog Start [2025-03-03 17:19:04] Production.INFO: 117 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:19:04] Production.INFO: count ==13 [2025-03-03 17:19:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:19:04] Production.INFO: count ==21 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599948') start [2025-03-03 17:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: ==9781== Releasing lock... [2025-03-03 17:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599948') end [2025-03-03 17:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:19:04] Production.INFO: 1 [2025-03-03 17:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: ==9789== Releasing lock... [2025-03-03 17:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:19:04] Production.ERROR: done [2025-03-03 17:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.ERROR: done [2025-03-03 17:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:19:05] Production.INFO: Total Charge 0 [2025-03-03 17:19:05] Production.INFO: CreateAllLog End [2025-03-03 17:19:05] Production.INFO: Account Balance End. [2025-03-03 17:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:19:05] Production.INFO: ==9785== Releasing lock... [2025-03-03 17:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:19:05 [end_date_ymd] => 2025-03-03 17:19:05 [RateCDR] => 1 ) [2025-03-03 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:19:05' and `end` < '2025-03-03 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:19:14] Production.ERROR: CronJobId end10 [2025-03-03 17:19:14] Production.INFO: ==9783== Releasing lock... [2025-03-03 17:19:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:19:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:19:16] Production.INFO: call_cost start [2025-03-03 17:19:16] Production.INFO: call_cost end [2025-03-03 17:19:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:19:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:19:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:19:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:19:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:19:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:19:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:19:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:19:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:19:17] Production.INFO: ==9779== Releasing lock... [2025-03-03 17:19:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:19:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:19:19] Production.INFO: count ==5787 [2025-03-03 17:19:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:19:05 - End Time 2025-03-03 17:19:05 [2025-03-03 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599949', 'tblTempUsageDetail_20' ) start [2025-03-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599949', 'tblTempUsageDetail_20' ) end [2025-03-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599949', 'tblTempVendorCDR_20' ) start [2025-03-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599949', 'tblTempVendorCDR_20' ) end [2025-03-03 17:19:22] Production.INFO: ProcessCDR(1,14599949,1,1,2) [2025-03-03 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599949', 'tblTempUsageDetail_20' ) start [2025-03-03 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599949', 'tblTempUsageDetail_20' ) end [2025-03-03 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:19:27] Production.INFO: ==9787== Releasing lock... [2025-03-03 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:19:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:20:01] Production.INFO: ==9844== Lock acquired, processing the job... [2025-03-03 22:20:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:20:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:20:01] Production.INFO: neon service started [2025-03-03 22:20:01] Production.INFO: neon service started [2025-03-03 22:20:01] Production.INFO: ==9844== Releasing lock... [2025-03-03 22:20:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:20:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:20:02] Production.INFO: ==9846== Lock acquired, processing the job... [2025-03-03 17:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:20:02] Production.INFO: ==9848== Lock acquired, processing the job... [2025-03-03 22:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:20:02] Production.INFO: ==9848== Releasing lock... [2025-03-03 22:20:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:20:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:20:02] Production.INFO: ==9846== Releasing lock... [2025-03-03 17:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:20:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:20:03] Production.INFO: ==9850== Lock acquired, processing the job... [2025-03-03 17:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 17:20:03] Production.INFO: ==9852== Lock acquired, processing the job... [2025-03-03 17:20:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:20:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 17:20:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 17:20:03] Production.INFO: ==9850== Releasing lock... [2025-03-03 17:20:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 17:20:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:20:03] Production.INFO: ==9865== Lock acquired, processing the job... [2025-03-03 17:20:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:20:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:20:03] Production.INFO: ==9854== Lock acquired, processing the job... [2025-03-03 17:20:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:20:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:20:03] Production.INFO: ==9856== Lock acquired, processing the job... [2025-03-03 17:20:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:20:04] Production.INFO: count ==13 [2025-03-03 17:20:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:20:04] Production.INFO: ==9858== Lock acquired, processing the job... [2025-03-03 17:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:20:04] Production.INFO: count ==21 [2025-03-03 17:20:04] Production.INFO: ==9861== Lock acquired, processing the job... [2025-03-03 17:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:20:04] Production.INFO: ==9863== Lock acquired, processing the job... [2025-03-03 17:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 17:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599950') start [2025-03-03 17:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:20:04] Production.INFO: Account Balance Start. [2025-03-03 17:20:04] Production.INFO: CreateAllLog Start [2025-03-03 17:20:04] Production.INFO: 117 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:20:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599950') end [2025-03-03 17:20:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:20:04] Production.INFO: 1 [2025-03-03 17:20:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:20:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:20:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: ==9865== Releasing lock... [2025-03-03 17:20:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:20:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:20:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: ==9854== Releasing lock... [2025-03-03 17:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:20:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:20:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.ERROR: done [2025-03-03 17:20:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:20:04] Production.ERROR: done [2025-03-03 17:20:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 17:20:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599954', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 17:20:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.ERROR: done [2025-03-03 17:20:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:20:05] Production.INFO: Total Charge 0 [2025-03-03 17:20:05] Production.INFO: CreateAllLog End [2025-03-03 17:20:05] Production.INFO: Account Balance End. [2025-03-03 17:20:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:20:05] Production.INFO: ==9858== Releasing lock... [2025-03-03 17:20:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:20:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:20:06 [end_date_ymd] => 2025-03-03 17:20:06 [RateCDR] => 1 ) [2025-03-03 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:20:06' and `end` < '2025-03-03 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:20:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14599954', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 17:20:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 17:20:09] Production.INFO: ProcessCDR(1,14599954,1,1,2) [2025-03-03 17:20:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14599954,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:20:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14599954,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:20:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:20:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:20:09] Production.INFO: ==9863== Releasing lock... [2025-03-03 17:20:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 17:20:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:20:16] Production.ERROR: CronJobId end10 [2025-03-03 17:20:16] Production.INFO: ==9856== Releasing lock... [2025-03-03 17:20:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:20:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:20:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:20:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:20:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:20:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:20:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:20:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:20:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:20:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:20:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:20:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:20:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:20:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:20:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:20:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:20:17] Production.INFO: call_cost start [2025-03-03 17:20:17] Production.INFO: call_cost end [2025-03-03 17:20:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:20:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:20:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:20:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:20:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:20:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:20:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:20:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:20:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:20:18] Production.INFO: ==9852== Releasing lock... [2025-03-03 17:20:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:20:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:20:19] Production.INFO: count ==5775 [2025-03-03 17:20:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:20:06 - End Time 2025-03-03 17:20:06 [2025-03-03 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599955', 'tblTempUsageDetail_20' ) start [2025-03-03 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599955', 'tblTempUsageDetail_20' ) end [2025-03-03 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599955', 'tblTempVendorCDR_20' ) start [2025-03-03 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599955', 'tblTempVendorCDR_20' ) end [2025-03-03 17:20:22] Production.INFO: ProcessCDR(1,14599955,1,1,2) [2025-03-03 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599955', 'tblTempUsageDetail_20' ) start [2025-03-03 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599955', 'tblTempUsageDetail_20' ) end [2025-03-03 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:20:27] Production.INFO: ==9861== Releasing lock... [2025-03-03 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:20:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:21:02] Production.INFO: ==9966== Lock acquired, processing the job... [2025-03-03 22:21:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:21:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:21:02] Production.INFO: neon service started [2025-03-03 22:21:02] Production.INFO: neon service started [2025-03-03 22:21:02] Production.INFO: ==9966== Releasing lock... [2025-03-03 22:21:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:21:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:21:02] Production.INFO: ==9970== Lock acquired, processing the job... [2025-03-03 22:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:21:02] Production.INFO: ==9970== Releasing lock... [2025-03-03 22:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:21:02] Production.INFO: ==9968== Lock acquired, processing the job... [2025-03-03 17:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:21:03] Production.INFO: ==9968== Releasing lock... [2025-03-03 17:21:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:21:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:21:03] Production.INFO: ==9973== Lock acquired, processing the job... [2025-03-03 17:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:21:03] Production.INFO: ==9975== Lock acquired, processing the job... [2025-03-03 17:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:21:03] Production.INFO: ==9983== Lock acquired, processing the job... [2025-03-03 17:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:21:04] Production.INFO: ==9975== Releasing lock... [2025-03-03 17:21:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:21:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:21:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:21:04] Production.INFO: ==9977== Lock acquired, processing the job... [2025-03-03 17:21:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:21:04] Production.INFO: count ==13 [2025-03-03 17:21:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:21:04] Production.INFO: count ==21 [2025-03-03 17:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599958') start [2025-03-03 17:21:04] Production.INFO: ==9979== Lock acquired, processing the job... [2025-03-03 17:21:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:21:04] Production.INFO: ==9981== Lock acquired, processing the job... [2025-03-03 17:21:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599958') end [2025-03-03 17:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:21:04] Production.INFO: 1 [2025-03-03 17:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:21:04] Production.INFO: Account Balance Start. [2025-03-03 17:21:04] Production.INFO: CreateAllLog Start [2025-03-03 17:21:04] Production.INFO: 117 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: ==9983== Releasing lock... [2025-03-03 17:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.ERROR: done [2025-03-03 17:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:04] Production.ERROR: done [2025-03-03 17:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:21:05] Production.INFO: Total Charge 0 [2025-03-03 17:21:05] Production.INFO: CreateAllLog End [2025-03-03 17:21:05] Production.INFO: Account Balance End. [2025-03-03 17:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:21:05] Production.INFO: ==9979== Releasing lock... [2025-03-03 17:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:21:06 [end_date_ymd] => 2025-03-03 17:21:06 [RateCDR] => 1 ) [2025-03-03 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:21:06' and `end` < '2025-03-03 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:21:14] Production.ERROR: CronJobId end10 [2025-03-03 17:21:14] Production.INFO: ==9977== Releasing lock... [2025-03-03 17:21:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:21:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:21:15] Production.INFO: call_cost start [2025-03-03 17:21:15] Production.INFO: call_cost end [2025-03-03 17:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:21:16] Production.INFO: ==9973== Releasing lock... [2025-03-03 17:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:21:19] Production.INFO: count ==5791 [2025-03-03 17:21:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:21:06 - End Time 2025-03-03 17:21:06 [2025-03-03 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599960', 'tblTempUsageDetail_20' ) start [2025-03-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599960', 'tblTempUsageDetail_20' ) end [2025-03-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599960', 'tblTempVendorCDR_20' ) start [2025-03-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599960', 'tblTempVendorCDR_20' ) end [2025-03-03 17:21:22] Production.INFO: ProcessCDR(1,14599960,1,1,2) [2025-03-03 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599960', 'tblTempUsageDetail_20' ) start [2025-03-03 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599960', 'tblTempUsageDetail_20' ) end [2025-03-03 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:21:27] Production.INFO: ==9981== Releasing lock... [2025-03-03 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:21:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:22:01] Production.INFO: ==10037== Lock acquired, processing the job... [2025-03-03 22:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:22:01] Production.INFO: neon service started [2025-03-03 22:22:01] Production.INFO: neon service started [2025-03-03 22:22:01] Production.INFO: ==10037== Releasing lock... [2025-03-03 22:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:22:01] Production.INFO: ==10039== Lock acquired, processing the job... [2025-03-03 17:22:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:22:02] Production.INFO: ==10039== Releasing lock... [2025-03-03 17:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:22:02] Production.INFO: ==10041== Lock acquired, processing the job... [2025-03-03 22:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:22:02] Production.INFO: ==10041== Releasing lock... [2025-03-03 22:22:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:22:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:22:03] Production.INFO: ==10043== Lock acquired, processing the job... [2025-03-03 17:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:22:03] Production.INFO: ==10047== Lock acquired, processing the job... [2025-03-03 17:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:22:03] Production.INFO: ==10051== Lock acquired, processing the job... [2025-03-03 17:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:22:03] Production.INFO: ==10045== Lock acquired, processing the job... [2025-03-03 17:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:22:03] Production.INFO: ==10049== Lock acquired, processing the job... [2025-03-03 17:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:22:03] Production.INFO: ==10054== Lock acquired, processing the job... [2025-03-03 17:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:22:03] Production.ERROR: done [2025-03-03 17:22:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:22:03] Production.INFO: Account Balance Start. [2025-03-03 17:22:03] Production.INFO: CreateAllLog Start [2025-03-03 17:22:03] Production.INFO: 117 [2025-03-03 17:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:22:03] Production.ERROR: done [2025-03-03 17:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:03] Production.INFO: count ==13 [2025-03-03 17:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:22:04] Production.INFO: count ==21 [2025-03-03 17:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599964') start [2025-03-03 17:22:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: ==10045== Releasing lock... [2025-03-03 17:22:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:22:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599964') end [2025-03-03 17:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:22:04] Production.INFO: 1 [2025-03-03 17:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:22:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: ==10054== Releasing lock... [2025-03-03 17:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:22:05] Production.INFO: Total Charge 0 [2025-03-03 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:22:05 [end_date_ymd] => 2025-03-03 17:22:05 [RateCDR] => 1 ) [2025-03-03 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:22:05' and `end` < '2025-03-03 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:22:05] Production.INFO: CreateAllLog End [2025-03-03 17:22:05] Production.INFO: Account Balance End. [2025-03-03 17:22:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:22:05] Production.INFO: ==10049== Releasing lock... [2025-03-03 17:22:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:22:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:22:13] Production.ERROR: CronJobId end10 [2025-03-03 17:22:13] Production.INFO: ==10047== Releasing lock... [2025-03-03 17:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:22:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:22:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:22:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:22:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:22:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:22:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:22:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:22:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:22:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:22:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:22:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:22:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:22:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:22:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:22:15] Production.INFO: call_cost start [2025-03-03 17:22:15] Production.INFO: call_cost end [2025-03-03 17:22:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:22:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:22:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:22:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:22:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:22:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:22:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:22:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:22:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:22:16] Production.INFO: ==10043== Releasing lock... [2025-03-03 17:22:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:22:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:22:18] Production.INFO: count ==5789 [2025-03-03 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:22:05 - End Time 2025-03-03 17:22:05 [2025-03-03 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599965', 'tblTempUsageDetail_20' ) start [2025-03-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599965', 'tblTempUsageDetail_20' ) end [2025-03-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599965', 'tblTempVendorCDR_20' ) start [2025-03-03 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599965', 'tblTempVendorCDR_20' ) end [2025-03-03 17:22:21] Production.INFO: ProcessCDR(1,14599965,1,1,2) [2025-03-03 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599965', 'tblTempUsageDetail_20' ) start [2025-03-03 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599965', 'tblTempUsageDetail_20' ) end [2025-03-03 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:22:25] Production.INFO: ==10051== Releasing lock... [2025-03-03 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:22:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:23:02] Production.INFO: ==10108== Lock acquired, processing the job... [2025-03-03 22:23:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:23:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:23:02] Production.INFO: neon service started [2025-03-03 22:23:02] Production.INFO: neon service started [2025-03-03 22:23:02] Production.INFO: ==10108== Releasing lock... [2025-03-03 22:23:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:23:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:23:02] Production.INFO: ==10111== Lock acquired, processing the job... [2025-03-03 17:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:23:02] Production.INFO: ==10113== Lock acquired, processing the job... [2025-03-03 22:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:23:02] Production.INFO: ==10111== Releasing lock... [2025-03-03 17:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:23:02] Production.INFO: ==10113== Releasing lock... [2025-03-03 22:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:23:03] Production.INFO: ==10123== Lock acquired, processing the job... [2025-03-03 17:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:23:03] Production.INFO: ==10115== Lock acquired, processing the job... [2025-03-03 17:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:23:03] Production.INFO: ==10125== Lock acquired, processing the job... [2025-03-03 17:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:23:03] Production.INFO: ==10117== Lock acquired, processing the job... [2025-03-03 17:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:23:04] Production.INFO: ==10119== Lock acquired, processing the job... [2025-03-03 17:23:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:23:04] Production.INFO: ==10121== Lock acquired, processing the job... [2025-03-03 17:23:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:23:04] Production.INFO: count ==13 [2025-03-03 17:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:23:04] Production.INFO: count ==21 [2025-03-03 17:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599967') start [2025-03-03 17:23:04] Production.INFO: Account Balance Start. [2025-03-03 17:23:04] Production.INFO: CreateAllLog Start [2025-03-03 17:23:04] Production.INFO: 117 [2025-03-03 17:23:04] Production.ERROR: done [2025-03-03 17:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:23:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:23:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:23:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599967') end [2025-03-03 17:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:23:04] Production.INFO: 1 [2025-03-03 17:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:23:04] Production.INFO: ==10117== Releasing lock... [2025-03-03 17:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:23:04] Production.ERROR: done [2025-03-03 17:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: ==10125== Releasing lock... [2025-03-03 17:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:23:05] Production.INFO: Total Charge 0 [2025-03-03 17:23:05] Production.INFO: CreateAllLog End [2025-03-03 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:23:05 [end_date_ymd] => 2025-03-03 17:23:05 [RateCDR] => 1 ) [2025-03-03 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:23:05' and `end` < '2025-03-03 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:23:05] Production.INFO: Account Balance End. [2025-03-03 17:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:23:05] Production.INFO: ==10121== Releasing lock... [2025-03-03 17:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:23:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:23:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:23:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:23:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:23:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:23:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:23:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:23:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:23:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:23:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:23:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:23:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:23:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:23:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:23:14] Production.ERROR: CronJobId end10 [2025-03-03 17:23:14] Production.INFO: ==10119== Releasing lock... [2025-03-03 17:23:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:23:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:23:14] Production.INFO: call_cost start [2025-03-03 17:23:14] Production.INFO: call_cost end [2025-03-03 17:23:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:23:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:23:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:23:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:23:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:23:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:23:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:23:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:23:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:23:15] Production.INFO: ==10115== Releasing lock... [2025-03-03 17:23:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:23:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:23:18] Production.INFO: count ==5775 [2025-03-03 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:23:05 - End Time 2025-03-03 17:23:05 [2025-03-03 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599970', 'tblTempUsageDetail_20' ) start [2025-03-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599970', 'tblTempUsageDetail_20' ) end [2025-03-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599970', 'tblTempVendorCDR_20' ) start [2025-03-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599970', 'tblTempVendorCDR_20' ) end [2025-03-03 17:23:21] Production.INFO: ProcessCDR(1,14599970,1,1,2) [2025-03-03 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599970', 'tblTempUsageDetail_20' ) start [2025-03-03 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599970', 'tblTempUsageDetail_20' ) end [2025-03-03 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:23:26] Production.INFO: ==10123== Releasing lock... [2025-03-03 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:23:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:24:01] Production.INFO: ==10177== Lock acquired, processing the job... [2025-03-03 22:24:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:24:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:24:01] Production.INFO: neon service started [2025-03-03 22:24:01] Production.INFO: neon service started [2025-03-03 22:24:01] Production.INFO: ==10177== Releasing lock... [2025-03-03 22:24:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:24:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:24:02] Production.INFO: ==10179== Lock acquired, processing the job... [2025-03-03 17:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:24:02] Production.INFO: ==10181== Lock acquired, processing the job... [2025-03-03 22:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:24:02] Production.INFO: ==10181== Releasing lock... [2025-03-03 22:24:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:24:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:24:02] Production.INFO: ==10179== Releasing lock... [2025-03-03 17:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:24:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:24:03] Production.INFO: ==10184== Lock acquired, processing the job... [2025-03-03 17:24:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:24:03] Production.INFO: ==10188== Lock acquired, processing the job... [2025-03-03 17:24:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:24:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:24:03] Production.INFO: ==10190== Lock acquired, processing the job... [2025-03-03 17:24:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:24:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:24:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:24:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:24:03] Production.INFO: Account Balance Start. [2025-03-03 17:24:03] Production.INFO: CreateAllLog Start [2025-03-03 17:24:03] Production.INFO: 117 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:24:03] Production.INFO: ==10186== Lock acquired, processing the job... [2025-03-03 17:24:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:24:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: ==10192== Lock acquired, processing the job... [2025-03-03 17:24:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:24:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-14 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-15 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:03] Production.INFO: ==10194== Lock acquired, processing the job... [2025-03-03 17:24:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:24:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:24:03] Production.INFO: Date 2025-02-16 [2025-03-03 17:24:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: count ==13 [2025-03-03 17:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:24:04] Production.INFO: ==10186== Releasing lock... [2025-03-03 17:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:24:04] Production.INFO: count ==21 [2025-03-03 17:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599974') start [2025-03-03 17:24:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599974') end [2025-03-03 17:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:24:04] Production.INFO: 1 [2025-03-03 17:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:24:04] Production.ERROR: done [2025-03-03 17:24:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:24:04] Production.INFO: ==10194== Releasing lock... [2025-03-03 17:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:24:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:24:04] Production.ERROR: done [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:24:04] Production.INFO: Total Charge 0 [2025-03-03 17:24:04] Production.INFO: CreateAllLog End [2025-03-03 17:24:05] Production.INFO: Account Balance End. [2025-03-03 17:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:24:05] Production.INFO: ==10190== Releasing lock... [2025-03-03 17:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:24:05 [end_date_ymd] => 2025-03-03 17:24:05 [RateCDR] => 1 ) [2025-03-03 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:24:05' and `end` < '2025-03-03 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:24:14] Production.ERROR: CronJobId end10 [2025-03-03 17:24:14] Production.INFO: ==10188== Releasing lock... [2025-03-03 17:24:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:24:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:24:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:24:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:24:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:24:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:24:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:24:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:24:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:24:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:24:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:24:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:24:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:24:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:24:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:24:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:24:15] Production.INFO: call_cost start [2025-03-03 17:24:15] Production.INFO: call_cost end [2025-03-03 17:24:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:24:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:24:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:24:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:24:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:24:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:24:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:24:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:24:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:24:16] Production.INFO: ==10184== Releasing lock... [2025-03-03 17:24:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:24:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:24:19] Production.INFO: count ==5770 [2025-03-03 17:24:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:24:05 - End Time 2025-03-03 17:24:05 [2025-03-03 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599975', 'tblTempUsageDetail_20' ) start [2025-03-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599975', 'tblTempUsageDetail_20' ) end [2025-03-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599975', 'tblTempVendorCDR_20' ) start [2025-03-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599975', 'tblTempVendorCDR_20' ) end [2025-03-03 17:24:22] Production.INFO: ProcessCDR(1,14599975,1,1,2) [2025-03-03 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599975', 'tblTempUsageDetail_20' ) start [2025-03-03 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599975', 'tblTempUsageDetail_20' ) end [2025-03-03 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:24:27] Production.INFO: ==10192== Releasing lock... [2025-03-03 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:24:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:25:01] Production.INFO: ==10248== Lock acquired, processing the job... [2025-03-03 22:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:25:01] Production.INFO: neon service started [2025-03-03 22:25:01] Production.INFO: neon service started [2025-03-03 22:25:01] Production.INFO: ==10248== Releasing lock... [2025-03-03 22:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:25:02] Production.INFO: ==10252== Lock acquired, processing the job... [2025-03-03 22:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:25:02] Production.INFO: ==10252== Releasing lock... [2025-03-03 22:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:25:02] Production.INFO: ==10250== Lock acquired, processing the job... [2025-03-03 17:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:25:02] Production.INFO: ==10250== Releasing lock... [2025-03-03 17:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:25:03] Production.INFO: ==10255== Lock acquired, processing the job... [2025-03-03 17:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:25:03] Production.INFO: ==10257== Lock acquired, processing the job... [2025-03-03 17:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:25:03] Production.INFO: ==10263== Lock acquired, processing the job... [2025-03-03 17:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:25:03] Production.INFO: ==10259== Lock acquired, processing the job... [2025-03-03 17:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:25:04] Production.INFO: ==10261== Lock acquired, processing the job... [2025-03-03 17:25:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:25:04] Production.INFO: ==10257== Releasing lock... [2025-03-03 17:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:25:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:25:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:25:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:25:04] Production.INFO: ==10265== Lock acquired, processing the job... [2025-03-03 17:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:25:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:25:04] Production.INFO: Account Balance Start. [2025-03-03 17:25:04] Production.INFO: CreateAllLog Start [2025-03-03 17:25:04] Production.INFO: 117 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.ERROR: done [2025-03-03 17:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:25:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: count ==13 [2025-03-03 17:25:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:25:04] Production.INFO: count ==21 [2025-03-03 17:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599979') start [2025-03-03 17:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.ERROR: done [2025-03-03 17:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14599979') end [2025-03-03 17:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:25:04] Production.INFO: 1 [2025-03-03 17:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: ==10265== Releasing lock... [2025-03-03 17:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:25:05] Production.INFO: Total Charge 0 [2025-03-03 17:25:05] Production.INFO: CreateAllLog End [2025-03-03 17:25:05] Production.INFO: Account Balance End. [2025-03-03 17:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:25:05] Production.INFO: ==10261== Releasing lock... [2025-03-03 17:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:25:05 [end_date_ymd] => 2025-03-03 17:25:05 [RateCDR] => 1 ) [2025-03-03 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:25:05' and `end` < '2025-03-03 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:25:13] Production.ERROR: CronJobId end10 [2025-03-03 17:25:13] Production.INFO: ==10259== Releasing lock... [2025-03-03 17:25:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:25:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:25:15] Production.INFO: call_cost start [2025-03-03 17:25:15] Production.INFO: call_cost end [2025-03-03 17:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:25:16] Production.INFO: ==10255== Releasing lock... [2025-03-03 17:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:25:18] Production.INFO: count ==5770 [2025-03-03 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:25:05 - End Time 2025-03-03 17:25:05 [2025-03-03 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599980', 'tblTempUsageDetail_20' ) start [2025-03-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599980', 'tblTempUsageDetail_20' ) end [2025-03-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599980', 'tblTempVendorCDR_20' ) start [2025-03-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599980', 'tblTempVendorCDR_20' ) end [2025-03-03 17:25:21] Production.INFO: ProcessCDR(1,14599980,1,1,2) [2025-03-03 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599980', 'tblTempUsageDetail_20' ) start [2025-03-03 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599980', 'tblTempUsageDetail_20' ) end [2025-03-03 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:25:27] Production.INFO: ==10263== Releasing lock... [2025-03-03 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:25:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 22:26:01] Production.INFO: ==10320== Lock acquired, processing the job... [2025-03-03 22:26:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:26:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:26:01] Production.INFO: neon service started [2025-03-03 22:26:01] Production.INFO: neon service started [2025-03-03 22:26:01] Production.INFO: ==10320== Releasing lock... [2025-03-03 22:26:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:26:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:26:01] Production.INFO: ==10322== Lock acquired, processing the job... [2025-03-03 17:26:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:26:01] Production.INFO: ==10324== Lock acquired, processing the job... [2025-03-03 22:26:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:26:03] Production.INFO: ==10324== Releasing lock... [2025-03-03 22:26:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:26:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:26:04] Production.INFO: ==10322== Releasing lock... [2025-03-03 17:26:04] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:26:04] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:26:04] Production.INFO: ==10328== Lock acquired, processing the job... [2025-03-03 17:26:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:26:05] Production.INFO: ==10330== Lock acquired, processing the job... [2025-03-03 17:26:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:26:05] Production.INFO: ==10336== Lock acquired, processing the job... [2025-03-03 17:26:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:26:05] Production.INFO: ==10338== Lock acquired, processing the job... [2025-03-03 17:26:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:26:05] Production.INFO: ==10332== Lock acquired, processing the job... [2025-03-03 17:26:05] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:26:05] Production.INFO: ==10334== Lock acquired, processing the job... [2025-03-03 17:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:26:06] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:26:07] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:26:07] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:26:07] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:26:07] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:26:08] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:26:09] Production.INFO: Account Balance Start. [2025-03-03 17:26:09] Production.INFO: CreateAllLog Start [2025-03-03 17:26:09] Production.INFO: 117 [2025-03-03 17:26:09] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:26:09] Production.INFO: count ==13 [2025-03-03 17:26:10] Production.INFO: Date 2025-02-08 [2025-03-03 17:26:10] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:11] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:26:11] Production.INFO: count ==21 [2025-03-03 17:26:12] Production.INFO: Date 2025-02-09 [2025-03-03 17:26:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:13] Production.INFO: Date 2025-02-10 [2025-03-03 17:26:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:13] Production.INFO: Date 2025-02-11 [2025-03-03 17:26:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:13] Production.INFO: Date 2025-02-12 [2025-03-03 17:26:14] Production.ERROR: PBX CALL prc_importPBXExtension('14599982') start [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-13 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-14 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-15 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-16 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-17 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-18 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-19 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-20 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-21 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-22 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-23 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-24 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-25 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-26 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-27 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-02-28 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-03-01 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-03-02 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Date 2025-03-03 [2025-03-03 17:26:15] Production.INFO: Reseller ==> 0 [2025-03-03 17:26:15] Production.INFO: Total Charge 0 [2025-03-03 17:26:16] Production.INFO: CreateAllLog End [2025-03-03 17:26:16] Production.ERROR: done [2025-03-03 17:26:16] Production.ERROR: PBX CALL prc_importPBXExtension('14599982') end [2025-03-03 17:26:16] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:26:16] Production.INFO: 1 [2025-03-03 17:26:16] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:26:16] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:26:17] Production.INFO: ==10338== Releasing lock... [2025-03-03 17:26:17] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:26:17] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:26:17] Production.ERROR: done [2025-03-03 17:26:17] Production.INFO: ==10330== Releasing lock... [2025-03-03 17:26:17] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:26:17] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:26:18] Production.INFO: Account Balance End. [2025-03-03 17:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:26:19 [end_date_ymd] => 2025-03-03 17:26:19 [RateCDR] => 1 ) [2025-03-03 17:26:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:26:19' and `end` < '2025-03-03 17:26:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:26:20] Production.ERROR: CronJobId end 12 [2025-03-03 17:26:20] Production.INFO: ==10334== Releasing lock... [2025-03-03 17:26:20] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:26:20] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:26:33] Production.INFO: count ==5788 [2025-03-03 22:27:01] Production.INFO: ==10389== Lock acquired, processing the job... [2025-03-03 22:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:27:01] Production.INFO: neon service started [2025-03-03 22:27:01] Production.INFO: neon service started [2025-03-03 22:27:01] Production.INFO: ==10389== Releasing lock... [2025-03-03 22:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:27:02] Production.INFO: ==10394== Lock acquired, processing the job... [2025-03-03 22:27:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:27:02] Production.INFO: ==10392== Lock acquired, processing the job... [2025-03-03 17:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:27:09] Production.INFO: ==10394== Releasing lock... [2025-03-03 22:27:09] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:27:09] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:27:09] Production.INFO: ==10392== Releasing lock... [2025-03-03 17:27:09] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:27:09] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:27:10] Production.INFO: ==10404== Lock acquired, processing the job... [2025-03-03 17:27:10] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:27:10] Production.INFO: ==10406== Lock acquired, processing the job... [2025-03-03 17:27:10] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:27:10] Production.INFO: ==10402== Lock acquired, processing the job... [2025-03-03 17:27:10] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:27:15] Production.INFO: Account Balance Start. [2025-03-03 17:27:15] Production.INFO: CreateAllLog Start [2025-03-03 17:27:16] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:27:16] Production.INFO: 117 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-08 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: count ==13 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-09 [2025-03-03 17:27:16] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:27:16] Production.INFO: count ==21 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.ERROR: PBX CALL prc_importPBXExtension('14599986') start [2025-03-03 17:27:16] Production.INFO: Date 2025-02-10 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-11 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-12 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-13 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-14 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-15 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-16 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-17 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-18 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-19 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-20 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-21 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-22 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-23 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-24 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-25 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-26 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-27 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-02-28 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-03-01 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-03-02 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Date 2025-03-03 [2025-03-03 17:27:16] Production.INFO: Reseller ==> 0 [2025-03-03 17:27:16] Production.INFO: Total Charge 0 [2025-03-03 17:27:16] Production.ERROR: PBX CALL prc_importPBXExtension('14599986') end [2025-03-03 17:27:16] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:27:16] Production.INFO: 1 [2025-03-03 17:27:16] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:27:17] Production.INFO: CreateAllLog End [2025-03-03 17:27:18] Production.INFO: ==10402== Releasing lock... [2025-03-03 17:27:18] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:27:18] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:27:21] Production.INFO: ==10406== Releasing lock... [2025-03-03 17:27:21] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:27:21] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:27:21] Production.INFO: Account Balance End. [2025-03-03 17:27:23] Production.ERROR: CronJobId end 12 [2025-03-03 17:27:23] Production.INFO: ==10404== Releasing lock... [2025-03-03 17:27:23] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:27:23] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:27:44] Production.ERROR: pbx CDR StartTime 2025-03-03 14:26:19 - End Time 2025-03-03 17:26:19 [2025-03-03 17:27:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:27:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599985', 'tblTempUsageDetail_20' ) start [2025-03-03 17:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599985', 'tblTempUsageDetail_20' ) end [2025-03-03 17:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599985', 'tblTempVendorCDR_20' ) start [2025-03-03 17:27:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599985', 'tblTempVendorCDR_20' ) end [2025-03-03 17:27:56] Production.INFO: ProcessCDR(1,14599985,1,1,2) [2025-03-03 17:27:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 22:28:02] Production.INFO: ==10451== Lock acquired, processing the job... [2025-03-03 22:28:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:28:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:28:02] Production.INFO: neon service started [2025-03-03 22:28:02] Production.INFO: neon service started [2025-03-03 22:28:02] Production.INFO: ==10451== Releasing lock... [2025-03-03 22:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:28:02] Production.INFO: ==10455== Lock acquired, processing the job... [2025-03-03 22:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:28:02] Production.INFO: ==10455== Releasing lock... [2025-03-03 22:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:28:02] Production.INFO: ==10453== Lock acquired, processing the job... [2025-03-03 17:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:28:03] Production.INFO: ==10453== Releasing lock... [2025-03-03 17:28:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:28:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:28:03] Production.INFO: ==10458== Lock acquired, processing the job... [2025-03-03 17:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:28:03] Production.INFO: ==10460== Lock acquired, processing the job... [2025-03-03 17:28:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:28:03] Production.INFO: ==10462== Lock acquired, processing the job... [2025-03-03 17:28:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:28:11] Production.INFO: Account Balance Start. [2025-03-03 17:28:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:28:11] Production.INFO: CreateAllLog Start [2025-03-03 17:28:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:28:11] Production.INFO: 117 [2025-03-03 17:28:11] Production.INFO: Date 2025-02-08 [2025-03-03 17:28:11] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:28:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:11] Production.INFO: count ==13 [2025-03-03 17:28:12] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:28:12] Production.INFO: count ==21 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-09 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-10 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-11 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-12 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-13 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-14 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-15 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-16 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-17 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-18 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-19 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-20 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-21 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-22 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-23 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-24 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-25 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-26 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-27 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-02-28 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-03-01 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-03-02 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Date 2025-03-03 [2025-03-03 17:28:13] Production.INFO: Reseller ==> 0 [2025-03-03 17:28:13] Production.INFO: Total Charge 0 [2025-03-03 17:28:14] Production.INFO: CreateAllLog End [2025-03-03 17:28:14] Production.ERROR: PBX CALL prc_importPBXExtension('14599990') start [2025-03-03 17:28:14] Production.ERROR: PBX CALL prc_importPBXExtension('14599990') end [2025-03-03 17:28:14] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:28:14] Production.INFO: 1 [2025-03-03 17:28:14] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:28:15] Production.INFO: ==10462== Releasing lock... [2025-03-03 17:28:15] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:28:15] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:28:15] Production.INFO: Account Balance End. [2025-03-03 17:28:16] Production.INFO: ==10458== Releasing lock... [2025-03-03 17:28:16] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:28:16] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:28:18] Production.ERROR: CronJobId end 12 [2025-03-03 17:28:18] Production.INFO: ==10460== Releasing lock... [2025-03-03 17:28:18] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:28:18] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:28:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599985', 'tblTempUsageDetail_20' ) start [2025-03-03 17:28:43] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:28:43] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:28:43] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:28:43] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:28:43] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:28:43] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:28:43] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:28:43] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:28:43] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:28:43] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:28:43] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:28:43] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:28:43] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:28:43] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:28:48] Production.INFO: call_cost start [2025-03-03 17:28:48] Production.INFO: call_cost end [2025-03-03 17:28:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599985', 'tblTempUsageDetail_20' ) end [2025-03-03 17:28:49] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:28:49] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:28:53] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:28:53] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:28:53] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:28:53] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:28:53] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:28:53] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:28:53] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:28:53] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:28:54] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:28:56] Production.INFO: ==10328== Releasing lock... [2025-03-03 17:28:56] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:28:56] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:28:56] Production.INFO: ==10336== Releasing lock... [2025-03-03 17:28:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:28:56] Production.INFO: 71.25 MB #Memory Used# [2025-03-03 17:29:00] Production.ERROR: CronJobId end10 [2025-03-03 17:29:00] Production.INFO: ==10332== Releasing lock... [2025-03-03 17:29:00] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:29:00] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 22:29:01] Production.INFO: ==10518== Lock acquired, processing the job... [2025-03-03 22:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:29:01] Production.INFO: neon service started [2025-03-03 22:29:01] Production.INFO: neon service started [2025-03-03 22:29:01] Production.INFO: ==10518== Releasing lock... [2025-03-03 22:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:29:02] Production.INFO: ==10522== Lock acquired, processing the job... [2025-03-03 22:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:29:02] Production.INFO: ==10522== Releasing lock... [2025-03-03 22:29:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:29:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:29:02] Production.INFO: ==10520== Lock acquired, processing the job... [2025-03-03 17:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:29:02] Production.INFO: ==10520== Releasing lock... [2025-03-03 17:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:29:03] Production.INFO: ==10527== Lock acquired, processing the job... [2025-03-03 17:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:29:03] Production.INFO: ==10531== Lock acquired, processing the job... [2025-03-03 17:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:29:03] Production.INFO: ==10525== Lock acquired, processing the job... [2025-03-03 17:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:29:03] Production.INFO: ==10529== Lock acquired, processing the job... [2025-03-03 17:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:29:03] Production.INFO: ==10533== Lock acquired, processing the job... [2025-03-03 17:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:29:03] Production.INFO: ==10535== Lock acquired, processing the job... [2025-03-03 17:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:29:06] Production.INFO: Account Balance Start. [2025-03-03 17:29:06] Production.INFO: CreateAllLog Start [2025-03-03 17:29:06] Production.INFO: 117 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-08 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-09 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-10 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-11 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-12 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-13 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-14 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-15 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-16 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-17 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-18 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-19 [2025-03-03 17:29:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:06] Production.INFO: Date 2025-02-20 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-21 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-22 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-23 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-24 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-25 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-26 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-27 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-02-28 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-03-01 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-03-02 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Date 2025-03-03 [2025-03-03 17:29:07] Production.INFO: Reseller ==> 0 [2025-03-03 17:29:07] Production.INFO: Total Charge 0 [2025-03-03 17:29:08] Production.INFO: CreateAllLog End [2025-03-03 17:29:08] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:29:09] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:29:09] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:29:09] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:29:10] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:29:11] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:29:11] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:29:11] Production.INFO: count ==13 [2025-03-03 17:29:12] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:29:12] Production.INFO: count ==21 [2025-03-03 17:29:12] Production.ERROR: PBX CALL prc_importPBXExtension('14599993') start [2025-03-03 17:29:12] Production.INFO: Account Balance End. [2025-03-03 17:29:13] Production.ERROR: PBX CALL prc_importPBXExtension('14599993') end [2025-03-03 17:29:13] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:29:13] Production.INFO: 1 [2025-03-03 17:29:13] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:29:15] Production.ERROR: done [2025-03-03 17:29:15] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:29:16] Production.INFO: ==10527== Releasing lock... [2025-03-03 17:29:16] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:29:16] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:29:21] Production.ERROR: CronJobId end 12 [2025-03-03 17:29:21] Production.INFO: ==10531== Releasing lock... [2025-03-03 17:29:21] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:29:21] Production.INFO: ==10535== Releasing lock... [2025-03-03 17:29:21] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:29:21] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:29:22] Production.ERROR: done [2025-03-03 17:29:26] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:29:26 [end_date_ymd] => 2025-03-03 17:29:26 [RateCDR] => 1 ) [2025-03-03 17:29:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:29:26' and `end` < '2025-03-03 17:29:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:29:39] Production.INFO: count ==5752 [2025-03-03 22:30:02] Production.INFO: ==10591== Lock acquired, processing the job... [2025-03-03 22:30:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:30:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:30:02] Production.INFO: neon service started [2025-03-03 22:30:02] Production.INFO: neon service started [2025-03-03 22:30:02] Production.INFO: ==10591== Releasing lock... [2025-03-03 22:30:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:30:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:30:02] Production.INFO: ==10594== Lock acquired, processing the job... [2025-03-03 17:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:30:02] Production.INFO: ==10596== Lock acquired, processing the job... [2025-03-03 22:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:30:05] Production.INFO: ==10596== Releasing lock... [2025-03-03 22:30:05] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:30:05] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:30:05] Production.INFO: ==10594== Releasing lock... [2025-03-03 17:30:05] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:30:05] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:30:06] Production.INFO: ==10600== Lock acquired, processing the job... [2025-03-03 17:30:06] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 17:30:06] Production.INFO: ==10608== Lock acquired, processing the job... [2025-03-03 17:30:06] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:30:06] Production.INFO: ==10602== Lock acquired, processing the job... [2025-03-03 17:30:06] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:30:06] Production.INFO: ==10604== Lock acquired, processing the job... [2025-03-03 17:30:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:30:06] Production.INFO: ==10606== Lock acquired, processing the job... [2025-03-03 17:30:06] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 17:30:08] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:30:10] Production.INFO: Account Balance Start. [2025-03-03 17:30:10] Production.INFO: CreateAllLog Start [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 17:30:10] Production.INFO: 117 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10525 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - System Alerts [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 5 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:29:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 1 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10602 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - Account Block [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 7 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:30:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10529 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 10 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:29:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 1 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10604 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 12 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:30:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10533 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 16 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:29:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 1 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10606 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 17 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:30:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:30:10] Production.ERROR: CronJob PID - 10608 [2025-03-03 17:30:10] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 17:30:10] Production.ERROR: CronJob ID - 19 [2025-03-03 17:30:10] Production.ERROR: CronJob Last Run Time 2025-03-03 17:30:00 [2025-03-03 17:30:10] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:30:10] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:30:11] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:30:11] Production.INFO: count ==13 [2025-03-03 17:30:11] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:30:11] Production.INFO: count ==21 [2025-03-03 17:30:11] Production.INFO: Date 2025-02-08 [2025-03-03 17:30:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:11] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 17:30:11] Production.INFO: ==10600== Releasing lock... [2025-03-03 17:30:11] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 17:30:11] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:30:11] Production.INFO: Date 2025-02-09 [2025-03-03 17:30:11] Production.ERROR: PBX CALL prc_importPBXExtension('14599997') start [2025-03-03 17:30:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:11] Production.INFO: Date 2025-02-10 [2025-03-03 17:30:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:11] Production.INFO: Date 2025-02-11 [2025-03-03 17:30:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:11] Production.INFO: Date 2025-02-12 [2025-03-03 17:30:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:11] Production.INFO: Date 2025-02-13 [2025-03-03 17:30:11] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-14 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-15 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-16 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-17 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-18 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-19 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-20 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-21 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-22 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-23 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-24 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-25 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-26 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-27 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-02-28 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-03-01 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-03-02 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:12] Production.INFO: Date 2025-03-03 [2025-03-03 17:30:12] Production.INFO: Reseller ==> 0 [2025-03-03 17:30:13] Production.INFO: Total Charge 0 [2025-03-03 17:30:13] Production.INFO: ==10602== Releasing lock... [2025-03-03 17:30:13] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:30:13] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:30:13] Production.INFO: CreateAllLog End [2025-03-03 17:30:15] Production.ERROR: done [2025-03-03 17:30:15] Production.ERROR: PBX CALL prc_importPBXExtension('14599997') end [2025-03-03 17:30:15] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:30:15] Production.INFO: 1 [2025-03-03 17:30:15] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:30:17] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 17:30:17] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600000', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 17:30:18] Production.INFO: ==10608== Releasing lock... [2025-03-03 17:30:18] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:30:18] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:30:19] Production.INFO: Account Balance End. [2025-03-03 17:30:23] Production.ERROR: CronJobId end 12 [2025-03-03 17:30:23] Production.INFO: ==10604== Releasing lock... [2025-03-03 17:30:23] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:30:23] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:30:24] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600000', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 17:30:24] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 17:30:24] Production.INFO: ProcessCDR(1,14600000,1,1,2) [2025-03-03 17:30:24] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600000,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:30:26] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600000,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:30:26] Production.INFO: ==10606== Releasing lock... [2025-03-03 17:30:26] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 17:30:26] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:30:26] Production.ERROR: pbx CDR StartTime 2025-03-03 14:29:26 - End Time 2025-03-03 17:29:26 [2025-03-03 17:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599996', 'tblTempUsageDetail_20' ) start [2025-03-03 17:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14599996', 'tblTempUsageDetail_20' ) end [2025-03-03 17:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599996', 'tblTempVendorCDR_20' ) start [2025-03-03 17:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14599996', 'tblTempVendorCDR_20' ) end [2025-03-03 17:30:33] Production.INFO: ProcessCDR(1,14599996,1,1,2) [2025-03-03 17:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14599996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:30:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14599996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:30:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14599996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:30:54] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:30:54] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:30:54] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:30:54] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:30:54] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:30:54] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:30:54] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:30:54] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:30:54] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:30:54] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:30:54] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:30:54] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:30:54] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:30:54] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:30:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14599996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:30:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599996', 'tblTempUsageDetail_20' ) start [2025-03-03 17:31:00] Production.INFO: call_cost start [2025-03-03 17:31:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14599996', 'tblTempUsageDetail_20' ) end [2025-03-03 17:31:00] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:31:00] Production.INFO: call_cost end [2025-03-03 17:31:00] Production.ERROR: pbx prc_insertCDR end [2025-03-03 22:31:02] Production.INFO: ==10659== Lock acquired, processing the job... [2025-03-03 22:31:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:31:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:31:02] Production.INFO: neon service started [2025-03-03 22:31:02] Production.INFO: neon service started [2025-03-03 22:31:02] Production.INFO: ==10659== Releasing lock... [2025-03-03 22:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:31:02] Production.INFO: ==10663== Lock acquired, processing the job... [2025-03-03 22:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:31:02] Production.INFO: ==10663== Releasing lock... [2025-03-03 22:31:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:31:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:31:02] Production.INFO: ==10661== Lock acquired, processing the job... [2025-03-03 17:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:31:03] Production.INFO: ==10661== Releasing lock... [2025-03-03 17:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:31:03] Production.INFO: ==10666== Lock acquired, processing the job... [2025-03-03 17:31:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:31:03] Production.INFO: ==10668== Lock acquired, processing the job... [2025-03-03 17:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:31:04] Production.INFO: ==10670== Lock acquired, processing the job... [2025-03-03 17:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:31:04] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:31:04] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:31:04] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:31:04] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:31:04] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:31:04] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:31:04] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:31:04] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:31:04] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:31:05] Production.INFO: ==10533== Releasing lock... [2025-03-03 17:31:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:31:05] Production.INFO: 71 MB #Memory Used# [2025-03-03 17:31:09] Production.INFO: ==10525== Releasing lock... [2025-03-03 17:31:09] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:31:09] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:31:09] Production.INFO: Account Balance Start. [2025-03-03 17:31:09] Production.INFO: CreateAllLog Start [2025-03-03 17:31:09] Production.INFO: 117 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-08 [2025-03-03 17:31:09] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: count ==13 [2025-03-03 17:31:09] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:31:09] Production.INFO: count ==21 [2025-03-03 17:31:09] Production.ERROR: PBX CALL prc_importPBXExtension('14600001') start [2025-03-03 17:31:09] Production.INFO: Date 2025-02-09 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-10 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-11 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-12 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-13 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-14 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-15 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-16 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-17 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-18 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-19 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-20 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-21 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-22 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-23 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-24 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-25 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-26 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-27 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-02-28 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-03-01 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-03-02 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Date 2025-03-03 [2025-03-03 17:31:09] Production.INFO: Reseller ==> 0 [2025-03-03 17:31:09] Production.INFO: Total Charge 0 [2025-03-03 17:31:10] Production.ERROR: PBX CALL prc_importPBXExtension('14600001') end [2025-03-03 17:31:10] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:31:10] Production.INFO: 1 [2025-03-03 17:31:10] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:31:10] Production.INFO: CreateAllLog End [2025-03-03 17:31:11] Production.INFO: ==10666== Releasing lock... [2025-03-03 17:31:11] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:31:11] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:31:13] Production.INFO: Account Balance End. [2025-03-03 17:31:16] Production.INFO: ==10670== Releasing lock... [2025-03-03 17:31:16] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:31:16] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:31:16] Production.ERROR: CronJobId end 12 [2025-03-03 17:31:16] Production.INFO: ==10668== Releasing lock... [2025-03-03 17:31:16] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:31:16] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:31:27] Production.ERROR: CronJobId end10 [2025-03-03 17:31:27] Production.INFO: ==10529== Releasing lock... [2025-03-03 17:31:27] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:31:27] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 22:32:01] Production.INFO: ==10726== Lock acquired, processing the job... [2025-03-03 22:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:32:01] Production.INFO: neon service started [2025-03-03 22:32:01] Production.INFO: neon service started [2025-03-03 22:32:01] Production.INFO: ==10726== Releasing lock... [2025-03-03 22:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:32:01] Production.INFO: ==10728== Lock acquired, processing the job... [2025-03-03 17:32:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:32:02] Production.INFO: ==10728== Releasing lock... [2025-03-03 17:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:32:02] Production.INFO: ==10730== Lock acquired, processing the job... [2025-03-03 22:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:32:02] Production.INFO: ==10730== Releasing lock... [2025-03-03 22:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:32:03] Production.INFO: ==10732== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:32:03] Production.INFO: ==10734== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:32:03] Production.INFO: ==10736== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:32:03] Production.INFO: ==10743== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:32:03] Production.INFO: ==10740== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:32:03] Production.INFO: ==10738== Lock acquired, processing the job... [2025-03-03 17:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:32:16] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:32:17] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:32:17] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:32:17] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:32:17] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:32:18] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:32:20] Production.INFO: Account Balance Start. [2025-03-03 17:32:20] Production.INFO: CreateAllLog Start [2025-03-03 17:32:20] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:32:20] Production.INFO: 117 [2025-03-03 17:32:20] Production.INFO: count ==13 [2025-03-03 17:32:22] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:32:22] Production.INFO: count ==21 [2025-03-03 17:32:22] Production.INFO: Date 2025-02-08 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:23] Production.INFO: Date 2025-02-09 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:23] Production.INFO: Date 2025-02-10 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:23] Production.ERROR: PBX CALL prc_importPBXExtension('14600005') start [2025-03-03 17:32:23] Production.ERROR: done [2025-03-03 17:32:23] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:32:23] Production.INFO: Date 2025-02-11 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:23] Production.INFO: Date 2025-02-12 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:23] Production.ERROR: PBX CALL prc_importPBXExtension('14600005') end [2025-03-03 17:32:23] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:32:23] Production.INFO: 1 [2025-03-03 17:32:23] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:32:23] Production.INFO: Date 2025-02-13 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:23] Production.ERROR: done [2025-03-03 17:32:23] Production.INFO: ==10743== Releasing lock... [2025-03-03 17:32:23] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:32:23] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:32:23] Production.INFO: Date 2025-02-14 [2025-03-03 17:32:23] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-15 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-16 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-17 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-18 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-19 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-20 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-21 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-22 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-23 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-24 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-25 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-26 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-27 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-02-28 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-03-01 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-03-02 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Date 2025-03-03 [2025-03-03 17:32:24] Production.INFO: Reseller ==> 0 [2025-03-03 17:32:24] Production.INFO: Total Charge 0 [2025-03-03 17:32:25] Production.INFO: CreateAllLog End [2025-03-03 17:32:26] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:32:26 [end_date_ymd] => 2025-03-03 17:32:26 [RateCDR] => 1 ) [2025-03-03 17:32:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:32:26' and `end` < '2025-03-03 17:32:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:32:26] Production.INFO: ==10734== Releasing lock... [2025-03-03 17:32:26] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:32:26] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:32:28] Production.INFO: Account Balance End. [2025-03-03 17:32:30] Production.ERROR: CronJobId end 12 [2025-03-03 17:32:30] Production.INFO: ==10738== Releasing lock... [2025-03-03 17:32:30] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:32:30] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:32:39] Production.INFO: count ==5680 [2025-03-03 17:32:43] Production.ERROR: CronJobId end10 [2025-03-03 17:32:43] Production.INFO: ==10736== Releasing lock... [2025-03-03 17:32:43] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:32:43] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:32:45] Production.ERROR: pbx CDR StartTime 2025-03-03 14:32:26 - End Time 2025-03-03 17:32:26 [2025-03-03 17:32:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600008', 'tblTempUsageDetail_20' ) start [2025-03-03 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600008', 'tblTempUsageDetail_20' ) end [2025-03-03 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600008', 'tblTempVendorCDR_20' ) start [2025-03-03 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600008', 'tblTempVendorCDR_20' ) end [2025-03-03 17:32:45] Production.INFO: ProcessCDR(1,14600008,1,1,2) [2025-03-03 17:32:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:32:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:32:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:32:48] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:32:48] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:32:48] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:32:48] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:32:48] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:32:48] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:32:48] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:32:48] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:32:48] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:32:48] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:32:48] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:32:48] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:32:48] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:32:48] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:32:49] Production.INFO: call_cost start [2025-03-03 17:32:49] Production.INFO: call_cost end [2025-03-03 17:32:50] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:32:50] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:32:50] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:32:50] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:32:50] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:32:50] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:32:50] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:32:50] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:32:50] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:32:50] Production.INFO: ==10732== Releasing lock... [2025-03-03 17:32:50] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:32:50] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:32:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:32:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600008', 'tblTempUsageDetail_20' ) start [2025-03-03 17:32:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600008', 'tblTempUsageDetail_20' ) end [2025-03-03 17:32:51] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:32:51] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:32:51] Production.INFO: ==10740== Releasing lock... [2025-03-03 17:32:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:32:51] Production.INFO: 70.5 MB #Memory Used# [2025-03-03 22:33:02] Production.INFO: ==10801== Lock acquired, processing the job... [2025-03-03 22:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:33:02] Production.INFO: neon service started [2025-03-03 22:33:02] Production.INFO: neon service started [2025-03-03 22:33:02] Production.INFO: ==10801== Releasing lock... [2025-03-03 22:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:33:02] Production.INFO: ==10803== Lock acquired, processing the job... [2025-03-03 17:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:33:02] Production.INFO: ==10803== Releasing lock... [2025-03-03 17:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:33:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:33:02] Production.INFO: ==10805== Lock acquired, processing the job... [2025-03-03 22:33:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:33:03] Production.INFO: ==10805== Releasing lock... [2025-03-03 22:33:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:33:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:33:03] Production.INFO: ==10807== Lock acquired, processing the job... [2025-03-03 17:33:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:33:03] Production.INFO: ==10811== Lock acquired, processing the job... [2025-03-03 17:33:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:33:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:33:03] Production.INFO: ==10817== Lock acquired, processing the job... [2025-03-03 17:33:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:33:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:33:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:33:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:33:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:33:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:33:03] Production.INFO: count ==13 [2025-03-03 17:33:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:33:03] Production.INFO: count ==21 [2025-03-03 17:33:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600010') start [2025-03-03 17:33:03] Production.INFO: ==10809== Lock acquired, processing the job... [2025-03-03 17:33:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:33:04] Production.INFO: ==10813== Lock acquired, processing the job... [2025-03-03 17:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600010') end [2025-03-03 17:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:33:04] Production.INFO: 1 [2025-03-03 17:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:33:04] Production.INFO: ==10817== Releasing lock... [2025-03-03 17:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:33:04] Production.INFO: ==10815== Lock acquired, processing the job... [2025-03-03 17:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:33:04] Production.INFO: Account Balance Start. [2025-03-03 17:33:04] Production.INFO: CreateAllLog Start [2025-03-03 17:33:04] Production.INFO: 117 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: ==10809== Releasing lock... [2025-03-03 17:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:33:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.ERROR: done [2025-03-03 17:33:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.ERROR: done [2025-03-03 17:33:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:33:05] Production.INFO: Total Charge 0 [2025-03-03 17:33:05] Production.INFO: CreateAllLog End [2025-03-03 17:33:05] Production.INFO: Account Balance End. [2025-03-03 17:33:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:33:05] Production.INFO: ==10813== Releasing lock... [2025-03-03 17:33:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:33:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:33:06 [end_date_ymd] => 2025-03-03 17:33:06 [RateCDR] => 1 ) [2025-03-03 17:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:33:06' and `end` < '2025-03-03 17:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:33:13] Production.ERROR: CronJobId end10 [2025-03-03 17:33:13] Production.INFO: ==10811== Releasing lock... [2025-03-03 17:33:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:33:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:33:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:33:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:33:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:33:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:33:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:33:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:33:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:33:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:33:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:33:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:33:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:33:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:33:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:33:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:33:14] Production.INFO: call_cost start [2025-03-03 17:33:14] Production.INFO: call_cost end [2025-03-03 17:33:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:33:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:33:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:33:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:33:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:33:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:33:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:33:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:33:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:33:15] Production.INFO: ==10807== Releasing lock... [2025-03-03 17:33:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:33:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:33:19] Production.INFO: count ==5670 [2025-03-03 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:33:06 - End Time 2025-03-03 17:33:06 [2025-03-03 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600013', 'tblTempUsageDetail_20' ) start [2025-03-03 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600013', 'tblTempUsageDetail_20' ) end [2025-03-03 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600013', 'tblTempVendorCDR_20' ) start [2025-03-03 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600013', 'tblTempVendorCDR_20' ) end [2025-03-03 17:33:22] Production.INFO: ProcessCDR(1,14600013,1,1,2) [2025-03-03 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600013', 'tblTempUsageDetail_20' ) start [2025-03-03 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600013', 'tblTempUsageDetail_20' ) end [2025-03-03 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:33:27] Production.INFO: ==10815== Releasing lock... [2025-03-03 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:33:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-03 22:34:01] Production.INFO: ==10872== Lock acquired, processing the job... [2025-03-03 22:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:34:01] Production.INFO: neon service started [2025-03-03 22:34:01] Production.INFO: neon service started [2025-03-03 22:34:01] Production.INFO: ==10872== Releasing lock... [2025-03-03 22:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:34:01] Production.INFO: ==10876== Lock acquired, processing the job... [2025-03-03 22:34:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:34:01] Production.INFO: ==10876== Releasing lock... [2025-03-03 22:34:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:34:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:34:02] Production.INFO: ==10874== Lock acquired, processing the job... [2025-03-03 17:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:34:02] Production.INFO: ==10874== Releasing lock... [2025-03-03 17:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:34:03] Production.INFO: ==10883== Lock acquired, processing the job... [2025-03-03 17:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:34:03] Production.INFO: ==10887== Lock acquired, processing the job... [2025-03-03 17:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:34:03] Production.INFO: ==10879== Lock acquired, processing the job... [2025-03-03 17:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:34:03] Production.INFO: ==10881== Lock acquired, processing the job... [2025-03-03 17:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:34:03] Production.INFO: ==10885== Lock acquired, processing the job... [2025-03-03 17:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:34:03] Production.INFO: ==10889== Lock acquired, processing the job... [2025-03-03 17:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:34:03] Production.ERROR: done [2025-03-03 17:34:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:34:03] Production.INFO: Account Balance Start. [2025-03-03 17:34:03] Production.INFO: CreateAllLog Start [2025-03-03 17:34:03] Production.INFO: 117 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: count ==13 [2025-03-03 17:34:04] Production.INFO: ==10881== Releasing lock... [2025-03-03 17:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:34:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:34:04] Production.INFO: count ==21 [2025-03-03 17:34:04] Production.ERROR: done [2025-03-03 17:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600017') start [2025-03-03 17:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600017') end [2025-03-03 17:34:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:34:04] Production.INFO: 1 [2025-03-03 17:34:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: ==10889== Releasing lock... [2025-03-03 17:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:34:05] Production.INFO: Total Charge 0 [2025-03-03 17:34:05] Production.INFO: CreateAllLog End [2025-03-03 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:34:05 [end_date_ymd] => 2025-03-03 17:34:05 [RateCDR] => 1 ) [2025-03-03 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:34:05' and `end` < '2025-03-03 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:34:05] Production.INFO: Account Balance End. [2025-03-03 17:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:34:05] Production.INFO: ==10885== Releasing lock... [2025-03-03 17:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:34:13] Production.ERROR: CronJobId end10 [2025-03-03 17:34:13] Production.INFO: ==10883== Releasing lock... [2025-03-03 17:34:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:34:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:34:15] Production.INFO: call_cost start [2025-03-03 17:34:15] Production.INFO: call_cost end [2025-03-03 17:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:34:16] Production.INFO: ==10879== Releasing lock... [2025-03-03 17:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:34:18] Production.INFO: count ==5669 [2025-03-03 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:34:05 - End Time 2025-03-03 17:34:05 [2025-03-03 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600018', 'tblTempUsageDetail_20' ) start [2025-03-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600018', 'tblTempUsageDetail_20' ) end [2025-03-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600018', 'tblTempVendorCDR_20' ) start [2025-03-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600018', 'tblTempVendorCDR_20' ) end [2025-03-03 17:34:21] Production.INFO: ProcessCDR(1,14600018,1,1,2) [2025-03-03 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600018', 'tblTempUsageDetail_20' ) start [2025-03-03 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600018', 'tblTempUsageDetail_20' ) end [2025-03-03 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:34:26] Production.INFO: ==10887== Releasing lock... [2025-03-03 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:34:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-03 22:35:01] Production.INFO: ==10945== Lock acquired, processing the job... [2025-03-03 22:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:35:01] Production.INFO: neon service started [2025-03-03 22:35:01] Production.INFO: neon service started [2025-03-03 22:35:01] Production.INFO: ==10945== Releasing lock... [2025-03-03 22:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:35:02] Production.INFO: ==10947== Lock acquired, processing the job... [2025-03-03 17:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:35:02] Production.INFO: ==10949== Lock acquired, processing the job... [2025-03-03 22:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:35:02] Production.INFO: ==10949== Releasing lock... [2025-03-03 22:35:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:35:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:35:02] Production.INFO: ==10947== Releasing lock... [2025-03-03 17:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:35:03] Production.INFO: ==10956== Lock acquired, processing the job... [2025-03-03 17:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:35:03] Production.INFO: ==10960== Lock acquired, processing the job... [2025-03-03 17:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:35:03] Production.INFO: ==10962== Lock acquired, processing the job... [2025-03-03 17:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:35:03] Production.INFO: ==10952== Lock acquired, processing the job... [2025-03-03 17:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:35:03] Production.INFO: ==10954== Lock acquired, processing the job... [2025-03-03 17:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:35:03] Production.INFO: count ==13 [2025-03-03 17:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:35:03] Production.INFO: count ==21 [2025-03-03 17:35:03] Production.INFO: ==10958== Lock acquired, processing the job... [2025-03-03 17:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600019') start [2025-03-03 17:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:35:04] Production.INFO: Account Balance Start. [2025-03-03 17:35:04] Production.INFO: CreateAllLog Start [2025-03-03 17:35:04] Production.INFO: 117 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600019') end [2025-03-03 17:35:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:35:04] Production.INFO: 1 [2025-03-03 17:35:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:35:04] Production.ERROR: done [2025-03-03 17:35:04] Production.INFO: ==10962== Releasing lock... [2025-03-03 17:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:35:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.ERROR: done [2025-03-03 17:35:04] Production.INFO: ==10954== Releasing lock... [2025-03-03 17:35:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:35:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:35:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:35:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:35:05] Production.INFO: Total Charge 0 [2025-03-03 17:35:05] Production.INFO: CreateAllLog End [2025-03-03 17:35:05] Production.INFO: Account Balance End. [2025-03-03 17:35:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:35:05] Production.INFO: ==10958== Releasing lock... [2025-03-03 17:35:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:35:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:35:05 [end_date_ymd] => 2025-03-03 17:35:05 [RateCDR] => 1 ) [2025-03-03 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:35:05' and `end` < '2025-03-03 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:35:14] Production.ERROR: CronJobId end10 [2025-03-03 17:35:14] Production.INFO: ==10956== Releasing lock... [2025-03-03 17:35:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:35:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:35:15] Production.INFO: call_cost start [2025-03-03 17:35:15] Production.INFO: call_cost end [2025-03-03 17:35:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:35:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:35:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:35:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:35:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:35:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:35:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:35:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:35:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:35:16] Production.INFO: ==10952== Releasing lock... [2025-03-03 17:35:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:35:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:35:18] Production.INFO: count ==5634 [2025-03-03 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:35:05 - End Time 2025-03-03 17:35:05 [2025-03-03 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600023', 'tblTempUsageDetail_20' ) start [2025-03-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600023', 'tblTempUsageDetail_20' ) end [2025-03-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600023', 'tblTempVendorCDR_20' ) start [2025-03-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600023', 'tblTempVendorCDR_20' ) end [2025-03-03 17:35:21] Production.INFO: ProcessCDR(1,14600023,1,1,2) [2025-03-03 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600023', 'tblTempUsageDetail_20' ) start [2025-03-03 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600023', 'tblTempUsageDetail_20' ) end [2025-03-03 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:35:26] Production.INFO: ==10960== Releasing lock... [2025-03-03 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:35:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-03 22:36:02] Production.INFO: ==11019== Lock acquired, processing the job... [2025-03-03 22:36:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:36:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:36:02] Production.INFO: neon service started [2025-03-03 22:36:02] Production.INFO: neon service started [2025-03-03 22:36:02] Production.INFO: ==11019== Releasing lock... [2025-03-03 22:36:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:36:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:36:03] Production.INFO: ==11021== Lock acquired, processing the job... [2025-03-03 17:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:36:03] Production.INFO: ==11023== Lock acquired, processing the job... [2025-03-03 22:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:36:03] Production.INFO: ==11023== Releasing lock... [2025-03-03 22:36:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:36:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:36:03] Production.INFO: ==11021== Releasing lock... [2025-03-03 17:36:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:36:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:36:04] Production.INFO: ==11065== Lock acquired, processing the job... [2025-03-03 17:36:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:36:04] Production.INFO: ==11067== Lock acquired, processing the job... [2025-03-03 17:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:36:04] Production.INFO: ==11069== Lock acquired, processing the job... [2025-03-03 17:36:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:36:04] Production.INFO: ==11071== Lock acquired, processing the job... [2025-03-03 17:36:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:36:04] Production.INFO: ==11073== Lock acquired, processing the job... [2025-03-03 17:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:36:04] Production.INFO: ==11075== Lock acquired, processing the job... [2025-03-03 17:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:36:04] Production.INFO: Account Balance Start. [2025-03-03 17:36:04] Production.INFO: CreateAllLog Start [2025-03-03 17:36:04] Production.INFO: 117 [2025-03-03 17:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:36:04] Production.INFO: ==11067== Releasing lock... [2025-03-03 17:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:36:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:36:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:04] Production.INFO: count ==13 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:36:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: count ==21 [2025-03-03 17:36:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600027') start [2025-03-03 17:36:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600027') end [2025-03-03 17:36:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:36:05] Production.INFO: 1 [2025-03-03 17:36:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:36:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: ==11075== Releasing lock... [2025-03-03 17:36:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:36:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:36:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.ERROR: done [2025-03-03 17:36:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.ERROR: done [2025-03-03 17:36:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:36:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:36:05] Production.INFO: Total Charge 0 [2025-03-03 17:36:05] Production.INFO: CreateAllLog End [2025-03-03 17:36:06] Production.INFO: Account Balance End. [2025-03-03 17:36:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:36:06] Production.INFO: ==11071== Releasing lock... [2025-03-03 17:36:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:36:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:36:06 [end_date_ymd] => 2025-03-03 17:36:06 [RateCDR] => 1 ) [2025-03-03 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:36:06' and `end` < '2025-03-03 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:36:14] Production.ERROR: CronJobId end10 [2025-03-03 17:36:14] Production.INFO: ==11069== Releasing lock... [2025-03-03 17:36:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:36:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:36:15] Production.INFO: call_cost start [2025-03-03 17:36:15] Production.INFO: call_cost end [2025-03-03 17:36:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:36:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:36:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:36:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:36:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:36:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:36:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:36:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:36:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:36:16] Production.INFO: ==11065== Releasing lock... [2025-03-03 17:36:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:36:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:36:19] Production.INFO: count ==5602 [2025-03-03 17:36:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:36:06 - End Time 2025-03-03 17:36:06 [2025-03-03 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600028', 'tblTempUsageDetail_20' ) start [2025-03-03 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600028', 'tblTempUsageDetail_20' ) end [2025-03-03 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600028', 'tblTempVendorCDR_20' ) start [2025-03-03 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600028', 'tblTempVendorCDR_20' ) end [2025-03-03 17:36:22] Production.INFO: ProcessCDR(1,14600028,1,1,2) [2025-03-03 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600028', 'tblTempUsageDetail_20' ) start [2025-03-03 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600028', 'tblTempUsageDetail_20' ) end [2025-03-03 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:36:27] Production.INFO: ==11073== Releasing lock... [2025-03-03 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:36:27] Production.INFO: 70 MB #Memory Used# [2025-03-03 22:37:01] Production.INFO: ==11128== Lock acquired, processing the job... [2025-03-03 22:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:37:01] Production.INFO: neon service started [2025-03-03 22:37:01] Production.INFO: neon service started [2025-03-03 22:37:01] Production.INFO: ==11128== Releasing lock... [2025-03-03 22:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:37:02] Production.INFO: ==11130== Lock acquired, processing the job... [2025-03-03 17:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:37:02] Production.INFO: ==11130== Releasing lock... [2025-03-03 17:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:37:02] Production.INFO: ==11132== Lock acquired, processing the job... [2025-03-03 22:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:37:02] Production.INFO: ==11132== Releasing lock... [2025-03-03 22:37:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:37:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:37:03] Production.INFO: ==11142== Lock acquired, processing the job... [2025-03-03 17:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:37:03] Production.INFO: ==11144== Lock acquired, processing the job... [2025-03-03 17:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:37:03] Production.INFO: ==11134== Lock acquired, processing the job... [2025-03-03 17:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:37:03] Production.INFO: count ==13 [2025-03-03 17:37:03] Production.INFO: ==11136== Lock acquired, processing the job... [2025-03-03 17:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:37:03] Production.INFO: count ==21 [2025-03-03 17:37:03] Production.INFO: ==11140== Lock acquired, processing the job... [2025-03-03 17:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:37:03] Production.INFO: ==11138== Lock acquired, processing the job... [2025-03-03 17:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600029') start [2025-03-03 17:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600029') end [2025-03-03 17:37:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:37:03] Production.INFO: 1 [2025-03-03 17:37:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:37:03] Production.INFO: Account Balance Start. [2025-03-03 17:37:03] Production.INFO: CreateAllLog Start [2025-03-03 17:37:03] Production.INFO: 117 [2025-03-03 17:37:03] Production.INFO: ==11144== Releasing lock... [2025-03-03 17:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:37:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:37:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.ERROR: done [2025-03-03 17:37:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:37:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:37:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:37:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:37:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:37:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.ERROR: done [2025-03-03 17:37:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: ==11136== Releasing lock... [2025-03-03 17:37:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:37:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:37:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:37:04] Production.INFO: Total Charge 0 [2025-03-03 17:37:04] Production.INFO: CreateAllLog End [2025-03-03 17:37:04] Production.INFO: Account Balance End. [2025-03-03 17:37:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:37:05] Production.INFO: ==11140== Releasing lock... [2025-03-03 17:37:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:37:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:37:05 [end_date_ymd] => 2025-03-03 17:37:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:37:05' and `end` < '2025-03-03 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-03-03 17:37:14] Production.ERROR: CronJobId end10 [2025-03-03 17:37:14] Production.INFO: ==11138== Releasing lock... [2025-03-03 17:37:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:37:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:37:14] Production.INFO: call_cost start [2025-03-03 17:37:14] Production.INFO: call_cost end [2025-03-03 17:37:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:37:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:37:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:37:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:37:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:37:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:37:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:37:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:37:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:37:15] Production.INFO: ==11134== Releasing lock... [2025-03-03 17:37:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:37:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:37:18] Production.INFO: count ==5554 [2025-03-03 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:37:05 - End Time 2025-03-03 17:37:05 [2025-03-03 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600033', 'tblTempUsageDetail_20' ) start [2025-03-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600033', 'tblTempUsageDetail_20' ) end [2025-03-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600033', 'tblTempVendorCDR_20' ) start [2025-03-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600033', 'tblTempVendorCDR_20' ) end [2025-03-03 17:37:21] Production.INFO: ProcessCDR(1,14600033,1,1,2) [2025-03-03 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600033', 'tblTempUsageDetail_20' ) start [2025-03-03 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600033', 'tblTempUsageDetail_20' ) end [2025-03-03 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:37:26] Production.INFO: ==11142== Releasing lock... [2025-03-03 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-03 22:38:02] Production.INFO: ==11200== Lock acquired, processing the job... [2025-03-03 22:38:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:38:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:38:02] Production.INFO: neon service started [2025-03-03 22:38:02] Production.INFO: neon service started [2025-03-03 22:38:02] Production.INFO: ==11200== Releasing lock... [2025-03-03 22:38:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:38:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:38:02] Production.INFO: ==11202== Lock acquired, processing the job... [2025-03-03 17:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:38:02] Production.INFO: ==11202== Releasing lock... [2025-03-03 17:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:38:03] Production.INFO: ==11205== Lock acquired, processing the job... [2025-03-03 22:38:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:38:03] Production.INFO: ==11205== Releasing lock... [2025-03-03 22:38:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:38:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:38:03] Production.INFO: ==11207== Lock acquired, processing the job... [2025-03-03 17:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:38:03] Production.INFO: ==11209== Lock acquired, processing the job... [2025-03-03 17:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:38:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:38:03] Production.INFO: ==11215== Lock acquired, processing the job... [2025-03-03 17:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:38:03] Production.INFO: ==11211== Lock acquired, processing the job... [2025-03-03 17:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:38:04] Production.INFO: ==11213== Lock acquired, processing the job... [2025-03-03 17:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:38:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:38:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:38:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:38:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:38:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:38:04] Production.INFO: ==11217== Lock acquired, processing the job... [2025-03-03 17:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:38:04] Production.INFO: ==11209== Releasing lock... [2025-03-03 17:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:38:04] Production.INFO: Account Balance Start. [2025-03-03 17:38:04] Production.INFO: CreateAllLog Start [2025-03-03 17:38:04] Production.INFO: 117 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: count ==13 [2025-03-03 17:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:38:04] Production.INFO: count ==21 [2025-03-03 17:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600037') start [2025-03-03 17:38:04] Production.ERROR: done [2025-03-03 17:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600037') end [2025-03-03 17:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:38:04] Production.INFO: 1 [2025-03-03 17:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.ERROR: done [2025-03-03 17:38:04] Production.INFO: ==11217== Releasing lock... [2025-03-03 17:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:38:05] Production.INFO: Total Charge 0 [2025-03-03 17:38:05] Production.INFO: CreateAllLog End [2025-03-03 17:38:05] Production.INFO: Account Balance End. [2025-03-03 17:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:38:05] Production.INFO: ==11213== Releasing lock... [2025-03-03 17:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:38:05 [end_date_ymd] => 2025-03-03 17:38:05 [RateCDR] => 1 ) [2025-03-03 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:38:05' and `end` < '2025-03-03 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:38:14] Production.ERROR: CronJobId end10 [2025-03-03 17:38:14] Production.INFO: ==11211== Releasing lock... [2025-03-03 17:38:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:38:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:38:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:38:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:38:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:38:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:38:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:38:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:38:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:38:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:38:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:38:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:38:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:38:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:38:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:38:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:38:15] Production.INFO: call_cost start [2025-03-03 17:38:15] Production.INFO: call_cost end [2025-03-03 17:38:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:38:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:38:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:38:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:38:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:38:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:38:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:38:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:38:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:38:15] Production.INFO: ==11207== Releasing lock... [2025-03-03 17:38:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:38:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:38:18] Production.INFO: count ==5533 [2025-03-03 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:38:05 - End Time 2025-03-03 17:38:05 [2025-03-03 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600038', 'tblTempUsageDetail_20' ) start [2025-03-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600038', 'tblTempUsageDetail_20' ) end [2025-03-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600038', 'tblTempVendorCDR_20' ) start [2025-03-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600038', 'tblTempVendorCDR_20' ) end [2025-03-03 17:38:21] Production.INFO: ProcessCDR(1,14600038,1,1,2) [2025-03-03 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600038', 'tblTempUsageDetail_20' ) start [2025-03-03 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600038', 'tblTempUsageDetail_20' ) end [2025-03-03 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:38:26] Production.INFO: ==11215== Releasing lock... [2025-03-03 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:38:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-03 22:39:01] Production.INFO: ==11272== Lock acquired, processing the job... [2025-03-03 22:39:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:39:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:39:01] Production.INFO: neon service started [2025-03-03 22:39:01] Production.INFO: neon service started [2025-03-03 22:39:01] Production.INFO: ==11272== Releasing lock... [2025-03-03 22:39:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:39:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:39:02] Production.INFO: ==11274== Lock acquired, processing the job... [2025-03-03 17:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:39:02] Production.INFO: ==11274== Releasing lock... [2025-03-03 17:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:39:02] Production.INFO: ==11277== Lock acquired, processing the job... [2025-03-03 22:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:39:02] Production.INFO: ==11277== Releasing lock... [2025-03-03 22:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:39:03] Production.INFO: ==11283== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:39:03] Production.INFO: ==11287== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:39:03] Production.INFO: ==11279== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:39:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:39:03] Production.INFO: ==11281== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:39:03] Production.INFO: ==11285== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:39:03] Production.INFO: ==11289== Lock acquired, processing the job... [2025-03-03 17:39:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:39:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:39:03] Production.INFO: Account Balance Start. [2025-03-03 17:39:03] Production.INFO: CreateAllLog Start [2025-03-03 17:39:03] Production.INFO: 117 [2025-03-03 17:39:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:39:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:39:03] Production.INFO: count ==13 [2025-03-03 17:39:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:39:03] Production.INFO: count ==21 [2025-03-03 17:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600042') start [2025-03-03 17:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600042') end [2025-03-03 17:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:39:04] Production.INFO: 1 [2025-03-03 17:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.ERROR: done [2025-03-03 17:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: ==11281== Releasing lock... [2025-03-03 17:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: ==11289== Releasing lock... [2025-03-03 17:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.ERROR: done [2025-03-03 17:39:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:39:05] Production.INFO: Total Charge 0 [2025-03-03 17:39:05] Production.INFO: CreateAllLog End [2025-03-03 17:39:05] Production.INFO: Account Balance End. [2025-03-03 17:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:39:05] Production.INFO: ==11285== Releasing lock... [2025-03-03 17:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:39:05 [end_date_ymd] => 2025-03-03 17:39:05 [RateCDR] => 1 ) [2025-03-03 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:39:05' and `end` < '2025-03-03 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:39:14] Production.ERROR: CronJobId end10 [2025-03-03 17:39:14] Production.INFO: ==11283== Releasing lock... [2025-03-03 17:39:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:39:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:39:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:39:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:39:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:39:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:39:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:39:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:39:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:39:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:39:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:39:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:39:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:39:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:39:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:39:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:39:15] Production.INFO: call_cost start [2025-03-03 17:39:15] Production.INFO: call_cost end [2025-03-03 17:39:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:39:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:39:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:39:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:39:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:39:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:39:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:39:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:39:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:39:16] Production.INFO: ==11279== Releasing lock... [2025-03-03 17:39:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:39:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:39:18] Production.INFO: count ==5513 [2025-03-03 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:39:05 - End Time 2025-03-03 17:39:05 [2025-03-03 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600043', 'tblTempUsageDetail_20' ) start [2025-03-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600043', 'tblTempUsageDetail_20' ) end [2025-03-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600043', 'tblTempVendorCDR_20' ) start [2025-03-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600043', 'tblTempVendorCDR_20' ) end [2025-03-03 17:39:21] Production.INFO: ProcessCDR(1,14600043,1,1,2) [2025-03-03 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600043', 'tblTempUsageDetail_20' ) start [2025-03-03 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600043', 'tblTempUsageDetail_20' ) end [2025-03-03 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:39:26] Production.INFO: ==11287== Releasing lock... [2025-03-03 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:39:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-03 22:40:02] Production.INFO: ==11342== Lock acquired, processing the job... [2025-03-03 22:40:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:40:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:40:02] Production.INFO: neon service started [2025-03-03 22:40:02] Production.INFO: neon service started [2025-03-03 22:40:02] Production.INFO: ==11342== Releasing lock... [2025-03-03 22:40:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:40:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:40:02] Production.INFO: ==11344== Lock acquired, processing the job... [2025-03-03 17:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:40:02] Production.INFO: ==11344== Releasing lock... [2025-03-03 17:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:40:03] Production.INFO: ==11346== Lock acquired, processing the job... [2025-03-03 22:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:40:03] Production.INFO: ==11346== Releasing lock... [2025-03-03 22:40:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:40:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:40:03] Production.INFO: ==11349== Lock acquired, processing the job... [2025-03-03 17:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 17:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 17:40:03] Production.INFO: ==11353== Lock acquired, processing the job... [2025-03-03 17:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 17:40:03] Production.INFO: ==11349== Releasing lock... [2025-03-03 17:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 17:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:40:04] Production.INFO: ==11355== Lock acquired, processing the job... [2025-03-03 17:40:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:40:04] Production.INFO: ==11361== Lock acquired, processing the job... [2025-03-03 17:40:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 17:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:40:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:40:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:40:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:40:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:40:04] Production.INFO: ==11353== Releasing lock... [2025-03-03 17:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:40:04] Production.INFO: ==11363== Lock acquired, processing the job... [2025-03-03 17:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:40:04] Production.INFO: ==11351== Lock acquired, processing the job... [2025-03-03 17:40:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:40:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:40:04] Production.INFO: count ==13 [2025-03-03 17:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:40:04] Production.INFO: count ==21 [2025-03-03 17:40:04] Production.INFO: ==11359== Lock acquired, processing the job... [2025-03-03 17:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600045') start [2025-03-03 17:40:04] Production.INFO: ==11357== Lock acquired, processing the job... [2025-03-03 17:40:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:40:04] Production.ERROR: done [2025-03-03 17:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600045') end [2025-03-03 17:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:40:04] Production.INFO: 1 [2025-03-03 17:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 17:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600048', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 17:40:04] Production.INFO: ==11363== Releasing lock... [2025-03-03 17:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:40:04] Production.INFO: Account Balance Start. [2025-03-03 17:40:04] Production.INFO: CreateAllLog Start [2025-03-03 17:40:04] Production.INFO: 117 [2025-03-03 17:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:04] Production.ERROR: done [2025-03-03 17:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-09 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-10 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-11 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.ERROR: done [2025-03-03 17:40:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:40:05] Production.INFO: Total Charge 0 [2025-03-03 17:40:05] Production.INFO: CreateAllLog End [2025-03-03 17:40:06] Production.INFO: Account Balance End. [2025-03-03 17:40:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:40:06] Production.INFO: ==11357== Releasing lock... [2025-03-03 17:40:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:40:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:40:06 [end_date_ymd] => 2025-03-03 17:40:06 [RateCDR] => 1 ) [2025-03-03 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:40:06' and `end` < '2025-03-03 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:40:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600048', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 17:40:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 17:40:10] Production.INFO: ProcessCDR(1,14600048,1,1,2) [2025-03-03 17:40:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600048,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:40:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600048,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:40:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:40:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:40:10] Production.INFO: ==11361== Releasing lock... [2025-03-03 17:40:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 17:40:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:40:16] Production.ERROR: CronJobId end10 [2025-03-03 17:40:16] Production.INFO: ==11355== Releasing lock... [2025-03-03 17:40:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:40:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:40:17] Production.INFO: call_cost start [2025-03-03 17:40:17] Production.INFO: call_cost end [2025-03-03 17:40:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:40:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:40:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:40:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:40:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:40:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:40:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:40:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:40:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:40:18] Production.INFO: ==11351== Releasing lock... [2025-03-03 17:40:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:40:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:40:19] Production.INFO: count ==5495 [2025-03-03 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:40:06 - End Time 2025-03-03 17:40:06 [2025-03-03 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600049', 'tblTempUsageDetail_20' ) start [2025-03-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600049', 'tblTempUsageDetail_20' ) end [2025-03-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600049', 'tblTempVendorCDR_20' ) start [2025-03-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600049', 'tblTempVendorCDR_20' ) end [2025-03-03 17:40:22] Production.INFO: ProcessCDR(1,14600049,1,1,2) [2025-03-03 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600049', 'tblTempUsageDetail_20' ) start [2025-03-03 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600049', 'tblTempUsageDetail_20' ) end [2025-03-03 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:40:27] Production.INFO: ==11359== Releasing lock... [2025-03-03 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:40:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-03 22:41:01] Production.INFO: ==11418== Lock acquired, processing the job... [2025-03-03 22:41:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:41:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:41:01] Production.INFO: neon service started [2025-03-03 22:41:01] Production.INFO: neon service started [2025-03-03 22:41:01] Production.INFO: ==11418== Releasing lock... [2025-03-03 22:41:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:41:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:41:01] Production.INFO: ==11420== Lock acquired, processing the job... [2025-03-03 17:41:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:41:02] Production.INFO: ==11420== Releasing lock... [2025-03-03 17:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:41:02] Production.INFO: ==11422== Lock acquired, processing the job... [2025-03-03 22:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:41:02] Production.INFO: ==11422== Releasing lock... [2025-03-03 22:41:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:41:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:41:03] Production.INFO: ==11424== Lock acquired, processing the job... [2025-03-03 17:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:41:03] Production.INFO: ==11431== Lock acquired, processing the job... [2025-03-03 17:41:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:41:03] Production.INFO: ==11426== Lock acquired, processing the job... [2025-03-03 17:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:41:03] Production.INFO: Account Balance Start. [2025-03-03 17:41:03] Production.INFO: CreateAllLog Start [2025-03-03 17:41:03] Production.INFO: 117 [2025-03-03 17:41:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:41:03] Production.INFO: ==11428== Lock acquired, processing the job... [2025-03-03 17:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: ==11433== Lock acquired, processing the job... [2025-03-03 17:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:41:03] Production.INFO: ==11435== Lock acquired, processing the job... [2025-03-03 17:41:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:41:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:41:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:41:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: count ==13 [2025-03-03 17:41:03] Production.INFO: Date 2025-02-14 [2025-03-03 17:41:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:41:03] Production.INFO: count ==21 [2025-03-03 17:41:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600053') start [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:03] Production.INFO: Date 2025-02-15 [2025-03-03 17:41:03] Production.INFO: ==11426== Releasing lock... [2025-03-03 17:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:41:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:41:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.ERROR: done [2025-03-03 17:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600053') end [2025-03-03 17:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:41:04] Production.INFO: 1 [2025-03-03 17:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.ERROR: done [2025-03-03 17:41:04] Production.INFO: ==11435== Releasing lock... [2025-03-03 17:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:41:04] Production.INFO: Total Charge 0 [2025-03-03 17:41:04] Production.INFO: CreateAllLog End [2025-03-03 17:41:04] Production.INFO: Account Balance End. [2025-03-03 17:41:04] Production.ERROR: CronJobId end 12 [2025-03-03 17:41:04] Production.INFO: ==11431== Releasing lock... [2025-03-03 17:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:41:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:41:05 [end_date_ymd] => 2025-03-03 17:41:05 [RateCDR] => 1 ) [2025-03-03 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:41:05' and `end` < '2025-03-03 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:41:13] Production.ERROR: CronJobId end10 [2025-03-03 17:41:13] Production.INFO: ==11428== Releasing lock... [2025-03-03 17:41:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:41:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:41:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:41:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:41:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:41:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:41:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:41:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:41:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:41:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:41:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:41:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:41:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:41:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:41:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:41:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:41:15] Production.INFO: call_cost start [2025-03-03 17:41:15] Production.INFO: call_cost end [2025-03-03 17:41:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:41:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:41:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:41:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:41:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:41:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:41:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:41:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:41:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:41:16] Production.INFO: ==11424== Releasing lock... [2025-03-03 17:41:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:41:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:41:18] Production.INFO: count ==5438 [2025-03-03 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:41:05 - End Time 2025-03-03 17:41:05 [2025-03-03 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600054', 'tblTempUsageDetail_20' ) start [2025-03-03 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600054', 'tblTempUsageDetail_20' ) end [2025-03-03 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600054', 'tblTempVendorCDR_20' ) start [2025-03-03 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600054', 'tblTempVendorCDR_20' ) end [2025-03-03 17:41:21] Production.INFO: ProcessCDR(1,14600054,1,1,2) [2025-03-03 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600054', 'tblTempUsageDetail_20' ) start [2025-03-03 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600054', 'tblTempUsageDetail_20' ) end [2025-03-03 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:41:24] Production.INFO: ==11433== Releasing lock... [2025-03-03 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:41:24] Production.INFO: 68.75 MB #Memory Used# [2025-03-03 22:42:02] Production.INFO: ==11488== Lock acquired, processing the job... [2025-03-03 22:42:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:42:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:42:02] Production.INFO: neon service started [2025-03-03 22:42:02] Production.INFO: neon service started [2025-03-03 22:42:02] Production.INFO: ==11488== Releasing lock... [2025-03-03 22:42:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:42:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:42:02] Production.INFO: ==11490== Lock acquired, processing the job... [2025-03-03 17:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:42:02] Production.INFO: ==11492== Lock acquired, processing the job... [2025-03-03 22:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:42:02] Production.INFO: ==11492== Releasing lock... [2025-03-03 22:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:42:02] Production.INFO: ==11490== Releasing lock... [2025-03-03 17:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:42:03] Production.INFO: ==11495== Lock acquired, processing the job... [2025-03-03 17:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:42:03] Production.INFO: ==11497== Lock acquired, processing the job... [2025-03-03 17:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:42:03] Production.INFO: ==11499== Lock acquired, processing the job... [2025-03-03 17:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:42:04] Production.INFO: ==11497== Releasing lock... [2025-03-03 17:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:42:04] Production.INFO: ==11501== Lock acquired, processing the job... [2025-03-03 17:42:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:42:04] Production.INFO: ==11503== Lock acquired, processing the job... [2025-03-03 17:42:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:42:04] Production.INFO: Account Balance Start. [2025-03-03 17:42:04] Production.INFO: CreateAllLog Start [2025-03-03 17:42:04] Production.INFO: ==11505== Lock acquired, processing the job... [2025-03-03 17:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:42:04] Production.INFO: 117 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: count ==13 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:42:04] Production.INFO: count ==21 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600058') start [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600058') end [2025-03-03 17:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:42:04] Production.INFO: 1 [2025-03-03 17:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: ==11505== Releasing lock... [2025-03-03 17:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.ERROR: done [2025-03-03 17:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:04] Production.ERROR: done [2025-03-03 17:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:42:05] Production.INFO: Total Charge 0 [2025-03-03 17:42:05] Production.INFO: CreateAllLog End [2025-03-03 17:42:05] Production.INFO: Account Balance End. [2025-03-03 17:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:42:05] Production.INFO: ==11501== Releasing lock... [2025-03-03 17:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:42:05 [end_date_ymd] => 2025-03-03 17:42:05 [RateCDR] => 1 ) [2025-03-03 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:42:05' and `end` < '2025-03-03 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:42:13] Production.ERROR: CronJobId end10 [2025-03-03 17:42:13] Production.INFO: ==11499== Releasing lock... [2025-03-03 17:42:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:42:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:42:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:42:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:42:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:42:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:42:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:42:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:42:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:42:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:42:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:42:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:42:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:42:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:42:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:42:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:42:15] Production.INFO: call_cost start [2025-03-03 17:42:15] Production.INFO: call_cost end [2025-03-03 17:42:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:42:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:42:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:42:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:42:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:42:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:42:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:42:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:42:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:42:16] Production.INFO: ==11495== Releasing lock... [2025-03-03 17:42:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:42:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:42:18] Production.INFO: count ==5440 [2025-03-03 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:42:05 - End Time 2025-03-03 17:42:05 [2025-03-03 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600059', 'tblTempUsageDetail_20' ) start [2025-03-03 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600059', 'tblTempUsageDetail_20' ) end [2025-03-03 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600059', 'tblTempVendorCDR_20' ) start [2025-03-03 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600059', 'tblTempVendorCDR_20' ) end [2025-03-03 17:42:21] Production.INFO: ProcessCDR(1,14600059,1,1,2) [2025-03-03 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600059', 'tblTempUsageDetail_20' ) start [2025-03-03 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600059', 'tblTempUsageDetail_20' ) end [2025-03-03 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:42:26] Production.INFO: ==11503== Releasing lock... [2025-03-03 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:42:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-03 22:43:01] Production.INFO: ==11561== Lock acquired, processing the job... [2025-03-03 22:43:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:43:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:43:01] Production.INFO: neon service started [2025-03-03 22:43:01] Production.INFO: neon service started [2025-03-03 22:43:01] Production.INFO: ==11561== Releasing lock... [2025-03-03 22:43:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:43:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:43:01] Production.INFO: ==11563== Lock acquired, processing the job... [2025-03-03 17:43:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:43:02] Production.INFO: ==11563== Releasing lock... [2025-03-03 17:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:43:02] Production.INFO: ==11565== Lock acquired, processing the job... [2025-03-03 22:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:43:02] Production.INFO: ==11565== Releasing lock... [2025-03-03 22:43:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:43:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:43:03] Production.INFO: ==11572== Lock acquired, processing the job... [2025-03-03 17:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:43:03] Production.INFO: ==11578== Lock acquired, processing the job... [2025-03-03 17:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:43:03] Production.INFO: ==11568== Lock acquired, processing the job... [2025-03-03 17:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:43:03] Production.INFO: ==11570== Lock acquired, processing the job... [2025-03-03 17:43:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:43:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:43:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:43:03] Production.INFO: ==11574== Lock acquired, processing the job... [2025-03-03 17:43:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:43:03] Production.INFO: count ==13 [2025-03-03 17:43:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:43:03] Production.INFO: count ==21 [2025-03-03 17:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600060') start [2025-03-03 17:43:03] Production.INFO: ==11576== Lock acquired, processing the job... [2025-03-03 17:43:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:43:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600060') end [2025-03-03 17:43:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:43:03] Production.INFO: 1 [2025-03-03 17:43:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:43:03] Production.INFO: ==11578== Releasing lock... [2025-03-03 17:43:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:43:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:43:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:43:03] Production.INFO: Account Balance Start. [2025-03-03 17:43:03] Production.INFO: CreateAllLog Start [2025-03-03 17:43:03] Production.INFO: 117 [2025-03-03 17:43:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:43:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: ==11570== Releasing lock... [2025-03-03 17:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.ERROR: done [2025-03-03 17:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.ERROR: done [2025-03-03 17:43:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:43:04] Production.INFO: Total Charge 0 [2025-03-03 17:43:04] Production.INFO: CreateAllLog End [2025-03-03 17:43:04] Production.INFO: Account Balance End. [2025-03-03 17:43:04] Production.ERROR: CronJobId end 12 [2025-03-03 17:43:04] Production.INFO: ==11574== Releasing lock... [2025-03-03 17:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:43:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:43:05 [end_date_ymd] => 2025-03-03 17:43:05 [RateCDR] => 1 ) [2025-03-03 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:43:05' and `end` < '2025-03-03 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:43:12] Production.ERROR: CronJobId end10 [2025-03-03 17:43:12] Production.INFO: ==11572== Releasing lock... [2025-03-03 17:43:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:43:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:43:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:43:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:43:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:43:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:43:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:43:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:43:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:43:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:43:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:43:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:43:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:43:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:43:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:43:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:43:14] Production.INFO: call_cost start [2025-03-03 17:43:14] Production.INFO: call_cost end [2025-03-03 17:43:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:43:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:43:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:43:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:43:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:43:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:43:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:43:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:43:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:43:15] Production.INFO: ==11568== Releasing lock... [2025-03-03 17:43:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:43:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:43:18] Production.INFO: count ==5416 [2025-03-03 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:43:05 - End Time 2025-03-03 17:43:05 [2025-03-03 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600064', 'tblTempUsageDetail_20' ) start [2025-03-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600064', 'tblTempUsageDetail_20' ) end [2025-03-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600064', 'tblTempVendorCDR_20' ) start [2025-03-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600064', 'tblTempVendorCDR_20' ) end [2025-03-03 17:43:21] Production.INFO: ProcessCDR(1,14600064,1,1,2) [2025-03-03 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600064', 'tblTempUsageDetail_20' ) start [2025-03-03 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600064', 'tblTempUsageDetail_20' ) end [2025-03-03 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:43:26] Production.INFO: ==11576== Releasing lock... [2025-03-03 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:43:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-03 22:44:02] Production.INFO: ==11633== Lock acquired, processing the job... [2025-03-03 22:44:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:44:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:44:02] Production.INFO: neon service started [2025-03-03 22:44:02] Production.INFO: neon service started [2025-03-03 22:44:02] Production.INFO: ==11633== Releasing lock... [2025-03-03 22:44:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:44:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:44:02] Production.INFO: ==11636== Lock acquired, processing the job... [2025-03-03 17:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:44:02] Production.INFO: ==11636== Releasing lock... [2025-03-03 17:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:44:02] Production.INFO: ==11638== Lock acquired, processing the job... [2025-03-03 22:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:44:02] Production.INFO: ==11638== Releasing lock... [2025-03-03 22:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:44:03] Production.INFO: ==11640== Lock acquired, processing the job... [2025-03-03 17:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:44:03] Production.INFO: ==11642== Lock acquired, processing the job... [2025-03-03 17:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:44:03] Production.INFO: ==11644== Lock acquired, processing the job... [2025-03-03 17:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:44:03] Production.INFO: ==11646== Lock acquired, processing the job... [2025-03-03 17:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:44:03] Production.INFO: ==11642== Releasing lock... [2025-03-03 17:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:44:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:44:03] Production.INFO: ==11648== Lock acquired, processing the job... [2025-03-03 17:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:44:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:44:04] Production.INFO: Account Balance Start. [2025-03-03 17:44:04] Production.INFO: CreateAllLog Start [2025-03-03 17:44:04] Production.INFO: 117 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:44:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: ==11650== Lock acquired, processing the job... [2025-03-03 17:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:44:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: count ==13 [2025-03-03 17:44:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:44:04] Production.INFO: count ==21 [2025-03-03 17:44:04] Production.ERROR: done [2025-03-03 17:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600068') start [2025-03-03 17:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.ERROR: done [2025-03-03 17:44:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600068') end [2025-03-03 17:44:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:44:04] Production.INFO: 1 [2025-03-03 17:44:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:44:04] Production.INFO: ==11650== Releasing lock... [2025-03-03 17:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:44:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:44:05] Production.INFO: Total Charge 0 [2025-03-03 17:44:05] Production.INFO: CreateAllLog End [2025-03-03 17:44:05] Production.INFO: Account Balance End. [2025-03-03 17:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:44:05] Production.INFO: ==11646== Releasing lock... [2025-03-03 17:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:44:05 [end_date_ymd] => 2025-03-03 17:44:05 [RateCDR] => 1 ) [2025-03-03 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:44:05' and `end` < '2025-03-03 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:44:14] Production.ERROR: CronJobId end10 [2025-03-03 17:44:14] Production.INFO: ==11644== Releasing lock... [2025-03-03 17:44:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:44:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:44:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:44:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:44:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:44:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:44:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:44:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:44:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:44:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:44:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:44:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:44:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:44:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:44:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:44:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:44:16] Production.INFO: call_cost start [2025-03-03 17:44:16] Production.INFO: call_cost end [2025-03-03 17:44:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:44:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:44:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:44:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:44:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:44:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:44:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:44:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:44:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:44:17] Production.INFO: ==11640== Releasing lock... [2025-03-03 17:44:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:44:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:44:18] Production.INFO: count ==5364 [2025-03-03 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:44:05 - End Time 2025-03-03 17:44:05 [2025-03-03 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600069', 'tblTempUsageDetail_20' ) start [2025-03-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600069', 'tblTempUsageDetail_20' ) end [2025-03-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600069', 'tblTempVendorCDR_20' ) start [2025-03-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600069', 'tblTempVendorCDR_20' ) end [2025-03-03 17:44:21] Production.INFO: ProcessCDR(1,14600069,1,1,2) [2025-03-03 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600069', 'tblTempUsageDetail_20' ) start [2025-03-03 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600069', 'tblTempUsageDetail_20' ) end [2025-03-03 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:44:26] Production.INFO: ==11648== Releasing lock... [2025-03-03 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:44:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-03 22:45:01] Production.INFO: ==11704== Lock acquired, processing the job... [2025-03-03 22:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:45:01] Production.INFO: neon service started [2025-03-03 22:45:01] Production.INFO: neon service started [2025-03-03 22:45:01] Production.INFO: ==11704== Releasing lock... [2025-03-03 22:45:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:45:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:45:01] Production.INFO: ==11706== Lock acquired, processing the job... [2025-03-03 17:45:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:45:02] Production.INFO: ==11706== Releasing lock... [2025-03-03 17:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:45:02] Production.INFO: ==11708== Lock acquired, processing the job... [2025-03-03 22:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:45:02] Production.INFO: ==11708== Releasing lock... [2025-03-03 22:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:45:03] Production.INFO: ==11717== Lock acquired, processing the job... [2025-03-03 17:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:45:03] Production.INFO: ==11721== Lock acquired, processing the job... [2025-03-03 17:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:45:03] Production.INFO: Account Balance Start. [2025-03-03 17:45:03] Production.INFO: CreateAllLog Start [2025-03-03 17:45:03] Production.INFO: 117 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:45:03] Production.INFO: ==11710== Lock acquired, processing the job... [2025-03-03 17:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:45:03] Production.INFO: count ==13 [2025-03-03 17:45:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:45:03] Production.INFO: count ==21 [2025-03-03 17:45:03] Production.INFO: ==11715== Lock acquired, processing the job... [2025-03-03 17:45:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600071') start [2025-03-03 17:45:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: ==11712== Lock acquired, processing the job... [2025-03-03 17:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:45:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: ==11719== Lock acquired, processing the job... [2025-03-03 17:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:45:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:45:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:45:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:45:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:45:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600071') end [2025-03-03 17:45:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:45:03] Production.INFO: 1 [2025-03-03 17:45:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:45:03] Production.INFO: Date 2025-02-14 [2025-03-03 17:45:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-15 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-16 [2025-03-03 17:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-17 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: ==11721== Releasing lock... [2025-03-03 17:45:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:45:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:45:03] Production.INFO: Date 2025-02-18 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-19 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-20 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-21 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-22 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: ==11712== Releasing lock... [2025-03-03 17:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:45:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:45:03] Production.INFO: Date 2025-02-23 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-24 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-25 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-26 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-27 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-02-28 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:03] Production.INFO: Date 2025-03-01 [2025-03-03 17:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:04] Production.ERROR: done [2025-03-03 17:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:45:04] Production.INFO: Total Charge 0 [2025-03-03 17:45:04] Production.INFO: CreateAllLog End [2025-03-03 17:45:04] Production.ERROR: done [2025-03-03 17:45:04] Production.INFO: Account Balance End. [2025-03-03 17:45:04] Production.ERROR: CronJobId end 12 [2025-03-03 17:45:04] Production.INFO: ==11717== Releasing lock... [2025-03-03 17:45:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:45:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:45:05 [end_date_ymd] => 2025-03-03 17:45:05 [RateCDR] => 1 ) [2025-03-03 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:45:05' and `end` < '2025-03-03 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:45:13] Production.ERROR: CronJobId end10 [2025-03-03 17:45:13] Production.INFO: ==11715== Releasing lock... [2025-03-03 17:45:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:45:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:45:15] Production.INFO: call_cost start [2025-03-03 17:45:15] Production.INFO: call_cost end [2025-03-03 17:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:45:16] Production.INFO: ==11710== Releasing lock... [2025-03-03 17:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:45:18] Production.INFO: count ==5338 [2025-03-03 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:45:05 - End Time 2025-03-03 17:45:05 [2025-03-03 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600074', 'tblTempUsageDetail_20' ) start [2025-03-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600074', 'tblTempUsageDetail_20' ) end [2025-03-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600074', 'tblTempVendorCDR_20' ) start [2025-03-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600074', 'tblTempVendorCDR_20' ) end [2025-03-03 17:45:21] Production.INFO: ProcessCDR(1,14600074,1,1,2) [2025-03-03 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600074', 'tblTempUsageDetail_20' ) start [2025-03-03 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600074', 'tblTempUsageDetail_20' ) end [2025-03-03 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:45:26] Production.INFO: ==11719== Releasing lock... [2025-03-03 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:45:26] Production.INFO: 68 MB #Memory Used# [2025-03-03 22:46:01] Production.INFO: ==11778== Lock acquired, processing the job... [2025-03-03 22:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:46:01] Production.INFO: neon service started [2025-03-03 22:46:01] Production.INFO: neon service started [2025-03-03 22:46:01] Production.INFO: ==11778== Releasing lock... [2025-03-03 22:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:46:02] Production.INFO: ==11780== Lock acquired, processing the job... [2025-03-03 17:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:46:02] Production.INFO: ==11782== Lock acquired, processing the job... [2025-03-03 22:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:46:02] Production.INFO: ==11782== Releasing lock... [2025-03-03 22:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:46:02] Production.INFO: ==11780== Releasing lock... [2025-03-03 17:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:46:03] Production.INFO: ==11785== Lock acquired, processing the job... [2025-03-03 17:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:46:03] Production.INFO: ==11793== Lock acquired, processing the job... [2025-03-03 17:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:46:03] Production.INFO: ==11787== Lock acquired, processing the job... [2025-03-03 17:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:46:04] Production.INFO: ==11789== Lock acquired, processing the job... [2025-03-03 17:46:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:46:04] Production.INFO: ==11791== Lock acquired, processing the job... [2025-03-03 17:46:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:46:04] Production.INFO: ==11795== Lock acquired, processing the job... [2025-03-03 17:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:46:04] Production.INFO: Account Balance Start. [2025-03-03 17:46:04] Production.INFO: CreateAllLog Start [2025-03-03 17:46:04] Production.INFO: 117 [2025-03-03 17:46:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:46:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:46:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:46:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:46:04] Production.ERROR: done [2025-03-03 17:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:46:04] Production.INFO: ==11787== Releasing lock... [2025-03-03 17:46:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:46:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:46:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:46:04] Production.INFO: count ==13 [2025-03-03 17:46:04] Production.ERROR: done [2025-03-03 17:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:46:04] Production.INFO: count ==21 [2025-03-03 17:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600078') start [2025-03-03 17:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600078') end [2025-03-03 17:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:46:04] Production.INFO: 1 [2025-03-03 17:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: ==11795== Releasing lock... [2025-03-03 17:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:46:05] Production.INFO: Total Charge 0 [2025-03-03 17:46:05] Production.INFO: CreateAllLog End [2025-03-03 17:46:05] Production.INFO: Account Balance End. [2025-03-03 17:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:46:05] Production.INFO: ==11791== Releasing lock... [2025-03-03 17:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:46:06 [end_date_ymd] => 2025-03-03 17:46:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:46:06' and `end` < '2025-03-03 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-03-03 17:46:14] Production.ERROR: CronJobId end10 [2025-03-03 17:46:14] Production.INFO: ==11789== Releasing lock... [2025-03-03 17:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:46:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:46:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:46:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:46:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:46:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:46:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:46:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:46:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:46:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:46:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:46:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:46:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:46:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:46:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:46:16] Production.INFO: call_cost start [2025-03-03 17:46:16] Production.INFO: call_cost end [2025-03-03 17:46:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:46:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:46:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:46:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:46:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:46:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:46:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:46:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:46:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:46:17] Production.INFO: ==11785== Releasing lock... [2025-03-03 17:46:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:46:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:46:18] Production.INFO: count ==5275 [2025-03-03 17:46:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:46:06 - End Time 2025-03-03 17:46:06 [2025-03-03 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600079', 'tblTempUsageDetail_20' ) start [2025-03-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600079', 'tblTempUsageDetail_20' ) end [2025-03-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600079', 'tblTempVendorCDR_20' ) start [2025-03-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600079', 'tblTempVendorCDR_20' ) end [2025-03-03 17:46:21] Production.INFO: ProcessCDR(1,14600079,1,1,2) [2025-03-03 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600079', 'tblTempUsageDetail_20' ) start [2025-03-03 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600079', 'tblTempUsageDetail_20' ) end [2025-03-03 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:46:24] Production.INFO: ==11793== Releasing lock... [2025-03-03 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:46:24] Production.INFO: 67.5 MB #Memory Used# [2025-03-03 22:47:02] Production.INFO: ==11866== Lock acquired, processing the job... [2025-03-03 22:47:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:47:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:47:02] Production.INFO: neon service started [2025-03-03 22:47:02] Production.INFO: neon service started [2025-03-03 22:47:02] Production.INFO: ==11866== Releasing lock... [2025-03-03 22:47:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:47:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:47:03] Production.INFO: ==11870== Lock acquired, processing the job... [2025-03-03 22:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 17:47:03] Production.INFO: ==11868== Lock acquired, processing the job... [2025-03-03 17:47:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:47:03] Production.INFO: ==11870== Releasing lock... [2025-03-03 22:47:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:47:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:47:03] Production.INFO: ==11868== Releasing lock... [2025-03-03 17:47:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:47:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:47:04] Production.INFO: ==11881== Lock acquired, processing the job... [2025-03-03 17:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:47:04] Production.INFO: ==11883== Lock acquired, processing the job... [2025-03-03 17:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:47:04] Production.INFO: count ==13 [2025-03-03 17:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:47:04] Production.INFO: ==11873== Lock acquired, processing the job... [2025-03-03 17:47:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:47:04] Production.INFO: count ==21 [2025-03-03 17:47:04] Production.INFO: ==11879== Lock acquired, processing the job... [2025-03-03 17:47:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:47:04] Production.INFO: ==11875== Lock acquired, processing the job... [2025-03-03 17:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:47:04] Production.INFO: ==11877== Lock acquired, processing the job... [2025-03-03 17:47:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600080') start [2025-03-03 17:47:04] Production.INFO: Account Balance Start. [2025-03-03 17:47:04] Production.INFO: CreateAllLog Start [2025-03-03 17:47:04] Production.INFO: 117 [2025-03-03 17:47:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:47:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600080') end [2025-03-03 17:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:47:04] Production.INFO: 1 [2025-03-03 17:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:47:04] Production.ERROR: done [2025-03-03 17:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:47:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:47:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:47:04] Production.INFO: ==11883== Releasing lock... [2025-03-03 17:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:47:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:47:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.ERROR: done [2025-03-03 17:47:05] Production.INFO: ==11875== Releasing lock... [2025-03-03 17:47:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:47:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:47:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:06] Production.INFO: Date 2025-03-01 [2025-03-03 17:47:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:06] Production.INFO: Date 2025-03-02 [2025-03-03 17:47:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:06] Production.INFO: Date 2025-03-03 [2025-03-03 17:47:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:47:06] Production.INFO: Total Charge 0 [2025-03-03 17:47:06] Production.INFO: CreateAllLog End [2025-03-03 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:47:06 [end_date_ymd] => 2025-03-03 17:47:06 [RateCDR] => 1 ) [2025-03-03 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:47:06' and `end` < '2025-03-03 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:47:06] Production.INFO: Account Balance End. [2025-03-03 17:47:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:47:06] Production.INFO: ==11879== Releasing lock... [2025-03-03 17:47:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:47:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:47:14] Production.ERROR: CronJobId end10 [2025-03-03 17:47:14] Production.INFO: ==11877== Releasing lock... [2025-03-03 17:47:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:47:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:47:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:47:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:47:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:47:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:47:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:47:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:47:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:47:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:47:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:47:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:47:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:47:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:47:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:47:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:47:15] Production.INFO: call_cost start [2025-03-03 17:47:15] Production.INFO: call_cost end [2025-03-03 17:47:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:47:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:47:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:47:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:47:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:47:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:47:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:47:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:47:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:47:16] Production.INFO: ==11873== Releasing lock... [2025-03-03 17:47:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:47:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:47:19] Production.INFO: count ==5213 [2025-03-03 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:47:06 - End Time 2025-03-03 17:47:06 [2025-03-03 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600084', 'tblTempUsageDetail_20' ) start [2025-03-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600084', 'tblTempUsageDetail_20' ) end [2025-03-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600084', 'tblTempVendorCDR_20' ) start [2025-03-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600084', 'tblTempVendorCDR_20' ) end [2025-03-03 17:47:21] Production.INFO: ProcessCDR(1,14600084,1,1,2) [2025-03-03 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600084', 'tblTempUsageDetail_20' ) start [2025-03-03 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600084', 'tblTempUsageDetail_20' ) end [2025-03-03 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:47:26] Production.INFO: ==11881== Releasing lock... [2025-03-03 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:47:26] Production.INFO: 67 MB #Memory Used# [2025-03-03 22:48:01] Production.INFO: ==11963== Lock acquired, processing the job... [2025-03-03 22:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:48:01] Production.INFO: neon service started [2025-03-03 22:48:01] Production.INFO: neon service started [2025-03-03 22:48:01] Production.INFO: ==11963== Releasing lock... [2025-03-03 22:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:48:02] Production.INFO: ==11965== Lock acquired, processing the job... [2025-03-03 17:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:48:02] Production.INFO: ==11967== Lock acquired, processing the job... [2025-03-03 22:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:48:02] Production.INFO: ==11967== Releasing lock... [2025-03-03 22:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:48:02] Production.INFO: ==11965== Releasing lock... [2025-03-03 17:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:48:03] Production.INFO: ==11970== Lock acquired, processing the job... [2025-03-03 17:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:48:03] Production.INFO: ==11972== Lock acquired, processing the job... [2025-03-03 17:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:48:03] Production.INFO: ==11980== Lock acquired, processing the job... [2025-03-03 17:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:48:03] Production.INFO: count ==13 [2025-03-03 17:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:48:03] Production.INFO: count ==21 [2025-03-03 17:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600087') start [2025-03-03 17:48:03] Production.INFO: ==11976== Lock acquired, processing the job... [2025-03-03 17:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:48:04] Production.INFO: ==11974== Lock acquired, processing the job... [2025-03-03 17:48:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:48:04] Production.INFO: ==11972== Releasing lock... [2025-03-03 17:48:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:48:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:48:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600087') end [2025-03-03 17:48:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:48:04] Production.INFO: 1 [2025-03-03 17:48:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:48:04] Production.INFO: ==11980== Releasing lock... [2025-03-03 17:48:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:48:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:48:04] Production.INFO: Account Balance Start. [2025-03-03 17:48:04] Production.INFO: CreateAllLog Start [2025-03-03 17:48:04] Production.INFO: 117 [2025-03-03 17:48:04] Production.INFO: ==11978== Lock acquired, processing the job... [2025-03-03 17:48:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:48:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:48:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:48:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:48:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:48:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.ERROR: done [2025-03-03 17:48:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.ERROR: done [2025-03-03 17:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:48:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:48:05] Production.INFO: Total Charge 0 [2025-03-03 17:48:05] Production.INFO: CreateAllLog End [2025-03-03 17:48:05] Production.INFO: Account Balance End. [2025-03-03 17:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:48:05] Production.INFO: ==11976== Releasing lock... [2025-03-03 17:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:48:06 [end_date_ymd] => 2025-03-03 17:48:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:48:06' and `end` < '2025-03-03 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-03-03 17:48:14] Production.ERROR: CronJobId end10 [2025-03-03 17:48:14] Production.INFO: ==11974== Releasing lock... [2025-03-03 17:48:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:48:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:48:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:48:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:48:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:48:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:48:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:48:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:48:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:48:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:48:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:48:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:48:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:48:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:48:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:48:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:48:15] Production.INFO: call_cost start [2025-03-03 17:48:15] Production.INFO: call_cost end [2025-03-03 17:48:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:48:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:48:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:48:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:48:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:48:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:48:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:48:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:48:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:48:16] Production.INFO: ==11970== Releasing lock... [2025-03-03 17:48:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:48:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:48:19] Production.INFO: count ==5168 [2025-03-03 17:48:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:48:06 - End Time 2025-03-03 17:48:06 [2025-03-03 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600089', 'tblTempUsageDetail_20' ) start [2025-03-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600089', 'tblTempUsageDetail_20' ) end [2025-03-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600089', 'tblTempVendorCDR_20' ) start [2025-03-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600089', 'tblTempVendorCDR_20' ) end [2025-03-03 17:48:21] Production.INFO: ProcessCDR(1,14600089,1,1,2) [2025-03-03 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600089', 'tblTempUsageDetail_20' ) start [2025-03-03 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600089', 'tblTempUsageDetail_20' ) end [2025-03-03 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:48:25] Production.INFO: ==11978== Releasing lock... [2025-03-03 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:48:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-03 22:49:02] Production.INFO: ==12062== Lock acquired, processing the job... [2025-03-03 22:49:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:49:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:49:02] Production.INFO: neon service started [2025-03-03 22:49:02] Production.INFO: neon service started [2025-03-03 22:49:02] Production.INFO: ==12062== Releasing lock... [2025-03-03 22:49:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:49:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:49:03] Production.INFO: ==12064== Lock acquired, processing the job... [2025-03-03 17:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:49:03] Production.INFO: ==12066== Lock acquired, processing the job... [2025-03-03 22:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:49:03] Production.INFO: ==12066== Releasing lock... [2025-03-03 22:49:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:49:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:49:03] Production.INFO: ==12064== Releasing lock... [2025-03-03 17:49:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:49:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:49:04] Production.INFO: ==12073== Lock acquired, processing the job... [2025-03-03 17:49:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:49:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:49:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:49:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:49:04] Production.INFO: ==12069== Lock acquired, processing the job... [2025-03-03 17:49:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:49:04] Production.INFO: ==12081== Lock acquired, processing the job... [2025-03-03 17:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:49:04] Production.INFO: ==12071== Lock acquired, processing the job... [2025-03-03 17:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:49:04] Production.INFO: ==12075== Lock acquired, processing the job... [2025-03-03 17:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:49:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:49:04] Production.INFO: ==12078== Lock acquired, processing the job... [2025-03-03 17:49:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:49:04] Production.INFO: Account Balance Start. [2025-03-03 17:49:04] Production.INFO: CreateAllLog Start [2025-03-03 17:49:04] Production.INFO: 117 [2025-03-03 17:49:04] Production.INFO: count ==13 [2025-03-03 17:49:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:49:04] Production.INFO: count ==21 [2025-03-03 17:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600090') start [2025-03-03 17:49:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600090') end [2025-03-03 17:49:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:49:05] Production.INFO: 1 [2025-03-03 17:49:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:49:05] Production.INFO: ==12081== Releasing lock... [2025-03-03 17:49:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:49:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:49:05] Production.ERROR: done [2025-03-03 17:49:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-09 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: ==12071== Releasing lock... [2025-03-03 17:49:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:49:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:49:05] Production.INFO: Date 2025-02-10 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-11 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.ERROR: done [2025-03-03 17:49:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:49:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:49:05] Production.INFO: Total Charge 0 [2025-03-03 17:49:05] Production.INFO: CreateAllLog End [2025-03-03 17:49:06] Production.INFO: Account Balance End. [2025-03-03 17:49:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:49:06] Production.INFO: ==12075== Releasing lock... [2025-03-03 17:49:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:49:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:49:06 [end_date_ymd] => 2025-03-03 17:49:06 [RateCDR] => 1 ) [2025-03-03 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:49:06' and `end` < '2025-03-03 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:49:14] Production.ERROR: CronJobId end10 [2025-03-03 17:49:14] Production.INFO: ==12073== Releasing lock... [2025-03-03 17:49:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:49:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:49:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:49:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:49:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:49:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:49:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:49:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:49:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:49:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:49:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:49:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:49:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:49:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:49:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:49:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:49:16] Production.INFO: call_cost start [2025-03-03 17:49:16] Production.INFO: call_cost end [2025-03-03 17:49:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:49:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:49:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:49:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:49:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:49:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:49:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:49:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:49:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:49:17] Production.INFO: ==12069== Releasing lock... [2025-03-03 17:49:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:49:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:49:19] Production.INFO: count ==5129 [2025-03-03 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:49:06 - End Time 2025-03-03 17:49:06 [2025-03-03 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600094', 'tblTempUsageDetail_20' ) start [2025-03-03 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600094', 'tblTempUsageDetail_20' ) end [2025-03-03 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600094', 'tblTempVendorCDR_20' ) start [2025-03-03 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600094', 'tblTempVendorCDR_20' ) end [2025-03-03 17:49:22] Production.INFO: ProcessCDR(1,14600094,1,1,2) [2025-03-03 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600094', 'tblTempUsageDetail_20' ) start [2025-03-03 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600094', 'tblTempUsageDetail_20' ) end [2025-03-03 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:49:27] Production.INFO: ==12078== Releasing lock... [2025-03-03 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:49:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-03 22:50:01] Production.INFO: ==12172== Lock acquired, processing the job... [2025-03-03 22:50:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:50:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:50:01] Production.INFO: neon service started [2025-03-03 22:50:01] Production.INFO: neon service started [2025-03-03 22:50:01] Production.INFO: ==12172== Releasing lock... [2025-03-03 22:50:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:50:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:50:02] Production.INFO: ==12175== Lock acquired, processing the job... [2025-03-03 17:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:50:02] Production.INFO: ==12175== Releasing lock... [2025-03-03 17:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:50:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:50:02] Production.INFO: ==12177== Lock acquired, processing the job... [2025-03-03 22:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:50:02] Production.INFO: ==12177== Releasing lock... [2025-03-03 22:50:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:50:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:50:03] Production.INFO: ==12189== Lock acquired, processing the job... [2025-03-03 17:50:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:50:03] Production.INFO: Account Balance Start. [2025-03-03 17:50:03] Production.INFO: CreateAllLog Start [2025-03-03 17:50:03] Production.INFO: 117 [2025-03-03 17:50:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:03] Production.INFO: ==12195== Lock acquired, processing the job... [2025-03-03 17:50:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:50:03] Production.INFO: Date 2025-02-11 [2025-03-03 17:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:03] Production.INFO: Date 2025-02-12 [2025-03-03 17:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:03] Production.INFO: Date 2025-02-13 [2025-03-03 17:50:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:50:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: count ==13 [2025-03-03 17:50:04] Production.INFO: ==12179== Lock acquired, processing the job... [2025-03-03 17:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 17:50:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:50:04] Production.INFO: count ==21 [2025-03-03 17:50:04] Production.INFO: ==12182== Lock acquired, processing the job... [2025-03-03 17:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600096') start [2025-03-03 17:50:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 17:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:50:04] Production.ERROR: CronJob PID - 12189 [2025-03-03 17:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 17:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 17:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 17:50:00 [2025-03-03 17:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 17:50:04] Production.ERROR: CronJob PID - 12195 [2025-03-03 17:50:04] Production.ERROR: CronJob Title - Import PBX Extensions and DIDs [2025-03-03 17:50:04] Production.ERROR: CronJob ID - 19 [2025-03-03 17:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 17:50:00 [2025-03-03 17:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 17:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 17:50:04] Production.INFO: ==12185== Lock acquired, processing the job... [2025-03-03 17:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:50:04] Production.INFO: ==12193== Lock acquired, processing the job... [2025-03-03 17:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 17:50:04] Production.INFO: ==12187== Lock acquired, processing the job... [2025-03-03 17:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 17:50:04] Production.INFO: ==12179== Releasing lock... [2025-03-03 17:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 17:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 17:50:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:50:04] Production.INFO: ==12191== Lock acquired, processing the job... [2025-03-03 17:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:50:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600096') end [2025-03-03 17:50:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:50:04] Production.INFO: 1 [2025-03-03 17:50:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:50:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: ==12195== Releasing lock... [2025-03-03 17:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:50:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:50:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:50:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.ERROR: done [2025-03-03 17:50:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 17:50:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600099', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 17:50:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.INFO: ==12185== Releasing lock... [2025-03-03 17:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:50:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:50:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:50:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:04] Production.ERROR: done [2025-03-03 17:50:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:50:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:50:05] Production.INFO: Total Charge 0 [2025-03-03 17:50:05] Production.INFO: CreateAllLog End [2025-03-03 17:50:05] Production.ERROR: done [2025-03-03 17:50:05] Production.INFO: Account Balance End. [2025-03-03 17:50:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:50:05] Production.INFO: ==12189== Releasing lock... [2025-03-03 17:50:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:50:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:50:06 [end_date_ymd] => 2025-03-03 17:50:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:50:06' and `end` < '2025-03-03 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-03-03 17:50:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600099', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 17:50:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 17:50:09] Production.INFO: ProcessCDR(1,14600099,1,1,2) [2025-03-03 17:50:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600099,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:50:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600099,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:50:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:50:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:50:09] Production.INFO: ==12193== Releasing lock... [2025-03-03 17:50:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 17:50:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:50:17] Production.ERROR: CronJobId end10 [2025-03-03 17:50:17] Production.INFO: ==12187== Releasing lock... [2025-03-03 17:50:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:50:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:50:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:50:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:50:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:50:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:50:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:50:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:50:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:50:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:50:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:50:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:50:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:50:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:50:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:50:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:50:19] Production.INFO: call_cost start [2025-03-03 17:50:19] Production.INFO: call_cost end [2025-03-03 17:50:19] Production.INFO: count ==5092 [2025-03-03 17:50:20] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:50:20] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:50:20] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:50:20] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:50:20] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:50:20] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:50:20] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:50:20] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:50:20] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:50:20] Production.INFO: ==12182== Releasing lock... [2025-03-03 17:50:20] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:50:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-03 14:50:06 - End Time 2025-03-03 17:50:06 [2025-03-03 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600100', 'tblTempUsageDetail_20' ) start [2025-03-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600100', 'tblTempUsageDetail_20' ) end [2025-03-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600100', 'tblTempVendorCDR_20' ) start [2025-03-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600100', 'tblTempVendorCDR_20' ) end [2025-03-03 17:50:22] Production.INFO: ProcessCDR(1,14600100,1,1,2) [2025-03-03 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600100', 'tblTempUsageDetail_20' ) start [2025-03-03 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600100', 'tblTempUsageDetail_20' ) end [2025-03-03 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:50:27] Production.INFO: ==12191== Releasing lock... [2025-03-03 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:50:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-03 22:51:02] Production.INFO: ==12288== Lock acquired, processing the job... [2025-03-03 22:51:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:51:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:51:02] Production.INFO: neon service started [2025-03-03 22:51:02] Production.INFO: neon service started [2025-03-03 22:51:02] Production.INFO: ==12288== Releasing lock... [2025-03-03 22:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:51:02] Production.INFO: ==12292== Lock acquired, processing the job... [2025-03-03 22:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:51:02] Production.INFO: ==12292== Releasing lock... [2025-03-03 22:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:51:02] Production.INFO: ==12290== Lock acquired, processing the job... [2025-03-03 17:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:51:03] Production.INFO: ==12290== Releasing lock... [2025-03-03 17:51:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:51:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:51:03] Production.INFO: ==12295== Lock acquired, processing the job... [2025-03-03 17:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:51:03] Production.INFO: ==12299== Lock acquired, processing the job... [2025-03-03 17:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:51:04] Production.INFO: ==12303== Lock acquired, processing the job... [2025-03-03 17:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:51:04] Production.INFO: ==12301== Lock acquired, processing the job... [2025-03-03 17:51:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:51:04] Production.INFO: ==12297== Lock acquired, processing the job... [2025-03-03 17:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:51:04] Production.INFO: Account Balance Start. [2025-03-03 17:51:04] Production.INFO: CreateAllLog Start [2025-03-03 17:51:04] Production.INFO: 117 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: ==12305== Lock acquired, processing the job... [2025-03-03 17:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.ERROR: done [2025-03-03 17:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:51:04] Production.INFO: count ==13 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:51:04] Production.INFO: count ==21 [2025-03-03 17:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600104') start [2025-03-03 17:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:04] Production.ERROR: done [2025-03-03 17:51:04] Production.INFO: ==12297== Releasing lock... [2025-03-03 17:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600104') end [2025-03-03 17:51:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:51:05] Production.INFO: 1 [2025-03-03 17:51:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:51:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: ==12305== Releasing lock... [2025-03-03 17:51:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:51:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:51:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:51:05] Production.INFO: Total Charge 0 [2025-03-03 17:51:05] Production.INFO: CreateAllLog End [2025-03-03 17:51:05] Production.INFO: Account Balance End. [2025-03-03 17:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:51:05] Production.INFO: ==12301== Releasing lock... [2025-03-03 17:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:51:06 [end_date_ymd] => 2025-03-03 17:51:06 [RateCDR] => 1 ) [2025-03-03 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:51:06' and `end` < '2025-03-03 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:51:14] Production.ERROR: CronJobId end10 [2025-03-03 17:51:14] Production.INFO: ==12299== Releasing lock... [2025-03-03 17:51:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:51:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:51:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:51:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:51:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:51:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:51:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:51:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:51:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:51:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:51:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:51:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:51:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:51:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:51:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:51:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:51:16] Production.INFO: call_cost start [2025-03-03 17:51:16] Production.INFO: call_cost end [2025-03-03 17:51:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:51:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:51:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:51:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:51:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:51:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:51:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:51:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:51:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:51:17] Production.INFO: ==12295== Releasing lock... [2025-03-03 17:51:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:51:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:51:19] Production.INFO: count ==5016 [2025-03-03 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:51:06 - End Time 2025-03-03 17:51:06 [2025-03-03 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600105', 'tblTempUsageDetail_20' ) start [2025-03-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600105', 'tblTempUsageDetail_20' ) end [2025-03-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600105', 'tblTempVendorCDR_20' ) start [2025-03-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600105', 'tblTempVendorCDR_20' ) end [2025-03-03 17:51:21] Production.INFO: ProcessCDR(1,14600105,1,1,2) [2025-03-03 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600105', 'tblTempUsageDetail_20' ) start [2025-03-03 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600105', 'tblTempUsageDetail_20' ) end [2025-03-03 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:51:26] Production.INFO: ==12303== Releasing lock... [2025-03-03 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:51:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-03 22:52:01] Production.INFO: ==12431== Lock acquired, processing the job... [2025-03-03 22:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:52:01] Production.INFO: neon service started [2025-03-03 22:52:01] Production.INFO: neon service started [2025-03-03 22:52:01] Production.INFO: ==12431== Releasing lock... [2025-03-03 22:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:52:02] Production.INFO: ==12433== Lock acquired, processing the job... [2025-03-03 17:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:52:02] Production.INFO: ==12433== Releasing lock... [2025-03-03 17:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:52:02] Production.INFO: ==12435== Lock acquired, processing the job... [2025-03-03 22:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:52:02] Production.INFO: ==12435== Releasing lock... [2025-03-03 22:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:52:03] Production.INFO: ==12442== Lock acquired, processing the job... [2025-03-03 17:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:52:03] Production.INFO: ==12438== Lock acquired, processing the job... [2025-03-03 17:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:52:03] Production.INFO: ==12446== Lock acquired, processing the job... [2025-03-03 17:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:52:03] Production.INFO: ==12440== Lock acquired, processing the job... [2025-03-03 17:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:52:03] Production.INFO: ==12444== Lock acquired, processing the job... [2025-03-03 17:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:52:03] Production.INFO: ==12448== Lock acquired, processing the job... [2025-03-03 17:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:52:03] Production.INFO: Account Balance Start. [2025-03-03 17:52:03] Production.INFO: CreateAllLog Start [2025-03-03 17:52:03] Production.INFO: 117 [2025-03-03 17:52:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:52:03] Production.INFO: ==12440== Releasing lock... [2025-03-03 17:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:52:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:52:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:03] Production.ERROR: done [2025-03-03 17:52:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:52:04] Production.INFO: count ==13 [2025-03-03 17:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:52:04] Production.INFO: count ==21 [2025-03-03 17:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600109') start [2025-03-03 17:52:04] Production.ERROR: done [2025-03-03 17:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600109') end [2025-03-03 17:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:52:04] Production.INFO: 1 [2025-03-03 17:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: ==12448== Releasing lock... [2025-03-03 17:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:52:04] Production.INFO: Total Charge 0 [2025-03-03 17:52:04] Production.INFO: CreateAllLog End [2025-03-03 17:52:05] Production.INFO: Account Balance End. [2025-03-03 17:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:52:05] Production.INFO: ==12444== Releasing lock... [2025-03-03 17:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:52:05 [end_date_ymd] => 2025-03-03 17:52:05 [RateCDR] => 1 ) [2025-03-03 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:52:05' and `end` < '2025-03-03 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:52:13] Production.ERROR: CronJobId end10 [2025-03-03 17:52:13] Production.INFO: ==12442== Releasing lock... [2025-03-03 17:52:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:52:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:52:15] Production.INFO: call_cost start [2025-03-03 17:52:15] Production.INFO: call_cost end [2025-03-03 17:52:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:52:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:52:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:52:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:52:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:52:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:52:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:52:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:52:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:52:16] Production.INFO: ==12438== Releasing lock... [2025-03-03 17:52:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:52:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:52:18] Production.INFO: count ==4985 [2025-03-03 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:52:05 - End Time 2025-03-03 17:52:05 [2025-03-03 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600110', 'tblTempUsageDetail_20' ) start [2025-03-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600110', 'tblTempUsageDetail_20' ) end [2025-03-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600110', 'tblTempVendorCDR_20' ) start [2025-03-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600110', 'tblTempVendorCDR_20' ) end [2025-03-03 17:52:21] Production.INFO: ProcessCDR(1,14600110,1,1,2) [2025-03-03 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600110', 'tblTempUsageDetail_20' ) start [2025-03-03 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600110', 'tblTempUsageDetail_20' ) end [2025-03-03 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:52:24] Production.INFO: ==12446== Releasing lock... [2025-03-03 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:52:24] Production.INFO: 65.25 MB #Memory Used# [2025-03-03 22:53:02] Production.INFO: ==12536== Lock acquired, processing the job... [2025-03-03 22:53:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:53:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:53:02] Production.INFO: neon service started [2025-03-03 22:53:02] Production.INFO: neon service started [2025-03-03 22:53:02] Production.INFO: ==12536== Releasing lock... [2025-03-03 22:53:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:53:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:53:02] Production.INFO: ==12538== Lock acquired, processing the job... [2025-03-03 17:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:53:02] Production.INFO: ==12538== Releasing lock... [2025-03-03 17:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:53:02] Production.INFO: ==12540== Lock acquired, processing the job... [2025-03-03 22:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:53:03] Production.INFO: ==12540== Releasing lock... [2025-03-03 22:53:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:53:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:53:03] Production.INFO: ==12546== Lock acquired, processing the job... [2025-03-03 17:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:53:03] Production.INFO: ==12550== Lock acquired, processing the job... [2025-03-03 17:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:53:03] Production.INFO: ==12542== Lock acquired, processing the job... [2025-03-03 17:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:53:03] Production.INFO: ==12544== Lock acquired, processing the job... [2025-03-03 17:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:53:04] Production.INFO: ==12548== Lock acquired, processing the job... [2025-03-03 17:53:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:53:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:53:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:53:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:53:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:53:04] Production.INFO: ==12552== Lock acquired, processing the job... [2025-03-03 17:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:53:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:53:04] Production.ERROR: done [2025-03-03 17:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:53:04] Production.INFO: Account Balance Start. [2025-03-03 17:53:04] Production.INFO: CreateAllLog Start [2025-03-03 17:53:04] Production.INFO: 117 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:53:04] Production.INFO: count ==13 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:53:04] Production.INFO: count ==21 [2025-03-03 17:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600114') start [2025-03-03 17:53:04] Production.INFO: ==12544== Releasing lock... [2025-03-03 17:53:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:53:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.ERROR: done [2025-03-03 17:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600114') end [2025-03-03 17:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:53:04] Production.INFO: 1 [2025-03-03 17:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:53:04] Production.INFO: ==12552== Releasing lock... [2025-03-03 17:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:53:05] Production.INFO: Total Charge 0 [2025-03-03 17:53:05] Production.INFO: CreateAllLog End [2025-03-03 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:53:05 [end_date_ymd] => 2025-03-03 17:53:05 [RateCDR] => 1 ) [2025-03-03 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:53:05' and `end` < '2025-03-03 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:53:05] Production.INFO: Account Balance End. [2025-03-03 17:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:53:05] Production.INFO: ==12548== Releasing lock... [2025-03-03 17:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:53:14] Production.ERROR: CronJobId end10 [2025-03-03 17:53:14] Production.INFO: ==12546== Releasing lock... [2025-03-03 17:53:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:53:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:53:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:53:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:53:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:53:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:53:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:53:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:53:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:53:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:53:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:53:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:53:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:53:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:53:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:53:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:53:16] Production.INFO: call_cost start [2025-03-03 17:53:16] Production.INFO: call_cost end [2025-03-03 17:53:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:53:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:53:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:53:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:53:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:53:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:53:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:53:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:53:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:53:17] Production.INFO: ==12542== Releasing lock... [2025-03-03 17:53:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:53:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:53:18] Production.INFO: count ==4952 [2025-03-03 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:53:05 - End Time 2025-03-03 17:53:05 [2025-03-03 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600115', 'tblTempUsageDetail_20' ) start [2025-03-03 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600115', 'tblTempUsageDetail_20' ) end [2025-03-03 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600115', 'tblTempVendorCDR_20' ) start [2025-03-03 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600115', 'tblTempVendorCDR_20' ) end [2025-03-03 17:53:20] Production.INFO: ProcessCDR(1,14600115,1,1,2) [2025-03-03 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600115', 'tblTempUsageDetail_20' ) start [2025-03-03 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600115', 'tblTempUsageDetail_20' ) end [2025-03-03 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:53:25] Production.INFO: ==12550== Releasing lock... [2025-03-03 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:53:25] Production.INFO: 65 MB #Memory Used# [2025-03-03 22:54:01] Production.INFO: ==12634== Lock acquired, processing the job... [2025-03-03 22:54:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:54:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:54:01] Production.INFO: neon service started [2025-03-03 22:54:01] Production.INFO: neon service started [2025-03-03 22:54:01] Production.INFO: ==12634== Releasing lock... [2025-03-03 22:54:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:54:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:54:02] Production.INFO: ==12637== Lock acquired, processing the job... [2025-03-03 17:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:54:02] Production.INFO: ==12639== Lock acquired, processing the job... [2025-03-03 22:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:54:02] Production.INFO: ==12639== Releasing lock... [2025-03-03 22:54:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:54:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:54:02] Production.INFO: ==12637== Releasing lock... [2025-03-03 17:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:54:03] Production.INFO: ==12643== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:54:03] Production.INFO: ==12641== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:54:03] Production.INFO: ==12645== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:54:03] Production.INFO: ==12647== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:54:03] Production.INFO: ==12649== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:54:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:54:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:54:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:54:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:54:03] Production.INFO: Account Balance Start. [2025-03-03 17:54:03] Production.INFO: CreateAllLog Start [2025-03-03 17:54:03] Production.INFO: 117 [2025-03-03 17:54:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:54:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:03] Production.INFO: ==12651== Lock acquired, processing the job... [2025-03-03 17:54:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:54:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:54:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: ==12643== Releasing lock... [2025-03-03 17:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: count ==13 [2025-03-03 17:54:04] Production.ERROR: done [2025-03-03 17:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:54:04] Production.INFO: count ==21 [2025-03-03 17:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600119') start [2025-03-03 17:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:54:04] Production.ERROR: done [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600119') end [2025-03-03 17:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:54:04] Production.INFO: 1 [2025-03-03 17:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: ==12651== Releasing lock... [2025-03-03 17:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:54:04] Production.INFO: Total Charge 0 [2025-03-03 17:54:04] Production.INFO: CreateAllLog End [2025-03-03 17:54:05] Production.INFO: Account Balance End. [2025-03-03 17:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:54:05] Production.INFO: ==12647== Releasing lock... [2025-03-03 17:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:54:05 [end_date_ymd] => 2025-03-03 17:54:05 [RateCDR] => 1 ) [2025-03-03 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:54:05' and `end` < '2025-03-03 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:54:14] Production.ERROR: CronJobId end10 [2025-03-03 17:54:14] Production.INFO: ==12645== Releasing lock... [2025-03-03 17:54:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:54:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:54:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:54:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:54:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:54:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:54:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:54:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:54:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:54:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:54:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:54:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:54:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:54:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:54:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:54:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:54:15] Production.INFO: call_cost start [2025-03-03 17:54:15] Production.INFO: call_cost end [2025-03-03 17:54:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:54:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:54:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:54:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:54:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:54:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:54:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:54:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:54:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:54:16] Production.INFO: ==12641== Releasing lock... [2025-03-03 17:54:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:54:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:54:18] Production.INFO: count ==4925 [2025-03-03 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:54:05 - End Time 2025-03-03 17:54:05 [2025-03-03 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600120', 'tblTempUsageDetail_20' ) start [2025-03-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600120', 'tblTempUsageDetail_20' ) end [2025-03-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600120', 'tblTempVendorCDR_20' ) start [2025-03-03 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600120', 'tblTempVendorCDR_20' ) end [2025-03-03 17:54:21] Production.INFO: ProcessCDR(1,14600120,1,1,2) [2025-03-03 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600120', 'tblTempUsageDetail_20' ) start [2025-03-03 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600120', 'tblTempUsageDetail_20' ) end [2025-03-03 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:54:24] Production.INFO: ==12649== Releasing lock... [2025-03-03 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:54:24] Production.INFO: 65 MB #Memory Used# [2025-03-03 22:55:02] Production.INFO: ==12735== Lock acquired, processing the job... [2025-03-03 22:55:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:55:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:55:02] Production.INFO: neon service started [2025-03-03 22:55:02] Production.INFO: neon service started [2025-03-03 22:55:02] Production.INFO: ==12735== Releasing lock... [2025-03-03 22:55:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:55:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:55:02] Production.INFO: ==12737== Lock acquired, processing the job... [2025-03-03 17:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:55:02] Production.INFO: ==12737== Releasing lock... [2025-03-03 17:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:55:02] Production.INFO: ==12739== Lock acquired, processing the job... [2025-03-03 22:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:55:03] Production.INFO: ==12739== Releasing lock... [2025-03-03 22:55:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:55:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:55:03] Production.INFO: ==12743== Lock acquired, processing the job... [2025-03-03 17:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:55:03] Production.INFO: ==12747== Lock acquired, processing the job... [2025-03-03 17:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:55:03] Production.INFO: ==12750== Lock acquired, processing the job... [2025-03-03 17:55:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:55:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:55:03] Production.INFO: Account Balance Start. [2025-03-03 17:55:03] Production.INFO: CreateAllLog Start [2025-03-03 17:55:03] Production.INFO: 117 [2025-03-03 17:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:03] Production.INFO: ==12741== Lock acquired, processing the job... [2025-03-03 17:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:55:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: ==12745== Lock acquired, processing the job... [2025-03-03 17:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:55:04] Production.INFO: ==12743== Releasing lock... [2025-03-03 17:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:55:04] Production.INFO: ==12752== Lock acquired, processing the job... [2025-03-03 17:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.ERROR: done [2025-03-03 17:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: count ==13 [2025-03-03 17:55:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:55:04] Production.INFO: count ==21 [2025-03-03 17:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600124') start [2025-03-03 17:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.ERROR: done [2025-03-03 17:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600124') end [2025-03-03 17:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:55:04] Production.INFO: 1 [2025-03-03 17:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: ==12752== Releasing lock... [2025-03-03 17:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:55:04] Production.INFO: Total Charge 0 [2025-03-03 17:55:04] Production.INFO: CreateAllLog End [2025-03-03 17:55:05] Production.INFO: Account Balance End. [2025-03-03 17:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:55:05] Production.INFO: ==12747== Releasing lock... [2025-03-03 17:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:55:05 [end_date_ymd] => 2025-03-03 17:55:05 [RateCDR] => 1 ) [2025-03-03 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:55:05' and `end` < '2025-03-03 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:55:14] Production.ERROR: CronJobId end10 [2025-03-03 17:55:14] Production.INFO: ==12745== Releasing lock... [2025-03-03 17:55:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:55:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:55:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:55:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:55:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:55:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:55:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:55:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:55:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:55:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:55:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:55:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:55:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:55:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:55:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:55:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:55:16] Production.INFO: call_cost start [2025-03-03 17:55:16] Production.INFO: call_cost end [2025-03-03 17:55:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:55:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:55:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:55:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:55:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:55:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:55:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:55:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:55:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:55:17] Production.INFO: ==12741== Releasing lock... [2025-03-03 17:55:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:55:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:55:18] Production.INFO: count ==4874 [2025-03-03 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:55:05 - End Time 2025-03-03 17:55:05 [2025-03-03 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600125', 'tblTempUsageDetail_20' ) start [2025-03-03 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600125', 'tblTempUsageDetail_20' ) end [2025-03-03 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600125', 'tblTempVendorCDR_20' ) start [2025-03-03 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600125', 'tblTempVendorCDR_20' ) end [2025-03-03 17:55:21] Production.INFO: ProcessCDR(1,14600125,1,1,2) [2025-03-03 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600125', 'tblTempUsageDetail_20' ) start [2025-03-03 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600125', 'tblTempUsageDetail_20' ) end [2025-03-03 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:55:26] Production.INFO: ==12750== Releasing lock... [2025-03-03 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-03 22:56:01] Production.INFO: ==12836== Lock acquired, processing the job... [2025-03-03 22:56:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:56:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:56:01] Production.INFO: neon service started [2025-03-03 22:56:01] Production.INFO: neon service started [2025-03-03 22:56:01] Production.INFO: ==12836== Releasing lock... [2025-03-03 22:56:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:56:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 22:56:02] Production.INFO: ==12841== Lock acquired, processing the job... [2025-03-03 22:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:56:02] Production.INFO: ==12841== Releasing lock... [2025-03-03 22:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:56:02] Production.INFO: 26 MB #Memory Used# [2025-03-03 17:56:02] Production.INFO: ==12839== Lock acquired, processing the job... [2025-03-03 17:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:56:02] Production.INFO: ==12839== Releasing lock... [2025-03-03 17:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:56:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:56:03] Production.INFO: ==12849== Lock acquired, processing the job... [2025-03-03 17:56:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:56:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:56:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:56:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:56:03] Production.INFO: ==12853== Lock acquired, processing the job... [2025-03-03 17:56:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:56:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:56:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:56:03] Production.INFO: ==12845== Lock acquired, processing the job... [2025-03-03 17:56:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:56:03] Production.INFO: ==12847== Lock acquired, processing the job... [2025-03-03 17:56:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:56:03] Production.INFO: ==12851== Lock acquired, processing the job... [2025-03-03 17:56:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:56:03] Production.INFO: ==12855== Lock acquired, processing the job... [2025-03-03 17:56:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:56:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:56:04] Production.INFO: Account Balance Start. [2025-03-03 17:56:04] Production.INFO: CreateAllLog Start [2025-03-03 17:56:04] Production.INFO: 117 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:56:04] Production.ERROR: done [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:56:04] Production.INFO: count ==13 [2025-03-03 17:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:56:04] Production.INFO: count ==21 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600129') start [2025-03-03 17:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600129') end [2025-03-03 17:56:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:56:04] Production.INFO: 1 [2025-03-03 17:56:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: ==12855== Releasing lock... [2025-03-03 17:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:56:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:56:04] Production.ERROR: done [2025-03-03 17:56:04] Production.INFO: ==12847== Releasing lock... [2025-03-03 17:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:56:05] Production.INFO: Total Charge 0 [2025-03-03 17:56:05] Production.INFO: CreateAllLog End [2025-03-03 17:56:05] Production.INFO: Account Balance End. [2025-03-03 17:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:56:05] Production.INFO: ==12851== Releasing lock... [2025-03-03 17:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:56:05 [end_date_ymd] => 2025-03-03 17:56:05 [RateCDR] => 1 ) [2025-03-03 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:56:05' and `end` < '2025-03-03 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:56:14] Production.ERROR: CronJobId end10 [2025-03-03 17:56:14] Production.INFO: ==12849== Releasing lock... [2025-03-03 17:56:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:56:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:56:15] Production.INFO: call_cost start [2025-03-03 17:56:15] Production.INFO: call_cost end [2025-03-03 17:56:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:56:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:56:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:56:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:56:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:56:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:56:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:56:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:56:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:56:16] Production.INFO: ==12845== Releasing lock... [2025-03-03 17:56:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:56:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:56:18] Production.INFO: count ==4840 [2025-03-03 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:56:05 - End Time 2025-03-03 17:56:05 [2025-03-03 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600130', 'tblTempUsageDetail_20' ) start [2025-03-03 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600130', 'tblTempUsageDetail_20' ) end [2025-03-03 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600130', 'tblTempVendorCDR_20' ) start [2025-03-03 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600130', 'tblTempVendorCDR_20' ) end [2025-03-03 17:56:20] Production.INFO: ProcessCDR(1,14600130,1,1,2) [2025-03-03 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600130', 'tblTempUsageDetail_20' ) start [2025-03-03 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600130', 'tblTempUsageDetail_20' ) end [2025-03-03 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:56:24] Production.INFO: ==12853== Releasing lock... [2025-03-03 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:56:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-03 22:57:02] Production.INFO: ==12940== Lock acquired, processing the job... [2025-03-03 22:57:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:57:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:57:02] Production.INFO: neon service started [2025-03-03 22:57:02] Production.INFO: neon service started [2025-03-03 22:57:02] Production.INFO: ==12940== Releasing lock... [2025-03-03 22:57:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:57:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:57:02] Production.INFO: ==12945== Lock acquired, processing the job... [2025-03-03 17:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:57:02] Production.INFO: ==12947== Lock acquired, processing the job... [2025-03-03 22:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:57:02] Production.INFO: ==12947== Releasing lock... [2025-03-03 22:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:57:03] Production.INFO: ==12945== Releasing lock... [2025-03-03 17:57:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:57:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:57:03] Production.INFO: ==12951== Lock acquired, processing the job... [2025-03-03 17:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:57:03] Production.INFO: ==12949== Lock acquired, processing the job... [2025-03-03 17:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:57:03] Production.INFO: ==12959== Lock acquired, processing the job... [2025-03-03 17:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:57:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:57:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:57:04] Production.INFO: count ==13 [2025-03-03 17:57:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:57:04] Production.INFO: count ==21 [2025-03-03 17:57:04] Production.INFO: ==12953== Lock acquired, processing the job... [2025-03-03 17:57:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600132') start [2025-03-03 17:57:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600132') end [2025-03-03 17:57:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:57:04] Production.INFO: 1 [2025-03-03 17:57:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:57:04] Production.INFO: ==12959== Releasing lock... [2025-03-03 17:57:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:57:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:57:04] Production.INFO: ==12957== Lock acquired, processing the job... [2025-03-03 17:57:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:57:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:57:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:57:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:57:04] Production.INFO: ==12955== Lock acquired, processing the job... [2025-03-03 17:57:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:57:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:57:04] Production.INFO: ==12951== Releasing lock... [2025-03-03 17:57:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:57:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:57:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:57:04] Production.INFO: Account Balance Start. [2025-03-03 17:57:04] Production.INFO: CreateAllLog Start [2025-03-03 17:57:04] Production.INFO: 117 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.ERROR: done [2025-03-03 17:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:04] Production.ERROR: done [2025-03-03 17:57:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Date 2025-03-03 [2025-03-03 17:57:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:57:05] Production.INFO: Total Charge 0 [2025-03-03 17:57:05] Production.INFO: CreateAllLog End [2025-03-03 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:57:05 [end_date_ymd] => 2025-03-03 17:57:05 [RateCDR] => 1 ) [2025-03-03 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:57:05' and `end` < '2025-03-03 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:57:06] Production.INFO: Account Balance End. [2025-03-03 17:57:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:57:06] Production.INFO: ==12955== Releasing lock... [2025-03-03 17:57:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:57:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:57:14] Production.ERROR: CronJobId end10 [2025-03-03 17:57:14] Production.INFO: ==12953== Releasing lock... [2025-03-03 17:57:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:57:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:57:15] Production.INFO: call_cost start [2025-03-03 17:57:15] Production.INFO: call_cost end [2025-03-03 17:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:57:16] Production.INFO: ==12949== Releasing lock... [2025-03-03 17:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:57:18] Production.INFO: count ==4807 [2025-03-03 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:57:05 - End Time 2025-03-03 17:57:05 [2025-03-03 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600135', 'tblTempUsageDetail_20' ) start [2025-03-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600135', 'tblTempUsageDetail_20' ) end [2025-03-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600135', 'tblTempVendorCDR_20' ) start [2025-03-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600135', 'tblTempVendorCDR_20' ) end [2025-03-03 17:57:21] Production.INFO: ProcessCDR(1,14600135,1,1,2) [2025-03-03 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600135', 'tblTempUsageDetail_20' ) start [2025-03-03 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600135', 'tblTempUsageDetail_20' ) end [2025-03-03 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:57:26] Production.INFO: ==12957== Releasing lock... [2025-03-03 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:57:26] Production.INFO: 64 MB #Memory Used# [2025-03-03 22:58:01] Production.INFO: ==13046== Lock acquired, processing the job... [2025-03-03 22:58:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:58:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:58:01] Production.INFO: neon service started [2025-03-03 22:58:01] Production.INFO: neon service started [2025-03-03 22:58:01] Production.INFO: ==13046== Releasing lock... [2025-03-03 22:58:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:58:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:58:01] Production.INFO: ==13049== Lock acquired, processing the job... [2025-03-03 17:58:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 17:58:02] Production.INFO: ==13049== Releasing lock... [2025-03-03 17:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 22:58:02] Production.INFO: ==13052== Lock acquired, processing the job... [2025-03-03 22:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:58:02] Production.INFO: ==13052== Releasing lock... [2025-03-03 22:58:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:58:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:58:03] Production.INFO: ==13065== Lock acquired, processing the job... [2025-03-03 17:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:58:03] Production.INFO: ==13063== Lock acquired, processing the job... [2025-03-03 17:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:58:03] Production.INFO: ==13055== Lock acquired, processing the job... [2025-03-03 17:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:58:03] Production.INFO: ==13057== Lock acquired, processing the job... [2025-03-03 17:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:58:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:58:03] Production.INFO: ==13059== Lock acquired, processing the job... [2025-03-03 17:58:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:58:03] Production.INFO: ==13061== Lock acquired, processing the job... [2025-03-03 17:58:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:58:03] Production.INFO: count ==13 [2025-03-03 17:58:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:58:03] Production.INFO: count ==21 [2025-03-03 17:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600136') start [2025-03-03 17:58:03] Production.INFO: Account Balance Start. [2025-03-03 17:58:03] Production.INFO: CreateAllLog Start [2025-03-03 17:58:03] Production.INFO: 117 [2025-03-03 17:58:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:58:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:58:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:58:03] Production.INFO: Date 2025-02-08 [2025-03-03 17:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600136') end [2025-03-03 17:58:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:58:03] Production.INFO: 1 [2025-03-03 17:58:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:58:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:58:03] Production.INFO: Date 2025-02-09 [2025-03-03 17:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:03] Production.INFO: ==13065== Releasing lock... [2025-03-03 17:58:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:58:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:58:03] Production.INFO: Date 2025-02-10 [2025-03-03 17:58:03] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.ERROR: done [2025-03-03 17:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.ERROR: done [2025-03-03 17:58:04] Production.INFO: ==13057== Releasing lock... [2025-03-03 17:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-27 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-02-28 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-03-01 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-03-02 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Date 2025-03-03 [2025-03-03 17:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:58:04] Production.INFO: Total Charge 0 [2025-03-03 17:58:04] Production.INFO: CreateAllLog End [2025-03-03 17:58:04] Production.INFO: Account Balance End. [2025-03-03 17:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 17:58:05] Production.INFO: ==13061== Releasing lock... [2025-03-03 17:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:58:05 [end_date_ymd] => 2025-03-03 17:58:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 14:58:05' and `end` < '2025-03-03 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-03-03 17:58:13] Production.ERROR: CronJobId end10 [2025-03-03 17:58:13] Production.INFO: ==13059== Releasing lock... [2025-03-03 17:58:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:58:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:58:16] Production.INFO: call_cost start [2025-03-03 17:58:16] Production.INFO: call_cost end [2025-03-03 17:58:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:58:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:58:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:58:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:58:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:58:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:58:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:58:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:58:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:58:17] Production.INFO: ==13055== Releasing lock... [2025-03-03 17:58:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:58:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:58:18] Production.INFO: count ==4784 [2025-03-03 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-03 14:58:05 - End Time 2025-03-03 17:58:05 [2025-03-03 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600140', 'tblTempUsageDetail_20' ) start [2025-03-03 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600140', 'tblTempUsageDetail_20' ) end [2025-03-03 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600140', 'tblTempVendorCDR_20' ) start [2025-03-03 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600140', 'tblTempVendorCDR_20' ) end [2025-03-03 17:58:20] Production.INFO: ProcessCDR(1,14600140,1,1,2) [2025-03-03 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600140', 'tblTempUsageDetail_20' ) start [2025-03-03 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600140', 'tblTempUsageDetail_20' ) end [2025-03-03 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:58:24] Production.INFO: ==13063== Releasing lock... [2025-03-03 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:58:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-03 22:59:02] Production.INFO: ==13150== Lock acquired, processing the job... [2025-03-03 22:59:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 22:59:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 22:59:02] Production.INFO: neon service started [2025-03-03 22:59:02] Production.INFO: neon service started [2025-03-03 22:59:02] Production.INFO: ==13150== Releasing lock... [2025-03-03 22:59:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 22:59:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 17:59:02] Production.INFO: ==13152== Lock acquired, processing the job... [2025-03-03 17:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 22:59:02] Production.INFO: ==13154== Lock acquired, processing the job... [2025-03-03 22:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 22:59:03] Production.INFO: ==13154== Releasing lock... [2025-03-03 22:59:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 22:59:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 17:59:03] Production.INFO: ==13152== Releasing lock... [2025-03-03 17:59:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 17:59:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 17:59:04] Production.INFO: ==13159== Lock acquired, processing the job... [2025-03-03 17:59:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 17:59:04] Production.INFO: ==13163== Lock acquired, processing the job... [2025-03-03 17:59:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 17:59:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 17:59:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 17:59:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 17:59:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 17:59:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 17:59:04] Production.INFO: ==13161== Lock acquired, processing the job... [2025-03-03 17:59:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 17:59:04] Production.INFO: ==13165== Lock acquired, processing the job... [2025-03-03 17:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 17:59:04] Production.INFO: ==13167== Lock acquired, processing the job... [2025-03-03 17:59:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 17:59:04] Production.INFO: Account Balance Start. [2025-03-03 17:59:04] Production.INFO: CreateAllLog Start [2025-03-03 17:59:04] Production.INFO: 117 [2025-03-03 17:59:04] Production.INFO: Date 2025-02-08 [2025-03-03 17:59:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 17:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:04] Production.INFO: ==13169== Lock acquired, processing the job... [2025-03-03 17:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 17:59:04] Production.INFO: Date 2025-02-09 [2025-03-03 17:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:04] Production.INFO: Date 2025-02-10 [2025-03-03 17:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-11 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-12 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-13 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-14 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: ==13161== Releasing lock... [2025-03-03 17:59:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 17:59:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 17:59:05] Production.INFO: Date 2025-02-15 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:59:05] Production.INFO: count ==13 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-16 [2025-03-03 17:59:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 17:59:05] Production.INFO: count ==21 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-17 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600144') start [2025-03-03 17:59:05] Production.ERROR: done [2025-03-03 17:59:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-18 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-19 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600144') end [2025-03-03 17:59:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 17:59:05] Production.INFO: 1 [2025-03-03 17:59:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 17:59:05] Production.INFO: Date 2025-02-20 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: ==13169== Releasing lock... [2025-03-03 17:59:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 17:59:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 17:59:05] Production.ERROR: done [2025-03-03 17:59:05] Production.INFO: Date 2025-02-21 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-22 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-23 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-24 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-25 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-26 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-27 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-02-28 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-03-01 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:05] Production.INFO: Date 2025-03-02 [2025-03-03 17:59:05] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:06] Production.INFO: Date 2025-03-03 [2025-03-03 17:59:06] Production.INFO: Reseller ==> 0 [2025-03-03 17:59:06] Production.INFO: Total Charge 0 [2025-03-03 17:59:06] Production.INFO: CreateAllLog End [2025-03-03 17:59:06] Production.INFO: Account Balance End. [2025-03-03 17:59:06] Production.ERROR: CronJobId end 12 [2025-03-03 17:59:06] Production.INFO: ==13165== Releasing lock... [2025-03-03 17:59:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 17:59:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 14:59:06 [end_date_ymd] => 2025-03-03 17:59:06 [RateCDR] => 1 ) [2025-03-03 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 14:59:06' and `end` < '2025-03-03 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 17:59:15] Production.ERROR: CronJobId end10 [2025-03-03 17:59:15] Production.INFO: ==13163== Releasing lock... [2025-03-03 17:59:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 17:59:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 17:59:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 17:59:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 17:59:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 17:59:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 17:59:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 17:59:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 17:59:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 17:59:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 17:59:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 17:59:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 17:59:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 17:59:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 17:59:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 17:59:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 17:59:16] Production.INFO: call_cost start [2025-03-03 17:59:16] Production.INFO: call_cost end [2025-03-03 17:59:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 17:59:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 17:59:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 17:59:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 17:59:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 17:59:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 17:59:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 17:59:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 17:59:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 17:59:17] Production.INFO: ==13159== Releasing lock... [2025-03-03 17:59:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 17:59:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 17:59:19] Production.INFO: count ==4782 [2025-03-03 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-03 14:59:06 - End Time 2025-03-03 17:59:06 [2025-03-03 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600145', 'tblTempUsageDetail_20' ) start [2025-03-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600145', 'tblTempUsageDetail_20' ) end [2025-03-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600145', 'tblTempVendorCDR_20' ) start [2025-03-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600145', 'tblTempVendorCDR_20' ) end [2025-03-03 17:59:21] Production.INFO: ProcessCDR(1,14600145,1,1,2) [2025-03-03 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600145', 'tblTempUsageDetail_20' ) start [2025-03-03 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600145', 'tblTempUsageDetail_20' ) end [2025-03-03 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 17:59:25] Production.INFO: ==13167== Releasing lock... [2025-03-03 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 17:59:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-03 23:00:01] Production.INFO: ==13252== Lock acquired, processing the job... [2025-03-03 23:00:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:00:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:00:01] Production.INFO: neon service started [2025-03-03 23:00:01] Production.INFO: neon service started [2025-03-03 23:00:01] Production.INFO: ==13252== Releasing lock... [2025-03-03 23:00:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:00:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:00:02] Production.INFO: ==13254== Lock acquired, processing the job... [2025-03-03 18:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:00:02] Production.INFO: ==13256== Lock acquired, processing the job... [2025-03-03 23:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:00:02] Production.INFO: ==13256== Releasing lock... [2025-03-03 23:00:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:00:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:00:02] Production.INFO: ==13254== Releasing lock... [2025-03-03 18:00:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:00:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:00:03] Production.INFO: ==13258== Lock acquired, processing the job... [2025-03-03 18:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 18:00:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 18:00:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 18:00:03] Production.INFO: ==13258== Releasing lock... [2025-03-03 18:00:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 18:00:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:00:03] Production.INFO: ==13266== Lock acquired, processing the job... [2025-03-03 18:00:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:00:04] Production.INFO: ==13260== Lock acquired, processing the job... [2025-03-03 18:00:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:00:04] Production.INFO: ==13271== Lock acquired, processing the job... [2025-03-03 18:00:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 18:00:04] Production.INFO: Account Balance Start. [2025-03-03 18:00:04] Production.INFO: CreateAllLog Start [2025-03-03 18:00:04] Production.INFO: 117 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:00:04] Production.INFO: ==13273== Lock acquired, processing the job... [2025-03-03 18:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:00:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:00:04] Production.INFO: ==13262== Lock acquired, processing the job... [2025-03-03 18:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: ==13264== Lock acquired, processing the job... [2025-03-03 18:00:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:00:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: ==13269== Lock acquired, processing the job... [2025-03-03 18:00:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:00:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:00:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:00:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:00:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:00:04] Production.INFO: count ==13 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:00:04] Production.INFO: count ==21 [2025-03-03 18:00:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600148') start [2025-03-03 18:00:04] Production.ERROR: done [2025-03-03 18:00:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 18:00:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600150', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 18:00:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600148') end [2025-03-03 18:00:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:00:04] Production.INFO: 1 [2025-03-03 18:00:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:00:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: ==13273== Releasing lock... [2025-03-03 18:00:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:00:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:00:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.ERROR: done [2025-03-03 18:00:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: ==13262== Releasing lock... [2025-03-03 18:00:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:00:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:00:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:00:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.ERROR: done [2025-03-03 18:00:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:00:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:00:05] Production.INFO: Total Charge 0 [2025-03-03 18:00:05] Production.INFO: CreateAllLog End [2025-03-03 18:00:05] Production.INFO: Account Balance End. [2025-03-03 18:00:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:00:05] Production.INFO: ==13266== Releasing lock... [2025-03-03 18:00:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:00:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:00:06 [end_date_ymd] => 2025-03-03 18:00:06 [RateCDR] => 1 ) [2025-03-03 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:00:06' and `end` < '2025-03-03 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:00:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600150', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 18:00:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 18:00:09] Production.INFO: ProcessCDR(1,14600150,1,1,2) [2025-03-03 18:00:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600150,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:00:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600150,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:00:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:00:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:00:09] Production.INFO: ==13271== Releasing lock... [2025-03-03 18:00:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 18:00:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 18:00:17] Production.ERROR: CronJobId end10 [2025-03-03 18:00:17] Production.INFO: ==13264== Releasing lock... [2025-03-03 18:00:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:00:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:00:19] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:00:19] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:00:19] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:00:19] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:00:19] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:00:19] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:00:19] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:00:19] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:00:19] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:00:19] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:00:19] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:00:19] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:00:19] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:00:19] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:00:19] Production.INFO: count ==4750 [2025-03-03 18:00:19] Production.INFO: call_cost start [2025-03-03 18:00:19] Production.INFO: call_cost end [2025-03-03 18:00:20] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:00:20] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:00:20] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:00:20] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:00:20] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:00:20] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:00:20] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:00:20] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:00:20] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:00:20] Production.INFO: ==13260== Releasing lock... [2025-03-03 18:00:20] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:00:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:00:06 - End Time 2025-03-03 18:00:06 [2025-03-03 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600151', 'tblTempUsageDetail_20' ) start [2025-03-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600151', 'tblTempUsageDetail_20' ) end [2025-03-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600151', 'tblTempVendorCDR_20' ) start [2025-03-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600151', 'tblTempVendorCDR_20' ) end [2025-03-03 18:00:21] Production.INFO: ProcessCDR(1,14600151,1,1,2) [2025-03-03 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600151', 'tblTempUsageDetail_20' ) start [2025-03-03 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600151', 'tblTempUsageDetail_20' ) end [2025-03-03 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:00:27] Production.INFO: ==13269== Releasing lock... [2025-03-03 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:00:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-03 23:01:02] Production.INFO: ==13356== Lock acquired, processing the job... [2025-03-03 23:01:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:01:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:01:02] Production.INFO: neon service started [2025-03-03 23:01:02] Production.INFO: neon service started [2025-03-03 23:01:02] Production.INFO: ==13356== Releasing lock... [2025-03-03 23:01:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:01:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:01:02] Production.INFO: ==13369== Lock acquired, processing the job... [2025-03-03 23:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:01:02] Production.INFO: ==13369== Releasing lock... [2025-03-03 23:01:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:01:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:01:02] Production.INFO: ==13367== Lock acquired, processing the job... [2025-03-03 18:01:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:01:03] Production.INFO: ==13367== Releasing lock... [2025-03-03 18:01:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:01:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:01:04] Production.INFO: ==13374== Lock acquired, processing the job... [2025-03-03 18:01:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:01:04] Production.INFO: ==13376== Lock acquired, processing the job... [2025-03-03 18:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:01:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:01:04] Production.INFO: ==13378== Lock acquired, processing the job... [2025-03-03 18:01:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:01:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:01:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:01:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:01:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:01:04] Production.INFO: ==13376== Releasing lock... [2025-03-03 18:01:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:01:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:01:04] Production.INFO: ==13382== Lock acquired, processing the job... [2025-03-03 18:01:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:01:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:01:04] Production.INFO: ==13380== Lock acquired, processing the job... [2025-03-03 18:01:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:01:04] Production.INFO: ==13384== Lock acquired, processing the job... [2025-03-03 18:01:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:01:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:01:04] Production.INFO: count ==13 [2025-03-03 18:01:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:01:04] Production.INFO: count ==21 [2025-03-03 18:01:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600154') start [2025-03-03 18:01:04] Production.INFO: Account Balance Start. [2025-03-03 18:01:04] Production.INFO: CreateAllLog Start [2025-03-03 18:01:04] Production.INFO: 117 [2025-03-03 18:01:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:01:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-09 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600154') end [2025-03-03 18:01:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:01:05] Production.INFO: 1 [2025-03-03 18:01:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:01:05] Production.INFO: Date 2025-02-10 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-11 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: ==13384== Releasing lock... [2025-03-03 18:01:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:01:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:01:05] Production.ERROR: done [2025-03-03 18:01:05] Production.INFO: Date 2025-02-12 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-13 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.ERROR: done [2025-03-03 18:01:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:01:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:01:05] Production.INFO: Total Charge 0 [2025-03-03 18:01:05] Production.INFO: CreateAllLog End [2025-03-03 18:01:06] Production.INFO: Account Balance End. [2025-03-03 18:01:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:01:06] Production.INFO: ==13380== Releasing lock... [2025-03-03 18:01:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:01:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:01:06 [end_date_ymd] => 2025-03-03 18:01:06 [RateCDR] => 1 ) [2025-03-03 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:01:06' and `end` < '2025-03-03 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:01:15] Production.ERROR: CronJobId end10 [2025-03-03 18:01:15] Production.INFO: ==13378== Releasing lock... [2025-03-03 18:01:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:01:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:01:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:01:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:01:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:01:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:01:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:01:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:01:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:01:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:01:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:01:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:01:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:01:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:01:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:01:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:01:16] Production.INFO: call_cost start [2025-03-03 18:01:16] Production.INFO: call_cost end [2025-03-03 18:01:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:01:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:01:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:01:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:01:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:01:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:01:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:01:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:01:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:01:17] Production.INFO: ==13374== Releasing lock... [2025-03-03 18:01:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:01:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:01:19] Production.INFO: count ==4674 [2025-03-03 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:01:06 - End Time 2025-03-03 18:01:06 [2025-03-03 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600156', 'tblTempUsageDetail_20' ) start [2025-03-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600156', 'tblTempUsageDetail_20' ) end [2025-03-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600156', 'tblTempVendorCDR_20' ) start [2025-03-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600156', 'tblTempVendorCDR_20' ) end [2025-03-03 18:01:21] Production.INFO: ProcessCDR(1,14600156,1,1,2) [2025-03-03 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600156', 'tblTempUsageDetail_20' ) start [2025-03-03 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600156', 'tblTempUsageDetail_20' ) end [2025-03-03 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:01:26] Production.INFO: ==13382== Releasing lock... [2025-03-03 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:01:26] Production.INFO: 63 MB #Memory Used# [2025-03-03 23:02:02] Production.INFO: ==13466== Lock acquired, processing the job... [2025-03-03 23:02:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:02:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:02:02] Production.INFO: neon service started [2025-03-03 23:02:02] Production.INFO: neon service started [2025-03-03 23:02:02] Production.INFO: ==13466== Releasing lock... [2025-03-03 23:02:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:02:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:02:02] Production.INFO: ==13468== Lock acquired, processing the job... [2025-03-03 18:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:02:02] Production.INFO: ==13470== Lock acquired, processing the job... [2025-03-03 23:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:02:02] Production.INFO: ==13468== Releasing lock... [2025-03-03 18:02:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:02:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:02:02] Production.INFO: ==13470== Releasing lock... [2025-03-03 23:02:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:02:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:02:03] Production.INFO: ==13472== Lock acquired, processing the job... [2025-03-03 18:02:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:02:03] Production.INFO: ==13474== Lock acquired, processing the job... [2025-03-03 18:02:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:02:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:02:03] Production.INFO: ==13478== Lock acquired, processing the job... [2025-03-03 18:02:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:02:04] Production.INFO: ==13476== Lock acquired, processing the job... [2025-03-03 18:02:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:02:04] Production.INFO: ==13483== Lock acquired, processing the job... [2025-03-03 18:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:02:04] Production.INFO: ==13481== Lock acquired, processing the job... [2025-03-03 18:02:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:02:04] Production.INFO: Account Balance Start. [2025-03-03 18:02:04] Production.INFO: CreateAllLog Start [2025-03-03 18:02:04] Production.INFO: 117 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:02:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:02:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:02:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:02:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:02:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:02:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: count ==13 [2025-03-03 18:02:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:02:04] Production.INFO: count ==21 [2025-03-03 18:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600160') start [2025-03-03 18:02:04] Production.INFO: ==13474== Releasing lock... [2025-03-03 18:02:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:02:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:02:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600160') end [2025-03-03 18:02:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:02:04] Production.INFO: 1 [2025-03-03 18:02:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:02:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.ERROR: done [2025-03-03 18:02:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:02:04] Production.INFO: ==13483== Releasing lock... [2025-03-03 18:02:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:02:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:02:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.ERROR: done [2025-03-03 18:02:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:02:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:02:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:02:05] Production.INFO: Total Charge 0 [2025-03-03 18:02:05] Production.INFO: CreateAllLog End [2025-03-03 18:02:05] Production.INFO: Account Balance End. [2025-03-03 18:02:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:02:05] Production.INFO: ==13478== Releasing lock... [2025-03-03 18:02:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:02:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:02:05 [end_date_ymd] => 2025-03-03 18:02:05 [RateCDR] => 1 ) [2025-03-03 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:02:05' and `end` < '2025-03-03 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:02:18] Production.INFO: count ==4660 [2025-03-03 18:02:20] Production.ERROR: CronJobId end10 [2025-03-03 18:02:20] Production.INFO: ==13476== Releasing lock... [2025-03-03 18:02:20] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:02:20] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:02:20] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:02:20] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:02:20] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:02:20] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:02:20] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:02:20] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:02:20] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:02:20] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:02:20] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:02:20] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:02:20] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:02:20] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:02:20] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:02:20] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:02:21] Production.INFO: call_cost start [2025-03-03 18:02:21] Production.INFO: call_cost end [2025-03-03 18:02:22] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:02:22] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:02:22] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:02:22] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:02:22] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:02:22] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:02:22] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:02:22] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:02:22] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:02:22] Production.INFO: ==13472== Releasing lock... [2025-03-03 18:02:22] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:02:22] Production.ERROR: pbx CDR StartTime 2025-03-03 15:02:05 - End Time 2025-03-03 18:02:05 [2025-03-03 18:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600161', 'tblTempUsageDetail_20' ) start [2025-03-03 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600161', 'tblTempUsageDetail_20' ) end [2025-03-03 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600161', 'tblTempVendorCDR_20' ) start [2025-03-03 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600161', 'tblTempVendorCDR_20' ) end [2025-03-03 18:02:22] Production.INFO: ProcessCDR(1,14600161,1,1,2) [2025-03-03 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600161', 'tblTempUsageDetail_20' ) start [2025-03-03 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600161', 'tblTempUsageDetail_20' ) end [2025-03-03 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:02:26] Production.INFO: ==13481== Releasing lock... [2025-03-03 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:02:26] Production.INFO: 63 MB #Memory Used# [2025-03-03 23:03:01] Production.INFO: ==13567== Lock acquired, processing the job... [2025-03-03 23:03:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:03:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:03:01] Production.INFO: neon service started [2025-03-03 23:03:01] Production.INFO: neon service started [2025-03-03 23:03:01] Production.INFO: ==13567== Releasing lock... [2025-03-03 23:03:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:03:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:03:01] Production.INFO: ==13569== Lock acquired, processing the job... [2025-03-03 18:03:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:03:02] Production.INFO: ==13569== Releasing lock... [2025-03-03 18:03:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:03:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:03:02] Production.INFO: ==13572== Lock acquired, processing the job... [2025-03-03 23:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:03:02] Production.INFO: ==13572== Releasing lock... [2025-03-03 23:03:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:03:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:03:03] Production.INFO: ==13574== Lock acquired, processing the job... [2025-03-03 18:03:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:03:03] Production.INFO: ==13584== Lock acquired, processing the job... [2025-03-03 18:03:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:03:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:03:03] Production.INFO: ==13576== Lock acquired, processing the job... [2025-03-03 18:03:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:03:03] Production.INFO: ==13578== Lock acquired, processing the job... [2025-03-03 18:03:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:03:03] Production.INFO: ==13580== Lock acquired, processing the job... [2025-03-03 18:03:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:03:03] Production.INFO: ==13582== Lock acquired, processing the job... [2025-03-03 18:03:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:03:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:03:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:03:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:03:03] Production.INFO: Account Balance Start. [2025-03-03 18:03:03] Production.INFO: CreateAllLog Start [2025-03-03 18:03:03] Production.INFO: 117 [2025-03-03 18:03:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:03:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:03:03] Production.INFO: count ==13 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:03:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:03:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.INFO: count ==21 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600163') start [2025-03-03 18:03:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600163') end [2025-03-03 18:03:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:03:03] Production.INFO: 1 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:03:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:03:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.ERROR: done [2025-03-03 18:03:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: ==13584== Releasing lock... [2025-03-03 18:03:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:03:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:03:04] Production.INFO: ==13576== Releasing lock... [2025-03-03 18:03:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:03:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:03:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.ERROR: done [2025-03-03 18:03:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:03:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:03:04] Production.INFO: Total Charge 0 [2025-03-03 18:03:04] Production.INFO: CreateAllLog End [2025-03-03 18:03:04] Production.INFO: Account Balance End. [2025-03-03 18:03:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:03:04] Production.INFO: ==13580== Releasing lock... [2025-03-03 18:03:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:03:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:03:05 [end_date_ymd] => 2025-03-03 18:03:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:03:05' and `end` < '2025-03-03 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-03-03 18:03:13] Production.ERROR: CronJobId end10 [2025-03-03 18:03:13] Production.INFO: ==13578== Releasing lock... [2025-03-03 18:03:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:03:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:03:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:03:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:03:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:03:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:03:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:03:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:03:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:03:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:03:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:03:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:03:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:03:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:03:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:03:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:03:15] Production.INFO: call_cost start [2025-03-03 18:03:15] Production.INFO: call_cost end [2025-03-03 18:03:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:03:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:03:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:03:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:03:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:03:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:03:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:03:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:03:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:03:16] Production.INFO: ==13574== Releasing lock... [2025-03-03 18:03:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:03:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:03:18] Production.INFO: count ==4643 [2025-03-03 18:03:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:03:05 - End Time 2025-03-03 18:03:05 [2025-03-03 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600166', 'tblTempUsageDetail_20' ) start [2025-03-03 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600166', 'tblTempUsageDetail_20' ) end [2025-03-03 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600166', 'tblTempVendorCDR_20' ) start [2025-03-03 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600166', 'tblTempVendorCDR_20' ) end [2025-03-03 18:03:20] Production.INFO: ProcessCDR(1,14600166,1,1,2) [2025-03-03 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600166', 'tblTempUsageDetail_20' ) start [2025-03-03 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600166', 'tblTempUsageDetail_20' ) end [2025-03-03 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:03:25] Production.INFO: ==13582== Releasing lock... [2025-03-03 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:03:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-03 23:04:01] Production.INFO: ==13676== Lock acquired, processing the job... [2025-03-03 23:04:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:04:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:04:01] Production.INFO: neon service started [2025-03-03 23:04:01] Production.INFO: neon service started [2025-03-03 23:04:01] Production.INFO: ==13676== Releasing lock... [2025-03-03 23:04:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:04:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:04:02] Production.INFO: ==13678== Lock acquired, processing the job... [2025-03-03 18:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:04:02] Production.INFO: ==13678== Releasing lock... [2025-03-03 18:04:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:04:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:04:02] Production.INFO: ==13680== Lock acquired, processing the job... [2025-03-03 23:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:04:02] Production.INFO: ==13680== Releasing lock... [2025-03-03 23:04:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:04:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:04:03] Production.INFO: ==13688== Lock acquired, processing the job... [2025-03-03 18:04:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:04:03] Production.INFO: ==13682== Lock acquired, processing the job... [2025-03-03 18:04:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:04:03] Production.INFO: ==13692== Lock acquired, processing the job... [2025-03-03 18:04:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:04:03] Production.INFO: Account Balance Start. [2025-03-03 18:04:03] Production.INFO: CreateAllLog Start [2025-03-03 18:04:03] Production.INFO: 117 [2025-03-03 18:04:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:04:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:04:03] Production.INFO: count ==13 [2025-03-03 18:04:03] Production.INFO: ==13684== Lock acquired, processing the job... [2025-03-03 18:04:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:04:03] Production.INFO: ==13686== Lock acquired, processing the job... [2025-03-03 18:04:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:04:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:04:03] Production.INFO: count ==21 [2025-03-03 18:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600169') start [2025-03-03 18:04:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:03] Production.INFO: ==13690== Lock acquired, processing the job... [2025-03-03 18:04:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:04:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:04:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:04:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:04:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:04:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600169') end [2025-03-03 18:04:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:04:03] Production.INFO: 1 [2025-03-03 18:04:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:04:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:04:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:04:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: ==13692== Releasing lock... [2025-03-03 18:04:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:04:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:04:04] Production.INFO: ==13684== Releasing lock... [2025-03-03 18:04:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:04:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:04:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.ERROR: done [2025-03-03 18:04:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.ERROR: done [2025-03-03 18:04:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:04:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:04:04] Production.INFO: Total Charge 0 [2025-03-03 18:04:04] Production.INFO: CreateAllLog End [2025-03-03 18:04:05] Production.INFO: Account Balance End. [2025-03-03 18:04:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:04:05] Production.INFO: ==13688== Releasing lock... [2025-03-03 18:04:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:04:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:04:05 [end_date_ymd] => 2025-03-03 18:04:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:04:05' and `end` < '2025-03-03 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-03-03 18:04:15] Production.ERROR: CronJobId end10 [2025-03-03 18:04:15] Production.INFO: ==13686== Releasing lock... [2025-03-03 18:04:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:04:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:04:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:04:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:04:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:04:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:04:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:04:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:04:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:04:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:04:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:04:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:04:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:04:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:04:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:04:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:04:16] Production.INFO: call_cost start [2025-03-03 18:04:16] Production.INFO: call_cost end [2025-03-03 18:04:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:04:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:04:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:04:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:04:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:04:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:04:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:04:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:04:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:04:17] Production.INFO: ==13682== Releasing lock... [2025-03-03 18:04:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:04:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:04:18] Production.INFO: count ==4638 [2025-03-03 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:04:05 - End Time 2025-03-03 18:04:05 [2025-03-03 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600171', 'tblTempUsageDetail_20' ) start [2025-03-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600171', 'tblTempUsageDetail_20' ) end [2025-03-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600171', 'tblTempVendorCDR_20' ) start [2025-03-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600171', 'tblTempVendorCDR_20' ) end [2025-03-03 18:04:21] Production.INFO: ProcessCDR(1,14600171,1,1,2) [2025-03-03 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600171', 'tblTempUsageDetail_20' ) start [2025-03-03 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600171', 'tblTempUsageDetail_20' ) end [2025-03-03 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:04:26] Production.INFO: ==13690== Releasing lock... [2025-03-03 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:04:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-03 23:05:01] Production.INFO: ==13776== Lock acquired, processing the job... [2025-03-03 23:05:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:05:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:05:01] Production.INFO: neon service started [2025-03-03 23:05:01] Production.INFO: neon service started [2025-03-03 23:05:01] Production.INFO: ==13776== Releasing lock... [2025-03-03 23:05:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:05:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:05:01] Production.INFO: ==13778== Lock acquired, processing the job... [2025-03-03 18:05:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:05:02] Production.INFO: ==13780== Lock acquired, processing the job... [2025-03-03 23:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:05:02] Production.INFO: ==13780== Releasing lock... [2025-03-03 23:05:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:05:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:05:02] Production.INFO: ==13778== Releasing lock... [2025-03-03 18:05:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:05:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:05:03] Production.INFO: ==13783== Lock acquired, processing the job... [2025-03-03 18:05:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:05:03] Production.INFO: ==13793== Lock acquired, processing the job... [2025-03-03 18:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:05:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:05:03] Production.INFO: ==13787== Lock acquired, processing the job... [2025-03-03 18:05:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:05:03] Production.INFO: ==13789== Lock acquired, processing the job... [2025-03-03 18:05:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:05:03] Production.INFO: ==13785== Lock acquired, processing the job... [2025-03-03 18:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:05:03] Production.INFO: ==13791== Lock acquired, processing the job... [2025-03-03 18:05:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:05:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:05:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:05:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:05:03] Production.INFO: count ==13 [2025-03-03 18:05:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:05:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:05:03] Production.INFO: count ==21 [2025-03-03 18:05:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:05:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600173') start [2025-03-03 18:05:03] Production.INFO: Account Balance Start. [2025-03-03 18:05:03] Production.INFO: CreateAllLog Start [2025-03-03 18:05:03] Production.INFO: 117 [2025-03-03 18:05:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:03] Production.INFO: ==13785== Releasing lock... [2025-03-03 18:05:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:05:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:05:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600173') end [2025-03-03 18:05:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:05:03] Production.INFO: 1 [2025-03-03 18:05:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:05:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:03] Production.INFO: ==13793== Releasing lock... [2025-03-03 18:05:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:05:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:05:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:05:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.ERROR: done [2025-03-03 18:05:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.ERROR: done [2025-03-03 18:05:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:05:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:05:05] Production.INFO: Total Charge 0 [2025-03-03 18:05:05] Production.INFO: CreateAllLog End [2025-03-03 18:05:05] Production.INFO: Account Balance End. [2025-03-03 18:05:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:05:05] Production.INFO: ==13789== Releasing lock... [2025-03-03 18:05:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:05:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:05:05 [end_date_ymd] => 2025-03-03 18:05:05 [RateCDR] => 1 ) [2025-03-03 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:05:05' and `end` < '2025-03-03 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:05:13] Production.ERROR: CronJobId end10 [2025-03-03 18:05:13] Production.INFO: ==13787== Releasing lock... [2025-03-03 18:05:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:05:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:05:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:05:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:05:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:05:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:05:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:05:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:05:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:05:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:05:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:05:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:05:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:05:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:05:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:05:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:05:15] Production.INFO: call_cost start [2025-03-03 18:05:15] Production.INFO: call_cost end [2025-03-03 18:05:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:05:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:05:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:05:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:05:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:05:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:05:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:05:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:05:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:05:16] Production.INFO: ==13783== Releasing lock... [2025-03-03 18:05:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:05:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:05:18] Production.INFO: count ==4615 [2025-03-03 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:05:05 - End Time 2025-03-03 18:05:05 [2025-03-03 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600176', 'tblTempUsageDetail_20' ) start [2025-03-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600176', 'tblTempUsageDetail_20' ) end [2025-03-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600176', 'tblTempVendorCDR_20' ) start [2025-03-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600176', 'tblTempVendorCDR_20' ) end [2025-03-03 18:05:20] Production.INFO: ProcessCDR(1,14600176,1,1,2) [2025-03-03 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600176', 'tblTempUsageDetail_20' ) start [2025-03-03 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600176', 'tblTempUsageDetail_20' ) end [2025-03-03 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:05:25] Production.INFO: ==13791== Releasing lock... [2025-03-03 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:05:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-03 23:06:01] Production.INFO: ==13877== Lock acquired, processing the job... [2025-03-03 23:06:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:06:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:06:01] Production.INFO: neon service started [2025-03-03 23:06:01] Production.INFO: neon service started [2025-03-03 23:06:01] Production.INFO: ==13877== Releasing lock... [2025-03-03 23:06:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:06:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:06:02] Production.INFO: ==13879== Lock acquired, processing the job... [2025-03-03 18:06:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:06:02] Production.INFO: ==13881== Lock acquired, processing the job... [2025-03-03 23:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:06:02] Production.INFO: ==13881== Releasing lock... [2025-03-03 23:06:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:06:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:06:03] Production.INFO: ==13879== Releasing lock... [2025-03-03 18:06:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:06:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:06:04] Production.INFO: ==13894== Lock acquired, processing the job... [2025-03-03 18:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:06:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:06:04] Production.INFO: ==13896== Lock acquired, processing the job... [2025-03-03 18:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:06:04] Production.INFO: ==13886== Lock acquired, processing the job... [2025-03-03 18:06:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:06:04] Production.INFO: ==13888== Lock acquired, processing the job... [2025-03-03 18:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:06:04] Production.INFO: ==13890== Lock acquired, processing the job... [2025-03-03 18:06:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:06:04] Production.INFO: ==13892== Lock acquired, processing the job... [2025-03-03 18:06:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:06:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:06:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:06:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:06:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:06:04] Production.INFO: Account Balance Start. [2025-03-03 18:06:04] Production.INFO: CreateAllLog Start [2025-03-03 18:06:04] Production.INFO: 117 [2025-03-03 18:06:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:06:04] Production.INFO: count ==13 [2025-03-03 18:06:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:06:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:06:04] Production.INFO: count ==21 [2025-03-03 18:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600177') start [2025-03-03 18:06:04] Production.ERROR: done [2025-03-03 18:06:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:06:04] Production.INFO: ==13888== Releasing lock... [2025-03-03 18:06:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:06:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:06:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600177') end [2025-03-03 18:06:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:06:04] Production.INFO: 1 [2025-03-03 18:06:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:06:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: ==13896== Releasing lock... [2025-03-03 18:06:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:06:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:06:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.ERROR: done [2025-03-03 18:06:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:06:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:06:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:06:05] Production.INFO: Total Charge 0 [2025-03-03 18:06:05] Production.INFO: CreateAllLog End [2025-03-03 18:06:05] Production.INFO: Account Balance End. [2025-03-03 18:06:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:06:05] Production.INFO: ==13892== Releasing lock... [2025-03-03 18:06:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:06:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:06:06 [end_date_ymd] => 2025-03-03 18:06:06 [RateCDR] => 1 ) [2025-03-03 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:06:06' and `end` < '2025-03-03 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:06:14] Production.ERROR: CronJobId end10 [2025-03-03 18:06:14] Production.INFO: ==13890== Releasing lock... [2025-03-03 18:06:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:06:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:06:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:06:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:06:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:06:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:06:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:06:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:06:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:06:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:06:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:06:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:06:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:06:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:06:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:06:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:06:15] Production.INFO: call_cost start [2025-03-03 18:06:15] Production.INFO: call_cost end [2025-03-03 18:06:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:06:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:06:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:06:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:06:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:06:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:06:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:06:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:06:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:06:16] Production.INFO: ==13886== Releasing lock... [2025-03-03 18:06:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:06:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:06:19] Production.INFO: count ==4603 [2025-03-03 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:06:06 - End Time 2025-03-03 18:06:06 [2025-03-03 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600181', 'tblTempUsageDetail_20' ) start [2025-03-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600181', 'tblTempUsageDetail_20' ) end [2025-03-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600181', 'tblTempVendorCDR_20' ) start [2025-03-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600181', 'tblTempVendorCDR_20' ) end [2025-03-03 18:06:21] Production.INFO: ProcessCDR(1,14600181,1,1,2) [2025-03-03 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600181', 'tblTempUsageDetail_20' ) start [2025-03-03 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600181', 'tblTempUsageDetail_20' ) end [2025-03-03 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:06:24] Production.INFO: ==13894== Releasing lock... [2025-03-03 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:06:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-03 23:07:01] Production.INFO: ==14019== Lock acquired, processing the job... [2025-03-03 23:07:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:07:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:07:01] Production.INFO: neon service started [2025-03-03 23:07:01] Production.INFO: neon service started [2025-03-03 23:07:01] Production.INFO: ==14019== Releasing lock... [2025-03-03 23:07:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:07:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:07:01] Production.INFO: ==14023== Lock acquired, processing the job... [2025-03-03 23:07:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:07:01] Production.INFO: ==14023== Releasing lock... [2025-03-03 23:07:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:07:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:07:01] Production.INFO: ==14021== Lock acquired, processing the job... [2025-03-03 18:07:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:07:02] Production.INFO: ==14021== Releasing lock... [2025-03-03 18:07:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:07:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:07:02] Production.INFO: ==14025== Lock acquired, processing the job... [2025-03-03 18:07:02] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:07:02] Production.INFO: ==14027== Lock acquired, processing the job... [2025-03-03 18:07:02] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:07:02] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:07:03] Production.INFO: ==14027== Releasing lock... [2025-03-03 18:07:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:07:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:07:03] Production.INFO: ==14031== Lock acquired, processing the job... [2025-03-03 18:07:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:07:03] Production.INFO: ==14029== Lock acquired, processing the job... [2025-03-03 18:07:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:07:03] Production.INFO: Account Balance Start. [2025-03-03 18:07:03] Production.INFO: CreateAllLog Start [2025-03-03 18:07:03] Production.INFO: 117 [2025-03-03 18:07:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:07:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:07:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:07:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: ==14033== Lock acquired, processing the job... [2025-03-03 18:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:07:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: ==14036== Lock acquired, processing the job... [2025-03-03 18:07:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:07:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:07:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:07:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:07:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: count ==13 [2025-03-03 18:07:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:07:03] Production.INFO: count ==21 [2025-03-03 18:07:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600185') start [2025-03-03 18:07:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:07:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.ERROR: done [2025-03-03 18:07:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600185') end [2025-03-03 18:07:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:07:04] Production.INFO: 1 [2025-03-03 18:07:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:07:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: ==14036== Releasing lock... [2025-03-03 18:07:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:07:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:07:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.ERROR: done [2025-03-03 18:07:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:07:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:07:04] Production.INFO: Total Charge 0 [2025-03-03 18:07:04] Production.INFO: CreateAllLog End [2025-03-03 18:07:04] Production.INFO: Account Balance End. [2025-03-03 18:07:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:07:04] Production.INFO: ==14031== Releasing lock... [2025-03-03 18:07:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:07:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:07:05 [end_date_ymd] => 2025-03-03 18:07:05 [RateCDR] => 1 ) [2025-03-03 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:07:05' and `end` < '2025-03-03 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:07:13] Production.ERROR: CronJobId end10 [2025-03-03 18:07:13] Production.INFO: ==14029== Releasing lock... [2025-03-03 18:07:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:07:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:07:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:07:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:07:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:07:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:07:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:07:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:07:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:07:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:07:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:07:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:07:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:07:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:07:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:07:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:07:14] Production.INFO: call_cost start [2025-03-03 18:07:14] Production.INFO: call_cost end [2025-03-03 18:07:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:07:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:07:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:07:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:07:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:07:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:07:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:07:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:07:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:07:15] Production.INFO: ==14025== Releasing lock... [2025-03-03 18:07:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:07:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:07:18] Production.INFO: count ==4601 [2025-03-03 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:07:05 - End Time 2025-03-03 18:07:05 [2025-03-03 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600186', 'tblTempUsageDetail_20' ) start [2025-03-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600186', 'tblTempUsageDetail_20' ) end [2025-03-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600186', 'tblTempVendorCDR_20' ) start [2025-03-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600186', 'tblTempVendorCDR_20' ) end [2025-03-03 18:07:20] Production.INFO: ProcessCDR(1,14600186,1,1,2) [2025-03-03 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600186', 'tblTempUsageDetail_20' ) start [2025-03-03 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600186', 'tblTempUsageDetail_20' ) end [2025-03-03 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:07:25] Production.INFO: ==14033== Releasing lock... [2025-03-03 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:07:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-03 23:08:01] Production.INFO: ==14119== Lock acquired, processing the job... [2025-03-03 23:08:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:08:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:08:01] Production.INFO: neon service started [2025-03-03 23:08:01] Production.INFO: neon service started [2025-03-03 23:08:01] Production.INFO: ==14119== Releasing lock... [2025-03-03 23:08:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:08:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:08:02] Production.INFO: ==14123== Lock acquired, processing the job... [2025-03-03 23:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:08:02] Production.INFO: ==14123== Releasing lock... [2025-03-03 23:08:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:08:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:08:02] Production.INFO: ==14121== Lock acquired, processing the job... [2025-03-03 18:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:08:02] Production.INFO: ==14121== Releasing lock... [2025-03-03 18:08:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:08:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:08:03] Production.INFO: ==14126== Lock acquired, processing the job... [2025-03-03 18:08:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:08:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:08:03] Production.INFO: ==14138== Lock acquired, processing the job... [2025-03-03 18:08:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:08:03] Production.INFO: ==14128== Lock acquired, processing the job... [2025-03-03 18:08:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:08:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:08:03] Production.INFO: count ==13 [2025-03-03 18:08:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:08:03] Production.INFO: count ==21 [2025-03-03 18:08:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600188') start [2025-03-03 18:08:03] Production.INFO: ==14131== Lock acquired, processing the job... [2025-03-03 18:08:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:08:03] Production.INFO: ==14136== Lock acquired, processing the job... [2025-03-03 18:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:08:04] Production.INFO: ==14134== Lock acquired, processing the job... [2025-03-03 18:08:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:08:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600188') end [2025-03-03 18:08:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:08:04] Production.INFO: 1 [2025-03-03 18:08:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:08:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:08:04] Production.INFO: ==14138== Releasing lock... [2025-03-03 18:08:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:08:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:08:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:08:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:08:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:08:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:08:04] Production.INFO: ==14128== Releasing lock... [2025-03-03 18:08:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:08:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:08:04] Production.INFO: Account Balance Start. [2025-03-03 18:08:04] Production.INFO: CreateAllLog Start [2025-03-03 18:08:04] Production.INFO: 117 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:08:04] Production.ERROR: done [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.ERROR: done [2025-03-03 18:08:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:08:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:08:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:08:05] Production.INFO: Total Charge 0 [2025-03-03 18:08:05] Production.INFO: CreateAllLog End [2025-03-03 18:08:05] Production.INFO: Account Balance End. [2025-03-03 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:08:05 [end_date_ymd] => 2025-03-03 18:08:05 [RateCDR] => 1 ) [2025-03-03 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:08:05' and `end` < '2025-03-03 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:08:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:08:05] Production.INFO: ==14134== Releasing lock... [2025-03-03 18:08:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:08:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:08:14] Production.ERROR: CronJobId end10 [2025-03-03 18:08:14] Production.INFO: ==14131== Releasing lock... [2025-03-03 18:08:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:08:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:08:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:08:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:08:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:08:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:08:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:08:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:08:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:08:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:08:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:08:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:08:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:08:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:08:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:08:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:08:16] Production.INFO: call_cost start [2025-03-03 18:08:16] Production.INFO: call_cost end [2025-03-03 18:08:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:08:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:08:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:08:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:08:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:08:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:08:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:08:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:08:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:08:17] Production.INFO: ==14126== Releasing lock... [2025-03-03 18:08:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:08:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:08:18] Production.INFO: count ==4587 [2025-03-03 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:08:05 - End Time 2025-03-03 18:08:05 [2025-03-03 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600191', 'tblTempUsageDetail_20' ) start [2025-03-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600191', 'tblTempUsageDetail_20' ) end [2025-03-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600191', 'tblTempVendorCDR_20' ) start [2025-03-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600191', 'tblTempVendorCDR_20' ) end [2025-03-03 18:08:20] Production.INFO: ProcessCDR(1,14600191,1,1,2) [2025-03-03 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600191', 'tblTempUsageDetail_20' ) start [2025-03-03 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600191', 'tblTempUsageDetail_20' ) end [2025-03-03 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:08:25] Production.INFO: ==14136== Releasing lock... [2025-03-03 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:08:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-03 23:09:02] Production.INFO: ==14224== Lock acquired, processing the job... [2025-03-03 23:09:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:09:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:09:02] Production.INFO: neon service started [2025-03-03 23:09:02] Production.INFO: neon service started [2025-03-03 23:09:02] Production.INFO: ==14224== Releasing lock... [2025-03-03 23:09:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:09:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:09:02] Production.INFO: ==14226== Lock acquired, processing the job... [2025-03-03 18:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:09:02] Production.INFO: ==14226== Releasing lock... [2025-03-03 18:09:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:09:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:09:02] Production.INFO: ==14228== Lock acquired, processing the job... [2025-03-03 23:09:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:09:03] Production.INFO: ==14228== Releasing lock... [2025-03-03 23:09:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:09:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:09:03] Production.INFO: ==14237== Lock acquired, processing the job... [2025-03-03 18:09:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:09:03] Production.INFO: ==14241== Lock acquired, processing the job... [2025-03-03 18:09:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:09:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:09:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:09:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:09:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:09:04] Production.INFO: ==14233== Lock acquired, processing the job... [2025-03-03 18:09:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:09:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:09:04] Production.INFO: ==14235== Lock acquired, processing the job... [2025-03-03 18:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:09:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:09:04] Production.INFO: ==14239== Lock acquired, processing the job... [2025-03-03 18:09:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:09:04] Production.INFO: ==14243== Lock acquired, processing the job... [2025-03-03 18:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:09:04] Production.INFO: Account Balance Start. [2025-03-03 18:09:04] Production.INFO: CreateAllLog Start [2025-03-03 18:09:04] Production.INFO: 117 [2025-03-03 18:09:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.ERROR: done [2025-03-03 18:09:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:09:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:09:04] Production.INFO: count ==13 [2025-03-03 18:09:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:09:04] Production.INFO: count ==21 [2025-03-03 18:09:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600195') start [2025-03-03 18:09:04] Production.ERROR: done [2025-03-03 18:09:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.INFO: ==14235== Releasing lock... [2025-03-03 18:09:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:09:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:09:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600195') end [2025-03-03 18:09:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:09:04] Production.INFO: 1 [2025-03-03 18:09:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:09:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:04] Production.INFO: ==14243== Releasing lock... [2025-03-03 18:09:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:09:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:09:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:09:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:09:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:09:05] Production.INFO: Total Charge 0 [2025-03-03 18:09:05] Production.INFO: CreateAllLog End [2025-03-03 18:09:06] Production.INFO: Account Balance End. [2025-03-03 18:09:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:09:06] Production.INFO: ==14239== Releasing lock... [2025-03-03 18:09:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:09:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:09:06 [end_date_ymd] => 2025-03-03 18:09:06 [RateCDR] => 1 ) [2025-03-03 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:09:06' and `end` < '2025-03-03 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:09:14] Production.ERROR: CronJobId end10 [2025-03-03 18:09:14] Production.INFO: ==14237== Releasing lock... [2025-03-03 18:09:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:09:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:09:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:09:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:09:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:09:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:09:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:09:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:09:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:09:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:09:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:09:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:09:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:09:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:09:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:09:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:09:17] Production.INFO: call_cost start [2025-03-03 18:09:17] Production.INFO: call_cost end [2025-03-03 18:09:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:09:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:09:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:09:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:09:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:09:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:09:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:09:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:09:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:09:18] Production.INFO: ==14233== Releasing lock... [2025-03-03 18:09:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:09:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:09:19] Production.INFO: count ==4565 [2025-03-03 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:09:06 - End Time 2025-03-03 18:09:06 [2025-03-03 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600196', 'tblTempUsageDetail_20' ) start [2025-03-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600196', 'tblTempUsageDetail_20' ) end [2025-03-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600196', 'tblTempVendorCDR_20' ) start [2025-03-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600196', 'tblTempVendorCDR_20' ) end [2025-03-03 18:09:21] Production.INFO: ProcessCDR(1,14600196,1,1,2) [2025-03-03 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600196', 'tblTempUsageDetail_20' ) start [2025-03-03 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600196', 'tblTempUsageDetail_20' ) end [2025-03-03 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:09:24] Production.INFO: ==14241== Releasing lock... [2025-03-03 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:09:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-03 23:10:01] Production.INFO: ==14324== Lock acquired, processing the job... [2025-03-03 23:10:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:10:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:10:01] Production.INFO: neon service started [2025-03-03 23:10:01] Production.INFO: neon service started [2025-03-03 23:10:01] Production.INFO: ==14324== Releasing lock... [2025-03-03 23:10:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:10:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:10:02] Production.INFO: ==14326== Lock acquired, processing the job... [2025-03-03 18:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:10:02] Production.INFO: ==14328== Lock acquired, processing the job... [2025-03-03 23:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:10:02] Production.INFO: ==14328== Releasing lock... [2025-03-03 23:10:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:10:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:10:02] Production.INFO: ==14326== Releasing lock... [2025-03-03 18:10:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:10:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:10:03] Production.INFO: ==14330== Lock acquired, processing the job... [2025-03-03 18:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 18:10:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 18:10:03] Production.INFO: ==14334== Lock acquired, processing the job... [2025-03-03 18:10:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:10:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 18:10:03] Production.INFO: ==14330== Releasing lock... [2025-03-03 18:10:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 18:10:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:10:03] Production.INFO: ==14332== Lock acquired, processing the job... [2025-03-03 18:10:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:10:03] Production.INFO: ==14341== Lock acquired, processing the job... [2025-03-03 18:10:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:10:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:10:03] Production.INFO: ==14345== Lock acquired, processing the job... [2025-03-03 18:10:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:10:03] Production.INFO: ==14337== Lock acquired, processing the job... [2025-03-03 18:10:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:10:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:10:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:10:04] Production.INFO: ==14339== Lock acquired, processing the job... [2025-03-03 18:10:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:10:04] Production.INFO: count ==13 [2025-03-03 18:10:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:10:04] Production.INFO: count ==21 [2025-03-03 18:10:04] Production.INFO: ==14343== Lock acquired, processing the job... [2025-03-03 18:10:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 18:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600199') start [2025-03-03 18:10:04] Production.INFO: ==14334== Releasing lock... [2025-03-03 18:10:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:10:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:10:04] Production.INFO: Account Balance Start. [2025-03-03 18:10:04] Production.INFO: CreateAllLog Start [2025-03-03 18:10:04] Production.INFO: 117 [2025-03-03 18:10:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:10:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:10:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:10:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:10:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600199') end [2025-03-03 18:10:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:10:04] Production.INFO: 1 [2025-03-03 18:10:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:10:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:10:04] Production.ERROR: done [2025-03-03 18:10:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: ==14345== Releasing lock... [2025-03-03 18:10:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:10:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:10:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.ERROR: done [2025-03-03 18:10:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.ERROR: done [2025-03-03 18:10:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 18:10:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600201', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 18:10:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:10:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:10:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:10:05] Production.INFO: Total Charge 0 [2025-03-03 18:10:05] Production.INFO: CreateAllLog End [2025-03-03 18:10:05] Production.INFO: Account Balance End. [2025-03-03 18:10:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:10:05] Production.INFO: ==14339== Releasing lock... [2025-03-03 18:10:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:10:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:10:05 [end_date_ymd] => 2025-03-03 18:10:05 [RateCDR] => 1 ) [2025-03-03 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:10:05' and `end` < '2025-03-03 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:10:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600201', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 18:10:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 18:10:09] Production.INFO: ProcessCDR(1,14600201,1,1,2) [2025-03-03 18:10:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600201,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:10:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600201,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:10:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:10:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:10:09] Production.INFO: ==14343== Releasing lock... [2025-03-03 18:10:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 18:10:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 18:10:16] Production.ERROR: CronJobId end10 [2025-03-03 18:10:16] Production.INFO: ==14337== Releasing lock... [2025-03-03 18:10:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:10:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:10:18] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:10:18] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:10:18] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:10:18] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:10:18] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:10:18] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:10:18] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:10:18] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:10:18] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:10:18] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:10:18] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:10:18] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:10:18] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:10:18] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:10:18] Production.INFO: call_cost start [2025-03-03 18:10:18] Production.INFO: call_cost end [2025-03-03 18:10:18] Production.INFO: count ==4526 [2025-03-03 18:10:19] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:10:19] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:10:19] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:10:19] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:10:19] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:10:19] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:10:19] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:10:19] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:10:19] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:10:19] Production.INFO: ==14332== Releasing lock... [2025-03-03 18:10:19] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:10:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:10:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:10:05 - End Time 2025-03-03 18:10:05 [2025-03-03 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600202', 'tblTempUsageDetail_20' ) start [2025-03-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600202', 'tblTempUsageDetail_20' ) end [2025-03-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600202', 'tblTempVendorCDR_20' ) start [2025-03-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600202', 'tblTempVendorCDR_20' ) end [2025-03-03 18:10:20] Production.INFO: ProcessCDR(1,14600202,1,1,2) [2025-03-03 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600202', 'tblTempUsageDetail_20' ) start [2025-03-03 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600202', 'tblTempUsageDetail_20' ) end [2025-03-03 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:10:24] Production.INFO: ==14341== Releasing lock... [2025-03-03 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:10:24] Production.INFO: 62 MB #Memory Used# [2025-03-03 23:11:02] Production.INFO: ==14431== Lock acquired, processing the job... [2025-03-03 23:11:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:11:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:11:02] Production.INFO: neon service started [2025-03-03 23:11:02] Production.INFO: neon service started [2025-03-03 23:11:02] Production.INFO: ==14431== Releasing lock... [2025-03-03 23:11:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:11:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:11:02] Production.INFO: ==14433== Lock acquired, processing the job... [2025-03-03 18:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:11:02] Production.INFO: ==14435== Lock acquired, processing the job... [2025-03-03 23:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:11:02] Production.INFO: ==14435== Releasing lock... [2025-03-03 23:11:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:11:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:11:02] Production.INFO: ==14433== Releasing lock... [2025-03-03 18:11:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:11:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:11:03] Production.INFO: ==14442== Lock acquired, processing the job... [2025-03-03 18:11:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:11:03] Production.INFO: ==14440== Lock acquired, processing the job... [2025-03-03 18:11:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:11:03] Production.INFO: ==14438== Lock acquired, processing the job... [2025-03-03 18:11:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:11:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:11:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:11:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:11:04] Production.INFO: ==14444== Lock acquired, processing the job... [2025-03-03 18:11:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:11:04] Production.INFO: ==14448== Lock acquired, processing the job... [2025-03-03 18:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:11:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:11:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:11:04] Production.INFO: ==14446== Lock acquired, processing the job... [2025-03-03 18:11:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:11:04] Production.INFO: Account Balance Start. [2025-03-03 18:11:04] Production.INFO: CreateAllLog Start [2025-03-03 18:11:04] Production.INFO: 117 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:11:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:11:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: count ==13 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:11:04] Production.INFO: count ==21 [2025-03-03 18:11:04] Production.INFO: ==14440== Releasing lock... [2025-03-03 18:11:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:11:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600206') start [2025-03-03 18:11:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600206') end [2025-03-03 18:11:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:11:04] Production.INFO: 1 [2025-03-03 18:11:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:11:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: ==14448== Releasing lock... [2025-03-03 18:11:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:11:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:11:04] Production.ERROR: done [2025-03-03 18:11:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:11:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.ERROR: done [2025-03-03 18:11:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:11:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:11:05] Production.INFO: Total Charge 0 [2025-03-03 18:11:05] Production.INFO: CreateAllLog End [2025-03-03 18:11:05] Production.INFO: Account Balance End. [2025-03-03 18:11:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:11:05] Production.INFO: ==14444== Releasing lock... [2025-03-03 18:11:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:11:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:11:06 [end_date_ymd] => 2025-03-03 18:11:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:11:06' and `end` < '2025-03-03 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-03-03 18:11:14] Production.ERROR: CronJobId end10 [2025-03-03 18:11:14] Production.INFO: ==14442== Releasing lock... [2025-03-03 18:11:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:11:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:11:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:11:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:11:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:11:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:11:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:11:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:11:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:11:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:11:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:11:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:11:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:11:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:11:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:11:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:11:15] Production.INFO: call_cost start [2025-03-03 18:11:15] Production.INFO: call_cost end [2025-03-03 18:11:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:11:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:11:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:11:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:11:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:11:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:11:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:11:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:11:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:11:16] Production.INFO: ==14438== Releasing lock... [2025-03-03 18:11:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:11:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:11:18] Production.INFO: count ==4480 [2025-03-03 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:11:06 - End Time 2025-03-03 18:11:06 [2025-03-03 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600207', 'tblTempUsageDetail_20' ) start [2025-03-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600207', 'tblTempUsageDetail_20' ) end [2025-03-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600207', 'tblTempVendorCDR_20' ) start [2025-03-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600207', 'tblTempVendorCDR_20' ) end [2025-03-03 18:11:21] Production.INFO: ProcessCDR(1,14600207,1,1,2) [2025-03-03 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600207', 'tblTempUsageDetail_20' ) start [2025-03-03 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600207', 'tblTempUsageDetail_20' ) end [2025-03-03 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:11:25] Production.INFO: ==14446== Releasing lock... [2025-03-03 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:11:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-03 23:12:01] Production.INFO: ==14530== Lock acquired, processing the job... [2025-03-03 23:12:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:12:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:12:01] Production.INFO: neon service started [2025-03-03 23:12:01] Production.INFO: neon service started [2025-03-03 23:12:01] Production.INFO: ==14530== Releasing lock... [2025-03-03 23:12:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:12:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:12:01] Production.INFO: ==14534== Lock acquired, processing the job... [2025-03-03 23:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:12:01] Production.INFO: ==14534== Releasing lock... [2025-03-03 23:12:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:12:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:12:02] Production.INFO: ==14532== Lock acquired, processing the job... [2025-03-03 18:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:12:02] Production.INFO: ==14532== Releasing lock... [2025-03-03 18:12:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:12:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:12:03] Production.INFO: ==14537== Lock acquired, processing the job... [2025-03-03 18:12:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:12:03] Production.INFO: ==14539== Lock acquired, processing the job... [2025-03-03 18:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:12:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:12:03] Production.INFO: ==14543== Lock acquired, processing the job... [2025-03-03 18:12:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:12:03] Production.INFO: Account Balance Start. [2025-03-03 18:12:03] Production.INFO: CreateAllLog Start [2025-03-03 18:12:03] Production.INFO: 117 [2025-03-03 18:12:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: ==14539== Releasing lock... [2025-03-03 18:12:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:12:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:12:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: ==14541== Lock acquired, processing the job... [2025-03-03 18:12:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:12:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: ==14547== Lock acquired, processing the job... [2025-03-03 18:12:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:12:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: ==14545== Lock acquired, processing the job... [2025-03-03 18:12:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:12:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:12:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:12:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:12:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:12:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:12:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:12:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:12:04] Production.INFO: count ==13 [2025-03-03 18:12:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:12:04] Production.INFO: count ==21 [2025-03-03 18:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600211') start [2025-03-03 18:12:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600211') end [2025-03-03 18:12:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:12:04] Production.INFO: 1 [2025-03-03 18:12:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:12:04] Production.ERROR: done [2025-03-03 18:12:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: ==14547== Releasing lock... [2025-03-03 18:12:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:12:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:12:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.ERROR: done [2025-03-03 18:12:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:12:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:12:04] Production.INFO: Total Charge 0 [2025-03-03 18:12:05] Production.INFO: CreateAllLog End [2025-03-03 18:12:05] Production.INFO: Account Balance End. [2025-03-03 18:12:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:12:05] Production.INFO: ==14543== Releasing lock... [2025-03-03 18:12:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:12:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:12:05 [end_date_ymd] => 2025-03-03 18:12:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:12:05' and `end` < '2025-03-03 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-03-03 18:12:14] Production.ERROR: CronJobId end10 [2025-03-03 18:12:14] Production.INFO: ==14541== Releasing lock... [2025-03-03 18:12:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:12:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:12:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:12:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:12:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:12:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:12:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:12:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:12:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:12:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:12:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:12:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:12:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:12:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:12:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:12:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:12:16] Production.INFO: call_cost start [2025-03-03 18:12:16] Production.INFO: call_cost end [2025-03-03 18:12:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:12:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:12:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:12:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:12:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:12:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:12:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:12:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:12:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:12:17] Production.INFO: ==14537== Releasing lock... [2025-03-03 18:12:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:12:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:12:18] Production.INFO: count ==4443 [2025-03-03 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:12:05 - End Time 2025-03-03 18:12:05 [2025-03-03 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600212', 'tblTempUsageDetail_20' ) start [2025-03-03 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600212', 'tblTempUsageDetail_20' ) end [2025-03-03 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600212', 'tblTempVendorCDR_20' ) start [2025-03-03 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600212', 'tblTempVendorCDR_20' ) end [2025-03-03 18:12:20] Production.INFO: ProcessCDR(1,14600212,1,1,2) [2025-03-03 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600212', 'tblTempUsageDetail_20' ) start [2025-03-03 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600212', 'tblTempUsageDetail_20' ) end [2025-03-03 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:12:24] Production.INFO: ==14545== Releasing lock... [2025-03-03 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:12:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-03 23:13:01] Production.INFO: ==14629== Lock acquired, processing the job... [2025-03-03 23:13:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:13:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:13:01] Production.INFO: neon service started [2025-03-03 23:13:01] Production.INFO: neon service started [2025-03-03 23:13:01] Production.INFO: ==14629== Releasing lock... [2025-03-03 23:13:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:13:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:13:02] Production.INFO: ==14631== Lock acquired, processing the job... [2025-03-03 18:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:13:02] Production.INFO: ==14631== Releasing lock... [2025-03-03 18:13:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:13:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:13:02] Production.INFO: ==14633== Lock acquired, processing the job... [2025-03-03 23:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:13:02] Production.INFO: ==14633== Releasing lock... [2025-03-03 23:13:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:13:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:13:03] Production.INFO: ==14637== Lock acquired, processing the job... [2025-03-03 18:13:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:13:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:13:03] Production.INFO: ==14639== Lock acquired, processing the job... [2025-03-03 18:13:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:13:03] Production.INFO: ==14647== Lock acquired, processing the job... [2025-03-03 18:13:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:13:03] Production.INFO: ==14641== Lock acquired, processing the job... [2025-03-03 18:13:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:13:03] Production.INFO: ==14643== Lock acquired, processing the job... [2025-03-03 18:13:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:13:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:13:03] Production.INFO: ==14645== Lock acquired, processing the job... [2025-03-03 18:13:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:13:03] Production.INFO: count ==13 [2025-03-03 18:13:03] Production.INFO: Account Balance Start. [2025-03-03 18:13:03] Production.INFO: CreateAllLog Start [2025-03-03 18:13:03] Production.INFO: 117 [2025-03-03 18:13:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:13:03] Production.INFO: count ==21 [2025-03-03 18:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600215') start [2025-03-03 18:13:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:13:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:13:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:13:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:13:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600215') end [2025-03-03 18:13:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:13:03] Production.INFO: 1 [2025-03-03 18:13:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:13:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:13:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:13:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: ==14647== Releasing lock... [2025-03-03 18:13:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:13:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:13:04] Production.INFO: ==14639== Releasing lock... [2025-03-03 18:13:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:13:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:13:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:13:04] Production.ERROR: done [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.ERROR: done [2025-03-03 18:13:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:13:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:13:04] Production.INFO: Total Charge 0 [2025-03-03 18:13:04] Production.INFO: CreateAllLog End [2025-03-03 18:13:05] Production.INFO: Account Balance End. [2025-03-03 18:13:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:13:05] Production.INFO: ==14643== Releasing lock... [2025-03-03 18:13:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:13:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:13:05 [end_date_ymd] => 2025-03-03 18:13:05 [RateCDR] => 1 ) [2025-03-03 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:13:05' and `end` < '2025-03-03 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:13:14] Production.ERROR: CronJobId end10 [2025-03-03 18:13:14] Production.INFO: ==14641== Releasing lock... [2025-03-03 18:13:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:13:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:13:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:13:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:13:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:13:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:13:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:13:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:13:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:13:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:13:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:13:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:13:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:13:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:13:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:13:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:13:15] Production.INFO: call_cost start [2025-03-03 18:13:15] Production.INFO: call_cost end [2025-03-03 18:13:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:13:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:13:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:13:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:13:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:13:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:13:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:13:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:13:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:13:16] Production.INFO: ==14637== Releasing lock... [2025-03-03 18:13:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:13:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:13:18] Production.INFO: count ==4401 [2025-03-03 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:13:05 - End Time 2025-03-03 18:13:05 [2025-03-03 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600217', 'tblTempUsageDetail_20' ) start [2025-03-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600217', 'tblTempUsageDetail_20' ) end [2025-03-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600217', 'tblTempVendorCDR_20' ) start [2025-03-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600217', 'tblTempVendorCDR_20' ) end [2025-03-03 18:13:20] Production.INFO: ProcessCDR(1,14600217,1,1,2) [2025-03-03 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600217', 'tblTempUsageDetail_20' ) start [2025-03-03 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600217', 'tblTempUsageDetail_20' ) end [2025-03-03 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:13:24] Production.INFO: ==14645== Releasing lock... [2025-03-03 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:13:24] Production.INFO: 61 MB #Memory Used# [2025-03-03 23:14:02] Production.INFO: ==14731== Lock acquired, processing the job... [2025-03-03 23:14:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:14:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:14:02] Production.INFO: neon service started [2025-03-03 23:14:02] Production.INFO: neon service started [2025-03-03 23:14:02] Production.INFO: ==14731== Releasing lock... [2025-03-03 23:14:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:14:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:14:02] Production.INFO: ==14735== Lock acquired, processing the job... [2025-03-03 23:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:14:02] Production.INFO: ==14735== Releasing lock... [2025-03-03 23:14:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:14:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:14:02] Production.INFO: ==14733== Lock acquired, processing the job... [2025-03-03 18:14:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:14:03] Production.INFO: ==14733== Releasing lock... [2025-03-03 18:14:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:14:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:14:04] Production.INFO: ==14742== Lock acquired, processing the job... [2025-03-03 18:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:14:04] Production.INFO: ==14744== Lock acquired, processing the job... [2025-03-03 18:14:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:14:04] Production.INFO: ==14748== Lock acquired, processing the job... [2025-03-03 18:14:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:14:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:14:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:14:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:14:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:14:04] Production.INFO: ==14740== Lock acquired, processing the job... [2025-03-03 18:14:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:14:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:14:04] Production.INFO: ==14746== Lock acquired, processing the job... [2025-03-03 18:14:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:14:04] Production.INFO: ==14742== Releasing lock... [2025-03-03 18:14:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:14:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:14:04] Production.INFO: ==14750== Lock acquired, processing the job... [2025-03-03 18:14:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:14:04] Production.INFO: Account Balance Start. [2025-03-03 18:14:04] Production.INFO: CreateAllLog Start [2025-03-03 18:14:04] Production.INFO: 117 [2025-03-03 18:14:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:14:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:04] Production.ERROR: done [2025-03-03 18:14:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:14:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:14:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:04] Production.INFO: count ==13 [2025-03-03 18:14:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:14:04] Production.INFO: count ==21 [2025-03-03 18:14:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600221') start [2025-03-03 18:14:04] Production.ERROR: done [2025-03-03 18:14:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:14:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600221') end [2025-03-03 18:14:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:14:05] Production.INFO: 1 [2025-03-03 18:14:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:14:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: ==14750== Releasing lock... [2025-03-03 18:14:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:14:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:14:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:14:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:14:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:14:06] Production.INFO: Total Charge 0 [2025-03-03 18:14:06] Production.INFO: CreateAllLog End [2025-03-03 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:14:06 [end_date_ymd] => 2025-03-03 18:14:06 [RateCDR] => 1 ) [2025-03-03 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:14:06' and `end` < '2025-03-03 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:14:06] Production.INFO: Account Balance End. [2025-03-03 18:14:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:14:06] Production.INFO: ==14746== Releasing lock... [2025-03-03 18:14:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:14:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:14:16] Production.ERROR: CronJobId end10 [2025-03-03 18:14:16] Production.INFO: ==14744== Releasing lock... [2025-03-03 18:14:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:14:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:14:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:14:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:14:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:14:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:14:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:14:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:14:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:14:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:14:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:14:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:14:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:14:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:14:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:14:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:14:17] Production.INFO: call_cost start [2025-03-03 18:14:17] Production.INFO: call_cost end [2025-03-03 18:14:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:14:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:14:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:14:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:14:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:14:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:14:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:14:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:14:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:14:18] Production.INFO: ==14740== Releasing lock... [2025-03-03 18:14:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:14:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:14:19] Production.INFO: count ==4389 [2025-03-03 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:14:06 - End Time 2025-03-03 18:14:06 [2025-03-03 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600222', 'tblTempUsageDetail_20' ) start [2025-03-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600222', 'tblTempUsageDetail_20' ) end [2025-03-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600222', 'tblTempVendorCDR_20' ) start [2025-03-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600222', 'tblTempVendorCDR_20' ) end [2025-03-03 18:14:21] Production.INFO: ProcessCDR(1,14600222,1,1,2) [2025-03-03 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600222', 'tblTempUsageDetail_20' ) start [2025-03-03 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600222', 'tblTempUsageDetail_20' ) end [2025-03-03 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:14:26] Production.INFO: ==14748== Releasing lock... [2025-03-03 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:14:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-03 23:15:01] Production.INFO: ==14832== Lock acquired, processing the job... [2025-03-03 23:15:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:15:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:15:01] Production.INFO: neon service started [2025-03-03 23:15:01] Production.INFO: neon service started [2025-03-03 23:15:01] Production.INFO: ==14832== Releasing lock... [2025-03-03 23:15:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:15:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:15:02] Production.INFO: ==14836== Lock acquired, processing the job... [2025-03-03 23:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:15:02] Production.INFO: ==14836== Releasing lock... [2025-03-03 23:15:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:15:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:15:02] Production.INFO: ==14834== Lock acquired, processing the job... [2025-03-03 18:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:15:02] Production.INFO: ==14834== Releasing lock... [2025-03-03 18:15:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:15:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:15:03] Production.INFO: ==14839== Lock acquired, processing the job... [2025-03-03 18:15:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:15:03] Production.INFO: ==14841== Lock acquired, processing the job... [2025-03-03 18:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:15:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:15:03] Production.INFO: ==14847== Lock acquired, processing the job... [2025-03-03 18:15:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:15:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:15:03] Production.INFO: ==14841== Releasing lock... [2025-03-03 18:15:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:15:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:15:03] Production.INFO: ==14843== Lock acquired, processing the job... [2025-03-03 18:15:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:15:03] Production.INFO: ==14845== Lock acquired, processing the job... [2025-03-03 18:15:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:15:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:15:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:15:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:15:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:15:04] Production.ERROR: done [2025-03-03 18:15:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:15:04] Production.INFO: ==14849== Lock acquired, processing the job... [2025-03-03 18:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:15:04] Production.INFO: Account Balance Start. [2025-03-03 18:15:04] Production.INFO: CreateAllLog Start [2025-03-03 18:15:04] Production.INFO: 117 [2025-03-03 18:15:04] Production.ERROR: done [2025-03-03 18:15:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:15:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: count ==13 [2025-03-03 18:15:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:15:04] Production.INFO: count ==21 [2025-03-03 18:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600226') start [2025-03-03 18:15:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600226') end [2025-03-03 18:15:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:15:04] Production.INFO: 1 [2025-03-03 18:15:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:15:04] Production.INFO: ==14849== Releasing lock... [2025-03-03 18:15:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:15:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:15:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:15:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:15:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:15:05] Production.INFO: Total Charge 0 [2025-03-03 18:15:05] Production.INFO: CreateAllLog End [2025-03-03 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:15:05 [end_date_ymd] => 2025-03-03 18:15:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:15:05' and `end` < '2025-03-03 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-03-03 18:15:05] Production.INFO: Account Balance End. [2025-03-03 18:15:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:15:05] Production.INFO: ==14845== Releasing lock... [2025-03-03 18:15:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:15:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:15:15] Production.ERROR: CronJobId end10 [2025-03-03 18:15:15] Production.INFO: ==14843== Releasing lock... [2025-03-03 18:15:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:15:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:15:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:15:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:15:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:15:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:15:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:15:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:15:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:15:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:15:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:15:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:15:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:15:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:15:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:15:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:15:16] Production.INFO: call_cost start [2025-03-03 18:15:16] Production.INFO: call_cost end [2025-03-03 18:15:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:15:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:15:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:15:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:15:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:15:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:15:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:15:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:15:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:15:17] Production.INFO: ==14839== Releasing lock... [2025-03-03 18:15:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:15:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:15:18] Production.INFO: count ==4373 [2025-03-03 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:15:05 - End Time 2025-03-03 18:15:05 [2025-03-03 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600227', 'tblTempUsageDetail_20' ) start [2025-03-03 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600227', 'tblTempUsageDetail_20' ) end [2025-03-03 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600227', 'tblTempVendorCDR_20' ) start [2025-03-03 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600227', 'tblTempVendorCDR_20' ) end [2025-03-03 18:15:20] Production.INFO: ProcessCDR(1,14600227,1,1,2) [2025-03-03 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600227', 'tblTempUsageDetail_20' ) start [2025-03-03 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600227', 'tblTempUsageDetail_20' ) end [2025-03-03 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:15:25] Production.INFO: ==14847== Releasing lock... [2025-03-03 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:15:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-03 23:16:02] Production.INFO: ==14933== Lock acquired, processing the job... [2025-03-03 23:16:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:16:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:16:02] Production.INFO: neon service started [2025-03-03 23:16:02] Production.INFO: neon service started [2025-03-03 23:16:02] Production.INFO: ==14933== Releasing lock... [2025-03-03 23:16:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:16:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:16:02] Production.INFO: ==14937== Lock acquired, processing the job... [2025-03-03 23:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:16:02] Production.INFO: ==14937== Releasing lock... [2025-03-03 23:16:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:16:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:16:02] Production.INFO: ==14935== Lock acquired, processing the job... [2025-03-03 18:16:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:16:03] Production.INFO: ==14935== Releasing lock... [2025-03-03 18:16:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:16:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:16:04] Production.INFO: ==14944== Lock acquired, processing the job... [2025-03-03 18:16:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:16:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:16:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:16:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:16:04] Production.INFO: ==14950== Lock acquired, processing the job... [2025-03-03 18:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:16:04] Production.INFO: ==14940== Lock acquired, processing the job... [2025-03-03 18:16:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:16:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:16:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:16:04] Production.INFO: count ==13 [2025-03-03 18:16:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:16:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:16:04] Production.INFO: ==14942== Lock acquired, processing the job... [2025-03-03 18:16:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:16:04] Production.INFO: count ==21 [2025-03-03 18:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600228') start [2025-03-03 18:16:04] Production.INFO: ==14948== Lock acquired, processing the job... [2025-03-03 18:16:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:16:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600228') end [2025-03-03 18:16:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:16:04] Production.INFO: 1 [2025-03-03 18:16:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:16:04] Production.INFO: ==14946== Lock acquired, processing the job... [2025-03-03 18:16:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:16:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:16:04] Production.INFO: ==14950== Releasing lock... [2025-03-03 18:16:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:16:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:16:05] Production.INFO: Account Balance Start. [2025-03-03 18:16:05] Production.INFO: CreateAllLog Start [2025-03-03 18:16:05] Production.INFO: 117 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-08 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: ==14942== Releasing lock... [2025-03-03 18:16:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:16:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:16:05] Production.ERROR: done [2025-03-03 18:16:05] Production.INFO: Date 2025-02-09 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-10 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-11 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-12 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.ERROR: done [2025-03-03 18:16:05] Production.INFO: Date 2025-02-13 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:16:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-02-23 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-02-24 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-02-25 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-02-26 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-02-27 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-02-28 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-03-01 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-03-02 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Date 2025-03-03 [2025-03-03 18:16:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:16:06] Production.INFO: Total Charge 0 [2025-03-03 18:16:06] Production.INFO: CreateAllLog End [2025-03-03 18:16:06] Production.INFO: Account Balance End. [2025-03-03 18:16:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:16:06] Production.INFO: ==14946== Releasing lock... [2025-03-03 18:16:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:16:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:16:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:16:07 [end_date_ymd] => 2025-03-03 18:16:07 [RateCDR] => 1 ) [2025-03-03 18:16:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:16:07' and `end` < '2025-03-03 18:16:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:16:15] Production.ERROR: CronJobId end10 [2025-03-03 18:16:15] Production.INFO: ==14944== Releasing lock... [2025-03-03 18:16:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:16:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:16:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:16:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:16:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:16:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:16:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:16:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:16:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:16:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:16:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:16:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:16:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:16:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:16:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:16:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:16:16] Production.INFO: call_cost start [2025-03-03 18:16:16] Production.INFO: call_cost end [2025-03-03 18:16:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:16:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:16:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:16:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:16:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:16:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:16:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:16:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:16:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:16:17] Production.INFO: ==14940== Releasing lock... [2025-03-03 18:16:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:16:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:16:19] Production.INFO: count ==4347 [2025-03-03 18:16:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:16:07 - End Time 2025-03-03 18:16:07 [2025-03-03 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600232', 'tblTempUsageDetail_20' ) start [2025-03-03 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600232', 'tblTempUsageDetail_20' ) end [2025-03-03 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600232', 'tblTempVendorCDR_20' ) start [2025-03-03 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600232', 'tblTempVendorCDR_20' ) end [2025-03-03 18:16:22] Production.INFO: ProcessCDR(1,14600232,1,1,2) [2025-03-03 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600232', 'tblTempUsageDetail_20' ) start [2025-03-03 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600232', 'tblTempUsageDetail_20' ) end [2025-03-03 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:16:25] Production.INFO: ==14948== Releasing lock... [2025-03-03 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:16:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-03 23:17:01] Production.INFO: ==15037== Lock acquired, processing the job... [2025-03-03 23:17:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:17:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:17:01] Production.INFO: neon service started [2025-03-03 23:17:01] Production.INFO: neon service started [2025-03-03 23:17:01] Production.INFO: ==15037== Releasing lock... [2025-03-03 23:17:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:17:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:17:02] Production.INFO: ==15040== Lock acquired, processing the job... [2025-03-03 18:17:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:17:02] Production.INFO: ==15042== Lock acquired, processing the job... [2025-03-03 23:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:17:02] Production.INFO: ==15042== Releasing lock... [2025-03-03 23:17:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:17:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:17:03] Production.INFO: ==15040== Releasing lock... [2025-03-03 18:17:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:17:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:17:03] Production.INFO: ==15045== Lock acquired, processing the job... [2025-03-03 18:17:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:17:03] Production.INFO: ==15047== Lock acquired, processing the job... [2025-03-03 18:17:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:17:04] Production.INFO: ==15053== Lock acquired, processing the job... [2025-03-03 18:17:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:17:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:17:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:17:04] Production.INFO: ==15049== Lock acquired, processing the job... [2025-03-03 18:17:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:17:04] Production.INFO: ==15051== Lock acquired, processing the job... [2025-03-03 18:17:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:17:04] Production.INFO: ==15055== Lock acquired, processing the job... [2025-03-03 18:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:17:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:17:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:17:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:17:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:17:04] Production.INFO: ==15047== Releasing lock... [2025-03-03 18:17:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:17:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:17:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:17:04] Production.INFO: Account Balance Start. [2025-03-03 18:17:04] Production.INFO: CreateAllLog Start [2025-03-03 18:17:04] Production.INFO: count ==13 [2025-03-03 18:17:04] Production.INFO: 117 [2025-03-03 18:17:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:17:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:17:04] Production.INFO: count ==21 [2025-03-03 18:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600235') start [2025-03-03 18:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:17:04] Production.ERROR: done [2025-03-03 18:17:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600235') end [2025-03-03 18:17:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:17:04] Production.INFO: 1 [2025-03-03 18:17:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:17:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:04] Production.INFO: ==15055== Releasing lock... [2025-03-03 18:17:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:17:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:17:04] Production.ERROR: done [2025-03-03 18:17:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:17:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-13 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:17:05 [end_date_ymd] => 2025-03-03 18:17:05 [RateCDR] => 1 ) [2025-03-03 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:17:05' and `end` < '2025-03-03 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:17:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:17:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:06] Production.INFO: Date 2025-03-02 [2025-03-03 18:17:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:06] Production.INFO: Date 2025-03-03 [2025-03-03 18:17:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:17:06] Production.INFO: Total Charge 0 [2025-03-03 18:17:06] Production.INFO: CreateAllLog End [2025-03-03 18:17:06] Production.INFO: Account Balance End. [2025-03-03 18:17:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:17:06] Production.INFO: ==15051== Releasing lock... [2025-03-03 18:17:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:17:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:17:15] Production.ERROR: CronJobId end10 [2025-03-03 18:17:15] Production.INFO: ==15049== Releasing lock... [2025-03-03 18:17:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:17:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:17:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:17:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:17:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:17:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:17:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:17:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:17:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:17:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:17:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:17:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:17:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:17:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:17:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:17:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:17:16] Production.INFO: call_cost start [2025-03-03 18:17:16] Production.INFO: call_cost end [2025-03-03 18:17:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:17:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:17:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:17:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:17:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:17:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:17:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:17:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:17:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:17:17] Production.INFO: ==15045== Releasing lock... [2025-03-03 18:17:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:17:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:17:18] Production.INFO: count ==4320 [2025-03-03 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:17:05 - End Time 2025-03-03 18:17:05 [2025-03-03 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600237', 'tblTempUsageDetail_20' ) start [2025-03-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600237', 'tblTempUsageDetail_20' ) end [2025-03-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600237', 'tblTempVendorCDR_20' ) start [2025-03-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600237', 'tblTempVendorCDR_20' ) end [2025-03-03 18:17:20] Production.INFO: ProcessCDR(1,14600237,1,1,2) [2025-03-03 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600237', 'tblTempUsageDetail_20' ) start [2025-03-03 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600237', 'tblTempUsageDetail_20' ) end [2025-03-03 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:17:25] Production.INFO: ==15053== Releasing lock... [2025-03-03 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:17:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-03 23:18:01] Production.INFO: ==15141== Lock acquired, processing the job... [2025-03-03 23:18:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:18:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:18:01] Production.INFO: neon service started [2025-03-03 23:18:01] Production.INFO: neon service started [2025-03-03 23:18:01] Production.INFO: ==15141== Releasing lock... [2025-03-03 23:18:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:18:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:18:01] Production.INFO: ==15145== Lock acquired, processing the job... [2025-03-03 23:18:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:18:01] Production.INFO: ==15145== Releasing lock... [2025-03-03 23:18:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:18:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:18:01] Production.INFO: ==15143== Lock acquired, processing the job... [2025-03-03 18:18:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:18:02] Production.INFO: ==15143== Releasing lock... [2025-03-03 18:18:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:18:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:18:03] Production.INFO: ==15148== Lock acquired, processing the job... [2025-03-03 18:18:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:18:03] Production.INFO: ==15152== Lock acquired, processing the job... [2025-03-03 18:18:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:18:03] Production.INFO: ==15156== Lock acquired, processing the job... [2025-03-03 18:18:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:18:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:18:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:18:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:18:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:18:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:18:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:18:03] Production.INFO: ==15150== Lock acquired, processing the job... [2025-03-03 18:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:18:03] Production.INFO: ==15154== Lock acquired, processing the job... [2025-03-03 18:18:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:18:03] Production.ERROR: done [2025-03-03 18:18:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:18:03] Production.INFO: ==15158== Lock acquired, processing the job... [2025-03-03 18:18:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:18:03] Production.ERROR: done [2025-03-03 18:18:03] Production.INFO: ==15150== Releasing lock... [2025-03-03 18:18:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:18:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:18:04] Production.INFO: Account Balance Start. [2025-03-03 18:18:04] Production.INFO: CreateAllLog Start [2025-03-03 18:18:04] Production.INFO: 117 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:18:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: count ==13 [2025-03-03 18:18:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:18:04] Production.INFO: count ==21 [2025-03-03 18:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600241') start [2025-03-03 18:18:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600241') end [2025-03-03 18:18:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:18:04] Production.INFO: 1 [2025-03-03 18:18:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:18:04] Production.INFO: ==15158== Releasing lock... [2025-03-03 18:18:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:18:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:18:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:18:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:18:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:18:05] Production.INFO: Total Charge 0 [2025-03-03 18:18:05] Production.INFO: CreateAllLog End [2025-03-03 18:18:05] Production.INFO: Account Balance End. [2025-03-03 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:18:05 [end_date_ymd] => 2025-03-03 18:18:05 [RateCDR] => 1 ) [2025-03-03 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:18:05' and `end` < '2025-03-03 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:18:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:18:05] Production.INFO: ==15154== Releasing lock... [2025-03-03 18:18:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:18:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:18:14] Production.ERROR: CronJobId end10 [2025-03-03 18:18:14] Production.INFO: ==15152== Releasing lock... [2025-03-03 18:18:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:18:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:18:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:18:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:18:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:18:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:18:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:18:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:18:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:18:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:18:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:18:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:18:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:18:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:18:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:18:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:18:16] Production.INFO: call_cost start [2025-03-03 18:18:16] Production.INFO: call_cost end [2025-03-03 18:18:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:18:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:18:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:18:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:18:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:18:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:18:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:18:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:18:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:18:17] Production.INFO: ==15148== Releasing lock... [2025-03-03 18:18:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:18:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:18:18] Production.INFO: count ==4267 [2025-03-03 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:18:05 - End Time 2025-03-03 18:18:05 [2025-03-03 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600240', 'tblTempUsageDetail_20' ) start [2025-03-03 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600240', 'tblTempUsageDetail_20' ) end [2025-03-03 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600240', 'tblTempVendorCDR_20' ) start [2025-03-03 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600240', 'tblTempVendorCDR_20' ) end [2025-03-03 18:18:20] Production.INFO: ProcessCDR(1,14600240,1,1,2) [2025-03-03 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600240', 'tblTempUsageDetail_20' ) start [2025-03-03 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600240', 'tblTempUsageDetail_20' ) end [2025-03-03 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:18:24] Production.INFO: ==15156== Releasing lock... [2025-03-03 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:18:24] Production.INFO: 60 MB #Memory Used# [2025-03-03 23:19:01] Production.INFO: ==15249== Lock acquired, processing the job... [2025-03-03 23:19:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:19:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:19:01] Production.INFO: neon service started [2025-03-03 23:19:01] Production.INFO: neon service started [2025-03-03 23:19:01] Production.INFO: ==15249== Releasing lock... [2025-03-03 23:19:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:19:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:19:02] Production.INFO: ==15254== Lock acquired, processing the job... [2025-03-03 23:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:19:02] Production.INFO: ==15254== Releasing lock... [2025-03-03 23:19:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:19:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:19:02] Production.INFO: ==15252== Lock acquired, processing the job... [2025-03-03 18:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:19:02] Production.INFO: ==15252== Releasing lock... [2025-03-03 18:19:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:19:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:19:03] Production.INFO: ==15258== Lock acquired, processing the job... [2025-03-03 18:19:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:19:03] Production.INFO: ==15268== Lock acquired, processing the job... [2025-03-03 18:19:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:19:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:19:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:19:03] Production.INFO: count ==13 [2025-03-03 18:19:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:19:03] Production.INFO: ==15260== Lock acquired, processing the job... [2025-03-03 18:19:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:19:04] Production.INFO: count ==21 [2025-03-03 18:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600243') start [2025-03-03 18:19:04] Production.INFO: ==15262== Lock acquired, processing the job... [2025-03-03 18:19:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:19:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600243') end [2025-03-03 18:19:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:19:04] Production.INFO: 1 [2025-03-03 18:19:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:19:04] Production.INFO: ==15264== Lock acquired, processing the job... [2025-03-03 18:19:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:19:04] Production.INFO: ==15266== Lock acquired, processing the job... [2025-03-03 18:19:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:19:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:19:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:19:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:19:04] Production.INFO: ==15268== Releasing lock... [2025-03-03 18:19:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:19:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:19:04] Production.INFO: Account Balance Start. [2025-03-03 18:19:04] Production.INFO: CreateAllLog Start [2025-03-03 18:19:04] Production.INFO: 117 [2025-03-03 18:19:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:19:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: ==15260== Releasing lock... [2025-03-03 18:19:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:19:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:19:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.ERROR: done [2025-03-03 18:19:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:04] Production.ERROR: done [2025-03-03 18:19:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:19:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:19:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:19:05] Production.INFO: Total Charge 0 [2025-03-03 18:19:05] Production.INFO: CreateAllLog End [2025-03-03 18:19:05] Production.INFO: Account Balance End. [2025-03-03 18:19:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:19:05] Production.INFO: ==15264== Releasing lock... [2025-03-03 18:19:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:19:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:19:06 [end_date_ymd] => 2025-03-03 18:19:06 [RateCDR] => 1 ) [2025-03-03 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:19:06' and `end` < '2025-03-03 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:19:14] Production.ERROR: CronJobId end10 [2025-03-03 18:19:14] Production.INFO: ==15262== Releasing lock... [2025-03-03 18:19:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:19:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:19:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:19:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:19:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:19:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:19:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:19:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:19:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:19:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:19:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:19:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:19:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:19:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:19:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:19:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:19:15] Production.INFO: call_cost start [2025-03-03 18:19:15] Production.INFO: call_cost end [2025-03-03 18:19:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:19:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:19:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:19:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:19:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:19:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:19:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:19:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:19:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:19:16] Production.INFO: ==15258== Releasing lock... [2025-03-03 18:19:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:19:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:19:19] Production.INFO: count ==4233 [2025-03-03 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:19:06 - End Time 2025-03-03 18:19:06 [2025-03-03 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600247', 'tblTempUsageDetail_20' ) start [2025-03-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600247', 'tblTempUsageDetail_20' ) end [2025-03-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600247', 'tblTempVendorCDR_20' ) start [2025-03-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600247', 'tblTempVendorCDR_20' ) end [2025-03-03 18:19:21] Production.INFO: ProcessCDR(1,14600247,1,1,2) [2025-03-03 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600247', 'tblTempUsageDetail_20' ) start [2025-03-03 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600247', 'tblTempUsageDetail_20' ) end [2025-03-03 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:19:26] Production.INFO: ==15266== Releasing lock... [2025-03-03 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:19:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-03 23:20:02] Production.INFO: ==15350== Lock acquired, processing the job... [2025-03-03 23:20:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:20:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:20:02] Production.INFO: neon service started [2025-03-03 23:20:02] Production.INFO: neon service started [2025-03-03 23:20:02] Production.INFO: ==15350== Releasing lock... [2025-03-03 23:20:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:20:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:20:02] Production.INFO: ==15354== Lock acquired, processing the job... [2025-03-03 18:20:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:20:03] Production.INFO: ==15356== Lock acquired, processing the job... [2025-03-03 23:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 18:20:03] Production.INFO: ==15354== Releasing lock... [2025-03-03 18:20:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:20:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:20:03] Production.INFO: ==15356== Releasing lock... [2025-03-03 23:20:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:20:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:20:04] Production.INFO: ==15359== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 18:20:04] Production.INFO: ==15363== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:20:04] Production.INFO: ==15361== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:20:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 18:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:20:04] Production.ERROR: CronJob PID - 15361 [2025-03-03 18:20:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 18:20:04] Production.ERROR: CronJob ID - 5 [2025-03-03 18:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 18:20:00 [2025-03-03 18:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:20:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:20:04] Production.ERROR: CronJob PID - 15363 [2025-03-03 18:20:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 18:20:04] Production.ERROR: CronJob ID - 7 [2025-03-03 18:20:04] Production.ERROR: CronJob Last Run Time 2025-03-03 18:20:00 [2025-03-03 18:20:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:20:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:20:04] Production.INFO: ==15367== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:20:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 18:20:04] Production.INFO: ==15359== Releasing lock... [2025-03-03 18:20:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 18:20:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:20:04] Production.INFO: ==15371== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 18:20:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:20:04] Production.INFO: ==15365== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:20:04] Production.INFO: Account Balance Start. [2025-03-03 18:20:04] Production.INFO: CreateAllLog Start [2025-03-03 18:20:04] Production.INFO: 117 [2025-03-03 18:20:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:20:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:20:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:04] Production.INFO: ==15369== Lock acquired, processing the job... [2025-03-03 18:20:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:20:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:20:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:20:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:20:05] Production.INFO: Date 2025-02-09 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.INFO: Date 2025-02-10 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.INFO: ==15373== Lock acquired, processing the job... [2025-03-03 18:20:05] Production.INFO: Date 2025-02-11 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:20:05] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:20:05] Production.INFO: ==15363== Releasing lock... [2025-03-03 18:20:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:20:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:20:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:20:05] Production.INFO: Date 2025-02-12 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.ERROR: done [2025-03-03 18:20:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:20:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 18:20:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600252', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 18:20:05] Production.INFO: count ==13 [2025-03-03 18:20:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:20:05] Production.INFO: count ==21 [2025-03-03 18:20:05] Production.INFO: Date 2025-02-13 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600251') start [2025-03-03 18:20:05] Production.ERROR: done [2025-03-03 18:20:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:20:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600251') end [2025-03-03 18:20:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:20:05] Production.INFO: 1 [2025-03-03 18:20:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:20:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.INFO: ==15373== Releasing lock... [2025-03-03 18:20:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:20:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:20:05] Production.ERROR: done [2025-03-03 18:20:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:20:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-19 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-20 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-21 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-22 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-23 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-24 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-25 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-26 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-27 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-02-28 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-03-01 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-03-02 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Date 2025-03-03 [2025-03-03 18:20:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:20:06] Production.INFO: Total Charge 0 [2025-03-03 18:20:06] Production.INFO: CreateAllLog End [2025-03-03 18:20:06] Production.INFO: Account Balance End. [2025-03-03 18:20:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:20:06] Production.INFO: ==15367== Releasing lock... [2025-03-03 18:20:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:20:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:20:07 [end_date_ymd] => 2025-03-03 18:20:07 [RateCDR] => 1 ) [2025-03-03 18:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:20:07' and `end` < '2025-03-03 18:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:20:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600252', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 18:20:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 18:20:10] Production.INFO: ProcessCDR(1,14600252,1,1,2) [2025-03-03 18:20:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600252,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:20:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600252,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:20:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:20:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:20:10] Production.INFO: ==15371== Releasing lock... [2025-03-03 18:20:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 18:20:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 18:20:16] Production.ERROR: CronJobId end10 [2025-03-03 18:20:16] Production.INFO: ==15365== Releasing lock... [2025-03-03 18:20:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:20:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:20:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:20:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:20:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:20:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:20:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:20:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:20:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:20:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:20:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:20:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:20:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:20:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:20:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:20:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:20:17] Production.INFO: call_cost start [2025-03-03 18:20:17] Production.INFO: call_cost end [2025-03-03 18:20:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:20:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:20:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:20:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:20:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:20:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:20:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:20:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:20:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:20:18] Production.INFO: ==15361== Releasing lock... [2025-03-03 18:20:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:20:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:20:20] Production.INFO: count ==4220 [2025-03-03 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:20:07 - End Time 2025-03-03 18:20:07 [2025-03-03 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600253', 'tblTempUsageDetail_20' ) start [2025-03-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600253', 'tblTempUsageDetail_20' ) end [2025-03-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600253', 'tblTempVendorCDR_20' ) start [2025-03-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600253', 'tblTempVendorCDR_20' ) end [2025-03-03 18:20:21] Production.INFO: ProcessCDR(1,14600253,1,1,2) [2025-03-03 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600253', 'tblTempUsageDetail_20' ) start [2025-03-03 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600253', 'tblTempUsageDetail_20' ) end [2025-03-03 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:20:26] Production.INFO: ==15369== Releasing lock... [2025-03-03 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:20:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-03 23:21:01] Production.INFO: ==15451== Lock acquired, processing the job... [2025-03-03 23:21:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:21:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:21:01] Production.INFO: neon service started [2025-03-03 23:21:01] Production.INFO: neon service started [2025-03-03 23:21:01] Production.INFO: ==15451== Releasing lock... [2025-03-03 23:21:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:21:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:21:02] Production.INFO: ==15453== Lock acquired, processing the job... [2025-03-03 18:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:21:02] Production.INFO: ==15455== Lock acquired, processing the job... [2025-03-03 23:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:21:02] Production.INFO: ==15455== Releasing lock... [2025-03-03 23:21:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:21:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:21:02] Production.INFO: ==15453== Releasing lock... [2025-03-03 18:21:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:21:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:21:03] Production.INFO: ==15457== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:21:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:21:03] Production.INFO: ==15459== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:21:03] Production.INFO: ==15468== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:21:03] Production.INFO: ==15459== Releasing lock... [2025-03-03 18:21:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:21:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:21:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:21:03] Production.INFO: ==15461== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:21:03] Production.INFO: ==15464== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:21:03] Production.INFO: count ==13 [2025-03-03 18:21:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:21:03] Production.INFO: count ==21 [2025-03-03 18:21:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600256') start [2025-03-03 18:21:03] Production.INFO: ==15466== Lock acquired, processing the job... [2025-03-03 18:21:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:21:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:21:04] Production.INFO: Account Balance Start. [2025-03-03 18:21:04] Production.INFO: CreateAllLog Start [2025-03-03 18:21:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:21:04] Production.INFO: 117 [2025-03-03 18:21:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:21:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:21:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600256') end [2025-03-03 18:21:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:21:04] Production.INFO: 1 [2025-03-03 18:21:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:21:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: ==15468== Releasing lock... [2025-03-03 18:21:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:21:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:21:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:21:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.ERROR: done [2025-03-03 18:21:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.ERROR: done [2025-03-03 18:21:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:21:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:21:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:21:05] Production.INFO: Total Charge 0 [2025-03-03 18:21:05] Production.INFO: CreateAllLog End [2025-03-03 18:21:05] Production.INFO: Account Balance End. [2025-03-03 18:21:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:21:05] Production.INFO: ==15464== Releasing lock... [2025-03-03 18:21:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:21:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:21:05 [end_date_ymd] => 2025-03-03 18:21:05 [RateCDR] => 1 ) [2025-03-03 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:21:05' and `end` < '2025-03-03 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:21:14] Production.ERROR: CronJobId end10 [2025-03-03 18:21:14] Production.INFO: ==15461== Releasing lock... [2025-03-03 18:21:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:21:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:21:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:21:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:21:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:21:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:21:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:21:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:21:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:21:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:21:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:21:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:21:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:21:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:21:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:21:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:21:15] Production.INFO: call_cost start [2025-03-03 18:21:15] Production.INFO: call_cost end [2025-03-03 18:21:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:21:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:21:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:21:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:21:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:21:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:21:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:21:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:21:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:21:16] Production.INFO: ==15457== Releasing lock... [2025-03-03 18:21:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:21:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:21:18] Production.INFO: count ==4195 [2025-03-03 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:21:05 - End Time 2025-03-03 18:21:05 [2025-03-03 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600258', 'tblTempUsageDetail_20' ) start [2025-03-03 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600258', 'tblTempUsageDetail_20' ) end [2025-03-03 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600258', 'tblTempVendorCDR_20' ) start [2025-03-03 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600258', 'tblTempVendorCDR_20' ) end [2025-03-03 18:21:20] Production.INFO: ProcessCDR(1,14600258,1,1,2) [2025-03-03 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600258', 'tblTempUsageDetail_20' ) start [2025-03-03 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600258', 'tblTempUsageDetail_20' ) end [2025-03-03 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:21:25] Production.INFO: ==15466== Releasing lock... [2025-03-03 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:21:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-03 23:22:01] Production.INFO: ==15550== Lock acquired, processing the job... [2025-03-03 23:22:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:22:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:22:01] Production.INFO: neon service started [2025-03-03 23:22:01] Production.INFO: neon service started [2025-03-03 23:22:01] Production.INFO: ==15550== Releasing lock... [2025-03-03 23:22:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:22:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:22:01] Production.INFO: ==15554== Lock acquired, processing the job... [2025-03-03 23:22:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:22:01] Production.INFO: ==15554== Releasing lock... [2025-03-03 23:22:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:22:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:22:01] Production.INFO: ==15552== Lock acquired, processing the job... [2025-03-03 18:22:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:22:02] Production.INFO: ==15552== Releasing lock... [2025-03-03 18:22:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:22:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:22:03] Production.INFO: ==15563== Lock acquired, processing the job... [2025-03-03 18:22:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:22:03] Production.INFO: ==15557== Lock acquired, processing the job... [2025-03-03 18:22:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:22:03] Production.INFO: ==15561== Lock acquired, processing the job... [2025-03-03 18:22:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:22:03] Production.INFO: ==15559== Lock acquired, processing the job... [2025-03-03 18:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:22:03] Production.INFO: Account Balance Start. [2025-03-03 18:22:03] Production.INFO: CreateAllLog Start [2025-03-03 18:22:03] Production.INFO: 117 [2025-03-03 18:22:03] Production.INFO: ==15565== Lock acquired, processing the job... [2025-03-03 18:22:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:22:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:22:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:22:03] Production.INFO: ==15567== Lock acquired, processing the job... [2025-03-03 18:22:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:22:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:22:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:22:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:22:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:22:03] Production.INFO: ==15559== Releasing lock... [2025-03-03 18:22:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:22:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:22:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:22:03] Production.ERROR: done [2025-03-03 18:22:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:22:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:22:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:03] Production.INFO: count ==13 [2025-03-03 18:22:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:22:03] Production.INFO: count ==21 [2025-03-03 18:22:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600262') start [2025-03-03 18:22:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600262') end [2025-03-03 18:22:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:22:04] Production.INFO: 1 [2025-03-03 18:22:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:22:04] Production.ERROR: done [2025-03-03 18:22:04] Production.INFO: ==15567== Releasing lock... [2025-03-03 18:22:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:22:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:22:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:22:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:22:04] Production.INFO: Total Charge 0 [2025-03-03 18:22:04] Production.INFO: CreateAllLog End [2025-03-03 18:22:04] Production.INFO: Account Balance End. [2025-03-03 18:22:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:22:04] Production.INFO: ==15563== Releasing lock... [2025-03-03 18:22:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:22:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:22:05 [end_date_ymd] => 2025-03-03 18:22:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:22:05' and `end` < '2025-03-03 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-03-03 18:22:13] Production.ERROR: CronJobId end10 [2025-03-03 18:22:13] Production.INFO: ==15561== Releasing lock... [2025-03-03 18:22:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:22:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:22:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:22:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:22:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:22:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:22:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:22:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:22:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:22:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:22:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:22:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:22:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:22:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:22:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:22:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:22:15] Production.INFO: call_cost start [2025-03-03 18:22:15] Production.INFO: call_cost end [2025-03-03 18:22:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:22:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:22:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:22:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:22:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:22:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:22:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:22:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:22:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:22:16] Production.INFO: ==15557== Releasing lock... [2025-03-03 18:22:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:22:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:22:18] Production.INFO: count ==4156 [2025-03-03 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:22:05 - End Time 2025-03-03 18:22:05 [2025-03-03 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600263', 'tblTempUsageDetail_20' ) start [2025-03-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600263', 'tblTempUsageDetail_20' ) end [2025-03-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600263', 'tblTempVendorCDR_20' ) start [2025-03-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600263', 'tblTempVendorCDR_20' ) end [2025-03-03 18:22:20] Production.INFO: ProcessCDR(1,14600263,1,1,2) [2025-03-03 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600263', 'tblTempUsageDetail_20' ) start [2025-03-03 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600263', 'tblTempUsageDetail_20' ) end [2025-03-03 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:22:23] Production.INFO: ==15565== Releasing lock... [2025-03-03 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:22:23] Production.INFO: 59 MB #Memory Used# [2025-03-03 23:23:01] Production.INFO: ==15694== Lock acquired, processing the job... [2025-03-03 23:23:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:23:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:23:01] Production.INFO: neon service started [2025-03-03 23:23:01] Production.INFO: neon service started [2025-03-03 23:23:01] Production.INFO: ==15694== Releasing lock... [2025-03-03 23:23:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:23:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:23:02] Production.INFO: ==15698== Lock acquired, processing the job... [2025-03-03 23:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:23:02] Production.INFO: ==15698== Releasing lock... [2025-03-03 23:23:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:23:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:23:02] Production.INFO: ==15696== Lock acquired, processing the job... [2025-03-03 18:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:23:02] Production.INFO: ==15696== Releasing lock... [2025-03-03 18:23:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:23:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:23:03] Production.INFO: ==15701== Lock acquired, processing the job... [2025-03-03 18:23:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:23:03] Production.INFO: ==15703== Lock acquired, processing the job... [2025-03-03 18:23:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:23:03] Production.INFO: ==15709== Lock acquired, processing the job... [2025-03-03 18:23:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:23:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:23:03] Production.INFO: ==15705== Lock acquired, processing the job... [2025-03-03 18:23:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:23:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:23:03] Production.INFO: ==15707== Lock acquired, processing the job... [2025-03-03 18:23:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:23:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:23:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:23:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:23:03] Production.INFO: ==15711== Lock acquired, processing the job... [2025-03-03 18:23:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:23:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:23:04] Production.INFO: ==15703== Releasing lock... [2025-03-03 18:23:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:23:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:23:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:23:04] Production.INFO: count ==13 [2025-03-03 18:23:04] Production.INFO: Account Balance Start. [2025-03-03 18:23:04] Production.INFO: CreateAllLog Start [2025-03-03 18:23:04] Production.INFO: 117 [2025-03-03 18:23:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:23:04] Production.INFO: count ==21 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:23:04] Production.ERROR: done [2025-03-03 18:23:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600266') start [2025-03-03 18:23:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.ERROR: done [2025-03-03 18:23:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600266') end [2025-03-03 18:23:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:23:04] Production.INFO: 1 [2025-03-03 18:23:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:23:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: ==15711== Releasing lock... [2025-03-03 18:23:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:23:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:23:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:23:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:23:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:23:05] Production.INFO: Total Charge 0 [2025-03-03 18:23:05] Production.INFO: CreateAllLog End [2025-03-03 18:23:05] Production.INFO: Account Balance End. [2025-03-03 18:23:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:23:05] Production.INFO: ==15707== Releasing lock... [2025-03-03 18:23:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:23:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:23:05 [end_date_ymd] => 2025-03-03 18:23:05 [RateCDR] => 1 ) [2025-03-03 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:23:05' and `end` < '2025-03-03 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:23:14] Production.ERROR: CronJobId end10 [2025-03-03 18:23:14] Production.INFO: ==15705== Releasing lock... [2025-03-03 18:23:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:23:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:23:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:23:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:23:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:23:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:23:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:23:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:23:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:23:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:23:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:23:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:23:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:23:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:23:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:23:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:23:15] Production.INFO: call_cost start [2025-03-03 18:23:15] Production.INFO: call_cost end [2025-03-03 18:23:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:23:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:23:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:23:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:23:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:23:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:23:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:23:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:23:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:23:16] Production.INFO: ==15701== Releasing lock... [2025-03-03 18:23:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:23:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:23:18] Production.INFO: count ==4153 [2025-03-03 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:23:05 - End Time 2025-03-03 18:23:05 [2025-03-03 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600268', 'tblTempUsageDetail_20' ) start [2025-03-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600268', 'tblTempUsageDetail_20' ) end [2025-03-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600268', 'tblTempVendorCDR_20' ) start [2025-03-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600268', 'tblTempVendorCDR_20' ) end [2025-03-03 18:23:20] Production.INFO: ProcessCDR(1,14600268,1,1,2) [2025-03-03 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600268', 'tblTempUsageDetail_20' ) start [2025-03-03 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600268', 'tblTempUsageDetail_20' ) end [2025-03-03 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:23:25] Production.INFO: ==15709== Releasing lock... [2025-03-03 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:23:25] Production.INFO: 59 MB #Memory Used# [2025-03-03 23:24:02] Production.INFO: ==15798== Lock acquired, processing the job... [2025-03-03 23:24:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:24:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:24:02] Production.INFO: neon service started [2025-03-03 23:24:02] Production.INFO: neon service started [2025-03-03 23:24:02] Production.INFO: ==15798== Releasing lock... [2025-03-03 23:24:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:24:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:24:02] Production.INFO: ==15800== Lock acquired, processing the job... [2025-03-03 18:24:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:24:03] Production.INFO: ==15800== Releasing lock... [2025-03-03 18:24:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:24:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:24:03] Production.INFO: ==15802== Lock acquired, processing the job... [2025-03-03 23:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:24:03] Production.INFO: ==15802== Releasing lock... [2025-03-03 23:24:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:24:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:24:04] Production.INFO: ==15804== Lock acquired, processing the job... [2025-03-03 18:24:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:24:04] Production.INFO: ==15810== Lock acquired, processing the job... [2025-03-03 18:24:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:24:04] Production.INFO: ==15806== Lock acquired, processing the job... [2025-03-03 18:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:24:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:24:04] Production.INFO: ==15815== Lock acquired, processing the job... [2025-03-03 18:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:24:04] Production.INFO: Account Balance Start. [2025-03-03 18:24:04] Production.INFO: CreateAllLog Start [2025-03-03 18:24:04] Production.INFO: 117 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:24:04] Production.INFO: ==15808== Lock acquired, processing the job... [2025-03-03 18:24:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:24:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:24:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:24:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:24:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: count ==13 [2025-03-03 18:24:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:24:04] Production.INFO: count ==21 [2025-03-03 18:24:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600272') start [2025-03-03 18:24:04] Production.INFO: ==15812== Lock acquired, processing the job... [2025-03-03 18:24:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:24:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: ==15806== Releasing lock... [2025-03-03 18:24:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:24:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:24:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600272') end [2025-03-03 18:24:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:24:04] Production.INFO: 1 [2025-03-03 18:24:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:24:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: ==15815== Releasing lock... [2025-03-03 18:24:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:24:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:24:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:24:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.ERROR: done [2025-03-03 18:24:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:24:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.ERROR: done [2025-03-03 18:24:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:24:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:24:05] Production.INFO: Total Charge 0 [2025-03-03 18:24:05] Production.INFO: CreateAllLog End [2025-03-03 18:24:05] Production.INFO: Account Balance End. [2025-03-03 18:24:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:24:05] Production.INFO: ==15810== Releasing lock... [2025-03-03 18:24:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:24:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:24:06 [end_date_ymd] => 2025-03-03 18:24:06 [RateCDR] => 1 ) [2025-03-03 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:24:06' and `end` < '2025-03-03 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:24:14] Production.ERROR: CronJobId end10 [2025-03-03 18:24:14] Production.INFO: ==15808== Releasing lock... [2025-03-03 18:24:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:24:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:24:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:24:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:24:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:24:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:24:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:24:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:24:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:24:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:24:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:24:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:24:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:24:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:24:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:24:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:24:16] Production.INFO: call_cost start [2025-03-03 18:24:16] Production.INFO: call_cost end [2025-03-03 18:24:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:24:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:24:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:24:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:24:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:24:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:24:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:24:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:24:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:24:16] Production.INFO: ==15804== Releasing lock... [2025-03-03 18:24:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:24:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:24:19] Production.INFO: count ==4134 [2025-03-03 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:24:06 - End Time 2025-03-03 18:24:06 [2025-03-03 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600273', 'tblTempUsageDetail_20' ) start [2025-03-03 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600273', 'tblTempUsageDetail_20' ) end [2025-03-03 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600273', 'tblTempVendorCDR_20' ) start [2025-03-03 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600273', 'tblTempVendorCDR_20' ) end [2025-03-03 18:24:20] Production.INFO: ProcessCDR(1,14600273,1,1,2) [2025-03-03 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600273', 'tblTempUsageDetail_20' ) start [2025-03-03 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600273', 'tblTempUsageDetail_20' ) end [2025-03-03 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:24:25] Production.INFO: ==15812== Releasing lock... [2025-03-03 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:24:25] Production.INFO: 59 MB #Memory Used# [2025-03-03 23:25:01] Production.INFO: ==15894== Lock acquired, processing the job... [2025-03-03 23:25:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:25:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:25:01] Production.INFO: neon service started [2025-03-03 23:25:01] Production.INFO: neon service started [2025-03-03 23:25:01] Production.INFO: ==15894== Releasing lock... [2025-03-03 23:25:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:25:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:25:02] Production.INFO: ==15898== Lock acquired, processing the job... [2025-03-03 23:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:25:02] Production.INFO: ==15898== Releasing lock... [2025-03-03 23:25:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:25:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:25:02] Production.INFO: ==15896== Lock acquired, processing the job... [2025-03-03 18:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:25:02] Production.INFO: ==15896== Releasing lock... [2025-03-03 18:25:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:25:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:25:03] Production.INFO: ==15907== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:25:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:25:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:25:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:25:03] Production.INFO: ==15913== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:25:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:25:03] Production.INFO: ==15903== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:25:03] Production.INFO: ==15905== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:25:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:25:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:25:03] Production.INFO: count ==13 [2025-03-03 18:25:03] Production.INFO: ==15909== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:25:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:25:03] Production.INFO: count ==21 [2025-03-03 18:25:03] Production.INFO: ==15911== Lock acquired, processing the job... [2025-03-03 18:25:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:25:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600274') start [2025-03-03 18:25:03] Production.INFO: Account Balance Start. [2025-03-03 18:25:03] Production.INFO: CreateAllLog Start [2025-03-03 18:25:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:25:03] Production.INFO: 117 [2025-03-03 18:25:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600274') end [2025-03-03 18:25:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:25:04] Production.INFO: 1 [2025-03-03 18:25:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:25:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: ==15913== Releasing lock... [2025-03-03 18:25:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:25:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:25:04] Production.INFO: ==15905== Releasing lock... [2025-03-03 18:25:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:25:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:25:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.ERROR: done [2025-03-03 18:25:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.ERROR: done [2025-03-03 18:25:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:25:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:25:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:25:05] Production.INFO: Total Charge 0 [2025-03-03 18:25:05] Production.INFO: CreateAllLog End [2025-03-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:25:05 [end_date_ymd] => 2025-03-03 18:25:05 [RateCDR] => 1 ) [2025-03-03 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:25:05' and `end` < '2025-03-03 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:25:05] Production.INFO: Account Balance End. [2025-03-03 18:25:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:25:05] Production.INFO: ==15909== Releasing lock... [2025-03-03 18:25:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:25:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:25:14] Production.ERROR: CronJobId end10 [2025-03-03 18:25:14] Production.INFO: ==15907== Releasing lock... [2025-03-03 18:25:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:25:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:25:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:25:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:25:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:25:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:25:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:25:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:25:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:25:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:25:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:25:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:25:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:25:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:25:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:25:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:25:15] Production.INFO: call_cost start [2025-03-03 18:25:15] Production.INFO: call_cost end [2025-03-03 18:25:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:25:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:25:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:25:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:25:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:25:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:25:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:25:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:25:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:25:16] Production.INFO: ==15903== Releasing lock... [2025-03-03 18:25:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:25:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:25:18] Production.INFO: count ==4103 [2025-03-03 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:25:05 - End Time 2025-03-03 18:25:05 [2025-03-03 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600278', 'tblTempUsageDetail_20' ) start [2025-03-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600278', 'tblTempUsageDetail_20' ) end [2025-03-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600278', 'tblTempVendorCDR_20' ) start [2025-03-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600278', 'tblTempVendorCDR_20' ) end [2025-03-03 18:25:20] Production.INFO: ProcessCDR(1,14600278,1,1,2) [2025-03-03 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600278', 'tblTempUsageDetail_20' ) start [2025-03-03 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600278', 'tblTempUsageDetail_20' ) end [2025-03-03 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:25:24] Production.INFO: ==15911== Releasing lock... [2025-03-03 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:25:24] Production.INFO: 59 MB #Memory Used# [2025-03-03 23:26:02] Production.INFO: ==15997== Lock acquired, processing the job... [2025-03-03 23:26:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:26:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:26:02] Production.INFO: neon service started [2025-03-03 23:26:02] Production.INFO: neon service started [2025-03-03 23:26:02] Production.INFO: ==15997== Releasing lock... [2025-03-03 23:26:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:26:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:26:02] Production.INFO: ==16001== Lock acquired, processing the job... [2025-03-03 18:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:26:02] Production.INFO: ==16001== Releasing lock... [2025-03-03 18:26:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:26:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:26:02] Production.INFO: ==16003== Lock acquired, processing the job... [2025-03-03 23:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:26:02] Production.INFO: ==16003== Releasing lock... [2025-03-03 23:26:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:26:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:26:03] Production.INFO: ==16013== Lock acquired, processing the job... [2025-03-03 18:26:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:26:03] Production.INFO: ==16016== Lock acquired, processing the job... [2025-03-03 18:26:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:26:03] Production.INFO: ==16005== Lock acquired, processing the job... [2025-03-03 18:26:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:26:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:26:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:26:03] Production.INFO: ==16009== Lock acquired, processing the job... [2025-03-03 18:26:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:26:03] Production.INFO: ==16007== Lock acquired, processing the job... [2025-03-03 18:26:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:26:03] Production.INFO: ==16011== Lock acquired, processing the job... [2025-03-03 18:26:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:26:03] Production.INFO: count ==13 [2025-03-03 18:26:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:26:03] Production.INFO: count ==21 [2025-03-03 18:26:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600279') start [2025-03-03 18:26:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:26:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:26:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:26:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:26:04] Production.INFO: Account Balance Start. [2025-03-03 18:26:04] Production.INFO: CreateAllLog Start [2025-03-03 18:26:04] Production.INFO: 117 [2025-03-03 18:26:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:26:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:26:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600279') end [2025-03-03 18:26:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:26:04] Production.INFO: 1 [2025-03-03 18:26:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: ==16016== Releasing lock... [2025-03-03 18:26:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:26:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:26:04] Production.ERROR: done [2025-03-03 18:26:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.ERROR: done [2025-03-03 18:26:04] Production.INFO: ==16007== Releasing lock... [2025-03-03 18:26:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:26:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:26:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:26:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:26:05] Production.INFO: Total Charge 0 [2025-03-03 18:26:05] Production.INFO: CreateAllLog End [2025-03-03 18:26:05] Production.INFO: Account Balance End. [2025-03-03 18:26:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:26:05] Production.INFO: ==16011== Releasing lock... [2025-03-03 18:26:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:26:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:26:05 [end_date_ymd] => 2025-03-03 18:26:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:26:05' and `end` < '2025-03-03 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-03-03 18:26:12] Production.ERROR: CronJobId end10 [2025-03-03 18:26:12] Production.INFO: ==16009== Releasing lock... [2025-03-03 18:26:12] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:26:12] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:26:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:26:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:26:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:26:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:26:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:26:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:26:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:26:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:26:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:26:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:26:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:26:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:26:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:26:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:26:14] Production.INFO: call_cost start [2025-03-03 18:26:15] Production.INFO: call_cost end [2025-03-03 18:26:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:26:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:26:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:26:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:26:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:26:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:26:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:26:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:26:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:26:15] Production.INFO: ==16005== Releasing lock... [2025-03-03 18:26:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:26:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:26:18] Production.INFO: count ==4095 [2025-03-03 18:26:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:26:05 - End Time 2025-03-03 18:26:05 [2025-03-03 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600283', 'tblTempUsageDetail_20' ) start [2025-03-03 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600283', 'tblTempUsageDetail_20' ) end [2025-03-03 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600283', 'tblTempVendorCDR_20' ) start [2025-03-03 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600283', 'tblTempVendorCDR_20' ) end [2025-03-03 18:26:20] Production.INFO: ProcessCDR(1,14600283,1,1,2) [2025-03-03 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600283', 'tblTempUsageDetail_20' ) start [2025-03-03 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600283', 'tblTempUsageDetail_20' ) end [2025-03-03 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:26:24] Production.INFO: ==16013== Releasing lock... [2025-03-03 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:26:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-03 23:27:01] Production.INFO: ==16095== Lock acquired, processing the job... [2025-03-03 23:27:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:27:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:27:01] Production.INFO: neon service started [2025-03-03 23:27:01] Production.INFO: neon service started [2025-03-03 23:27:01] Production.INFO: ==16095== Releasing lock... [2025-03-03 23:27:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:27:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:27:01] Production.INFO: ==16099== Lock acquired, processing the job... [2025-03-03 23:27:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:27:01] Production.INFO: ==16099== Releasing lock... [2025-03-03 23:27:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:27:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:27:02] Production.INFO: ==16097== Lock acquired, processing the job... [2025-03-03 18:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:27:02] Production.INFO: ==16097== Releasing lock... [2025-03-03 18:27:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:27:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:27:03] Production.INFO: ==16105== Lock acquired, processing the job... [2025-03-03 18:27:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:27:03] Production.INFO: ==16107== Lock acquired, processing the job... [2025-03-03 18:27:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:27:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:27:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:27:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:27:03] Production.INFO: ==16101== Lock acquired, processing the job... [2025-03-03 18:27:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:27:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:27:03] Production.INFO: Account Balance Start. [2025-03-03 18:27:03] Production.INFO: CreateAllLog Start [2025-03-03 18:27:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:27:03] Production.INFO: 117 [2025-03-03 18:27:03] Production.INFO: ==16103== Lock acquired, processing the job... [2025-03-03 18:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:27:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: ==16110== Lock acquired, processing the job... [2025-03-03 18:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:27:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:27:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: ==16112== Lock acquired, processing the job... [2025-03-03 18:27:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:27:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: ==16103== Releasing lock... [2025-03-03 18:27:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:27:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:27:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:27:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:03] Production.INFO: count ==13 [2025-03-03 18:27:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:27:03] Production.INFO: count ==21 [2025-03-03 18:27:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600287') start [2025-03-03 18:27:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:27:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600287') end [2025-03-03 18:27:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:27:04] Production.INFO: 1 [2025-03-03 18:27:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:27:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: ==16112== Releasing lock... [2025-03-03 18:27:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:27:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:27:04] Production.ERROR: done [2025-03-03 18:27:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.ERROR: done [2025-03-03 18:27:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:27:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:27:04] Production.INFO: Total Charge 0 [2025-03-03 18:27:04] Production.INFO: CreateAllLog End [2025-03-03 18:27:05] Production.INFO: Account Balance End. [2025-03-03 18:27:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:27:05] Production.INFO: ==16107== Releasing lock... [2025-03-03 18:27:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:27:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:27:05 [end_date_ymd] => 2025-03-03 18:27:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:27:05' and `end` < '2025-03-03 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-03-03 18:27:14] Production.ERROR: CronJobId end10 [2025-03-03 18:27:14] Production.INFO: ==16105== Releasing lock... [2025-03-03 18:27:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:27:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:27:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:27:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:27:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:27:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:27:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:27:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:27:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:27:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:27:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:27:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:27:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:27:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:27:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:27:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:27:16] Production.INFO: call_cost start [2025-03-03 18:27:16] Production.INFO: call_cost end [2025-03-03 18:27:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:27:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:27:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:27:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:27:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:27:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:27:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:27:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:27:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:27:17] Production.INFO: ==16101== Releasing lock... [2025-03-03 18:27:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:27:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:27:18] Production.INFO: count ==4086 [2025-03-03 18:27:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:27:05 - End Time 2025-03-03 18:27:05 [2025-03-03 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600288', 'tblTempUsageDetail_20' ) start [2025-03-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600288', 'tblTempUsageDetail_20' ) end [2025-03-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600288', 'tblTempVendorCDR_20' ) start [2025-03-03 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600288', 'tblTempVendorCDR_20' ) end [2025-03-03 18:27:20] Production.INFO: ProcessCDR(1,14600288,1,1,2) [2025-03-03 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600288', 'tblTempUsageDetail_20' ) start [2025-03-03 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600288', 'tblTempUsageDetail_20' ) end [2025-03-03 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:27:23] Production.INFO: ==16110== Releasing lock... [2025-03-03 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:27:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-03 23:28:01] Production.INFO: ==16197== Lock acquired, processing the job... [2025-03-03 23:28:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:28:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:28:02] Production.INFO: neon service started [2025-03-03 23:28:02] Production.INFO: neon service started [2025-03-03 23:28:02] Production.INFO: ==16197== Releasing lock... [2025-03-03 23:28:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:28:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:28:02] Production.INFO: ==16201== Lock acquired, processing the job... [2025-03-03 23:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:28:02] Production.INFO: ==16201== Releasing lock... [2025-03-03 23:28:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:28:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:28:02] Production.INFO: ==16199== Lock acquired, processing the job... [2025-03-03 18:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:28:02] Production.INFO: ==16199== Releasing lock... [2025-03-03 18:28:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:28:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:28:03] Production.INFO: ==16205== Lock acquired, processing the job... [2025-03-03 18:28:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:28:03] Production.INFO: ==16203== Lock acquired, processing the job... [2025-03-03 18:28:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:28:03] Production.INFO: ==16207== Lock acquired, processing the job... [2025-03-03 18:28:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:28:03] Production.INFO: ==16212== Lock acquired, processing the job... [2025-03-03 18:28:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:28:04] Production.INFO: ==16209== Lock acquired, processing the job... [2025-03-03 18:28:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:28:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:28:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:28:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:28:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:28:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:28:04] Production.INFO: ==16214== Lock acquired, processing the job... [2025-03-03 18:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:28:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:28:04] Production.INFO: Account Balance Start. [2025-03-03 18:28:04] Production.INFO: CreateAllLog Start [2025-03-03 18:28:04] Production.INFO: 117 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:28:04] Production.INFO: ==16205== Releasing lock... [2025-03-03 18:28:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:28:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:28:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: count ==13 [2025-03-03 18:28:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:28:04] Production.INFO: count ==21 [2025-03-03 18:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600292') start [2025-03-03 18:28:04] Production.ERROR: done [2025-03-03 18:28:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600292') end [2025-03-03 18:28:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:28:04] Production.INFO: 1 [2025-03-03 18:28:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:28:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:28:04] Production.INFO: ==16214== Releasing lock... [2025-03-03 18:28:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:28:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.ERROR: done [2025-03-03 18:28:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:28:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:28:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:28:05] Production.INFO: Total Charge 0 [2025-03-03 18:28:05] Production.INFO: CreateAllLog End [2025-03-03 18:28:05] Production.INFO: Account Balance End. [2025-03-03 18:28:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:28:05] Production.INFO: ==16209== Releasing lock... [2025-03-03 18:28:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:28:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:28:05 [end_date_ymd] => 2025-03-03 18:28:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:28:05' and `end` < '2025-03-03 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-03-03 18:28:14] Production.ERROR: CronJobId end10 [2025-03-03 18:28:14] Production.INFO: ==16207== Releasing lock... [2025-03-03 18:28:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:28:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:28:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:28:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:28:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:28:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:28:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:28:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:28:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:28:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:28:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:28:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:28:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:28:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:28:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:28:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:28:15] Production.INFO: call_cost start [2025-03-03 18:28:15] Production.INFO: call_cost end [2025-03-03 18:28:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:28:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:28:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:28:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:28:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:28:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:28:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:28:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:28:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:28:16] Production.INFO: ==16203== Releasing lock... [2025-03-03 18:28:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:28:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:28:18] Production.INFO: count ==4056 [2025-03-03 18:28:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:28:05 - End Time 2025-03-03 18:28:05 [2025-03-03 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600293', 'tblTempUsageDetail_20' ) start [2025-03-03 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600293', 'tblTempUsageDetail_20' ) end [2025-03-03 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600293', 'tblTempVendorCDR_20' ) start [2025-03-03 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600293', 'tblTempVendorCDR_20' ) end [2025-03-03 18:28:20] Production.INFO: ProcessCDR(1,14600293,1,1,2) [2025-03-03 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600293', 'tblTempUsageDetail_20' ) start [2025-03-03 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600293', 'tblTempUsageDetail_20' ) end [2025-03-03 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:28:24] Production.INFO: ==16212== Releasing lock... [2025-03-03 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:28:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-03 23:29:01] Production.INFO: ==16308== Lock acquired, processing the job... [2025-03-03 23:29:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:29:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:29:01] Production.INFO: neon service started [2025-03-03 23:29:01] Production.INFO: neon service started [2025-03-03 23:29:01] Production.INFO: ==16308== Releasing lock... [2025-03-03 23:29:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:29:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:29:01] Production.INFO: ==16314== Lock acquired, processing the job... [2025-03-03 23:29:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:29:01] Production.INFO: ==16314== Releasing lock... [2025-03-03 23:29:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:29:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:29:01] Production.INFO: ==16312== Lock acquired, processing the job... [2025-03-03 18:29:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:29:02] Production.INFO: ==16312== Releasing lock... [2025-03-03 18:29:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:29:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:29:03] Production.INFO: ==16323== Lock acquired, processing the job... [2025-03-03 18:29:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:29:03] Production.INFO: ==16317== Lock acquired, processing the job... [2025-03-03 18:29:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:29:03] Production.INFO: ==16319== Lock acquired, processing the job... [2025-03-03 18:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:29:03] Production.INFO: Account Balance Start. [2025-03-03 18:29:03] Production.INFO: CreateAllLog Start [2025-03-03 18:29:03] Production.INFO: ==16327== Lock acquired, processing the job... [2025-03-03 18:29:03] Production.INFO: 117 [2025-03-03 18:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:29:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:29:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: ==16321== Lock acquired, processing the job... [2025-03-03 18:29:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:29:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:29:03] Production.INFO: count ==13 [2025-03-03 18:29:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:29:03] Production.INFO: ==16325== Lock acquired, processing the job... [2025-03-03 18:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:29:03] Production.INFO: count ==21 [2025-03-03 18:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600296') start [2025-03-03 18:29:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:29:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:29:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:29:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:29:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:29:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600296') end [2025-03-03 18:29:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:29:03] Production.INFO: 1 [2025-03-03 18:29:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:29:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: ==16319== Releasing lock... [2025-03-03 18:29:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:29:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:29:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: ==16327== Releasing lock... [2025-03-03 18:29:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:29:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:29:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: Date 2025-02-18 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:03] Production.INFO: Date 2025-02-19 [2025-03-03 18:29:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.ERROR: done [2025-03-03 18:29:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.ERROR: done [2025-03-03 18:29:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:29:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:29:04] Production.INFO: Total Charge 0 [2025-03-03 18:29:04] Production.INFO: CreateAllLog End [2025-03-03 18:29:04] Production.INFO: Account Balance End. [2025-03-03 18:29:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:29:04] Production.INFO: ==16323== Releasing lock... [2025-03-03 18:29:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:29:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:29:05 [end_date_ymd] => 2025-03-03 18:29:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:29:05' and `end` < '2025-03-03 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-03-03 18:29:14] Production.ERROR: CronJobId end10 [2025-03-03 18:29:14] Production.INFO: ==16321== Releasing lock... [2025-03-03 18:29:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:29:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:29:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:29:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:29:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:29:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:29:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:29:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:29:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:29:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:29:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:29:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:29:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:29:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:29:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:29:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:29:15] Production.INFO: call_cost start [2025-03-03 18:29:15] Production.INFO: call_cost end [2025-03-03 18:29:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:29:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:29:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:29:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:29:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:29:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:29:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:29:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:29:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:29:16] Production.INFO: ==16317== Releasing lock... [2025-03-03 18:29:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:29:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:29:18] Production.INFO: count ==4015 [2025-03-03 18:29:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:29:05 - End Time 2025-03-03 18:29:05 [2025-03-03 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600298', 'tblTempUsageDetail_20' ) start [2025-03-03 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600298', 'tblTempUsageDetail_20' ) end [2025-03-03 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600298', 'tblTempVendorCDR_20' ) start [2025-03-03 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600298', 'tblTempVendorCDR_20' ) end [2025-03-03 18:29:20] Production.INFO: ProcessCDR(1,14600298,1,1,2) [2025-03-03 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600298', 'tblTempUsageDetail_20' ) start [2025-03-03 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600298', 'tblTempUsageDetail_20' ) end [2025-03-03 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:29:24] Production.INFO: ==16325== Releasing lock... [2025-03-03 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:29:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-03 23:30:01] Production.INFO: ==16410== Lock acquired, processing the job... [2025-03-03 23:30:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:30:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:30:01] Production.INFO: neon service started [2025-03-03 23:30:01] Production.INFO: neon service started [2025-03-03 23:30:01] Production.INFO: ==16410== Releasing lock... [2025-03-03 23:30:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:30:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:30:02] Production.INFO: ==16412== Lock acquired, processing the job... [2025-03-03 18:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:30:02] Production.INFO: ==16412== Releasing lock... [2025-03-03 18:30:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:30:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:30:02] Production.INFO: ==16414== Lock acquired, processing the job... [2025-03-03 23:30:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:30:03] Production.INFO: ==16414== Releasing lock... [2025-03-03 23:30:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:30:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:30:03] Production.INFO: ==16417== Lock acquired, processing the job... [2025-03-03 18:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 18:30:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 18:30:03] Production.INFO: ==16419== Lock acquired, processing the job... [2025-03-03 18:30:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:30:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 18:30:03] Production.INFO: ==16417== Releasing lock... [2025-03-03 18:30:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 18:30:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:30:03] Production.INFO: ==16423== Lock acquired, processing the job... [2025-03-03 18:30:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:30:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:30:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:30:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:30:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:30:03] Production.INFO: ==16429== Lock acquired, processing the job... [2025-03-03 18:30:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 18:30:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:30:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:30:04] Production.INFO: ==16421== Lock acquired, processing the job... [2025-03-03 18:30:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:30:04] Production.ERROR: done [2025-03-03 18:30:04] Production.INFO: ==16427== Lock acquired, processing the job... [2025-03-03 18:30:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:30:04] Production.INFO: ==16425== Lock acquired, processing the job... [2025-03-03 18:30:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:30:04] Production.INFO: ==16431== Lock acquired, processing the job... [2025-03-03 18:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:30:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:30:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 18:30:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600300', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 18:30:04] Production.INFO: Account Balance Start. [2025-03-03 18:30:04] Production.INFO: CreateAllLog Start [2025-03-03 18:30:04] Production.INFO: 117 [2025-03-03 18:30:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:30:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:30:04] Production.INFO: count ==13 [2025-03-03 18:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:30:04] Production.INFO: count ==21 [2025-03-03 18:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600303') start [2025-03-03 18:30:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:04] Production.ERROR: done [2025-03-03 18:30:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:30:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600303') end [2025-03-03 18:30:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:30:04] Production.INFO: 1 [2025-03-03 18:30:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:30:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:30:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:04] Production.INFO: ==16431== Releasing lock... [2025-03-03 18:30:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:30:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:30:05] Production.ERROR: done [2025-03-03 18:30:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: ==16421== Releasing lock... [2025-03-03 18:30:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:30:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:30:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:30:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:30:05] Production.INFO: Total Charge 0 [2025-03-03 18:30:05] Production.INFO: CreateAllLog End [2025-03-03 18:30:05] Production.INFO: Account Balance End. [2025-03-03 18:30:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:30:05] Production.INFO: ==16425== Releasing lock... [2025-03-03 18:30:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:30:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:30:06 [end_date_ymd] => 2025-03-03 18:30:06 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:30:06' and `end` < '2025-03-03 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-03-03 18:30:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600300', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 18:30:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 18:30:09] Production.INFO: ProcessCDR(1,14600300,1,1,2) [2025-03-03 18:30:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600300,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:30:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600300,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:30:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:30:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:30:09] Production.INFO: ==16429== Releasing lock... [2025-03-03 18:30:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 18:30:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 18:30:15] Production.ERROR: CronJobId end10 [2025-03-03 18:30:15] Production.INFO: ==16423== Releasing lock... [2025-03-03 18:30:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:30:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:30:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:30:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:30:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:30:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:30:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:30:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:30:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:30:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:30:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:30:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:30:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:30:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:30:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:30:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:30:17] Production.INFO: call_cost start [2025-03-03 18:30:17] Production.INFO: call_cost end [2025-03-03 18:30:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:30:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:30:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:30:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:30:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:30:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:30:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:30:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:30:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:30:18] Production.INFO: ==16419== Releasing lock... [2025-03-03 18:30:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:30:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:30:19] Production.INFO: count ==3991 [2025-03-03 18:30:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:30:06 - End Time 2025-03-03 18:30:06 [2025-03-03 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600304', 'tblTempUsageDetail_20' ) start [2025-03-03 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600304', 'tblTempUsageDetail_20' ) end [2025-03-03 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600304', 'tblTempVendorCDR_20' ) start [2025-03-03 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600304', 'tblTempVendorCDR_20' ) end [2025-03-03 18:30:21] Production.INFO: ProcessCDR(1,14600304,1,1,2) [2025-03-03 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600304', 'tblTempUsageDetail_20' ) start [2025-03-03 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600304', 'tblTempUsageDetail_20' ) end [2025-03-03 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:30:24] Production.INFO: ==16427== Releasing lock... [2025-03-03 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:30:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-03 23:31:02] Production.INFO: ==16513== Lock acquired, processing the job... [2025-03-03 23:31:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:31:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:31:02] Production.INFO: neon service started [2025-03-03 23:31:02] Production.INFO: neon service started [2025-03-03 23:31:02] Production.INFO: ==16513== Releasing lock... [2025-03-03 23:31:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:31:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:31:02] Production.INFO: ==16515== Lock acquired, processing the job... [2025-03-03 18:31:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:31:03] Production.INFO: ==16515== Releasing lock... [2025-03-03 18:31:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:31:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:31:03] Production.INFO: ==16517== Lock acquired, processing the job... [2025-03-03 23:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:31:03] Production.INFO: ==16517== Releasing lock... [2025-03-03 23:31:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:31:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:31:03] Production.INFO: ==16520== Lock acquired, processing the job... [2025-03-03 18:31:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:31:03] Production.INFO: ==16524== Lock acquired, processing the job... [2025-03-03 18:31:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:31:03] Production.INFO: ==16526== Lock acquired, processing the job... [2025-03-03 18:31:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:31:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:31:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:31:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:31:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:31:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:31:04] Production.INFO: Account Balance Start. [2025-03-03 18:31:04] Production.INFO: CreateAllLog Start [2025-03-03 18:31:04] Production.INFO: 117 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: ==16528== Lock acquired, processing the job... [2025-03-03 18:31:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:31:04] Production.INFO: ==16522== Lock acquired, processing the job... [2025-03-03 18:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:31:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: ==16530== Lock acquired, processing the job... [2025-03-03 18:31:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:31:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: ==16522== Releasing lock... [2025-03-03 18:31:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:31:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:31:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:31:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:31:04] Production.INFO: count ==13 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:31:04] Production.INFO: count ==21 [2025-03-03 18:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600308') start [2025-03-03 18:31:04] Production.ERROR: done [2025-03-03 18:31:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:31:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600308') end [2025-03-03 18:31:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:31:04] Production.INFO: 1 [2025-03-03 18:31:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:31:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:31:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:31:05] Production.INFO: Total Charge 0 [2025-03-03 18:31:05] Production.INFO: ==16530== Releasing lock... [2025-03-03 18:31:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:31:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:31:05] Production.INFO: CreateAllLog End [2025-03-03 18:31:05] Production.ERROR: done [2025-03-03 18:31:05] Production.INFO: Account Balance End. [2025-03-03 18:31:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:31:05] Production.INFO: ==16526== Releasing lock... [2025-03-03 18:31:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:31:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:31:06 [end_date_ymd] => 2025-03-03 18:31:06 [RateCDR] => 1 ) [2025-03-03 18:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:31:06' and `end` < '2025-03-03 18:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:31:14] Production.ERROR: CronJobId end10 [2025-03-03 18:31:14] Production.INFO: ==16524== Releasing lock... [2025-03-03 18:31:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:31:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:31:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:31:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:31:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:31:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:31:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:31:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:31:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:31:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:31:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:31:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:31:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:31:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:31:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:31:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:31:15] Production.INFO: call_cost start [2025-03-03 18:31:15] Production.INFO: call_cost end [2025-03-03 18:31:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:31:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:31:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:31:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:31:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:31:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:31:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:31:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:31:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:31:16] Production.INFO: ==16520== Releasing lock... [2025-03-03 18:31:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:31:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:31:19] Production.INFO: count ==3937 [2025-03-03 18:31:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:31:06 - End Time 2025-03-03 18:31:06 [2025-03-03 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600309', 'tblTempUsageDetail_20' ) start [2025-03-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600309', 'tblTempUsageDetail_20' ) end [2025-03-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600309', 'tblTempVendorCDR_20' ) start [2025-03-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600309', 'tblTempVendorCDR_20' ) end [2025-03-03 18:31:20] Production.INFO: ProcessCDR(1,14600309,1,1,2) [2025-03-03 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600309', 'tblTempUsageDetail_20' ) start [2025-03-03 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600309', 'tblTempUsageDetail_20' ) end [2025-03-03 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:31:25] Production.INFO: ==16528== Releasing lock... [2025-03-03 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:31:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-03 23:32:01] Production.INFO: ==16614== Lock acquired, processing the job... [2025-03-03 23:32:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:32:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:32:01] Production.INFO: neon service started [2025-03-03 23:32:01] Production.INFO: neon service started [2025-03-03 23:32:01] Production.INFO: ==16614== Releasing lock... [2025-03-03 23:32:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:32:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:32:02] Production.INFO: ==16618== Lock acquired, processing the job... [2025-03-03 23:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:32:02] Production.INFO: ==16618== Releasing lock... [2025-03-03 23:32:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:32:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:32:02] Production.INFO: ==16616== Lock acquired, processing the job... [2025-03-03 18:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:32:02] Production.INFO: ==16616== Releasing lock... [2025-03-03 18:32:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:32:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:32:03] Production.INFO: ==16623== Lock acquired, processing the job... [2025-03-03 18:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:32:03] Production.INFO: ==16625== Lock acquired, processing the job... [2025-03-03 18:32:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:32:03] Production.INFO: ==16627== Lock acquired, processing the job... [2025-03-03 18:32:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:32:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:32:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:32:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:32:03] Production.INFO: Account Balance Start. [2025-03-03 18:32:03] Production.INFO: CreateAllLog Start [2025-03-03 18:32:03] Production.INFO: 117 [2025-03-03 18:32:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:32:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:32:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:03] Production.INFO: ==16623== Releasing lock... [2025-03-03 18:32:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:32:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:32:03] Production.INFO: ==16621== Lock acquired, processing the job... [2025-03-03 18:32:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:32:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: ==16629== Lock acquired, processing the job... [2025-03-03 18:32:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:32:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:32:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:32:04] Production.INFO: ==16631== Lock acquired, processing the job... [2025-03-03 18:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:32:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:32:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: count ==13 [2025-03-03 18:32:04] Production.ERROR: done [2025-03-03 18:32:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:32:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:32:04] Production.INFO: count ==21 [2025-03-03 18:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600313') start [2025-03-03 18:32:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600313') end [2025-03-03 18:32:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:32:04] Production.INFO: 1 [2025-03-03 18:32:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:32:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.ERROR: done [2025-03-03 18:32:04] Production.INFO: ==16631== Releasing lock... [2025-03-03 18:32:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:32:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:32:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:32:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:32:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:32:05] Production.INFO: Total Charge 0 [2025-03-03 18:32:05] Production.INFO: CreateAllLog End [2025-03-03 18:32:05] Production.INFO: Account Balance End. [2025-03-03 18:32:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:32:05] Production.INFO: ==16627== Releasing lock... [2025-03-03 18:32:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:32:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:32:06 [end_date_ymd] => 2025-03-03 18:32:06 [RateCDR] => 1 ) [2025-03-03 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:32:06' and `end` < '2025-03-03 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:32:15] Production.ERROR: CronJobId end10 [2025-03-03 18:32:15] Production.INFO: ==16625== Releasing lock... [2025-03-03 18:32:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:32:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:32:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:32:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:32:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:32:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:32:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:32:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:32:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:32:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:32:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:32:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:32:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:32:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:32:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:32:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:32:16] Production.INFO: call_cost start [2025-03-03 18:32:16] Production.INFO: call_cost end [2025-03-03 18:32:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:32:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:32:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:32:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:32:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:32:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:32:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:32:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:32:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:32:17] Production.INFO: ==16621== Releasing lock... [2025-03-03 18:32:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:32:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:32:18] Production.INFO: count ==3924 [2025-03-03 18:32:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:32:06 - End Time 2025-03-03 18:32:06 [2025-03-03 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600314', 'tblTempUsageDetail_20' ) start [2025-03-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600314', 'tblTempUsageDetail_20' ) end [2025-03-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600314', 'tblTempVendorCDR_20' ) start [2025-03-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600314', 'tblTempVendorCDR_20' ) end [2025-03-03 18:32:20] Production.INFO: ProcessCDR(1,14600314,1,1,2) [2025-03-03 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600314', 'tblTempUsageDetail_20' ) start [2025-03-03 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600314', 'tblTempUsageDetail_20' ) end [2025-03-03 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:32:23] Production.INFO: ==16629== Releasing lock... [2025-03-03 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:32:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-03 23:33:02] Production.INFO: ==16719== Lock acquired, processing the job... [2025-03-03 23:33:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:33:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:33:02] Production.INFO: neon service started [2025-03-03 23:33:02] Production.INFO: neon service started [2025-03-03 23:33:02] Production.INFO: ==16719== Releasing lock... [2025-03-03 23:33:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:33:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:33:02] Production.INFO: ==16721== Lock acquired, processing the job... [2025-03-03 18:33:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:33:03] Production.INFO: ==16721== Releasing lock... [2025-03-03 18:33:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:33:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:33:03] Production.INFO: ==16723== Lock acquired, processing the job... [2025-03-03 23:33:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:33:03] Production.INFO: ==16723== Releasing lock... [2025-03-03 23:33:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:33:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:33:04] Production.INFO: ==16728== Lock acquired, processing the job... [2025-03-03 18:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:33:04] Production.INFO: ==16736== Lock acquired, processing the job... [2025-03-03 18:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:33:04] Production.INFO: ==16726== Lock acquired, processing the job... [2025-03-03 18:33:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:33:04] Production.INFO: ==16730== Lock acquired, processing the job... [2025-03-03 18:33:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:33:04] Production.INFO: ==16734== Lock acquired, processing the job... [2025-03-03 18:33:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:33:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:33:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:33:04] Production.INFO: ==16732== Lock acquired, processing the job... [2025-03-03 18:33:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:33:04] Production.INFO: count ==13 [2025-03-03 18:33:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:33:04] Production.INFO: count ==21 [2025-03-03 18:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600316') start [2025-03-03 18:33:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:33:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:33:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:33:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:33:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600316') end [2025-03-03 18:33:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:33:04] Production.INFO: 1 [2025-03-03 18:33:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:33:04] Production.INFO: ==16736== Releasing lock... [2025-03-03 18:33:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:33:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:33:04] Production.INFO: ==16728== Releasing lock... [2025-03-03 18:33:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:33:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:33:04] Production.INFO: Account Balance Start. [2025-03-03 18:33:04] Production.INFO: CreateAllLog Start [2025-03-03 18:33:04] Production.INFO: 117 [2025-03-03 18:33:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:33:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:33:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-09 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-10 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-11 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.ERROR: done [2025-03-03 18:33:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-12 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-13 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.ERROR: done [2025-03-03 18:33:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:33:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:33:05] Production.INFO: Total Charge 0 [2025-03-03 18:33:05] Production.INFO: CreateAllLog End [2025-03-03 18:33:06] Production.INFO: Account Balance End. [2025-03-03 18:33:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:33:06] Production.INFO: ==16732== Releasing lock... [2025-03-03 18:33:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:33:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:33:06 [end_date_ymd] => 2025-03-03 18:33:06 [RateCDR] => 1 ) [2025-03-03 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:33:06' and `end` < '2025-03-03 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:33:15] Production.ERROR: CronJobId end10 [2025-03-03 18:33:15] Production.INFO: ==16730== Releasing lock... [2025-03-03 18:33:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:33:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:33:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:33:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:33:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:33:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:33:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:33:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:33:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:33:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:33:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:33:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:33:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:33:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:33:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:33:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:33:16] Production.INFO: call_cost start [2025-03-03 18:33:16] Production.INFO: call_cost end [2025-03-03 18:33:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:33:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:33:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:33:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:33:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:33:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:33:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:33:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:33:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:33:17] Production.INFO: ==16726== Releasing lock... [2025-03-03 18:33:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:33:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:33:19] Production.INFO: count ==3916 [2025-03-03 18:33:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:33:06 - End Time 2025-03-03 18:33:06 [2025-03-03 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600319', 'tblTempUsageDetail_20' ) start [2025-03-03 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600319', 'tblTempUsageDetail_20' ) end [2025-03-03 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600319', 'tblTempVendorCDR_20' ) start [2025-03-03 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600319', 'tblTempVendorCDR_20' ) end [2025-03-03 18:33:21] Production.INFO: ProcessCDR(1,14600319,1,1,2) [2025-03-03 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600319', 'tblTempUsageDetail_20' ) start [2025-03-03 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600319', 'tblTempUsageDetail_20' ) end [2025-03-03 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:33:25] Production.INFO: ==16734== Releasing lock... [2025-03-03 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:33:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-03 23:34:01] Production.INFO: ==16824== Lock acquired, processing the job... [2025-03-03 23:34:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:34:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:34:01] Production.INFO: neon service started [2025-03-03 23:34:01] Production.INFO: neon service started [2025-03-03 23:34:01] Production.INFO: ==16824== Releasing lock... [2025-03-03 23:34:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:34:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:34:02] Production.INFO: ==16826== Lock acquired, processing the job... [2025-03-03 18:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:34:02] Production.INFO: ==16826== Releasing lock... [2025-03-03 18:34:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:34:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:34:02] Production.INFO: ==16828== Lock acquired, processing the job... [2025-03-03 23:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:34:02] Production.INFO: ==16828== Releasing lock... [2025-03-03 23:34:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:34:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:34:03] Production.INFO: ==16835== Lock acquired, processing the job... [2025-03-03 18:34:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:34:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:34:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:34:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:34:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:34:03] Production.INFO: ==16841== Lock acquired, processing the job... [2025-03-03 18:34:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:34:03] Production.INFO: ==16833== Lock acquired, processing the job... [2025-03-03 18:34:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:34:03] Production.INFO: ==16831== Lock acquired, processing the job... [2025-03-03 18:34:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:34:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:34:03] Production.INFO: ==16837== Lock acquired, processing the job... [2025-03-03 18:34:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:34:03] Production.INFO: count ==13 [2025-03-03 18:34:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:34:03] Production.INFO: count ==21 [2025-03-03 18:34:03] Production.INFO: ==16839== Lock acquired, processing the job... [2025-03-03 18:34:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600320') start [2025-03-03 18:34:03] Production.INFO: Account Balance Start. [2025-03-03 18:34:03] Production.INFO: CreateAllLog Start [2025-03-03 18:34:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:34:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:34:03] Production.INFO: 117 [2025-03-03 18:34:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:34:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600320') end [2025-03-03 18:34:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:34:03] Production.INFO: 1 [2025-03-03 18:34:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: ==16841== Releasing lock... [2025-03-03 18:34:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:34:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:34:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.ERROR: done [2025-03-03 18:34:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: ==16833== Releasing lock... [2025-03-03 18:34:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:34:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:34:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.ERROR: done [2025-03-03 18:34:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:34:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:34:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:34:05] Production.INFO: Total Charge 0 [2025-03-03 18:34:05] Production.INFO: CreateAllLog End [2025-03-03 18:34:05] Production.INFO: Account Balance End. [2025-03-03 18:34:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:34:05] Production.INFO: ==16837== Releasing lock... [2025-03-03 18:34:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:34:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:34:05 [end_date_ymd] => 2025-03-03 18:34:05 [RateCDR] => 1 ) [2025-03-03 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:34:05' and `end` < '2025-03-03 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:34:14] Production.ERROR: CronJobId end10 [2025-03-03 18:34:14] Production.INFO: ==16835== Releasing lock... [2025-03-03 18:34:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:34:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:34:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:34:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:34:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:34:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:34:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:34:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:34:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:34:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:34:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:34:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:34:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:34:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:34:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:34:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:34:15] Production.INFO: call_cost start [2025-03-03 18:34:15] Production.INFO: call_cost end [2025-03-03 18:34:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:34:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:34:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:34:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:34:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:34:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:34:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:34:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:34:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:34:16] Production.INFO: ==16831== Releasing lock... [2025-03-03 18:34:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:34:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:34:18] Production.INFO: count ==3906 [2025-03-03 18:34:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:34:05 - End Time 2025-03-03 18:34:05 [2025-03-03 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600324', 'tblTempUsageDetail_20' ) start [2025-03-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600324', 'tblTempUsageDetail_20' ) end [2025-03-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600324', 'tblTempVendorCDR_20' ) start [2025-03-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600324', 'tblTempVendorCDR_20' ) end [2025-03-03 18:34:20] Production.INFO: ProcessCDR(1,14600324,1,1,2) [2025-03-03 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600324', 'tblTempUsageDetail_20' ) start [2025-03-03 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600324', 'tblTempUsageDetail_20' ) end [2025-03-03 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:34:23] Production.INFO: ==16839== Releasing lock... [2025-03-03 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:34:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-03 23:35:01] Production.INFO: ==16927== Lock acquired, processing the job... [2025-03-03 23:35:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:35:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:35:01] Production.INFO: neon service started [2025-03-03 23:35:01] Production.INFO: neon service started [2025-03-03 23:35:01] Production.INFO: ==16927== Releasing lock... [2025-03-03 23:35:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:35:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:35:01] Production.INFO: ==16931== Lock acquired, processing the job... [2025-03-03 23:35:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:35:01] Production.INFO: ==16931== Releasing lock... [2025-03-03 23:35:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:35:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:35:01] Production.INFO: ==16929== Lock acquired, processing the job... [2025-03-03 18:35:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:35:02] Production.INFO: ==16929== Releasing lock... [2025-03-03 18:35:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:35:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:35:03] Production.INFO: ==16934== Lock acquired, processing the job... [2025-03-03 18:35:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:35:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:35:03] Production.INFO: ==16938== Lock acquired, processing the job... [2025-03-03 18:35:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:35:03] Production.INFO: ==16940== Lock acquired, processing the job... [2025-03-03 18:35:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:35:03] Production.INFO: ==16936== Lock acquired, processing the job... [2025-03-03 18:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:35:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:35:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:35:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:35:03] Production.INFO: Account Balance Start. [2025-03-03 18:35:03] Production.INFO: CreateAllLog Start [2025-03-03 18:35:03] Production.INFO: 117 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:35:03] Production.INFO: ==16942== Lock acquired, processing the job... [2025-03-03 18:35:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:35:03] Production.INFO: ==16944== Lock acquired, processing the job... [2025-03-03 18:35:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:35:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:35:03] Production.INFO: count ==13 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:35:03] Production.INFO: ==16936== Releasing lock... [2025-03-03 18:35:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:35:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:35:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:35:03] Production.INFO: count ==21 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600328') start [2025-03-03 18:35:03] Production.INFO: Date 2025-02-18 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.INFO: Date 2025-02-19 [2025-03-03 18:35:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:03] Production.ERROR: done [2025-03-03 18:35:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:35:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600328') end [2025-03-03 18:35:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:35:03] Production.INFO: 1 [2025-03-03 18:35:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:35:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: ==16944== Releasing lock... [2025-03-03 18:35:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:35:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:35:04] Production.ERROR: done [2025-03-03 18:35:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:35:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:35:04] Production.INFO: Total Charge 0 [2025-03-03 18:35:04] Production.INFO: CreateAllLog End [2025-03-03 18:35:04] Production.INFO: Account Balance End. [2025-03-03 18:35:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:35:04] Production.INFO: ==16940== Releasing lock... [2025-03-03 18:35:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:35:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:35:05 [end_date_ymd] => 2025-03-03 18:35:05 [RateCDR] => 1 ) [2025-03-03 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:35:05' and `end` < '2025-03-03 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:35:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:35:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:35:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:35:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:35:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:35:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:35:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:35:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:35:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:35:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:35:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:35:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:35:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:35:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:35:14] Production.ERROR: CronJobId end10 [2025-03-03 18:35:14] Production.INFO: ==16938== Releasing lock... [2025-03-03 18:35:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:35:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:35:15] Production.INFO: call_cost start [2025-03-03 18:35:15] Production.INFO: call_cost end [2025-03-03 18:35:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:35:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:35:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:35:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:35:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:35:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:35:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:35:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:35:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:35:16] Production.INFO: ==16934== Releasing lock... [2025-03-03 18:35:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:35:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:35:18] Production.INFO: count ==3880 [2025-03-03 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:35:05 - End Time 2025-03-03 18:35:05 [2025-03-03 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600329', 'tblTempUsageDetail_20' ) start [2025-03-03 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600329', 'tblTempUsageDetail_20' ) end [2025-03-03 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600329', 'tblTempVendorCDR_20' ) start [2025-03-03 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600329', 'tblTempVendorCDR_20' ) end [2025-03-03 18:35:19] Production.INFO: ProcessCDR(1,14600329,1,1,2) [2025-03-03 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600329', 'tblTempUsageDetail_20' ) start [2025-03-03 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600329', 'tblTempUsageDetail_20' ) end [2025-03-03 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:35:24] Production.INFO: ==16942== Releasing lock... [2025-03-03 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:35:24] Production.INFO: 57 MB #Memory Used# [2025-03-03 23:36:01] Production.INFO: ==17033== Lock acquired, processing the job... [2025-03-03 23:36:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:36:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:36:01] Production.INFO: neon service started [2025-03-03 23:36:01] Production.INFO: neon service started [2025-03-03 23:36:01] Production.INFO: ==17033== Releasing lock... [2025-03-03 23:36:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:36:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:36:02] Production.INFO: ==17037== Lock acquired, processing the job... [2025-03-03 23:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:36:02] Production.INFO: ==17037== Releasing lock... [2025-03-03 23:36:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:36:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:36:02] Production.INFO: ==17035== Lock acquired, processing the job... [2025-03-03 18:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:36:02] Production.INFO: ==17035== Releasing lock... [2025-03-03 18:36:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:36:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:36:03] Production.INFO: ==17046== Lock acquired, processing the job... [2025-03-03 18:36:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:36:03] Production.INFO: ==17042== Lock acquired, processing the job... [2025-03-03 18:36:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:36:03] Production.INFO: Account Balance Start. [2025-03-03 18:36:03] Production.INFO: CreateAllLog Start [2025-03-03 18:36:03] Production.INFO: 117 [2025-03-03 18:36:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:03] Production.INFO: ==17040== Lock acquired, processing the job... [2025-03-03 18:36:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:36:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:36:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:36:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: ==17044== Lock acquired, processing the job... [2025-03-03 18:36:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:36:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: ==17042== Releasing lock... [2025-03-03 18:36:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:36:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:36:04] Production.INFO: ==17048== Lock acquired, processing the job... [2025-03-03 18:36:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:36:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:36:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:36:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:36:04] Production.INFO: ==17050== Lock acquired, processing the job... [2025-03-03 18:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:36:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:36:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:36:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: count ==13 [2025-03-03 18:36:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:36:04] Production.INFO: count ==21 [2025-03-03 18:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600333') start [2025-03-03 18:36:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600333') end [2025-03-03 18:36:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:36:04] Production.INFO: 1 [2025-03-03 18:36:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:36:04] Production.ERROR: done [2025-03-03 18:36:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: ==17050== Releasing lock... [2025-03-03 18:36:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:36:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:36:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.ERROR: done [2025-03-03 18:36:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:36:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:36:04] Production.INFO: Total Charge 0 [2025-03-03 18:36:04] Production.INFO: CreateAllLog End [2025-03-03 18:36:05] Production.INFO: Account Balance End. [2025-03-03 18:36:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:36:05] Production.INFO: ==17046== Releasing lock... [2025-03-03 18:36:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:36:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:36:05 [end_date_ymd] => 2025-03-03 18:36:05 [RateCDR] => 1 ) [2025-03-03 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:36:05' and `end` < '2025-03-03 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:36:14] Production.ERROR: CronJobId end10 [2025-03-03 18:36:14] Production.INFO: ==17044== Releasing lock... [2025-03-03 18:36:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:36:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:36:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:36:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:36:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:36:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:36:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:36:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:36:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:36:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:36:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:36:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:36:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:36:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:36:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:36:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:36:15] Production.INFO: call_cost start [2025-03-03 18:36:15] Production.INFO: call_cost end [2025-03-03 18:36:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:36:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:36:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:36:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:36:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:36:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:36:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:36:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:36:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:36:16] Production.INFO: ==17040== Releasing lock... [2025-03-03 18:36:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:36:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:36:18] Production.INFO: count ==3875 [2025-03-03 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:36:05 - End Time 2025-03-03 18:36:05 [2025-03-03 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600334', 'tblTempUsageDetail_20' ) start [2025-03-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600334', 'tblTempUsageDetail_20' ) end [2025-03-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600334', 'tblTempVendorCDR_20' ) start [2025-03-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600334', 'tblTempVendorCDR_20' ) end [2025-03-03 18:36:20] Production.INFO: ProcessCDR(1,14600334,1,1,2) [2025-03-03 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600334', 'tblTempUsageDetail_20' ) start [2025-03-03 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600334', 'tblTempUsageDetail_20' ) end [2025-03-03 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:36:23] Production.INFO: ==17048== Releasing lock... [2025-03-03 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:36:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-03 23:37:01] Production.INFO: ==17134== Lock acquired, processing the job... [2025-03-03 23:37:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:37:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:37:01] Production.INFO: neon service started [2025-03-03 23:37:01] Production.INFO: neon service started [2025-03-03 23:37:01] Production.INFO: ==17134== Releasing lock... [2025-03-03 23:37:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:37:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:37:01] Production.INFO: ==17138== Lock acquired, processing the job... [2025-03-03 23:37:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:37:01] Production.INFO: ==17138== Releasing lock... [2025-03-03 23:37:01] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:37:01] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:37:01] Production.INFO: ==17136== Lock acquired, processing the job... [2025-03-03 18:37:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:37:02] Production.INFO: ==17136== Releasing lock... [2025-03-03 18:37:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:37:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:37:03] Production.INFO: ==17143== Lock acquired, processing the job... [2025-03-03 18:37:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:37:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:37:03] Production.INFO: ==17151== Lock acquired, processing the job... [2025-03-03 18:37:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:37:03] Production.INFO: ==17149== Lock acquired, processing the job... [2025-03-03 18:37:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:37:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:37:03] Production.INFO: Account Balance Start. [2025-03-03 18:37:03] Production.INFO: CreateAllLog Start [2025-03-03 18:37:03] Production.INFO: 117 [2025-03-03 18:37:03] Production.INFO: ==17145== Lock acquired, processing the job... [2025-03-03 18:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:37:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: ==17147== Lock acquired, processing the job... [2025-03-03 18:37:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:37:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: ==17153== Lock acquired, processing the job... [2025-03-03 18:37:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:37:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:37:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:37:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:37:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:37:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:37:03] Production.ERROR: done [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:37:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:37:03] Production.INFO: count ==13 [2025-03-03 18:37:03] Production.INFO: ==17145== Releasing lock... [2025-03-03 18:37:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:37:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:37:03] Production.INFO: Date 2025-02-18 [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.ERROR: done [2025-03-03 18:37:03] Production.INFO: Date 2025-02-19 [2025-03-03 18:37:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:37:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:03] Production.INFO: count ==21 [2025-03-03 18:37:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600338') start [2025-03-03 18:37:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600338') end [2025-03-03 18:37:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:37:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:37:04] Production.INFO: 1 [2025-03-03 18:37:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: ==17153== Releasing lock... [2025-03-03 18:37:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:37:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:37:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:37:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:37:04] Production.INFO: Total Charge 0 [2025-03-03 18:37:04] Production.INFO: CreateAllLog End [2025-03-03 18:37:04] Production.INFO: Account Balance End. [2025-03-03 18:37:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:37:04] Production.INFO: ==17149== Releasing lock... [2025-03-03 18:37:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:37:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:37:05 [end_date_ymd] => 2025-03-03 18:37:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:37:05' and `end` < '2025-03-03 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-03-03 18:37:13] Production.ERROR: CronJobId end10 [2025-03-03 18:37:13] Production.INFO: ==17147== Releasing lock... [2025-03-03 18:37:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:37:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:37:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:37:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:37:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:37:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:37:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:37:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:37:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:37:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:37:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:37:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:37:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:37:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:37:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:37:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:37:15] Production.INFO: call_cost start [2025-03-03 18:37:15] Production.INFO: call_cost end [2025-03-03 18:37:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:37:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:37:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:37:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:37:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:37:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:37:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:37:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:37:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:37:16] Production.INFO: ==17143== Releasing lock... [2025-03-03 18:37:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:37:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:37:17] Production.INFO: count ==3876 [2025-03-03 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:37:05 - End Time 2025-03-03 18:37:05 [2025-03-03 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600339', 'tblTempUsageDetail_20' ) start [2025-03-03 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600339', 'tblTempUsageDetail_20' ) end [2025-03-03 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600339', 'tblTempVendorCDR_20' ) start [2025-03-03 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600339', 'tblTempVendorCDR_20' ) end [2025-03-03 18:37:19] Production.INFO: ProcessCDR(1,14600339,1,1,2) [2025-03-03 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600339', 'tblTempUsageDetail_20' ) start [2025-03-03 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600339', 'tblTempUsageDetail_20' ) end [2025-03-03 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:37:23] Production.INFO: ==17151== Releasing lock... [2025-03-03 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:37:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-03 23:38:01] Production.INFO: ==17278== Lock acquired, processing the job... [2025-03-03 23:38:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:38:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:38:01] Production.INFO: neon service started [2025-03-03 23:38:01] Production.INFO: neon service started [2025-03-03 23:38:01] Production.INFO: ==17278== Releasing lock... [2025-03-03 23:38:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:38:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:38:02] Production.INFO: ==17282== Lock acquired, processing the job... [2025-03-03 23:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:38:02] Production.INFO: ==17282== Releasing lock... [2025-03-03 23:38:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:38:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:38:02] Production.INFO: ==17280== Lock acquired, processing the job... [2025-03-03 18:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:38:02] Production.INFO: ==17280== Releasing lock... [2025-03-03 18:38:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:38:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:38:03] Production.INFO: ==17289== Lock acquired, processing the job... [2025-03-03 18:38:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:38:03] Production.INFO: ==17293== Lock acquired, processing the job... [2025-03-03 18:38:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:38:03] Production.INFO: ==17285== Lock acquired, processing the job... [2025-03-03 18:38:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:38:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:38:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:38:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:38:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:38:03] Production.INFO: ==17287== Lock acquired, processing the job... [2025-03-03 18:38:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:38:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:38:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:38:04] Production.INFO: ==17291== Lock acquired, processing the job... [2025-03-03 18:38:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:38:04] Production.INFO: ==17295== Lock acquired, processing the job... [2025-03-03 18:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:38:04] Production.INFO: Account Balance Start. [2025-03-03 18:38:04] Production.INFO: CreateAllLog Start [2025-03-03 18:38:04] Production.INFO: 117 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.ERROR: done [2025-03-03 18:38:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:38:04] Production.INFO: count ==13 [2025-03-03 18:38:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:38:04] Production.INFO: count ==21 [2025-03-03 18:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600343') start [2025-03-03 18:38:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:38:04] Production.INFO: ==17287== Releasing lock... [2025-03-03 18:38:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:38:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:38:04] Production.ERROR: done [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600343') end [2025-03-03 18:38:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:38:04] Production.INFO: 1 [2025-03-03 18:38:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:38:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: ==17295== Releasing lock... [2025-03-03 18:38:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:38:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:38:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:38:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:38:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:38:05] Production.INFO: Total Charge 0 [2025-03-03 18:38:05] Production.INFO: CreateAllLog End [2025-03-03 18:38:05] Production.INFO: Account Balance End. [2025-03-03 18:38:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:38:05] Production.INFO: ==17291== Releasing lock... [2025-03-03 18:38:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:38:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:38:05 [end_date_ymd] => 2025-03-03 18:38:05 [RateCDR] => 1 ) [2025-03-03 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:38:05' and `end` < '2025-03-03 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:38:14] Production.ERROR: CronJobId end10 [2025-03-03 18:38:14] Production.INFO: ==17289== Releasing lock... [2025-03-03 18:38:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:38:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:38:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:38:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:38:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:38:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:38:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:38:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:38:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:38:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:38:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:38:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:38:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:38:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:38:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:38:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:38:15] Production.INFO: call_cost start [2025-03-03 18:38:15] Production.INFO: call_cost end [2025-03-03 18:38:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:38:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:38:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:38:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:38:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:38:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:38:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:38:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:38:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:38:16] Production.INFO: ==17285== Releasing lock... [2025-03-03 18:38:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:38:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:38:18] Production.INFO: count ==3834 [2025-03-03 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:38:05 - End Time 2025-03-03 18:38:05 [2025-03-03 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600344', 'tblTempUsageDetail_20' ) start [2025-03-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600344', 'tblTempUsageDetail_20' ) end [2025-03-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600344', 'tblTempVendorCDR_20' ) start [2025-03-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600344', 'tblTempVendorCDR_20' ) end [2025-03-03 18:38:20] Production.INFO: ProcessCDR(1,14600344,1,1,2) [2025-03-03 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600344', 'tblTempUsageDetail_20' ) start [2025-03-03 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600344', 'tblTempUsageDetail_20' ) end [2025-03-03 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:38:25] Production.INFO: ==17293== Releasing lock... [2025-03-03 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:38:25] Production.INFO: 57 MB #Memory Used# [2025-03-03 23:39:02] Production.INFO: ==17378== Lock acquired, processing the job... [2025-03-03 23:39:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:39:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:39:02] Production.INFO: neon service started [2025-03-03 23:39:02] Production.INFO: neon service started [2025-03-03 23:39:02] Production.INFO: ==17378== Releasing lock... [2025-03-03 23:39:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:39:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:39:02] Production.INFO: ==17384== Lock acquired, processing the job... [2025-03-03 23:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:39:02] Production.INFO: ==17384== Releasing lock... [2025-03-03 23:39:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:39:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:39:02] Production.INFO: ==17382== Lock acquired, processing the job... [2025-03-03 18:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:39:02] Production.INFO: ==17382== Releasing lock... [2025-03-03 18:39:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:39:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:39:03] Production.INFO: ==17391== Lock acquired, processing the job... [2025-03-03 18:39:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:39:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:39:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:39:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:39:03] Production.INFO: ==17395== Lock acquired, processing the job... [2025-03-03 18:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:39:03] Production.INFO: ==17387== Lock acquired, processing the job... [2025-03-03 18:39:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:39:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:39:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:39:04] Production.INFO: ==17389== Lock acquired, processing the job... [2025-03-03 18:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:39:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:39:04] Production.INFO: ==17393== Lock acquired, processing the job... [2025-03-03 18:39:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:39:04] Production.INFO: ==17397== Lock acquired, processing the job... [2025-03-03 18:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:39:04] Production.INFO: Account Balance Start. [2025-03-03 18:39:04] Production.INFO: CreateAllLog Start [2025-03-03 18:39:04] Production.INFO: 117 [2025-03-03 18:39:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:04] Production.ERROR: done [2025-03-03 18:39:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:39:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:39:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:04] Production.INFO: count ==13 [2025-03-03 18:39:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:39:04] Production.INFO: count ==21 [2025-03-03 18:39:04] Production.ERROR: done [2025-03-03 18:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600348') start [2025-03-03 18:39:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600348') end [2025-03-03 18:39:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:39:04] Production.INFO: 1 [2025-03-03 18:39:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:39:04] Production.INFO: ==17397== Releasing lock... [2025-03-03 18:39:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:39:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:39:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:04] Production.INFO: ==17389== Releasing lock... [2025-03-03 18:39:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:39:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:39:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:39:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:39:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:39:05] Production.INFO: Total Charge 0 [2025-03-03 18:39:05] Production.INFO: CreateAllLog End [2025-03-03 18:39:05] Production.INFO: Account Balance End. [2025-03-03 18:39:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:39:05] Production.INFO: ==17393== Releasing lock... [2025-03-03 18:39:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:39:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:39:06 [end_date_ymd] => 2025-03-03 18:39:06 [RateCDR] => 1 ) [2025-03-03 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:39:06' and `end` < '2025-03-03 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:39:14] Production.ERROR: CronJobId end10 [2025-03-03 18:39:14] Production.INFO: ==17391== Releasing lock... [2025-03-03 18:39:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:39:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:39:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:39:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:39:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:39:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:39:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:39:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:39:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:39:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:39:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:39:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:39:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:39:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:39:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:39:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:39:17] Production.INFO: call_cost start [2025-03-03 18:39:17] Production.INFO: call_cost end [2025-03-03 18:39:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:39:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:39:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:39:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:39:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:39:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:39:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:39:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:39:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:39:17] Production.INFO: ==17387== Releasing lock... [2025-03-03 18:39:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:39:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:39:18] Production.INFO: count ==3829 [2025-03-03 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:39:06 - End Time 2025-03-03 18:39:06 [2025-03-03 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600349', 'tblTempUsageDetail_20' ) start [2025-03-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600349', 'tblTempUsageDetail_20' ) end [2025-03-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600349', 'tblTempVendorCDR_20' ) start [2025-03-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600349', 'tblTempVendorCDR_20' ) end [2025-03-03 18:39:20] Production.INFO: ProcessCDR(1,14600349,1,1,2) [2025-03-03 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600349', 'tblTempUsageDetail_20' ) start [2025-03-03 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600349', 'tblTempUsageDetail_20' ) end [2025-03-03 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:39:25] Production.INFO: ==17395== Releasing lock... [2025-03-03 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:39:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-03 23:40:01] Production.INFO: ==17483== Lock acquired, processing the job... [2025-03-03 23:40:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:40:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:40:01] Production.INFO: neon service started [2025-03-03 23:40:01] Production.INFO: neon service started [2025-03-03 23:40:01] Production.INFO: ==17483== Releasing lock... [2025-03-03 23:40:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:40:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:40:02] Production.INFO: ==17487== Lock acquired, processing the job... [2025-03-03 23:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:40:02] Production.INFO: ==17487== Releasing lock... [2025-03-03 23:40:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:40:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:40:02] Production.INFO: ==17485== Lock acquired, processing the job... [2025-03-03 18:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:40:02] Production.INFO: ==17485== Releasing lock... [2025-03-03 18:40:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:40:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:40:03] Production.INFO: ==17492== Lock acquired, processing the job... [2025-03-03 18:40:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:40:03] Production.INFO: ==17494== Lock acquired, processing the job... [2025-03-03 18:40:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:40:03] Production.INFO: ==17496== Lock acquired, processing the job... [2025-03-03 18:40:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:40:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:40:03] Production.INFO: ==17502== Lock acquired, processing the job... [2025-03-03 18:40:03] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 18:40:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:40:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:40:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:40:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:40:03] Production.INFO: ==17490== Lock acquired, processing the job... [2025-03-03 18:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:40:03] Production.ERROR: CronJob PID - 17492 [2025-03-03 18:40:03] Production.ERROR: CronJob Title - System Alerts [2025-03-03 18:40:03] Production.ERROR: CronJob ID - 5 [2025-03-03 18:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 18:40:00 [2025-03-03 18:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:40:03] Production.ERROR: CronJob PID - 17494 [2025-03-03 18:40:03] Production.ERROR: CronJob Title - Account Block [2025-03-03 18:40:03] Production.ERROR: CronJob ID - 7 [2025-03-03 18:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 18:40:00 [2025-03-03 18:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:40:03] Production.ERROR: CronJob PID - 17496 [2025-03-03 18:40:03] Production.ERROR: CronJob Title - Create Customer Summary Live [2025-03-03 18:40:03] Production.ERROR: CronJob ID - 10 [2025-03-03 18:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 18:40:00 [2025-03-03 18:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:40:03] Production.ERROR: CronJob PID - 17502 [2025-03-03 18:40:03] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 Reseller CDR Process [2025-03-03 18:40:03] Production.ERROR: CronJob ID - 17 [2025-03-03 18:40:03] Production.ERROR: CronJob Last Run Time 2025-03-03 18:40:00 [2025-03-03 18:40:03] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:40:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:40:03] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 18:40:03] Production.INFO: ==17490== Releasing lock... [2025-03-03 18:40:03] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 18:40:03] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:40:03] Production.INFO: ==17498== Lock acquired, processing the job... [2025-03-03 18:40:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:40:04] Production.INFO: ==17504== Lock acquired, processing the job... [2025-03-03 18:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:40:04] Production.INFO: ==17500== Lock acquired, processing the job... [2025-03-03 18:40:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:40:04] Production.INFO: ==17494== Releasing lock... [2025-03-03 18:40:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:40:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:40:04] Production.INFO: Account Balance Start. [2025-03-03 18:40:04] Production.INFO: CreateAllLog Start [2025-03-03 18:40:04] Production.INFO: 117 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.ERROR: done [2025-03-03 18:40:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:40:04] Production.INFO: count ==13 [2025-03-03 18:40:04] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 18:40:04] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600354', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 18:40:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:40:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: count ==21 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600353') start [2025-03-03 18:40:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600353') end [2025-03-03 18:40:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:40:04] Production.INFO: 1 [2025-03-03 18:40:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:40:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.ERROR: done [2025-03-03 18:40:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:40:04] Production.INFO: ==17504== Releasing lock... [2025-03-03 18:40:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:40:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:40:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.ERROR: done [2025-03-03 18:40:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:40:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:40:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:40:05] Production.INFO: Total Charge 0 [2025-03-03 18:40:05] Production.INFO: CreateAllLog End [2025-03-03 18:40:05] Production.INFO: Account Balance End. [2025-03-03 18:40:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:40:05] Production.INFO: ==17498== Releasing lock... [2025-03-03 18:40:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:40:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:40:05 [end_date_ymd] => 2025-03-03 18:40:05 [RateCDR] => 1 ) [2025-03-03 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:40:05' and `end` < '2025-03-03 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:40:09] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600354', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 18:40:09] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 18:40:09] Production.INFO: ProcessCDR(1,14600354,1,1,2) [2025-03-03 18:40:09] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600354,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:40:09] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600354,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:40:09] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:40:09] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:40:09] Production.INFO: ==17502== Releasing lock... [2025-03-03 18:40:09] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 18:40:09] Production.INFO: 26 MB #Memory Used# [2025-03-03 18:40:16] Production.ERROR: CronJobId end10 [2025-03-03 18:40:16] Production.INFO: ==17496== Releasing lock... [2025-03-03 18:40:16] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:40:16] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:40:17] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:40:17] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:40:17] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:40:17] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:40:17] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:40:17] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:40:17] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:40:17] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:40:17] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:40:17] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:40:17] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:40:17] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:40:17] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:40:17] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:40:17] Production.INFO: call_cost start [2025-03-03 18:40:17] Production.INFO: call_cost end [2025-03-03 18:40:18] Production.INFO: count ==3817 [2025-03-03 18:40:18] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:40:18] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:40:18] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:40:18] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:40:18] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:40:18] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:40:18] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:40:18] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:40:18] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:40:18] Production.INFO: ==17492== Releasing lock... [2025-03-03 18:40:18] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:40:18] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:40:05 - End Time 2025-03-03 18:40:05 [2025-03-03 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600355', 'tblTempUsageDetail_20' ) start [2025-03-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600355', 'tblTempUsageDetail_20' ) end [2025-03-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600355', 'tblTempVendorCDR_20' ) start [2025-03-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600355', 'tblTempVendorCDR_20' ) end [2025-03-03 18:40:20] Production.INFO: ProcessCDR(1,14600355,1,1,2) [2025-03-03 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600355', 'tblTempUsageDetail_20' ) start [2025-03-03 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600355', 'tblTempUsageDetail_20' ) end [2025-03-03 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:40:23] Production.INFO: ==17500== Releasing lock... [2025-03-03 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:40:23] Production.INFO: 57 MB #Memory Used# [2025-03-03 23:41:02] Production.INFO: ==17594== Lock acquired, processing the job... [2025-03-03 23:41:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:41:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:41:02] Production.INFO: neon service started [2025-03-03 23:41:02] Production.INFO: neon service started [2025-03-03 23:41:02] Production.INFO: ==17594== Releasing lock... [2025-03-03 23:41:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:41:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:41:02] Production.INFO: ==17597== Lock acquired, processing the job... [2025-03-03 18:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:41:02] Production.INFO: ==17597== Releasing lock... [2025-03-03 18:41:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:41:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:41:03] Production.INFO: ==17599== Lock acquired, processing the job... [2025-03-03 23:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:41:03] Production.INFO: ==17599== Releasing lock... [2025-03-03 23:41:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:41:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:41:03] Production.INFO: ==17603== Lock acquired, processing the job... [2025-03-03 18:41:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:41:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:41:03] Production.INFO: ==17607== Lock acquired, processing the job... [2025-03-03 18:41:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:41:03] Production.INFO: ==17611== Lock acquired, processing the job... [2025-03-03 18:41:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:41:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:41:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:41:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:41:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:41:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:41:03] Production.INFO: ==17605== Lock acquired, processing the job... [2025-03-03 18:41:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:41:04] Production.INFO: ==17609== Lock acquired, processing the job... [2025-03-03 18:41:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:41:04] Production.INFO: ==17613== Lock acquired, processing the job... [2025-03-03 18:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:41:04] Production.ERROR: done [2025-03-03 18:41:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:41:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:41:04] Production.INFO: Account Balance Start. [2025-03-03 18:41:04] Production.INFO: CreateAllLog Start [2025-03-03 18:41:04] Production.INFO: 117 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:41:04] Production.INFO: count ==13 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.ERROR: done [2025-03-03 18:41:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:41:04] Production.INFO: count ==21 [2025-03-03 18:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600359') start [2025-03-03 18:41:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600359') end [2025-03-03 18:41:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:41:04] Production.INFO: 1 [2025-03-03 18:41:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:41:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: ==17605== Releasing lock... [2025-03-03 18:41:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:41:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:41:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: ==17613== Releasing lock... [2025-03-03 18:41:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:41:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:41:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:41:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:41:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:41:05] Production.INFO: Total Charge 0 [2025-03-03 18:41:05] Production.INFO: CreateAllLog End [2025-03-03 18:41:05] Production.INFO: Account Balance End. [2025-03-03 18:41:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:41:05] Production.INFO: ==17609== Releasing lock... [2025-03-03 18:41:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:41:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:41:05 [end_date_ymd] => 2025-03-03 18:41:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:41:05' and `end` < '2025-03-03 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-03-03 18:41:14] Production.ERROR: CronJobId end10 [2025-03-03 18:41:14] Production.INFO: ==17607== Releasing lock... [2025-03-03 18:41:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:41:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:41:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:41:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:41:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:41:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:41:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:41:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:41:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:41:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:41:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:41:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:41:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:41:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:41:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:41:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:41:16] Production.INFO: call_cost start [2025-03-03 18:41:16] Production.INFO: call_cost end [2025-03-03 18:41:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:41:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:41:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:41:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:41:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:41:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:41:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:41:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:41:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:41:17] Production.INFO: ==17603== Releasing lock... [2025-03-03 18:41:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:41:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:41:18] Production.INFO: count ==3809 [2025-03-03 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:41:05 - End Time 2025-03-03 18:41:05 [2025-03-03 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600360', 'tblTempUsageDetail_20' ) start [2025-03-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600360', 'tblTempUsageDetail_20' ) end [2025-03-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600360', 'tblTempVendorCDR_20' ) start [2025-03-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600360', 'tblTempVendorCDR_20' ) end [2025-03-03 18:41:19] Production.INFO: ProcessCDR(1,14600360,1,1,2) [2025-03-03 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600360', 'tblTempUsageDetail_20' ) start [2025-03-03 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600360', 'tblTempUsageDetail_20' ) end [2025-03-03 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:41:23] Production.INFO: ==17611== Releasing lock... [2025-03-03 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:41:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-03 23:42:01] Production.INFO: ==17699== Lock acquired, processing the job... [2025-03-03 23:42:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:42:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:42:01] Production.INFO: neon service started [2025-03-03 23:42:01] Production.INFO: neon service started [2025-03-03 23:42:01] Production.INFO: ==17699== Releasing lock... [2025-03-03 23:42:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:42:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:42:02] Production.INFO: ==17701== Lock acquired, processing the job... [2025-03-03 18:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:42:02] Production.INFO: ==17703== Lock acquired, processing the job... [2025-03-03 23:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:42:02] Production.INFO: ==17703== Releasing lock... [2025-03-03 23:42:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:42:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:42:02] Production.INFO: ==17701== Releasing lock... [2025-03-03 18:42:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:42:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:42:03] Production.INFO: ==17710== Lock acquired, processing the job... [2025-03-03 18:42:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:42:03] Production.INFO: ==17706== Lock acquired, processing the job... [2025-03-03 18:42:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:42:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:42:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:42:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:42:03] Production.INFO: ==17708== Lock acquired, processing the job... [2025-03-03 18:42:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:42:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:42:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:42:03] Production.INFO: ==17716== Lock acquired, processing the job... [2025-03-03 18:42:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:42:03] Production.INFO: ==17712== Lock acquired, processing the job... [2025-03-03 18:42:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:42:03] Production.INFO: ==17714== Lock acquired, processing the job... [2025-03-03 18:42:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:42:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:42:03] Production.INFO: Account Balance Start. [2025-03-03 18:42:03] Production.INFO: CreateAllLog Start [2025-03-03 18:42:03] Production.INFO: 117 [2025-03-03 18:42:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:42:03] Production.INFO: count ==13 [2025-03-03 18:42:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:42:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:03] Production.INFO: count ==21 [2025-03-03 18:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600363') start [2025-03-03 18:42:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600363') end [2025-03-03 18:42:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:42:04] Production.INFO: 1 [2025-03-03 18:42:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:42:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: ==17716== Releasing lock... [2025-03-03 18:42:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:42:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:42:04] Production.INFO: ==17708== Releasing lock... [2025-03-03 18:42:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:42:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:42:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.ERROR: done [2025-03-03 18:42:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.ERROR: done [2025-03-03 18:42:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:42:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:42:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:42:05] Production.INFO: Total Charge 0 [2025-03-03 18:42:05] Production.INFO: CreateAllLog End [2025-03-03 18:42:05] Production.INFO: Account Balance End. [2025-03-03 18:42:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:42:05] Production.INFO: ==17712== Releasing lock... [2025-03-03 18:42:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:42:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:42:05 [end_date_ymd] => 2025-03-03 18:42:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:42:05' and `end` < '2025-03-03 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-03-03 18:42:15] Production.ERROR: CronJobId end10 [2025-03-03 18:42:15] Production.INFO: ==17710== Releasing lock... [2025-03-03 18:42:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:42:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:42:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:42:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:42:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:42:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:42:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:42:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:42:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:42:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:42:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:42:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:42:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:42:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:42:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:42:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:42:16] Production.INFO: call_cost start [2025-03-03 18:42:16] Production.INFO: call_cost end [2025-03-03 18:42:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:42:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:42:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:42:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:42:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:42:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:42:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:42:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:42:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:42:17] Production.INFO: ==17706== Releasing lock... [2025-03-03 18:42:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:42:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:42:18] Production.INFO: count ==3800 [2025-03-03 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:42:05 - End Time 2025-03-03 18:42:05 [2025-03-03 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600365', 'tblTempUsageDetail_20' ) start [2025-03-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600365', 'tblTempUsageDetail_20' ) end [2025-03-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600365', 'tblTempVendorCDR_20' ) start [2025-03-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600365', 'tblTempVendorCDR_20' ) end [2025-03-03 18:42:20] Production.INFO: ProcessCDR(1,14600365,1,1,2) [2025-03-03 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600365', 'tblTempUsageDetail_20' ) start [2025-03-03 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600365', 'tblTempUsageDetail_20' ) end [2025-03-03 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:42:23] Production.INFO: ==17714== Releasing lock... [2025-03-03 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:42:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-03 23:43:02] Production.INFO: ==17797== Lock acquired, processing the job... [2025-03-03 23:43:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:43:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:43:02] Production.INFO: neon service started [2025-03-03 23:43:02] Production.INFO: neon service started [2025-03-03 23:43:02] Production.INFO: ==17797== Releasing lock... [2025-03-03 23:43:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:43:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:43:02] Production.INFO: ==17800== Lock acquired, processing the job... [2025-03-03 18:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:43:02] Production.INFO: ==17800== Releasing lock... [2025-03-03 18:43:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:43:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:43:03] Production.INFO: ==17802== Lock acquired, processing the job... [2025-03-03 23:43:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:43:03] Production.INFO: ==17802== Releasing lock... [2025-03-03 23:43:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:43:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:43:03] Production.INFO: ==17808== Lock acquired, processing the job... [2025-03-03 18:43:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:43:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:43:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:43:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:43:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:43:03] Production.INFO: ==17804== Lock acquired, processing the job... [2025-03-03 18:43:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:43:04] Production.INFO: ==17806== Lock acquired, processing the job... [2025-03-03 18:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:43:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:43:04] Production.INFO: ==17810== Lock acquired, processing the job... [2025-03-03 18:43:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:43:04] Production.INFO: ==17812== Lock acquired, processing the job... [2025-03-03 18:43:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:43:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:43:04] Production.INFO: ==17814== Lock acquired, processing the job... [2025-03-03 18:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:43:04] Production.INFO: Account Balance Start. [2025-03-03 18:43:04] Production.INFO: CreateAllLog Start [2025-03-03 18:43:04] Production.INFO: 117 [2025-03-03 18:43:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.INFO: ==17806== Releasing lock... [2025-03-03 18:43:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:43:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:43:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:43:04] Production.ERROR: done [2025-03-03 18:43:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:43:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:43:04] Production.INFO: count ==13 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:43:04] Production.INFO: count ==21 [2025-03-03 18:43:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600369') start [2025-03-03 18:43:04] Production.ERROR: done [2025-03-03 18:43:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600369') end [2025-03-03 18:43:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:43:04] Production.INFO: 1 [2025-03-03 18:43:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:43:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:04] Production.INFO: ==17814== Releasing lock... [2025-03-03 18:43:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:43:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:43:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:43:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:43:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:43:05 [end_date_ymd] => 2025-03-03 18:43:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:43:05' and `end` < '2025-03-03 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-03-03 18:43:06] Production.INFO: Date 2025-03-02 [2025-03-03 18:43:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:06] Production.INFO: Date 2025-03-03 [2025-03-03 18:43:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:43:06] Production.INFO: Total Charge 0 [2025-03-03 18:43:06] Production.INFO: CreateAllLog End [2025-03-03 18:43:06] Production.INFO: Account Balance End. [2025-03-03 18:43:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:43:06] Production.INFO: ==17810== Releasing lock... [2025-03-03 18:43:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:43:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:43:14] Production.ERROR: CronJobId end10 [2025-03-03 18:43:14] Production.INFO: ==17808== Releasing lock... [2025-03-03 18:43:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:43:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:43:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:43:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:43:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:43:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:43:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:43:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:43:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:43:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:43:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:43:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:43:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:43:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:43:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:43:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:43:16] Production.INFO: call_cost start [2025-03-03 18:43:16] Production.INFO: call_cost end [2025-03-03 18:43:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:43:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:43:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:43:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:43:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:43:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:43:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:43:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:43:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:43:17] Production.INFO: ==17804== Releasing lock... [2025-03-03 18:43:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:43:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:43:18] Production.INFO: count ==3767 [2025-03-03 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:43:05 - End Time 2025-03-03 18:43:05 [2025-03-03 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600370', 'tblTempUsageDetail_20' ) start [2025-03-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600370', 'tblTempUsageDetail_20' ) end [2025-03-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600370', 'tblTempVendorCDR_20' ) start [2025-03-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600370', 'tblTempVendorCDR_20' ) end [2025-03-03 18:43:20] Production.INFO: ProcessCDR(1,14600370,1,1,2) [2025-03-03 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600370', 'tblTempUsageDetail_20' ) start [2025-03-03 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600370', 'tblTempUsageDetail_20' ) end [2025-03-03 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:43:23] Production.INFO: ==17812== Releasing lock... [2025-03-03 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:43:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-03 23:44:01] Production.INFO: ==17895== Lock acquired, processing the job... [2025-03-03 23:44:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:44:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:44:01] Production.INFO: neon service started [2025-03-03 23:44:01] Production.INFO: neon service started [2025-03-03 23:44:01] Production.INFO: ==17895== Releasing lock... [2025-03-03 23:44:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:44:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:44:01] Production.INFO: ==17898== Lock acquired, processing the job... [2025-03-03 18:44:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:44:02] Production.INFO: ==17898== Releasing lock... [2025-03-03 18:44:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:44:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:44:02] Production.INFO: ==17900== Lock acquired, processing the job... [2025-03-03 23:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:44:02] Production.INFO: ==17900== Releasing lock... [2025-03-03 23:44:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:44:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:44:03] Production.INFO: ==17910== Lock acquired, processing the job... [2025-03-03 18:44:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:44:03] Production.INFO: ==17912== Lock acquired, processing the job... [2025-03-03 18:44:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:44:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:44:03] Production.INFO: ==17902== Lock acquired, processing the job... [2025-03-03 18:44:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:44:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:44:03] Production.INFO: ==17904== Lock acquired, processing the job... [2025-03-03 18:44:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:44:03] Production.INFO: ==17906== Lock acquired, processing the job... [2025-03-03 18:44:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:44:03] Production.INFO: ==17908== Lock acquired, processing the job... [2025-03-03 18:44:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:44:03] Production.INFO: count ==13 [2025-03-03 18:44:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:44:03] Production.INFO: count ==21 [2025-03-03 18:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600371') start [2025-03-03 18:44:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:44:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:44:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:44:03] Production.INFO: Account Balance Start. [2025-03-03 18:44:03] Production.INFO: CreateAllLog Start [2025-03-03 18:44:03] Production.INFO: 117 [2025-03-03 18:44:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:44:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:44:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:44:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600371') end [2025-03-03 18:44:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:44:03] Production.INFO: 1 [2025-03-03 18:44:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:44:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: ==17912== Releasing lock... [2025-03-03 18:44:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:44:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:44:04] Production.ERROR: done [2025-03-03 18:44:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.ERROR: done [2025-03-03 18:44:04] Production.INFO: ==17904== Releasing lock... [2025-03-03 18:44:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:44:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:44:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:44:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:44:04] Production.INFO: Total Charge 0 [2025-03-03 18:44:04] Production.INFO: CreateAllLog End [2025-03-03 18:44:05] Production.INFO: Account Balance End. [2025-03-03 18:44:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:44:05] Production.INFO: ==17908== Releasing lock... [2025-03-03 18:44:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:44:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:44:05 [end_date_ymd] => 2025-03-03 18:44:05 [RateCDR] => 1 ) [2025-03-03 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:44:05' and `end` < '2025-03-03 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:44:15] Production.ERROR: CronJobId end10 [2025-03-03 18:44:15] Production.INFO: ==17906== Releasing lock... [2025-03-03 18:44:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:44:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:44:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:44:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:44:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:44:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:44:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:44:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:44:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:44:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:44:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:44:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:44:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:44:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:44:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:44:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:44:15] Production.INFO: call_cost start [2025-03-03 18:44:15] Production.INFO: call_cost end [2025-03-03 18:44:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:44:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:44:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:44:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:44:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:44:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:44:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:44:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:44:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:44:16] Production.INFO: ==17902== Releasing lock... [2025-03-03 18:44:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:44:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:44:18] Production.INFO: count ==3732 [2025-03-03 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:44:05 - End Time 2025-03-03 18:44:05 [2025-03-03 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600375', 'tblTempUsageDetail_20' ) start [2025-03-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600375', 'tblTempUsageDetail_20' ) end [2025-03-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600375', 'tblTempVendorCDR_20' ) start [2025-03-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600375', 'tblTempVendorCDR_20' ) end [2025-03-03 18:44:19] Production.INFO: ProcessCDR(1,14600375,1,1,2) [2025-03-03 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600375', 'tblTempUsageDetail_20' ) start [2025-03-03 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600375', 'tblTempUsageDetail_20' ) end [2025-03-03 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:44:24] Production.INFO: ==17910== Releasing lock... [2025-03-03 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:44:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-03 23:45:01] Production.INFO: ==17997== Lock acquired, processing the job... [2025-03-03 23:45:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:45:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:45:02] Production.INFO: neon service started [2025-03-03 23:45:02] Production.INFO: neon service started [2025-03-03 23:45:02] Production.INFO: ==17997== Releasing lock... [2025-03-03 23:45:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:45:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:45:02] Production.INFO: ==18001== Lock acquired, processing the job... [2025-03-03 23:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:45:02] Production.INFO: ==18001== Releasing lock... [2025-03-03 23:45:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:45:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:45:02] Production.INFO: ==17999== Lock acquired, processing the job... [2025-03-03 18:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:45:02] Production.INFO: ==17999== Releasing lock... [2025-03-03 18:45:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:45:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:45:03] Production.INFO: ==18010== Lock acquired, processing the job... [2025-03-03 18:45:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:45:03] Production.INFO: ==18012== Lock acquired, processing the job... [2025-03-03 18:45:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:45:03] Production.INFO: Account Balance Start. [2025-03-03 18:45:03] Production.INFO: CreateAllLog Start [2025-03-03 18:45:03] Production.INFO: 117 [2025-03-03 18:45:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:45:03] Production.INFO: ==18004== Lock acquired, processing the job... [2025-03-03 18:45:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:45:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:03] Production.INFO: ==18006== Lock acquired, processing the job... [2025-03-03 18:45:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:45:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:45:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: ==18008== Lock acquired, processing the job... [2025-03-03 18:45:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:45:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: ==18015== Lock acquired, processing the job... [2025-03-03 18:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:45:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:45:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:45:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:45:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:45:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:45:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:45:04] Production.INFO: count ==13 [2025-03-03 18:45:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:45:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:45:04] Production.INFO: count ==21 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600377') start [2025-03-03 18:45:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:45:04] Production.ERROR: done [2025-03-03 18:45:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600377') end [2025-03-03 18:45:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:45:04] Production.INFO: 1 [2025-03-03 18:45:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:45:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: ==18015== Releasing lock... [2025-03-03 18:45:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:45:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:45:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.ERROR: done [2025-03-03 18:45:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: ==18006== Releasing lock... [2025-03-03 18:45:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:45:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:45:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:45:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:45:04] Production.INFO: Total Charge 0 [2025-03-03 18:45:04] Production.INFO: CreateAllLog End [2025-03-03 18:45:04] Production.INFO: Account Balance End. [2025-03-03 18:45:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:45:05] Production.INFO: ==18010== Releasing lock... [2025-03-03 18:45:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:45:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:45:05 [end_date_ymd] => 2025-03-03 18:45:05 [RateCDR] => 1 ) [2025-03-03 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:45:05' and `end` < '2025-03-03 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:45:15] Production.ERROR: CronJobId end10 [2025-03-03 18:45:15] Production.INFO: ==18008== Releasing lock... [2025-03-03 18:45:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:45:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:45:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:45:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:45:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:45:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:45:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:45:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:45:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:45:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:45:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:45:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:45:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:45:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:45:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:45:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:45:16] Production.INFO: call_cost start [2025-03-03 18:45:16] Production.INFO: call_cost end [2025-03-03 18:45:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:45:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:45:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:45:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:45:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:45:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:45:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:45:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:45:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:45:16] Production.INFO: ==18004== Releasing lock... [2025-03-03 18:45:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:45:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:45:18] Production.INFO: count ==3702 [2025-03-03 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:45:05 - End Time 2025-03-03 18:45:05 [2025-03-03 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600380', 'tblTempUsageDetail_20' ) start [2025-03-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600380', 'tblTempUsageDetail_20' ) end [2025-03-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600380', 'tblTempVendorCDR_20' ) start [2025-03-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600380', 'tblTempVendorCDR_20' ) end [2025-03-03 18:45:19] Production.INFO: ProcessCDR(1,14600380,1,1,2) [2025-03-03 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600380', 'tblTempUsageDetail_20' ) start [2025-03-03 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600380', 'tblTempUsageDetail_20' ) end [2025-03-03 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:45:24] Production.INFO: ==18012== Releasing lock... [2025-03-03 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:45:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-03 23:46:01] Production.INFO: ==18100== Lock acquired, processing the job... [2025-03-03 23:46:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:46:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:46:01] Production.INFO: neon service started [2025-03-03 23:46:01] Production.INFO: neon service started [2025-03-03 23:46:01] Production.INFO: ==18100== Releasing lock... [2025-03-03 23:46:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:46:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:46:02] Production.INFO: ==18102== Lock acquired, processing the job... [2025-03-03 18:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:46:02] Production.INFO: ==18104== Lock acquired, processing the job... [2025-03-03 23:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:46:02] Production.INFO: ==18104== Releasing lock... [2025-03-03 23:46:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:46:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:46:02] Production.INFO: ==18102== Releasing lock... [2025-03-03 18:46:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:46:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:46:03] Production.INFO: ==18107== Lock acquired, processing the job... [2025-03-03 18:46:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:46:03] Production.INFO: ==18109== Lock acquired, processing the job... [2025-03-03 18:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:46:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:46:03] Production.INFO: ==18115== Lock acquired, processing the job... [2025-03-03 18:46:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:46:03] Production.INFO: ==18109== Releasing lock... [2025-03-03 18:46:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:46:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:46:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:46:03] Production.INFO: ==18111== Lock acquired, processing the job... [2025-03-03 18:46:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:46:03] Production.INFO: ==18113== Lock acquired, processing the job... [2025-03-03 18:46:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:46:03] Production.INFO: ==18117== Lock acquired, processing the job... [2025-03-03 18:46:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:46:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:46:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:46:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:46:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:46:03] Production.INFO: Account Balance Start. [2025-03-03 18:46:03] Production.INFO: CreateAllLog Start [2025-03-03 18:46:03] Production.INFO: 117 [2025-03-03 18:46:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:46:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:46:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: count ==13 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:46:04] Production.INFO: count ==21 [2025-03-03 18:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600384') start [2025-03-03 18:46:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600384') end [2025-03-03 18:46:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:46:04] Production.INFO: 1 [2025-03-03 18:46:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:46:04] Production.ERROR: done [2025-03-03 18:46:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:46:04] Production.INFO: ==18117== Releasing lock... [2025-03-03 18:46:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:46:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:46:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.ERROR: done [2025-03-03 18:46:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:46:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:46:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:46:05] Production.INFO: Total Charge 0 [2025-03-03 18:46:05] Production.INFO: CreateAllLog End [2025-03-03 18:46:05] Production.INFO: Account Balance End. [2025-03-03 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:46:05 [end_date_ymd] => 2025-03-03 18:46:05 [RateCDR] => 1 ) [2025-03-03 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:46:05' and `end` < '2025-03-03 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:46:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:46:05] Production.INFO: ==18113== Releasing lock... [2025-03-03 18:46:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:46:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:46:14] Production.ERROR: CronJobId end10 [2025-03-03 18:46:14] Production.INFO: ==18111== Releasing lock... [2025-03-03 18:46:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:46:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:46:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:46:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:46:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:46:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:46:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:46:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:46:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:46:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:46:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:46:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:46:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:46:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:46:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:46:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:46:16] Production.INFO: call_cost start [2025-03-03 18:46:16] Production.INFO: call_cost end [2025-03-03 18:46:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:46:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:46:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:46:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:46:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:46:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:46:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:46:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:46:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:46:17] Production.INFO: ==18107== Releasing lock... [2025-03-03 18:46:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:46:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:46:18] Production.INFO: count ==3671 [2025-03-03 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:46:05 - End Time 2025-03-03 18:46:05 [2025-03-03 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600385', 'tblTempUsageDetail_20' ) start [2025-03-03 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600385', 'tblTempUsageDetail_20' ) end [2025-03-03 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600385', 'tblTempVendorCDR_20' ) start [2025-03-03 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600385', 'tblTempVendorCDR_20' ) end [2025-03-03 18:46:19] Production.INFO: ProcessCDR(1,14600385,1,1,2) [2025-03-03 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600385', 'tblTempUsageDetail_20' ) start [2025-03-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600385', 'tblTempUsageDetail_20' ) end [2025-03-03 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:46:24] Production.INFO: ==18115== Releasing lock... [2025-03-03 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:46:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-03 23:47:01] Production.INFO: ==18201== Lock acquired, processing the job... [2025-03-03 23:47:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:47:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:47:01] Production.INFO: neon service started [2025-03-03 23:47:01] Production.INFO: neon service started [2025-03-03 23:47:01] Production.INFO: ==18201== Releasing lock... [2025-03-03 23:47:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:47:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:47:02] Production.INFO: ==18205== Lock acquired, processing the job... [2025-03-03 23:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:47:02] Production.INFO: ==18205== Releasing lock... [2025-03-03 23:47:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:47:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:47:02] Production.INFO: ==18203== Lock acquired, processing the job... [2025-03-03 18:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:47:02] Production.INFO: ==18203== Releasing lock... [2025-03-03 18:47:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:47:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:47:03] Production.INFO: ==18211== Lock acquired, processing the job... [2025-03-03 18:47:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:47:03] Production.INFO: ==18215== Lock acquired, processing the job... [2025-03-03 18:47:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:47:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:47:03] Production.INFO: ==18218== Lock acquired, processing the job... [2025-03-03 18:47:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:47:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:47:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:47:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:47:03] Production.INFO: Account Balance Start. [2025-03-03 18:47:03] Production.INFO: CreateAllLog Start [2025-03-03 18:47:03] Production.INFO: 117 [2025-03-03 18:47:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:47:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: ==18213== Lock acquired, processing the job... [2025-03-03 18:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:47:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:47:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: ==18223== Lock acquired, processing the job... [2025-03-03 18:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:47:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: ==18221== Lock acquired, processing the job... [2025-03-03 18:47:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:47:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:47:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: count ==13 [2025-03-03 18:47:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:47:04] Production.INFO: count ==21 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600389') start [2025-03-03 18:47:04] Production.INFO: ==18213== Releasing lock... [2025-03-03 18:47:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:47:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:47:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600389') end [2025-03-03 18:47:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:47:04] Production.INFO: 1 [2025-03-03 18:47:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:47:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: ==18223== Releasing lock... [2025-03-03 18:47:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:47:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:47:04] Production.ERROR: done [2025-03-03 18:47:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:47:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:04] Production.ERROR: done [2025-03-03 18:47:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:47:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:47:05] Production.INFO: Total Charge 0 [2025-03-03 18:47:05] Production.INFO: CreateAllLog End [2025-03-03 18:47:05] Production.INFO: Account Balance End. [2025-03-03 18:47:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:47:05] Production.INFO: ==18218== Releasing lock... [2025-03-03 18:47:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:47:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:47:06 [end_date_ymd] => 2025-03-03 18:47:06 [RateCDR] => 1 ) [2025-03-03 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:47:06' and `end` < '2025-03-03 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:47:14] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,12))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 18:47:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:47:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:47:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:47:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:47:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:47:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:47:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:47:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:47:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:47:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:47:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:47:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:47:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:47:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:47:14] Production.ERROR: CronJobId end10 [2025-03-03 18:47:14] Production.INFO: ==18215== Releasing lock... [2025-03-03 18:47:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:47:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:47:14] Production.INFO: call_cost start [2025-03-03 18:47:14] Production.INFO: call_cost end [2025-03-03 18:47:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:47:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:47:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:47:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:47:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:47:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:47:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:47:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:47:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:47:15] Production.INFO: ==18211== Releasing lock... [2025-03-03 18:47:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:47:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:47:18] Production.INFO: count ==3660 [2025-03-03 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:47:06 - End Time 2025-03-03 18:47:06 [2025-03-03 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600390', 'tblTempUsageDetail_20' ) start [2025-03-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600390', 'tblTempUsageDetail_20' ) end [2025-03-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600390', 'tblTempVendorCDR_20' ) start [2025-03-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600390', 'tblTempVendorCDR_20' ) end [2025-03-03 18:47:20] Production.INFO: ProcessCDR(1,14600390,1,1,2) [2025-03-03 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600390', 'tblTempUsageDetail_20' ) start [2025-03-03 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600390', 'tblTempUsageDetail_20' ) end [2025-03-03 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:47:23] Production.INFO: ==18221== Releasing lock... [2025-03-03 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:47:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-03 23:48:01] Production.INFO: ==18318== Lock acquired, processing the job... [2025-03-03 23:48:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:48:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:48:01] Production.INFO: neon service started [2025-03-03 23:48:01] Production.INFO: neon service started [2025-03-03 23:48:01] Production.INFO: ==18318== Releasing lock... [2025-03-03 23:48:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:48:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:48:01] Production.INFO: ==18320== Lock acquired, processing the job... [2025-03-03 18:48:01] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:48:02] Production.INFO: ==18320== Releasing lock... [2025-03-03 18:48:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:48:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:48:02] Production.INFO: ==18322== Lock acquired, processing the job... [2025-03-03 23:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:48:02] Production.INFO: ==18322== Releasing lock... [2025-03-03 23:48:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:48:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:48:03] Production.INFO: ==18333== Lock acquired, processing the job... [2025-03-03 18:48:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:48:03] Production.INFO: ==18325== Lock acquired, processing the job... [2025-03-03 18:48:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:48:03] Production.INFO: ==18335== Lock acquired, processing the job... [2025-03-03 18:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:48:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:48:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:48:03] Production.INFO: ==18327== Lock acquired, processing the job... [2025-03-03 18:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:48:03] Production.INFO: ==18329== Lock acquired, processing the job... [2025-03-03 18:48:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:48:03] Production.INFO: ==18331== Lock acquired, processing the job... [2025-03-03 18:48:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:48:03] Production.INFO: Account Balance Start. [2025-03-03 18:48:03] Production.INFO: CreateAllLog Start [2025-03-03 18:48:03] Production.INFO: 117 [2025-03-03 18:48:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:48:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:48:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:48:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:48:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:48:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: count ==13 [2025-03-03 18:48:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:48:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:48:03] Production.INFO: count ==21 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: ==18327== Releasing lock... [2025-03-03 18:48:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:48:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:48:03] Production.ERROR: done [2025-03-03 18:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600392') start [2025-03-03 18:48:03] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:48:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600392') end [2025-03-03 18:48:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:48:03] Production.INFO: 1 [2025-03-03 18:48:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:48:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: ==18335== Releasing lock... [2025-03-03 18:48:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:48:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:48:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:48:03] Production.ERROR: done [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:48:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:48:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:48:04] Production.INFO: Total Charge 0 [2025-03-03 18:48:04] Production.INFO: CreateAllLog End [2025-03-03 18:48:04] Production.INFO: Account Balance End. [2025-03-03 18:48:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:48:05] Production.INFO: ==18331== Releasing lock... [2025-03-03 18:48:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:48:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:48:05 [end_date_ymd] => 2025-03-03 18:48:05 [RateCDR] => 1 ) [2025-03-03 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:48:05' and `end` < '2025-03-03 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:48:13] Production.ERROR: CronJobId end10 [2025-03-03 18:48:13] Production.INFO: ==18329== Releasing lock... [2025-03-03 18:48:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:48:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:48:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:48:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:48:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:48:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:48:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:48:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:48:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:48:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:48:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:48:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:48:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:48:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:48:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:48:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:48:14] Production.INFO: call_cost start [2025-03-03 18:48:14] Production.INFO: call_cost end [2025-03-03 18:48:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:48:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:48:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:48:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:48:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:48:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:48:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:48:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:48:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:48:15] Production.INFO: ==18325== Releasing lock... [2025-03-03 18:48:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:48:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:48:18] Production.INFO: count ==3636 [2025-03-03 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:48:05 - End Time 2025-03-03 18:48:05 [2025-03-03 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600395', 'tblTempUsageDetail_20' ) start [2025-03-03 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600395', 'tblTempUsageDetail_20' ) end [2025-03-03 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600395', 'tblTempVendorCDR_20' ) start [2025-03-03 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600395', 'tblTempVendorCDR_20' ) end [2025-03-03 18:48:19] Production.INFO: ProcessCDR(1,14600395,1,1,2) [2025-03-03 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600395', 'tblTempUsageDetail_20' ) start [2025-03-03 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600395', 'tblTempUsageDetail_20' ) end [2025-03-03 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:48:24] Production.INFO: ==18333== Releasing lock... [2025-03-03 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:48:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-03 23:49:01] Production.INFO: ==18421== Lock acquired, processing the job... [2025-03-03 23:49:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:49:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:49:01] Production.INFO: neon service started [2025-03-03 23:49:01] Production.INFO: neon service started [2025-03-03 23:49:01] Production.INFO: ==18421== Releasing lock... [2025-03-03 23:49:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:49:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:49:02] Production.INFO: ==18423== Lock acquired, processing the job... [2025-03-03 18:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:49:02] Production.INFO: ==18425== Lock acquired, processing the job... [2025-03-03 23:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:49:02] Production.INFO: ==18425== Releasing lock... [2025-03-03 23:49:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:49:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:49:02] Production.INFO: ==18423== Releasing lock... [2025-03-03 18:49:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:49:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:49:03] Production.INFO: ==18428== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:49:03] Production.INFO: ==18430== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:49:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:49:03] Production.INFO: ==18436== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:49:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:49:03] Production.INFO: ==18432== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:49:03] Production.INFO: ==18434== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:49:03] Production.INFO: ==18438== Lock acquired, processing the job... [2025-03-03 18:49:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:49:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:49:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:49:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:49:03] Production.INFO: Account Balance Start. [2025-03-03 18:49:03] Production.INFO: CreateAllLog Start [2025-03-03 18:49:03] Production.INFO: 117 [2025-03-03 18:49:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:49:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:49:04] Production.ERROR: done [2025-03-03 18:49:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:49:04] Production.INFO: count ==13 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:49:04] Production.INFO: ==18430== Releasing lock... [2025-03-03 18:49:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:49:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:49:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:49:04] Production.INFO: count ==21 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600399') start [2025-03-03 18:49:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.ERROR: done [2025-03-03 18:49:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600399') end [2025-03-03 18:49:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:49:04] Production.INFO: 1 [2025-03-03 18:49:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:49:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: ==18438== Releasing lock... [2025-03-03 18:49:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:49:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:49:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:49:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:49:04] Production.INFO: Total Charge 0 [2025-03-03 18:49:04] Production.INFO: CreateAllLog End [2025-03-03 18:49:04] Production.INFO: Account Balance End. [2025-03-03 18:49:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:49:04] Production.INFO: ==18434== Releasing lock... [2025-03-03 18:49:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:49:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:49:05 [end_date_ymd] => 2025-03-03 18:49:05 [RateCDR] => 1 ) [2025-03-03 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:49:05' and `end` < '2025-03-03 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:49:13] Production.ERROR: CronJobId end10 [2025-03-03 18:49:13] Production.INFO: ==18432== Releasing lock... [2025-03-03 18:49:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:49:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:49:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:49:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:49:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:49:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:49:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:49:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:49:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:49:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:49:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:49:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:49:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:49:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:49:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:49:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:49:15] Production.INFO: call_cost start [2025-03-03 18:49:15] Production.INFO: call_cost end [2025-03-03 18:49:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:49:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:49:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:49:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:49:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:49:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:49:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:49:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:49:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:49:16] Production.INFO: ==18428== Releasing lock... [2025-03-03 18:49:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:49:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:49:18] Production.INFO: count ==3616 [2025-03-03 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:49:05 - End Time 2025-03-03 18:49:05 [2025-03-03 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600400', 'tblTempUsageDetail_20' ) start [2025-03-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600400', 'tblTempUsageDetail_20' ) end [2025-03-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600400', 'tblTempVendorCDR_20' ) start [2025-03-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600400', 'tblTempVendorCDR_20' ) end [2025-03-03 18:49:19] Production.INFO: ProcessCDR(1,14600400,1,1,2) [2025-03-03 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600400', 'tblTempUsageDetail_20' ) start [2025-03-03 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600400', 'tblTempUsageDetail_20' ) end [2025-03-03 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:49:23] Production.INFO: ==18436== Releasing lock... [2025-03-03 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:49:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-03 23:50:02] Production.INFO: ==18523== Lock acquired, processing the job... [2025-03-03 23:50:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:50:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:50:02] Production.INFO: neon service started [2025-03-03 23:50:02] Production.INFO: neon service started [2025-03-03 23:50:02] Production.INFO: ==18523== Releasing lock... [2025-03-03 23:50:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:50:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:50:02] Production.INFO: ==18525== Lock acquired, processing the job... [2025-03-03 18:50:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:50:03] Production.INFO: ==18525== Releasing lock... [2025-03-03 18:50:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:50:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:50:03] Production.INFO: ==18527== Lock acquired, processing the job... [2025-03-03 23:50:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:50:03] Production.INFO: ==18527== Releasing lock... [2025-03-03 23:50:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:50:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:50:04] Production.INFO: ==18535== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18530== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18532== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18544== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18537== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18540== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18542== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:50:04] Production.INFO: ==18546== Lock acquired, processing the job... [2025-03-03 18:50:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob start ============================= [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:50:04] Production.ERROR: CronJob PID - 18532 [2025-03-03 18:50:04] Production.ERROR: CronJob Title - System Alerts [2025-03-03 18:50:04] Production.ERROR: CronJob ID - 5 [2025-03-03 18:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 18:50:00 [2025-03-03 18:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:50:04] Production.ERROR: CronJob PID - 18535 [2025-03-03 18:50:04] Production.ERROR: CronJob Title - Account Block [2025-03-03 18:50:04] Production.ERROR: CronJob ID - 7 [2025-03-03 18:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 18:50:00 [2025-03-03 18:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:50:04] Production.ERROR: CronJob PID - 18540 [2025-03-03 18:50:04] Production.ERROR: CronJob Title - Prepaid Account Balance [2025-03-03 18:50:04] Production.ERROR: CronJob ID - 12 [2025-03-03 18:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 18:50:00 [2025-03-03 18:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email start ============================= [2025-03-03 18:50:04] Production.ERROR: CronJob PID - 18542 [2025-03-03 18:50:04] Production.ERROR: CronJob Title - PBX - DanielGraystone - 54.39.17.106 CDR Download [2025-03-03 18:50:04] Production.ERROR: CronJob ID - 16 [2025-03-03 18:50:04] Production.ERROR: CronJob Last Run Time 2025-03-03 18:50:00 [2025-03-03 18:50:04] Production.ERROR: CronJob Active Minutes 0 [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob email end ============================= [2025-03-03 18:50:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:50:04] Production.INFO: Account Balance Start. [2025-03-03 18:50:04] Production.INFO: CreateAllLog Start [2025-03-03 18:50:04] Production.INFO: 117 [2025-03-03 18:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:50:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:50:04] Production.ERROR: ========================== active cronjob end ============================= [2025-03-03 18:50:04] Production.INFO: ==18530== Releasing lock... [2025-03-03 18:50:04] Production.INFO: activecronjobemail-command-activecronjobemail-companyid-1-cronjobid-1 #Stops# [2025-03-03 18:50:04] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:50:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:50:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:50:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:50:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:50:05] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: count ==13 [2025-03-03 18:50:05] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:50:05] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:50:05] Production.INFO: Date 2025-02-09 [2025-03-03 18:50:05] Production.INFO: count ==21 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600404') start [2025-03-03 18:50:05] Production.INFO: ==18535== Releasing lock... [2025-03-03 18:50:05] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:50:05] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:50:05] Production.INFO: Date 2025-02-10 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-11 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-12 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.ERROR: done [2025-03-03 18:50:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600404') end [2025-03-03 18:50:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:50:05] Production.INFO: 1 [2025-03-03 18:50:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:50:05] Production.ERROR: done [2025-03-03 18:50:05] Production.INFO: Date 2025-02-13 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:50:05] Production.ERROR: ========================== Temp table Data Insert and delete live cdr of reseller(today) start ============================= [2025-03-03 18:50:05] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600405', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) start [2025-03-03 18:50:05] Production.INFO: Date 2025-02-14 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-15 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: ==18546== Releasing lock... [2025-03-03 18:50:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:50:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:50:05] Production.INFO: Date 2025-02-16 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-17 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-18 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-19 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-20 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-21 [2025-03-03 18:50:05] Production.ERROR: done [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-22 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:50:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-02-25 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-02-26 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-02-27 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-02-28 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-03-01 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-03-02 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Date 2025-03-03 [2025-03-03 18:50:06] Production.INFO: Reseller ==> 0 [2025-03-03 18:50:06] Production.INFO: Total Charge 0 [2025-03-03 18:50:06] Production.INFO: CreateAllLog End [2025-03-03 18:50:06] Production.INFO: Account Balance End. [2025-03-03 18:50:06] Production.ERROR: CronJobId end 12 [2025-03-03 18:50:06] Production.INFO: ==18540== Releasing lock... [2025-03-03 18:50:06] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:50:06] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:50:06 [end_date_ymd] => 2025-03-03 18:50:06 [RateCDR] => 1 ) [2025-03-03 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:50:06' and `end` < '2025-03-03 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:50:10] Production.INFO: CALL prc_InsertTemptResellerCDR ('1','1' , '14600405', 'tblTempUsageDetail_20reseller','2025-03-03','2025-03-03','1' ) end [2025-03-03 18:50:10] Production.ERROR: ========================== Temp table Data Insert end ============================= [2025-03-03 18:50:10] Production.INFO: ProcessCDR(1,14600405,1,1,2) [2025-03-03 18:50:10] Production.ERROR: start CALL prc_reseller_ProcesssCDR( 1,1,14600405,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:50:10] Production.ERROR: end CALL prc_reseller_ProcesssCDR( 1,1,14600405,'tblTempUsageDetail_20reseller',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:50:10] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:50:10] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:50:10] Production.INFO: ==18544== Releasing lock... [2025-03-03 18:50:10] Production.INFO: resellerpbxaccountusage-command-resellerpbxaccountusage-companyid-1-cronjobid-17 #Stops# [2025-03-03 18:50:10] Production.INFO: 26 MB #Memory Used# [2025-03-03 18:50:16] Production.ERROR: exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:294 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(294): PDOStatement->execute(Array) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(616): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'CALL prc_LowBal...', Array) #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #4 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #7 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #8 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #9 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #10 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #11 [internal function]: App\Console\Commands\NeonAlerts->fire() #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #21 {main} Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: CALL prc_LowBalanceReminder(1,0,12))' in /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 Stack trace: #0 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(580): Illuminate\Database\Connection->runQueryCallback('CALL prc_LowBal...', Array, Object(Closure)) #1 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/Connection.php(297): Illuminate\Database\Connection->run('CALL prc_LowBal...', Array, Object(Closure)) #2 [internal function]: Illuminate\Database\Connection->select('CALL prc_LowBal...', Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(304): call_user_func_array(Array, Array) #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->__call('select', Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Database\DatabaseManager->select('CALL prc_LowBal...', Array) #6 /var/www/html/onswitch.neon.service/app/lib/AccountBalance.php(0): Illuminate\Support\Facades\Facade::__callStatic('select', Array) #7 /var/www/html/onswitch.neon.service/app/lib/NeonAlert.php(0): App\Lib\AccountBalance::LowBalanceReminder() #8 /var/www/html/onswitch.neon.service/app/Console/Commands/NeonAlerts.php(0): App\Lib\NeonAlert::neon_alerts() #9 [internal function]: App\Console\Commands\NeonAlerts->fire() #10 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #11 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #12 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\NeonAlerts), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 {main} [2025-03-03 18:50:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:50:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:50:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:50:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:50:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:50:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:50:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:50:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:50:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:50:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:50:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:50:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:50:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:50:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:50:16] Production.INFO: call_cost start [2025-03-03 18:50:16] Production.INFO: call_cost end [2025-03-03 18:50:17] Production.ERROR: CronJobId end10 [2025-03-03 18:50:17] Production.INFO: ==18537== Releasing lock... [2025-03-03 18:50:17] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:50:17] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:50:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:50:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:50:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:50:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:50:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:50:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:50:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:50:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:50:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:50:17] Production.INFO: ==18532== Releasing lock... [2025-03-03 18:50:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:50:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:50:19] Production.INFO: count ==3594 [2025-03-03 18:50:21] Production.ERROR: pbx CDR StartTime 2025-03-03 15:50:06 - End Time 2025-03-03 18:50:06 [2025-03-03 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600406', 'tblTempUsageDetail_20' ) start [2025-03-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600406', 'tblTempUsageDetail_20' ) end [2025-03-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600406', 'tblTempVendorCDR_20' ) start [2025-03-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600406', 'tblTempVendorCDR_20' ) end [2025-03-03 18:50:21] Production.INFO: ProcessCDR(1,14600406,1,1,2) [2025-03-03 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600406', 'tblTempUsageDetail_20' ) start [2025-03-03 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600406', 'tblTempUsageDetail_20' ) end [2025-03-03 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:50:26] Production.INFO: ==18542== Releasing lock... [2025-03-03 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:50:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-03 23:51:01] Production.INFO: ==18631== Lock acquired, processing the job... [2025-03-03 23:51:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:51:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:51:02] Production.INFO: neon service started [2025-03-03 23:51:02] Production.INFO: neon service started [2025-03-03 23:51:02] Production.INFO: ==18631== Releasing lock... [2025-03-03 23:51:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:51:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:51:02] Production.INFO: ==18633== Lock acquired, processing the job... [2025-03-03 18:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:51:02] Production.INFO: ==18633== Releasing lock... [2025-03-03 18:51:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:51:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:51:02] Production.INFO: ==18635== Lock acquired, processing the job... [2025-03-03 23:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:51:02] Production.INFO: ==18635== Releasing lock... [2025-03-03 23:51:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:51:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:51:03] Production.INFO: ==18637== Lock acquired, processing the job... [2025-03-03 18:51:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:51:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:51:03] Production.INFO: ==18639== Lock acquired, processing the job... [2025-03-03 18:51:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:51:03] Production.INFO: ==18643== Lock acquired, processing the job... [2025-03-03 18:51:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:51:03] Production.INFO: Account Balance Start. [2025-03-03 18:51:03] Production.INFO: CreateAllLog Start [2025-03-03 18:51:03] Production.INFO: 117 [2025-03-03 18:51:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:51:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:03] Production.INFO: ==18641== Lock acquired, processing the job... [2025-03-03 18:51:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:51:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: ==18639== Releasing lock... [2025-03-03 18:51:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:51:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:51:04] Production.INFO: ==18645== Lock acquired, processing the job... [2025-03-03 18:51:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:51:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:51:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:51:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:51:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:51:04] Production.INFO: ==18647== Lock acquired, processing the job... [2025-03-03 18:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:51:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:51:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:51:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:51:04] Production.INFO: count ==13 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:51:04] Production.INFO: count ==21 [2025-03-03 18:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600410') start [2025-03-03 18:51:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.ERROR: done [2025-03-03 18:51:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600410') end [2025-03-03 18:51:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:51:04] Production.INFO: 1 [2025-03-03 18:51:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:51:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: ==18647== Releasing lock... [2025-03-03 18:51:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:51:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:51:04] Production.ERROR: done [2025-03-03 18:51:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:51:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:51:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:51:05] Production.INFO: Total Charge 0 [2025-03-03 18:51:05] Production.INFO: CreateAllLog End [2025-03-03 18:51:05] Production.INFO: Account Balance End. [2025-03-03 18:51:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:51:05] Production.INFO: ==18643== Releasing lock... [2025-03-03 18:51:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:51:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:51:05 [end_date_ymd] => 2025-03-03 18:51:05 [RateCDR] => 1 ) [2025-03-03 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:51:05' and `end` < '2025-03-03 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:51:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:51:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:51:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:51:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:51:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:51:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:51:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:51:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:51:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:51:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:51:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:51:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:51:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:51:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:51:15] Production.INFO: call_cost start [2025-03-03 18:51:15] Production.INFO: call_cost end [2025-03-03 18:51:15] Production.ERROR: CronJobId end10 [2025-03-03 18:51:15] Production.INFO: ==18641== Releasing lock... [2025-03-03 18:51:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:51:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:51:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:51:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:51:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:51:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:51:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:51:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:51:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:51:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:51:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:51:16] Production.INFO: ==18637== Releasing lock... [2025-03-03 18:51:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:51:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:51:18] Production.INFO: count ==3553 [2025-03-03 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:51:05 - End Time 2025-03-03 18:51:05 [2025-03-03 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600411', 'tblTempUsageDetail_20' ) start [2025-03-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600411', 'tblTempUsageDetail_20' ) end [2025-03-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600411', 'tblTempVendorCDR_20' ) start [2025-03-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600411', 'tblTempVendorCDR_20' ) end [2025-03-03 18:51:20] Production.INFO: ProcessCDR(1,14600411,1,1,2) [2025-03-03 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600411', 'tblTempUsageDetail_20' ) start [2025-03-03 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600411', 'tblTempUsageDetail_20' ) end [2025-03-03 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:51:23] Production.INFO: ==18645== Releasing lock... [2025-03-03 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:51:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-03 23:52:01] Production.INFO: ==18728== Lock acquired, processing the job... [2025-03-03 23:52:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:52:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:52:01] Production.INFO: neon service started [2025-03-03 23:52:01] Production.INFO: neon service started [2025-03-03 23:52:01] Production.INFO: ==18728== Releasing lock... [2025-03-03 23:52:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:52:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:52:02] Production.INFO: ==18730== Lock acquired, processing the job... [2025-03-03 18:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:52:02] Production.INFO: ==18732== Lock acquired, processing the job... [2025-03-03 23:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:52:02] Production.INFO: ==18732== Releasing lock... [2025-03-03 23:52:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:52:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:52:02] Production.INFO: ==18730== Releasing lock... [2025-03-03 18:52:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:52:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:52:03] Production.INFO: ==18739== Lock acquired, processing the job... [2025-03-03 18:52:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:52:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:52:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:52:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:52:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:52:03] Production.INFO: ==18735== Lock acquired, processing the job... [2025-03-03 18:52:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:52:03] Production.INFO: ==18737== Lock acquired, processing the job... [2025-03-03 18:52:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:52:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:52:03] Production.INFO: ==18741== Lock acquired, processing the job... [2025-03-03 18:52:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:52:03] Production.INFO: ==18745== Lock acquired, processing the job... [2025-03-03 18:52:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:52:03] Production.INFO: ==18743== Lock acquired, processing the job... [2025-03-03 18:52:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:52:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:52:03] Production.INFO: Account Balance Start. [2025-03-03 18:52:03] Production.INFO: CreateAllLog Start [2025-03-03 18:52:03] Production.INFO: 117 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:52:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:52:04] Production.INFO: count ==13 [2025-03-03 18:52:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:52:04] Production.INFO: count ==21 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600415') start [2025-03-03 18:52:04] Production.INFO: ==18737== Releasing lock... [2025-03-03 18:52:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:52:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:52:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600415') end [2025-03-03 18:52:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:52:04] Production.INFO: 1 [2025-03-03 18:52:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:52:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: ==18745== Releasing lock... [2025-03-03 18:52:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:52:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:52:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.ERROR: done [2025-03-03 18:52:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.ERROR: done [2025-03-03 18:52:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:52:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:52:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:52:05] Production.INFO: Total Charge 0 [2025-03-03 18:52:05] Production.INFO: CreateAllLog End [2025-03-03 18:52:05] Production.INFO: Account Balance End. [2025-03-03 18:52:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:52:05] Production.INFO: ==18741== Releasing lock... [2025-03-03 18:52:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:52:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:52:05 [end_date_ymd] => 2025-03-03 18:52:05 [RateCDR] => 1 ) [2025-03-03 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:52:05' and `end` < '2025-03-03 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:52:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:52:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:52:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:52:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:52:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:52:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:52:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:52:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:52:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:52:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:52:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:52:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:52:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:52:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:52:14] Production.INFO: call_cost start [2025-03-03 18:52:14] Production.INFO: call_cost end [2025-03-03 18:52:14] Production.ERROR: CronJobId end10 [2025-03-03 18:52:14] Production.INFO: ==18739== Releasing lock... [2025-03-03 18:52:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:52:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:52:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:52:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:52:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:52:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:52:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:52:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:52:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:52:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:52:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:52:15] Production.INFO: ==18735== Releasing lock... [2025-03-03 18:52:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:52:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:52:18] Production.INFO: count ==3511 [2025-03-03 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:52:05 - End Time 2025-03-03 18:52:05 [2025-03-03 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600416', 'tblTempUsageDetail_20' ) start [2025-03-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600416', 'tblTempUsageDetail_20' ) end [2025-03-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600416', 'tblTempVendorCDR_20' ) start [2025-03-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600416', 'tblTempVendorCDR_20' ) end [2025-03-03 18:52:19] Production.INFO: ProcessCDR(1,14600416,1,1,2) [2025-03-03 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600416', 'tblTempUsageDetail_20' ) start [2025-03-03 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600416', 'tblTempUsageDetail_20' ) end [2025-03-03 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:52:24] Production.INFO: ==18743== Releasing lock... [2025-03-03 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:52:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-03 23:53:01] Production.INFO: ==18836== Lock acquired, processing the job... [2025-03-03 23:53:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:53:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:53:01] Production.INFO: neon service started [2025-03-03 23:53:01] Production.INFO: neon service started [2025-03-03 23:53:01] Production.INFO: ==18836== Releasing lock... [2025-03-03 23:53:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:53:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:53:02] Production.INFO: ==18840== Lock acquired, processing the job... [2025-03-03 23:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:53:02] Production.INFO: ==18840== Releasing lock... [2025-03-03 23:53:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:53:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:53:02] Production.INFO: ==18838== Lock acquired, processing the job... [2025-03-03 18:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:53:02] Production.INFO: ==18838== Releasing lock... [2025-03-03 18:53:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:53:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:53:03] Production.INFO: ==18843== Lock acquired, processing the job... [2025-03-03 18:53:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:53:03] Production.INFO: ==18845== Lock acquired, processing the job... [2025-03-03 18:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:53:03] Production.INFO: ==18847== Lock acquired, processing the job... [2025-03-03 18:53:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:53:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:53:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:53:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:53:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:53:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:53:03] Production.INFO: ==18851== Lock acquired, processing the job... [2025-03-03 18:53:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:53:03] Production.INFO: ==18849== Lock acquired, processing the job... [2025-03-03 18:53:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:53:03] Production.INFO: Account Balance Start. [2025-03-03 18:53:03] Production.INFO: CreateAllLog Start [2025-03-03 18:53:03] Production.INFO: 117 [2025-03-03 18:53:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:53:03] Production.INFO: ==18853== Lock acquired, processing the job... [2025-03-03 18:53:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:53:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:53:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:03] Production.INFO: ==18845== Releasing lock... [2025-03-03 18:53:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:53:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:53:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:53:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: count ==13 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.ERROR: done [2025-03-03 18:53:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:53:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:53:04] Production.INFO: count ==21 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600420') start [2025-03-03 18:53:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.ERROR: done [2025-03-03 18:53:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600420') end [2025-03-03 18:53:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:53:04] Production.INFO: 1 [2025-03-03 18:53:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:53:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: ==18853== Releasing lock... [2025-03-03 18:53:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:53:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:53:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:53:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:53:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:53:05] Production.INFO: Total Charge 0 [2025-03-03 18:53:05] Production.INFO: CreateAllLog End [2025-03-03 18:53:05] Production.INFO: Account Balance End. [2025-03-03 18:53:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:53:05] Production.INFO: ==18849== Releasing lock... [2025-03-03 18:53:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:53:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:53:05 [end_date_ymd] => 2025-03-03 18:53:05 [RateCDR] => 1 ) [2025-03-03 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-03-03 15:53:05' and `end` < '2025-03-03 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-03-03 18:53:15] Production.ERROR: CronJobId end10 [2025-03-03 18:53:15] Production.INFO: ==18847== Releasing lock... [2025-03-03 18:53:15] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:53:15] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:53:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:53:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:53:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:53:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:53:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:53:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:53:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:53:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:53:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:53:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:53:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:53:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:53:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:53:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:53:17] Production.INFO: call_cost start [2025-03-03 18:53:17] Production.INFO: call_cost end [2025-03-03 18:53:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:53:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:53:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:53:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:53:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:53:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:53:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:53:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:53:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:53:17] Production.INFO: ==18843== Releasing lock... [2025-03-03 18:53:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:53:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:53:18] Production.INFO: count ==3502 [2025-03-03 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:53:05 - End Time 2025-03-03 18:53:05 [2025-03-03 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600421', 'tblTempUsageDetail_20' ) start [2025-03-03 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600421', 'tblTempUsageDetail_20' ) end [2025-03-03 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600421', 'tblTempVendorCDR_20' ) start [2025-03-03 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600421', 'tblTempVendorCDR_20' ) end [2025-03-03 18:53:19] Production.INFO: ProcessCDR(1,14600421,1,1,2) [2025-03-03 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600421', 'tblTempUsageDetail_20' ) start [2025-03-03 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600421', 'tblTempUsageDetail_20' ) end [2025-03-03 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:53:23] Production.INFO: ==18851== Releasing lock... [2025-03-03 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:53:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-03 23:54:02] Production.INFO: ==18981== Lock acquired, processing the job... [2025-03-03 23:54:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:54:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:54:02] Production.INFO: neon service started [2025-03-03 23:54:02] Production.INFO: neon service started [2025-03-03 23:54:02] Production.INFO: ==18981== Releasing lock... [2025-03-03 23:54:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:54:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:54:02] Production.INFO: ==18985== Lock acquired, processing the job... [2025-03-03 18:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:54:02] Production.INFO: ==18985== Releasing lock... [2025-03-03 18:54:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:54:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:54:03] Production.INFO: ==18987== Lock acquired, processing the job... [2025-03-03 23:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:54:03] Production.INFO: ==18987== Releasing lock... [2025-03-03 23:54:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:54:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:54:03] Production.INFO: ==18989== Lock acquired, processing the job... [2025-03-03 18:54:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:54:03] Production.INFO: ==18991== Lock acquired, processing the job... [2025-03-03 18:54:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:54:03] Production.INFO: ==18993== Lock acquired, processing the job... [2025-03-03 18:54:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:54:03] Production.INFO: ==18997== Lock acquired, processing the job... [2025-03-03 18:54:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:54:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:54:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:54:04] Production.INFO: ==18995== Lock acquired, processing the job... [2025-03-03 18:54:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:54:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:54:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:54:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:54:04] Production.INFO: ==18999== Lock acquired, processing the job... [2025-03-03 18:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:54:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:54:04] Production.INFO: Account Balance Start. [2025-03-03 18:54:04] Production.INFO: CreateAllLog Start [2025-03-03 18:54:04] Production.INFO: 117 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: ==18991== Releasing lock... [2025-03-03 18:54:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:54:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:54:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:54:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: count ==13 [2025-03-03 18:54:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:54:04] Production.INFO: count ==21 [2025-03-03 18:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600425') start [2025-03-03 18:54:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600425') end [2025-03-03 18:54:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:54:04] Production.INFO: 1 [2025-03-03 18:54:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:54:04] Production.ERROR: done [2025-03-03 18:54:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:54:04] Production.INFO: ==18999== Releasing lock... [2025-03-03 18:54:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:54:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:54:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.ERROR: done [2025-03-03 18:54:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:54:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:54:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:54:05] Production.INFO: Total Charge 0 [2025-03-03 18:54:05] Production.INFO: CreateAllLog End [2025-03-03 18:54:05] Production.INFO: Account Balance End. [2025-03-03 18:54:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:54:05] Production.INFO: ==18995== Releasing lock... [2025-03-03 18:54:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:54:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:54:06 [end_date_ymd] => 2025-03-03 18:54:06 [RateCDR] => 1 ) [2025-03-03 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:54:06' and `end` < '2025-03-03 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:54:14] Production.ERROR: CronJobId end10 [2025-03-03 18:54:14] Production.INFO: ==18993== Releasing lock... [2025-03-03 18:54:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:54:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:54:16] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:54:16] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:54:16] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:54:16] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:54:16] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:54:16] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:54:16] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:54:16] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:54:16] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:54:16] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:54:16] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:54:16] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:54:16] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:54:16] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:54:16] Production.INFO: call_cost start [2025-03-03 18:54:16] Production.INFO: call_cost end [2025-03-03 18:54:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:54:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:54:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:54:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:54:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:54:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:54:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:54:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:54:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:54:17] Production.INFO: ==18989== Releasing lock... [2025-03-03 18:54:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:54:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:54:18] Production.INFO: count ==3467 [2025-03-03 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:54:06 - End Time 2025-03-03 18:54:06 [2025-03-03 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600426', 'tblTempUsageDetail_20' ) start [2025-03-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600426', 'tblTempUsageDetail_20' ) end [2025-03-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600426', 'tblTempVendorCDR_20' ) start [2025-03-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600426', 'tblTempVendorCDR_20' ) end [2025-03-03 18:54:20] Production.INFO: ProcessCDR(1,14600426,1,1,2) [2025-03-03 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600426', 'tblTempUsageDetail_20' ) start [2025-03-03 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600426', 'tblTempUsageDetail_20' ) end [2025-03-03 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:54:24] Production.INFO: ==18997== Releasing lock... [2025-03-03 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:54:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-03 23:55:01] Production.INFO: ==19088== Lock acquired, processing the job... [2025-03-03 23:55:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:55:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:55:01] Production.INFO: neon service started [2025-03-03 23:55:01] Production.INFO: neon service started [2025-03-03 23:55:01] Production.INFO: ==19088== Releasing lock... [2025-03-03 23:55:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:55:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:55:02] Production.INFO: ==19090== Lock acquired, processing the job... [2025-03-03 18:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:55:02] Production.INFO: ==19090== Releasing lock... [2025-03-03 18:55:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:55:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:55:02] Production.INFO: ==19092== Lock acquired, processing the job... [2025-03-03 23:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:55:02] Production.INFO: ==19092== Releasing lock... [2025-03-03 23:55:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:55:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:55:03] Production.INFO: ==19103== Lock acquired, processing the job... [2025-03-03 18:55:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:55:03] Production.INFO: ==19107== Lock acquired, processing the job... [2025-03-03 18:55:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:55:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:55:03] Production.INFO: ==19097== Lock acquired, processing the job... [2025-03-03 18:55:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:55:03] Production.INFO: count ==13 [2025-03-03 18:55:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:55:03] Production.INFO: count ==21 [2025-03-03 18:55:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600427') start [2025-03-03 18:55:03] Production.INFO: Account Balance Start. [2025-03-03 18:55:03] Production.INFO: CreateAllLog Start [2025-03-03 18:55:03] Production.INFO: 117 [2025-03-03 18:55:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:55:03] Production.INFO: ==19099== Lock acquired, processing the job... [2025-03-03 18:55:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:55:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: ==19101== Lock acquired, processing the job... [2025-03-03 18:55:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:55:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600427') end [2025-03-03 18:55:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:55:04] Production.INFO: 1 [2025-03-03 18:55:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:55:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:55:04] Production.INFO: ==19105== Lock acquired, processing the job... [2025-03-03 18:55:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:55:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: ==19107== Releasing lock... [2025-03-03 18:55:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:55:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:55:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:55:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:55:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:55:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:55:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: ==19099== Releasing lock... [2025-03-03 18:55:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:55:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:55:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.ERROR: done [2025-03-03 18:55:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.ERROR: done [2025-03-03 18:55:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:55:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:55:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:55:05] Production.INFO: Total Charge 0 [2025-03-03 18:55:05] Production.INFO: CreateAllLog End [2025-03-03 18:55:05] Production.INFO: Account Balance End. [2025-03-03 18:55:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:55:05] Production.INFO: ==19103== Releasing lock... [2025-03-03 18:55:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:55:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:55:06 [end_date_ymd] => 2025-03-03 18:55:06 [RateCDR] => 1 ) [2025-03-03 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:55:06' and `end` < '2025-03-03 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:55:13] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:55:13] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:55:13] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:55:13] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:55:13] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:55:13] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:55:13] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:55:13] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:55:13] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:55:13] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:55:13] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:55:13] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:55:13] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:55:13] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:55:14] Production.INFO: call_cost start [2025-03-03 18:55:14] Production.INFO: call_cost end [2025-03-03 18:55:14] Production.ERROR: CronJobId end10 [2025-03-03 18:55:14] Production.INFO: ==19101== Releasing lock... [2025-03-03 18:55:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:55:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:55:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:55:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:55:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:55:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:55:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:55:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:55:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:55:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:55:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:55:15] Production.INFO: ==19097== Releasing lock... [2025-03-03 18:55:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:55:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:55:18] Production.INFO: count ==3447 [2025-03-03 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:55:06 - End Time 2025-03-03 18:55:06 [2025-03-03 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600431', 'tblTempUsageDetail_20' ) start [2025-03-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600431', 'tblTempUsageDetail_20' ) end [2025-03-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600431', 'tblTempVendorCDR_20' ) start [2025-03-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600431', 'tblTempVendorCDR_20' ) end [2025-03-03 18:55:20] Production.INFO: ProcessCDR(1,14600431,1,1,2) [2025-03-03 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600431', 'tblTempUsageDetail_20' ) start [2025-03-03 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600431', 'tblTempUsageDetail_20' ) end [2025-03-03 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:55:23] Production.INFO: ==19105== Releasing lock... [2025-03-03 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:55:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-03 23:56:02] Production.INFO: ==19192== Lock acquired, processing the job... [2025-03-03 23:56:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:56:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:56:02] Production.INFO: neon service started [2025-03-03 23:56:02] Production.INFO: neon service started [2025-03-03 23:56:02] Production.INFO: ==19192== Releasing lock... [2025-03-03 23:56:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:56:02] Production.INFO: 25.5 MB #Memory Used# [2025-03-03 18:56:02] Production.INFO: ==19194== Lock acquired, processing the job... [2025-03-03 18:56:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 23:56:02] Production.INFO: ==19197== Lock acquired, processing the job... [2025-03-03 23:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:56:02] Production.INFO: ==19197== Releasing lock... [2025-03-03 23:56:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:56:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:56:03] Production.INFO: ==19194== Releasing lock... [2025-03-03 18:56:03] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:56:03] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:56:04] Production.INFO: ==19199== Lock acquired, processing the job... [2025-03-03 18:56:04] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:56:04] Production.INFO: ==19203== Lock acquired, processing the job... [2025-03-03 18:56:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:56:04] Production.INFO: ==19205== Lock acquired, processing the job... [2025-03-03 18:56:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:56:04] Production.INFO: ==19201== Lock acquired, processing the job... [2025-03-03 18:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:56:04] Production.INFO: ==19207== Lock acquired, processing the job... [2025-03-03 18:56:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:56:04] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:56:04] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:56:04] Production.INFO: Account Balance Start. [2025-03-03 18:56:04] Production.INFO: CreateAllLog Start [2025-03-03 18:56:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:56:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:56:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:56:04] Production.INFO: 117 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:56:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: ==19209== Lock acquired, processing the job... [2025-03-03 18:56:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:56:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: ==19201== Releasing lock... [2025-03-03 18:56:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:56:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:56:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.ERROR: done [2025-03-03 18:56:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:56:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: count ==13 [2025-03-03 18:56:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:56:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:56:04] Production.INFO: count ==21 [2025-03-03 18:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600435') start [2025-03-03 18:56:05] Production.ERROR: done [2025-03-03 18:56:05] Production.INFO: Date 2025-02-23 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Date 2025-02-24 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Date 2025-02-25 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.ERROR: PBX CALL prc_importPBXExtension('14600435') end [2025-03-03 18:56:05] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:56:05] Production.INFO: 1 [2025-03-03 18:56:05] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:56:05] Production.INFO: Date 2025-02-26 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Date 2025-02-27 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: ==19209== Releasing lock... [2025-03-03 18:56:05] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:56:05] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:56:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:56:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:56:05] Production.INFO: Total Charge 0 [2025-03-03 18:56:05] Production.INFO: CreateAllLog End [2025-03-03 18:56:05] Production.INFO: Account Balance End. [2025-03-03 18:56:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:56:05] Production.INFO: ==19205== Releasing lock... [2025-03-03 18:56:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:56:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:56:06 [end_date_ymd] => 2025-03-03 18:56:06 [RateCDR] => 1 ) [2025-03-03 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:56:06' and `end` < '2025-03-03 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:56:14] Production.ERROR: CronJobId end10 [2025-03-03 18:56:14] Production.INFO: ==19203== Releasing lock... [2025-03-03 18:56:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:56:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:56:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:56:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:56:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:56:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:56:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:56:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:56:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:56:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:56:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:56:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:56:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:56:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:56:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:56:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:56:16] Production.INFO: call_cost start [2025-03-03 18:56:16] Production.INFO: call_cost end [2025-03-03 18:56:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:56:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:56:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:56:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:56:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:56:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:56:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:56:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:56:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:56:17] Production.INFO: ==19199== Releasing lock... [2025-03-03 18:56:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:56:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:56:18] Production.INFO: count ==3425 [2025-03-03 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-03 15:56:06 - End Time 2025-03-03 18:56:06 [2025-03-03 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600436', 'tblTempUsageDetail_20' ) start [2025-03-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600436', 'tblTempUsageDetail_20' ) end [2025-03-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600436', 'tblTempVendorCDR_20' ) start [2025-03-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600436', 'tblTempVendorCDR_20' ) end [2025-03-03 18:56:20] Production.INFO: ProcessCDR(1,14600436,1,1,2) [2025-03-03 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600436', 'tblTempUsageDetail_20' ) start [2025-03-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600436', 'tblTempUsageDetail_20' ) end [2025-03-03 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:56:24] Production.INFO: ==19207== Releasing lock... [2025-03-03 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:56:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-03 23:57:01] Production.INFO: ==19290== Lock acquired, processing the job... [2025-03-03 23:57:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:57:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:57:01] Production.INFO: neon service started [2025-03-03 23:57:01] Production.INFO: neon service started [2025-03-03 23:57:01] Production.INFO: ==19290== Releasing lock... [2025-03-03 23:57:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:57:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 23:57:02] Production.INFO: ==19294== Lock acquired, processing the job... [2025-03-03 23:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:57:02] Production.INFO: ==19294== Releasing lock... [2025-03-03 23:57:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:57:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:57:02] Production.INFO: ==19292== Lock acquired, processing the job... [2025-03-03 18:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:57:02] Production.INFO: ==19292== Releasing lock... [2025-03-03 18:57:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:57:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 18:57:03] Production.INFO: ==19300== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:57:03] Production.INFO: ==19308== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:57:03] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:57:03] Production.INFO: ==19298== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:57:03] Production.INFO: ==19300== Releasing lock... [2025-03-03 18:57:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:57:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:57:03] Production.INFO: count ==13 [2025-03-03 18:57:03] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:57:03] Production.INFO: count ==21 [2025-03-03 18:57:03] Production.INFO: ==19302== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600438') start [2025-03-03 18:57:03] Production.INFO: ==19304== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:57:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:57:03] Production.INFO: ==19306== Lock acquired, processing the job... [2025-03-03 18:57:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:57:03] Production.ERROR: PBX CALL prc_importPBXExtension('14600438') end [2025-03-03 18:57:03] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:57:03] Production.INFO: 1 [2025-03-03 18:57:03] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:57:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:57:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:57:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:57:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:57:03] Production.INFO: ==19308== Releasing lock... [2025-03-03 18:57:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:57:03] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:57:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:57:03] Production.INFO: Account Balance Start. [2025-03-03 18:57:03] Production.INFO: CreateAllLog Start [2025-03-03 18:57:03] Production.INFO: 117 [2025-03-03 18:57:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:57:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.ERROR: done [2025-03-03 18:57:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.ERROR: done [2025-03-03 18:57:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:57:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:57:04] Production.INFO: Total Charge 0 [2025-03-03 18:57:04] Production.INFO: CreateAllLog End [2025-03-03 18:57:04] Production.INFO: Account Balance End. [2025-03-03 18:57:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:57:05] Production.INFO: ==19304== Releasing lock... [2025-03-03 18:57:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:57:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:57:05 [end_date_ymd] => 2025-03-03 18:57:05 [RateCDR] => 1 ) [2025-03-03 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:57:05' and `end` < '2025-03-03 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:57:13] Production.ERROR: CronJobId end10 [2025-03-03 18:57:13] Production.INFO: ==19302== Releasing lock... [2025-03-03 18:57:13] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:57:13] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:57:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:57:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:57:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:57:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:57:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:57:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:57:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:57:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:57:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:57:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:57:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:57:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:57:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:57:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:57:15] Production.INFO: call_cost start [2025-03-03 18:57:15] Production.INFO: call_cost end [2025-03-03 18:57:16] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:57:16] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:57:16] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:57:16] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:57:16] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:57:16] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:57:16] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:57:16] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:57:16] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:57:16] Production.INFO: ==19298== Releasing lock... [2025-03-03 18:57:16] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:57:16] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:57:18] Production.INFO: count ==3394 [2025-03-03 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:57:05 - End Time 2025-03-03 18:57:05 [2025-03-03 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600441', 'tblTempUsageDetail_20' ) start [2025-03-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600441', 'tblTempUsageDetail_20' ) end [2025-03-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600441', 'tblTempVendorCDR_20' ) start [2025-03-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600441', 'tblTempVendorCDR_20' ) end [2025-03-03 18:57:19] Production.INFO: ProcessCDR(1,14600441,1,1,2) [2025-03-03 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600441', 'tblTempUsageDetail_20' ) start [2025-03-03 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600441', 'tblTempUsageDetail_20' ) end [2025-03-03 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:57:24] Production.INFO: ==19306== Releasing lock... [2025-03-03 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:57:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-03 23:58:02] Production.INFO: ==19395== Lock acquired, processing the job... [2025-03-03 23:58:02] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:58:02] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:58:02] Production.INFO: neon service started [2025-03-03 23:58:02] Production.INFO: neon service started [2025-03-03 23:58:02] Production.INFO: ==19395== Releasing lock... [2025-03-03 23:58:02] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:58:02] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:58:02] Production.INFO: ==19397== Lock acquired, processing the job... [2025-03-03 18:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:58:02] Production.INFO: ==19397== Releasing lock... [2025-03-03 18:58:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:58:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:58:03] Production.INFO: ==19399== Lock acquired, processing the job... [2025-03-03 23:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:58:03] Production.INFO: ==19399== Releasing lock... [2025-03-03 23:58:03] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:58:03] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:58:03] Production.INFO: ==19401== Lock acquired, processing the job... [2025-03-03 18:58:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:58:03] Production.INFO: ==19403== Lock acquired, processing the job... [2025-03-03 18:58:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:58:03] Production.INFO: ==19409== Lock acquired, processing the job... [2025-03-03 18:58:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:58:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:58:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:58:04] Production.INFO: ==19405== Lock acquired, processing the job... [2025-03-03 18:58:04] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:58:04] Production.INFO: ==19407== Lock acquired, processing the job... [2025-03-03 18:58:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:58:04] Production.INFO: ==19412== Lock acquired, processing the job... [2025-03-03 18:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:58:04] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:58:04] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:58:04] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:58:04] Production.INFO: Account Balance Start. [2025-03-03 18:58:04] Production.INFO: CreateAllLog Start [2025-03-03 18:58:04] Production.INFO: 117 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-08 [2025-03-03 18:58:04] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:58:04] Production.INFO: ==19403== Releasing lock... [2025-03-03 18:58:04] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:58:04] Production.INFO: Date 2025-02-09 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-10 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-11 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:58:04] Production.INFO: count ==13 [2025-03-03 18:58:04] Production.ERROR: done [2025-03-03 18:58:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:58:04] Production.INFO: count ==21 [2025-03-03 18:58:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-12 [2025-03-03 18:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600445') start [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-13 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-14 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600445') end [2025-03-03 18:58:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:58:04] Production.INFO: 1 [2025-03-03 18:58:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:58:04] Production.INFO: Date 2025-02-15 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-16 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-17 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-18 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: ==19412== Releasing lock... [2025-03-03 18:58:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:58:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:58:04] Production.ERROR: done [2025-03-03 18:58:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:58:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:05] Production.INFO: Date 2025-02-28 [2025-03-03 18:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:05] Production.INFO: Date 2025-03-01 [2025-03-03 18:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:05] Production.INFO: Date 2025-03-02 [2025-03-03 18:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:05] Production.INFO: Date 2025-03-03 [2025-03-03 18:58:05] Production.INFO: Reseller ==> 0 [2025-03-03 18:58:05] Production.INFO: Total Charge 0 [2025-03-03 18:58:05] Production.INFO: CreateAllLog End [2025-03-03 18:58:05] Production.INFO: Account Balance End. [2025-03-03 18:58:05] Production.ERROR: CronJobId end 12 [2025-03-03 18:58:05] Production.INFO: ==19407== Releasing lock... [2025-03-03 18:58:05] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:58:05] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:58:05 [end_date_ymd] => 2025-03-03 18:58:05 [RateCDR] => 1 ) [2025-03-03 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:58:05' and `end` < '2025-03-03 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-03-03 18:58:14] Production.ERROR: CronJobId end10 [2025-03-03 18:58:14] Production.INFO: ==19405== Releasing lock... [2025-03-03 18:58:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:58:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:58:15] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:58:15] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:58:15] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:58:15] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:58:15] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:58:15] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:58:15] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:58:15] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:58:15] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:58:15] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:58:15] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:58:15] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:58:15] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:58:15] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:58:16] Production.INFO: call_cost start [2025-03-03 18:58:16] Production.INFO: call_cost end [2025-03-03 18:58:17] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:58:17] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:58:17] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:58:17] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:58:17] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:58:17] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:58:17] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:58:17] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:58:17] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:58:17] Production.INFO: ==19401== Releasing lock... [2025-03-03 18:58:17] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:58:17] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:58:18] Production.INFO: count ==3382 [2025-03-03 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:58:05 - End Time 2025-03-03 18:58:05 [2025-03-03 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600446', 'tblTempUsageDetail_20' ) start [2025-03-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600446', 'tblTempUsageDetail_20' ) end [2025-03-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600446', 'tblTempVendorCDR_20' ) start [2025-03-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600446', 'tblTempVendorCDR_20' ) end [2025-03-03 18:58:19] Production.INFO: ProcessCDR(1,14600446,1,1,2) [2025-03-03 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600446', 'tblTempUsageDetail_20' ) start [2025-03-03 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600446', 'tblTempUsageDetail_20' ) end [2025-03-03 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:58:24] Production.INFO: ==19409== Releasing lock... [2025-03-03 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:58:24] Production.INFO: 54 MB #Memory Used# [2025-03-03 23:59:01] Production.INFO: ==19465== Lock acquired, processing the job... [2025-03-03 23:59:01] Production.INFO: neonservice-command-neonservice #Starts# [2025-03-03 23:59:01] Production.INFO: neonservice########### Service Starts ########### [2025-03-03 23:59:01] Production.INFO: neon service started [2025-03-03 23:59:01] Production.INFO: neon service started [2025-03-03 23:59:01] Production.INFO: ==19465== Releasing lock... [2025-03-03 23:59:01] Production.INFO: neonservice-command-neonservice #Stops# [2025-03-03 23:59:01] Production.INFO: 24.5 MB #Memory Used# [2025-03-03 18:59:02] Production.INFO: ==19467== Lock acquired, processing the job... [2025-03-03 18:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Starts# [2025-03-03 18:59:02] Production.INFO: ==19467== Releasing lock... [2025-03-03 18:59:02] Production.INFO: rmservice-command-rmservice-companyid-1 #Stops# [2025-03-03 18:59:02] Production.INFO: 25.25 MB #Memory Used# [2025-03-03 23:59:02] Production.INFO: ==19469== Lock acquired, processing the job... [2025-03-03 23:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Starts# [2025-03-03 23:59:02] Production.INFO: ==19469== Releasing lock... [2025-03-03 23:59:02] Production.INFO: rmservice-command-rmservice-companyid-2 #Stops# [2025-03-03 23:59:02] Production.INFO: 25 MB #Memory Used# [2025-03-03 18:59:03] Production.INFO: ==19472== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Starts# [2025-03-03 18:59:03] Production.INFO: ==19474== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Starts# [2025-03-03 18:59:03] Production.INFO: ==19478== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Starts# [2025-03-03 18:59:03] Production.INFO: ============== LowBalanceReminder START=========== [2025-03-03 18:59:03] Production.INFO: Account Balance Start. [2025-03-03 18:59:03] Production.INFO: CreateAllLog Start [2025-03-03 18:59:03] Production.INFO: 117 [2025-03-03 18:59:03] Production.INFO: Date 2025-02-08 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: ==19476== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Starts# [2025-03-03 18:59:03] Production.INFO: Date 2025-02-09 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: ==19474== Releasing lock... [2025-03-03 18:59:03] Production.INFO: pbxaccountblock-command-pbxaccountblock-companyid-1-cronjobid-7 #Stops# [2025-03-03 18:59:03] Production.INFO: 26.75 MB #Memory Used# [2025-03-03 18:59:03] Production.INFO: Date 2025-02-10 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: Date 2025-02-11 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: Date 2025-02-12 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.ERROR: tmp_tblUsageDetailsReport_120250303Live done [2025-03-03 18:59:03] Production.ERROR: tmp_tblVendorUsageDetailsReport_120250303Live done [2025-03-03 18:59:03] Production.ERROR: CALL prc_updateLiveTables(1,120250303Live) [2025-03-03 18:59:03] Production.INFO: Date 2025-02-13 [2025-03-03 18:59:03] Production.INFO: ==19480== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Starts# [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.ERROR: tblTempUsageDetail_20 [2025-03-03 18:59:03] Production.INFO: Date 2025-02-14 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: call prc_generateSummaryLive(1,'2025-03-03','2025-03-03','120250303Live') [2025-03-03 18:59:03] Production.INFO: Date 2025-02-15 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: Date 2025-02-16 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: ==19482== Lock acquired, processing the job... [2025-03-03 18:59:03] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Starts# [2025-03-03 18:59:03] Production.INFO: Date 2025-02-17 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:03] Production.INFO: Date 2025-02-18 [2025-03-03 18:59:03] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: select e.ex_id,e.ex_name,e.ex_number,ex_datecreation,t.te_code from ex_extensions as e inner join te_tenants as t on t.te_id = e.ex_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:59:04] Production.INFO: Date 2025-02-19 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-02-20 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: count ==13 [2025-03-03 18:59:04] Production.ERROR: done [2025-03-03 18:59:04] Production.INFO: select di.di_id,di.di_te_id,di_country,di_area,di_number,t.te_code from di_dids as di inner join te_tenants as t on t.te_id = di.di_te_id where t.te_code='OnSwitchIt' [2025-03-03 18:59:04] Production.ERROR: tblTempVendorCDR_20 [2025-03-03 18:59:04] Production.INFO: count ==21 [2025-03-03 18:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600450') start [2025-03-03 18:59:04] Production.INFO: Date 2025-02-21 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.ERROR: PBX CALL prc_importPBXExtension('14600450') end [2025-03-03 18:59:04] Production.INFO: array ( 0 => array ( 'Message' => '0 Records Imported ', ), ) [2025-03-03 18:59:04] Production.INFO: 1 [2025-03-03 18:59:04] Production.ERROR: ========================== import pbx extension end ============================= [2025-03-03 18:59:04] Production.INFO: Date 2025-02-22 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: ==19482== Releasing lock... [2025-03-03 18:59:04] Production.INFO: importpbxextensions-command-importpbxextensions-companyid-1-cronjobid-19 #Stops# [2025-03-03 18:59:04] Production.INFO: 26.5 MB #Memory Used# [2025-03-03 18:59:04] Production.ERROR: done [2025-03-03 18:59:04] Production.INFO: Date 2025-02-23 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-02-24 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-02-25 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-02-26 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-02-27 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-02-28 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-03-01 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-03-02 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Date 2025-03-03 [2025-03-03 18:59:04] Production.INFO: Reseller ==> 0 [2025-03-03 18:59:04] Production.INFO: Total Charge 0 [2025-03-03 18:59:04] Production.INFO: CreateAllLog End [2025-03-03 18:59:04] Production.INFO: Account Balance End. [2025-03-03 18:59:04] Production.ERROR: CronJobId end 12 [2025-03-03 18:59:04] Production.INFO: ==19478== Releasing lock... [2025-03-03 18:59:04] Production.INFO: accountbalancegenerator-command-accountbalancegenerator-companyid-1-cronjobid-12 #Stops# [2025-03-03 18:59:04] Production.INFO: 27.75 MB #Memory Used# [2025-03-03 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 15:59:05 [end_date_ymd] => 2025-03-03 18:59:05 [RateCDR] => 1 ) [2025-03-03 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 15:59:05' and `end` < '2025-03-03 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-03 18:59:14] Production.INFO: ============== LowBalanceReminder END =========== [2025-03-03 18:59:14] Production.INFO: ============== Balance Warning START=========== [2025-03-03 18:59:14] Production.INFO: ============== Balance Warning END=========== [2025-03-03 18:59:14] Production.INFO: ============== InvoicePaymentReminder START=========== [2025-03-03 18:59:14] Production.INFO: ============== InvoicePaymentReminder END =========== [2025-03-03 18:59:14] Production.INFO: ============== AccountPaymentReminder START=========== [2025-03-03 18:59:14] Production.INFO: ============== AccountPaymentReminder END=========== [2025-03-03 18:59:14] Production.INFO: ============== ACD/ASR alert START=========== [2025-03-03 18:59:14] Production.INFO: ============== ACD/ASR alert END=========== [2025-03-03 18:59:14] Production.INFO: ============== Negative Margin alert START=========== [2025-03-03 18:59:14] Production.INFO: ============== Negative Margin alert END=========== [2025-03-03 18:59:14] Production.INFO: ============== Vendor Balance alert START=========== [2025-03-03 18:59:14] Production.INFO: ============== Vendor Balance alert END=========== [2025-03-03 18:59:14] Production.INFO: ============== CDR Post Process START=========== [2025-03-03 18:59:14] Production.ERROR: CronJobId end10 [2025-03-03 18:59:14] Production.INFO: ==19476== Releasing lock... [2025-03-03 18:59:14] Production.INFO: createsummarylive-command-createsummarylive-companyid-1-cronjobid-10 #Stops# [2025-03-03 18:59:14] Production.INFO: 26.25 MB #Memory Used# [2025-03-03 18:59:14] Production.INFO: call_cost start [2025-03-03 18:59:14] Production.INFO: call_cost end [2025-03-03 18:59:15] Production.INFO: ============== CDR Post Process END=========== [2025-03-03 18:59:15] Production.INFO: ============== Report Schedule START=========== [2025-03-03 18:59:15] Production.INFO: ============== Report Schedule END=========== [2025-03-03 18:59:15] Production.INFO: ============== Account Balance Email Reminder START=========== [2025-03-03 18:59:15] Production.INFO: ============== Account Balance Email Reminder END=========== [2025-03-03 18:59:15] Production.INFO: ============== LowStockReminder alert START=========== [2025-03-03 18:59:15] Production.INFO: ============== LowStockReminder alert END=========== [2025-03-03 18:59:15] Production.INFO: ============== Deal alert START=========== [2025-03-03 18:59:15] Production.INFO: ============== Deal alert END=========== [2025-03-03 18:59:15] Production.INFO: ==19472== Releasing lock... [2025-03-03 18:59:15] Production.INFO: neonalerts-command-neonalerts-companyid-1-cronjobid-5 #Stops# [2025-03-03 18:59:15] Production.INFO: 28.25 MB #Memory Used# [2025-03-03 18:59:18] Production.INFO: count ==3359 [2025-03-03 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-03 15:59:05 - End Time 2025-03-03 18:59:05 [2025-03-03 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600451', 'tblTempUsageDetail_20' ) start [2025-03-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14600451', 'tblTempUsageDetail_20' ) end [2025-03-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600451', 'tblTempVendorCDR_20' ) start [2025-03-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14600451', 'tblTempVendorCDR_20' ) end [2025-03-03 18:59:19] Production.INFO: ProcessCDR(1,14600451,1,1,2) [2025-03-03 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14600451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14600451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-03 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14600451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14600451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-03 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600451', 'tblTempUsageDetail_20' ) start [2025-03-03 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14600451', 'tblTempUsageDetail_20' ) end [2025-03-03 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-03 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-03 18:59:22] Production.INFO: ==19480== Releasing lock... [2025-03-03 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-03 18:59:22] Production.INFO: 53.75 MB #Memory Used#